[03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:07]accept exits with 9 [03:26:07]New connection [03:26:07]New thread 3067071844 created [03:26:07]Thread 3067215204 joined [03:26:07]Waiting for new connection... [03:26:07] Sock 9.Parse request [03:26:07]Sock 9.Check first char [03:26:07]Sock 9.First char is OK [03:26:07]request: POST /json_proto HTTP/1.0 [03:26:07]Method: POST [03:26:07]URL: /json_proto [03:26:07]Method is POST - this is cgi request [03:26:07]url: /json_proto [03:26:07]query_string will be loaded in cgi processing [03:26:07]execute_cgi json_proto POST (null) [03:26:07]execute_cgi path=json_proto method=POST [03:26:07]POST find Content-Length [03:26:07]Host: 172.17.45.67:8080 [03:26:07]Content-Length: 677 [03:26:07]Content-Type: application/json [03:26:07] [03:26:07]POST finish read [03:26:07]Found Content-Length = 677 [03:26:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.250, "sum" : 315.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 315.00, "total" : 315.00, "payments": [ { "type": 0, "sum" : 315.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:07]execute_script... [03:26: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)593377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.250, "sum" : 315.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 315.00, "total" : 315.00, "payments": [ { "type": 0, "sum" : 315.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:26:07]POST & json_proto [03:26:07]process_json_proto [03:26:07]json parsed OK: [03:26:07]protocol is kg_v1.0 [03:26:07]action value=close_receipt [03:26:07]process_action close_receipt [03:26:07]cmd_close_receipt [03:26:07]MH_GetDate [03:26:07]Write to MH i2c: F0 00 00 10 0E 0D [03:26:07]Write i2c OK [03:26:07]MH_I2C_Read... [03:26:07]Read from MH i2c: F0 [03:26:07]MH_I2C_Read... [03:26:07]Read from MH i2c: F0 09 00 [03:26:07]MH_I2C_Read... [03:26:07]Read from MH i2c: F0 09 00 10 0E 00 D1 0C C4 66 5F 7F 2B 66 8C [03:26:07]GetLastDocTimeStamp 1724120768 [03:26:07]current date 1724124369 [03:26:07]FM_GetShiftState [03:26:07]SAM_PROTO_GetShiftState [03:26:07]wFMCommunicate request_size=4 [03:26:07]MH_SAM_APDU [03:26:07]CAPDU: 80 13 01 00 [03:26:07]Write to MH i2c: E2 08 00 11 0E 80 13 01 00 00 00 00 00 9C [03:26:07]Write i2c OK [03:26:07]MH_I2C_Read... [03:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:07]Read from MH i2c: E2 [03:26:07]MH_I2C_Read... [03:26:07]Read from MH i2c: E2 0E 00 [03:26:07]MH_I2C_Read... [03:26:07]Read from MH i2c: E2 0E 00 11 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2D [03:26:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [03:26:07]wFMCommunicate OK [03:26:07]SAM_PROTO_GetShiftState done [03:26:07]FM_GetShiftState done [03:26:07]opened in 1724113785 [03:26:07]opened+sec_in_day 1724200185 [03:26:07]quantity*price = 31535 [03:26:07]sum+1 = 31536 [03:26:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 315.00 Внесено: 315.00 СДАЧА: 0.00 НСП 1% : 2.79 НДС 12% : 33.49 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 7 20.08.2024 03:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139535 ФПД: 28146944456829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T032609&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139535&fm=28146944456829&tin=02508201610067®Number=0000000000092569&sum=31500 [03:26:08]StoreToDocumentArchive [03:26:08]shift 453 fd 139535 [03:26:08]save to /storage/0453/doc_00139535 [03:26:08]save last doc name /storage/0453/doc_00139535 to /storage/kkm_last_doc_name [03:26:08]save OK [03:26:08]Clear old archive folders... [03:26:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:26:08]tlvbuf is 00CFA730 [03:26:08]SAM_PROTO_ClearQueue [03:26:08]wFMCommunicate request_size=4 [03:26:08]MH_SAM_APDU [03:26:08]CAPDU: 80 09 00 00 [03:26:08]Write to MH i2c: E2 08 00 1E 0E 80 09 00 00 00 00 00 00 9E [03:26:08]Write i2c OK [03:26:08]MH_I2C_Read... [03:26:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:26:08]Read from MH i2c: E2 [03:26:08]MH_I2C_Read... [03:26:08]Read from MH i2c: E2 03 00 [03:26:08]MH_I2C_Read... [03:26:08]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [03:26:08]RAPDU: 90 00 [03:26:08]wFMCommunicate OK [03:26:08]SAM_PROTO_ClearQueue done [03:26:08]KKMCreateOFDPacket [03:26:08]OFDProtocolAddRootSTLVToBuf [03:26:08]FM_MakeSignedData [03:26:08]FM_MakeSignedData [03:26:08]SAM_PROTO_SignData [03:26:08]wFMCommunicate request_size=4 [03:26:08]MH_SAM_APDU [03:26:08]CAPDU: 80 0D 01 02 [03:26:08]Write to MH i2c: E2 08 00 1F 0E 80 0D 01 02 00 00 00 00 A6 [03:26:08]Write i2c OK [03:26:08]MH_I2C_Read... [03:26:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:26:08]Read from MH i2c: E2 [03:26:08]MH_I2C_Read... [03:26:08]Read from MH i2c: E2 03 00 [03:26:08]MH_I2C_Read... [03:26:08]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [03:26:08]RAPDU: 90 00 [03:26:08]wFMCommunicate OK [03:26:08]wFMCommunicate request_size=255 [03:26:08]MH_SAM_APDU [03:26:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 10 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2F 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D1 0C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 21 02 00 35 04 06 00 19 [03:26:08]Write to MH i2c: E2 02 01 20 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 10 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2F 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D1 0C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 21 02 00 35 04 06 00 19 00 00 91 [03:26:08]Write i2c OK [03:26:08]MH_I2C_Read... [03:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:09]Read from MH i2c: E2 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: E2 03 00 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [03:26:09]RAPDU: 90 00 [03:26:09]wFMCommunicate OK [03:26:09]wFMCommunicate request_size=10 [03:26:09]MH_SAM_APDU [03:26:09]CAPDU: 80 0D 02 02 05 99 78 A0 38 7D [03:26:09]Write to MH i2c: E2 0D 00 21 0E 80 0D 02 02 05 00 99 78 A0 38 7D 00 00 19 [03:26:09]Write i2c OK [03:26:09]MH_I2C_Read... [03:26:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:26:09]Read from MH i2c: E2 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: E2 03 00 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [03:26:09]RAPDU: 90 00 [03:26:09]wFMCommunicate OK [03:26:09]wFMCommunicate request_size=4 [03:26:09]MH_SAM_APDU [03:26:09]CAPDU: 80 0D 03 02 [03:26:09]Write to MH i2c: E2 08 00 22 0E 80 0D 03 02 00 00 00 00 AB [03:26:09]Write i2c OK [03:26:09]MH_I2C_Read... [03:26:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:26:09]Read from MH i2c: E2 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: E2 0B 00 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: E2 0B 00 22 0E 00 BB 58 F1 61 46 AC 06 8F 90 00 98 [03:26:09]RAPDU: BB 58 F1 61 46 AC 06 8F 90 00 [03:26:09]wFMCommunicate OK [03:26:09]SAM_PROTO_SignData done [03:26:09]FM_MakeSignedData done [03:26:09]CreateOFDProtocolMessage [03:26:09]wFMCommunicate request_size=4 [03:26:09]MH_SAM_APDU [03:26:09]CAPDU: 80 11 00 00 [03:26:09]Write to MH i2c: E2 08 00 23 0E 80 11 00 00 00 00 00 00 AB [03:26:09]Write i2c OK [03:26:09]MH_I2C_Read... [03:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:09]Read from MH i2c: E2 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: E2 17 00 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: E2 17 00 23 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 02 [03:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [03:26:09]wFMCommunicate OK [03:26:09]CreateOFDProtocolMessage done [03:26:09]OFDSenderStorePacket 139535 [03:26:09]StoreOFDPacket docnum=139535 [03:26:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 25 07 01 7F C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 10 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2F 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D1 0C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 21 02 00 35 04 06 00 19 99 78 A0 38 7D BB 58 F1 61 46 AC 06 8F [03:26:09]CheckFolder [03:26:09]dirname=/storage/ofd_packets [03:26:09]CheckFolder done [03:26:09]ProducePacketName [03:26:09]name=ofd_packets/00139535 [03:26:09]NVStorageSaveData ofd_packets/00139535 [03:26:09]File name is /storage/ofd_packets/00139535 [03:26:09]Write 301 bytes [03:26:09]NVStorageSaveData done [03:26:09]OFDSenderStorePacket done [03:26:09]KKMCreateOFDPacket done [03:26:09]NVStorageSaveData kkm_last_timestamp [03:26:09]File name is /storage/kkm_last_timestamp [03:26:09]Write 4 bytes [03:26:09]NVStorageSaveData done [03:26:09]ExternCall_PrintAddStr [03:26:09]wPrintStart [03:26:09]Write to MH i2c: 01 00 00 24 0E 32 [03:26:09]Write i2c OK [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: 01 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: 01 07 00 [03:26:09]MH_I2C_Read... [03:26:09]Read from MH i2c: 01 07 00 24 0E 00 00 00 00 00 FF 0F 47 [03:26:09]RasterBufferAndPrint [03:26:09]line Счет N : (1)593377 [03:26:09]line ИНН: 02508201610067 [03:26:09]line Контрольно-Кассовый Чек [03:26:09]line ПРОДАЖА [03:26:09]line ТРК (МРК, ГНК) : 41 [03:26:09]line Товар: 2710124500 [03:26:09]line Аи-95-К-5 [03:26:09]line 4.250 * 74.20 [03:26:09]line = 315.35 [03:26:09]line НДС 12% НСП 1% [03:26:09]line > о реализуемом товаре [03:26:09]line ОКРУГЛЕНИЕ: -0.35 [03:26:09]line ИТОГО: 315.00 [03:26:09]line Внесено: 315.00 [03:26:09]line СДАЧА: 0.00 [03:26:09]line НСП 1% : 2.79 [03:26:09]line НДС 12% : 33.49 [03:26:09]line Наличными: 315.00 [03:26:09]line Безнал.: 0.00 [03:26:09]line Место: АЗС № 136 "Партнер Нефть" [03:26:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [03:26:09]line СНО: Общий режим [03:26:09]line Чек 7 20.08.2024 03:26 [03:26:09]line Смена: 453 ФФД: 1.0 [03:26:09]line ЗНМ: 0300000067 [03:26:09]line РНМ: 0000000000092569 [03:26:09]line Версия ККМ: 001 [03:26:09]line ФМ: 0000000000871776 [03:26:09]line ФД: 139535 [03:26:09]line ФПД: 28146944456829 [03:26:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T032609&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139535&fm=28146944456829&tin=02508201610067®Number=0000000000092569&sum=31500 [03:26:09]OFD Sender: Processing packet 139535 [packets to send 137, broken 136] [03:26:09]ProducePacketName [03:26:09]name=ofd_packets/00139535 [03:26:09]OFD Sender: To server: pG, [03:26:09]CommunicateWithHost lk.salyk.kg:30040 [03:26:09]ConnectInit lk.salyk.kg [03:26:09]written 0, free lines is 4095 [03:26:09]Connected sock=10 [03:26:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 25 07 01 7F C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 10 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2F 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D1 0C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 21 02 00 35 04 06 00 19 99 78 A0 38 7D BB 58 F1 61 46 AC 06 8F [03:26:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 95 02 47 00 54 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 21 02 00 F4 03 04 00 65 B3 C3 66 B6 04 01 00 00 4B 05 EE FD 03 06 C7 E1 [03:26:10]CommunicateWithHost err = 0 [03:26:10]CheckOFDResponse [03:26:10]1017 (14) - 77093643461234 [03:26:10]1041 (16) - 0000000000871776 [03:26:10]1040 (4) - 139535 [03:26:10]1012 (4) - 19.08.2024 21:04 [03:26:10]1206 (1) - 0 [03:26:10]OFD Sender: Remove packet 139535 [03:26:10]ProducePacketName [03:26:10]name=ofd_packets/00139535 [03:26:10]NVStorageDeleteData [03:26:10]Write to MH i2c: 01 00 00 4F 0E 5D [03:26:10]Write i2c OK [03:26:10]MH_I2C_Read... [03:26:10]Read from MH i2c: 01 [03:26:10]MH_I2C_Read... [03:26:10]Read from MH i2c: 01 07 00 [03:26:10]MH_I2C_Read... [03:26:10]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 D3 0C 43 [03:26:10]RasterBufferAndPrint [03:26:10]line [03:26:10]line [03:26:10]line [03:26:10]line [03:26:10]line [03:26:10]written 0, free lines is 3289 [03:26:10]MH_Cut [03:26:10]Write to MH i2c: D1 01 00 56 0E 01 36 [03:26:10]Write i2c OK [03:26:10]MH_I2C_Read... [03:26:10]Read from MH i2c: D1 [03:26:10]MH_I2C_Read... [03:26:10]Read from MH i2c: D1 01 00 [03:26:10]MH_I2C_Read... [03:26:10]Read from MH i2c: D1 01 00 56 0E 00 35 [03:26:10]Write to MH i2c: 01 00 00 57 0E 65 [03:26:10]Write i2c OK [03:26:10]MH_I2C_Read... [03:26:10]OFD Sender: No OFD packet to send [03:26:10]*** Cut start [03:26:10]*** Partial cut [03:26:10]*** CUTSNS_PIN = 1 [03:26:11]*** CUTSNS_PIN = 0 [03:26:11]*** Brake cut motor [03:26:11]Read from MH i2c: 01 [03:26:11]MH_I2C_Read... [03:26:11]*** Stop cut motor [03:26:11]*** Cut end [03:26:11]Read from MH i2c: 01 07 00 [03:26:11]MH_I2C_Read... [03:26:11]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [03:26:11]process_action close_receipt done [03:26:11]requested_data is exist [03:26:11]produce_requested_data [03:26:11]requested_item fm.sn is exist - process it [03:26:11]wFMCommunicate request_size=4 [03:26:11]MH_SAM_APDU [03:26:11]CAPDU: 80 11 00 00 [03:26:11]Write to MH i2c: E2 08 00 58 0E 80 11 00 00 00 00 00 00 E0 [03:26:11]Write i2c OK [03:26:11]MH_I2C_Read... [03:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:26:11]Read from MH i2c: E2 [03:26:11]MH_I2C_Read... [03:26:11]Read from MH i2c: E2 17 00 [03:26:11]MH_I2C_Read... [03:26:11]Read from MH i2c: E2 17 00 58 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 37 [03:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [03:26:11]wFMCommunicate OK [03:26:11]requested_item fd.num is exist - process it [03:26:11]SAM_PROTO_GetFieldsCounters [03:26:11]wFMCommunicate request_size=4 [03:26:11]MH_SAM_APDU [03:26:11]CAPDU: 80 13 00 00 [03:26:11]Write to MH i2c: E2 08 00 59 0E 80 13 00 00 00 00 00 00 E3 [03:26:11]Write i2c OK [03:26:11]MH_I2C_Read... [03:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:26:11]Read from MH i2c: E2 [03:26:11]MH_I2C_Read... [03:26:11]Read from MH i2c: E2 62 00 [03:26:11]MH_I2C_Read... [03:26:11]Read from MH i2c: E2 62 00 59 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 21 02 00 0E 04 04 00 C5 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 1B [03:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 21 02 00 0E 04 04 00 C5 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 [03:26:11]wFMCommunicate OK [03:26:11]SAM_PROTO_GetFieldsCounters done [03:26:11]requested_item shift.num is exist - process it [03:26:11]requested_item shift.opened is exist - process it [03:26:11]req_shift_opened [03:26:11]FM_GetShiftState [03:26:11]SAM_PROTO_GetShiftState [03:26:11]wFMCommunicate request_size=4 [03:26:11]MH_SAM_APDU [03:26:11]CAPDU: 80 13 01 00 [03:26:11]Write to MH i2c: E2 08 00 5A 0E 80 13 01 00 00 00 00 00 E5 [03:26:11]Write i2c OK [03:26:11]MH_I2C_Read... [03:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:26:11]Read from MH i2c: E2 [03:26:11]MH_I2C_Read... [03:26:11]Read from MH i2c: E2 0E 00 [03:26:11]MH_I2C_Read... [03:26:11]Read from MH i2c: E2 0E 00 5A 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 76 [03:26:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [03:26:11]wFMCommunicate OK [03:26:11]SAM_PROTO_GetShiftState done [03:26:11]FM_GetShiftState done [03:26:11]req_shift_opened done [03:26:11]requested_item shift.open_date is exist - process it [03:26:11]req_shift_open_date [03:26:11]req_shift_open_date done [03:26:11]produce_requested_data done [03:26:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139535,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [03:26:11]process_action_free close_receipt [03:26:11]json_value_free [03:26:11]json_value_free done [03:26:11]process_json_proto returns [03:26:11]Send response to host [03:26:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139535,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [03:26:11]free response buf [03:26:11]execute_script done [03:26:11]execute_script returns [03:26:11]free content buf [03:26:11]Sock 9.Close socket [03:26:11]Sock 9.Thread stoped [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:38]accept exits with 7 [06:49:38]New connection [06:49:38]New thread 3067215204 created [06:49:38]Thread 3067071844 joined [06:49:38]Waiting for new connection... [06:49:38] Sock 7.Parse request [06:49:38]Sock 7.Check first char [06:49:38]Sock 7.First char is OK [06:49:38]request: POST /json_proto HTTP/1.0 [06:49:38]Method: POST [06:49:38]URL: /json_proto [06:49:38]Method is POST - this is cgi request [06:49:38]url: /json_proto [06:49:38]query_string will be loaded in cgi processing [06:49:38]execute_cgi json_proto POST (null) [06:49:38]execute_cgi path=json_proto method=POST [06:49:38]POST find Content-Length [06:49:38]Host: 172.17.45.67:8080 [06:49:38]Content-Length: 682 [06:49:38]Content-Type: application/json [06:49:38] [06:49:38]POST finish read [06:49:38]Found Content-Length = 682 [06:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:38]execute_script... [06:49: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)593378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:38]POST & json_proto [06:49:38]process_json_proto [06:49:38]json parsed OK: [06:49:38]protocol is kg_v1.0 [06:49:38]action value=close_receipt [06:49:38]process_action close_receipt [06:49:38]cmd_close_receipt [06:49:38]MH_GetDate [06:49:38]Write to MH i2c: F0 00 00 5B 0E 58 [06:49:38]Write i2c OK [06:49:38]MH_I2C_Read... [06:49:38]Read from MH i2c: F0 [06:49:38]MH_I2C_Read... [06:49:38]Read from MH i2c: F0 09 00 [06:49:38]MH_I2C_Read... [06:49:38]Read from MH i2c: F0 09 00 5B 0E 00 84 3C C4 66 5F 7F 2B 66 BA [06:49:38]GetLastDocTimeStamp 1724124369 [06:49:38]current date 1724136580 [06:49:38]FM_GetShiftState [06:49:38]SAM_PROTO_GetShiftState [06:49:38]wFMCommunicate request_size=4 [06:49:38]MH_SAM_APDU [06:49:38]CAPDU: 80 13 01 00 [06:49:38]Write to MH i2c: E2 08 00 5C 0E 80 13 01 00 00 00 00 00 E7 [06:49:38]Write i2c OK [06:49:38]MH_I2C_Read... [06:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:38]Read from MH i2c: E2 [06:49:38]MH_I2C_Read... [06:49:38]Read from MH i2c: E2 0E 00 [06:49:38]MH_I2C_Read... [06:49:38]Read from MH i2c: E2 0E 00 5C 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 78 [06:49:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [06:49:38]wFMCommunicate OK [06:49:38]SAM_PROTO_GetShiftState done [06:49:38]FM_GetShiftState done [06:49:38]opened in 1724113785 [06:49:38]opened+sec_in_day 1724200185 [06:49:38]quantity*price = 100005 [06:49:38]sum+1 = 100006 [06:49:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 8 20.08.2024 06:49 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139536 ФПД: 123448468484837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T064940&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139536&fm=123448468484837&tin=02508201610067®Number=0000000000092569&sum=100000 [06:49:39]StoreToDocumentArchive [06:49:39]shift 453 fd 139536 [06:49:39]save to /storage/0453/doc_00139536 [06:49:39]save last doc name /storage/0453/doc_00139536 to /storage/kkm_last_doc_name [06:49:39]save OK [06:49:39]Clear old archive folders... [06:49:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:49:39]tlvbuf is 00D1A060 [06:49:39]SAM_PROTO_ClearQueue [06:49:39]wFMCommunicate request_size=4 [06:49:39]MH_SAM_APDU [06:49:39]CAPDU: 80 09 00 00 [06:49:39]Write to MH i2c: E2 08 00 69 0E 80 09 00 00 00 00 00 00 E9 [06:49:39]Write i2c OK [06:49:39]MH_I2C_Read... [06:49:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:39]Read from MH i2c: E2 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 03 00 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [06:49:39]RAPDU: 90 00 [06:49:39]wFMCommunicate OK [06:49:39]SAM_PROTO_ClearQueue done [06:49:39]KKMCreateOFDPacket [06:49:39]OFDProtocolAddRootSTLVToBuf [06:49:39]FM_MakeSignedData [06:49:39]FM_MakeSignedData [06:49:39]SAM_PROTO_SignData [06:49:39]wFMCommunicate request_size=4 [06:49:39]MH_SAM_APDU [06:49:39]CAPDU: 80 0D 01 02 [06:49:39]Write to MH i2c: E2 08 00 6A 0E 80 0D 01 02 00 00 00 00 F1 [06:49:39]Write i2c OK [06:49:39]MH_I2C_Read... [06:49:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:39]Read from MH i2c: E2 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 03 00 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 03 00 6A 0E 00 90 00 EC [06:49:39]RAPDU: 90 00 [06:49:39]wFMCommunicate OK [06:49:39]wFMCommunicate request_size=255 [06:49:39]MH_SAM_APDU [06:49:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 84 3C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 21 02 00 35 04 06 00 70 [06:49:39]Write to MH i2c: E2 02 01 6B 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 84 3C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 21 02 00 35 04 06 00 70 00 00 64 [06:49:39]Write i2c OK [06:49:39]MH_I2C_Read... [06:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:39]Read from MH i2c: E2 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 03 00 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 03 00 6B 0E 00 90 00 ED [06:49:39]RAPDU: 90 00 [06:49:39]wFMCommunicate OK [06:49:39]wFMCommunicate request_size=10 [06:49:39]MH_SAM_APDU [06:49:39]CAPDU: 80 0D 02 02 05 46 96 1C B2 E5 [06:49:39]Write to MH i2c: E2 0D 00 6C 0E 80 0D 02 02 05 00 46 96 1C B2 E5 00 00 8D [06:49:39]Write i2c OK [06:49:39]MH_I2C_Read... [06:49:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:39]Read from MH i2c: E2 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 03 00 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [06:49:39]RAPDU: 90 00 [06:49:39]wFMCommunicate OK [06:49:39]wFMCommunicate request_size=4 [06:49:39]MH_SAM_APDU [06:49:39]CAPDU: 80 0D 03 02 [06:49:39]Write to MH i2c: E2 08 00 6D 0E 80 0D 03 02 00 00 00 00 F6 [06:49:39]Write i2c OK [06:49:39]MH_I2C_Read... [06:49:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:39]Read from MH i2c: E2 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 0B 00 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 0B 00 6D 0E 00 1F ED 7A CD 86 CB 9D 4F 90 00 87 [06:49:39]RAPDU: 1F ED 7A CD 86 CB 9D 4F 90 00 [06:49:39]wFMCommunicate OK [06:49:39]SAM_PROTO_SignData done [06:49:39]FM_MakeSignedData done [06:49:39]CreateOFDProtocolMessage [06:49:39]wFMCommunicate request_size=4 [06:49:39]MH_SAM_APDU [06:49:39]CAPDU: 80 11 00 00 [06:49:39]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [06:49:39]Write i2c OK [06:49:39]MH_I2C_Read... [06:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:39]Read from MH i2c: E2 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 17 00 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [06:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:49:39]wFMCommunicate OK [06:49:39]CreateOFDProtocolMessage done [06:49:39]OFDSenderStorePacket 139536 [06:49:39]StoreOFDPacket docnum=139536 [06:49:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A2 E4 07 01 B1 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 84 3C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 21 02 00 35 04 06 00 70 46 96 1C B2 E5 1F ED 7A CD 86 CB 9D 4F [06:49:39]CheckFolder [06:49:39]dirname=/storage/ofd_packets [06:49:39]CheckFolder done [06:49:39]ProducePacketName [06:49:39]name=ofd_packets/00139536 [06:49:39]NVStorageSaveData ofd_packets/00139536 [06:49:39]File name is /storage/ofd_packets/00139536 [06:49:39]Write 301 bytes [06:49:39]NVStorageSaveData done [06:49:39]OFDSenderStorePacket done [06:49:39]KKMCreateOFDPacket done [06:49:39]NVStorageSaveData kkm_last_timestamp [06:49:39]File name is /storage/kkm_last_timestamp [06:49:39]Write 4 bytes [06:49:39]NVStorageSaveData done [06:49:39]ExternCall_PrintAddStr [06:49:39]wPrintStart [06:49:39]Write to MH i2c: 01 00 00 6F 0E 7D [06:49:39]Write i2c OK [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: 01 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: 01 07 00 [06:49:39]MH_I2C_Read... [06:49:39]Read from MH i2c: 01 07 00 6F 0E 00 00 00 00 00 FF 0F 92 [06:49:39]RasterBufferAndPrint [06:49:39]line Счет N : (1)593378 [06:49:39]line ИНН: 02508201610067 [06:49:39]line Контрольно-Кассовый Чек [06:49:39]line ПРОДАЖА [06:49:39]line ТРК (МРК, ГНК) : 62 [06:49:39]line Товар: 2710124130 [06:49:39]line Аи-92-К-5 [06:49:39]line 14.750 * 67.80 [06:49:39]line = 1000.05 [06:49:39]line НДС 12% НСП 1% [06:49:39]line > о реализуемом товаре [06:49:39]line ОКРУГЛЕНИЕ: -0.05 [06:49:39]line ИТОГО: 1000.00 [06:49:39]line Внесено: 1000.00 [06:49:39]line СДАЧА: 0.00 [06:49:39]line НСП 1% : 8.85 [06:49:39]line НДС 12% : 106.20 [06:49:39]line Наличными: 1000.00 [06:49:39]line Безнал.: 0.00 [06:49:39]line Место: АЗС № 136 "Партнер Нефть" [06:49:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [06:49:39]line СНО: Общий режим [06:49:39]line Чек 8 20.08.2024 06:49 [06:49:39]line Смена: 453 ФФД: 1.0 [06:49:39]line ЗНМ: 0300000067 [06:49:39]line РНМ: 0000000000092569 [06:49:39]line Версия ККМ: 001 [06:49:39]line ФМ: 0000000000871776 [06:49:39]line ФД: 139536 [06:49:39]line ФПД: 123448468484837 [06:49:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T064940&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139536&fm=123448468484837&tin=02508201610067®Number=0000000000092569&sum=100000 [06:49:40]OFD Sender: Processing packet 139536 [packets to send 137, broken 136] [06:49:40]ProducePacketName [06:49:40]name=ofd_packets/00139536 [06:49:40]OFD Sender: To server: pG, [06:49:40]CommunicateWithHost lk.salyk.kg:30040 [06:49:40]ConnectInit lk.salyk.kg [06:49:40]written 0, free lines is 4095 [06:49:40]Connected sock=11 [06:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A2 E4 07 01 B1 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 84 3C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 21 02 00 35 04 06 00 70 46 96 1C B2 E5 1F ED 7A CD 86 CB 9D 4F [06:49:40]Write to MH i2c: 01 00 00 9A 0E A8 [06:49:40]Write i2c OK [06:49:40]MH_I2C_Read... [06:49:40]Read from MH i2c: 01 [06:49:40]MH_I2C_Read... [06:49:40]Read from MH i2c: 01 07 00 [06:49:40]MH_I2C_Read... [06:49:40]Read from MH i2c: 01 07 00 9A 0E 00 00 00 00 00 C7 0C 82 [06:49:40]RasterBufferAndPrint [06:49:40]line [06:49:40]line [06:49:40]line [06:49:40]line [06:49:40]line [06:49:40]written 0, free lines is 3276 [06:49:40]MH_Cut [06:49:40]Write to MH i2c: D1 01 00 A1 0E 01 81 [06:49:40]Write i2c OK [06:49:40]MH_I2C_Read... [06:49:40]Read from MH i2c: D1 [06:49:40]MH_I2C_Read... [06:49:40]Read from MH i2c: D1 01 00 [06:49:40]MH_I2C_Read... [06:49:40]Read from MH i2c: D1 01 00 A1 0E 00 80 [06:49:40]Write to MH i2c: 01 00 00 A2 0E B0 [06:49:40]Write i2c OK [06:49:40]MH_I2C_Read... [06:49:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7F 22 47 00 17 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 21 02 00 F4 03 04 00 18 E3 C3 66 B6 04 01 00 00 36 8D 9D 7A 54 6E 6B FC [06:49:40]CommunicateWithHost err = 0 [06:49:40]CheckOFDResponse [06:49:40]1017 (14) - 77093643461234 [06:49:40]1041 (16) - 0000000000871776 [06:49:40]1040 (4) - 139536 [06:49:40]1012 (4) - 20.08.2024 00:28 [06:49:40]1206 (1) - 0 [06:49:40]OFD Sender: Remove packet 139536 [06:49:40]ProducePacketName [06:49:40]name=ofd_packets/00139536 [06:49:40]NVStorageDeleteData [06:49:41]OFD Sender: No OFD packet to send [06:49:41]*** Cut start [06:49:41]*** Partial cut [06:49:41]*** CUTSNS_PIN = 1 [06:49:41]*** CUTSNS_PIN = 0 [06:49:41]*** Brake cut motor [06:49:41]Read from MH i2c: 01 [06:49:41]MH_I2C_Read... [06:49:41]*** Stop cut motor [06:49:41]*** Cut end [06:49:41]Read from MH i2c: 01 07 00 [06:49:41]MH_I2C_Read... [06:49:41]Read from MH i2c: 01 07 00 A2 0E 00 00 00 00 00 FF 0F C5 [06:49:41]process_action close_receipt done [06:49:41]requested_data is exist [06:49:41]produce_requested_data [06:49:41]requested_item fm.sn is exist - process it [06:49:41]wFMCommunicate request_size=4 [06:49:41]MH_SAM_APDU [06:49:41]CAPDU: 80 11 00 00 [06:49:41]Write to MH i2c: E2 08 00 A3 0E 80 11 00 00 00 00 00 00 2B [06:49:41]Write i2c OK [06:49:41]MH_I2C_Read... [06:49:41]Read from MH i2c: E2 [06:49:41]MH_I2C_Read... [06:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:41]Read from MH i2c: E2 17 00 [06:49:41]MH_I2C_Read... [06:49:41]Read from MH i2c: E2 17 00 A3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 82 [06:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:49:41]wFMCommunicate OK [06:49:41]requested_item fd.num is exist - process it [06:49:41]SAM_PROTO_GetFieldsCounters [06:49:41]wFMCommunicate request_size=4 [06:49:41]MH_SAM_APDU [06:49:41]CAPDU: 80 13 00 00 [06:49:41]Write to MH i2c: E2 08 00 A4 0E 80 13 00 00 00 00 00 00 2E [06:49:41]Write i2c OK [06:49:41]MH_I2C_Read... [06:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:42]Read from MH i2c: E2 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 62 00 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 62 00 A4 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 21 02 00 0E 04 04 00 C5 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 6A [06:49:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 21 02 00 0E 04 04 00 C5 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 [06:49:42]wFMCommunicate OK [06:49:42]SAM_PROTO_GetFieldsCounters done [06:49:42]requested_item shift.num is exist - process it [06:49:42]requested_item shift.opened is exist - process it [06:49:42]req_shift_opened [06:49:42]FM_GetShiftState [06:49:42]SAM_PROTO_GetShiftState [06:49:42]wFMCommunicate request_size=4 [06:49:42]MH_SAM_APDU [06:49:42]CAPDU: 80 13 01 00 [06:49:42]Write to MH i2c: E2 08 00 A5 0E 80 13 01 00 00 00 00 00 30 [06:49:42]Write i2c OK [06:49:42]MH_I2C_Read... [06:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:42]Read from MH i2c: E2 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 0E 00 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: E2 0E 00 A5 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C1 [06:49:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [06:49:42]wFMCommunicate OK [06:49:42]SAM_PROTO_GetShiftState done [06:49:42]FM_GetShiftState done [06:49:42]req_shift_opened done [06:49:42]requested_item shift.open_date is exist - process it [06:49:42]req_shift_open_date [06:49:42]req_shift_open_date done [06:49:42]produce_requested_data done [06:49:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139536,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [06:49:42]process_action_free close_receipt [06:49:42]json_value_free [06:49:42]json_value_free done [06:49:42]process_json_proto returns [06:49:42]Send response to host [06:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139536,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [06:49:42]free response buf [06:49:42]execute_script done [06:49:42]execute_script returns [06:49:42]free content buf [06:49:42]Sock 7.Close socket [06:49:42]Sock 7.Thread stoped [06:49:46]OFD Sender: No OFD packet to send [06:49:50]recv_with_timeout no data received [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]accept exits with 9 [07:12:37]New connection [07:12:37]New thread 3067071844 created [07:12:37]Thread 3067215204 joined [07:12:37]Waiting for new connection... [07:12:37] Sock 9.Parse request [07:12:37]Sock 9.Check first char [07:12:37]Sock 9.First char is OK [07:12:37]request: POST /json_proto HTTP/1.0 [07:12:37]Method: POST [07:12:37]URL: /json_proto [07:12:37]Method is POST - this is cgi request [07:12:37]url: /json_proto [07:12:37]query_string will be loaded in cgi processing [07:12:37]execute_cgi json_proto POST (null) [07:12:37]execute_cgi path=json_proto method=POST [07:12:37]POST find Content-Length [07:12:37]Host: 172.17.45.67:8080 [07:12:37]Content-Length: 677 [07:12:37]Content-Type: application/json [07:12:37] [07:12:37]POST finish read [07:12:37]Found Content-Length = 677 [07:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:37]execute_script... [07:12: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)593379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:37]POST & json_proto [07:12:37]process_json_proto [07:12:37]json parsed OK: [07:12:37]protocol is kg_v1.0 [07:12:37]action value=close_receipt [07:12:37]process_action close_receipt [07:12:37]cmd_close_receipt [07:12:37]MH_GetDate [07:12:37]Write to MH i2c: F0 00 00 A6 0E A3 [07:12:37]Write i2c OK [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: F0 [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: F0 09 00 [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: F0 09 00 A6 0E 00 E8 41 C4 66 5F 7F 2B 66 6E [07:12:37]GetLastDocTimeStamp 1724136580 [07:12:37]current date 1724137960 [07:12:37]FM_GetShiftState [07:12:37]SAM_PROTO_GetShiftState [07:12:37]wFMCommunicate request_size=4 [07:12:37]MH_SAM_APDU [07:12:37]CAPDU: 80 13 01 00 [07:12:37]Write to MH i2c: E2 08 00 A7 0E 80 13 01 00 00 00 00 00 32 [07:12:37]Write i2c OK [07:12:37]MH_I2C_Read... [07:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:37]Read from MH i2c: E2 [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: E2 0E 00 [07:12:37]MH_I2C_Read... [07:12:37]Read from MH i2c: E2 0E 00 A7 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C3 [07:12:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:12:37]wFMCommunicate OK [07:12:37]SAM_PROTO_GetShiftState done [07:12:37]FM_GetShiftState done [07:12:37]opened in 1724113785 [07:12:37]opened+sec_in_day 1724200185 [07:12:37]quantity*price = 60003 [07:12:37]sum+1 = 60004 [07:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 9 20.08.2024 07:12 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139537 ФПД: 268621030429264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T071240&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139537&fm=268621030429264&tin=02508201610067®Number=0000000000092569&sum=60000 [07:12:38]StoreToDocumentArchive [07:12:38]shift 453 fd 139537 [07:12:38]save to /storage/0453/doc_00139537 [07:12:38]save last doc name /storage/0453/doc_00139537 to /storage/kkm_last_doc_name [07:12:38]save OK [07:12:38]Clear old archive folders... [07:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:38]tlvbuf is 00D3A9F0 [07:12:38]SAM_PROTO_ClearQueue [07:12:38]wFMCommunicate request_size=4 [07:12:38]MH_SAM_APDU [07:12:38]CAPDU: 80 09 00 00 [07:12:38]Write to MH i2c: E2 08 00 B4 0E 80 09 00 00 00 00 00 00 34 [07:12:38]Write i2c OK [07:12:38]MH_I2C_Read... [07:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:38]Read from MH i2c: E2 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 B4 0E 00 90 00 36 [07:12:38]RAPDU: 90 00 [07:12:38]wFMCommunicate OK [07:12:38]SAM_PROTO_ClearQueue done [07:12:38]KKMCreateOFDPacket [07:12:38]OFDProtocolAddRootSTLVToBuf [07:12:38]FM_MakeSignedData [07:12:38]FM_MakeSignedData [07:12:38]SAM_PROTO_SignData [07:12:38]wFMCommunicate request_size=4 [07:12:38]MH_SAM_APDU [07:12:38]CAPDU: 80 0D 01 02 [07:12:38]Write to MH i2c: E2 08 00 B5 0E 80 0D 01 02 00 00 00 00 3C [07:12:38]Write i2c OK [07:12:38]MH_I2C_Read... [07:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:38]Read from MH i2c: E2 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 [07:12:38]MH_I2C_Read... [07:12:38]Read from MH i2c: E2 03 00 B5 0E 00 90 00 37 [07:12:38]RAPDU: 90 00 [07:12:38]wFMCommunicate OK [07:12:38]wFMCommunicate request_size=255 [07:12:38]MH_SAM_APDU [07:12:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E8 41 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 21 02 00 35 04 06 00 F4 [07:12:38]Write to MH i2c: E2 02 01 B6 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E8 41 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 21 02 00 35 04 06 00 F4 00 00 D6 [07:12:38]Write i2c OK [07:12:38]MH_I2C_Read... [07:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:39]Read from MH i2c: E2 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 03 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 03 00 B6 0E 00 90 00 38 [07:12:39]RAPDU: 90 00 [07:12:39]wFMCommunicate OK [07:12:39]wFMCommunicate request_size=10 [07:12:39]MH_SAM_APDU [07:12:39]CAPDU: 80 0D 02 02 05 4F 35 19 12 50 [07:12:39]Write to MH i2c: E2 0D 00 B7 0E 80 0D 02 02 05 00 4F 35 19 12 50 00 00 48 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:39]Read from MH i2c: E2 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 03 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 03 00 B7 0E 00 90 00 39 [07:12:39]RAPDU: 90 00 [07:12:39]wFMCommunicate OK [07:12:39]wFMCommunicate request_size=4 [07:12:39]MH_SAM_APDU [07:12:39]CAPDU: 80 0D 03 02 [07:12:39]Write to MH i2c: E2 08 00 B8 0E 80 0D 03 02 00 00 00 00 41 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:39]Read from MH i2c: E2 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 0B 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 0B 00 B8 0E 00 BB 46 7A F0 90 1B 59 7D 90 00 2E [07:12:39]RAPDU: BB 46 7A F0 90 1B 59 7D 90 00 [07:12:39]wFMCommunicate OK [07:12:39]SAM_PROTO_SignData done [07:12:39]FM_MakeSignedData done [07:12:39]CreateOFDProtocolMessage [07:12:39]wFMCommunicate request_size=4 [07:12:39]MH_SAM_APDU [07:12:39]CAPDU: 80 11 00 00 [07:12:39]Write to MH i2c: E2 08 00 B9 0E 80 11 00 00 00 00 00 00 41 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:39]Read from MH i2c: E2 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 17 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: E2 17 00 B9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [07:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:12:39]wFMCommunicate OK [07:12:39]CreateOFDProtocolMessage done [07:12:39]OFDSenderStorePacket 139537 [07:12:39]StoreOFDPacket docnum=139537 [07:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 27 C7 07 01 88 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E8 41 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 21 02 00 35 04 06 00 F4 4F 35 19 12 50 BB 46 7A F0 90 1B 59 7D [07:12:39]CheckFolder [07:12:39]dirname=/storage/ofd_packets [07:12:39]CheckFolder done [07:12:39]ProducePacketName [07:12:39]name=ofd_packets/00139537 [07:12:39]NVStorageSaveData ofd_packets/00139537 [07:12:39]File name is /storage/ofd_packets/00139537 [07:12:39]Write 301 bytes [07:12:39]NVStorageSaveData done [07:12:39]OFDSenderStorePacket done [07:12:39]KKMCreateOFDPacket done [07:12:39]NVStorageSaveData kkm_last_timestamp [07:12:39]File name is /storage/kkm_last_timestamp [07:12:39]Write 4 bytes [07:12:39]NVStorageSaveData done [07:12:39]ExternCall_PrintAddStr [07:12:39]wPrintStart [07:12:39]Write to MH i2c: 01 00 00 BA 0E C8 [07:12:39]Write i2c OK [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 [07:12:39]MH_I2C_Read... [07:12:39]Read from MH i2c: 01 07 00 BA 0E 00 00 00 00 00 FF 0F DD [07:12:39]RasterBufferAndPrint [07:12:39]line Счет N : (1)593379 [07:12:39]line ИНН: 02508201610067 [07:12:39]line Контрольно-Кассовый Чек [07:12:39]line ПРОДАЖА [07:12:39]line ТРК (МРК, ГНК) : 52 [07:12:39]line Товар: 2710124130 [07:12:39]line Аи-92-К-5 [07:12:39]line 8.850 * 67.80 [07:12:39]line = 600.03 [07:12:39]line НДС 12% НСП 1% [07:12:39]line > о реализуемом товаре [07:12:39]line ОКРУГЛЕНИЕ: -0.03 [07:12:39]line ИТОГО: 600.00 [07:12:39]line Внесено: 600.00 [07:12:39]line СДАЧА: 0.00 [07:12:39]line НСП 1% : 5.31 [07:12:39]line НДС 12% : 63.72 [07:12:39]line Наличными: 600.00 [07:12:39]line Безнал.: 0.00 [07:12:39]line Место: АЗС № 136 "Партнер Нефть" [07:12:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:12:39]line СНО: Общий режим [07:12:39]line Чек 9 20.08.2024 07:12 [07:12:39]line Смена: 453 ФФД: 1.0 [07:12:39]line ЗНМ: 0300000067 [07:12:39]line РНМ: 0000000000092569 [07:12:39]line Версия ККМ: 001 [07:12:39]line ФМ: 0000000000871776 [07:12:39]line ФД: 139537 [07:12:39]line ФПД: 268621030429264 [07:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T071240&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139537&fm=268621030429264&tin=02508201610067®Number=0000000000092569&sum=60000 [07:12:39]OFD Sender: Processing packet 139537 [packets to send 137, broken 136] [07:12:39]ProducePacketName [07:12:39]name=ofd_packets/00139537 [07:12:39]OFD Sender: To server: pG, [07:12:39]CommunicateWithHost lk.salyk.kg:30040 [07:12:39]ConnectInit lk.salyk.kg [07:12:39]written 0, free lines is 4095 [07:12:39]Connected sock=7 [07:12:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 27 C7 07 01 88 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E8 41 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 21 02 00 35 04 06 00 F4 4F 35 19 12 50 BB 46 7A F0 90 1B 59 7D [07:12:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1C 50 47 00 13 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 21 02 00 F4 03 04 00 7B E8 C3 66 B6 04 01 00 00 8B D8 68 46 69 36 98 2A [07:12:40]CommunicateWithHost err = 0 [07:12:40]CheckOFDResponse [07:12:40]1017 (14) - 77093643461234 [07:12:40]1041 (16) - 0000000000871776 [07:12:40]1040 (4) - 139537 [07:12:40]1012 (4) - 20.08.2024 00:51 [07:12:40]1206 (1) - 0 [07:12:40]OFD Sender: Remove packet 139537 [07:12:40]ProducePacketName [07:12:40]name=ofd_packets/00139537 [07:12:40]NVStorageDeleteData [07:12:40]Write to MH i2c: 01 00 00 E5 0E F3 [07:12:40]Write i2c OK [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: 01 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: 01 07 00 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 C4 0C CA [07:12:40]RasterBufferAndPrint [07:12:40]line [07:12:40]line [07:12:40]line [07:12:40]line [07:12:40]line [07:12:40]written 0, free lines is 3274 [07:12:40]MH_Cut [07:12:40]Write to MH i2c: D1 01 00 EC 0E 01 CC [07:12:40]Write i2c OK [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: D1 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: D1 01 00 [07:12:40]MH_I2C_Read... [07:12:40]Read from MH i2c: D1 01 00 EC 0E 00 CB [07:12:40]Write to MH i2c: 01 00 00 ED 0E FB [07:12:40]Write i2c OK [07:12:40]MH_I2C_Read... [07:12:40]OFD Sender: No OFD packet to send [07:12:40]*** Cut start [07:12:40]*** Partial cut [07:12:40]*** CUTSNS_PIN = 1 [07:12:40]*** CUTSNS_PIN = 0 [07:12:41]*** Brake cut motor [07:12:41]Read from MH i2c: 01 [07:12:41]MH_I2C_Read... [07:12:41]*** Stop cut motor [07:12:41]*** Cut end [07:12:41]Read from MH i2c: 01 07 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: 01 07 00 ED 0E 00 00 00 00 00 FF 0F 10 [07:12:41]process_action close_receipt done [07:12:41]requested_data is exist [07:12:41]produce_requested_data [07:12:41]requested_item fm.sn is exist - process it [07:12:41]wFMCommunicate request_size=4 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 11 00 00 [07:12:41]Write to MH i2c: E2 08 00 EE 0E 80 11 00 00 00 00 00 00 76 [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:41]Read from MH i2c: E2 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 17 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 17 00 EE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CD [07:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:12:41]wFMCommunicate OK [07:12:41]requested_item fd.num is exist - process it [07:12:41]SAM_PROTO_GetFieldsCounters [07:12:41]wFMCommunicate request_size=4 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 13 00 00 [07:12:41]Write to MH i2c: E2 08 00 EF 0E 80 13 00 00 00 00 00 00 79 [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:41]Read from MH i2c: E2 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 62 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 62 00 EF 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 21 02 00 0E 04 04 00 C5 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 B9 [07:12:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 21 02 00 0E 04 04 00 C5 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 [07:12:41]wFMCommunicate OK [07:12:41]SAM_PROTO_GetFieldsCounters done [07:12:41]requested_item shift.num is exist - process it [07:12:41]requested_item shift.opened is exist - process it [07:12:41]req_shift_opened [07:12:41]FM_GetShiftState [07:12:41]SAM_PROTO_GetShiftState [07:12:41]wFMCommunicate request_size=4 [07:12:41]MH_SAM_APDU [07:12:41]CAPDU: 80 13 01 00 [07:12:41]Write to MH i2c: E2 08 00 F0 0E 80 13 01 00 00 00 00 00 7B [07:12:41]Write i2c OK [07:12:41]MH_I2C_Read... [07:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:41]Read from MH i2c: E2 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 0E 00 [07:12:41]MH_I2C_Read... [07:12:41]Read from MH i2c: E2 0E 00 F0 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0C [07:12:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:12:41]wFMCommunicate OK [07:12:41]SAM_PROTO_GetShiftState done [07:12:41]FM_GetShiftState done [07:12:41]req_shift_opened done [07:12:41]requested_item shift.open_date is exist - process it [07:12:41]req_shift_open_date [07:12:41]req_shift_open_date done [07:12:41]produce_requested_data done [07:12:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139537,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:12:41]process_action_free close_receipt [07:12:41]json_value_free [07:12:41]json_value_free done [07:12:41]process_json_proto returns [07:12:41]Send response to host [07:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139537,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:12:41]free response buf [07:12:41]execute_script done [07:12:41]execute_script returns [07:12:41]free content buf [07:12:41]Sock 9.Close socket [07:12:41]Sock 9.Thread stoped [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:26]accept exits with 10 [07:17:26]New connection [07:17:26]New thread 3067215204 created [07:17:26]Thread 3067071844 joined [07:17:26]Waiting for new connection... [07:17:26] Sock 10.Parse request [07:17:26]Sock 10.Check first char [07:17:26]Sock 10.First char is OK [07:17:26]request: POST /json_proto HTTP/1.0 [07:17:26]Method: POST [07:17:26]URL: /json_proto [07:17:26]Method is POST - this is cgi request [07:17:26]url: /json_proto [07:17:26]query_string will be loaded in cgi processing [07:17:26]execute_cgi json_proto POST (null) [07:17:26]execute_cgi path=json_proto method=POST [07:17:26]POST find Content-Length [07:17:26]Host: 172.17.45.67:8080 [07:17:26]Content-Length: 677 [07:17:26]Content-Type: application/json [07:17:26] [07:17:26]POST finish read [07:17:26]Found Content-Length = 677 [07:17:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:26]execute_script... [07:17:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:26]POST & json_proto [07:17:26]process_json_proto [07:17:26]json parsed OK: [07:17:26]protocol is kg_v1.0 [07:17:26]action value=close_receipt [07:17:26]process_action close_receipt [07:17:26]cmd_close_receipt [07:17:26]MH_GetDate [07:17:26]Write to MH i2c: F0 00 00 F1 0E EE [07:17:26]Write i2c OK [07:17:26]MH_I2C_Read... [07:17:26]Read from MH i2c: F0 [07:17:26]MH_I2C_Read... [07:17:26]Read from MH i2c: F0 09 00 [07:17:26]MH_I2C_Read... [07:17:26]Read from MH i2c: F0 09 00 F1 0E 00 08 43 C4 66 5F 7F 2B 66 DB [07:17:26]GetLastDocTimeStamp 1724137960 [07:17:26]current date 1724138248 [07:17:26]FM_GetShiftState [07:17:26]SAM_PROTO_GetShiftState [07:17:26]wFMCommunicate request_size=4 [07:17:26]MH_SAM_APDU [07:17:26]CAPDU: 80 13 01 00 [07:17:26]Write to MH i2c: E2 08 00 F2 0E 80 13 01 00 00 00 00 00 7D [07:17:26]Write i2c OK [07:17:26]MH_I2C_Read... [07:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:26]Read from MH i2c: E2 [07:17:26]MH_I2C_Read... [07:17:26]Read from MH i2c: E2 0E 00 [07:17:26]MH_I2C_Read... [07:17:26]Read from MH i2c: E2 0E 00 F2 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0E [07:17:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:17:26]wFMCommunicate OK [07:17:26]SAM_PROTO_GetShiftState done [07:17:26]FM_GetShiftState done [07:17:26]opened in 1724113785 [07:17:26]opened+sec_in_day 1724200185 [07:17:26]quantity*price = 50036 [07:17:26]sum+1 = 50037 [07:17:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 10 20.08.2024 07:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139538 ФПД: 201084013358584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T071729&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139538&fm=201084013358584&tin=02508201610067®Number=0000000000092569&sum=50000 [07:17:27]StoreToDocumentArchive [07:17:27]shift 453 fd 139538 [07:17:27]save to /storage/0453/doc_00139538 [07:17:27]save last doc name /storage/0453/doc_00139538 to /storage/kkm_last_doc_name [07:17:27]save OK [07:17:27]Clear old archive folders... [07:17:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:17:27]tlvbuf is B6EE8B20 [07:17:27]SAM_PROTO_ClearQueue [07:17:27]wFMCommunicate request_size=4 [07:17:27]MH_SAM_APDU [07:17:27]CAPDU: 80 09 00 00 [07:17:27]Write to MH i2c: E2 08 00 FF 0E 80 09 00 00 00 00 00 00 7F [07:17:27]Write i2c OK [07:17:27]MH_I2C_Read... [07:17:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:27]Read from MH i2c: E2 [07:17:27]MH_I2C_Read... [07:17:27]Read from MH i2c: E2 03 00 [07:17:27]MH_I2C_Read... [07:17:27]Read from MH i2c: E2 03 00 FF 0E 00 90 00 81 [07:17:27]RAPDU: 90 00 [07:17:27]wFMCommunicate OK [07:17:27]SAM_PROTO_ClearQueue done [07:17:27]KKMCreateOFDPacket [07:17:27]OFDProtocolAddRootSTLVToBuf [07:17:27]FM_MakeSignedData [07:17:27]FM_MakeSignedData [07:17:27]SAM_PROTO_SignData [07:17:27]wFMCommunicate request_size=4 [07:17:27]MH_SAM_APDU [07:17:27]CAPDU: 80 0D 01 02 [07:17:27]Write to MH i2c: E2 08 00 00 0F 80 0D 01 02 00 00 00 00 88 [07:17:27]Write i2c OK [07:17:27]MH_I2C_Read... [07:17:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:27]Read from MH i2c: E2 [07:17:27]MH_I2C_Read... [07:17:27]Read from MH i2c: E2 03 00 [07:17:27]MH_I2C_Read... [07:17:27]Read from MH i2c: E2 03 00 00 0F 00 90 00 83 [07:17:27]RAPDU: 90 00 [07:17:27]wFMCommunicate OK [07:17:27]wFMCommunicate request_size=255 [07:17:27]MH_SAM_APDU [07:17:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 09 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 21 02 00 35 04 06 00 B6 [07:17:27]Write to MH i2c: E2 02 01 01 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 09 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 21 02 00 35 04 06 00 B6 00 00 42 [07:17:27]Write i2c OK [07:17:27]MH_I2C_Read... [07:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:28]Read from MH i2c: E2 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [07:17:28]RAPDU: 90 00 [07:17:28]wFMCommunicate OK [07:17:28]wFMCommunicate request_size=10 [07:17:28]MH_SAM_APDU [07:17:28]CAPDU: 80 0D 02 02 05 E2 85 2F AD F8 [07:17:28]Write to MH i2c: E2 0D 00 02 0F 80 0D 02 02 05 00 E2 85 2F AD F8 00 00 D0 [07:17:28]Write i2c OK [07:17:28]MH_I2C_Read... [07:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:28]Read from MH i2c: E2 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [07:17:28]RAPDU: 90 00 [07:17:28]wFMCommunicate OK [07:17:28]wFMCommunicate request_size=4 [07:17:28]MH_SAM_APDU [07:17:28]CAPDU: 80 0D 03 02 [07:17:28]Write to MH i2c: E2 08 00 03 0F 80 0D 03 02 00 00 00 00 8D [07:17:28]Write i2c OK [07:17:28]MH_I2C_Read... [07:17:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:28]Read from MH i2c: E2 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 0B 00 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 0B 00 03 0F 00 01 E4 4F A3 51 7F 95 5B 90 00 25 [07:17:28]RAPDU: 01 E4 4F A3 51 7F 95 5B 90 00 [07:17:28]wFMCommunicate OK [07:17:28]SAM_PROTO_SignData done [07:17:28]FM_MakeSignedData done [07:17:28]CreateOFDProtocolMessage [07:17:28]wFMCommunicate request_size=4 [07:17:28]MH_SAM_APDU [07:17:28]CAPDU: 80 11 00 00 [07:17:28]Write to MH i2c: E2 08 00 04 0F 80 11 00 00 00 00 00 00 8D [07:17:28]Write i2c OK [07:17:28]MH_I2C_Read... [07:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:28]Read from MH i2c: E2 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 17 00 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: E2 17 00 04 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E4 [07:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:17:28]wFMCommunicate OK [07:17:28]CreateOFDProtocolMessage done [07:17:28]OFDSenderStorePacket 139538 [07:17:28]StoreOFDPacket docnum=139538 [07:17:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CA FD 07 01 70 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 09 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 21 02 00 35 04 06 00 B6 E2 85 2F AD F8 01 E4 4F A3 51 7F 95 5B [07:17:28]CheckFolder [07:17:28]dirname=/storage/ofd_packets [07:17:28]CheckFolder done [07:17:28]ProducePacketName [07:17:28]name=ofd_packets/00139538 [07:17:28]NVStorageSaveData ofd_packets/00139538 [07:17:28]File name is /storage/ofd_packets/00139538 [07:17:28]Write 301 bytes [07:17:28]NVStorageSaveData done [07:17:28]OFDSenderStorePacket done [07:17:28]KKMCreateOFDPacket done [07:17:28]NVStorageSaveData kkm_last_timestamp [07:17:28]File name is /storage/kkm_last_timestamp [07:17:28]Write 4 bytes [07:17:28]NVStorageSaveData done [07:17:28]ExternCall_PrintAddStr [07:17:28]wPrintStart [07:17:28]Write to MH i2c: 01 00 00 05 0F 14 [07:17:28]Write i2c OK [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: 01 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: 01 07 00 [07:17:28]MH_I2C_Read... [07:17:28]Read from MH i2c: 01 07 00 05 0F 00 00 00 00 00 FF 0F 29 [07:17:28]RasterBufferAndPrint [07:17:28]line Счет N : (1)593380 [07:17:28]line ИНН: 02508201610067 [07:17:28]line Контрольно-Кассовый Чек [07:17:28]line ПРОДАЖА [07:17:28]line ТРК (МРК, ГНК) : 42 [07:17:28]line Товар: 2710124130 [07:17:28]line Аи-92-К-5 [07:17:28]line 7.380 * 67.80 [07:17:28]line = 500.36 [07:17:28]line НДС 12% НСП 1% [07:17:28]line > о реализуемом товаре [07:17:28]line ОКРУГЛЕНИЕ: -0.36 [07:17:28]line ИТОГО: 500.00 [07:17:28]line Внесено: 500.00 [07:17:28]line СДАЧА: 0.00 [07:17:28]line НСП 1% : 4.43 [07:17:28]line НДС 12% : 53.14 [07:17:28]line Наличными: 500.00 [07:17:28]line Безнал.: 0.00 [07:17:28]line Место: АЗС № 136 "Партнер Нефть" [07:17:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:17:28]line СНО: Общий режим [07:17:28]line Чек 10 20.08.2024 07:17 [07:17:28]line Смена: 453 ФФД: 1.0 [07:17:28]line ЗНМ: 0300000067 [07:17:28]line РНМ: 0000000000092569 [07:17:28]line Версия ККМ: 001 [07:17:28]line ФМ: 0000000000871776 [07:17:28]line ФД: 139538 [07:17:28]line ФПД: 201084013358584 [07:17:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T071729&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139538&fm=201084013358584&tin=02508201610067®Number=0000000000092569&sum=50000 [07:17:28]OFD Sender: Processing packet 139538 [packets to send 137, broken 136] [07:17:28]ProducePacketName [07:17:28]name=ofd_packets/00139538 [07:17:28]OFD Sender: To server: pG, [07:17:28]CommunicateWithHost lk.salyk.kg:30040 [07:17:28]ConnectInit lk.salyk.kg [07:17:28]written 0, free lines is 4095 [07:17:28]Connected sock=9 [07:17:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CA FD 07 01 70 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 09 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 21 02 00 35 04 06 00 B6 E2 85 2F AD F8 01 E4 4F A3 51 7F 95 5B [07:17:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1F 14 47 00 4B 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 21 02 00 F4 03 04 00 9C E9 C3 66 B6 04 01 00 00 23 F7 5C D9 C0 1B 1B E9 [07:17:28]CommunicateWithHost err = 0 [07:17:28]CheckOFDResponse [07:17:28]1017 (14) - 77093643461234 [07:17:28]1041 (16) - 0000000000871776 [07:17:28]1040 (4) - 139538 [07:17:28]1012 (4) - 20.08.2024 00:55 [07:17:28]1206 (1) - 0 [07:17:28]OFD Sender: Remove packet 139538 [07:17:28]ProducePacketName [07:17:28]name=ofd_packets/00139538 [07:17:28]NVStorageDeleteData [07:17:29]Write to MH i2c: 01 00 00 30 0F 3F [07:17:29]Write i2c OK [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: 01 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: 01 07 00 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: 01 07 00 30 0F 00 00 00 00 00 BA 0C 0C [07:17:29]RasterBufferAndPrint [07:17:29]line [07:17:29]line [07:17:29]line [07:17:29]line [07:17:29]line [07:17:29]written 0, free lines is 3266 [07:17:29]MH_Cut [07:17:29]Write to MH i2c: D1 01 00 37 0F 01 18 [07:17:29]Write i2c OK [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: D1 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: D1 01 00 [07:17:29]MH_I2C_Read... [07:17:29]Read from MH i2c: D1 01 00 37 0F 00 17 [07:17:29]Write to MH i2c: 01 00 00 38 0F 47 [07:17:29]Write i2c OK [07:17:29]MH_I2C_Read... [07:17:29]OFD Sender: No OFD packet to send [07:17:29]*** Cut start [07:17:29]*** Partial cut [07:17:29]*** CUTSNS_PIN = 1 [07:17:29]*** CUTSNS_PIN = 0 [07:17:30]*** Brake cut motor [07:17:30]Read from MH i2c: 01 [07:17:30]MH_I2C_Read... [07:17:30]Read from MH i2c: 01 07 00 [07:17:30]MH_I2C_Read... [07:17:30]*** Stop cut motor [07:17:30]*** Cut end [07:17:30]Read from MH i2c: 01 07 00 38 0F 00 00 00 00 00 FF 0F 5C [07:17:30]process_action close_receipt done [07:17:30]requested_data is exist [07:17:30]produce_requested_data [07:17:30]requested_item fm.sn is exist - process it [07:17:30]wFMCommunicate request_size=4 [07:17:30]MH_SAM_APDU [07:17:30]CAPDU: 80 11 00 00 [07:17:30]Write to MH i2c: E2 08 00 39 0F 80 11 00 00 00 00 00 00 C2 [07:17:30]Write i2c OK [07:17:30]MH_I2C_Read... [07:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:30]Read from MH i2c: E2 [07:17:30]MH_I2C_Read... [07:17:30]Read from MH i2c: E2 17 00 [07:17:30]MH_I2C_Read... [07:17:30]Read from MH i2c: E2 17 00 39 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 19 [07:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:17:30]wFMCommunicate OK [07:17:30]requested_item fd.num is exist - process it [07:17:30]SAM_PROTO_GetFieldsCounters [07:17:30]wFMCommunicate request_size=4 [07:17:30]MH_SAM_APDU [07:17:30]CAPDU: 80 13 00 00 [07:17:30]Write to MH i2c: E2 08 00 3A 0F 80 13 00 00 00 00 00 00 C5 [07:17:30]Write i2c OK [07:17:30]MH_I2C_Read... [07:17:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:30]Read from MH i2c: E2 [07:17:30]MH_I2C_Read... [07:17:30]Read from MH i2c: E2 62 00 [07:17:30]MH_I2C_Read... [07:17:30]Read from MH i2c: E2 62 00 3A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 21 02 00 0E 04 04 00 C5 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 09 [07:17:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 21 02 00 0E 04 04 00 C5 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 [07:17:30]wFMCommunicate OK [07:17:30]SAM_PROTO_GetFieldsCounters done [07:17:30]requested_item shift.num is exist - process it [07:17:30]requested_item shift.opened is exist - process it [07:17:30]req_shift_opened [07:17:30]FM_GetShiftState [07:17:30]SAM_PROTO_GetShiftState [07:17:30]wFMCommunicate request_size=4 [07:17:30]MH_SAM_APDU [07:17:30]CAPDU: 80 13 01 00 [07:17:30]Write to MH i2c: E2 08 00 3B 0F 80 13 01 00 00 00 00 00 C7 [07:17:30]Write i2c OK [07:17:30]MH_I2C_Read... [07:17:30]Read from MH i2c: E2 [07:17:30]MH_I2C_Read... [07:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:30]Read from MH i2c: E2 0E 00 [07:17:30]MH_I2C_Read... [07:17:30]Read from MH i2c: E2 0E 00 3B 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 58 [07:17:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:17:30]wFMCommunicate OK [07:17:30]SAM_PROTO_GetShiftState done [07:17:30]FM_GetShiftState done [07:17:30]req_shift_opened done [07:17:30]requested_item shift.open_date is exist - process it [07:17:30]req_shift_open_date [07:17:30]req_shift_open_date done [07:17:30]produce_requested_data done [07:17:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139538,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:17:30]process_action_free close_receipt [07:17:30]json_value_free [07:17:30]json_value_free done [07:17:30]process_json_proto returns [07:17:30]Send response to host [07:17:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139538,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:17:30]free response buf [07:17:30]execute_script done [07:17:30]execute_script returns [07:17:30]free content buf [07:17:30]Sock 10.Close socket [07:17:30]Sock 10.Thread stoped [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:17]accept exits with 7 [07:21:17]New connection [07:21:17]New thread 3067071844 created [07:21:17]Thread 3067215204 joined [07:21:17]Waiting for new connection... [07:21:17] Sock 7.Parse request [07:21:17]Sock 7.Check first char [07:21:17]Sock 7.First char is OK [07:21:17]request: POST /json_proto HTTP/1.0 [07:21:17]Method: POST [07:21:17]URL: /json_proto [07:21:17]Method is POST - this is cgi request [07:21:17]url: /json_proto [07:21:17]query_string will be loaded in cgi processing [07:21:17]execute_cgi json_proto POST (null) [07:21:17]execute_cgi path=json_proto method=POST [07:21:17]POST find Content-Length [07:21:17]Host: 172.17.45.67:8080 [07:21:17]Content-Length: 677 [07:21:17]Content-Type: application/json [07:21:17] [07:21:17]POST finish read [07:21:17]Found Content-Length = 677 [07:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:17]execute_script... [07:21: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)593382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:17]POST & json_proto [07:21:17]process_json_proto [07:21:17]json parsed OK: [07:21:17]protocol is kg_v1.0 [07:21:17]action value=close_receipt [07:21:17]process_action close_receipt [07:21:17]cmd_close_receipt [07:21:17]MH_GetDate [07:21:17]Write to MH i2c: F0 00 00 3C 0F 3A [07:21:17]Write i2c OK [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: F0 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: F0 09 00 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: F0 09 00 3C 0F 00 EF 43 C4 66 5F 7F 2B 66 0E [07:21:17]GetLastDocTimeStamp 1724138249 [07:21:17]current date 1724138479 [07:21:17]FM_GetShiftState [07:21:17]SAM_PROTO_GetShiftState [07:21:17]wFMCommunicate request_size=4 [07:21:17]MH_SAM_APDU [07:21:17]CAPDU: 80 13 01 00 [07:21:17]Write to MH i2c: E2 08 00 3D 0F 80 13 01 00 00 00 00 00 C9 [07:21:17]Write i2c OK [07:21:17]MH_I2C_Read... [07:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:17]Read from MH i2c: E2 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 0E 00 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 0E 00 3D 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5A [07:21:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:21:17]wFMCommunicate OK [07:21:17]SAM_PROTO_GetShiftState done [07:21:17]FM_GetShiftState done [07:21:17]opened in 1724113785 [07:21:17]opened+sec_in_day 1724200185 [07:21:17]quantity*price = 50036 [07:21:17]sum+1 = 50037 [07:21:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 11 20.08.2024 07:21 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139539 ФПД: 273106246912905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T072119&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139539&fm=273106246912905&tin=02508201610067®Number=0000000000092569&sum=50000 [07:21:18]StoreToDocumentArchive [07:21:18]shift 453 fd 139539 [07:21:18]save to /storage/0453/doc_00139539 [07:21:18]save last doc name /storage/0453/doc_00139539 to /storage/kkm_last_doc_name [07:21:18]save OK [07:21:18]Clear old archive folders... [07:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:18]tlvbuf is 00D39D90 [07:21:18]SAM_PROTO_ClearQueue [07:21:18]wFMCommunicate request_size=4 [07:21:18]MH_SAM_APDU [07:21:18]CAPDU: 80 09 00 00 [07:21:18]Write to MH i2c: E2 08 00 4A 0F 80 09 00 00 00 00 00 00 CB [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 4A 0F 00 90 00 CD [07:21:18]RAPDU: 90 00 [07:21:18]wFMCommunicate OK [07:21:18]SAM_PROTO_ClearQueue done [07:21:18]KKMCreateOFDPacket [07:21:18]OFDProtocolAddRootSTLVToBuf [07:21:18]FM_MakeSignedData [07:21:18]FM_MakeSignedData [07:21:18]SAM_PROTO_SignData [07:21:18]wFMCommunicate request_size=4 [07:21:18]MH_SAM_APDU [07:21:18]CAPDU: 80 0D 01 02 [07:21:18]Write to MH i2c: E2 08 00 4B 0F 80 0D 01 02 00 00 00 00 D3 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [07:21:18]RAPDU: 90 00 [07:21:18]wFMCommunicate OK [07:21:18]wFMCommunicate request_size=255 [07:21:18]MH_SAM_APDU [07:21:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 EF 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 21 02 00 35 04 06 00 F8 [07:21:18]Write to MH i2c: E2 02 01 4C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EF 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 21 02 00 35 04 06 00 F8 00 00 B7 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [07:21:18]RAPDU: 90 00 [07:21:18]wFMCommunicate OK [07:21:18]wFMCommunicate request_size=10 [07:21:18]MH_SAM_APDU [07:21:18]CAPDU: 80 0D 02 02 05 63 80 D5 4B 89 [07:21:18]Write to MH i2c: E2 0D 00 4D 0F 80 0D 02 02 05 00 63 80 D5 4B 89 00 00 6C [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [07:21:18]RAPDU: 90 00 [07:21:18]wFMCommunicate OK [07:21:18]wFMCommunicate request_size=4 [07:21:18]MH_SAM_APDU [07:21:18]CAPDU: 80 0D 03 02 [07:21:18]Write to MH i2c: E2 08 00 4E 0F 80 0D 03 02 00 00 00 00 D8 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 0B 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 0B 00 4E 0F 00 CE 95 5F 56 85 81 31 B9 90 00 E1 [07:21:18]RAPDU: CE 95 5F 56 85 81 31 B9 90 00 [07:21:18]wFMCommunicate OK [07:21:18]SAM_PROTO_SignData done [07:21:18]FM_MakeSignedData done [07:21:18]CreateOFDProtocolMessage [07:21:18]wFMCommunicate request_size=4 [07:21:18]MH_SAM_APDU [07:21:18]CAPDU: 80 11 00 00 [07:21:18]Write to MH i2c: E2 08 00 4F 0F 80 11 00 00 00 00 00 00 D8 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 17 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 17 00 4F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [07:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:21:18]wFMCommunicate OK [07:21:18]CreateOFDProtocolMessage done [07:21:18]OFDSenderStorePacket 139539 [07:21:18]StoreOFDPacket docnum=139539 [07:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2E 13 07 01 3B 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EF 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 21 02 00 35 04 06 00 F8 63 80 D5 4B 89 CE 95 5F 56 85 81 31 B9 [07:21:18]CheckFolder [07:21:18]dirname=/storage/ofd_packets [07:21:18]CheckFolder done [07:21:18]ProducePacketName [07:21:18]name=ofd_packets/00139539 [07:21:18]NVStorageSaveData ofd_packets/00139539 [07:21:18]File name is /storage/ofd_packets/00139539 [07:21:18]Write 301 bytes [07:21:18]NVStorageSaveData done [07:21:18]OFDSenderStorePacket done [07:21:18]KKMCreateOFDPacket done [07:21:18]NVStorageSaveData kkm_last_timestamp [07:21:18]File name is /storage/kkm_last_timestamp [07:21:18]Write 4 bytes [07:21:18]NVStorageSaveData done [07:21:18]ExternCall_PrintAddStr [07:21:18]wPrintStart [07:21:18]Write to MH i2c: 01 00 00 50 0F 5F [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: 01 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: 01 07 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: 01 07 00 50 0F 00 00 00 00 00 FF 0F 74 [07:21:18]RasterBufferAndPrint [07:21:18]line Счет N : (1)593382 [07:21:18]line ИНН: 02508201610067 [07:21:18]line Контрольно-Кассовый Чек [07:21:18]line ПРОДАЖА [07:21:18]line ТРК (МРК, ГНК) : 32 [07:21:18]line Товар: 2710124130 [07:21:18]line Аи-92-К-5 [07:21:18]line 7.380 * 67.80 [07:21:18]line = 500.36 [07:21:18]line НДС 12% НСП 1% [07:21:18]line > о реализуемом товаре [07:21:18]line ОКРУГЛЕНИЕ: -0.36 [07:21:18]line ИТОГО: 500.00 [07:21:18]line Внесено: 500.00 [07:21:18]line СДАЧА: 0.00 [07:21:18]line НСП 1% : 4.43 [07:21:18]line НДС 12% : 53.14 [07:21:18]line Наличными: 500.00 [07:21:18]line Безнал.: 0.00 [07:21:18]line Место: АЗС № 136 "Партнер Нефть" [07:21:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:21:18]line СНО: Общий режим [07:21:18]line Чек 11 20.08.2024 07:21 [07:21:18]line Смена: 453 ФФД: 1.0 [07:21:18]line ЗНМ: 0300000067 [07:21:18]line РНМ: 0000000000092569 [07:21:18]line Версия ККМ: 001 [07:21:18]line ФМ: 0000000000871776 [07:21:18]line ФД: 139539 [07:21:18]line ФПД: 273106246912905 [07:21:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T072119&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139539&fm=273106246912905&tin=02508201610067®Number=0000000000092569&sum=50000 [07:21:19]OFD Sender: Processing packet 139539 [packets to send 137, broken 136] [07:21:19]ProducePacketName [07:21:19]name=ofd_packets/00139539 [07:21:19]OFD Sender: To server: pG, [07:21:19]CommunicateWithHost lk.salyk.kg:30040 [07:21:19]ConnectInit lk.salyk.kg [07:21:19]written 0, free lines is 4095 [07:21:19]Connected sock=10 [07:21:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2E 13 07 01 3B 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EF 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 21 02 00 35 04 06 00 F8 63 80 D5 4B 89 CE 95 5F 56 85 81 31 B9 [07:21:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E5 0A 47 00 0C 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 21 02 00 F4 03 04 00 83 EA C3 66 B6 04 01 00 00 E1 A3 2A D8 2F 07 A5 80 [07:21:19]CommunicateWithHost err = 0 [07:21:19]CheckOFDResponse [07:21:19]1017 (14) - 77093643461234 [07:21:19]1041 (16) - 0000000000871776 [07:21:19]1040 (4) - 139539 [07:21:19]1012 (4) - 20.08.2024 00:59 [07:21:19]1206 (1) - 0 [07:21:19]OFD Sender: Remove packet 139539 [07:21:19]ProducePacketName [07:21:19]name=ofd_packets/00139539 [07:21:19]NVStorageDeleteData [07:21:19]Write to MH i2c: 01 00 00 7B 0F 8A [07:21:19]Write i2c OK [07:21:19]MH_I2C_Read... [07:21:19]Read from MH i2c: 01 [07:21:19]MH_I2C_Read... [07:21:19]Read from MH i2c: 01 07 00 [07:21:19]MH_I2C_Read... [07:21:19]Read from MH i2c: 01 07 00 7B 0F 00 00 00 00 00 C2 0C 5F [07:21:19]RasterBufferAndPrint [07:21:19]line [07:21:19]line [07:21:19]line [07:21:19]line [07:21:19]line [07:21:19]written 0, free lines is 3271 [07:21:19]MH_Cut [07:21:19]Write to MH i2c: D1 01 00 82 0F 01 63 [07:21:19]Write i2c OK [07:21:19]MH_I2C_Read... [07:21:19]Read from MH i2c: D1 [07:21:19]MH_I2C_Read... [07:21:19]Read from MH i2c: D1 01 00 [07:21:19]MH_I2C_Read... [07:21:19]Read from MH i2c: D1 01 00 82 0F 00 62 [07:21:19]Write to MH i2c: 01 00 00 83 0F 92 [07:21:19]Write i2c OK [07:21:19]MH_I2C_Read... [07:21:20]OFD Sender: No OFD packet to send [07:21:20]*** Cut start [07:21:20]*** Partial cut [07:21:20]*** CUTSNS_PIN = 1 [07:21:20]*** CUTSNS_PIN = 0 [07:21:20]*** Brake cut motor [07:21:20]Read from MH i2c: 01 [07:21:20]MH_I2C_Read... [07:21:20]*** Stop cut motor [07:21:20]*** Cut end [07:21:20]Read from MH i2c: 01 07 00 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: 01 07 00 83 0F 00 00 00 00 00 FF 0F A7 [07:21:20]process_action close_receipt done [07:21:20]requested_data is exist [07:21:20]produce_requested_data [07:21:20]requested_item fm.sn is exist - process it [07:21:20]wFMCommunicate request_size=4 [07:21:20]MH_SAM_APDU [07:21:20]CAPDU: 80 11 00 00 [07:21:20]Write to MH i2c: E2 08 00 84 0F 80 11 00 00 00 00 00 00 0D [07:21:20]Write i2c OK [07:21:20]MH_I2C_Read... [07:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:20]Read from MH i2c: E2 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: E2 17 00 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: E2 17 00 84 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 64 [07:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:21:20]wFMCommunicate OK [07:21:20]requested_item fd.num is exist - process it [07:21:20]SAM_PROTO_GetFieldsCounters [07:21:20]wFMCommunicate request_size=4 [07:21:20]MH_SAM_APDU [07:21:20]CAPDU: 80 13 00 00 [07:21:20]Write to MH i2c: E2 08 00 85 0F 80 13 00 00 00 00 00 00 10 [07:21:20]Write i2c OK [07:21:20]MH_I2C_Read... [07:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:21]Read from MH i2c: E2 [07:21:21]MH_I2C_Read... [07:21:21]Read from MH i2c: E2 62 00 [07:21:21]MH_I2C_Read... [07:21:21]Read from MH i2c: E2 62 00 85 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 21 02 00 0E 04 04 00 C5 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 58 [07:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 21 02 00 0E 04 04 00 C5 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 [07:21:21]wFMCommunicate OK [07:21:21]SAM_PROTO_GetFieldsCounters done [07:21:21]requested_item shift.num is exist - process it [07:21:21]requested_item shift.opened is exist - process it [07:21:21]req_shift_opened [07:21:21]FM_GetShiftState [07:21:21]SAM_PROTO_GetShiftState [07:21:21]wFMCommunicate request_size=4 [07:21:21]MH_SAM_APDU [07:21:21]CAPDU: 80 13 01 00 [07:21:21]Write to MH i2c: E2 08 00 86 0F 80 13 01 00 00 00 00 00 12 [07:21:21]Write i2c OK [07:21:21]MH_I2C_Read... [07:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:21]Read from MH i2c: E2 [07:21:21]MH_I2C_Read... [07:21:21]Read from MH i2c: E2 0E 00 [07:21:21]MH_I2C_Read... [07:21:21]Read from MH i2c: E2 0E 00 86 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A3 [07:21:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:21:21]wFMCommunicate OK [07:21:21]SAM_PROTO_GetShiftState done [07:21:21]FM_GetShiftState done [07:21:21]req_shift_opened done [07:21:21]requested_item shift.open_date is exist - process it [07:21:21]req_shift_open_date [07:21:21]req_shift_open_date done [07:21:21]produce_requested_data done [07:21:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139539,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:21:21]process_action_free close_receipt [07:21:21]json_value_free [07:21:21]json_value_free done [07:21:21]process_json_proto returns [07:21:21]Send response to host [07:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139539,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:21:21]free response buf [07:21:21]execute_script done [07:21:21]execute_script returns [07:21:21]free content buf [07:21:21]Sock 7.Close socket [07:21:21]Sock 7.Thread stoped [07:21:24]accept exits with 9 [07:21:24]New connection [07:21:24]New thread 3067215204 created [07:21:24]Thread 3067071844 joined [07:21:24]Waiting for new connection... [07:21:24] Sock 9.Parse request [07:21:24]Sock 9.Check first char [07:21:24]Sock 9.First char is OK [07:21:24]request: POST /json_proto HTTP/1.0 [07:21:24]Method: POST [07:21:24]URL: /json_proto [07:21:24]Method is POST - this is cgi request [07:21:24]url: /json_proto [07:21:24]query_string will be loaded in cgi processing [07:21:24]execute_cgi json_proto POST (null) [07:21:24]execute_cgi path=json_proto method=POST [07:21:24]POST find Content-Length [07:21:24]Host: 172.17.45.67:8080 [07:21:24]Content-Length: 834 [07:21:24]Content-Type: application/json [07:21:24] [07:21:24]POST finish read [07:21:24]Found Content-Length = 834 [07:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 600.00, "payments": [ { "type": 1, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:24]execute_script... [07:21: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)593381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 600.00, "payments": [ { "type": 1, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:24]POST & json_proto [07:21:24]process_json_proto [07:21:24]json parsed OK: [07:21:24]protocol is kg_v1.0 [07:21:24]action value=close_receipt [07:21:24]process_action close_receipt [07:21:24]cmd_close_receipt [07:21:24]MH_GetDate [07:21:24]Write to MH i2c: F0 00 00 87 0F 85 [07:21:24]Write i2c OK [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: F0 [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: F0 09 00 [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: F0 09 00 87 0F 00 F7 43 C4 66 5F 7F 2B 66 61 [07:21:24]GetLastDocTimeStamp 1724138479 [07:21:24]current date 1724138487 [07:21:24]FM_GetShiftState [07:21:24]SAM_PROTO_GetShiftState [07:21:24]wFMCommunicate request_size=4 [07:21:24]MH_SAM_APDU [07:21:24]CAPDU: 80 13 01 00 [07:21:24]Write to MH i2c: E2 08 00 88 0F 80 13 01 00 00 00 00 00 14 [07:21:24]Write i2c OK [07:21:24]MH_I2C_Read... [07:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:24]Read from MH i2c: E2 [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: E2 0E 00 [07:21:24]MH_I2C_Read... [07:21:24]Read from MH i2c: E2 0E 00 88 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A5 [07:21:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:21:24]wFMCommunicate OK [07:21:24]SAM_PROTO_GetShiftState done [07:21:24]FM_GetShiftState done [07:21:24]opened in 1724113785 [07:21:24]opened+sec_in_day 1724200185 [07:21:24]quantity*price = 60003 [07:21:24]sum+1 = 60004 [07:21:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 12 20.08.2024 07:21 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139540 ФПД: 25163060623984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T072127&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139540&fm=25163060623984&tin=02508201610067®Number=0000000000092569&sum=60000 [07:21:25]StoreToDocumentArchive [07:21:25]shift 453 fd 139540 [07:21:25]save to /storage/0453/doc_00139540 [07:21:25]save last doc name /storage/0453/doc_00139540 to /storage/kkm_last_doc_name [07:21:25]save OK [07:21:25]Clear old archive folders... [07:21:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:25]tlvbuf is 00CFA900 [07:21:25]SAM_PROTO_ClearQueue [07:21:25]wFMCommunicate request_size=4 [07:21:25]MH_SAM_APDU [07:21:25]CAPDU: 80 09 00 00 [07:21:25]Write to MH i2c: E2 08 00 95 0F 80 09 00 00 00 00 00 00 16 [07:21:25]Write i2c OK [07:21:25]MH_I2C_Read... [07:21:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:25]Read from MH i2c: E2 [07:21:25]MH_I2C_Read... [07:21:25]Read from MH i2c: E2 03 00 [07:21:25]MH_I2C_Read... [07:21:25]Read from MH i2c: E2 03 00 95 0F 00 90 00 18 [07:21:25]RAPDU: 90 00 [07:21:25]wFMCommunicate OK [07:21:25]SAM_PROTO_ClearQueue done [07:21:25]KKMCreateOFDPacket [07:21:25]OFDProtocolAddRootSTLVToBuf [07:21:25]FM_MakeSignedData [07:21:25]FM_MakeSignedData [07:21:25]SAM_PROTO_SignData [07:21:25]wFMCommunicate request_size=4 [07:21:25]MH_SAM_APDU [07:21:25]CAPDU: 80 0D 01 02 [07:21:25]Write to MH i2c: E2 08 00 96 0F 80 0D 01 02 00 00 00 00 1E [07:21:25]Write i2c OK [07:21:25]MH_I2C_Read... [07:21:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:25]Read from MH i2c: E2 [07:21:25]MH_I2C_Read... [07:21:25]Read from MH i2c: E2 03 00 [07:21:25]MH_I2C_Read... [07:21:25]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [07:21:25]RAPDU: 90 00 [07:21:25]wFMCommunicate OK [07:21:25]wFMCommunicate request_size=255 [07:21:25]MH_SAM_APDU [07:21:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F7 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 21 02 00 35 04 06 00 16 [07:21:25]Write to MH i2c: E2 02 01 97 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F7 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 21 02 00 35 04 06 00 16 00 00 F1 [07:21:25]Write i2c OK [07:21:25]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [07:21:26]RAPDU: 90 00 [07:21:26]wFMCommunicate OK [07:21:26]wFMCommunicate request_size=10 [07:21:26]MH_SAM_APDU [07:21:26]CAPDU: 80 0D 02 02 05 E2 BB 4A 3A 70 [07:21:26]Write to MH i2c: E2 0D 00 98 0F 80 0D 02 02 05 00 E2 BB 4A 3A 70 00 00 BC [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [07:21:26]RAPDU: 90 00 [07:21:26]wFMCommunicate OK [07:21:26]wFMCommunicate request_size=4 [07:21:26]MH_SAM_APDU [07:21:26]CAPDU: 80 0D 03 02 [07:21:26]Write to MH i2c: E2 08 00 99 0F 80 0D 03 02 00 00 00 00 23 [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 0B 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 0B 00 99 0F 00 4D E9 6E 4C 81 9F 15 22 90 00 6B [07:21:26]RAPDU: 4D E9 6E 4C 81 9F 15 22 90 00 [07:21:26]wFMCommunicate OK [07:21:26]SAM_PROTO_SignData done [07:21:26]FM_MakeSignedData done [07:21:26]CreateOFDProtocolMessage [07:21:26]wFMCommunicate request_size=4 [07:21:26]MH_SAM_APDU [07:21:26]CAPDU: 80 11 00 00 [07:21:26]Write to MH i2c: E2 08 00 9A 0F 80 11 00 00 00 00 00 00 23 [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:26]Read from MH i2c: E2 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 17 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: E2 17 00 9A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [07:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:21:26]wFMCommunicate OK [07:21:26]CreateOFDProtocolMessage done [07:21:26]OFDSenderStorePacket 139540 [07:21:26]StoreOFDPacket docnum=139540 [07:21:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 82 7F 07 01 A5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F7 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 21 02 00 35 04 06 00 16 E2 BB 4A 3A 70 4D E9 6E 4C 81 9F 15 22 [07:21:26]CheckFolder [07:21:26]dirname=/storage/ofd_packets [07:21:26]CheckFolder done [07:21:26]ProducePacketName [07:21:26]name=ofd_packets/00139540 [07:21:26]NVStorageSaveData ofd_packets/00139540 [07:21:26]File name is /storage/ofd_packets/00139540 [07:21:26]Write 301 bytes [07:21:26]NVStorageSaveData done [07:21:26]OFDSenderStorePacket done [07:21:26]KKMCreateOFDPacket done [07:21:26]NVStorageSaveData kkm_last_timestamp [07:21:26]File name is /storage/kkm_last_timestamp [07:21:26]Write 4 bytes [07:21:26]NVStorageSaveData done [07:21:26]ExternCall_PrintAddStr [07:21:26]wPrintStart [07:21:26]Write to MH i2c: 01 00 00 9B 0F AA [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: 01 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: 01 07 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: 01 07 00 9B 0F 00 00 00 00 00 FF 0F BF [07:21:26]RasterBufferAndPrint [07:21:26]line Счет N : (1)593381 [07:21:26]line ИНН: 02508201610067 [07:21:26]line Контрольно-Кассовый Чек [07:21:26]line ПРОДАЖА [07:21:26]line ТРК (МРК, ГНК) : 62 [07:21:26]line Товар: 2710124130 [07:21:26]line Аи-92-К-5 [07:21:26]line 8.850 * 67.80 [07:21:26]line = 600.03 [07:21:26]line НДС 12% НСП 1% [07:21:26]line > о реализуемом товаре [07:21:26]line ОКРУГЛЕНИЕ: -0.03 [07:21:26]line ИТОГО: 600.00 [07:21:26]line НСП 1% : 5.31 [07:21:26]line НДС 12% : 63.72 [07:21:26]line Наличными: 0.00 [07:21:26]line Безнал.: 600.00 [07:21:26]line Место: АЗС № 136 "Партнер Нефть" [07:21:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:21:26]line СНО: Общий режим [07:21:26]line Чек 12 20.08.2024 07:21 [07:21:26]line Смена: 453 ФФД: 1.0 [07:21:26]line ЗНМ: 0300000067 [07:21:26]line РНМ: 0000000000092569 [07:21:26]line Версия ККМ: 001 [07:21:26]line Платежная система: Бакай Банк [07:21:26]line ФМ: 0000000000871776 [07:21:26]line ФД: 139540 [07:21:26]line ФПД: 25163060623984 [07:21:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T072127&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139540&fm=25163060623984&tin=02508201610067®Number=0000000000092569&sum=60000 [07:21:26]written 0, free lines is 4095 [07:21:26]OFD Sender: Processing packet 139540 [packets to send 137, broken 136] [07:21:26]ProducePacketName [07:21:26]name=ofd_packets/00139540 [07:21:26]OFD Sender: To server: pG, [07:21:26]CommunicateWithHost lk.salyk.kg:30040 [07:21:26]ConnectInit lk.salyk.kg [07:21:26]Connected sock=10 [07:21:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 82 7F 07 01 A5 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F7 43 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 21 02 00 35 04 06 00 16 E2 BB 4A 3A 70 4D E9 6E 4C 81 9F 15 22 [07:21:26]Write to MH i2c: 01 00 00 C6 0F D5 [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: 01 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: 01 07 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 CE 0C B6 [07:21:26]RasterBufferAndPrint [07:21:26]line [07:21:26]line [07:21:26]line [07:21:26]line [07:21:26]line [07:21:26]written 0, free lines is 3290 [07:21:26]MH_Cut [07:21:26]Write to MH i2c: D1 01 00 CD 0F 01 AE [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: D1 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: D1 01 00 [07:21:26]MH_I2C_Read... [07:21:26]Read from MH i2c: D1 01 00 CD 0F 00 AD [07:21:26]Write to MH i2c: 01 00 00 CE 0F DD [07:21:26]Write i2c OK [07:21:26]MH_I2C_Read... [07:21:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 46 0C 47 00 86 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 21 02 00 F4 03 04 00 8A EA C3 66 B6 04 01 00 00 73 E1 19 3B 61 03 CE 8D [07:21:26]CommunicateWithHost err = 0 [07:21:26]CheckOFDResponse [07:21:26]1017 (14) - 77093643461234 [07:21:26]1041 (16) - 0000000000871776 [07:21:26]1040 (4) - 139540 [07:21:26]1012 (4) - 20.08.2024 00:59 [07:21:26]1206 (1) - 0 [07:21:26]OFD Sender: Remove packet 139540 [07:21:26]ProducePacketName [07:21:26]name=ofd_packets/00139540 [07:21:26]NVStorageDeleteData [07:21:27]OFD Sender: No OFD packet to send [07:21:27]*** Cut start [07:21:27]*** Partial cut [07:21:27]*** CUTSNS_PIN = 1 [07:21:27]*** CUTSNS_PIN = 0 [07:21:27]*** Brake cut motor [07:21:28]Read from MH i2c: 01 [07:21:28]MH_I2C_Read... [07:21:28]*** Stop cut motor [07:21:28]*** Cut end [07:21:28]Read from MH i2c: 01 07 00 [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: 01 07 00 CE 0F 00 00 00 00 00 FF 0F F2 [07:21:28]process_action close_receipt done [07:21:28]requested_data is exist [07:21:28]produce_requested_data [07:21:28]requested_item fm.sn is exist - process it [07:21:28]wFMCommunicate request_size=4 [07:21:28]MH_SAM_APDU [07:21:28]CAPDU: 80 11 00 00 [07:21:28]Write to MH i2c: E2 08 00 CF 0F 80 11 00 00 00 00 00 00 58 [07:21:28]Write i2c OK [07:21:28]MH_I2C_Read... [07:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:28]Read from MH i2c: E2 [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: E2 17 00 [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: E2 17 00 CF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AF [07:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:21:28]wFMCommunicate OK [07:21:28]requested_item fd.num is exist - process it [07:21:28]SAM_PROTO_GetFieldsCounters [07:21:28]wFMCommunicate request_size=4 [07:21:28]MH_SAM_APDU [07:21:28]CAPDU: 80 13 00 00 [07:21:28]Write to MH i2c: E2 08 00 D0 0F 80 13 00 00 00 00 00 00 5B [07:21:28]Write i2c OK [07:21:28]MH_I2C_Read... [07:21:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:28]Read from MH i2c: E2 [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: E2 62 00 [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: E2 62 00 D0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 21 02 00 0E 04 04 00 C5 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 A7 [07:21:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 21 02 00 0E 04 04 00 C5 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 [07:21:28]wFMCommunicate OK [07:21:28]SAM_PROTO_GetFieldsCounters done [07:21:28]requested_item shift.num is exist - process it [07:21:28]requested_item shift.opened is exist - process it [07:21:28]req_shift_opened [07:21:28]FM_GetShiftState [07:21:28]SAM_PROTO_GetShiftState [07:21:28]wFMCommunicate request_size=4 [07:21:28]MH_SAM_APDU [07:21:28]CAPDU: 80 13 01 00 [07:21:28]Write to MH i2c: E2 08 00 D1 0F 80 13 01 00 00 00 00 00 5D [07:21:28]Write i2c OK [07:21:28]MH_I2C_Read... [07:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:28]Read from MH i2c: E2 [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: E2 0E 00 [07:21:28]MH_I2C_Read... [07:21:28]Read from MH i2c: E2 0E 00 D1 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EE [07:21:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:21:28]wFMCommunicate OK [07:21:28]SAM_PROTO_GetShiftState done [07:21:28]FM_GetShiftState done [07:21:28]req_shift_opened done [07:21:28]requested_item shift.open_date is exist - process it [07:21:28]req_shift_open_date [07:21:28]req_shift_open_date done [07:21:28]produce_requested_data done [07:21:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139540,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:21:28]process_action_free close_receipt [07:21:28]json_value_free [07:21:28]json_value_free done [07:21:28]process_json_proto returns [07:21:28]Send response to host [07:21:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139540,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:21:28]free response buf [07:21:28]execute_script done [07:21:28]execute_script returns [07:21:28]free content buf [07:21:28]Sock 9.Close socket [07:21:28]Sock 9.Thread stoped [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:01]recv_with_timeout no data received [07:26:02]OFD Sender: No OFD packet to send [07:26:03]accept exits with 7 [07:26:03]New connection [07:26:03]New thread 3067071844 created [07:26:03]Thread 3067215204 joined [07:26:03]Waiting for new connection... [07:26:03] Sock 7.Parse request [07:26:03]Sock 7.Check first char [07:26:03]Sock 7.First char is OK [07:26:03]request: POST /json_proto HTTP/1.0 [07:26:03]Method: POST [07:26:03]URL: /json_proto [07:26:03]Method is POST - this is cgi request [07:26:03]url: /json_proto [07:26:03]query_string will be loaded in cgi processing [07:26:03]execute_cgi json_proto POST (null) [07:26:03]execute_cgi path=json_proto method=POST [07:26:03]POST find Content-Length [07:26:03]Host: 172.17.45.67:8080 [07:26:03]Content-Length: 658 [07:26:03]Content-Type: application/json [07:26:03] [07:26:03]POST finish read [07:26:03]Found Content-Length = 658 [07:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 3.640, "sum" : 250.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:03]execute_script... [07:26: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)593383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 3.640, "sum" : 250.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:03]POST & json_proto [07:26:03]process_json_proto [07:26:03]json parsed OK: [07:26:03]protocol is kg_v1.0 [07:26:03]action value=close_receipt [07:26:03]process_action close_receipt [07:26:03]cmd_close_receipt [07:26:03]MH_GetDate [07:26:03]Write to MH i2c: F0 00 00 D2 0F D0 [07:26:03]Write i2c OK [07:26:03]MH_I2C_Read... [07:26:03]Read from MH i2c: F0 [07:26:03]MH_I2C_Read... [07:26:03]Read from MH i2c: F0 09 00 [07:26:03]MH_I2C_Read... [07:26:03]Read from MH i2c: F0 09 00 D2 0F 00 0E 45 C4 66 5F 7F 2B 66 C5 [07:26:03]GetLastDocTimeStamp 1724138487 [07:26:03]current date 1724138766 [07:26:03]FM_GetShiftState [07:26:03]SAM_PROTO_GetShiftState [07:26:03]wFMCommunicate request_size=4 [07:26:03]MH_SAM_APDU [07:26:03]CAPDU: 80 13 01 00 [07:26:03]Write to MH i2c: E2 08 00 D3 0F 80 13 01 00 00 00 00 00 5F [07:26:03]Write i2c OK [07:26:03]MH_I2C_Read... [07:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:03]Read from MH i2c: E2 [07:26:03]MH_I2C_Read... [07:26:03]Read from MH i2c: E2 0E 00 [07:26:03]MH_I2C_Read... [07:26:03]Read from MH i2c: E2 0E 00 D3 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F0 [07:26:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:26:03]wFMCommunicate OK [07:26:03]SAM_PROTO_GetShiftState done [07:26:03]FM_GetShiftState done [07:26:03]opened in 1724113785 [07:26:03]opened+sec_in_day 1724200185 [07:26:03]quantity*price = 25043 [07:26:03]sum+1 = 25044 [07:26:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 250.00 Внесено: 400.00 СДАЧА: 150.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 13 20.08.2024 07:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139541 ФПД: 28455293630243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T072606&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139541&fm=28455293630243&tin=02508201610067®Number=0000000000092569&sum=25000 [07:26:05]StoreToDocumentArchive [07:26:05]shift 453 fd 139541 [07:26:05]save to /storage/0453/doc_00139541 [07:26:05]save last doc name /storage/0453/doc_00139541 to /storage/kkm_last_doc_name [07:26:05]save OK [07:26:05]Clear old archive folders... [07:26:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [07:26:05]tlvbuf is B6EE80F0 [07:26:05]SAM_PROTO_ClearQueue [07:26:05]wFMCommunicate request_size=4 [07:26:05]MH_SAM_APDU [07:26:05]CAPDU: 80 09 00 00 [07:26:05]Write to MH i2c: E2 08 00 E0 0F 80 09 00 00 00 00 00 00 61 [07:26:05]Write i2c OK [07:26:05]MH_I2C_Read... [07:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:05]Read from MH i2c: E2 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [07:26:05]RAPDU: 90 00 [07:26:05]wFMCommunicate OK [07:26:05]SAM_PROTO_ClearQueue done [07:26:05]KKMCreateOFDPacket [07:26:05]OFDProtocolAddRootSTLVToBuf [07:26:05]FM_MakeSignedData [07:26:05]FM_MakeSignedData [07:26:05]SAM_PROTO_SignData [07:26:05]wFMCommunicate request_size=4 [07:26:05]MH_SAM_APDU [07:26:05]CAPDU: 80 0D 01 02 [07:26:05]Write to MH i2c: E2 08 00 E1 0F 80 0D 01 02 00 00 00 00 69 [07:26:05]Write i2c OK [07:26:05]MH_I2C_Read... [07:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:05]Read from MH i2c: E2 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [07:26:05]RAPDU: 90 00 [07:26:05]wFMCommunicate OK [07:26:05]wFMCommunicate request_size=253 [07:26:05]MH_SAM_APDU [07:26:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D3 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0E 45 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 21 02 00 35 04 06 00 19 E1 43 AB 37 23 [07:26:05]Write to MH i2c: E2 00 01 E2 0F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D3 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0E 45 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 21 02 00 35 04 06 00 19 E1 43 AB 37 23 00 00 C6 [07:26:05]Write i2c OK [07:26:05]MH_I2C_Read... [07:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:05]Read from MH i2c: E2 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [07:26:05]RAPDU: 90 00 [07:26:05]wFMCommunicate OK [07:26:05]wFMCommunicate request_size=4 [07:26:05]MH_SAM_APDU [07:26:05]CAPDU: 80 0D 03 02 [07:26:05]Write to MH i2c: E2 08 00 E3 0F 80 0D 03 02 00 00 00 00 6D [07:26:05]Write i2c OK [07:26:05]MH_I2C_Read... [07:26:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:05]Read from MH i2c: E2 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 0B 00 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 0B 00 E3 0F 00 CB 81 E5 04 7D B1 A5 98 90 00 0E [07:26:05]RAPDU: CB 81 E5 04 7D B1 A5 98 90 00 [07:26:05]wFMCommunicate OK [07:26:05]SAM_PROTO_SignData done [07:26:05]FM_MakeSignedData done [07:26:05]CreateOFDProtocolMessage [07:26:05]wFMCommunicate request_size=4 [07:26:05]MH_SAM_APDU [07:26:05]CAPDU: 80 11 00 00 [07:26:05]Write to MH i2c: E2 08 00 E4 0F 80 11 00 00 00 00 00 00 6D [07:26:05]Write i2c OK [07:26:05]MH_I2C_Read... [07:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:05]Read from MH i2c: E2 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 17 00 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 17 00 E4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [07:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:26:05]wFMCommunicate OK [07:26:05]CreateOFDProtocolMessage done [07:26:05]OFDSenderStorePacket 139541 [07:26:05]StoreOFDPacket docnum=139541 [07:26:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 64 D6 00 01 9D DE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D3 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0E 45 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 21 02 00 35 04 06 00 19 E1 43 AB 37 23 CB 81 E5 04 7D B1 A5 98 [07:26:05]CheckFolder [07:26:05]dirname=/storage/ofd_packets [07:26:05]CheckFolder done [07:26:05]ProducePacketName [07:26:05]name=ofd_packets/00139541 [07:26:05]NVStorageSaveData ofd_packets/00139541 [07:26:05]File name is /storage/ofd_packets/00139541 [07:26:05]Write 294 bytes [07:26:05]NVStorageSaveData done [07:26:05]OFDSenderStorePacket done [07:26:05]KKMCreateOFDPacket done [07:26:05]NVStorageSaveData kkm_last_timestamp [07:26:05]File name is /storage/kkm_last_timestamp [07:26:05]Write 4 bytes [07:26:05]NVStorageSaveData done [07:26:05]ExternCall_PrintAddStr [07:26:05]wPrintStart [07:26:05]Write to MH i2c: 01 00 00 E5 0F F4 [07:26:05]Write i2c OK [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: 01 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: 01 07 00 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: 01 07 00 E5 0F 00 00 00 00 00 FF 0F 09 [07:26:05]RasterBufferAndPrint [07:26:05]line Счет N : (1)593383 [07:26:05]line ИНН: 02508201610067 [07:26:05]line Контрольно-Кассовый Чек [07:26:05]line ПРОДАЖА [07:26:05]line ТРК (МРК, ГНК) : 53 [07:26:05]line Товар: 2710124130 [07:26:05]line SU-92 [07:26:05]line 3.640 * 68.80 [07:26:05]line = 250.43 [07:26:05]line НДС 12% НСП 1% [07:26:05]line > о реализуемом товаре [07:26:05]line ОКРУГЛЕНИЕ: -0.43 [07:26:05]line ИТОГО: 250.00 [07:26:05]line Внесено: 400.00 [07:26:05]line СДАЧА: 150.00 [07:26:05]line НСП 1% : 2.22 [07:26:05]line НДС 12% : 26.59 [07:26:05]line Наличными: 250.00 [07:26:05]line Безнал.: 0.00 [07:26:05]line Место: АЗС № 136 "Партнер Нефть" [07:26:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:26:05]line СНО: Общий режим [07:26:05]line Чек 13 20.08.2024 07:26 [07:26:05]line Смена: 453 ФФД: 1.0 [07:26:05]line ЗНМ: 0300000067 [07:26:05]line РНМ: 0000000000092569 [07:26:05]line Версия ККМ: 001 [07:26:05]line ФМ: 0000000000871776 [07:26:05]line ФД: 139541 [07:26:05]line ФПД: 28455293630243 [07:26:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T072606&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139541&fm=28455293630243&tin=02508201610067®Number=0000000000092569&sum=25000 [07:26:05]OFD Sender: Processing packet 139541 [packets to send 137, broken 136] [07:26:05]ProducePacketName [07:26:05]name=ofd_packets/00139541 [07:26:05]OFD Sender: To server: pG, [07:26:05]CommunicateWithHost lk.salyk.kg:30040 [07:26:05]ConnectInit lk.salyk.kg [07:26:05]written 0, free lines is 4095 [07:26:06]Connected sock=10 [07:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 64 D6 00 01 9D DE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D3 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 0E 45 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 21 02 00 35 04 06 00 19 E1 43 AB 37 23 CB 81 E5 04 7D B1 A5 98 [07:26:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AA 62 47 00 E7 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 21 02 00 F4 03 04 00 A2 EB C3 66 B6 04 01 00 00 CC F9 0F F7 29 70 D9 D7 [07:26:06]CommunicateWithHost err = 0 [07:26:06]CheckOFDResponse [07:26:06]1017 (14) - 77093643461234 [07:26:06]1041 (16) - 0000000000871776 [07:26:06]1040 (4) - 139541 [07:26:06]1012 (4) - 20.08.2024 01:04 [07:26:06]1206 (1) - 0 [07:26:06]OFD Sender: Remove packet 139541 [07:26:06]ProducePacketName [07:26:06]name=ofd_packets/00139541 [07:26:06]NVStorageDeleteData [07:26:06]Write to MH i2c: 01 00 00 10 10 20 [07:26:06]Write i2c OK [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: 01 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: 01 07 00 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: 01 07 00 10 10 00 00 00 00 00 D3 0C 06 [07:26:06]RasterBufferAndPrint [07:26:06]line [07:26:06]line [07:26:06]line [07:26:06]line [07:26:06]line [07:26:06]written 0, free lines is 3289 [07:26:06]MH_Cut [07:26:06]Write to MH i2c: D1 01 00 17 10 01 F9 [07:26:06]Write i2c OK [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: D1 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: D1 01 00 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: D1 01 00 17 10 00 F8 [07:26:06]Write to MH i2c: 01 00 00 18 10 28 [07:26:06]Write i2c OK [07:26:06]MH_I2C_Read... [07:26:06]OFD Sender: No OFD packet to send [07:26:07]*** Cut start [07:26:07]*** Partial cut [07:26:07]*** CUTSNS_PIN = 1 [07:26:07]*** CUTSNS_PIN = 0 [07:26:07]*** Brake cut motor [07:26:07]Read from MH i2c: 01 [07:26:07]MH_I2C_Read... [07:26:07]*** Stop cut motor [07:26:07]*** Cut end [07:26:07]Read from MH i2c: 01 07 00 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: 01 07 00 18 10 00 00 00 00 00 FF 0F 3D [07:26:07]process_action close_receipt done [07:26:07]requested_data is exist [07:26:07]produce_requested_data [07:26:07]requested_item fm.sn is exist - process it [07:26:07]wFMCommunicate request_size=4 [07:26:07]MH_SAM_APDU [07:26:07]CAPDU: 80 11 00 00 [07:26:07]Write to MH i2c: E2 08 00 19 10 80 11 00 00 00 00 00 00 A3 [07:26:07]Write i2c OK [07:26:07]MH_I2C_Read... [07:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:07]Read from MH i2c: E2 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: E2 17 00 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: E2 17 00 19 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [07:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:26:07]wFMCommunicate OK [07:26:07]requested_item fd.num is exist - process it [07:26:07]SAM_PROTO_GetFieldsCounters [07:26:07]wFMCommunicate request_size=4 [07:26:07]MH_SAM_APDU [07:26:07]CAPDU: 80 13 00 00 [07:26:07]Write to MH i2c: E2 08 00 1A 10 80 13 00 00 00 00 00 00 A6 [07:26:07]Write i2c OK [07:26:07]MH_I2C_Read... [07:26:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:07]Read from MH i2c: E2 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: E2 62 00 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: E2 62 00 1A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 21 02 00 0E 04 04 00 C5 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 F6 [07:26:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 21 02 00 0E 04 04 00 C5 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 [07:26:07]wFMCommunicate OK [07:26:07]SAM_PROTO_GetFieldsCounters done [07:26:07]requested_item shift.num is exist - process it [07:26:07]requested_item shift.opened is exist - process it [07:26:07]req_shift_opened [07:26:07]FM_GetShiftState [07:26:07]SAM_PROTO_GetShiftState [07:26:07]wFMCommunicate request_size=4 [07:26:07]MH_SAM_APDU [07:26:07]CAPDU: 80 13 01 00 [07:26:07]Write to MH i2c: E2 08 00 1B 10 80 13 01 00 00 00 00 00 A8 [07:26:07]Write i2c OK [07:26:07]MH_I2C_Read... [07:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:07]Read from MH i2c: E2 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: E2 0E 00 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: E2 0E 00 1B 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 39 [07:26:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:26:07]wFMCommunicate OK [07:26:07]SAM_PROTO_GetShiftState done [07:26:07]FM_GetShiftState done [07:26:07]req_shift_opened done [07:26:07]requested_item shift.open_date is exist - process it [07:26:07]req_shift_open_date [07:26:07]req_shift_open_date done [07:26:07]produce_requested_data done [07:26:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139541,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:26:07]process_action_free close_receipt [07:26:07]json_value_free [07:26:07]json_value_free done [07:26:07]process_json_proto returns [07:26:07]Send response to host [07:26:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139541,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:26:07]free response buf [07:26:07]execute_script done [07:26:07]execute_script returns [07:26:07]free content buf [07:26:07]Sock 7.Close socket [07:26:07]Sock 7.Thread stoped [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]accept exits with 9 [07:32:47]New connection [07:32:47]New thread 3067215204 created [07:32:47]Thread 3067071844 joined [07:32:47]Waiting for new connection... [07:32:47] Sock 9.Parse request [07:32:47]Sock 9.Check first char [07:32:47]Sock 9.First char is OK [07:32:47]request: POST /json_proto HTTP/1.0 [07:32:47]Method: POST [07:32:47]URL: /json_proto [07:32:47]Method is POST - this is cgi request [07:32:47]url: /json_proto [07:32:47]query_string will be loaded in cgi processing [07:32:47]execute_cgi json_proto POST (null) [07:32:47]execute_cgi path=json_proto method=POST [07:32:47]POST find Content-Length [07:32:47]Host: 172.17.45.67:8080 [07:32:47]Content-Length: 677 [07:32:47]Content-Type: application/json [07:32:47] [07:32:47]POST finish read [07:32:47]Found Content-Length = 677 [07:32:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:47]execute_script... [07:32: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)593384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:47]POST & json_proto [07:32:47]process_json_proto [07:32:47]json parsed OK: [07:32:47]protocol is kg_v1.0 [07:32:47]action value=close_receipt [07:32:47]process_action close_receipt [07:32:47]cmd_close_receipt [07:32:47]MH_GetDate [07:32:47]Write to MH i2c: F0 00 00 1C 10 1B [07:32:47]Write i2c OK [07:32:47]MH_I2C_Read... [07:32:47]Read from MH i2c: F0 [07:32:47]MH_I2C_Read... [07:32:47]Read from MH i2c: F0 09 00 [07:32:47]MH_I2C_Read... [07:32:47]Read from MH i2c: F0 09 00 1C 10 00 A1 46 C4 66 5F 7F 2B 66 A4 [07:32:47]GetLastDocTimeStamp 1724138766 [07:32:47]current date 1724139169 [07:32:47]FM_GetShiftState [07:32:47]SAM_PROTO_GetShiftState [07:32:47]wFMCommunicate request_size=4 [07:32:47]MH_SAM_APDU [07:32:47]CAPDU: 80 13 01 00 [07:32:47]Write to MH i2c: E2 08 00 1D 10 80 13 01 00 00 00 00 00 AA [07:32:47]Write i2c OK [07:32:47]MH_I2C_Read... [07:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:47]Read from MH i2c: E2 [07:32:47]MH_I2C_Read... [07:32:47]Read from MH i2c: E2 0E 00 [07:32:47]MH_I2C_Read... [07:32:47]Read from MH i2c: E2 0E 00 1D 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3B [07:32:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:32:47]wFMCommunicate OK [07:32:47]SAM_PROTO_GetShiftState done [07:32:47]FM_GetShiftState done [07:32:47]opened in 1724113785 [07:32:47]opened+sec_in_day 1724200185 [07:32:47]quantity*price = 30035 [07:32:47]sum+1 = 30036 [07:32:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 14 20.08.2024 07:32 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139542 ФПД: 181351858782816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T073249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139542&fm=181351858782816&tin=02508201610067®Number=0000000000092569&sum=30000 [07:32:48]StoreToDocumentArchive [07:32:48]shift 453 fd 139542 [07:32:48]save to /storage/0453/doc_00139542 [07:32:48]save last doc name /storage/0453/doc_00139542 to /storage/kkm_last_doc_name [07:32:48]save OK [07:32:48]Clear old archive folders... [07:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:48]tlvbuf is B6F01210 [07:32:48]SAM_PROTO_ClearQueue [07:32:48]wFMCommunicate request_size=4 [07:32:48]MH_SAM_APDU [07:32:48]CAPDU: 80 09 00 00 [07:32:48]Write to MH i2c: E2 08 00 2A 10 80 09 00 00 00 00 00 00 AC [07:32:48]Write i2c OK [07:32:48]MH_I2C_Read... [07:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:48]Read from MH i2c: E2 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 03 00 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [07:32:48]RAPDU: 90 00 [07:32:48]wFMCommunicate OK [07:32:48]SAM_PROTO_ClearQueue done [07:32:48]KKMCreateOFDPacket [07:32:48]OFDProtocolAddRootSTLVToBuf [07:32:48]FM_MakeSignedData [07:32:48]FM_MakeSignedData [07:32:48]SAM_PROTO_SignData [07:32:48]wFMCommunicate request_size=4 [07:32:48]MH_SAM_APDU [07:32:48]CAPDU: 80 0D 01 02 [07:32:48]Write to MH i2c: E2 08 00 2B 10 80 0D 01 02 00 00 00 00 B4 [07:32:48]Write i2c OK [07:32:48]MH_I2C_Read... [07:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:48]Read from MH i2c: E2 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 03 00 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [07:32:48]RAPDU: 90 00 [07:32:48]wFMCommunicate OK [07:32:48]wFMCommunicate request_size=255 [07:32:48]MH_SAM_APDU [07:32:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A1 46 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 21 02 00 35 04 06 00 A4 [07:32:48]Write to MH i2c: E2 02 01 2C 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A1 46 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 21 02 00 35 04 06 00 A4 00 00 1E [07:32:48]Write i2c OK [07:32:48]MH_I2C_Read... [07:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:48]Read from MH i2c: E2 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 03 00 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [07:32:48]RAPDU: 90 00 [07:32:48]wFMCommunicate OK [07:32:48]wFMCommunicate request_size=10 [07:32:48]MH_SAM_APDU [07:32:48]CAPDU: 80 0D 02 02 05 F0 45 1F 42 60 [07:32:48]Write to MH i2c: E2 0D 00 2D 10 80 0D 02 02 05 00 F0 45 1F 42 60 00 00 B7 [07:32:48]Write i2c OK [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 [07:32:48]MH_I2C_Read... [07:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:48]Read from MH i2c: E2 03 00 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [07:32:48]RAPDU: 90 00 [07:32:48]wFMCommunicate OK [07:32:48]wFMCommunicate request_size=4 [07:32:48]MH_SAM_APDU [07:32:48]CAPDU: 80 0D 03 02 [07:32:48]Write to MH i2c: E2 08 00 2E 10 80 0D 03 02 00 00 00 00 B9 [07:32:48]Write i2c OK [07:32:48]MH_I2C_Read... [07:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:48]Read from MH i2c: E2 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 0B 00 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 0B 00 2E 10 00 88 77 75 3E F2 9B 28 2A 90 00 4B [07:32:48]RAPDU: 88 77 75 3E F2 9B 28 2A 90 00 [07:32:48]wFMCommunicate OK [07:32:48]SAM_PROTO_SignData done [07:32:48]FM_MakeSignedData done [07:32:48]CreateOFDProtocolMessage [07:32:48]wFMCommunicate request_size=4 [07:32:48]MH_SAM_APDU [07:32:48]CAPDU: 80 11 00 00 [07:32:48]Write to MH i2c: E2 08 00 2F 10 80 11 00 00 00 00 00 00 B9 [07:32:48]Write i2c OK [07:32:48]MH_I2C_Read... [07:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:48]Read from MH i2c: E2 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 17 00 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: E2 17 00 2F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [07:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:32:48]wFMCommunicate OK [07:32:48]CreateOFDProtocolMessage done [07:32:48]OFDSenderStorePacket 139542 [07:32:48]StoreOFDPacket docnum=139542 [07:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3A DF 07 01 56 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A1 46 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 21 02 00 35 04 06 00 A4 F0 45 1F 42 60 88 77 75 3E F2 9B 28 2A [07:32:48]CheckFolder [07:32:48]dirname=/storage/ofd_packets [07:32:48]CheckFolder done [07:32:48]ProducePacketName [07:32:48]name=ofd_packets/00139542 [07:32:48]NVStorageSaveData ofd_packets/00139542 [07:32:48]File name is /storage/ofd_packets/00139542 [07:32:48]Write 301 bytes [07:32:48]NVStorageSaveData done [07:32:48]OFDSenderStorePacket done [07:32:48]KKMCreateOFDPacket done [07:32:48]NVStorageSaveData kkm_last_timestamp [07:32:48]File name is /storage/kkm_last_timestamp [07:32:48]Write 4 bytes [07:32:48]NVStorageSaveData done [07:32:48]ExternCall_PrintAddStr [07:32:48]wPrintStart [07:32:48]Write to MH i2c: 01 00 00 30 10 40 [07:32:48]Write i2c OK [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: 01 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: 01 07 00 [07:32:48]MH_I2C_Read... [07:32:48]Read from MH i2c: 01 07 00 30 10 00 00 00 00 00 FF 0F 55 [07:32:48]RasterBufferAndPrint [07:32:48]line Счет N : (1)593384 [07:32:48]line ИНН: 02508201610067 [07:32:48]line Контрольно-Кассовый Чек [07:32:48]line ПРОДАЖА [07:32:48]line ТРК (МРК, ГНК) : 52 [07:32:48]line Товар: 2710124130 [07:32:48]line Аи-92-К-5 [07:32:48]line 4.430 * 67.80 [07:32:48]line = 300.35 [07:32:48]line НДС 12% НСП 1% [07:32:48]line > о реализуемом товаре [07:32:48]line ОКРУГЛЕНИЕ: -0.35 [07:32:48]line ИТОГО: 300.00 [07:32:48]line Внесено: 300.00 [07:32:48]line СДАЧА: 0.00 [07:32:48]line НСП 1% : 2.66 [07:32:48]line НДС 12% : 31.90 [07:32:48]line Наличными: 300.00 [07:32:48]line Безнал.: 0.00 [07:32:48]line Место: АЗС № 136 "Партнер Нефть" [07:32:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:32:48]line СНО: Общий режим [07:32:48]line Чек 14 20.08.2024 07:32 [07:32:48]line Смена: 453 ФФД: 1.0 [07:32:48]line ЗНМ: 0300000067 [07:32:48]line РНМ: 0000000000092569 [07:32:48]line Версия ККМ: 001 [07:32:48]line ФМ: 0000000000871776 [07:32:48]line ФД: 139542 [07:32:48]line ФПД: 181351858782816 [07:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T073249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139542&fm=181351858782816&tin=02508201610067®Number=0000000000092569&sum=30000 [07:32:48]written 0, free lines is 4095 [07:32:48]OFD Sender: Processing packet 139542 [packets to send 137, broken 136] [07:32:48]ProducePacketName [07:32:48]name=ofd_packets/00139542 [07:32:48]OFD Sender: To server: pG, [07:32:48]CommunicateWithHost lk.salyk.kg:30040 [07:32:48]ConnectInit lk.salyk.kg [07:32:49]Connected sock=10 [07:32:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3A DF 07 01 56 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 A1 46 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 21 02 00 35 04 06 00 A4 F0 45 1F 42 60 88 77 75 3E F2 9B 28 2A [07:32:49]Write to MH i2c: 01 00 00 5B 10 6B [07:32:49]Write i2c OK [07:32:49]MH_I2C_Read... [07:32:49]Read from MH i2c: 01 [07:32:49]MH_I2C_Read... [07:32:49]Read from MH i2c: 01 07 00 [07:32:49]MH_I2C_Read... [07:32:49]Read from MH i2c: 01 07 00 5B 10 00 00 00 00 00 BB 0C 39 [07:32:49]RasterBufferAndPrint [07:32:49]line [07:32:49]line [07:32:49]line [07:32:49]line [07:32:49]line [07:32:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7E B6 47 00 3F 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 21 02 00 F4 03 04 00 35 ED C3 66 B6 04 01 00 00 85 0F 34 E4 7C DD 55 CA [07:32:49]CommunicateWithHost err = 0 [07:32:49]CheckOFDResponse [07:32:49]1017 (14) - 77093643461234 [07:32:49]1041 (16) - 0000000000871776 [07:32:49]1040 (4) - 139542 [07:32:49]1012 (4) - 20.08.2024 01:11 [07:32:49]1206 (1) - 0 [07:32:49]OFD Sender: Remove packet 139542 [07:32:49]ProducePacketName [07:32:49]name=ofd_packets/00139542 [07:32:49]NVStorageDeleteData [07:32:49]written 0, free lines is 3266 [07:32:49]MH_Cut [07:32:49]Write to MH i2c: D1 01 00 62 10 01 44 [07:32:49]Write i2c OK [07:32:49]MH_I2C_Read... [07:32:49]Read from MH i2c: D1 [07:32:49]MH_I2C_Read... [07:32:49]Read from MH i2c: D1 01 00 [07:32:49]MH_I2C_Read... [07:32:49]Read from MH i2c: D1 01 00 62 10 00 43 [07:32:49]Write to MH i2c: 01 00 00 63 10 73 [07:32:49]Write i2c OK [07:32:49]MH_I2C_Read... [07:32:49]OFD Sender: No OFD packet to send [07:32:50]*** Cut start [07:32:50]*** Partial cut [07:32:50]*** CUTSNS_PIN = 1 [07:32:50]*** CUTSNS_PIN = 0 [07:32:50]*** Brake cut motor [07:32:50]Read from MH i2c: 01 [07:32:50]MH_I2C_Read... [07:32:50]*** Stop cut motor [07:32:50]*** Cut end [07:32:50]Read from MH i2c: 01 07 00 [07:32:50]MH_I2C_Read... [07:32:50]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 FF 0F 88 [07:32:50]process_action close_receipt done [07:32:50]requested_data is exist [07:32:50]produce_requested_data [07:32:50]requested_item fm.sn is exist - process it [07:32:50]wFMCommunicate request_size=4 [07:32:50]MH_SAM_APDU [07:32:50]CAPDU: 80 11 00 00 [07:32:50]Write to MH i2c: E2 08 00 64 10 80 11 00 00 00 00 00 00 EE [07:32:50]Write i2c OK [07:32:50]MH_I2C_Read... [07:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:50]Read from MH i2c: E2 [07:32:50]MH_I2C_Read... [07:32:50]Read from MH i2c: E2 17 00 [07:32:50]MH_I2C_Read... [07:32:50]Read from MH i2c: E2 17 00 64 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [07:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:32:50]wFMCommunicate OK [07:32:50]requested_item fd.num is exist - process it [07:32:50]SAM_PROTO_GetFieldsCounters [07:32:50]wFMCommunicate request_size=4 [07:32:50]MH_SAM_APDU [07:32:50]CAPDU: 80 13 00 00 [07:32:50]Write to MH i2c: E2 08 00 65 10 80 13 00 00 00 00 00 00 F1 [07:32:50]Write i2c OK [07:32:50]MH_I2C_Read... [07:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:50]Read from MH i2c: E2 [07:32:50]MH_I2C_Read... [07:32:50]Read from MH i2c: E2 62 00 [07:32:50]MH_I2C_Read... [07:32:50]Read from MH i2c: E2 62 00 65 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 21 02 00 0E 04 04 00 C5 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 45 [07:32:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 21 02 00 0E 04 04 00 C5 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 [07:32:50]wFMCommunicate OK [07:32:50]SAM_PROTO_GetFieldsCounters done [07:32:50]requested_item shift.num is exist - process it [07:32:50]requested_item shift.opened is exist - process it [07:32:50]req_shift_opened [07:32:50]FM_GetShiftState [07:32:50]SAM_PROTO_GetShiftState [07:32:50]wFMCommunicate request_size=4 [07:32:50]MH_SAM_APDU [07:32:50]CAPDU: 80 13 01 00 [07:32:50]Write to MH i2c: E2 08 00 66 10 80 13 01 00 00 00 00 00 F3 [07:32:50]Write i2c OK [07:32:50]MH_I2C_Read... [07:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:50]Read from MH i2c: E2 [07:32:50]MH_I2C_Read... [07:32:50]Read from MH i2c: E2 0E 00 [07:32:50]MH_I2C_Read... [07:32:50]Read from MH i2c: E2 0E 00 66 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 84 [07:32:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:32:50]wFMCommunicate OK [07:32:50]SAM_PROTO_GetShiftState done [07:32:50]FM_GetShiftState done [07:32:50]req_shift_opened done [07:32:50]requested_item shift.open_date is exist - process it [07:32:50]req_shift_open_date [07:32:50]req_shift_open_date done [07:32:50]produce_requested_data done [07:32:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139542,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:32:50]process_action_free close_receipt [07:32:50]json_value_free [07:32:50]json_value_free done [07:32:50]process_json_proto returns [07:32:50]Send response to host [07:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139542,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:32:50]free response buf [07:32:50]execute_script done [07:32:50]execute_script returns [07:32:50]free content buf [07:32:50]Sock 9.Close socket [07:32:50]Sock 9.Thread stoped [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:07]accept exits with 7 [07:35:07]New connection [07:35:07]New thread 3067071844 created [07:35:07]Thread 3067215204 joined [07:35:07]Waiting for new connection... [07:35:07] Sock 7.Parse request [07:35:07]Sock 7.Check first char [07:35:07]Sock 7.First char is OK [07:35:07]request: POST /json_proto HTTP/1.0 [07:35:07]Method: POST [07:35:07]URL: /json_proto [07:35:07]Method is POST - this is cgi request [07:35:07]url: /json_proto [07:35:07]query_string will be loaded in cgi processing [07:35:07]execute_cgi json_proto POST (null) [07:35:07]execute_cgi path=json_proto method=POST [07:35:07]POST find Content-Length [07:35:07]Host: 172.17.45.67:8080 [07:35:07]Content-Length: 678 [07:35:07]Content-Type: application/json [07:35:07] [07:35:07]POST finish read [07:35:07]Found Content-Length = 678 [07:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:07]execute_script... [07:35: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)593385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:07]POST & json_proto [07:35:07]process_json_proto [07:35:07]json parsed OK: [07:35:07]protocol is kg_v1.0 [07:35:07]action value=close_receipt [07:35:07]process_action close_receipt [07:35:07]cmd_close_receipt [07:35:07]MH_GetDate [07:35:07]Write to MH i2c: F0 00 00 67 10 66 [07:35:07]Write i2c OK [07:35:07]MH_I2C_Read... [07:35:07]Read from MH i2c: F0 [07:35:07]MH_I2C_Read... [07:35:07]Read from MH i2c: F0 09 00 [07:35:07]MH_I2C_Read... [07:35:07]Read from MH i2c: F0 09 00 67 10 00 2E 47 C4 66 5F 7F 2B 66 7D [07:35:07]GetLastDocTimeStamp 1724139169 [07:35:07]current date 1724139310 [07:35:07]FM_GetShiftState [07:35:07]SAM_PROTO_GetShiftState [07:35:07]wFMCommunicate request_size=4 [07:35:07]MH_SAM_APDU [07:35:07]CAPDU: 80 13 01 00 [07:35:07]Write to MH i2c: E2 08 00 68 10 80 13 01 00 00 00 00 00 F5 [07:35:07]Write i2c OK [07:35:07]MH_I2C_Read... [07:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:08]Read from MH i2c: E2 [07:35:08]MH_I2C_Read... [07:35:08]Read from MH i2c: E2 0E 00 [07:35:08]MH_I2C_Read... [07:35:08]Read from MH i2c: E2 0E 00 68 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 86 [07:35:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:35:08]wFMCommunicate OK [07:35:08]SAM_PROTO_GetShiftState done [07:35:08]FM_GetShiftState done [07:35:08]opened in 1724113785 [07:35:08]opened+sec_in_day 1724200185 [07:35:08]quantity*price = 70037 [07:35:08]sum+1 = 70038 [07:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 15 20.08.2024 07:35 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139543 ФПД: 8617297427748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T073510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139543&fm=8617297427748&tin=02508201610067®Number=0000000000092569&sum=70000 [07:35:09]StoreToDocumentArchive [07:35:09]shift 453 fd 139543 [07:35:09]save to /storage/0453/doc_00139543 [07:35:09]save last doc name /storage/0453/doc_00139543 to /storage/kkm_last_doc_name [07:35:09]save OK [07:35:09]Clear old archive folders... [07:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:35:09]tlvbuf is 00D49950 [07:35:09]SAM_PROTO_ClearQueue [07:35:09]wFMCommunicate request_size=4 [07:35:09]MH_SAM_APDU [07:35:09]CAPDU: 80 09 00 00 [07:35:09]Write to MH i2c: E2 08 00 75 10 80 09 00 00 00 00 00 00 F7 [07:35:09]Write i2c OK [07:35:09]MH_I2C_Read... [07:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:09]Read from MH i2c: E2 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 03 00 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 03 00 75 10 00 90 00 F9 [07:35:09]RAPDU: 90 00 [07:35:09]wFMCommunicate OK [07:35:09]SAM_PROTO_ClearQueue done [07:35:09]KKMCreateOFDPacket [07:35:09]OFDProtocolAddRootSTLVToBuf [07:35:09]FM_MakeSignedData [07:35:09]FM_MakeSignedData [07:35:09]SAM_PROTO_SignData [07:35:09]wFMCommunicate request_size=4 [07:35:09]MH_SAM_APDU [07:35:09]CAPDU: 80 0D 01 02 [07:35:09]Write to MH i2c: E2 08 00 76 10 80 0D 01 02 00 00 00 00 FF [07:35:09]Write i2c OK [07:35:09]MH_I2C_Read... [07:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:09]Read from MH i2c: E2 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 03 00 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 03 00 76 10 00 90 00 FA [07:35:09]RAPDU: 90 00 [07:35:09]wFMCommunicate OK [07:35:09]wFMCommunicate request_size=255 [07:35:09]MH_SAM_APDU [07:35:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2E 47 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 21 02 00 35 04 06 00 07 [07:35:09]Write to MH i2c: E2 02 01 77 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2E 47 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 21 02 00 35 04 06 00 07 00 00 24 [07:35:09]Write i2c OK [07:35:09]MH_I2C_Read... [07:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:09]Read from MH i2c: E2 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 03 00 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [07:35:09]RAPDU: 90 00 [07:35:09]wFMCommunicate OK [07:35:09]wFMCommunicate request_size=10 [07:35:09]MH_SAM_APDU [07:35:09]CAPDU: 80 0D 02 02 05 D6 5E F3 BD 24 [07:35:09]Write to MH i2c: E2 0D 00 78 10 80 0D 02 02 05 00 D6 5E F3 BD 24 00 00 14 [07:35:09]Write i2c OK [07:35:09]MH_I2C_Read... [07:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:09]Read from MH i2c: E2 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 03 00 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [07:35:09]RAPDU: 90 00 [07:35:09]wFMCommunicate OK [07:35:09]wFMCommunicate request_size=4 [07:35:09]MH_SAM_APDU [07:35:09]CAPDU: 80 0D 03 02 [07:35:09]Write to MH i2c: E2 08 00 79 10 80 0D 03 02 00 00 00 00 04 [07:35:09]Write i2c OK [07:35:09]MH_I2C_Read... [07:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:09]Read from MH i2c: E2 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 0B 00 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 0B 00 79 10 00 DB 01 F5 7A DA F6 8C C3 90 00 6F [07:35:09]RAPDU: DB 01 F5 7A DA F6 8C C3 90 00 [07:35:09]wFMCommunicate OK [07:35:09]SAM_PROTO_SignData done [07:35:09]FM_MakeSignedData done [07:35:09]CreateOFDProtocolMessage [07:35:09]wFMCommunicate request_size=4 [07:35:09]MH_SAM_APDU [07:35:09]CAPDU: 80 11 00 00 [07:35:09]Write to MH i2c: E2 08 00 7A 10 80 11 00 00 00 00 00 00 04 [07:35:09]Write i2c OK [07:35:09]MH_I2C_Read... [07:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:09]Read from MH i2c: E2 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 17 00 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: E2 17 00 7A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [07:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:35:09]wFMCommunicate OK [07:35:09]CreateOFDProtocolMessage done [07:35:09]OFDSenderStorePacket 139543 [07:35:09]StoreOFDPacket docnum=139543 [07:35:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BC A0 07 01 7A F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2E 47 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 21 02 00 35 04 06 00 07 D6 5E F3 BD 24 DB 01 F5 7A DA F6 8C C3 [07:35:09]CheckFolder [07:35:09]dirname=/storage/ofd_packets [07:35:09]CheckFolder done [07:35:09]ProducePacketName [07:35:09]name=ofd_packets/00139543 [07:35:09]NVStorageSaveData ofd_packets/00139543 [07:35:09]File name is /storage/ofd_packets/00139543 [07:35:09]Write 301 bytes [07:35:09]NVStorageSaveData done [07:35:09]OFDSenderStorePacket done [07:35:09]KKMCreateOFDPacket done [07:35:09]NVStorageSaveData kkm_last_timestamp [07:35:09]File name is /storage/kkm_last_timestamp [07:35:09]Write 4 bytes [07:35:09]NVStorageSaveData done [07:35:09]ExternCall_PrintAddStr [07:35:09]wPrintStart [07:35:09]Write to MH i2c: 01 00 00 7B 10 8B [07:35:09]Write i2c OK [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: 01 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: 01 07 00 [07:35:09]MH_I2C_Read... [07:35:09]Read from MH i2c: 01 07 00 7B 10 00 00 00 00 00 FF 0F A0 [07:35:09]RasterBufferAndPrint [07:35:09]line Счет N : (1)593385 [07:35:09]line ИНН: 02508201610067 [07:35:09]line Контрольно-Кассовый Чек [07:35:09]line ПРОДАЖА [07:35:09]line ТРК (МРК, ГНК) : 62 [07:35:09]line Товар: 2710124130 [07:35:09]line Аи-92-К-5 [07:35:09]line 10.330 * 67.80 [07:35:09]line = 700.37 [07:35:09]line НДС 12% НСП 1% [07:35:09]line > о реализуемом товаре [07:35:09]line ОКРУГЛЕНИЕ: -0.37 [07:35:09]line ИТОГО: 700.00 [07:35:09]line Внесено: 700.00 [07:35:09]line СДАЧА: 0.00 [07:35:09]line НСП 1% : 6.20 [07:35:09]line НДС 12% : 74.38 [07:35:09]line Наличными: 700.00 [07:35:09]line Безнал.: 0.00 [07:35:09]line Место: АЗС № 136 "Партнер Нефть" [07:35:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:35:09]line СНО: Общий режим [07:35:09]line Чек 15 20.08.2024 07:35 [07:35:09]line Смена: 453 ФФД: 1.0 [07:35:09]line ЗНМ: 0300000067 [07:35:09]line РНМ: 0000000000092569 [07:35:09]line Версия ККМ: 001 [07:35:09]line ФМ: 0000000000871776 [07:35:09]line ФД: 139543 [07:35:09]line ФПД: 8617297427748 [07:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T073510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139543&fm=8617297427748&tin=02508201610067®Number=0000000000092569&sum=70000 [07:35:09]OFD Sender: Processing packet 139543 [packets to send 137, broken 136] [07:35:09]ProducePacketName [07:35:09]name=ofd_packets/00139543 [07:35:09]OFD Sender: To server: pG, [07:35:09]CommunicateWithHost lk.salyk.kg:30040 [07:35:09]ConnectInit lk.salyk.kg [07:35:09]written 0, free lines is 4095 [07:35:10]Connected sock=10 [07:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BC A0 07 01 7A F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2E 47 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 21 02 00 35 04 06 00 07 D6 5E F3 BD 24 DB 01 F5 7A DA F6 8C C3 [07:35:10]Write to MH i2c: 01 00 00 A6 10 B6 [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: 01 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: 01 07 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 C6 0C 8F [07:35:10]RasterBufferAndPrint [07:35:10]line [07:35:10]line [07:35:10]line [07:35:10]line [07:35:10]line [07:35:10]written 0, free lines is 3276 [07:35:10]MH_Cut [07:35:10]Write to MH i2c: D1 01 00 AD 10 01 8F [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: D1 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: D1 01 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: D1 01 00 AD 10 00 8E [07:35:10]Write to MH i2c: 01 00 00 AE 10 BE [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 9E EE 47 00 68 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 21 02 00 F4 03 04 00 C2 ED C3 66 B6 04 01 00 00 26 DF 44 BF EC E5 C4 60 [07:35:10]CommunicateWithHost err = 0 [07:35:10]CheckOFDResponse [07:35:10]1017 (14) - 77093643461234 [07:35:10]1041 (16) - 0000000000871776 [07:35:10]1040 (4) - 139543 [07:35:10]1012 (4) - 20.08.2024 01:13 [07:35:10]1206 (1) - 0 [07:35:10]OFD Sender: Remove packet 139543 [07:35:10]ProducePacketName [07:35:10]name=ofd_packets/00139543 [07:35:10]NVStorageDeleteData [07:35:10]OFD Sender: No OFD packet to send [07:35:11]*** Cut start [07:35:11]*** Partial cut [07:35:11]*** CUTSNS_PIN = 1 [07:35:11]*** CUTSNS_PIN = 0 [07:35:11]*** Brake cut motor [07:35:11]Read from MH i2c: 01 [07:35:11]MH_I2C_Read... [07:35:11]*** Stop cut motor [07:35:11]*** Cut end [07:35:11]Read from MH i2c: 01 07 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 FF 0F D3 [07:35:11]process_action close_receipt done [07:35:11]requested_data is exist [07:35:11]produce_requested_data [07:35:11]requested_item fm.sn is exist - process it [07:35:11]wFMCommunicate request_size=4 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 11 00 00 [07:35:11]Write to MH i2c: E2 08 00 AF 10 80 11 00 00 00 00 00 00 39 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:11]Read from MH i2c: E2 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 17 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 17 00 AF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [07:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:35:11]wFMCommunicate OK [07:35:11]requested_item fd.num is exist - process it [07:35:11]SAM_PROTO_GetFieldsCounters [07:35:11]wFMCommunicate request_size=4 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 13 00 00 [07:35:11]Write to MH i2c: E2 08 00 B0 10 80 13 00 00 00 00 00 00 3C [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:11]Read from MH i2c: E2 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 62 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 62 00 B0 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 21 02 00 0E 04 04 00 C5 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 94 [07:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 21 02 00 0E 04 04 00 C5 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 [07:35:11]wFMCommunicate OK [07:35:11]SAM_PROTO_GetFieldsCounters done [07:35:11]requested_item shift.num is exist - process it [07:35:11]requested_item shift.opened is exist - process it [07:35:11]req_shift_opened [07:35:11]FM_GetShiftState [07:35:11]SAM_PROTO_GetShiftState [07:35:11]wFMCommunicate request_size=4 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 13 01 00 [07:35:11]Write to MH i2c: E2 08 00 B1 10 80 13 01 00 00 00 00 00 3E [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:12]Read from MH i2c: E2 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 0E 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 0E 00 B1 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CF [07:35:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:35:12]wFMCommunicate OK [07:35:12]SAM_PROTO_GetShiftState done [07:35:12]FM_GetShiftState done [07:35:12]req_shift_opened done [07:35:12]requested_item shift.open_date is exist - process it [07:35:12]req_shift_open_date [07:35:12]req_shift_open_date done [07:35:12]produce_requested_data done [07:35:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139543,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:35:12]process_action_free close_receipt [07:35:12]json_value_free [07:35:12]json_value_free done [07:35:12]process_json_proto returns [07:35:12]Send response to host [07:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139543,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:35:12]free response buf [07:35:12]execute_script done [07:35:12]execute_script returns [07:35:12]free content buf [07:35:12]Sock 7.Close socket [07:35:12]Sock 7.Thread stoped [07:35:15]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:46]accept exits with 9 [07:37:46]New connection [07:37:46]New thread 3067215204 created [07:37:46]Thread 3067071844 joined [07:37:46]Waiting for new connection... [07:37:46] Sock 9.Parse request [07:37:46]Sock 9.Check first char [07:37:46]Sock 9.First char is OK [07:37:46]request: POST /json_proto HTTP/1.0 [07:37:46]Method: POST [07:37:46]URL: /json_proto [07:37:46]Method is POST - this is cgi request [07:37:46]url: /json_proto [07:37:46]query_string will be loaded in cgi processing [07:37:46]execute_cgi json_proto POST (null) [07:37:46]execute_cgi path=json_proto method=POST [07:37:46]POST find Content-Length [07:37:46]Host: 172.17.45.67:8080 [07:37:46]Content-Length: 677 [07:37:46]Content-Type: application/json [07:37:46] [07:37:46]POST finish read [07:37:46]Found Content-Length = 677 [07:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.050, "sum" : 410.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:46]execute_script... [07:37: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)593386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.050, "sum" : 410.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:46]POST & json_proto [07:37:46]process_json_proto [07:37:46]json parsed OK: [07:37:46]protocol is kg_v1.0 [07:37:46]action value=close_receipt [07:37:46]process_action close_receipt [07:37:46]cmd_close_receipt [07:37:46]MH_GetDate [07:37:46]Write to MH i2c: F0 00 00 B2 10 B1 [07:37:46]Write i2c OK [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: F0 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: F0 09 00 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: F0 09 00 B2 10 00 CD 47 C4 66 5F 7F 2B 66 67 [07:37:46]GetLastDocTimeStamp 1724139310 [07:37:46]current date 1724139469 [07:37:46]FM_GetShiftState [07:37:46]SAM_PROTO_GetShiftState [07:37:46]wFMCommunicate request_size=4 [07:37:46]MH_SAM_APDU [07:37:46]CAPDU: 80 13 01 00 [07:37:46]Write to MH i2c: E2 08 00 B3 10 80 13 01 00 00 00 00 00 40 [07:37:46]Write i2c OK [07:37:46]MH_I2C_Read... [07:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:46]Read from MH i2c: E2 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: E2 0E 00 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: E2 0E 00 B3 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D1 [07:37:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:37:46]wFMCommunicate OK [07:37:46]SAM_PROTO_GetShiftState done [07:37:46]FM_GetShiftState done [07:37:46]opened in 1724113785 [07:37:46]opened+sec_in_day 1724200185 [07:37:46]quantity*price = 41019 [07:37:46]sum+1 = 41020 [07:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.56 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 16 20.08.2024 07:37 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139544 ФПД: 77683068120836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T073749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139544&fm=77683068120836&tin=02508201610067®Number=0000000000092569&sum=41000 [07:37:47]StoreToDocumentArchive [07:37:47]shift 453 fd 139544 [07:37:47]save to /storage/0453/doc_00139544 [07:37:47]save last doc name /storage/0453/doc_00139544 to /storage/kkm_last_doc_name [07:37:47]save OK [07:37:47]Clear old archive folders... [07:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:37:47]tlvbuf is 00D6C2A0 [07:37:47]SAM_PROTO_ClearQueue [07:37:47]wFMCommunicate request_size=4 [07:37:47]MH_SAM_APDU [07:37:47]CAPDU: 80 09 00 00 [07:37:47]Write to MH i2c: E2 08 00 C0 10 80 09 00 00 00 00 00 00 42 [07:37:47]Write i2c OK [07:37:47]MH_I2C_Read... [07:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:47]Read from MH i2c: E2 [07:37:47]MH_I2C_Read... [07:37:47]Read from MH i2c: E2 03 00 [07:37:47]MH_I2C_Read... [07:37:47]Read from MH i2c: E2 03 00 C0 10 00 90 00 44 [07:37:47]RAPDU: 90 00 [07:37:47]wFMCommunicate OK [07:37:47]SAM_PROTO_ClearQueue done [07:37:47]KKMCreateOFDPacket [07:37:47]OFDProtocolAddRootSTLVToBuf [07:37:47]FM_MakeSignedData [07:37:47]FM_MakeSignedData [07:37:47]SAM_PROTO_SignData [07:37:47]wFMCommunicate request_size=4 [07:37:47]MH_SAM_APDU [07:37:47]CAPDU: 80 0D 01 02 [07:37:47]Write to MH i2c: E2 08 00 C1 10 80 0D 01 02 00 00 00 00 4A [07:37:47]Write i2c OK [07:37:47]MH_I2C_Read... [07:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:47]Read from MH i2c: E2 [07:37:47]MH_I2C_Read... [07:37:47]Read from MH i2c: E2 03 00 [07:37:47]MH_I2C_Read... [07:37:47]Read from MH i2c: E2 03 00 C1 10 00 90 00 45 [07:37:47]RAPDU: 90 00 [07:37:47]wFMCommunicate OK [07:37:47]wFMCommunicate request_size=255 [07:37:47]MH_SAM_APDU [07:37:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 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 CD 47 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 21 02 00 35 04 06 00 46 [07:37:47]Write to MH i2c: E2 02 01 C2 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 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 CD 47 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 21 02 00 35 04 06 00 46 00 00 2E [07:37:47]Write i2c OK [07:37:47]MH_I2C_Read... [07:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:48]Read from MH i2c: E2 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: E2 03 00 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [07:37:48]RAPDU: 90 00 [07:37:48]wFMCommunicate OK [07:37:48]wFMCommunicate request_size=10 [07:37:48]MH_SAM_APDU [07:37:48]CAPDU: 80 0D 02 02 05 A6 FF AE 2F 04 [07:37:48]Write to MH i2c: E2 0D 00 C3 10 80 0D 02 02 05 00 A6 FF AE 2F 04 00 00 DD [07:37:48]Write i2c OK [07:37:48]MH_I2C_Read... [07:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:48]Read from MH i2c: E2 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: E2 03 00 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [07:37:48]RAPDU: 90 00 [07:37:48]wFMCommunicate OK [07:37:48]wFMCommunicate request_size=4 [07:37:48]MH_SAM_APDU [07:37:48]CAPDU: 80 0D 03 02 [07:37:48]Write to MH i2c: E2 08 00 C4 10 80 0D 03 02 00 00 00 00 4F [07:37:48]Write i2c OK [07:37:48]MH_I2C_Read... [07:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:48]Read from MH i2c: E2 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: E2 0B 00 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: E2 0B 00 C4 10 00 19 CA B1 6F 57 6A 43 6D 90 00 C4 [07:37:48]RAPDU: 19 CA B1 6F 57 6A 43 6D 90 00 [07:37:48]wFMCommunicate OK [07:37:48]SAM_PROTO_SignData done [07:37:48]FM_MakeSignedData done [07:37:48]CreateOFDProtocolMessage [07:37:48]wFMCommunicate request_size=4 [07:37:48]MH_SAM_APDU [07:37:48]CAPDU: 80 11 00 00 [07:37:48]Write to MH i2c: E2 08 00 C5 10 80 11 00 00 00 00 00 00 4F [07:37:48]Write i2c OK [07:37:48]MH_I2C_Read... [07:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:48]Read from MH i2c: E2 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: E2 17 00 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: E2 17 00 C5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [07:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:37:48]wFMCommunicate OK [07:37:48]CreateOFDProtocolMessage done [07:37:48]OFDSenderStorePacket 139544 [07:37:48]StoreOFDPacket docnum=139544 [07:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2A 41 07 01 A6 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 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 CD 47 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 21 02 00 35 04 06 00 46 A6 FF AE 2F 04 19 CA B1 6F 57 6A 43 6D [07:37:48]CheckFolder [07:37:48]dirname=/storage/ofd_packets [07:37:48]CheckFolder done [07:37:48]ProducePacketName [07:37:48]name=ofd_packets/00139544 [07:37:48]NVStorageSaveData ofd_packets/00139544 [07:37:48]File name is /storage/ofd_packets/00139544 [07:37:48]Write 301 bytes [07:37:48]NVStorageSaveData done [07:37:48]OFDSenderStorePacket done [07:37:48]KKMCreateOFDPacket done [07:37:48]NVStorageSaveData kkm_last_timestamp [07:37:48]File name is /storage/kkm_last_timestamp [07:37:48]Write 4 bytes [07:37:48]NVStorageSaveData done [07:37:48]ExternCall_PrintAddStr [07:37:48]wPrintStart [07:37:48]Write to MH i2c: 01 00 00 C6 10 D6 [07:37:48]Write i2c OK [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: 01 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: 01 07 00 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [07:37:48]RasterBufferAndPrint [07:37:48]line Счет N : (1)593386 [07:37:48]line ИНН: 02508201610067 [07:37:48]line Контрольно-Кассовый Чек [07:37:48]line ПРОДАЖА [07:37:48]line ТРК (МРК, ГНК) : 42 [07:37:48]line Товар: 2710124130 [07:37:48]line Аи-92-К-5 [07:37:48]line 6.050 * 67.80 [07:37:48]line = 410.19 [07:37:48]line НДС 12% НСП 1% [07:37:48]line > о реализуемом товаре [07:37:48]line ОКРУГЛЕНИЕ: -0.19 [07:37:48]line ИТОГО: 410.00 [07:37:48]line Внесено: 410.00 [07:37:48]line СДАЧА: 0.00 [07:37:48]line НСП 1% : 3.63 [07:37:48]line НДС 12% : 43.56 [07:37:48]line Наличными: 410.00 [07:37:48]line Безнал.: 0.00 [07:37:48]line Место: АЗС № 136 "Партнер Нефть" [07:37:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:37:48]line СНО: Общий режим [07:37:48]line Чек 16 20.08.2024 07:37 [07:37:48]line Смена: 453 ФФД: 1.0 [07:37:48]line ЗНМ: 0300000067 [07:37:48]line РНМ: 0000000000092569 [07:37:48]line Версия ККМ: 001 [07:37:48]line ФМ: 0000000000871776 [07:37:48]line ФД: 139544 [07:37:48]line ФПД: 77683068120836 [07:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T073749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139544&fm=77683068120836&tin=02508201610067®Number=0000000000092569&sum=41000 [07:37:48]OFD Sender: Processing packet 139544 [packets to send 137, broken 136] [07:37:48]ProducePacketName [07:37:48]name=ofd_packets/00139544 [07:37:48]OFD Sender: To server: pG, [07:37:48]CommunicateWithHost lk.salyk.kg:30040 [07:37:48]ConnectInit lk.salyk.kg [07:37:48]written 0, free lines is 4095 [07:37:48]Connected sock=10 [07:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2A 41 07 01 A6 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 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 CD 47 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 21 02 00 35 04 06 00 46 A6 FF AE 2F 04 19 CA B1 6F 57 6A 43 6D [07:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EC 72 47 00 9F 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 21 02 00 F4 03 04 00 60 EE C3 66 B6 04 01 00 00 82 B2 22 CD 29 51 7D F1 [07:37:48]CommunicateWithHost err = 0 [07:37:48]CheckOFDResponse [07:37:48]1017 (14) - 77093643461234 [07:37:48]1041 (16) - 0000000000871776 [07:37:48]1040 (4) - 139544 [07:37:48]1012 (4) - 20.08.2024 01:16 [07:37:48]1206 (1) - 0 [07:37:48]OFD Sender: Remove packet 139544 [07:37:48]ProducePacketName [07:37:48]name=ofd_packets/00139544 [07:37:48]NVStorageDeleteData [07:37:48]Write to MH i2c: 01 00 00 F1 10 01 [07:37:48]Write i2c OK [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: 01 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: 01 07 00 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: 01 07 00 F1 10 00 00 00 00 00 C0 0C D4 [07:37:48]RasterBufferAndPrint [07:37:48]line [07:37:48]line [07:37:48]line [07:37:48]line [07:37:48]line [07:37:48]written 0, free lines is 3270 [07:37:48]MH_Cut [07:37:48]Write to MH i2c: D1 01 00 F8 10 01 DA [07:37:48]Write i2c OK [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: D1 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: D1 01 00 [07:37:48]MH_I2C_Read... [07:37:48]Read from MH i2c: D1 01 00 F8 10 00 D9 [07:37:48]Write to MH i2c: 01 00 00 F9 10 09 [07:37:48]Write i2c OK [07:37:48]MH_I2C_Read... [07:37:49]OFD Sender: No OFD packet to send [07:37:49]*** Cut start [07:37:49]*** Partial cut [07:37:49]*** CUTSNS_PIN = 1 [07:37:49]*** CUTSNS_PIN = 0 [07:37:49]*** Brake cut motor [07:37:50]Read from MH i2c: 01 [07:37:50]MH_I2C_Read... [07:37:50]*** Stop cut motor [07:37:50]*** Cut end [07:37:50]Read from MH i2c: 01 07 00 [07:37:50]MH_I2C_Read... [07:37:50]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 FF 0F 1E [07:37:50]process_action close_receipt done [07:37:50]requested_data is exist [07:37:50]produce_requested_data [07:37:50]requested_item fm.sn is exist - process it [07:37:50]wFMCommunicate request_size=4 [07:37:50]MH_SAM_APDU [07:37:50]CAPDU: 80 11 00 00 [07:37:50]Write to MH i2c: E2 08 00 FA 10 80 11 00 00 00 00 00 00 84 [07:37:50]Write i2c OK [07:37:50]MH_I2C_Read... [07:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:50]Read from MH i2c: E2 [07:37:50]MH_I2C_Read... [07:37:50]Read from MH i2c: E2 17 00 [07:37:50]MH_I2C_Read... [07:37:50]Read from MH i2c: E2 17 00 FA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [07:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:37:50]wFMCommunicate OK [07:37:50]requested_item fd.num is exist - process it [07:37:50]SAM_PROTO_GetFieldsCounters [07:37:50]wFMCommunicate request_size=4 [07:37:50]MH_SAM_APDU [07:37:50]CAPDU: 80 13 00 00 [07:37:50]Write to MH i2c: E2 08 00 FB 10 80 13 00 00 00 00 00 00 87 [07:37:50]Write i2c OK [07:37:50]MH_I2C_Read... [07:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:50]Read from MH i2c: E2 [07:37:50]MH_I2C_Read... [07:37:50]Read from MH i2c: E2 62 00 [07:37:50]MH_I2C_Read... [07:37:50]Read from MH i2c: E2 62 00 FB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 18 21 02 00 0E 04 04 00 C5 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 E3 [07:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 18 21 02 00 0E 04 04 00 C5 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 [07:37:50]wFMCommunicate OK [07:37:50]SAM_PROTO_GetFieldsCounters done [07:37:50]requested_item shift.num is exist - process it [07:37:50]requested_item shift.opened is exist - process it [07:37:50]req_shift_opened [07:37:50]FM_GetShiftState [07:37:50]SAM_PROTO_GetShiftState [07:37:50]wFMCommunicate request_size=4 [07:37:50]MH_SAM_APDU [07:37:50]CAPDU: 80 13 01 00 [07:37:50]Write to MH i2c: E2 08 00 FC 10 80 13 01 00 00 00 00 00 89 [07:37:50]Write i2c OK [07:37:50]MH_I2C_Read... [07:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:50]Read from MH i2c: E2 [07:37:50]MH_I2C_Read... [07:37:50]Read from MH i2c: E2 0E 00 [07:37:50]MH_I2C_Read... [07:37:50]Read from MH i2c: E2 0E 00 FC 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1A [07:37:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:37:50]wFMCommunicate OK [07:37:50]SAM_PROTO_GetShiftState done [07:37:50]FM_GetShiftState done [07:37:50]req_shift_opened done [07:37:50]requested_item shift.open_date is exist - process it [07:37:50]req_shift_open_date [07:37:50]req_shift_open_date done [07:37:50]produce_requested_data done [07:37:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139544,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:37:50]process_action_free close_receipt [07:37:50]json_value_free [07:37:50]json_value_free done [07:37:50]process_json_proto returns [07:37:50]Send response to host [07:37:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139544,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:37:50]free response buf [07:37:50]execute_script done [07:37:50]execute_script returns [07:37:50]free content buf [07:37:50]Sock 9.Close socket [07:37:50]Sock 9.Thread stoped [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:21]accept exits with 7 [07:40:21]New connection [07:40:21]New thread 3067071844 created [07:40:21]Thread 3067215204 joined [07:40:21]Waiting for new connection... [07:40:21] Sock 7.Parse request [07:40:21]Sock 7.Check first char [07:40:21]Sock 7.First char is OK [07:40:21]request: POST /json_proto HTTP/1.0 [07:40:21]Method: POST [07:40:21]URL: /json_proto [07:40:21]Method is POST - this is cgi request [07:40:21]url: /json_proto [07:40:21]query_string will be loaded in cgi processing [07:40:21]execute_cgi json_proto POST (null) [07:40:21]execute_cgi path=json_proto method=POST [07:40:21]POST find Content-Length [07:40:21]Host: 172.17.45.67:8080 [07:40:21]Content-Length: 677 [07:40:21]Content-Type: application/json [07:40:21] [07:40:21]POST finish read [07:40:21]Found Content-Length = 677 [07:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:21]execute_script... [07:40: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)593387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:21]POST & json_proto [07:40:21]process_json_proto [07:40:21]json parsed OK: [07:40:21]protocol is kg_v1.0 [07:40:21]action value=close_receipt [07:40:21]process_action close_receipt [07:40:21]cmd_close_receipt [07:40:21]MH_GetDate [07:40:21]Write to MH i2c: F0 00 00 FD 10 FC [07:40:21]Write i2c OK [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: F0 [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: F0 09 00 [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: F0 09 00 FD 10 00 67 48 C4 66 5F 7F 2B 66 4D [07:40:21]GetLastDocTimeStamp 1724139469 [07:40:21]current date 1724139623 [07:40:21]FM_GetShiftState [07:40:21]SAM_PROTO_GetShiftState [07:40:21]wFMCommunicate request_size=4 [07:40:21]MH_SAM_APDU [07:40:21]CAPDU: 80 13 01 00 [07:40:21]Write to MH i2c: E2 08 00 FE 10 80 13 01 00 00 00 00 00 8B [07:40:21]Write i2c OK [07:40:21]MH_I2C_Read... [07:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:21]Read from MH i2c: E2 [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: E2 0E 00 [07:40:21]MH_I2C_Read... [07:40:21]Read from MH i2c: E2 0E 00 FE 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1C [07:40:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:40:21]wFMCommunicate OK [07:40:21]SAM_PROTO_GetShiftState done [07:40:21]FM_GetShiftState done [07:40:21]opened in 1724113785 [07:40:21]opened+sec_in_day 1724200185 [07:40:21]quantity*price = 40002 [07:40:21]sum+1 = 40003 [07:40:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 17 20.08.2024 07:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139545 ФПД: 101206281106581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T074023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139545&fm=101206281106581&tin=02508201610067®Number=0000000000092569&sum=40000 [07:40:22]StoreToDocumentArchive [07:40:22]shift 453 fd 139545 [07:40:22]save to /storage/0453/doc_00139545 [07:40:22]save last doc name /storage/0453/doc_00139545 to /storage/kkm_last_doc_name [07:40:22]save OK [07:40:22]Clear old archive folders... [07:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:40:22]tlvbuf is B6EE8990 [07:40:22]SAM_PROTO_ClearQueue [07:40:22]wFMCommunicate request_size=4 [07:40:22]MH_SAM_APDU [07:40:22]CAPDU: 80 09 00 00 [07:40:22]Write to MH i2c: E2 08 00 0B 11 80 09 00 00 00 00 00 00 8E [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 03 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 03 00 0B 11 00 90 00 90 [07:40:22]RAPDU: 90 00 [07:40:22]wFMCommunicate OK [07:40:22]SAM_PROTO_ClearQueue done [07:40:22]KKMCreateOFDPacket [07:40:22]OFDProtocolAddRootSTLVToBuf [07:40:22]FM_MakeSignedData [07:40:22]FM_MakeSignedData [07:40:22]SAM_PROTO_SignData [07:40:22]wFMCommunicate request_size=4 [07:40:22]MH_SAM_APDU [07:40:22]CAPDU: 80 0D 01 02 [07:40:22]Write to MH i2c: E2 08 00 0C 11 80 0D 01 02 00 00 00 00 96 [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 03 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 03 00 0C 11 00 90 00 91 [07:40:22]RAPDU: 90 00 [07:40:22]wFMCommunicate OK [07:40:22]wFMCommunicate request_size=255 [07:40:22]MH_SAM_APDU [07:40:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 67 48 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 21 02 00 35 04 06 00 5C [07:40:22]Write to MH i2c: E2 02 01 0D 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 67 48 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 21 02 00 35 04 06 00 5C 00 00 4C [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 03 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [07:40:22]RAPDU: 90 00 [07:40:22]wFMCommunicate OK [07:40:22]wFMCommunicate request_size=10 [07:40:22]MH_SAM_APDU [07:40:22]CAPDU: 80 0D 02 02 05 0B EC 6F 34 95 [07:40:22]Write to MH i2c: E2 0D 00 0E 11 80 0D 02 02 05 00 0B EC 6F 34 95 00 00 D2 [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 03 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [07:40:22]RAPDU: 90 00 [07:40:22]wFMCommunicate OK [07:40:22]wFMCommunicate request_size=4 [07:40:22]MH_SAM_APDU [07:40:22]CAPDU: 80 0D 03 02 [07:40:22]Write to MH i2c: E2 08 00 0F 11 80 0D 03 02 00 00 00 00 9B [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 0B 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 0B 00 0F 11 00 2C A6 F9 29 E5 E6 C6 5D 90 00 7E [07:40:22]RAPDU: 2C A6 F9 29 E5 E6 C6 5D 90 00 [07:40:22]wFMCommunicate OK [07:40:22]SAM_PROTO_SignData done [07:40:22]FM_MakeSignedData done [07:40:22]CreateOFDProtocolMessage [07:40:22]wFMCommunicate request_size=4 [07:40:22]MH_SAM_APDU [07:40:22]CAPDU: 80 11 00 00 [07:40:22]Write to MH i2c: E2 08 00 10 11 80 11 00 00 00 00 00 00 9B [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 17 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 17 00 10 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [07:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:40:22]wFMCommunicate OK [07:40:22]CreateOFDProtocolMessage done [07:40:22]OFDSenderStorePacket 139545 [07:40:22]StoreOFDPacket docnum=139545 [07:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 F9 07 01 07 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 67 48 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 21 02 00 35 04 06 00 5C 0B EC 6F 34 95 2C A6 F9 29 E5 E6 C6 5D [07:40:22]CheckFolder [07:40:22]dirname=/storage/ofd_packets [07:40:22]CheckFolder done [07:40:22]ProducePacketName [07:40:22]name=ofd_packets/00139545 [07:40:22]NVStorageSaveData ofd_packets/00139545 [07:40:22]File name is /storage/ofd_packets/00139545 [07:40:22]Write 301 bytes [07:40:22]NVStorageSaveData done [07:40:22]OFDSenderStorePacket done [07:40:22]KKMCreateOFDPacket done [07:40:22]NVStorageSaveData kkm_last_timestamp [07:40:22]File name is /storage/kkm_last_timestamp [07:40:22]Write 4 bytes [07:40:22]NVStorageSaveData done [07:40:22]OFD Sender: Processing packet 139545 [packets to send 137, broken 136] [07:40:22]ProducePacketName [07:40:22]name=ofd_packets/00139545 [07:40:22]OFD Sender: To server: pG, [07:40:22]CommunicateWithHost lk.salyk.kg:30040 [07:40:22]ConnectInit lk.salyk.kg [07:40:22]ExternCall_PrintAddStr [07:40:22]wPrintStart [07:40:22]Write to MH i2c: 01 00 00 11 11 22 [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: 01 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: 01 07 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: 01 07 00 11 11 00 00 00 00 00 FF 0F 37 [07:40:22]RasterBufferAndPrint [07:40:22]line Счет N : (1)593387 [07:40:22]line ИНН: 02508201610067 [07:40:22]line Контрольно-Кассовый Чек [07:40:22]line ПРОДАЖА [07:40:22]line ТРК (МРК, ГНК) : 42 [07:40:22]line Товар: 2710124130 [07:40:22]line Аи-92-К-5 [07:40:22]line 5.900 * 67.80 [07:40:22]line = 400.02 [07:40:22]line НДС 12% НСП 1% [07:40:22]line > о реализуемом товаре [07:40:22]line ОКРУГЛЕНИЕ: -0.02 [07:40:22]line ИТОГО: 400.00 [07:40:22]line Внесено: 400.00 [07:40:22]line СДАЧА: 0.00 [07:40:22]line НСП 1% : 3.54 [07:40:22]line НДС 12% : 42.48 [07:40:22]line Наличными: 400.00 [07:40:22]line Безнал.: 0.00 [07:40:22]line Место: АЗС № 136 "Партнер Нефть" [07:40:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:40:22]line СНО: Общий режим [07:40:22]line Чек 17 20.08.2024 07:40 [07:40:22]line Смена: 453 ФФД: 1.0 [07:40:22]line ЗНМ: 0300000067 [07:40:22]line РНМ: 0000000000092569 [07:40:22]line Версия ККМ: 001 [07:40:22]line ФМ: 0000000000871776 [07:40:22]line ФД: 139545 [07:40:22]line ФПД: 101206281106581 [07:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T074023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139545&fm=101206281106581&tin=02508201610067®Number=0000000000092569&sum=40000 [07:40:23]Connected sock=11 [07:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 F9 07 01 07 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 67 48 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 21 02 00 35 04 06 00 5C 0B EC 6F 34 95 2C A6 F9 29 E5 E6 C6 5D [07:40:23]written 0, free lines is 4095 [07:40:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 68 A5 47 00 16 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 21 02 00 F4 03 04 00 FB EE C3 66 B6 04 01 00 00 CD 63 34 2F EB 79 C9 81 [07:40:23]CommunicateWithHost err = 0 [07:40:23]CheckOFDResponse [07:40:23]1017 (14) - 77093643461234 [07:40:23]1041 (16) - 0000000000871776 [07:40:23]1040 (4) - 139545 [07:40:23]1012 (4) - 20.08.2024 01:18 [07:40:23]1206 (1) - 0 [07:40:23]OFD Sender: Remove packet 139545 [07:40:23]ProducePacketName [07:40:23]name=ofd_packets/00139545 [07:40:23]NVStorageDeleteData [07:40:23]Write to MH i2c: 01 00 00 3C 11 4D [07:40:23]Write i2c OK [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: 01 [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: 01 07 00 [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: 01 07 00 3C 11 00 00 00 00 00 BF 0C 1F [07:40:23]RasterBufferAndPrint [07:40:23]line [07:40:23]line [07:40:23]line [07:40:23]line [07:40:23]line [07:40:23]written 0, free lines is 3269 [07:40:23]MH_Cut [07:40:23]Write to MH i2c: D1 01 00 43 11 01 26 [07:40:23]Write i2c OK [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: D1 [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: D1 01 00 [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: D1 01 00 43 11 00 25 [07:40:23]Write to MH i2c: 01 00 00 44 11 55 [07:40:23]Write i2c OK [07:40:23]MH_I2C_Read... [07:40:24]OFD Sender: No OFD packet to send [07:40:24]*** Cut start [07:40:24]*** Partial cut [07:40:24]*** CUTSNS_PIN = 1 [07:40:24]*** CUTSNS_PIN = 0 [07:40:24]*** Brake cut motor [07:40:25]Read from MH i2c: 01 [07:40:25]MH_I2C_Read... [07:40:25]*** Stop cut motor [07:40:25]*** Cut end [07:40:25]Read from MH i2c: 01 07 00 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: 01 07 00 44 11 00 00 00 00 00 FF 0F 6A [07:40:25]process_action close_receipt done [07:40:25]requested_data is exist [07:40:25]produce_requested_data [07:40:25]requested_item fm.sn is exist - process it [07:40:25]wFMCommunicate request_size=4 [07:40:25]MH_SAM_APDU [07:40:25]CAPDU: 80 11 00 00 [07:40:25]Write to MH i2c: E2 08 00 45 11 80 11 00 00 00 00 00 00 D0 [07:40:25]Write i2c OK [07:40:25]MH_I2C_Read... [07:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:25]Read from MH i2c: E2 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 17 00 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 17 00 45 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [07:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:40:25]wFMCommunicate OK [07:40:25]requested_item fd.num is exist - process it [07:40:25]SAM_PROTO_GetFieldsCounters [07:40:25]wFMCommunicate request_size=4 [07:40:25]MH_SAM_APDU [07:40:25]CAPDU: 80 13 00 00 [07:40:25]Write to MH i2c: E2 08 00 46 11 80 13 00 00 00 00 00 00 D3 [07:40:25]Write i2c OK [07:40:25]MH_I2C_Read... [07:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:25]Read from MH i2c: E2 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 62 00 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 62 00 46 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 19 21 02 00 0E 04 04 00 C5 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 33 [07:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 19 21 02 00 0E 04 04 00 C5 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 [07:40:25]wFMCommunicate OK [07:40:25]SAM_PROTO_GetFieldsCounters done [07:40:25]requested_item shift.num is exist - process it [07:40:25]requested_item shift.opened is exist - process it [07:40:25]req_shift_opened [07:40:25]FM_GetShiftState [07:40:25]SAM_PROTO_GetShiftState [07:40:25]wFMCommunicate request_size=4 [07:40:25]MH_SAM_APDU [07:40:25]CAPDU: 80 13 01 00 [07:40:25]Write to MH i2c: E2 08 00 47 11 80 13 01 00 00 00 00 00 D5 [07:40:25]Write i2c OK [07:40:25]MH_I2C_Read... [07:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:25]Read from MH i2c: E2 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 0E 00 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 0E 00 47 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 66 [07:40:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:40:25]wFMCommunicate OK [07:40:25]SAM_PROTO_GetShiftState done [07:40:25]FM_GetShiftState done [07:40:25]req_shift_opened done [07:40:25]requested_item shift.open_date is exist - process it [07:40:25]req_shift_open_date [07:40:25]req_shift_open_date done [07:40:25]produce_requested_data done [07:40:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139545,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:40:25]process_action_free close_receipt [07:40:25]json_value_free [07:40:25]json_value_free done [07:40:25]process_json_proto returns [07:40:25]Send response to host [07:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139545,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:40:25]free response buf [07:40:25]execute_script done [07:40:25]execute_script returns [07:40:25]free content buf [07:40:25]Sock 7.Close socket [07:40:25]Sock 7.Thread stoped [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]accept exits with 9 [07:47:24]New connection [07:47:24]New thread 3067215204 created [07:47:24]Thread 3067071844 joined [07:47:24]Waiting for new connection... [07:47:24] Sock 9.Parse request [07:47:24]Sock 9.Check first char [07:47:24]Sock 9.First char is OK [07:47:24]request: POST /json_proto HTTP/1.0 [07:47:24]Method: POST [07:47:24]URL: /json_proto [07:47:24]Method is POST - this is cgi request [07:47:24]url: /json_proto [07:47:24]query_string will be loaded in cgi processing [07:47:24]execute_cgi json_proto POST (null) [07:47:24]execute_cgi path=json_proto method=POST [07:47:24]POST find Content-Length [07:47:24]Host: 172.17.45.67:8080 [07:47:24]Content-Length: 678 [07:47:24]Content-Type: application/json [07:47:24] [07:47:24]POST finish read [07:47:24]Found Content-Length = 678 [07:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:24]execute_script... [07:47: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)593388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:24]POST & json_proto [07:47:24]process_json_proto [07:47:24]json parsed OK: [07:47:24]protocol is kg_v1.0 [07:47:24]action value=close_receipt [07:47:24]process_action close_receipt [07:47:24]cmd_close_receipt [07:47:24]MH_GetDate [07:47:24]Write to MH i2c: F0 00 00 48 11 48 [07:47:24]Write i2c OK [07:47:24]MH_I2C_Read... [07:47:24]Read from MH i2c: F0 [07:47:24]MH_I2C_Read... [07:47:24]Read from MH i2c: F0 09 00 [07:47:24]MH_I2C_Read... [07:47:24]Read from MH i2c: F0 09 00 48 11 00 0E 4A C4 66 5F 7F 2B 66 42 [07:47:24]GetLastDocTimeStamp 1724139623 [07:47:24]current date 1724140046 [07:47:24]FM_GetShiftState [07:47:24]SAM_PROTO_GetShiftState [07:47:24]wFMCommunicate request_size=4 [07:47:24]MH_SAM_APDU [07:47:24]CAPDU: 80 13 01 00 [07:47:24]Write to MH i2c: E2 08 00 49 11 80 13 01 00 00 00 00 00 D7 [07:47:24]Write i2c OK [07:47:24]MH_I2C_Read... [07:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:24]Read from MH i2c: E2 [07:47:24]MH_I2C_Read... [07:47:24]Read from MH i2c: E2 0E 00 [07:47:24]MH_I2C_Read... [07:47:24]Read from MH i2c: E2 0E 00 49 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 68 [07:47:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:47:24]wFMCommunicate OK [07:47:24]SAM_PROTO_GetShiftState done [07:47:24]FM_GetShiftState done [07:47:24]opened in 1724113785 [07:47:24]opened+sec_in_day 1724200185 [07:47:24]quantity*price = 70037 [07:47:24]sum+1 = 70038 [07:47:24]Check (price>sum+1) || (price+1 о реализуемом товаре [07:47:26]line ОКРУГЛЕНИЕ: -0.37 [07:47:26]line ИТОГО: 700.00 [07:47:26]line Внесено: 700.00 [07:47:26]line СДАЧА: 0.00 [07:47:26]line НСП 1% : 6.20 [07:47:26]line НДС 12% : 74.38 [07:47:26]line Наличными: 700.00 [07:47:26]line Безнал.: 0.00 [07:47:26]line Место: АЗС № 136 "Партнер Нефть" [07:47:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:47:26]line СНО: Общий режим [07:47:26]line Чек 18 20.08.2024 07:47 [07:47:26]line Смена: 453 ФФД: 1.0 [07:47:26]line ЗНМ: 0300000067 [07:47:26]line РНМ: 0000000000092569 [07:47:26]line Версия ККМ: 001 [07:47:26]line ФМ: 0000000000871776 [07:47:26]line ФД: 139546 [07:47:26]line ФПД: 241562274053232 [07:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T074726&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139546&fm=241562274053232&tin=02508201610067®Number=0000000000092569&sum=70000 [07:47:26]OFD Sender: Processing packet 139546 [packets to send 137, broken 136] [07:47:26]ProducePacketName [07:47:26]name=ofd_packets/00139546 [07:47:26]OFD Sender: To server: pG, [07:47:26]CommunicateWithHost lk.salyk.kg:30040 [07:47:26]ConnectInit lk.salyk.kg [07:47:26]written 0, free lines is 4095 [07:47:26]Connected sock=10 [07:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E1 80 07 01 7A 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0E 4A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 21 02 00 35 04 06 00 DB B3 19 89 3C 70 90 F0 66 68 6A 57 D0 C9 [07:47:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 08 BB 47 00 75 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 21 02 00 F4 03 04 00 A2 F0 C3 66 B6 04 01 00 00 8A 7F 93 57 09 1A 55 FF [07:47:26]CommunicateWithHost err = 0 [07:47:26]CheckOFDResponse [07:47:26]1017 (14) - 77093643461234 [07:47:26]1041 (16) - 0000000000871776 [07:47:26]1040 (4) - 139546 [07:47:26]1012 (4) - 20.08.2024 01:25 [07:47:26]1206 (1) - 0 [07:47:26]OFD Sender: Remove packet 139546 [07:47:26]ProducePacketName [07:47:26]name=ofd_packets/00139546 [07:47:26]NVStorageDeleteData [07:47:26]Write to MH i2c: 01 00 00 87 11 98 [07:47:26]Write i2c OK [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: 01 [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: 01 07 00 [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 CD 0C 78 [07:47:26]RasterBufferAndPrint [07:47:26]line [07:47:26]line [07:47:26]line [07:47:26]line [07:47:26]line [07:47:26]written 0, free lines is 3284 [07:47:26]MH_Cut [07:47:26]Write to MH i2c: D1 01 00 8E 11 01 71 [07:47:26]Write i2c OK [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: D1 [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: D1 01 00 [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: D1 01 00 8E 11 00 70 [07:47:26]Write to MH i2c: 01 00 00 8F 11 A0 [07:47:26]Write i2c OK [07:47:26]MH_I2C_Read... [07:47:27]OFD Sender: No OFD packet to send [07:47:27]*** Cut start [07:47:27]*** Partial cut [07:47:27]*** CUTSNS_PIN = 1 [07:47:27]*** CUTSNS_PIN = 0 [07:47:27]*** Brake cut motor [07:47:28]Read from MH i2c: 01 [07:47:28]MH_I2C_Read... [07:47:28]*** Stop cut motor [07:47:28]*** Cut end [07:47:28]Read from MH i2c: 01 07 00 [07:47:28]MH_I2C_Read... [07:47:28]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 FF 0F B5 [07:47:28]process_action close_receipt done [07:47:28]requested_data is exist [07:47:28]produce_requested_data [07:47:28]requested_item fm.sn is exist - process it [07:47:28]wFMCommunicate request_size=4 [07:47:28]MH_SAM_APDU [07:47:28]CAPDU: 80 11 00 00 [07:47:28]Write to MH i2c: E2 08 00 90 11 80 11 00 00 00 00 00 00 1B [07:47:28]Write i2c OK [07:47:28]MH_I2C_Read... [07:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:28]Read from MH i2c: E2 [07:47:28]MH_I2C_Read... [07:47:28]Read from MH i2c: E2 17 00 [07:47:28]MH_I2C_Read... [07:47:28]Read from MH i2c: E2 17 00 90 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [07:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:47:28]wFMCommunicate OK [07:47:28]requested_item fd.num is exist - process it [07:47:28]SAM_PROTO_GetFieldsCounters [07:47:28]wFMCommunicate request_size=4 [07:47:28]MH_SAM_APDU [07:47:28]CAPDU: 80 13 00 00 [07:47:28]Write to MH i2c: E2 08 00 91 11 80 13 00 00 00 00 00 00 1E [07:47:28]Write i2c OK [07:47:28]MH_I2C_Read... [07:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:28]Read from MH i2c: E2 [07:47:28]MH_I2C_Read... [07:47:28]Read from MH i2c: E2 62 00 [07:47:28]MH_I2C_Read... [07:47:28]Read from MH i2c: E2 62 00 91 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1A 21 02 00 0E 04 04 00 C5 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 82 [07:47:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1A 21 02 00 0E 04 04 00 C5 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 [07:47:28]wFMCommunicate OK [07:47:28]SAM_PROTO_GetFieldsCounters done [07:47:28]requested_item shift.num is exist - process it [07:47:28]requested_item shift.opened is exist - process it [07:47:28]req_shift_opened [07:47:28]FM_GetShiftState [07:47:28]SAM_PROTO_GetShiftState [07:47:28]wFMCommunicate request_size=4 [07:47:28]MH_SAM_APDU [07:47:28]CAPDU: 80 13 01 00 [07:47:28]Write to MH i2c: E2 08 00 92 11 80 13 01 00 00 00 00 00 20 [07:47:28]Write i2c OK [07:47:28]MH_I2C_Read... [07:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:28]Read from MH i2c: E2 [07:47:28]MH_I2C_Read... [07:47:28]Read from MH i2c: E2 0E 00 [07:47:28]MH_I2C_Read... [07:47:28]Read from MH i2c: E2 0E 00 92 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B1 [07:47:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:47:28]wFMCommunicate OK [07:47:28]SAM_PROTO_GetShiftState done [07:47:28]FM_GetShiftState done [07:47:28]req_shift_opened done [07:47:28]requested_item shift.open_date is exist - process it [07:47:28]req_shift_open_date [07:47:28]req_shift_open_date done [07:47:28]produce_requested_data done [07:47:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139546,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:47:28]process_action_free close_receipt [07:47:28]json_value_free [07:47:28]json_value_free done [07:47:28]process_json_proto returns [07:47:28]Send response to host [07:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139546,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:47:28]free response buf [07:47:28]execute_script done [07:47:28]execute_script returns [07:47:28]free content buf [07:47:28]Sock 9.Close socket [07:47:28]Sock 9.Thread stoped [07:47:32]OFD Sender: No OFD packet to send [07:47:35]recv_with_timeout no data received [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:46]recv_with_timeout no data received [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:47:25]MH_SAM_APDU [07:47:25]CAPDU: 80 15 02 00 08 F4 03 04 00 0E 4A C4 66 [07:47:25]Write to MH i2c: E2 10 00 52 11 80 15 02 00 08 00 F4 03 04 00 0E 4A C4 66 00 00 70 [07:47:25]Write i2c OK [07:47:25]MH_I2C_Read... [07:47:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:47:25]Read from MH i2c: E2 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [07:47:25]RAPDU: 90 00 [07:47:25]wFMCommunicate OK [07:47:25]wFMCommunicate request_size=25 [07:47:25]MH_SAM_APDU [07:47:25]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 [07:47:25]Write to MH i2c: E2 1C 00 53 11 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 00 00 4C [07:47:25]Write i2c OK [07:47:25]MH_I2C_Read... [07:47:25]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:47:25]Read from MH i2c: E2 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 53 11 00 90 00 D8 [07:47:25]RAPDU: 90 00 [07:47:25]wFMCommunicate OK [07:47:25]wFMCommunicate request_size=4 [07:47:25]MH_SAM_APDU [07:47:25]CAPDU: 80 15 03 00 [07:47:25]Write to MH i2c: E2 08 00 54 11 80 15 03 00 00 00 00 00 E6 [07:47:25]Write i2c OK [07:47:25]MH_I2C_Read... [07:47:25]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [07:47:25]Read from MH i2c: E2 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 40 00 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 40 00 54 11 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 12 00 00 00 35 04 06 00 DB B3 19 89 3C 70 90 00 D1 [07:47:25]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 12 00 00 00 35 04 06 00 DB B3 19 89 3C 70 90 00 [07:47:25]wFMCommunicate OK [07:47:25]SAM_PROTO_ProcessDocument answer len = 59 [07:47:25]SAM_PROTO_ProcessDocument done [07:47:25]SetTLVBufToDocument [07:47:25]Processing tag 1209 (04B9) [07:47:25]Malloc new data [07:47:25]Processing tag 1041 (0411) [07:47:25]Processing tag 1040 (0410) [07:47:25]Malloc new data [07:47:25]Processing tag 1038 (040E) [07:47:25]Malloc new data [07:47:25]Processing tag 1042 (0412) [07:47:25]Malloc new data [07:47:25]Processing tag 1077 (0435) [07:47:25]Malloc new data [07:47:25]SetTLVBufToDocument err=0 [07:47:25]KKMLoadAndSignReceiptData store KKM data [07:47:25]KKMLoadAndSignReceiptData err=0 [07:47:25]wFMCommunicate request_size=4 [07:47:25]MH_SAM_APDU [07:47:25]CAPDU: 80 11 00 00 [07:47:25]Write to MH i2c: E2 08 00 55 11 80 11 00 00 00 00 00 00 E0 [07:47:25]Write i2c OK [07:47:25]MH_I2C_Read... [07:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:25]Read from MH i2c: E2 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 17 00 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 17 00 55 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 37 [07:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:47:25]wFMCommunicate OK [07:47:25]Счет N : (1)593388 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 42 Товар: 2710124130 Аи-92-К-5 10.330 * 67.80 = 700.37 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 18 20.08.2024 07:47 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139546 ФПД: 241562274053232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T074726&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139546&fm=241562274053232&tin=02508201610067®Number=0000000000092569&sum=70000 [07:47:25]StoreToDocumentArchive [07:47:25]shift 453 fd 139546 [07:47:25]save to /storage/0453/doc_00139546 [07:47:25]save last doc name /storage/0453/doc_00139546 to /storage/kkm_last_doc_name [07:47:25]save OK [07:47:25]Clear old archive folders... [07:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:47:25]tlvbuf is B6F013C0 [07:47:25]SAM_PROTO_ClearQueue [07:47:25]wFMCommunicate request_size=4 [07:47:25]MH_SAM_APDU [07:47:25]CAPDU: 80 09 00 00 [07:47:25]Write to MH i2c: E2 08 00 56 11 80 09 00 00 00 00 00 00 D9 [07:47:25]Write i2c OK [07:47:25]MH_I2C_Read... [07:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:25]Read from MH i2c: E2 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [07:47:25]RAPDU: 90 00 [07:47:25]wFMCommunicate OK [07:47:25]SAM_PROTO_ClearQueue done [07:47:25]KKMCreateOFDPacket [07:47:25]OFDProtocolAddRootSTLVToBuf [07:47:25]FM_MakeSignedData [07:47:25]FM_MakeSignedData [07:47:25]SAM_PROTO_SignData [07:47:25]wFMCommunicate request_size=4 [07:47:25]MH_SAM_APDU [07:47:25]CAPDU: 80 0D 01 02 [07:47:25]Write to MH i2c: E2 08 00 57 11 80 0D 01 02 00 00 00 00 E1 [07:47:25]Write i2c OK [07:47:25]MH_I2C_Read... [07:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:25]Read from MH i2c: E2 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [07:47:25]RAPDU: 90 00 [07:47:25]wFMCommunicate OK [07:47:25]wFMCommunicate request_size=255 [07:47:25]MH_SAM_APDU [07:47:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0E 4A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 21 02 00 35 04 06 00 DB [07:47:25]Write to MH i2c: E2 02 01 58 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0E 4A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 21 02 00 35 04 06 00 DB 00 00 C3 [07:47:25]Write i2c OK [07:47:25]MH_I2C_Read... [07:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:25]Read from MH i2c: E2 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [07:47:25]RAPDU: 90 00 [07:47:25]wFMCommunicate OK [07:47:25]wFMCommunicate request_size=10 [07:47:25]MH_SAM_APDU [07:47:25]CAPDU: 80 0D 02 02 05 B3 19 89 3C 70 [07:47:25]Write to MH i2c: E2 0D 00 59 11 80 0D 02 02 05 00 B3 19 89 3C 70 00 00 EF [07:47:25]Write i2c OK [07:47:25]MH_I2C_Read... [07:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:25]Read from MH i2c: E2 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 [07:47:25]MH_I2C_Read... [07:47:25]Read from MH i2c: E2 03 00 59 11 00 90 00 DE [07:47:25]RAPDU: 90 00 [07:47:25]wFMCommunicate OK [07:47:25]wFMCommunicate request_size=4 [07:47:25]MH_SAM_APDU [07:47:25]CAPDU: 80 0D 03 02 [07:47:25]Write to MH i2c: E2 08 00 5A 11 80 0D 03 02 00 00 00 00 E6 [07:47:25]Write i2c OK [07:47:25]MH_I2C_Read... [07:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:26]Read from MH i2c: E2 [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: E2 0B 00 [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: E2 0B 00 5A 11 00 90 F0 66 68 6A 57 D0 C9 90 00 8F [07:47:26]RAPDU: 90 F0 66 68 6A 57 D0 C9 90 00 [07:47:26]wFMCommunicate OK [07:47:26]SAM_PROTO_SignData done [07:47:26]FM_MakeSignedData done [07:47:26]CreateOFDProtocolMessage [07:47:26]wFMCommunicate request_size=4 [07:47:26]MH_SAM_APDU [07:47:26]CAPDU: 80 11 00 00 [07:47:26]Write to MH i2c: E2 08 00 5B 11 80 11 00 00 00 00 00 00 E6 [07:47:26]Write i2c OK [07:47:26]MH_I2C_Read... [07:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:26]Read from MH i2c: E2 [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: E2 17 00 [07:47:26]MH_I2C_Read... [07:47:26]Read from MH i2c: E2 17 00 5B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3D [07:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:47:26]wFMCommunicate OK [07:47:26]CreateOFDProtocolMessage done [07:47:26]OFDSenderStorePacket 139546 [07:47:26]StoreOFDPacket docnum=139546 [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:39]accept exits with 7 [07:50:39]New connection [07:50:39]New thread 3067071844 created [07:50:39]Thread 3067215204 joined [07:50:39]Waiting for new connection... [07:50:39] Sock 7.Parse request [07:50:39]Sock 7.Check first char [07:50:39]Sock 7.First char is OK [07:50:39]request: POST /json_proto HTTP/1.0 [07:50:39]Method: POST [07:50:39]URL: /json_proto [07:50:39]Method is POST - this is cgi request [07:50:39]url: /json_proto [07:50:39]query_string will be loaded in cgi processing [07:50:39]execute_cgi json_proto POST (null) [07:50:39]execute_cgi path=json_proto method=POST [07:50:39]POST find Content-Length [07:50:39]Host: 172.17.45.67:8080 [07:50:39]Content-Length: 677 [07:50:39]Content-Type: application/json [07:50:39] [07:50:39]POST finish read [07:50:39]Found Content-Length = 677 [07:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:39]execute_script... [07:50: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)593389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:39]POST & json_proto [07:50:39]process_json_proto [07:50:39]json parsed OK: [07:50:39]protocol is kg_v1.0 [07:50:39]action value=close_receipt [07:50:39]process_action close_receipt [07:50:39]cmd_close_receipt [07:50:39]MH_GetDate [07:50:39]Write to MH i2c: F0 00 00 93 11 93 [07:50:39]Write i2c OK [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: F0 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: F0 09 00 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: F0 09 00 93 11 00 D1 4A C4 66 5F 7F 2B 66 50 [07:50:39]GetLastDocTimeStamp 1724140046 [07:50:39]current date 1724140241 [07:50:39]FM_GetShiftState [07:50:39]SAM_PROTO_GetShiftState [07:50:39]wFMCommunicate request_size=4 [07:50:39]MH_SAM_APDU [07:50:39]CAPDU: 80 13 01 00 [07:50:39]Write to MH i2c: E2 08 00 94 11 80 13 01 00 00 00 00 00 22 [07:50:39]Write i2c OK [07:50:39]MH_I2C_Read... [07:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:39]Read from MH i2c: E2 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: E2 0E 00 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: E2 0E 00 94 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B3 [07:50:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:50:39]wFMCommunicate OK [07:50:39]SAM_PROTO_GetShiftState done [07:50:39]FM_GetShiftState done [07:50:39]opened in 1724113785 [07:50:39]opened+sec_in_day 1724200185 [07:50:39]quantity*price = 50036 [07:50:39]sum+1 = 50037 [07:50:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 19 20.08.2024 07:50 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139547 ФПД: 212939814890712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T075042&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139547&fm=212939814890712&tin=02508201610067®Number=0000000000092569&sum=50000 [07:50:40]StoreToDocumentArchive [07:50:40]shift 453 fd 139547 [07:50:40]save to /storage/0453/doc_00139547 [07:50:40]save last doc name /storage/0453/doc_00139547 to /storage/kkm_last_doc_name [07:50:40]save OK [07:50:40]Clear old archive folders... [07:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:40]tlvbuf is B6EE8090 [07:50:40]SAM_PROTO_ClearQueue [07:50:40]wFMCommunicate request_size=4 [07:50:40]MH_SAM_APDU [07:50:40]CAPDU: 80 09 00 00 [07:50:40]Write to MH i2c: E2 08 00 A1 11 80 09 00 00 00 00 00 00 24 [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:40]Read from MH i2c: E2 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 03 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 03 00 A1 11 00 90 00 26 [07:50:40]RAPDU: 90 00 [07:50:40]wFMCommunicate OK [07:50:40]SAM_PROTO_ClearQueue done [07:50:40]KKMCreateOFDPacket [07:50:40]OFDProtocolAddRootSTLVToBuf [07:50:40]FM_MakeSignedData [07:50:40]FM_MakeSignedData [07:50:40]SAM_PROTO_SignData [07:50:40]wFMCommunicate request_size=4 [07:50:40]MH_SAM_APDU [07:50:40]CAPDU: 80 0D 01 02 [07:50:40]Write to MH i2c: E2 08 00 A2 11 80 0D 01 02 00 00 00 00 2C [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:40]Read from MH i2c: E2 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 03 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 03 00 A2 11 00 90 00 27 [07:50:40]RAPDU: 90 00 [07:50:40]wFMCommunicate OK [07:50:40]wFMCommunicate request_size=255 [07:50:40]MH_SAM_APDU [07:50:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D2 4A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 21 02 00 35 04 06 00 C1 [07:50:40]Write to MH i2c: E2 02 01 A3 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D2 4A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 21 02 00 35 04 06 00 C1 00 00 D3 [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:40]Read from MH i2c: E2 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 03 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [07:50:40]RAPDU: 90 00 [07:50:40]wFMCommunicate OK [07:50:40]wFMCommunicate request_size=10 [07:50:40]MH_SAM_APDU [07:50:40]CAPDU: 80 0D 02 02 05 AA EA 06 6C D8 [07:50:40]Write to MH i2c: E2 0D 00 A4 11 80 0D 02 02 05 00 AA EA 06 6C D8 00 00 17 [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:41]Read from MH i2c: E2 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: E2 03 00 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [07:50:41]RAPDU: 90 00 [07:50:41]wFMCommunicate OK [07:50:41]wFMCommunicate request_size=4 [07:50:41]MH_SAM_APDU [07:50:41]CAPDU: 80 0D 03 02 [07:50:41]Write to MH i2c: E2 08 00 A5 11 80 0D 03 02 00 00 00 00 31 [07:50:41]Write i2c OK [07:50:41]MH_I2C_Read... [07:50:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:41]Read from MH i2c: E2 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: E2 0B 00 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: E2 0B 00 A5 11 00 1E A2 C5 27 12 AB 54 83 90 00 72 [07:50:41]RAPDU: 1E A2 C5 27 12 AB 54 83 90 00 [07:50:41]wFMCommunicate OK [07:50:41]SAM_PROTO_SignData done [07:50:41]FM_MakeSignedData done [07:50:41]CreateOFDProtocolMessage [07:50:41]wFMCommunicate request_size=4 [07:50:41]MH_SAM_APDU [07:50:41]CAPDU: 80 11 00 00 [07:50:41]Write to MH i2c: E2 08 00 A6 11 80 11 00 00 00 00 00 00 31 [07:50:41]Write i2c OK [07:50:41]MH_I2C_Read... [07:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:41]Read from MH i2c: E2 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: E2 17 00 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: E2 17 00 A6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [07:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:50:41]wFMCommunicate OK [07:50:41]CreateOFDProtocolMessage done [07:50:41]OFDSenderStorePacket 139547 [07:50:41]StoreOFDPacket docnum=139547 [07:50:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 14 FD 07 01 AF BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D2 4A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 21 02 00 35 04 06 00 C1 AA EA 06 6C D8 1E A2 C5 27 12 AB 54 83 [07:50:41]CheckFolder [07:50:41]dirname=/storage/ofd_packets [07:50:41]CheckFolder done [07:50:41]ProducePacketName [07:50:41]name=ofd_packets/00139547 [07:50:41]NVStorageSaveData ofd_packets/00139547 [07:50:41]File name is /storage/ofd_packets/00139547 [07:50:41]Write 301 bytes [07:50:41]NVStorageSaveData done [07:50:41]OFDSenderStorePacket done [07:50:41]KKMCreateOFDPacket done [07:50:41]NVStorageSaveData kkm_last_timestamp [07:50:41]File name is /storage/kkm_last_timestamp [07:50:41]Write 4 bytes [07:50:41]NVStorageSaveData done [07:50:41]ExternCall_PrintAddStr [07:50:41]wPrintStart [07:50:41]Write to MH i2c: 01 00 00 A7 11 B8 [07:50:41]Write i2c OK [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: 01 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: 01 07 00 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: 01 07 00 A7 11 00 00 00 00 00 FF 0F CD [07:50:41]RasterBufferAndPrint [07:50:41]line Счет N : (1)593389 [07:50:41]line ИНН: 02508201610067 [07:50:41]line Контрольно-Кассовый Чек [07:50:41]line ПРОДАЖА [07:50:41]line ТРК (МРК, ГНК) : 32 [07:50:41]line Товар: 2710124130 [07:50:41]line Аи-92-К-5 [07:50:41]line 7.380 * 67.80 [07:50:41]line = 500.36 [07:50:41]line НДС 12% НСП 1% [07:50:41]line > о реализуемом товаре [07:50:41]line ОКРУГЛЕНИЕ: -0.36 [07:50:41]line ИТОГО: 500.00 [07:50:41]line Внесено: 500.00 [07:50:41]line СДАЧА: 0.00 [07:50:41]line НСП 1% : 4.43 [07:50:41]line НДС 12% : 53.14 [07:50:41]line Наличными: 500.00 [07:50:41]line Безнал.: 0.00 [07:50:41]line Место: АЗС № 136 "Партнер Нефть" [07:50:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:50:41]line СНО: Общий режим [07:50:41]line Чек 19 20.08.2024 07:50 [07:50:41]line Смена: 453 ФФД: 1.0 [07:50:41]line ЗНМ: 0300000067 [07:50:41]line РНМ: 0000000000092569 [07:50:41]line Версия ККМ: 001 [07:50:41]line ФМ: 0000000000871776 [07:50:41]line ФД: 139547 [07:50:41]line ФПД: 212939814890712 [07:50:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T075042&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139547&fm=212939814890712&tin=02508201610067®Number=0000000000092569&sum=50000 [07:50:41]OFD Sender: Processing packet 139547 [packets to send 137, broken 136] [07:50:41]ProducePacketName [07:50:41]name=ofd_packets/00139547 [07:50:41]OFD Sender: To server: pG, [07:50:41]CommunicateWithHost lk.salyk.kg:30040 [07:50:41]ConnectInit lk.salyk.kg [07:50:41]written 0, free lines is 4095 [07:50:41]Connected sock=10 [07:50:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 14 FD 07 01 AF BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D2 4A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 21 02 00 35 04 06 00 C1 AA EA 06 6C D8 1E A2 C5 27 12 AB 54 83 [07:50:41]Write to MH i2c: 01 00 00 D2 11 E3 [07:50:41]Write i2c OK [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: 01 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: 01 07 00 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: 01 07 00 D2 11 00 00 00 00 00 B7 0C AD [07:50:41]RasterBufferAndPrint [07:50:41]line [07:50:41]line [07:50:41]line [07:50:41]line [07:50:41]line [07:50:41]written 0, free lines is 3263 [07:50:41]MH_Cut [07:50:41]Write to MH i2c: D1 01 00 D9 11 01 BC [07:50:41]Write i2c OK [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: D1 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: D1 01 00 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: D1 01 00 D9 11 00 BB [07:50:41]Write to MH i2c: 01 00 00 DA 11 EB [07:50:41]Write i2c OK [07:50:41]MH_I2C_Read... [07:50:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D3 B4 47 00 C9 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 21 02 00 F4 03 04 00 66 F1 C3 66 B6 04 01 00 00 F6 7C 51 32 00 94 A3 FE [07:50:42]CommunicateWithHost err = 0 [07:50:42]CheckOFDResponse [07:50:42]1017 (14) - 77093643461234 [07:50:42]1041 (16) - 0000000000871776 [07:50:42]1040 (4) - 139547 [07:50:42]1012 (4) - 20.08.2024 01:29 [07:50:42]1206 (1) - 0 [07:50:42]OFD Sender: Remove packet 139547 [07:50:42]ProducePacketName [07:50:42]name=ofd_packets/00139547 [07:50:42]NVStorageDeleteData [07:50:42]OFD Sender: No OFD packet to send [07:50:42]*** Cut start [07:50:42]*** Partial cut [07:50:42]*** CUTSNS_PIN = 1 [07:50:42]*** CUTSNS_PIN = 0 [07:50:42]*** Brake cut motor [07:50:43]Read from MH i2c: 01 [07:50:43]MH_I2C_Read... [07:50:43]*** Stop cut motor [07:50:43]*** Cut end [07:50:43]Read from MH i2c: 01 07 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: 01 07 00 DA 11 00 00 00 00 00 FF 0F 00 [07:50:43]process_action close_receipt done [07:50:43]requested_data is exist [07:50:43]produce_requested_data [07:50:43]requested_item fm.sn is exist - process it [07:50:43]wFMCommunicate request_size=4 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 11 00 00 [07:50:43]Write to MH i2c: E2 08 00 DB 11 80 11 00 00 00 00 00 00 66 [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 17 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 17 00 DB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [07:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:50:43]wFMCommunicate OK [07:50:43]requested_item fd.num is exist - process it [07:50:43]SAM_PROTO_GetFieldsCounters [07:50:43]wFMCommunicate request_size=4 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 13 00 00 [07:50:43]Write to MH i2c: E2 08 00 DC 11 80 13 00 00 00 00 00 00 69 [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 62 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 62 00 DC 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1B 21 02 00 0E 04 04 00 C5 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 D1 [07:50:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1B 21 02 00 0E 04 04 00 C5 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 [07:50:43]wFMCommunicate OK [07:50:43]SAM_PROTO_GetFieldsCounters done [07:50:43]requested_item shift.num is exist - process it [07:50:43]requested_item shift.opened is exist - process it [07:50:43]req_shift_opened [07:50:43]FM_GetShiftState [07:50:43]SAM_PROTO_GetShiftState [07:50:43]wFMCommunicate request_size=4 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 13 01 00 [07:50:43]Write to MH i2c: E2 08 00 DD 11 80 13 01 00 00 00 00 00 6B [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 0E 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 0E 00 DD 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FC [07:50:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:50:43]wFMCommunicate OK [07:50:43]SAM_PROTO_GetShiftState done [07:50:43]FM_GetShiftState done [07:50:43]req_shift_opened done [07:50:43]requested_item shift.open_date is exist - process it [07:50:43]req_shift_open_date [07:50:43]req_shift_open_date done [07:50:43]produce_requested_data done [07:50:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139547,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:50:43]process_action_free close_receipt [07:50:43]json_value_free [07:50:43]json_value_free done [07:50:43]process_json_proto returns [07:50:43]Send response to host [07:50:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139547,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:50:43]free response buf [07:50:43]execute_script done [07:50:43]execute_script returns [07:50:43]free content buf [07:50:43]Sock 7.Close socket [07:50:43]Sock 7.Thread stoped [07:50:47]OFD Sender: No OFD packet to send [07:50:48]recv_with_timeout no data received [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:42]accept exits with 9 [07:57:42]New connection [07:57:42]New thread 3067215204 created [07:57:42]Thread 3067071844 joined [07:57:42]Waiting for new connection... [07:57:42] Sock 9.Parse request [07:57:42]Sock 9.Check first char [07:57:42]Sock 9.First char is OK [07:57:42]request: POST /json_proto HTTP/1.0 [07:57:42]Method: POST [07:57:42]URL: /json_proto [07:57:42]Method is POST - this is cgi request [07:57:42]url: /json_proto [07:57:42]query_string will be loaded in cgi processing [07:57:42]execute_cgi json_proto POST (null) [07:57:42]execute_cgi path=json_proto method=POST [07:57:42]POST find Content-Length [07:57:42]Host: 172.17.45.67:8080 [07:57:42]Content-Length: 677 [07:57:42]Content-Type: application/json [07:57:42] [07:57:42]POST finish read [07:57:42]Found Content-Length = 677 [07:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:42]execute_script... [07:57: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)593390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:42]POST & json_proto [07:57:42]process_json_proto [07:57:42]json parsed OK: [07:57:42]protocol is kg_v1.0 [07:57:42]action value=close_receipt [07:57:42]process_action close_receipt [07:57:42]cmd_close_receipt [07:57:42]MH_GetDate [07:57:42]Write to MH i2c: F0 00 00 DE 11 DE [07:57:42]Write i2c OK [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: F0 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: F0 09 00 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: F0 09 00 DE 11 00 78 4C C4 66 5F 7F 2B 66 44 [07:57:42]GetLastDocTimeStamp 1724140242 [07:57:42]current date 1724140664 [07:57:42]FM_GetShiftState [07:57:42]SAM_PROTO_GetShiftState [07:57:42]wFMCommunicate request_size=4 [07:57:42]MH_SAM_APDU [07:57:42]CAPDU: 80 13 01 00 [07:57:42]Write to MH i2c: E2 08 00 DF 11 80 13 01 00 00 00 00 00 6D [07:57:42]Write i2c OK [07:57:42]MH_I2C_Read... [07:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:42]Read from MH i2c: E2 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 0E 00 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 0E 00 DF 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FE [07:57:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:57:42]wFMCommunicate OK [07:57:42]SAM_PROTO_GetShiftState done [07:57:42]FM_GetShiftState done [07:57:42]opened in 1724113785 [07:57:42]opened+sec_in_day 1724200185 [07:57:42]quantity*price = 50010 [07:57:42]sum+1 = 50012 [07:57:42]Check (price>sum+1) || (price+1 о реализуемом товаре [07:57:43]line ОКРУГЛЕНИЕ: -0.11 [07:57:43]line ИТОГО: 500.00 [07:57:43]line Внесено: 500.00 [07:57:43]line СДАЧА: 0.00 [07:57:43]line НСП 1% : 4.43 [07:57:43]line НДС 12% : 53.11 [07:57:43]line Наличными: 500.00 [07:57:43]line Безнал.: 0.00 [07:57:43]line Место: АЗС № 136 "Партнер Нефть" [07:57:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:57:43]line СНО: Общий режим [07:57:43]line Чек 20 20.08.2024 07:57 [07:57:43]line Смена: 453 ФФД: 1.0 [07:57:43]line ЗНМ: 0300000067 [07:57:43]line РНМ: 0000000000092569 [07:57:43]line Версия ККМ: 001 [07:57:43]line ФМ: 0000000000871776 [07:57:43]line ФД: 139548 [07:57:43]line ФПД: 91177212760456 [07:57:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T075744&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139548&fm=91177212760456&tin=02508201610067®Number=0000000000092569&sum=50000 [07:57:44]OFD Sender: Processing packet 139548 [packets to send 137, broken 136] [07:57:44]ProducePacketName [07:57:44]name=ofd_packets/00139548 [07:57:44]OFD Sender: To server: pG, [07:57:44]CommunicateWithHost lk.salyk.kg:30040 [07:57:44]ConnectInit lk.salyk.kg [07:57:44]written 0, free lines is 4095 [07:57:44]Connected sock=7 [07:57:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 58 39 07 01 9C 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 14 00 00 00 F4 03 04 00 78 4C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 21 02 00 35 04 06 00 52 EC D9 60 D1 88 A6 DC 7F 7C 55 B1 16 D4 [07:57:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 21 15 47 00 56 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 21 02 00 F4 03 04 00 0C F3 C3 66 B6 04 01 00 00 66 17 D1 2A 40 C9 FD B7 [07:57:44]CommunicateWithHost err = 0 [07:57:44]CheckOFDResponse [07:57:44]1017 (14) - 77093643461234 [07:57:44]1041 (16) - 0000000000871776 [07:57:44]1040 (4) - 139548 [07:57:44]1012 (4) - 20.08.2024 01:36 [07:57:44]1206 (1) - 0 [07:57:44]OFD Sender: Remove packet 139548 [07:57:44]ProducePacketName [07:57:44]name=ofd_packets/00139548 [07:57:44]NVStorageDeleteData [07:57:44]Write to MH i2c: 01 00 00 1D 12 2F [07:57:44]Write i2c OK [07:57:44]MH_I2C_Read... [07:57:44]Read from MH i2c: 01 [07:57:44]MH_I2C_Read... [07:57:44]Read from MH i2c: 01 07 00 [07:57:44]MH_I2C_Read... [07:57:44]Read from MH i2c: 01 07 00 1D 12 00 00 00 00 00 C3 0C 05 [07:57:44]RasterBufferAndPrint [07:57:44]line [07:57:44]line [07:57:44]line [07:57:44]line [07:57:44]line [07:57:44]written 0, free lines is 3273 [07:57:44]MH_Cut [07:57:44]Write to MH i2c: D1 01 00 24 12 01 08 [07:57:44]Write i2c OK [07:57:44]MH_I2C_Read... [07:57:44]Read from MH i2c: D1 [07:57:44]MH_I2C_Read... [07:57:44]Read from MH i2c: D1 01 00 [07:57:44]MH_I2C_Read... [07:57:44]Read from MH i2c: D1 01 00 24 12 00 07 [07:57:44]Write to MH i2c: 01 00 00 25 12 37 [07:57:44]Write i2c OK [07:57:44]MH_I2C_Read... [07:57:45]OFD Sender: No OFD packet to send [07:57:45]*** Cut start [07:57:45]*** Partial cut [07:57:45]*** CUTSNS_PIN = 1 [07:57:45]*** CUTSNS_PIN = 0 [07:57:45]*** Brake cut motor [07:57:45]Read from MH i2c: 01 [07:57:45]MH_I2C_Read... [07:57:45]*** Stop cut motor [07:57:45]*** Cut end [07:57:45]Read from MH i2c: 01 07 00 [07:57:45]MH_I2C_Read... [07:57:45]Read from MH i2c: 01 07 00 25 12 00 00 00 00 00 FF 0F 4C [07:57:45]process_action close_receipt done [07:57:45]requested_data is exist [07:57:45]produce_requested_data [07:57:45]requested_item fm.sn is exist - process it [07:57:45]wFMCommunicate request_size=4 [07:57:45]MH_SAM_APDU [07:57:45]CAPDU: 80 11 00 00 [07:57:45]Write to MH i2c: E2 08 00 26 12 80 11 00 00 00 00 00 00 B2 [07:57:45]Write i2c OK [07:57:45]MH_I2C_Read... [07:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:46]Read from MH i2c: E2 [07:57:46]MH_I2C_Read... [07:57:46]Read from MH i2c: E2 17 00 [07:57:46]MH_I2C_Read... [07:57:46]Read from MH i2c: E2 17 00 26 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [07:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:57:46]wFMCommunicate OK [07:57:46]requested_item fd.num is exist - process it [07:57:46]SAM_PROTO_GetFieldsCounters [07:57:46]wFMCommunicate request_size=4 [07:57:46]MH_SAM_APDU [07:57:46]CAPDU: 80 13 00 00 [07:57:46]Write to MH i2c: E2 08 00 27 12 80 13 00 00 00 00 00 00 B5 [07:57:46]Write i2c OK [07:57:46]MH_I2C_Read... [07:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:46]Read from MH i2c: E2 [07:57:46]MH_I2C_Read... [07:57:46]Read from MH i2c: E2 62 00 [07:57:46]MH_I2C_Read... [07:57:46]Read from MH i2c: E2 62 00 27 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1C 21 02 00 0E 04 04 00 C5 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 21 [07:57:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1C 21 02 00 0E 04 04 00 C5 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 [07:57:46]wFMCommunicate OK [07:57:46]SAM_PROTO_GetFieldsCounters done [07:57:46]requested_item shift.num is exist - process it [07:57:46]requested_item shift.opened is exist - process it [07:57:46]req_shift_opened [07:57:46]FM_GetShiftState [07:57:46]SAM_PROTO_GetShiftState [07:57:46]wFMCommunicate request_size=4 [07:57:46]MH_SAM_APDU [07:57:46]CAPDU: 80 13 01 00 [07:57:46]Write to MH i2c: E2 08 00 28 12 80 13 01 00 00 00 00 00 B7 [07:57:46]Write i2c OK [07:57:46]MH_I2C_Read... [07:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:46]Read from MH i2c: E2 [07:57:46]MH_I2C_Read... [07:57:46]Read from MH i2c: E2 0E 00 [07:57:46]MH_I2C_Read... [07:57:46]Read from MH i2c: E2 0E 00 28 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 48 [07:57:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [07:57:46]wFMCommunicate OK [07:57:46]SAM_PROTO_GetShiftState done [07:57:46]FM_GetShiftState done [07:57:46]req_shift_opened done [07:57:46]requested_item shift.open_date is exist - process it [07:57:46]req_shift_open_date [07:57:46]req_shift_open_date done [07:57:46]produce_requested_data done [07:57:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139548,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [07:57:46]process_action_free close_receipt [07:57:46]json_value_free [07:57:46]json_value_free done [07:57:46]process_json_proto returns [07:57:46]Send response to host [07:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139548,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [07:57:46]free response buf [07:57:46]execute_script done [07:57:46]execute_script returns [07:57:46]free content buf [07:57:46]Sock 9.Close socket [07:57:46]Sock 9.Thread stoped [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:57:57]recv_with_timeout no data received [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send 78 4C C4 66 [07:57:42]Write to MH i2c: E2 10 00 E8 11 80 15 02 00 08 00 F4 03 04 00 78 4C C4 66 00 00 72 [07:57:42]Write i2c OK [07:57:42]MH_I2C_Read... [07:57:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:57:42]Read from MH i2c: E2 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 03 00 [07:57:42]MH_I2C_Read... [07:57:42]Read from MH i2c: E2 03 00 E8 11 00 90 00 6D [07:57:42]RAPDU: 90 00 [07:57:42]wFMCommunicate OK [07:57:42]wFMCommunicate request_size=25 [07:57:42]MH_SAM_APDU [07:57:42]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 [07:57:42]Write to MH i2c: E2 1C 00 E9 11 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 00 00 E2 [07:57:42]Write i2c OK [07:57:42]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 E9 11 00 90 00 6E [07:57:43]RAPDU: 90 00 [07:57:43]wFMCommunicate OK [07:57:43]wFMCommunicate request_size=4 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 15 03 00 [07:57:43]Write to MH i2c: E2 08 00 EA 11 80 15 03 00 00 00 00 00 7C [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]OFD Sender: No OFD packet to send [07:57:43]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 40 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 40 00 EA 11 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 14 00 00 00 35 04 06 00 52 EC D9 60 D1 88 90 00 5F [07:57:43]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 14 00 00 00 35 04 06 00 52 EC D9 60 D1 88 90 00 [07:57:43]wFMCommunicate OK [07:57:43]SAM_PROTO_ProcessDocument answer len = 59 [07:57:43]SAM_PROTO_ProcessDocument done [07:57:43]SetTLVBufToDocument [07:57:43]Processing tag 1209 (04B9) [07:57:43]Malloc new data [07:57:43]Processing tag 1041 (0411) [07:57:43]Processing tag 1040 (0410) [07:57:43]Malloc new data [07:57:43]Processing tag 1038 (040E) [07:57:43]Malloc new data [07:57:43]Processing tag 1042 (0412) [07:57:43]Malloc new data [07:57:43]Processing tag 1077 (0435) [07:57:43]Malloc new data [07:57:43]SetTLVBufToDocument err=0 [07:57:43]KKMLoadAndSignReceiptData store KKM data [07:57:43]KKMLoadAndSignReceiptData err=0 [07:57:43]wFMCommunicate request_size=4 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 11 00 00 [07:57:43]Write to MH i2c: E2 08 00 EB 11 80 11 00 00 00 00 00 00 76 [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 17 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 17 00 EB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CD [07:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:57:43]wFMCommunicate OK [07:57:43]Счет N : (1)593390 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 61 Товар: 2710124500 Аи-95-К-5 6.740 * 74.20 = 500.11 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 20 20.08.2024 07:57 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139548 ФПД: 91177212760456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T075744&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139548&fm=91177212760456&tin=02508201610067®Number=0000000000092569&sum=50000 [07:57:43]StoreToDocumentArchive [07:57:43]shift 453 fd 139548 [07:57:43]save to /storage/0453/doc_00139548 [07:57:43]save last doc name /storage/0453/doc_00139548 to /storage/kkm_last_doc_name [07:57:43]save OK [07:57:43]Clear old archive folders... [07:57:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:43]tlvbuf is 00D75A50 [07:57:43]SAM_PROTO_ClearQueue [07:57:43]wFMCommunicate request_size=4 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 09 00 00 [07:57:43]Write to MH i2c: E2 08 00 EC 11 80 09 00 00 00 00 00 00 6F [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 EC 11 00 90 00 71 [07:57:43]RAPDU: 90 00 [07:57:43]wFMCommunicate OK [07:57:43]SAM_PROTO_ClearQueue done [07:57:43]KKMCreateOFDPacket [07:57:43]OFDProtocolAddRootSTLVToBuf [07:57:43]FM_MakeSignedData [07:57:43]FM_MakeSignedData [07:57:43]SAM_PROTO_SignData [07:57:43]wFMCommunicate request_size=4 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 0D 01 02 [07:57:43]Write to MH i2c: E2 08 00 ED 11 80 0D 01 02 00 00 00 00 77 [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [07:57:43]RAPDU: 90 00 [07:57:43]wFMCommunicate OK [07:57:43]wFMCommunicate request_size=255 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 4C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 21 02 00 35 04 06 00 52 [07:57:43]Write to MH i2c: E2 02 01 EE 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 4C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 21 02 00 35 04 06 00 52 00 00 41 [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [07:57:43]RAPDU: 90 00 [07:57:43]wFMCommunicate OK [07:57:43]wFMCommunicate request_size=10 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 0D 02 02 05 EC D9 60 D1 88 [07:57:43]Write to MH i2c: E2 0D 00 EF 11 80 0D 02 02 05 00 EC D9 60 D1 88 00 00 02 [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [07:57:43]RAPDU: 90 00 [07:57:43]wFMCommunicate OK [07:57:43]wFMCommunicate request_size=4 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 0D 03 02 [07:57:43]Write to MH i2c: E2 08 00 F0 11 80 0D 03 02 00 00 00 00 7C [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 0B 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 0B 00 F0 11 00 A6 DC 7F 7C 55 B1 16 D4 90 00 EA [07:57:43]RAPDU: A6 DC 7F 7C 55 B1 16 D4 90 00 [07:57:43]wFMCommunicate OK [07:57:43]SAM_PROTO_SignData done [07:57:43]FM_MakeSignedData done [07:57:43]CreateOFDProtocolMessage [07:57:43]wFMCommunicate request_size=4 [07:57:43]MH_SAM_APDU [07:57:43]CAPDU: 80 11 00 00 [07:57:43]Write to MH i2c: E2 08 00 F1 11 80 11 00 00 00 00 00 00 7C [07:57:43]Write i2c OK [07:57:43]MH_I2C_Read... [07:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:43]Read from MH i2c: E2 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 17 00 [07:57:43]MH_I2C_Read... [07:57:43]Read from MH i2c: E2 17 00 F1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [07:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:57:43]wFMCommunicate OK [07:57:43]CreateOFDProtocolMessage done [07:57:43]OFDSenderStorePacket 139548 [07:57:43]StoreOFDPacket docnum=139548 [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:21]accept exits with 10 [08:00:21]New connection [08:00:21]New thread 3067071844 created [08:00:21]Thread 3067215204 joined [08:00:21]Waiting for new connection... [08:00:21] Sock 10.Parse request [08:00:21]Sock 10.Check first char [08:00:21]Sock 10.First char is OK [08:00:21]request: POST /json_proto HTTP/1.0 [08:00:21]Method: POST [08:00:21]URL: /json_proto [08:00:21]Method is POST - this is cgi request [08:00:21]url: /json_proto [08:00:21]query_string will be loaded in cgi processing [08:00:21]execute_cgi json_proto POST (null) [08:00:21]execute_cgi path=json_proto method=POST [08:00:21]POST find Content-Length [08:00:21]Host: 172.17.45.67:8080 [08:00:21]Content-Length: 677 [08:00:21]Content-Type: application/json [08:00:21] [08:00:21]POST finish read [08:00:21]Found Content-Length = 677 [08:00:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:21]execute_script... [08:00: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)593391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:21]POST & json_proto [08:00:21]process_json_proto [08:00:21]json parsed OK: [08:00:21]protocol is kg_v1.0 [08:00:21]action value=close_receipt [08:00:21]process_action close_receipt [08:00:21]cmd_close_receipt [08:00:21]MH_GetDate [08:00:21]Write to MH i2c: F0 00 00 29 12 2A [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: F0 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: F0 09 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: F0 09 00 29 12 00 17 4D C4 66 5F 7F 2B 66 30 [08:00:21]GetLastDocTimeStamp 1724140664 [08:00:21]current date 1724140823 [08:00:21]FM_GetShiftState [08:00:21]SAM_PROTO_GetShiftState [08:00:21]wFMCommunicate request_size=4 [08:00:21]MH_SAM_APDU [08:00:21]CAPDU: 80 13 01 00 [08:00:21]Write to MH i2c: E2 08 00 2A 12 80 13 01 00 00 00 00 00 B9 [08:00:21]Write i2c OK [08:00:21]MH_I2C_Read... [08:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:21]Read from MH i2c: E2 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 0E 00 [08:00:21]MH_I2C_Read... [08:00:21]Read from MH i2c: E2 0E 00 2A 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4A [08:00:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:00:21]wFMCommunicate OK [08:00:21]SAM_PROTO_GetShiftState done [08:00:21]FM_GetShiftState done [08:00:21]opened in 1724113785 [08:00:21]opened+sec_in_day 1724200185 [08:00:21]quantity*price = 25018 [08:00:21]sum+1 = 25019 [08:00:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 21 20.08.2024 08:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139549 ФПД: 175569232558380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139549&fm=175569232558380&tin=02508201610067®Number=0000000000092569&sum=25000 [08:00:22]StoreToDocumentArchive [08:00:22]shift 453 fd 139549 [08:00:22]save to /storage/0453/doc_00139549 [08:00:22]save last doc name /storage/0453/doc_00139549 to /storage/kkm_last_doc_name [08:00:22]save OK [08:00:22]Clear old archive folders... [08:00:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:22]tlvbuf is B6EE8DC0 [08:00:22]SAM_PROTO_ClearQueue [08:00:22]wFMCommunicate request_size=4 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 09 00 00 [08:00:22]Write to MH i2c: E2 08 00 37 12 80 09 00 00 00 00 00 00 BB [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:22]Read from MH i2c: E2 03 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [08:00:22]RAPDU: 90 00 [08:00:22]wFMCommunicate OK [08:00:22]SAM_PROTO_ClearQueue done [08:00:22]KKMCreateOFDPacket [08:00:22]OFDProtocolAddRootSTLVToBuf [08:00:22]FM_MakeSignedData [08:00:22]FM_MakeSignedData [08:00:22]SAM_PROTO_SignData [08:00:22]wFMCommunicate request_size=4 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 0D 01 02 [08:00:22]Write to MH i2c: E2 08 00 38 12 80 0D 01 02 00 00 00 00 C3 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:22]Read from MH i2c: E2 03 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [08:00:22]RAPDU: 90 00 [08:00:22]wFMCommunicate OK [08:00:22]wFMCommunicate request_size=255 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 17 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 21 02 00 35 04 06 00 9F [08:00:22]Write to MH i2c: E2 02 01 39 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 17 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 21 02 00 35 04 06 00 9F 00 00 A2 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 03 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 03 00 39 12 00 90 00 BF [08:00:22]RAPDU: 90 00 [08:00:22]wFMCommunicate OK [08:00:22]wFMCommunicate request_size=10 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 0D 02 02 05 AD E5 BD 79 2C [08:00:22]Write to MH i2c: E2 0D 00 3A 12 80 0D 02 02 05 00 AD E5 BD 79 2C 00 00 C4 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 03 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 03 00 3A 12 00 90 00 C0 [08:00:22]RAPDU: 90 00 [08:00:22]wFMCommunicate OK [08:00:22]wFMCommunicate request_size=4 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 0D 03 02 [08:00:22]Write to MH i2c: E2 08 00 3B 12 80 0D 03 02 00 00 00 00 C8 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 0B 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 0B 00 3B 12 00 C0 93 FD 0B F0 96 A1 4E 90 00 99 [08:00:22]RAPDU: C0 93 FD 0B F0 96 A1 4E 90 00 [08:00:22]wFMCommunicate OK [08:00:22]SAM_PROTO_SignData done [08:00:22]FM_MakeSignedData done [08:00:22]CreateOFDProtocolMessage [08:00:22]wFMCommunicate request_size=4 [08:00:22]MH_SAM_APDU [08:00:22]CAPDU: 80 11 00 00 [08:00:22]Write to MH i2c: E2 08 00 3C 12 80 11 00 00 00 00 00 00 C8 [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:22]Read from MH i2c: E2 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 17 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: E2 17 00 3C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [08:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:00:22]wFMCommunicate OK [08:00:22]CreateOFDProtocolMessage done [08:00:22]OFDSenderStorePacket 139549 [08:00:22]StoreOFDPacket docnum=139549 [08:00:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7A 7D 07 01 6F 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 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 17 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 21 02 00 35 04 06 00 9F AD E5 BD 79 2C C0 93 FD 0B F0 96 A1 4E [08:00:22]CheckFolder [08:00:22]dirname=/storage/ofd_packets [08:00:22]CheckFolder done [08:00:22]ProducePacketName [08:00:22]name=ofd_packets/00139549 [08:00:22]NVStorageSaveData ofd_packets/00139549 [08:00:22]File name is /storage/ofd_packets/00139549 [08:00:22]Write 301 bytes [08:00:22]NVStorageSaveData done [08:00:22]OFDSenderStorePacket done [08:00:22]KKMCreateOFDPacket done [08:00:22]NVStorageSaveData kkm_last_timestamp [08:00:22]File name is /storage/kkm_last_timestamp [08:00:22]Write 4 bytes [08:00:22]NVStorageSaveData done [08:00:22]ExternCall_PrintAddStr [08:00:22]wPrintStart [08:00:22]Write to MH i2c: 01 00 00 3D 12 4F [08:00:22]Write i2c OK [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: 01 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: 01 07 00 [08:00:22]MH_I2C_Read... [08:00:22]Read from MH i2c: 01 07 00 3D 12 00 00 00 00 00 FF 0F 64 [08:00:22]RasterBufferAndPrint [08:00:22]line Счет N : (1)593391 [08:00:22]line ИНН: 02508201610067 [08:00:22]line Контрольно-Кассовый Чек [08:00:22]line ПРОДАЖА [08:00:22]line ТРК (МРК, ГНК) : 32 [08:00:22]line Товар: 2710124130 [08:00:22]line Аи-92-К-5 [08:00:22]line 3.690 * 67.80 [08:00:22]line = 250.18 [08:00:22]line НДС 12% НСП 1% [08:00:22]line > о реализуемом товаре [08:00:22]line ОКРУГЛЕНИЕ: -0.18 [08:00:22]line ИТОГО: 250.00 [08:00:22]line Внесено: 250.00 [08:00:22]line СДАЧА: 0.00 [08:00:22]line НСП 1% : 2.21 [08:00:22]line НДС 12% : 26.57 [08:00:22]line Наличными: 250.00 [08:00:22]line Безнал.: 0.00 [08:00:22]line Место: АЗС № 136 "Партнер Нефть" [08:00:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:00:22]line СНО: Общий режим [08:00:22]line Чек 21 20.08.2024 08:00 [08:00:22]line Смена: 453 ФФД: 1.0 [08:00:22]line ЗНМ: 0300000067 [08:00:22]line РНМ: 0000000000092569 [08:00:22]line Версия ККМ: 001 [08:00:22]line ФМ: 0000000000871776 [08:00:22]line ФД: 139549 [08:00:22]line ФПД: 175569232558380 [08:00:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139549&fm=175569232558380&tin=02508201610067®Number=0000000000092569&sum=25000 [08:00:23]written 0, free lines is 4095 [08:00:23]OFD Sender: Processing packet 139549 [packets to send 137, broken 136] [08:00:23]ProducePacketName [08:00:23]name=ofd_packets/00139549 [08:00:23]OFD Sender: To server: pG, [08:00:23]CommunicateWithHost lk.salyk.kg:30040 [08:00:23]ConnectInit lk.salyk.kg [08:00:23]Connected sock=9 [08:00:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7A 7D 07 01 6F 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 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 17 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 21 02 00 35 04 06 00 9F AD E5 BD 79 2C C0 93 FD 0B F0 96 A1 4E [08:00:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A6 7F 47 00 5C D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 21 02 00 F4 03 04 00 AB F3 C3 66 B6 04 01 00 00 8F EA 1E B1 67 0E 62 74 [08:00:23]CommunicateWithHost err = 0 [08:00:23]CheckOFDResponse [08:00:23]1017 (14) - 77093643461234 [08:00:23]1041 (16) - 0000000000871776 [08:00:23]1040 (4) - 139549 [08:00:23]1012 (4) - 20.08.2024 01:38 [08:00:23]1206 (1) - 0 [08:00:23]OFD Sender: Remove packet 139549 [08:00:23]ProducePacketName [08:00:23]name=ofd_packets/00139549 [08:00:23]NVStorageDeleteData [08:00:23]Write to MH i2c: 01 00 00 68 12 7A [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: 01 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: 01 07 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: 01 07 00 68 12 00 00 00 00 00 CD 0C 5A [08:00:23]RasterBufferAndPrint [08:00:23]line [08:00:23]line [08:00:23]line [08:00:23]line [08:00:23]line [08:00:23]written 0, free lines is 3283 [08:00:23]MH_Cut [08:00:23]Write to MH i2c: D1 01 00 6F 12 01 53 [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: D1 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: D1 01 00 [08:00:23]MH_I2C_Read... [08:00:23]Read from MH i2c: D1 01 00 6F 12 00 52 [08:00:23]Write to MH i2c: 01 00 00 70 12 82 [08:00:23]Write i2c OK [08:00:23]MH_I2C_Read... [08:00:24]OFD Sender: No OFD packet to send [08:00:24]*** Cut start [08:00:24]*** Partial cut [08:00:24]*** CUTSNS_PIN = 1 [08:00:24]*** CUTSNS_PIN = 0 [08:00:24]*** Brake cut motor [08:00:25]Read from MH i2c: 01 [08:00:25]MH_I2C_Read... [08:00:25]*** Stop cut motor [08:00:25]*** Cut end [08:00:25]Read from MH i2c: 01 07 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: 01 07 00 70 12 00 00 00 00 00 FF 0F 97 [08:00:25]process_action close_receipt done [08:00:25]requested_data is exist [08:00:25]produce_requested_data [08:00:25]requested_item fm.sn is exist - process it [08:00:25]wFMCommunicate request_size=4 [08:00:25]MH_SAM_APDU [08:00:25]CAPDU: 80 11 00 00 [08:00:25]Write to MH i2c: E2 08 00 71 12 80 11 00 00 00 00 00 00 FD [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:25]Read from MH i2c: E2 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 17 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 17 00 71 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [08:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:00:25]wFMCommunicate OK [08:00:25]requested_item fd.num is exist - process it [08:00:25]SAM_PROTO_GetFieldsCounters [08:00:25]wFMCommunicate request_size=4 [08:00:25]MH_SAM_APDU [08:00:25]CAPDU: 80 13 00 00 [08:00:25]Write to MH i2c: E2 08 00 72 12 80 13 00 00 00 00 00 00 00 [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:25]Read from MH i2c: E2 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 62 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 62 00 72 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1D 21 02 00 0E 04 04 00 C5 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 70 [08:00:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1D 21 02 00 0E 04 04 00 C5 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 [08:00:25]wFMCommunicate OK [08:00:25]SAM_PROTO_GetFieldsCounters done [08:00:25]requested_item shift.num is exist - process it [08:00:25]requested_item shift.opened is exist - process it [08:00:25]req_shift_opened [08:00:25]FM_GetShiftState [08:00:25]SAM_PROTO_GetShiftState [08:00:25]wFMCommunicate request_size=4 [08:00:25]MH_SAM_APDU [08:00:25]CAPDU: 80 13 01 00 [08:00:25]Write to MH i2c: E2 08 00 73 12 80 13 01 00 00 00 00 00 02 [08:00:25]Write i2c OK [08:00:25]MH_I2C_Read... [08:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:25]Read from MH i2c: E2 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 0E 00 [08:00:25]MH_I2C_Read... [08:00:25]Read from MH i2c: E2 0E 00 73 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 93 [08:00:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:00:25]wFMCommunicate OK [08:00:25]SAM_PROTO_GetShiftState done [08:00:25]FM_GetShiftState done [08:00:25]req_shift_opened done [08:00:25]requested_item shift.open_date is exist - process it [08:00:25]req_shift_open_date [08:00:25]req_shift_open_date done [08:00:25]produce_requested_data done [08:00:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139549,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:00:25]process_action_free close_receipt [08:00:25]json_value_free [08:00:25]json_value_free done [08:00:25]process_json_proto returns [08:00:25]Send response to host [08:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139549,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:00:25]free response buf [08:00:25]execute_script done [08:00:25]execute_script returns [08:00:25]free content buf [08:00:25]Sock 10.Close socket [08:00:25]Sock 10.Thread stoped [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:47]accept exits with 7 [08:00:47]New connection [08:00:47]New thread 3067215204 created [08:00:47]Thread 3067071844 joined [08:00:47]Waiting for new connection... [08:00:47] Sock 7.Parse request [08:00:47]Sock 7.Check first char [08:00:47]Sock 7.First char is OK [08:00:47]request: POST /json_proto HTTP/1.0 [08:00:47]Method: POST [08:00:47]URL: /json_proto [08:00:47]Method is POST - this is cgi request [08:00:47]url: /json_proto [08:00:47]query_string will be loaded in cgi processing [08:00:47]execute_cgi json_proto POST (null) [08:00:47]execute_cgi path=json_proto method=POST [08:00:47]POST find Content-Length [08:00:47]Host: 172.17.45.67:8080 [08:00:47]Content-Length: 682 [08:00:47]Content-Type: application/json [08:00:47] [08:00:47]POST finish read [08:00:47]Found Content-Length = 682 [08:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:47]execute_script... [08:00: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)593392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:47]POST & json_proto [08:00:47]process_json_proto [08:00:47]json parsed OK: [08:00:47]protocol is kg_v1.0 [08:00:47]action value=close_receipt [08:00:47]process_action close_receipt [08:00:47]cmd_close_receipt [08:00:47]MH_GetDate [08:00:47]Write to MH i2c: F0 00 00 74 12 75 [08:00:47]Write i2c OK [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: F0 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: F0 09 00 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: F0 09 00 74 12 00 31 4D C4 66 5F 7F 2B 66 95 [08:00:47]GetLastDocTimeStamp 1724140823 [08:00:47]current date 1724140849 [08:00:47]FM_GetShiftState [08:00:47]SAM_PROTO_GetShiftState [08:00:47]wFMCommunicate request_size=4 [08:00:47]MH_SAM_APDU [08:00:47]CAPDU: 80 13 01 00 [08:00:47]Write to MH i2c: E2 08 00 75 12 80 13 01 00 00 00 00 00 04 [08:00:47]Write i2c OK [08:00:47]MH_I2C_Read... [08:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:47]Read from MH i2c: E2 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: E2 0E 00 [08:00:47]MH_I2C_Read... [08:00:47]Read from MH i2c: E2 0E 00 75 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 95 [08:00:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:00:47]wFMCommunicate OK [08:00:47]SAM_PROTO_GetShiftState done [08:00:47]FM_GetShiftState done [08:00:47]opened in 1724113785 [08:00:47]opened+sec_in_day 1724200185 [08:00:47]quantity*price = 100021 [08:00:47]sum+1 = 100023 [08:00:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 22 20.08.2024 08:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139550 ФПД: 235367146735594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080049&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139550&fm=235367146735594&tin=02508201610067®Number=0000000000092569&sum=100000 [08:00:48]StoreToDocumentArchive [08:00:48]shift 453 fd 139550 [08:00:48]save to /storage/0453/doc_00139550 [08:00:48]save last doc name /storage/0453/doc_00139550 to /storage/kkm_last_doc_name [08:00:48]save OK [08:00:48]Clear old archive folders... [08:00:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:48]tlvbuf is 00D2EA80 [08:00:48]SAM_PROTO_ClearQueue [08:00:48]wFMCommunicate request_size=4 [08:00:48]MH_SAM_APDU [08:00:48]CAPDU: 80 09 00 00 [08:00:48]Write to MH i2c: E2 08 00 82 12 80 09 00 00 00 00 00 00 06 [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:48]Read from MH i2c: E2 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [08:00:48]RAPDU: 90 00 [08:00:48]wFMCommunicate OK [08:00:48]SAM_PROTO_ClearQueue done [08:00:48]KKMCreateOFDPacket [08:00:48]OFDProtocolAddRootSTLVToBuf [08:00:48]FM_MakeSignedData [08:00:48]FM_MakeSignedData [08:00:48]SAM_PROTO_SignData [08:00:48]wFMCommunicate request_size=4 [08:00:48]MH_SAM_APDU [08:00:48]CAPDU: 80 0D 01 02 [08:00:48]Write to MH i2c: E2 08 00 83 12 80 0D 01 02 00 00 00 00 0E [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:48]Read from MH i2c: E2 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [08:00:48]RAPDU: 90 00 [08:00:48]wFMCommunicate OK [08:00:48]wFMCommunicate request_size=255 [08:00:48]MH_SAM_APDU [08:00:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 16 00 00 00 F4 03 04 00 31 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 21 02 00 35 04 06 00 D6 [08:00:48]Write to MH i2c: E2 02 01 84 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 16 00 00 00 F4 03 04 00 31 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 21 02 00 35 04 06 00 D6 00 00 5F [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:48]Read from MH i2c: E2 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [08:00:48]RAPDU: 90 00 [08:00:48]wFMCommunicate OK [08:00:48]wFMCommunicate request_size=10 [08:00:48]MH_SAM_APDU [08:00:48]CAPDU: 80 0D 02 02 05 10 AF 2C 47 EA [08:00:48]Write to MH i2c: E2 0D 00 85 12 80 0D 02 02 05 00 10 AF 2C 47 EA 00 00 37 [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:48]Read from MH i2c: E2 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [08:00:48]RAPDU: 90 00 [08:00:48]wFMCommunicate OK [08:00:48]wFMCommunicate request_size=4 [08:00:48]MH_SAM_APDU [08:00:48]CAPDU: 80 0D 03 02 [08:00:48]Write to MH i2c: E2 08 00 86 12 80 0D 03 02 00 00 00 00 13 [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:48]Read from MH i2c: E2 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 0B 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 0B 00 86 12 00 8E 09 25 5E A2 14 5E B1 90 00 F3 [08:00:48]RAPDU: 8E 09 25 5E A2 14 5E B1 90 00 [08:00:48]wFMCommunicate OK [08:00:48]SAM_PROTO_SignData done [08:00:48]FM_MakeSignedData done [08:00:48]CreateOFDProtocolMessage [08:00:48]wFMCommunicate request_size=4 [08:00:48]MH_SAM_APDU [08:00:48]CAPDU: 80 11 00 00 [08:00:48]Write to MH i2c: E2 08 00 87 12 80 11 00 00 00 00 00 00 13 [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 [08:00:48]MH_I2C_Read... [08:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:48]Read from MH i2c: E2 17 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: E2 17 00 87 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [08:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:00:48]wFMCommunicate OK [08:00:48]CreateOFDProtocolMessage done [08:00:48]OFDSenderStorePacket 139550 [08:00:48]StoreOFDPacket docnum=139550 [08:00:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 1E 07 01 4F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 31 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 21 02 00 35 04 06 00 D6 10 AF 2C 47 EA 8E 09 25 5E A2 14 5E B1 [08:00:48]CheckFolder [08:00:48]dirname=/storage/ofd_packets [08:00:48]CheckFolder done [08:00:48]ProducePacketName [08:00:48]name=ofd_packets/00139550 [08:00:48]NVStorageSaveData ofd_packets/00139550 [08:00:48]File name is /storage/ofd_packets/00139550 [08:00:48]Write 301 bytes [08:00:48]NVStorageSaveData done [08:00:48]OFDSenderStorePacket done [08:00:48]KKMCreateOFDPacket done [08:00:48]NVStorageSaveData kkm_last_timestamp [08:00:48]File name is /storage/kkm_last_timestamp [08:00:48]Write 4 bytes [08:00:48]NVStorageSaveData done [08:00:48]ExternCall_PrintAddStr [08:00:48]wPrintStart [08:00:48]Write to MH i2c: 01 00 00 88 12 9A [08:00:48]Write i2c OK [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: 01 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: 01 07 00 [08:00:48]MH_I2C_Read... [08:00:48]Read from MH i2c: 01 07 00 88 12 00 00 00 00 00 FF 0F AF [08:00:48]RasterBufferAndPrint [08:00:48]line Счет N : (1)593392 [08:00:48]line ИНН: 02508201610067 [08:00:48]line Контрольно-Кассовый Чек [08:00:48]line ПРОДАЖА [08:00:48]line ТРК (МРК, ГНК) : 41 [08:00:48]line Товар: 2710124500 [08:00:48]line Аи-95-К-5 [08:00:48]line 13.480 * 74.20 [08:00:48]line = 1000.22 [08:00:48]line НДС 12% НСП 1% [08:00:48]line > о реализуемом товаре [08:00:48]line ОКРУГЛЕНИЕ: -0.22 [08:00:48]line ИТОГО: 1000.00 [08:00:48]line Внесено: 1000.00 [08:00:48]line СДАЧА: 0.00 [08:00:48]line НСП 1% : 8.85 [08:00:48]line НДС 12% : 106.22 [08:00:48]line Наличными: 1000.00 [08:00:48]line Безнал.: 0.00 [08:00:48]line Место: АЗС № 136 "Партнер Нефть" [08:00:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:00:48]line СНО: Общий режим [08:00:48]line Чек 22 20.08.2024 08:00 [08:00:48]line Смена: 453 ФФД: 1.0 [08:00:48]line ЗНМ: 0300000067 [08:00:48]line РНМ: 0000000000092569 [08:00:48]line Версия ККМ: 001 [08:00:48]line ФМ: 0000000000871776 [08:00:48]line ФД: 139550 [08:00:48]line ФПД: 235367146735594 [08:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080049&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139550&fm=235367146735594&tin=02508201610067®Number=0000000000092569&sum=100000 [08:00:48]written 0, free lines is 4095 [08:00:48]OFD Sender: Processing packet 139550 [packets to send 137, broken 136] [08:00:48]ProducePacketName [08:00:48]name=ofd_packets/00139550 [08:00:48]OFD Sender: To server: pG, [08:00:48]CommunicateWithHost lk.salyk.kg:30040 [08:00:48]ConnectInit lk.salyk.kg [08:00:49]Connected sock=10 [08:00:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 1E 07 01 4F 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 31 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 21 02 00 35 04 06 00 D6 10 AF 2C 47 EA 8E 09 25 5E A2 14 5E B1 [08:00:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 21 29 47 00 44 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 21 02 00 F4 03 04 00 C5 F3 C3 66 B6 04 01 00 00 E5 63 A4 4A 4E 53 72 68 [08:00:49]CommunicateWithHost err = 0 [08:00:49]CheckOFDResponse [08:00:49]1017 (14) - 77093643461234 [08:00:49]1041 (16) - 0000000000871776 [08:00:49]1040 (4) - 139550 [08:00:49]1012 (4) - 20.08.2024 01:39 [08:00:49]1206 (1) - 0 [08:00:49]OFD Sender: Remove packet 139550 [08:00:49]ProducePacketName [08:00:49]name=ofd_packets/00139550 [08:00:49]NVStorageDeleteData [08:00:49]Write to MH i2c: 01 00 00 B3 12 C5 [08:00:49]Write i2c OK [08:00:49]MH_I2C_Read... [08:00:49]Read from MH i2c: 01 [08:00:49]MH_I2C_Read... [08:00:49]Read from MH i2c: 01 07 00 [08:00:49]MH_I2C_Read... [08:00:49]Read from MH i2c: 01 07 00 B3 12 00 00 00 00 00 C8 0C A0 [08:00:49]RasterBufferAndPrint [08:00:49]line [08:00:49]line [08:00:49]line [08:00:49]line [08:00:49]line [08:00:49]written 0, free lines is 3278 [08:00:49]MH_Cut [08:00:49]Write to MH i2c: D1 01 00 BA 12 01 9E [08:00:49]Write i2c OK [08:00:49]MH_I2C_Read... [08:00:49]Read from MH i2c: D1 [08:00:49]MH_I2C_Read... [08:00:49]Read from MH i2c: D1 01 00 [08:00:49]MH_I2C_Read... [08:00:49]Read from MH i2c: D1 01 00 BA 12 00 9D [08:00:49]Write to MH i2c: 01 00 00 BB 12 CD [08:00:49]Write i2c OK [08:00:49]MH_I2C_Read... [08:00:49]OFD Sender: No OFD packet to send [08:00:50]*** Cut start [08:00:50]*** Partial cut [08:00:50]*** CUTSNS_PIN = 1 [08:00:50]*** CUTSNS_PIN = 0 [08:00:50]*** Brake cut motor [08:00:50]Read from MH i2c: 01 [08:00:50]MH_I2C_Read... [08:00:50]*** Stop cut motor [08:00:50]*** Cut end [08:00:50]Read from MH i2c: 01 07 00 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: 01 07 00 BB 12 00 00 00 00 00 FF 0F E2 [08:00:50]process_action close_receipt done [08:00:50]requested_data is exist [08:00:50]produce_requested_data [08:00:50]requested_item fm.sn is exist - process it [08:00:50]wFMCommunicate request_size=4 [08:00:50]MH_SAM_APDU [08:00:50]CAPDU: 80 11 00 00 [08:00:50]Write to MH i2c: E2 08 00 BC 12 80 11 00 00 00 00 00 00 48 [08:00:50]Write i2c OK [08:00:50]MH_I2C_Read... [08:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:50]Read from MH i2c: E2 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 17 00 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 17 00 BC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9F [08:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:00:50]wFMCommunicate OK [08:00:50]requested_item fd.num is exist - process it [08:00:50]SAM_PROTO_GetFieldsCounters [08:00:50]wFMCommunicate request_size=4 [08:00:50]MH_SAM_APDU [08:00:50]CAPDU: 80 13 00 00 [08:00:50]Write to MH i2c: E2 08 00 BD 12 80 13 00 00 00 00 00 00 4B [08:00:50]Write i2c OK [08:00:50]MH_I2C_Read... [08:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:50]Read from MH i2c: E2 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 62 00 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 62 00 BD 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1E 21 02 00 0E 04 04 00 C5 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 BF [08:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1E 21 02 00 0E 04 04 00 C5 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 [08:00:50]wFMCommunicate OK [08:00:50]SAM_PROTO_GetFieldsCounters done [08:00:50]requested_item shift.num is exist - process it [08:00:50]requested_item shift.opened is exist - process it [08:00:50]req_shift_opened [08:00:50]FM_GetShiftState [08:00:50]SAM_PROTO_GetShiftState [08:00:50]wFMCommunicate request_size=4 [08:00:50]MH_SAM_APDU [08:00:50]CAPDU: 80 13 01 00 [08:00:50]Write to MH i2c: E2 08 00 BE 12 80 13 01 00 00 00 00 00 4D [08:00:50]Write i2c OK [08:00:50]MH_I2C_Read... [08:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:50]Read from MH i2c: E2 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 0E 00 [08:00:50]MH_I2C_Read... [08:00:50]Read from MH i2c: E2 0E 00 BE 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DE [08:00:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:00:50]wFMCommunicate OK [08:00:50]SAM_PROTO_GetShiftState done [08:00:50]FM_GetShiftState done [08:00:50]req_shift_opened done [08:00:50]requested_item shift.open_date is exist - process it [08:00:50]req_shift_open_date [08:00:50]req_shift_open_date done [08:00:50]produce_requested_data done [08:00:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139550,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:00:50]process_action_free close_receipt [08:00:50]json_value_free [08:00:50]json_value_free done [08:00:50]process_json_proto returns [08:00:50]Send response to host [08:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139550,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:00:50]free response buf [08:00:50]execute_script done [08:00:50]execute_script returns [08:00:50]free content buf [08:00:50]Sock 7.Close socket [08:00:50]Sock 7.Thread stoped [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]accept exits with 9 [08:03:04]New connection [08:03:04]New thread 3067071844 created [08:03:04]Thread 3067215204 joined [08:03:04]Waiting for new connection... [08:03:04] Sock 9.Parse request [08:03:04]Sock 9.Check first char [08:03:04]Sock 9.First char is OK [08:03:04]request: POST /json_proto HTTP/1.0 [08:03:04]Method: POST [08:03:04]URL: /json_proto [08:03:04]Method is POST - this is cgi request [08:03:04]url: /json_proto [08:03:04]query_string will be loaded in cgi processing [08:03:04]execute_cgi json_proto POST (null) [08:03:04]execute_cgi path=json_proto method=POST [08:03:04]POST find Content-Length [08:03:04]Host: 172.17.45.67:8080 [08:03:04]Content-Length: 834 [08:03:04]Content-Type: application/json [08:03:04] [08:03:04]POST finish read [08:03:04]Found Content-Length = 834 [08:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 550.00, "payments": [ { "type": 1, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:04]execute_script... [08:03: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)593393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 550.00, "payments": [ { "type": 1, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:04]POST & json_proto [08:03:04]process_json_proto [08:03:04]json parsed OK: [08:03:04]protocol is kg_v1.0 [08:03:04]action value=close_receipt [08:03:04]process_action close_receipt [08:03:04]cmd_close_receipt [08:03:04]MH_GetDate [08:03:04]Write to MH i2c: F0 00 00 BF 12 C0 [08:03:04]Write i2c OK [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: F0 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: F0 09 00 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: F0 09 00 BF 12 00 BA 4D C4 66 5F 7F 2B 66 69 [08:03:04]GetLastDocTimeStamp 1724140849 [08:03:04]current date 1724140986 [08:03:04]FM_GetShiftState [08:03:04]SAM_PROTO_GetShiftState [08:03:04]wFMCommunicate request_size=4 [08:03:04]MH_SAM_APDU [08:03:04]CAPDU: 80 13 01 00 [08:03:04]Write to MH i2c: E2 08 00 C0 12 80 13 01 00 00 00 00 00 4F [08:03:04]Write i2c OK [08:03:04]MH_I2C_Read... [08:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:04]Read from MH i2c: E2 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 0E 00 [08:03:04]MH_I2C_Read... [08:03:04]Read from MH i2c: E2 0E 00 C0 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E0 [08:03:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:03:04]wFMCommunicate OK [08:03:04]SAM_PROTO_GetShiftState done [08:03:04]FM_GetShiftState done [08:03:04]opened in 1724113785 [08:03:04]opened+sec_in_day 1724200185 [08:03:04]quantity*price = 55053 [08:03:04]sum+1 = 55055 [08:03:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 0.00 Безнал.: 550.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 23 20.08.2024 08:03 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139551 ФПД: 203252058525576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080306&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139551&fm=203252058525576&tin=02508201610067®Number=0000000000092569&sum=55000 [08:03:05]StoreToDocumentArchive [08:03:05]shift 453 fd 139551 [08:03:05]save to /storage/0453/doc_00139551 [08:03:05]save last doc name /storage/0453/doc_00139551 to /storage/kkm_last_doc_name [08:03:05]save OK [08:03:05]Clear old archive folders... [08:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:05]tlvbuf is B6F01730 [08:03:05]SAM_PROTO_ClearQueue [08:03:05]wFMCommunicate request_size=4 [08:03:05]MH_SAM_APDU [08:03:05]CAPDU: 80 09 00 00 [08:03:05]Write to MH i2c: E2 08 00 CD 12 80 09 00 00 00 00 00 00 51 [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:05]Read from MH i2c: E2 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 03 00 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 03 00 CD 12 00 90 00 53 [08:03:05]RAPDU: 90 00 [08:03:05]wFMCommunicate OK [08:03:05]SAM_PROTO_ClearQueue done [08:03:05]KKMCreateOFDPacket [08:03:05]OFDProtocolAddRootSTLVToBuf [08:03:05]FM_MakeSignedData [08:03:05]FM_MakeSignedData [08:03:05]SAM_PROTO_SignData [08:03:05]wFMCommunicate request_size=4 [08:03:05]MH_SAM_APDU [08:03:05]CAPDU: 80 0D 01 02 [08:03:05]Write to MH i2c: E2 08 00 CE 12 80 0D 01 02 00 00 00 00 59 [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:05]Read from MH i2c: E2 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 03 00 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [08:03:05]RAPDU: 90 00 [08:03:05]wFMCommunicate OK [08:03:05]wFMCommunicate request_size=255 [08:03:05]MH_SAM_APDU [08:03:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 BA 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 21 02 00 35 04 06 00 B8 [08:03:05]Write to MH i2c: E2 02 01 CF 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 BA 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 21 02 00 35 04 06 00 B8 00 00 F7 [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:05]Read from MH i2c: E2 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 03 00 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 03 00 CF 12 00 90 00 55 [08:03:05]RAPDU: 90 00 [08:03:05]wFMCommunicate OK [08:03:05]wFMCommunicate request_size=10 [08:03:05]MH_SAM_APDU [08:03:05]CAPDU: 80 0D 02 02 05 DB 4E BF 8F 88 [08:03:05]Write to MH i2c: E2 0D 00 D0 12 80 0D 02 02 05 00 DB 4E BF 8F 88 00 00 65 [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:05]Read from MH i2c: E2 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 03 00 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [08:03:05]RAPDU: 90 00 [08:03:05]wFMCommunicate OK [08:03:05]wFMCommunicate request_size=4 [08:03:05]MH_SAM_APDU [08:03:05]CAPDU: 80 0D 03 02 [08:03:05]Write to MH i2c: E2 08 00 D1 12 80 0D 03 02 00 00 00 00 5E [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:05]Read from MH i2c: E2 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 0B 00 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 0B 00 D1 12 00 44 6E 7E A6 44 B0 AB 0A 90 00 DE [08:03:05]RAPDU: 44 6E 7E A6 44 B0 AB 0A 90 00 [08:03:05]wFMCommunicate OK [08:03:05]SAM_PROTO_SignData done [08:03:05]FM_MakeSignedData done [08:03:05]CreateOFDProtocolMessage [08:03:05]wFMCommunicate request_size=4 [08:03:05]MH_SAM_APDU [08:03:05]CAPDU: 80 11 00 00 [08:03:05]Write to MH i2c: E2 08 00 D2 12 80 11 00 00 00 00 00 00 5E [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:05]Read from MH i2c: E2 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 17 00 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: E2 17 00 D2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [08:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:03:05]wFMCommunicate OK [08:03:05]CreateOFDProtocolMessage done [08:03:05]OFDSenderStorePacket 139551 [08:03:05]StoreOFDPacket docnum=139551 [08:03:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 B1 07 01 F8 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 BA 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 21 02 00 35 04 06 00 B8 DB 4E BF 8F 88 44 6E 7E A6 44 B0 AB 0A [08:03:05]CheckFolder [08:03:05]dirname=/storage/ofd_packets [08:03:05]CheckFolder done [08:03:05]ProducePacketName [08:03:05]name=ofd_packets/00139551 [08:03:05]NVStorageSaveData ofd_packets/00139551 [08:03:05]File name is /storage/ofd_packets/00139551 [08:03:05]Write 301 bytes [08:03:05]NVStorageSaveData done [08:03:05]OFDSenderStorePacket done [08:03:05]KKMCreateOFDPacket done [08:03:05]NVStorageSaveData kkm_last_timestamp [08:03:05]File name is /storage/kkm_last_timestamp [08:03:05]Write 4 bytes [08:03:05]NVStorageSaveData done [08:03:05]ExternCall_PrintAddStr [08:03:05]wPrintStart [08:03:05]Write to MH i2c: 01 00 00 D3 12 E5 [08:03:05]Write i2c OK [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: 01 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: 01 07 00 [08:03:05]MH_I2C_Read... [08:03:05]Read from MH i2c: 01 07 00 D3 12 00 00 00 00 00 FF 0F FA [08:03:05]RasterBufferAndPrint [08:03:05]line Счет N : (1)593393 [08:03:05]line ИНН: 02508201610067 [08:03:05]line Контрольно-Кассовый Чек [08:03:05]line ПРОДАЖА [08:03:05]line ТРК (МРК, ГНК) : 62 [08:03:05]line Товар: 2710124130 [08:03:05]line Аи-92-К-5 [08:03:05]line 8.120 * 67.80 [08:03:05]line = 550.54 [08:03:05]line НДС 12% НСП 1% [08:03:05]line > о реализуемом товаре [08:03:05]line ОКРУГЛЕНИЕ: -0.54 [08:03:05]line ИТОГО: 550.00 [08:03:05]line НСП 1% : 4.87 [08:03:05]line НДС 12% : 58.46 [08:03:05]line Наличными: 0.00 [08:03:05]line Безнал.: 550.00 [08:03:05]line Место: АЗС № 136 "Партнер Нефть" [08:03:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:03:05]line СНО: Общий режим [08:03:05]line Чек 23 20.08.2024 08:03 [08:03:05]line Смена: 453 ФФД: 1.0 [08:03:05]line ЗНМ: 0300000067 [08:03:05]line РНМ: 0000000000092569 [08:03:05]line Версия ККМ: 001 [08:03:05]line Платежная система: Бакай Банк [08:03:05]line ФМ: 0000000000871776 [08:03:05]line ФД: 139551 [08:03:05]line ФПД: 203252058525576 [08:03:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080306&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139551&fm=203252058525576&tin=02508201610067®Number=0000000000092569&sum=55000 [08:03:06]written 0, free lines is 4095 [08:03:06]OFD Sender: Processing packet 139551 [packets to send 137, broken 136] [08:03:06]ProducePacketName [08:03:06]name=ofd_packets/00139551 [08:03:06]OFD Sender: To server: pG, [08:03:06]CommunicateWithHost lk.salyk.kg:30040 [08:03:06]ConnectInit lk.salyk.kg [08:03:06]Connected sock=10 [08:03:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 B1 07 01 F8 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 BA 4D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 21 02 00 35 04 06 00 B8 DB 4E BF 8F 88 44 6E 7E A6 44 B0 AB 0A [08:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2E BA 47 00 A2 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 21 02 00 F4 03 04 00 4E F4 C3 66 B6 04 01 00 00 22 E3 9D B2 61 41 A9 42 [08:03:06]CommunicateWithHost err = 0 [08:03:06]CheckOFDResponse [08:03:06]1017 (14) - 77093643461234 [08:03:06]1041 (16) - 0000000000871776 [08:03:06]1040 (4) - 139551 [08:03:06]1012 (4) - 20.08.2024 01:41 [08:03:06]1206 (1) - 0 [08:03:06]OFD Sender: Remove packet 139551 [08:03:06]ProducePacketName [08:03:06]name=ofd_packets/00139551 [08:03:06]NVStorageDeleteData [08:03:06]Write to MH i2c: 01 00 00 FE 12 10 [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: 01 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: 01 07 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: 01 07 00 FE 12 00 00 00 00 00 C2 0C E5 [08:03:06]RasterBufferAndPrint [08:03:06]line [08:03:06]line [08:03:06]line [08:03:06]line [08:03:06]line [08:03:06]written 0, free lines is 3272 [08:03:06]MH_Cut [08:03:06]Write to MH i2c: D1 01 00 05 13 01 EA [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: D1 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: D1 01 00 [08:03:06]MH_I2C_Read... [08:03:06]Read from MH i2c: D1 01 00 05 13 00 E9 [08:03:06]Write to MH i2c: 01 00 00 06 13 19 [08:03:06]Write i2c OK [08:03:06]MH_I2C_Read... [08:03:07]OFD Sender: No OFD packet to send [08:03:07]*** Cut start [08:03:07]*** Partial cut [08:03:07]*** CUTSNS_PIN = 1 [08:03:07]*** CUTSNS_PIN = 0 [08:03:07]*** Brake cut motor [08:03:07]Read from MH i2c: 01 [08:03:07]MH_I2C_Read... [08:03:07]*** Stop cut motor [08:03:07]*** Cut end [08:03:07]Read from MH i2c: 01 07 00 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: 01 07 00 06 13 00 00 00 00 00 FF 0F 2E [08:03:07]process_action close_receipt done [08:03:07]requested_data is exist [08:03:07]produce_requested_data [08:03:07]requested_item fm.sn is exist - process it [08:03:07]wFMCommunicate request_size=4 [08:03:07]MH_SAM_APDU [08:03:07]CAPDU: 80 11 00 00 [08:03:07]Write to MH i2c: E2 08 00 07 13 80 11 00 00 00 00 00 00 94 [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:07]Read from MH i2c: E2 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 17 00 [08:03:07]MH_I2C_Read... [08:03:07]Read from MH i2c: E2 17 00 07 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [08:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:03:07]wFMCommunicate OK [08:03:07]requested_item fd.num is exist - process it [08:03:07]SAM_PROTO_GetFieldsCounters [08:03:07]wFMCommunicate request_size=4 [08:03:07]MH_SAM_APDU [08:03:07]CAPDU: 80 13 00 00 [08:03:07]Write to MH i2c: E2 08 00 08 13 80 13 00 00 00 00 00 00 97 [08:03:07]Write i2c OK [08:03:07]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 62 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 62 00 08 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [08:03:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:08]wFMCommunicate OK [08:03:08]SAM_PROTO_GetFieldsCounters done [08:03:08]requested_item shift.num is exist - process it [08:03:08]requested_item shift.opened is exist - process it [08:03:08]req_shift_opened [08:03:08]FM_GetShiftState [08:03:08]SAM_PROTO_GetShiftState [08:03:08]wFMCommunicate request_size=4 [08:03:08]MH_SAM_APDU [08:03:08]CAPDU: 80 13 01 00 [08:03:08]Write to MH i2c: E2 08 00 09 13 80 13 01 00 00 00 00 00 99 [08:03:08]Write i2c OK [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 [08:03:08]MH_I2C_Read... [08:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:08]Read from MH i2c: E2 0E 00 [08:03:08]MH_I2C_Read... [08:03:08]Read from MH i2c: E2 0E 00 09 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2A [08:03:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:03:08]wFMCommunicate OK [08:03:08]SAM_PROTO_GetShiftState done [08:03:08]FM_GetShiftState done [08:03:08]req_shift_opened done [08:03:08]requested_item shift.open_date is exist - process it [08:03:08]req_shift_open_date [08:03:08]req_shift_open_date done [08:03:08]produce_requested_data done [08:03:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139551,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:03:08]process_action_free close_receipt [08:03:08]json_value_free [08:03:08]json_value_free done [08:03:08]process_json_proto returns [08:03:08]Send response to host [08:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139551,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:03:08]free response buf [08:03:08]execute_script done [08:03:08]execute_script returns [08:03:08]free content buf [08:03:08]Sock 9.Close socket [08:03:08]Sock 9.Thread stoped [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:30]accept exits with 7 [08:09:30]New connection [08:09:30]New thread 3067215204 created [08:09:30]Thread 3067071844 joined [08:09:30]Waiting for new connection... [08:09:30] Sock 7.Parse request [08:09:30]Sock 7.Check first char [08:09:30]Sock 7.First char is OK [08:09:30]request: POST /json_proto HTTP/1.0 [08:09:30]Method: POST [08:09:30]URL: /json_proto [08:09:30]Method is POST - this is cgi request [08:09:30]url: /json_proto [08:09:30]query_string will be loaded in cgi processing [08:09:30]execute_cgi json_proto POST (null) [08:09:30]execute_cgi path=json_proto method=POST [08:09:30]POST find Content-Length [08:09:30]Host: 172.17.45.67:8080 [08:09:30]Content-Length: 678 [08:09:30]Content-Type: application/json [08:09:30] [08:09:30]POST finish read [08:09:30]Found Content-Length = 678 [08:09:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:30]execute_script... [08:09: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)593394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:30]POST & json_proto [08:09:30]process_json_proto [08:09:30]json parsed OK: [08:09:30]protocol is kg_v1.0 [08:09:30]action value=close_receipt [08:09:30]process_action close_receipt [08:09:30]cmd_close_receipt [08:09:30]MH_GetDate [08:09:30]Write to MH i2c: F0 00 00 0A 13 0C [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: F0 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: F0 09 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: F0 09 00 0A 13 00 3D 4F C4 66 5F 7F 2B 66 3A [08:09:30]GetLastDocTimeStamp 1724140986 [08:09:30]current date 1724141373 [08:09:30]FM_GetShiftState [08:09:30]SAM_PROTO_GetShiftState [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 13 01 00 [08:09:30]Write to MH i2c: E2 08 00 0B 13 80 13 01 00 00 00 00 00 9B [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 0E 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 0E 00 0B 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2C [08:09:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:09:30]wFMCommunicate OK [08:09:30]SAM_PROTO_GetShiftState done [08:09:30]FM_GetShiftState done [08:09:30]opened in 1724113785 [08:09:30]opened+sec_in_day 1724200185 [08:09:30]quantity*price = 70037 [08:09:30]sum+1 = 70038 [08:09:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 24 20.08.2024 08:09 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139552 ФПД: 272978664838613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080933&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139552&fm=272978664838613&tin=02508201610067®Number=0000000000092569&sum=70000 [08:09:31]StoreToDocumentArchive [08:09:31]shift 453 fd 139552 [08:09:31]save to /storage/0453/doc_00139552 [08:09:31]save last doc name /storage/0453/doc_00139552 to /storage/kkm_last_doc_name [08:09:31]save OK [08:09:31]Clear old archive folders... [08:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:31]tlvbuf is 00D586C0 [08:09:31]SAM_PROTO_ClearQueue [08:09:31]wFMCommunicate request_size=4 [08:09:31]MH_SAM_APDU [08:09:31]CAPDU: 80 09 00 00 [08:09:31]Write to MH i2c: E2 08 00 18 13 80 09 00 00 00 00 00 00 9D [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:31]Read from MH i2c: E2 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 03 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 03 00 18 13 00 90 00 9F [08:09:31]RAPDU: 90 00 [08:09:31]wFMCommunicate OK [08:09:31]SAM_PROTO_ClearQueue done [08:09:31]KKMCreateOFDPacket [08:09:31]OFDProtocolAddRootSTLVToBuf [08:09:31]FM_MakeSignedData [08:09:31]FM_MakeSignedData [08:09:31]SAM_PROTO_SignData [08:09:31]wFMCommunicate request_size=4 [08:09:31]MH_SAM_APDU [08:09:31]CAPDU: 80 0D 01 02 [08:09:31]Write to MH i2c: E2 08 00 19 13 80 0D 01 02 00 00 00 00 A5 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:31]Read from MH i2c: E2 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 03 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 03 00 19 13 00 90 00 A0 [08:09:31]RAPDU: 90 00 [08:09:31]wFMCommunicate OK [08:09:31]wFMCommunicate request_size=255 [08:09:31]MH_SAM_APDU [08:09:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3D 4F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 21 02 00 35 04 06 00 F8 [08:09:31]Write to MH i2c: E2 02 01 1A 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3D 4F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 21 02 00 35 04 06 00 F8 00 00 E4 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:32]Read from MH i2c: E2 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: E2 03 00 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: E2 03 00 1A 13 00 90 00 A1 [08:09:32]RAPDU: 90 00 [08:09:32]wFMCommunicate OK [08:09:32]wFMCommunicate request_size=10 [08:09:32]MH_SAM_APDU [08:09:32]CAPDU: 80 0D 02 02 05 45 CC 59 55 D5 [08:09:32]Write to MH i2c: E2 0D 00 1B 13 80 0D 02 02 05 00 45 CC 59 55 D5 00 00 46 [08:09:32]Write i2c OK [08:09:32]MH_I2C_Read... [08:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:32]Read from MH i2c: E2 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: E2 03 00 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [08:09:32]RAPDU: 90 00 [08:09:32]wFMCommunicate OK [08:09:32]wFMCommunicate request_size=4 [08:09:32]MH_SAM_APDU [08:09:32]CAPDU: 80 0D 03 02 [08:09:32]Write to MH i2c: E2 08 00 1C 13 80 0D 03 02 00 00 00 00 AA [08:09:32]Write i2c OK [08:09:32]MH_I2C_Read... [08:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:32]Read from MH i2c: E2 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: E2 0B 00 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: E2 0B 00 1C 13 00 F0 2F 47 32 B7 4E CF C8 90 00 DF [08:09:32]RAPDU: F0 2F 47 32 B7 4E CF C8 90 00 [08:09:32]wFMCommunicate OK [08:09:32]SAM_PROTO_SignData done [08:09:32]FM_MakeSignedData done [08:09:32]CreateOFDProtocolMessage [08:09:32]wFMCommunicate request_size=4 [08:09:32]MH_SAM_APDU [08:09:32]CAPDU: 80 11 00 00 [08:09:32]Write to MH i2c: E2 08 00 1D 13 80 11 00 00 00 00 00 00 AA [08:09:32]Write i2c OK [08:09:32]MH_I2C_Read... [08:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:32]Read from MH i2c: E2 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: E2 17 00 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: E2 17 00 1D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [08:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:09:32]wFMCommunicate OK [08:09:32]CreateOFDProtocolMessage done [08:09:32]OFDSenderStorePacket 139552 [08:09:32]StoreOFDPacket docnum=139552 [08:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C 7C 07 01 B1 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3D 4F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 21 02 00 35 04 06 00 F8 45 CC 59 55 D5 F0 2F 47 32 B7 4E CF C8 [08:09:32]CheckFolder [08:09:32]dirname=/storage/ofd_packets [08:09:32]CheckFolder done [08:09:32]ProducePacketName [08:09:32]name=ofd_packets/00139552 [08:09:32]NVStorageSaveData ofd_packets/00139552 [08:09:32]File name is /storage/ofd_packets/00139552 [08:09:32]Write 301 bytes [08:09:32]NVStorageSaveData done [08:09:32]OFDSenderStorePacket done [08:09:32]KKMCreateOFDPacket done [08:09:32]NVStorageSaveData kkm_last_timestamp [08:09:32]File name is /storage/kkm_last_timestamp [08:09:32]Write 4 bytes [08:09:32]NVStorageSaveData done [08:09:32]ExternCall_PrintAddStr [08:09:32]wPrintStart [08:09:32]Write to MH i2c: 01 00 00 1E 13 31 [08:09:32]Write i2c OK [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: 01 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: 01 07 00 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: 01 07 00 1E 13 00 00 00 00 00 FF 0F 46 [08:09:32]RasterBufferAndPrint [08:09:32]line Счет N : (1)593394 [08:09:32]line ИНН: 02508201610067 [08:09:32]line Контрольно-Кассовый Чек [08:09:32]line ПРОДАЖА [08:09:32]line ТРК (МРК, ГНК) : 52 [08:09:32]line Товар: 2710124130 [08:09:32]line Аи-92-К-5 [08:09:32]line 10.330 * 67.80 [08:09:32]line = 700.37 [08:09:32]line НДС 12% НСП 1% [08:09:32]line > о реализуемом товаре [08:09:32]line ОКРУГЛЕНИЕ: -0.37 [08:09:32]line ИТОГО: 700.00 [08:09:32]line Внесено: 700.00 [08:09:32]line СДАЧА: 0.00 [08:09:32]line НСП 1% : 6.20 [08:09:32]line НДС 12% : 74.38 [08:09:32]line Наличными: 700.00 [08:09:32]line Безнал.: 0.00 [08:09:32]line Место: АЗС № 136 "Партнер Нефть" [08:09:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:09:32]line СНО: Общий режим [08:09:32]line Чек 24 20.08.2024 08:09 [08:09:32]line Смена: 453 ФФД: 1.0 [08:09:32]line ЗНМ: 0300000067 [08:09:32]line РНМ: 0000000000092569 [08:09:32]line Версия ККМ: 001 [08:09:32]line ФМ: 0000000000871776 [08:09:32]line ФД: 139552 [08:09:32]line ФПД: 272978664838613 [08:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080933&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139552&fm=272978664838613&tin=02508201610067®Number=0000000000092569&sum=70000 [08:09:32]OFD Sender: Processing packet 139552 [packets to send 137, broken 136] [08:09:32]ProducePacketName [08:09:32]name=ofd_packets/00139552 [08:09:32]OFD Sender: To server: pG, [08:09:32]CommunicateWithHost lk.salyk.kg:30040 [08:09:32]ConnectInit lk.salyk.kg [08:09:32]written 0, free lines is 4095 [08:09:32]Connected sock=9 [08:09:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C 7C 07 01 B1 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 3D 4F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 21 02 00 35 04 06 00 F8 45 CC 59 55 D5 F0 2F 47 32 B7 4E CF C8 [08:09:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AF 9E 47 00 8A 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 21 02 00 F4 03 04 00 D1 F5 C3 66 B6 04 01 00 00 DD 30 1C ED E2 F2 87 73 [08:09:33]CommunicateWithHost err = 0 [08:09:33]CheckOFDResponse [08:09:33]1017 (14) - 77093643461234 [08:09:33]1041 (16) - 0000000000871776 [08:09:33]1040 (4) - 139552 [08:09:33]1012 (4) - 20.08.2024 01:48 [08:09:33]1206 (1) - 0 [08:09:33]OFD Sender: Remove packet 139552 [08:09:33]ProducePacketName [08:09:33]name=ofd_packets/00139552 [08:09:33]NVStorageDeleteData [08:09:33]Write to MH i2c: 01 00 00 49 13 5C [08:09:33]Write i2c OK [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: 01 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: 01 07 00 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: 01 07 00 49 13 00 00 00 00 00 C2 0C 31 [08:09:33]RasterBufferAndPrint [08:09:33]line [08:09:33]line [08:09:33]line [08:09:33]line [08:09:33]line [08:09:33]written 0, free lines is 3275 [08:09:33]MH_Cut [08:09:33]Write to MH i2c: D1 01 00 50 13 01 35 [08:09:33]Write i2c OK [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: D1 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: D1 01 00 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: D1 01 00 50 13 00 34 [08:09:33]Write to MH i2c: 01 00 00 51 13 64 [08:09:33]Write i2c OK [08:09:33]MH_I2C_Read... [08:09:33]OFD Sender: No OFD packet to send [08:09:33]*** Cut start [08:09:33]*** Partial cut [08:09:33]*** CUTSNS_PIN = 1 [08:09:33]*** CUTSNS_PIN = 0 [08:09:34]*** Brake cut motor [08:09:34]Read from MH i2c: 01 [08:09:34]MH_I2C_Read... [08:09:34]*** Stop cut motor [08:09:34]*** Cut end [08:09:34]Read from MH i2c: 01 07 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: 01 07 00 51 13 00 00 00 00 00 FF 0F 79 [08:09:34]process_action close_receipt done [08:09:34]requested_data is exist [08:09:34]produce_requested_data [08:09:34]requested_item fm.sn is exist - process it [08:09:34]wFMCommunicate request_size=4 [08:09:34]MH_SAM_APDU [08:09:34]CAPDU: 80 11 00 00 [08:09:34]Write to MH i2c: E2 08 00 52 13 80 11 00 00 00 00 00 00 DF [08:09:34]Write i2c OK [08:09:34]MH_I2C_Read... [08:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:34]Read from MH i2c: E2 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 17 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 17 00 52 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [08:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:09:34]wFMCommunicate OK [08:09:34]requested_item fd.num is exist - process it [08:09:34]SAM_PROTO_GetFieldsCounters [08:09:34]wFMCommunicate request_size=4 [08:09:34]MH_SAM_APDU [08:09:34]CAPDU: 80 13 00 00 [08:09:34]Write to MH i2c: E2 08 00 53 13 80 13 00 00 00 00 00 00 E2 [08:09:34]Write i2c OK [08:09:34]MH_I2C_Read... [08:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:34]Read from MH i2c: E2 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 62 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 62 00 53 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 20 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [08:09:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 20 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:34]wFMCommunicate OK [08:09:34]SAM_PROTO_GetFieldsCounters done [08:09:34]requested_item shift.num is exist - process it [08:09:34]requested_item shift.opened is exist - process it [08:09:34]req_shift_opened [08:09:34]FM_GetShiftState [08:09:34]SAM_PROTO_GetShiftState [08:09:34]wFMCommunicate request_size=4 [08:09:34]MH_SAM_APDU [08:09:34]CAPDU: 80 13 01 00 [08:09:34]Write to MH i2c: E2 08 00 54 13 80 13 01 00 00 00 00 00 E4 [08:09:34]Write i2c OK [08:09:34]MH_I2C_Read... [08:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:34]Read from MH i2c: E2 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 0E 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 0E 00 54 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 75 [08:09:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:09:34]wFMCommunicate OK [08:09:34]SAM_PROTO_GetShiftState done [08:09:34]FM_GetShiftState done [08:09:34]req_shift_opened done [08:09:34]requested_item shift.open_date is exist - process it [08:09:34]req_shift_open_date [08:09:34]req_shift_open_date done [08:09:34]produce_requested_data done [08:09:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139552,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:09:34]process_action_free close_receipt [08:09:34]json_value_free [08:09:34]json_value_free done [08:09:34]process_json_proto returns [08:09:34]Send response to host [08:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139552,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:09:34]free response buf [08:09:34]execute_script done [08:09:34]execute_script returns [08:09:34]free content buf [08:09:34]Sock 7.Close socket [08:09:34]Sock 7.Thread stoped [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:52]accept exits with 10 [08:09:52]New connection [08:09:52]New thread 3067071844 created [08:09:52]Thread 3067215204 joined [08:09:52]Waiting for new connection... [08:09:52] Sock 10.Parse request [08:09:52]Sock 10.Check first char [08:09:52]Sock 10.First char is OK [08:09:52]request: POST /json_proto HTTP/1.0 [08:09:52]Method: POST [08:09:52]URL: /json_proto [08:09:52]Method is POST - this is cgi request [08:09:52]url: /json_proto [08:09:52]query_string will be loaded in cgi processing [08:09:52]execute_cgi json_proto POST (null) [08:09:52]execute_cgi path=json_proto method=POST [08:09:52]POST find Content-Length [08:09:52]Host: 172.17.45.67:8080 [08:09:52]Content-Length: 658 [08:09:52]Content-Type: application/json [08:09:52] [08:09:52]POST finish read [08:09:52]Found Content-Length = 658 [08:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:52]execute_script... [08:09: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)593395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:52]POST & json_proto [08:09:52]process_json_proto [08:09:52]json parsed OK: [08:09:52]protocol is kg_v1.0 [08:09:52]action value=close_receipt [08:09:52]process_action close_receipt [08:09:52]cmd_close_receipt [08:09:52]MH_GetDate [08:09:52]Write to MH i2c: F0 00 00 55 13 57 [08:09:52]Write i2c OK [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: F0 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: F0 09 00 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: F0 09 00 55 13 00 53 4F C4 66 5F 7F 2B 66 9B [08:09:52]GetLastDocTimeStamp 1724141373 [08:09:52]current date 1724141395 [08:09:52]FM_GetShiftState [08:09:52]SAM_PROTO_GetShiftState [08:09:52]wFMCommunicate request_size=4 [08:09:52]MH_SAM_APDU [08:09:52]CAPDU: 80 13 01 00 [08:09:52]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [08:09:52]Write i2c OK [08:09:52]MH_I2C_Read... [08:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:52]Read from MH i2c: E2 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: E2 0E 00 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 77 [08:09:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:09:52]wFMCommunicate OK [08:09:52]SAM_PROTO_GetShiftState done [08:09:52]FM_GetShiftState done [08:09:52]opened in 1724113785 [08:09:52]opened+sec_in_day 1724200185 [08:09:52]quantity*price = 60062 [08:09:52]sum+1 = 60063 [08:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 25 20.08.2024 08:09 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139553 ФПД: 154742476432658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139553&fm=154742476432658&tin=02508201610067®Number=0000000000092569&sum=60000 [08:09:53]StoreToDocumentArchive [08:09:53]shift 453 fd 139553 [08:09:53]save to /storage/0453/doc_00139553 [08:09:53]save last doc name /storage/0453/doc_00139553 to /storage/kkm_last_doc_name [08:09:53]save OK [08:09:53]Clear old archive folders... [08:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:09:53]tlvbuf is B6EE8300 [08:09:53]SAM_PROTO_ClearQueue [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 09 00 00 [08:09:53]Write to MH i2c: E2 08 00 63 13 80 09 00 00 00 00 00 00 E8 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]OFD Sender: No OFD packet to send [08:09:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 63 13 00 90 00 EA [08:09:53]RAPDU: 90 00 [08:09:53]wFMCommunicate OK [08:09:53]SAM_PROTO_ClearQueue done [08:09:53]KKMCreateOFDPacket [08:09:53]OFDProtocolAddRootSTLVToBuf [08:09:53]FM_MakeSignedData [08:09:53]FM_MakeSignedData [08:09:53]SAM_PROTO_SignData [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 0D 01 02 [08:09:53]Write to MH i2c: E2 08 00 64 13 80 0D 01 02 00 00 00 00 F0 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 64 13 00 90 00 EB [08:09:53]RAPDU: 90 00 [08:09:53]wFMCommunicate OK [08:09:53]wFMCommunicate request_size=253 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 19 00 00 00 F4 03 04 00 53 4F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 21 02 00 35 04 06 00 8C BC CA 56 E5 12 [08:09:53]Write to MH i2c: E2 00 01 65 13 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 19 00 00 00 F4 03 04 00 53 4F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 21 02 00 35 04 06 00 8C BC CA 56 E5 12 00 00 69 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [08:09:53]RAPDU: 90 00 [08:09:53]wFMCommunicate OK [08:09:53]wFMCommunicate request_size=4 [08:09:53]MH_SAM_APDU [08:09:53]CAPDU: 80 0D 03 02 [08:09:53]Write to MH i2c: E2 08 00 66 13 80 0D 03 02 00 00 00 00 F4 [08:09:53]Write i2c OK [08:09:53]MH_I2C_Read... [08:09:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:53]Read from MH i2c: E2 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 0B 00 [08:09:53]MH_I2C_Read... [08:09:53]Read from MH i2c: E2 0B 00 66 13 00 F4 7F 51 54 CF 5D A4 38 90 00 15 [08:09:53]RAPDU: F4 7F 51 54 CF 5D A4 38 90 00 [08:09:54]wFMCommunicate OK [08:09:54]SAM_PROTO_SignData done [08:09:54]FM_MakeSignedData done [08:09:54]CreateOFDProtocolMessage [08:09:54]wFMCommunicate request_size=4 [08:09:54]MH_SAM_APDU [08:09:54]CAPDU: 80 11 00 00 [08:09:54]Write to MH i2c: E2 08 00 67 13 80 11 00 00 00 00 00 00 F4 [08:09:54]Write i2c OK [08:09:54]MH_I2C_Read... [08:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:54]Read from MH i2c: E2 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: E2 17 00 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: E2 17 00 67 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [08:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:09:54]wFMCommunicate OK [08:09:54]CreateOFDProtocolMessage done [08:09:54]OFDSenderStorePacket 139553 [08:09:54]StoreOFDPacket docnum=139553 [08:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 ED F5 00 01 05 6A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 19 00 00 00 F4 03 04 00 53 4F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 21 02 00 35 04 06 00 8C BC CA 56 E5 12 F4 7F 51 54 CF 5D A4 38 [08:09:54]CheckFolder [08:09:54]dirname=/storage/ofd_packets [08:09:54]CheckFolder done [08:09:54]ProducePacketName [08:09:54]name=ofd_packets/00139553 [08:09:54]NVStorageSaveData ofd_packets/00139553 [08:09:54]File name is /storage/ofd_packets/00139553 [08:09:54]Write 294 bytes [08:09:54]NVStorageSaveData done [08:09:54]OFDSenderStorePacket done [08:09:54]KKMCreateOFDPacket done [08:09:54]NVStorageSaveData kkm_last_timestamp [08:09:54]File name is /storage/kkm_last_timestamp [08:09:54]Write 4 bytes [08:09:54]NVStorageSaveData done [08:09:54]ExternCall_PrintAddStr [08:09:54]wPrintStart [08:09:54]Write to MH i2c: 01 00 00 68 13 7B [08:09:54]Write i2c OK [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: 01 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: 01 07 00 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: 01 07 00 68 13 00 00 00 00 00 FF 0F 90 [08:09:54]RasterBufferAndPrint [08:09:54]line Счет N : (1)593395 [08:09:54]line ИНН: 02508201610067 [08:09:54]line Контрольно-Кассовый Чек [08:09:54]line ПРОДАЖА [08:09:54]line ТРК (МРК, ГНК) : 33 [08:09:54]line Товар: 2710124130 [08:09:54]line SU-92 [08:09:54]line 8.730 * 68.80 [08:09:54]line = 600.62 [08:09:54]line НДС 12% НСП 1% [08:09:54]line > о реализуемом товаре [08:09:54]line ОКРУГЛЕНИЕ: -0.62 [08:09:54]line ИТОГО: 600.00 [08:09:54]line Внесено: 600.00 [08:09:54]line СДАЧА: 0.00 [08:09:54]line НСП 1% : 5.31 [08:09:54]line НДС 12% : 63.78 [08:09:54]line Наличными: 600.00 [08:09:54]line Безнал.: 0.00 [08:09:54]line Место: АЗС № 136 "Партнер Нефть" [08:09:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:09:54]line СНО: Общий режим [08:09:54]line Чек 25 20.08.2024 08:09 [08:09:54]line Смена: 453 ФФД: 1.0 [08:09:54]line ЗНМ: 0300000067 [08:09:54]line РНМ: 0000000000092569 [08:09:54]line Версия ККМ: 001 [08:09:54]line ФМ: 0000000000871776 [08:09:54]line ФД: 139553 [08:09:54]line ФПД: 154742476432658 [08:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T080955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139553&fm=154742476432658&tin=02508201610067®Number=0000000000092569&sum=60000 [08:09:54]OFD Sender: Processing packet 139553 [packets to send 137, broken 136] [08:09:54]ProducePacketName [08:09:54]name=ofd_packets/00139553 [08:09:54]OFD Sender: To server: pG, [08:09:54]CommunicateWithHost lk.salyk.kg:30040 [08:09:54]ConnectInit lk.salyk.kg [08:09:54]written 0, free lines is 4095 [08:09:54]Connected sock=9 [08:09:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 ED F5 00 01 05 6A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 19 00 00 00 F4 03 04 00 53 4F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 21 02 00 35 04 06 00 8C BC CA 56 E5 12 F4 7F 51 54 CF 5D A4 38 [08:09:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 39 7A 47 00 88 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 21 02 00 F4 03 04 00 E6 F5 C3 66 B6 04 01 00 00 E5 DC 51 D0 7C BE E7 27 [08:09:54]CommunicateWithHost err = 0 [08:09:54]CheckOFDResponse [08:09:54]1017 (14) - 77093643461234 [08:09:54]1041 (16) - 0000000000871776 [08:09:54]1040 (4) - 139553 [08:09:54]1012 (4) - 20.08.2024 01:48 [08:09:54]1206 (1) - 0 [08:09:54]OFD Sender: Remove packet 139553 [08:09:54]ProducePacketName [08:09:54]name=ofd_packets/00139553 [08:09:54]NVStorageDeleteData [08:09:54]Write to MH i2c: 01 00 00 93 13 A6 [08:09:54]Write i2c OK [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: 01 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: 01 07 00 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: 01 07 00 93 13 00 00 00 00 00 D8 0C 91 [08:09:54]RasterBufferAndPrint [08:09:54]line [08:09:54]line [08:09:54]line [08:09:54]line [08:09:54]line [08:09:54]written 0, free lines is 3295 [08:09:54]MH_Cut [08:09:54]Write to MH i2c: D1 01 00 9A 13 01 7F [08:09:54]Write i2c OK [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: D1 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: D1 01 00 [08:09:54]MH_I2C_Read... [08:09:54]Read from MH i2c: D1 01 00 9A 13 00 7E [08:09:54]Write to MH i2c: 01 00 00 9B 13 AE [08:09:54]Write i2c OK [08:09:54]MH_I2C_Read... [08:09:55]OFD Sender: No OFD packet to send [08:09:55]*** Cut start [08:09:55]*** Partial cut [08:09:55]*** CUTSNS_PIN = 1 [08:09:55]*** CUTSNS_PIN = 0 [08:09:55]*** Brake cut motor [08:09:56]Read from MH i2c: 01 [08:09:56]MH_I2C_Read... [08:09:56]*** Stop cut motor [08:09:56]*** Cut end [08:09:56]Read from MH i2c: 01 07 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: 01 07 00 9B 13 00 00 00 00 00 FF 0F C3 [08:09:56]process_action close_receipt done [08:09:56]requested_data is exist [08:09:56]produce_requested_data [08:09:56]requested_item fm.sn is exist - process it [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 11 00 00 [08:09:56]Write to MH i2c: E2 08 00 9C 13 80 11 00 00 00 00 00 00 29 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:56]Read from MH i2c: E2 17 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 17 00 9C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [08:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:09:56]wFMCommunicate OK [08:09:56]requested_item fd.num is exist - process it [08:09:56]SAM_PROTO_GetFieldsCounters [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 13 00 00 [08:09:56]Write to MH i2c: E2 08 00 9D 13 80 13 00 00 00 00 00 00 2C [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 62 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 62 00 9D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 21 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [08:09:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 21 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:56]wFMCommunicate OK [08:09:56]SAM_PROTO_GetFieldsCounters done [08:09:56]requested_item shift.num is exist - process it [08:09:56]requested_item shift.opened is exist - process it [08:09:56]req_shift_opened [08:09:56]FM_GetShiftState [08:09:56]SAM_PROTO_GetShiftState [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 13 01 00 [08:09:56]Write to MH i2c: E2 08 00 9E 13 80 13 01 00 00 00 00 00 2E [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 0E 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 0E 00 9E 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BF [08:09:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:09:56]wFMCommunicate OK [08:09:56]SAM_PROTO_GetShiftState done [08:09:56]FM_GetShiftState done [08:09:56]req_shift_opened done [08:09:56]requested_item shift.open_date is exist - process it [08:09:56]req_shift_open_date [08:09:56]req_shift_open_date done [08:09:56]produce_requested_data done [08:09:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139553,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:09:56]process_action_free close_receipt [08:09:56]json_value_free [08:09:56]json_value_free done [08:09:56]process_json_proto returns [08:09:56]Send response to host [08:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139553,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:09:56]free response buf [08:09:56]execute_script done [08:09:56]execute_script returns [08:09:56]free content buf [08:09:56]Sock 10.Close socket [08:09:56]Sock 10.Thread stoped [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]accept exits with 7 [08:14:45]New connection [08:14:45]New thread 3067215204 created [08:14:45]Thread 3067071844 joined [08:14:45]Waiting for new connection... [08:14:45] Sock 7.Parse request [08:14:45]Sock 7.Check first char [08:14:45]Sock 7.First char is OK [08:14:45]request: POST /json_proto HTTP/1.0 [08:14:45]Method: POST [08:14:45]URL: /json_proto [08:14:45]Method is POST - this is cgi request [08:14:45]url: /json_proto [08:14:45]query_string will be loaded in cgi processing [08:14:45]execute_cgi json_proto POST (null) [08:14:45]execute_cgi path=json_proto method=POST [08:14:45]POST find Content-Length [08:14:45]Host: 172.17.45.67:8080 [08:14:45]Content-Length: 677 [08:14:45]Content-Type: application/json [08:14:45] [08:14:45]POST finish read [08:14:45]Found Content-Length = 677 [08:14:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.610, "sum" : 380.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:45]execute_script... [08:14:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.610, "sum" : 380.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:45]POST & json_proto [08:14:45]process_json_proto [08:14:45]json parsed OK: [08:14:45]protocol is kg_v1.0 [08:14:45]action value=close_receipt [08:14:45]process_action close_receipt [08:14:45]cmd_close_receipt [08:14:45]MH_GetDate [08:14:45]Write to MH i2c: F0 00 00 9F 13 A1 [08:14:45]Write i2c OK [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: F0 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: F0 09 00 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: F0 09 00 9F 13 00 78 50 C4 66 5F 7F 2B 66 0B [08:14:45]GetLastDocTimeStamp 1724141395 [08:14:45]current date 1724141688 [08:14:45]FM_GetShiftState [08:14:45]SAM_PROTO_GetShiftState [08:14:45]wFMCommunicate request_size=4 [08:14:45]MH_SAM_APDU [08:14:45]CAPDU: 80 13 01 00 [08:14:45]Write to MH i2c: E2 08 00 A0 13 80 13 01 00 00 00 00 00 30 [08:14:45]Write i2c OK [08:14:45]MH_I2C_Read... [08:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:45]Read from MH i2c: E2 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: E2 0E 00 [08:14:45]MH_I2C_Read... [08:14:45]Read from MH i2c: E2 0E 00 A0 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C1 [08:14:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:14:45]wFMCommunicate OK [08:14:45]SAM_PROTO_GetShiftState done [08:14:45]FM_GetShiftState done [08:14:45]opened in 1724113785 [08:14:45]opened+sec_in_day 1724200185 [08:14:45]quantity*price = 38035 [08:14:45]sum+1 = 38037 [08:14:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.39 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 26 20.08.2024 08:14 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139554 ФПД: 4716879200247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T081448&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139554&fm=4716879200247&tin=02508201610067®Number=0000000000092569&sum=38000 [08:14:46]StoreToDocumentArchive [08:14:46]shift 453 fd 139554 [08:14:46]save to /storage/0453/doc_00139554 [08:14:46]save last doc name /storage/0453/doc_00139554 to /storage/kkm_last_doc_name [08:14:46]save OK [08:14:46]Clear old archive folders... [08:14:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:46]tlvbuf is B6F98780 [08:14:46]SAM_PROTO_ClearQueue [08:14:46]wFMCommunicate request_size=4 [08:14:46]MH_SAM_APDU [08:14:46]CAPDU: 80 09 00 00 [08:14:46]Write to MH i2c: E2 08 00 AD 13 80 09 00 00 00 00 00 00 32 [08:14:46]Write i2c OK [08:14:46]MH_I2C_Read... [08:14:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:46]Read from MH i2c: E2 [08:14:46]MH_I2C_Read... [08:14:46]Read from MH i2c: E2 03 00 [08:14:46]MH_I2C_Read... [08:14:46]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [08:14:46]RAPDU: 90 00 [08:14:46]wFMCommunicate OK [08:14:46]SAM_PROTO_ClearQueue done [08:14:46]KKMCreateOFDPacket [08:14:46]OFDProtocolAddRootSTLVToBuf [08:14:46]FM_MakeSignedData [08:14:46]FM_MakeSignedData [08:14:46]SAM_PROTO_SignData [08:14:46]wFMCommunicate request_size=4 [08:14:46]MH_SAM_APDU [08:14:46]CAPDU: 80 0D 01 02 [08:14:46]Write to MH i2c: E2 08 00 AE 13 80 0D 01 02 00 00 00 00 3A [08:14:46]Write i2c OK [08:14:46]MH_I2C_Read... [08:14:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:46]Read from MH i2c: E2 [08:14:46]MH_I2C_Read... [08:14:46]Read from MH i2c: E2 03 00 [08:14:46]MH_I2C_Read... [08:14:46]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [08:14:46]RAPDU: 90 00 [08:14:46]wFMCommunicate OK [08:14:46]wFMCommunicate request_size=255 [08:14:46]MH_SAM_APDU [08:14:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 78 50 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 21 02 00 35 04 06 00 04 [08:14:46]Write to MH i2c: E2 02 01 AF 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 78 50 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 21 02 00 35 04 06 00 04 00 00 56 [08:14:46]Write i2c OK [08:14:46]MH_I2C_Read... [08:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:47]Read from MH i2c: E2 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: E2 03 00 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [08:14:47]RAPDU: 90 00 [08:14:47]wFMCommunicate OK [08:14:47]wFMCommunicate request_size=10 [08:14:47]MH_SAM_APDU [08:14:47]CAPDU: 80 0D 02 02 05 4A 3B E8 BF F7 [08:14:47]Write to MH i2c: E2 0D 00 B0 13 80 0D 02 02 05 00 4A 3B E8 BF F7 00 00 6A [08:14:47]Write i2c OK [08:14:47]MH_I2C_Read... [08:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:47]Read from MH i2c: E2 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: E2 03 00 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [08:14:47]RAPDU: 90 00 [08:14:47]wFMCommunicate OK [08:14:47]wFMCommunicate request_size=4 [08:14:47]MH_SAM_APDU [08:14:47]CAPDU: 80 0D 03 02 [08:14:47]Write to MH i2c: E2 08 00 B1 13 80 0D 03 02 00 00 00 00 3F [08:14:47]Write i2c OK [08:14:47]MH_I2C_Read... [08:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:47]Read from MH i2c: E2 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: E2 0B 00 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: E2 0B 00 B1 13 00 23 60 BE 30 19 32 02 29 90 00 27 [08:14:47]RAPDU: 23 60 BE 30 19 32 02 29 90 00 [08:14:47]wFMCommunicate OK [08:14:47]SAM_PROTO_SignData done [08:14:47]FM_MakeSignedData done [08:14:47]CreateOFDProtocolMessage [08:14:47]wFMCommunicate request_size=4 [08:14:47]MH_SAM_APDU [08:14:47]CAPDU: 80 11 00 00 [08:14:47]Write to MH i2c: E2 08 00 B2 13 80 11 00 00 00 00 00 00 3F [08:14:47]Write i2c OK [08:14:47]MH_I2C_Read... [08:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:47]Read from MH i2c: E2 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: E2 17 00 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: E2 17 00 B2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 96 [08:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:14:47]wFMCommunicate OK [08:14:47]CreateOFDProtocolMessage done [08:14:47]OFDSenderStorePacket 139554 [08:14:47]StoreOFDPacket docnum=139554 [08:14:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 D8 07 01 A1 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 78 50 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 21 02 00 35 04 06 00 04 4A 3B E8 BF F7 23 60 BE 30 19 32 02 29 [08:14:47]CheckFolder [08:14:47]dirname=/storage/ofd_packets [08:14:47]CheckFolder done [08:14:47]ProducePacketName [08:14:47]name=ofd_packets/00139554 [08:14:47]NVStorageSaveData ofd_packets/00139554 [08:14:47]File name is /storage/ofd_packets/00139554 [08:14:47]Write 301 bytes [08:14:47]NVStorageSaveData done [08:14:47]OFDSenderStorePacket done [08:14:47]KKMCreateOFDPacket done [08:14:47]NVStorageSaveData kkm_last_timestamp [08:14:47]File name is /storage/kkm_last_timestamp [08:14:47]Write 4 bytes [08:14:47]NVStorageSaveData done [08:14:47]ExternCall_PrintAddStr [08:14:47]wPrintStart [08:14:47]Write to MH i2c: 01 00 00 B3 13 C6 [08:14:47]Write i2c OK [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: 01 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: 01 07 00 [08:14:47]MH_I2C_Read... [08:14:47]Read from MH i2c: 01 07 00 B3 13 00 00 00 00 00 FF 0F DB [08:14:47]RasterBufferAndPrint [08:14:47]line Счет N : (1)593396 [08:14:47]line ИНН: 02508201610067 [08:14:47]line Контрольно-Кассовый Чек [08:14:47]line ПРОДАЖА [08:14:47]line ТРК (МРК, ГНК) : 52 [08:14:47]line Товар: 2710124130 [08:14:47]line Аи-92-К-5 [08:14:47]line 5.610 * 67.80 [08:14:47]line = 380.36 [08:14:47]line НДС 12% НСП 1% [08:14:47]line > о реализуемом товаре [08:14:47]line ОКРУГЛЕНИЕ: -0.36 [08:14:47]line ИТОГО: 380.00 [08:14:47]line Внесено: 380.00 [08:14:47]line СДАЧА: 0.00 [08:14:47]line НСП 1% : 3.37 [08:14:47]line НДС 12% : 40.39 [08:14:47]line Наличными: 380.00 [08:14:47]line Безнал.: 0.00 [08:14:47]line Место: АЗС № 136 "Партнер Нефть" [08:14:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:14:47]line СНО: Общий режим [08:14:47]line Чек 26 20.08.2024 08:14 [08:14:47]line Смена: 453 ФФД: 1.0 [08:14:47]line ЗНМ: 0300000067 [08:14:47]line РНМ: 0000000000092569 [08:14:47]line Версия ККМ: 001 [08:14:47]line ФМ: 0000000000871776 [08:14:47]line ФД: 139554 [08:14:47]line ФПД: 4716879200247 [08:14:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T081448&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139554&fm=4716879200247&tin=02508201610067®Number=0000000000092569&sum=38000 [08:14:47]written 0, free lines is 4095 [08:14:47]OFD Sender: Processing packet 139554 [packets to send 137, broken 136] [08:14:47]ProducePacketName [08:14:47]name=ofd_packets/00139554 [08:14:47]OFD Sender: To server: pG, [08:14:47]CommunicateWithHost lk.salyk.kg:30040 [08:14:47]ConnectInit lk.salyk.kg [08:14:47]Connected sock=10 [08:14:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 D8 07 01 A1 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 15 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 94 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 78 50 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 21 02 00 35 04 06 00 04 4A 3B E8 BF F7 23 60 BE 30 19 32 02 29 [08:14:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 9C F7 47 00 CA 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 21 02 00 F4 03 04 00 0C F7 C3 66 B6 04 01 00 00 9D 54 F3 3D AB 39 D4 DB [08:14:48]CommunicateWithHost err = 0 [08:14:48]CheckOFDResponse [08:14:48]1017 (14) - 77093643461234 [08:14:48]1041 (16) - 0000000000871776 [08:14:48]1040 (4) - 139554 [08:14:48]1012 (4) - 20.08.2024 01:53 [08:14:48]1206 (1) - 0 [08:14:48]OFD Sender: Remove packet 139554 [08:14:48]ProducePacketName [08:14:48]name=ofd_packets/00139554 [08:14:48]NVStorageDeleteData [08:14:48]Write to MH i2c: 01 00 00 DE 13 F1 [08:14:48]Write i2c OK [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: 01 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: 01 07 00 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: 01 07 00 DE 13 00 00 00 00 00 C7 0C CB [08:14:48]RasterBufferAndPrint [08:14:48]line [08:14:48]line [08:14:48]line [08:14:48]line [08:14:48]line [08:14:48]written 0, free lines is 3277 [08:14:48]MH_Cut [08:14:48]Write to MH i2c: D1 01 00 E5 13 01 CA [08:14:48]Write i2c OK [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: D1 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: D1 01 00 [08:14:48]MH_I2C_Read... [08:14:48]Read from MH i2c: D1 01 00 E5 13 00 C9 [08:14:48]Write to MH i2c: 01 00 00 E6 13 F9 [08:14:48]Write i2c OK [08:14:48]MH_I2C_Read... [08:14:48]OFD Sender: No OFD packet to send [08:14:48]*** Cut start [08:14:48]*** Partial cut [08:14:48]*** CUTSNS_PIN = 1 [08:14:48]*** CUTSNS_PIN = 0 [08:14:49]*** Brake cut motor [08:14:49]Read from MH i2c: 01 [08:14:49]MH_I2C_Read... [08:14:49]*** Stop cut motor [08:14:49]*** Cut end [08:14:49]Read from MH i2c: 01 07 00 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: 01 07 00 E6 13 00 00 00 00 00 FF 0F 0E [08:14:49]process_action close_receipt done [08:14:49]requested_data is exist [08:14:49]produce_requested_data [08:14:49]requested_item fm.sn is exist - process it [08:14:49]wFMCommunicate request_size=4 [08:14:49]MH_SAM_APDU [08:14:49]CAPDU: 80 11 00 00 [08:14:49]Write to MH i2c: E2 08 00 E7 13 80 11 00 00 00 00 00 00 74 [08:14:49]Write i2c OK [08:14:49]MH_I2C_Read... [08:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:49]Read from MH i2c: E2 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 17 00 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 17 00 E7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [08:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:14:49]wFMCommunicate OK [08:14:49]requested_item fd.num is exist - process it [08:14:49]SAM_PROTO_GetFieldsCounters [08:14:49]wFMCommunicate request_size=4 [08:14:49]MH_SAM_APDU [08:14:49]CAPDU: 80 13 00 00 [08:14:49]Write to MH i2c: E2 08 00 E8 13 80 13 00 00 00 00 00 00 77 [08:14:49]Write i2c OK [08:14:49]MH_I2C_Read... [08:14:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:49]Read from MH i2c: E2 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 62 00 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 62 00 E8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 22 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [08:14:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 22 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:49]wFMCommunicate OK [08:14:49]SAM_PROTO_GetFieldsCounters done [08:14:49]requested_item shift.num is exist - process it [08:14:49]requested_item shift.opened is exist - process it [08:14:49]req_shift_opened [08:14:49]FM_GetShiftState [08:14:49]SAM_PROTO_GetShiftState [08:14:49]wFMCommunicate request_size=4 [08:14:49]MH_SAM_APDU [08:14:49]CAPDU: 80 13 01 00 [08:14:49]Write to MH i2c: E2 08 00 E9 13 80 13 01 00 00 00 00 00 79 [08:14:49]Write i2c OK [08:14:49]MH_I2C_Read... [08:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:49]Read from MH i2c: E2 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 0E 00 [08:14:49]MH_I2C_Read... [08:14:49]Read from MH i2c: E2 0E 00 E9 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0A [08:14:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:14:49]wFMCommunicate OK [08:14:49]SAM_PROTO_GetShiftState done [08:14:49]FM_GetShiftState done [08:14:49]req_shift_opened done [08:14:49]requested_item shift.open_date is exist - process it [08:14:49]req_shift_open_date [08:14:49]req_shift_open_date done [08:14:49]produce_requested_data done [08:14:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139554,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:14:49]process_action_free close_receipt [08:14:49]json_value_free [08:14:49]json_value_free done [08:14:49]process_json_proto returns [08:14:49]Send response to host [08:14:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139554,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:14:49]free response buf [08:14:49]execute_script done [08:14:49]execute_script returns [08:14:49]free content buf [08:14:49]Sock 7.Close socket [08:14:49]Sock 7.Thread stoped [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:17]accept exits with 9 [08:25:17]New connection [08:25:17]New thread 3067071844 created [08:25:17]Thread 3067215204 joined [08:25:17]Waiting for new connection... [08:25:17] Sock 9.Parse request [08:25:17]Sock 9.Check first char [08:25:17]Sock 9.First char is OK [08:25:17]request: POST /json_proto HTTP/1.0 [08:25:17]Method: POST [08:25:17]URL: /json_proto [08:25:17]Method is POST - this is cgi request [08:25:17]url: /json_proto [08:25:17]query_string will be loaded in cgi processing [08:25:17]execute_cgi json_proto POST (null) [08:25:17]execute_cgi path=json_proto method=POST [08:25:17]POST find Content-Length [08:25:17]Host: 172.17.45.67:8080 [08:25:17]Content-Length: 677 [08:25:17]Content-Type: application/json [08:25:17] [08:25:17]POST finish read [08:25:17]Found Content-Length = 677 [08:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:17]execute_script... [08:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:17]POST & json_proto [08:25:17]process_json_proto [08:25:17]json parsed OK: [08:25:17]protocol is kg_v1.0 [08:25:17]action value=close_receipt [08:25:17]process_action close_receipt [08:25:17]cmd_close_receipt [08:25:17]MH_GetDate [08:25:17]Write to MH i2c: F0 00 00 EA 13 EC [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 09 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 09 00 EA 13 00 F0 52 C4 66 5F 7F 2B 66 D0 [08:25:17]GetLastDocTimeStamp 1724141688 [08:25:17]current date 1724142320 [08:25:17]FM_GetShiftState [08:25:17]SAM_PROTO_GetShiftState [08:25:17]wFMCommunicate request_size=4 [08:25:17]MH_SAM_APDU [08:25:17]CAPDU: 80 13 01 00 [08:25:17]Write to MH i2c: E2 08 00 EB 13 80 13 01 00 00 00 00 00 7B [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:17]Read from MH i2c: E2 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 EB 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0C [08:25:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:25:17]wFMCommunicate OK [08:25:17]SAM_PROTO_GetShiftState done [08:25:17]FM_GetShiftState done [08:25:17]opened in 1724113785 [08:25:17]opened+sec_in_day 1724200185 [08:25:17]quantity*price = 30035 [08:25:17]sum+1 = 30036 [08:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 27 20.08.2024 08:25 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139555 ФПД: 92032114144095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T082520&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139555&fm=92032114144095&tin=02508201610067®Number=0000000000092569&sum=30000 [08:25:18]StoreToDocumentArchive [08:25:18]shift 453 fd 139555 [08:25:18]save to /storage/0453/doc_00139555 [08:25:18]save last doc name /storage/0453/doc_00139555 to /storage/kkm_last_doc_name [08:25:18]save OK [08:25:18]Clear old archive folders... [08:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:18]tlvbuf is B6F986B0 [08:25:18]SAM_PROTO_ClearQueue [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 09 00 00 [08:25:18]Write to MH i2c: E2 08 00 F8 13 80 09 00 00 00 00 00 00 7D [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [08:25:19]RAPDU: 90 00 [08:25:19]wFMCommunicate OK [08:25:19]SAM_PROTO_ClearQueue done [08:25:19]KKMCreateOFDPacket [08:25:19]OFDProtocolAddRootSTLVToBuf [08:25:19]FM_MakeSignedData [08:25:19]FM_MakeSignedData [08:25:19]SAM_PROTO_SignData [08:25:19]wFMCommunicate request_size=4 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 0D 01 02 [08:25:19]Write to MH i2c: E2 08 00 F9 13 80 0D 01 02 00 00 00 00 85 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [08:25:19]RAPDU: 90 00 [08:25:19]wFMCommunicate OK [08:25:19]wFMCommunicate request_size=255 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F0 52 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 21 02 00 35 04 06 00 53 [08:25:19]Write to MH i2c: E2 02 01 FA 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F0 52 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 21 02 00 35 04 06 00 53 00 00 13 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [08:25:19]RAPDU: 90 00 [08:25:19]wFMCommunicate OK [08:25:19]wFMCommunicate request_size=10 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 0D 02 02 05 B3 E5 78 B3 5F [08:25:19]Write to MH i2c: E2 0D 00 FB 13 80 0D 02 02 05 00 B3 E5 78 B3 5F 00 00 B4 [08:25:19]OFD Sender: No OFD packet to send [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [08:25:19]RAPDU: 90 00 [08:25:19]wFMCommunicate OK [08:25:19]wFMCommunicate request_size=4 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 0D 03 02 [08:25:19]Write to MH i2c: E2 08 00 FC 13 80 0D 03 02 00 00 00 00 8A [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 0B 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 0B 00 FC 13 00 74 D0 0C F2 5A 01 3A 0A 90 00 6C [08:25:19]RAPDU: 74 D0 0C F2 5A 01 3A 0A 90 00 [08:25:19]wFMCommunicate OK [08:25:19]SAM_PROTO_SignData done [08:25:19]FM_MakeSignedData done [08:25:19]CreateOFDProtocolMessage [08:25:19]wFMCommunicate request_size=4 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 11 00 00 [08:25:19]Write to MH i2c: E2 08 00 FD 13 80 11 00 00 00 00 00 00 8A [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 17 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 17 00 FD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [08:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:25:19]wFMCommunicate OK [08:25:19]CreateOFDProtocolMessage done [08:25:19]OFDSenderStorePacket 139555 [08:25:19]StoreOFDPacket docnum=139555 [08:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 A2 07 01 92 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F0 52 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 21 02 00 35 04 06 00 53 B3 E5 78 B3 5F 74 D0 0C F2 5A 01 3A 0A [08:25:19]CheckFolder [08:25:19]dirname=/storage/ofd_packets [08:25:19]CheckFolder done [08:25:19]ProducePacketName [08:25:19]name=ofd_packets/00139555 [08:25:19]NVStorageSaveData ofd_packets/00139555 [08:25:19]File name is /storage/ofd_packets/00139555 [08:25:19]Write 301 bytes [08:25:19]NVStorageSaveData done [08:25:19]OFDSenderStorePacket done [08:25:19]KKMCreateOFDPacket done [08:25:19]NVStorageSaveData kkm_last_timestamp [08:25:19]File name is /storage/kkm_last_timestamp [08:25:19]Write 4 bytes [08:25:19]NVStorageSaveData done [08:25:19]ExternCall_PrintAddStr [08:25:19]wPrintStart [08:25:19]Write to MH i2c: 01 00 00 FE 13 11 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 FE 13 00 00 00 00 00 FF 0F 26 [08:25:19]RasterBufferAndPrint [08:25:19]line Счет N : (1)593397 [08:25:19]line ИНН: 02508201610067 [08:25:19]line Контрольно-Кассовый Чек [08:25:19]line ПРОДАЖА [08:25:19]line ТРК (МРК, ГНК) : 52 [08:25:19]line Товар: 2710124130 [08:25:19]line Аи-92-К-5 [08:25:19]line 4.430 * 67.80 [08:25:19]line = 300.35 [08:25:19]line НДС 12% НСП 1% [08:25:19]line > о реализуемом товаре [08:25:19]line ОКРУГЛЕНИЕ: -0.35 [08:25:19]line ИТОГО: 300.00 [08:25:19]line Внесено: 300.00 [08:25:19]line СДАЧА: 0.00 [08:25:19]line НСП 1% : 2.66 [08:25:19]line НДС 12% : 31.90 [08:25:19]line Наличными: 300.00 [08:25:19]line Безнал.: 0.00 [08:25:19]line Место: АЗС № 136 "Партнер Нефть" [08:25:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:25:19]line СНО: Общий режим [08:25:19]line Чек 27 20.08.2024 08:25 [08:25:19]line Смена: 453 ФФД: 1.0 [08:25:19]line ЗНМ: 0300000067 [08:25:19]line РНМ: 0000000000092569 [08:25:19]line Версия ККМ: 001 [08:25:19]line ФМ: 0000000000871776 [08:25:19]line ФД: 139555 [08:25:19]line ФПД: 92032114144095 [08:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T082520&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139555&fm=92032114144095&tin=02508201610067®Number=0000000000092569&sum=30000 [08:25:19]OFD Sender: Processing packet 139555 [packets to send 137, broken 136] [08:25:19]ProducePacketName [08:25:19]name=ofd_packets/00139555 [08:25:19]OFD Sender: To server: pG, [08:25:19]CommunicateWithHost lk.salyk.kg:30040 [08:25:19]ConnectInit lk.salyk.kg [08:25:19]written 0, free lines is 4095 [08:25:19]Connected sock=10 [08:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 A2 07 01 92 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 F0 52 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 21 02 00 35 04 06 00 53 B3 E5 78 B3 5F 74 D0 0C F2 5A 01 3A 0A [08:25:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 61 00 47 00 59 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 21 02 00 F4 03 04 00 84 F9 C3 66 B6 04 01 00 00 A4 16 FB 17 8E C0 77 77 [08:25:20]CommunicateWithHost err = 0 [08:25:20]CheckOFDResponse [08:25:20]1017 (14) - 77093643461234 [08:25:20]1041 (16) - 0000000000871776 [08:25:20]1040 (4) - 139555 [08:25:20]1012 (4) - 20.08.2024 02:03 [08:25:20]1206 (1) - 0 [08:25:20]OFD Sender: Remove packet 139555 [08:25:20]ProducePacketName [08:25:20]name=ofd_packets/00139555 [08:25:20]NVStorageDeleteData [08:25:20]Write to MH i2c: 01 00 00 29 14 3D [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 29 14 00 00 00 00 00 BA 0C 0A [08:25:20]RasterBufferAndPrint [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]written 0, free lines is 3266 [08:25:20]MH_Cut [08:25:20]Write to MH i2c: D1 01 00 30 14 01 16 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 01 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 01 00 30 14 00 15 [08:25:20]Write to MH i2c: 01 00 00 31 14 45 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]OFD Sender: No OFD packet to send [08:25:21]*** Cut start [08:25:21]*** Partial cut [08:25:21]*** CUTSNS_PIN = 1 [08:25:21]*** CUTSNS_PIN = 0 [08:25:21]*** Brake cut motor [08:25:21]Read from MH i2c: 01 [08:25:21]MH_I2C_Read... [08:25:21]*** Stop cut motor [08:25:21]*** Cut end [08:25:21]Read from MH i2c: 01 07 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: 01 07 00 31 14 00 00 00 00 00 FF 0F 5A [08:25:21]process_action close_receipt done [08:25:21]requested_data is exist [08:25:21]produce_requested_data [08:25:21]requested_item fm.sn is exist - process it [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 11 00 00 [08:25:21]Write to MH i2c: E2 08 00 32 14 80 11 00 00 00 00 00 00 C0 [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 17 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 17 00 32 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [08:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:25:21]wFMCommunicate OK [08:25:21]requested_item fd.num is exist - process it [08:25:21]SAM_PROTO_GetFieldsCounters [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 13 00 00 [08:25:21]Write to MH i2c: E2 08 00 33 14 80 13 00 00 00 00 00 00 C3 [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 62 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 62 00 33 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 23 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [08:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 23 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:21]wFMCommunicate OK [08:25:21]SAM_PROTO_GetFieldsCounters done [08:25:21]requested_item shift.num is exist - process it [08:25:21]requested_item shift.opened is exist - process it [08:25:21]req_shift_opened [08:25:21]FM_GetShiftState [08:25:21]SAM_PROTO_GetShiftState [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 13 01 00 [08:25:21]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 0E 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 56 [08:25:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:25:21]wFMCommunicate OK [08:25:21]SAM_PROTO_GetShiftState done [08:25:21]FM_GetShiftState done [08:25:21]req_shift_opened done [08:25:21]requested_item shift.open_date is exist - process it [08:25:21]req_shift_open_date [08:25:21]req_shift_open_date done [08:25:21]produce_requested_data done [08:25:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139555,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:25:21]process_action_free close_receipt [08:25:21]json_value_free [08:25:21]json_value_free done [08:25:21]process_json_proto returns [08:25:21]Send response to host [08:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139555,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:25:21]free response buf [08:25:21]execute_script done [08:25:21]execute_script returns [08:25:21]free content buf [08:25:21]Sock 9.Close socket [08:25:21]Sock 9.Thread stoped [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:01]accept exits with 7 [08:27:01]New connection [08:27:01]New thread 3067215204 created [08:27:01]Thread 3067071844 joined [08:27:01]Waiting for new connection... [08:27:01] Sock 7.Parse request [08:27:01]Sock 7.Check first char [08:27:01]Sock 7.First char is OK [08:27:01]request: POST /json_proto HTTP/1.0 [08:27:01]Method: POST [08:27:01]URL: /json_proto [08:27:01]Method is POST - this is cgi request [08:27:01]url: /json_proto [08:27:01]query_string will be loaded in cgi processing [08:27:01]execute_cgi json_proto POST (null) [08:27:01]execute_cgi path=json_proto method=POST [08:27:01]POST find Content-Length [08:27:01]Host: 172.17.45.67:8080 [08:27:01]Content-Length: 677 [08:27:01]Content-Type: application/json [08:27:01] [08:27:01]POST finish read [08:27:01]Found Content-Length = 677 [08:27:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.510, "sum" : 170.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:01]execute_script... [08:27: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)593398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.510, "sum" : 170.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:01]POST & json_proto [08:27:01]process_json_proto [08:27:01]json parsed OK: [08:27:01]protocol is kg_v1.0 [08:27:01]action value=close_receipt [08:27:01]process_action close_receipt [08:27:01]cmd_close_receipt [08:27:01]MH_GetDate [08:27:01]Write to MH i2c: F0 00 00 35 14 38 [08:27:01]Write i2c OK [08:27:01]MH_I2C_Read... [08:27:01]Read from MH i2c: F0 [08:27:01]MH_I2C_Read... [08:27:01]Read from MH i2c: F0 09 00 [08:27:01]MH_I2C_Read... [08:27:01]Read from MH i2c: F0 09 00 35 14 00 58 53 C4 66 5F 7F 2B 66 85 [08:27:01]GetLastDocTimeStamp 1724142320 [08:27:01]current date 1724142424 [08:27:01]FM_GetShiftState [08:27:01]SAM_PROTO_GetShiftState [08:27:01]wFMCommunicate request_size=4 [08:27:01]MH_SAM_APDU [08:27:01]CAPDU: 80 13 01 00 [08:27:01]Write to MH i2c: E2 08 00 36 14 80 13 01 00 00 00 00 00 C7 [08:27:01]Write i2c OK [08:27:01]MH_I2C_Read... [08:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:02]Read from MH i2c: E2 [08:27:02]MH_I2C_Read... [08:27:02]Read from MH i2c: E2 0E 00 [08:27:02]MH_I2C_Read... [08:27:02]Read from MH i2c: E2 0E 00 36 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 58 [08:27:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:27:02]wFMCommunicate OK [08:27:02]SAM_PROTO_GetShiftState done [08:27:02]FM_GetShiftState done [08:27:02]opened in 1724113785 [08:27:02]opened+sec_in_day 1724200185 [08:27:02]quantity*price = 17017 [08:27:02]sum+1 = 17019 [08:27:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.07 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 28 20.08.2024 08:27 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139556 ФПД: 26209472406783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T082704&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139556&fm=26209472406783&tin=02508201610067®Number=0000000000092569&sum=17000 [08:27:03]StoreToDocumentArchive [08:27:03]shift 453 fd 139556 [08:27:03]save to /storage/0453/doc_00139556 [08:27:03]save last doc name /storage/0453/doc_00139556 to /storage/kkm_last_doc_name [08:27:03]save OK [08:27:03]Clear old archive folders... [08:27:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:03]tlvbuf is 00D2E7D0 [08:27:03]SAM_PROTO_ClearQueue [08:27:03]wFMCommunicate request_size=4 [08:27:03]MH_SAM_APDU [08:27:03]CAPDU: 80 09 00 00 [08:27:03]Write to MH i2c: E2 08 00 43 14 80 09 00 00 00 00 00 00 C9 [08:27:03]Write i2c OK [08:27:03]MH_I2C_Read... [08:27:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:03]Read from MH i2c: E2 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 03 00 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [08:27:03]RAPDU: 90 00 [08:27:03]wFMCommunicate OK [08:27:03]SAM_PROTO_ClearQueue done [08:27:03]KKMCreateOFDPacket [08:27:03]OFDProtocolAddRootSTLVToBuf [08:27:03]FM_MakeSignedData [08:27:03]FM_MakeSignedData [08:27:03]SAM_PROTO_SignData [08:27:03]wFMCommunicate request_size=4 [08:27:03]MH_SAM_APDU [08:27:03]CAPDU: 80 0D 01 02 [08:27:03]Write to MH i2c: E2 08 00 44 14 80 0D 01 02 00 00 00 00 D1 [08:27:03]Write i2c OK [08:27:03]MH_I2C_Read... [08:27:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:03]Read from MH i2c: E2 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 03 00 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [08:27:03]RAPDU: 90 00 [08:27:03]wFMCommunicate OK [08:27:03]wFMCommunicate request_size=255 [08:27:03]MH_SAM_APDU [08:27:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 58 53 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 21 02 00 35 04 06 00 17 [08:27:03]Write to MH i2c: E2 02 01 45 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 58 53 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 21 02 00 35 04 06 00 17 00 00 24 [08:27:03]Write i2c OK [08:27:03]MH_I2C_Read... [08:27:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:03]Read from MH i2c: E2 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 03 00 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [08:27:03]RAPDU: 90 00 [08:27:03]wFMCommunicate OK [08:27:03]wFMCommunicate request_size=10 [08:27:03]MH_SAM_APDU [08:27:03]CAPDU: 80 0D 02 02 05 D6 5E 4A E4 FF [08:27:03]Write to MH i2c: E2 0D 00 46 14 80 0D 02 02 05 00 D6 5E 4A E4 FF 00 00 3F [08:27:03]Write i2c OK [08:27:03]MH_I2C_Read... [08:27:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:03]Read from MH i2c: E2 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 03 00 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [08:27:03]RAPDU: 90 00 [08:27:03]wFMCommunicate OK [08:27:03]wFMCommunicate request_size=4 [08:27:03]MH_SAM_APDU [08:27:03]CAPDU: 80 0D 03 02 [08:27:03]Write to MH i2c: E2 08 00 47 14 80 0D 03 02 00 00 00 00 D6 [08:27:03]Write i2c OK [08:27:03]MH_I2C_Read... [08:27:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:03]Read from MH i2c: E2 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 0B 00 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 0B 00 47 14 00 9C A4 D0 A2 A6 35 A8 E6 90 00 F2 [08:27:03]RAPDU: 9C A4 D0 A2 A6 35 A8 E6 90 00 [08:27:03]wFMCommunicate OK [08:27:03]SAM_PROTO_SignData done [08:27:03]FM_MakeSignedData done [08:27:03]CreateOFDProtocolMessage [08:27:03]wFMCommunicate request_size=4 [08:27:03]MH_SAM_APDU [08:27:03]CAPDU: 80 11 00 00 [08:27:03]Write to MH i2c: E2 08 00 48 14 80 11 00 00 00 00 00 00 D6 [08:27:03]Write i2c OK [08:27:03]MH_I2C_Read... [08:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:03]Read from MH i2c: E2 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 17 00 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: E2 17 00 48 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2D [08:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:27:03]wFMCommunicate OK [08:27:03]CreateOFDProtocolMessage done [08:27:03]OFDSenderStorePacket 139556 [08:27:03]StoreOFDPacket docnum=139556 [08:27:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C 7F 07 01 28 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 58 53 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 21 02 00 35 04 06 00 17 D6 5E 4A E4 FF 9C A4 D0 A2 A6 35 A8 E6 [08:27:03]CheckFolder [08:27:03]dirname=/storage/ofd_packets [08:27:03]CheckFolder done [08:27:03]ProducePacketName [08:27:03]name=ofd_packets/00139556 [08:27:03]NVStorageSaveData ofd_packets/00139556 [08:27:03]File name is /storage/ofd_packets/00139556 [08:27:03]Write 301 bytes [08:27:03]NVStorageSaveData done [08:27:03]OFDSenderStorePacket done [08:27:03]KKMCreateOFDPacket done [08:27:03]NVStorageSaveData kkm_last_timestamp [08:27:03]File name is /storage/kkm_last_timestamp [08:27:03]Write 4 bytes [08:27:03]NVStorageSaveData done [08:27:03]ExternCall_PrintAddStr [08:27:03]wPrintStart [08:27:03]Write to MH i2c: 01 00 00 49 14 5D [08:27:03]Write i2c OK [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: 01 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: 01 07 00 [08:27:03]MH_I2C_Read... [08:27:03]Read from MH i2c: 01 07 00 49 14 00 00 00 00 00 FF 0F 72 [08:27:03]RasterBufferAndPrint [08:27:03]line Счет N : (1)593398 [08:27:03]line ИНН: 02508201610067 [08:27:03]line Контрольно-Кассовый Чек [08:27:03]line ПРОДАЖА [08:27:03]line ТРК (МРК, ГНК) : 42 [08:27:03]line Товар: 2710124130 [08:27:03]line Аи-92-К-5 [08:27:03]line 2.510 * 67.80 [08:27:03]line = 170.18 [08:27:03]line НДС 12% НСП 1% [08:27:03]line > о реализуемом товаре [08:27:03]line ОКРУГЛЕНИЕ: -0.18 [08:27:03]line ИТОГО: 170.00 [08:27:03]line Внесено: 170.00 [08:27:03]line СДАЧА: 0.00 [08:27:03]line НСП 1% : 1.51 [08:27:03]line НДС 12% : 18.07 [08:27:03]line Наличными: 170.00 [08:27:03]line Безнал.: 0.00 [08:27:03]line Место: АЗС № 136 "Партнер Нефть" [08:27:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:27:03]line СНО: Общий режим [08:27:03]line Чек 28 20.08.2024 08:27 [08:27:03]line Смена: 453 ФФД: 1.0 [08:27:03]line ЗНМ: 0300000067 [08:27:03]line РНМ: 0000000000092569 [08:27:03]line Версия ККМ: 001 [08:27:03]line ФМ: 0000000000871776 [08:27:03]line ФД: 139556 [08:27:03]line ФПД: 26209472406783 [08:27:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T082704&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139556&fm=26209472406783&tin=02508201610067®Number=0000000000092569&sum=17000 [08:27:03]OFD Sender: Processing packet 139556 [packets to send 137, broken 136] [08:27:03]ProducePacketName [08:27:03]name=ofd_packets/00139556 [08:27:03]OFD Sender: To server: pG, [08:27:03]CommunicateWithHost lk.salyk.kg:30040 [08:27:03]ConnectInit lk.salyk.kg [08:27:03]written 0, free lines is 4095 [08:27:04]Connected sock=10 [08:27:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C 7F 07 01 28 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 7A 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 58 53 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 21 02 00 35 04 06 00 17 D6 5E 4A E4 FF 9C A4 D0 A2 A6 35 A8 E6 [08:27:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C3 91 47 00 6A 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 21 02 00 F4 03 04 00 EC F9 C3 66 B6 04 01 00 00 61 81 74 35 13 31 D6 54 [08:27:04]CommunicateWithHost err = 0 [08:27:04]CheckOFDResponse [08:27:04]1017 (14) - 77093643461234 [08:27:04]1041 (16) - 0000000000871776 [08:27:04]1040 (4) - 139556 [08:27:04]1012 (4) - 20.08.2024 02:05 [08:27:04]1206 (1) - 0 [08:27:04]OFD Sender: Remove packet 139556 [08:27:04]ProducePacketName [08:27:04]name=ofd_packets/00139556 [08:27:04]NVStorageDeleteData [08:27:04]Write to MH i2c: 01 00 00 74 14 88 [08:27:04]Write i2c OK [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: 01 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: 01 07 00 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: 01 07 00 74 14 00 00 00 00 00 C7 0C 62 [08:27:04]RasterBufferAndPrint [08:27:04]line [08:27:04]line [08:27:04]line [08:27:04]line [08:27:04]line [08:27:04]written 0, free lines is 3277 [08:27:04]MH_Cut [08:27:04]Write to MH i2c: D1 01 00 7B 14 01 61 [08:27:04]Write i2c OK [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: D1 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: D1 01 00 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: D1 01 00 7B 14 00 60 [08:27:04]Write to MH i2c: 01 00 00 7C 14 90 [08:27:04]Write i2c OK [08:27:04]MH_I2C_Read... [08:27:04]OFD Sender: No OFD packet to send [08:27:05]*** Cut start [08:27:05]*** Partial cut [08:27:05]*** CUTSNS_PIN = 1 [08:27:05]*** CUTSNS_PIN = 0 [08:27:05]*** Brake cut motor [08:27:05]Read from MH i2c: 01 [08:27:05]MH_I2C_Read... [08:27:05]*** Stop cut motor [08:27:05]*** Cut end [08:27:05]Read from MH i2c: 01 07 00 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: 01 07 00 7C 14 00 00 00 00 00 FF 0F A5 [08:27:05]process_action close_receipt done [08:27:05]requested_data is exist [08:27:05]produce_requested_data [08:27:05]requested_item fm.sn is exist - process it [08:27:05]wFMCommunicate request_size=4 [08:27:05]MH_SAM_APDU [08:27:05]CAPDU: 80 11 00 00 [08:27:05]Write to MH i2c: E2 08 00 7D 14 80 11 00 00 00 00 00 00 0B [08:27:05]Write i2c OK [08:27:05]MH_I2C_Read... [08:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:05]Read from MH i2c: E2 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 17 00 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 17 00 7D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [08:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:27:05]wFMCommunicate OK [08:27:05]requested_item fd.num is exist - process it [08:27:05]SAM_PROTO_GetFieldsCounters [08:27:05]wFMCommunicate request_size=4 [08:27:05]MH_SAM_APDU [08:27:05]CAPDU: 80 13 00 00 [08:27:05]Write to MH i2c: E2 08 00 7E 14 80 13 00 00 00 00 00 00 0E [08:27:05]Write i2c OK [08:27:05]MH_I2C_Read... [08:27:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:05]Read from MH i2c: E2 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 62 00 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 62 00 7E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 24 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [08:27:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 24 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:05]wFMCommunicate OK [08:27:05]SAM_PROTO_GetFieldsCounters done [08:27:05]requested_item shift.num is exist - process it [08:27:05]requested_item shift.opened is exist - process it [08:27:05]req_shift_opened [08:27:05]FM_GetShiftState [08:27:05]SAM_PROTO_GetShiftState [08:27:05]wFMCommunicate request_size=4 [08:27:05]MH_SAM_APDU [08:27:05]CAPDU: 80 13 01 00 [08:27:05]Write to MH i2c: E2 08 00 7F 14 80 13 01 00 00 00 00 00 10 [08:27:05]Write i2c OK [08:27:05]MH_I2C_Read... [08:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:06]Read from MH i2c: E2 [08:27:06]MH_I2C_Read... [08:27:06]Read from MH i2c: E2 0E 00 [08:27:06]MH_I2C_Read... [08:27:06]Read from MH i2c: E2 0E 00 7F 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A1 [08:27:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:27:06]wFMCommunicate OK [08:27:06]SAM_PROTO_GetShiftState done [08:27:06]FM_GetShiftState done [08:27:06]req_shift_opened done [08:27:06]requested_item shift.open_date is exist - process it [08:27:06]req_shift_open_date [08:27:06]req_shift_open_date done [08:27:06]produce_requested_data done [08:27:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139556,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:27:06]process_action_free close_receipt [08:27:06]json_value_free [08:27:06]json_value_free done [08:27:06]process_json_proto returns [08:27:06]Send response to host [08:27:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139556,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:27:06]free response buf [08:27:06]execute_script done [08:27:06]execute_script returns [08:27:06]free content buf [08:27:06]Sock 7.Close socket [08:27:06]Sock 7.Thread stoped [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:03]accept exits with 9 [08:31:03]New connection [08:31:03]New thread 3067071844 created [08:31:03]Thread 3067215204 joined [08:31:03]Waiting for new connection... [08:31:03] Sock 9.Parse request [08:31:03]Sock 9.Check first char [08:31:03]Sock 9.First char is OK [08:31:03]request: POST /json_proto HTTP/1.0 [08:31:03]Method: POST [08:31:03]URL: /json_proto [08:31:03]Method is POST - this is cgi request [08:31:03]url: /json_proto [08:31:03]query_string will be loaded in cgi processing [08:31:03]execute_cgi json_proto POST (null) [08:31:03]execute_cgi path=json_proto method=POST [08:31:03]POST find Content-Length [08:31:03]Host: 172.17.45.67:8080 [08:31:03]Content-Length: 677 [08:31:03]Content-Type: application/json [08:31:03] [08:31:03]POST finish read [08:31:03]Found Content-Length = 677 [08:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:03]execute_script... [08:31: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)593400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:03]POST & json_proto [08:31:03]process_json_proto [08:31:03]json parsed OK: [08:31:03]protocol is kg_v1.0 [08:31:03]action value=close_receipt [08:31:03]process_action close_receipt [08:31:03]cmd_close_receipt [08:31:03]MH_GetDate [08:31:03]Write to MH i2c: F0 00 00 80 14 83 [08:31:03]Write i2c OK [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: F0 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: F0 09 00 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: F0 09 00 80 14 00 4A 54 C4 66 5F 7F 2B 66 C3 [08:31:03]GetLastDocTimeStamp 1724142424 [08:31:03]current date 1724142666 [08:31:03]FM_GetShiftState [08:31:03]SAM_PROTO_GetShiftState [08:31:03]wFMCommunicate request_size=4 [08:31:03]MH_SAM_APDU [08:31:03]CAPDU: 80 13 01 00 [08:31:03]Write to MH i2c: E2 08 00 81 14 80 13 01 00 00 00 00 00 12 [08:31:03]Write i2c OK [08:31:03]MH_I2C_Read... [08:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:03]Read from MH i2c: E2 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 0E 00 [08:31:03]MH_I2C_Read... [08:31:03]Read from MH i2c: E2 0E 00 81 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A3 [08:31:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:31:03]wFMCommunicate OK [08:31:03]SAM_PROTO_GetShiftState done [08:31:03]FM_GetShiftState done [08:31:03]opened in 1724113785 [08:31:03]opened+sec_in_day 1724200185 [08:31:03]quantity*price = 40002 [08:31:03]sum+1 = 40003 [08:31:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 29 20.08.2024 08:31 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139557 ФПД: 203879045077662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083106&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139557&fm=203879045077662&tin=02508201610067®Number=0000000000092569&sum=40000 [08:31:05]StoreToDocumentArchive [08:31:05]shift 453 fd 139557 [08:31:05]save to /storage/0453/doc_00139557 [08:31:05]save last doc name /storage/0453/doc_00139557 to /storage/kkm_last_doc_name [08:31:05]save OK [08:31:05]Clear old archive folders... [08:31:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:05]tlvbuf is 00D3E600 [08:31:05]SAM_PROTO_ClearQueue [08:31:05]wFMCommunicate request_size=4 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 09 00 00 [08:31:05]Write to MH i2c: E2 08 00 8E 14 80 09 00 00 00 00 00 00 14 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [08:31:05]RAPDU: 90 00 [08:31:05]wFMCommunicate OK [08:31:05]SAM_PROTO_ClearQueue done [08:31:05]KKMCreateOFDPacket [08:31:05]OFDProtocolAddRootSTLVToBuf [08:31:05]FM_MakeSignedData [08:31:05]FM_MakeSignedData [08:31:05]SAM_PROTO_SignData [08:31:05]wFMCommunicate request_size=4 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 0D 01 02 [08:31:05]Write to MH i2c: E2 08 00 8F 14 80 0D 01 02 00 00 00 00 1C [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [08:31:05]RAPDU: 90 00 [08:31:05]wFMCommunicate OK [08:31:05]wFMCommunicate request_size=255 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4A 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 21 02 00 35 04 06 00 B9 [08:31:05]Write to MH i2c: E2 02 01 90 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4A 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 21 02 00 35 04 06 00 B9 00 00 36 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]OFD Sender: No OFD packet to send [08:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [08:31:05]RAPDU: 90 00 [08:31:05]wFMCommunicate OK [08:31:05]wFMCommunicate request_size=10 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 0D 02 02 05 6D 4A 0F 1A 9E [08:31:05]Write to MH i2c: E2 0D 00 91 14 80 0D 02 02 05 00 6D 4A 0F 1A 9E 00 00 A7 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [08:31:05]RAPDU: 90 00 [08:31:05]wFMCommunicate OK [08:31:05]wFMCommunicate request_size=4 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 0D 03 02 [08:31:05]Write to MH i2c: E2 08 00 92 14 80 0D 03 02 00 00 00 00 21 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 0B 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 0B 00 92 14 00 EE A0 20 BE A1 8A AC DA 90 00 3F [08:31:05]RAPDU: EE A0 20 BE A1 8A AC DA 90 00 [08:31:05]wFMCommunicate OK [08:31:05]SAM_PROTO_SignData done [08:31:05]FM_MakeSignedData done [08:31:05]CreateOFDProtocolMessage [08:31:05]wFMCommunicate request_size=4 [08:31:05]MH_SAM_APDU [08:31:05]CAPDU: 80 11 00 00 [08:31:05]Write to MH i2c: E2 08 00 93 14 80 11 00 00 00 00 00 00 21 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:05]Read from MH i2c: E2 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 17 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: E2 17 00 93 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 78 [08:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:31:05]wFMCommunicate OK [08:31:05]CreateOFDProtocolMessage done [08:31:05]OFDSenderStorePacket 139557 [08:31:05]StoreOFDPacket docnum=139557 [08:31:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9F EF 07 01 5C 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4A 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 21 02 00 35 04 06 00 B9 6D 4A 0F 1A 9E EE A0 20 BE A1 8A AC DA [08:31:05]CheckFolder [08:31:05]dirname=/storage/ofd_packets [08:31:05]CheckFolder done [08:31:05]ProducePacketName [08:31:05]name=ofd_packets/00139557 [08:31:05]NVStorageSaveData ofd_packets/00139557 [08:31:05]File name is /storage/ofd_packets/00139557 [08:31:05]Write 301 bytes [08:31:05]NVStorageSaveData done [08:31:05]OFDSenderStorePacket done [08:31:05]KKMCreateOFDPacket done [08:31:05]NVStorageSaveData kkm_last_timestamp [08:31:05]File name is /storage/kkm_last_timestamp [08:31:05]Write 4 bytes [08:31:05]NVStorageSaveData done [08:31:05]ExternCall_PrintAddStr [08:31:05]wPrintStart [08:31:05]Write to MH i2c: 01 00 00 94 14 A8 [08:31:05]Write i2c OK [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: 01 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: 01 07 00 [08:31:05]MH_I2C_Read... [08:31:05]Read from MH i2c: 01 07 00 94 14 00 00 00 00 00 FF 0F BD [08:31:05]RasterBufferAndPrint [08:31:05]line Счет N : (1)593400 [08:31:05]line ИНН: 02508201610067 [08:31:05]line Контрольно-Кассовый Чек [08:31:05]line ПРОДАЖА [08:31:05]line ТРК (МРК, ГНК) : 42 [08:31:05]line Товар: 2710124130 [08:31:05]line Аи-92-К-5 [08:31:05]line 5.900 * 67.80 [08:31:05]line = 400.02 [08:31:05]line НДС 12% НСП 1% [08:31:05]line > о реализуемом товаре [08:31:05]line ОКРУГЛЕНИЕ: -0.02 [08:31:05]line ИТОГО: 400.00 [08:31:05]line Внесено: 400.00 [08:31:05]line СДАЧА: 0.00 [08:31:05]line НСП 1% : 3.54 [08:31:05]line НДС 12% : 42.48 [08:31:05]line Наличными: 400.00 [08:31:05]line Безнал.: 0.00 [08:31:05]line Место: АЗС № 136 "Партнер Нефть" [08:31:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:31:05]line СНО: Общий режим [08:31:05]line Чек 29 20.08.2024 08:31 [08:31:05]line Смена: 453 ФФД: 1.0 [08:31:05]line ЗНМ: 0300000067 [08:31:05]line РНМ: 0000000000092569 [08:31:05]line Версия ККМ: 001 [08:31:05]line ФМ: 0000000000871776 [08:31:05]line ФД: 139557 [08:31:05]line ФПД: 203879045077662 [08:31:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083106&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139557&fm=203879045077662&tin=02508201610067®Number=0000000000092569&sum=40000 [08:31:05]OFD Sender: Processing packet 139557 [packets to send 137, broken 136] [08:31:05]ProducePacketName [08:31:05]name=ofd_packets/00139557 [08:31:05]OFD Sender: To server: pG, [08:31:05]CommunicateWithHost lk.salyk.kg:30040 [08:31:05]ConnectInit lk.salyk.kg [08:31:05]written 0, free lines is 4095 [08:31:06]Connected sock=11 [08:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9F EF 07 01 5C 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4A 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 21 02 00 35 04 06 00 B9 6D 4A 0F 1A 9E EE A0 20 BE A1 8A AC DA [08:31:06]Write to MH i2c: 01 00 00 BF 14 D3 [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: 01 07 00 BF 14 00 00 00 00 00 C2 0C A8 [08:31:06]RasterBufferAndPrint [08:31:06]line [08:31:06]line [08:31:06]line [08:31:06]line [08:31:06]line [08:31:06]written 0, free lines is 3272 [08:31:06]MH_Cut [08:31:06]Write to MH i2c: D1 01 00 C6 14 01 AC [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: D1 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: D1 01 00 [08:31:06]MH_I2C_Read... [08:31:06]Read from MH i2c: D1 01 00 C6 14 00 AB [08:31:06]Write to MH i2c: 01 00 00 C7 14 DB [08:31:06]Write i2c OK [08:31:06]MH_I2C_Read... [08:31:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 62 E2 47 00 81 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 21 02 00 F4 03 04 00 DE FA C3 66 B6 04 01 00 00 D8 E0 E8 70 44 38 7F DF [08:31:06]CommunicateWithHost err = 0 [08:31:06]CheckOFDResponse [08:31:06]1017 (14) - 77093643461234 [08:31:06]1041 (16) - 0000000000871776 [08:31:06]1040 (4) - 139557 [08:31:06]1012 (4) - 20.08.2024 02:09 [08:31:06]1206 (1) - 0 [08:31:06]OFD Sender: Remove packet 139557 [08:31:06]ProducePacketName [08:31:06]name=ofd_packets/00139557 [08:31:06]NVStorageDeleteData [08:31:06]OFD Sender: No OFD packet to send [08:31:07]*** Cut start [08:31:07]*** Partial cut [08:31:07]*** CUTSNS_PIN = 1 [08:31:07]*** CUTSNS_PIN = 0 [08:31:07]*** Brake cut motor [08:31:07]Read from MH i2c: 01 [08:31:07]MH_I2C_Read... [08:31:07]*** Stop cut motor [08:31:07]*** Cut end [08:31:07]Read from MH i2c: 01 07 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: 01 07 00 C7 14 00 00 00 00 00 FF 0F F0 [08:31:07]process_action close_receipt done [08:31:07]requested_data is exist [08:31:07]produce_requested_data [08:31:07]requested_item fm.sn is exist - process it [08:31:07]wFMCommunicate request_size=4 [08:31:07]MH_SAM_APDU [08:31:07]CAPDU: 80 11 00 00 [08:31:07]Write to MH i2c: E2 08 00 C8 14 80 11 00 00 00 00 00 00 56 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 17 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 17 00 C8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AD [08:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:31:07]wFMCommunicate OK [08:31:07]requested_item fd.num is exist - process it [08:31:07]SAM_PROTO_GetFieldsCounters [08:31:07]wFMCommunicate request_size=4 [08:31:07]MH_SAM_APDU [08:31:07]CAPDU: 80 13 00 00 [08:31:07]Write to MH i2c: E2 08 00 C9 14 80 13 00 00 00 00 00 00 59 [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 62 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 62 00 C9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 25 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [08:31:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 25 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:07]wFMCommunicate OK [08:31:07]SAM_PROTO_GetFieldsCounters done [08:31:07]requested_item shift.num is exist - process it [08:31:07]requested_item shift.opened is exist - process it [08:31:07]req_shift_opened [08:31:07]FM_GetShiftState [08:31:07]SAM_PROTO_GetShiftState [08:31:07]wFMCommunicate request_size=4 [08:31:07]MH_SAM_APDU [08:31:07]CAPDU: 80 13 01 00 [08:31:07]Write to MH i2c: E2 08 00 CA 14 80 13 01 00 00 00 00 00 5B [08:31:07]Write i2c OK [08:31:07]MH_I2C_Read... [08:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:07]Read from MH i2c: E2 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 0E 00 [08:31:07]MH_I2C_Read... [08:31:07]Read from MH i2c: E2 0E 00 CA 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EC [08:31:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:31:07]wFMCommunicate OK [08:31:07]SAM_PROTO_GetShiftState done [08:31:07]FM_GetShiftState done [08:31:07]req_shift_opened done [08:31:07]requested_item shift.open_date is exist - process it [08:31:07]req_shift_open_date [08:31:07]req_shift_open_date done [08:31:07]produce_requested_data done [08:31:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139557,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:31:07]process_action_free close_receipt [08:31:07]json_value_free [08:31:07]json_value_free done [08:31:07]process_json_proto returns [08:31:07]Send response to host [08:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139557,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:31:07]free response buf [08:31:07]execute_script done [08:31:07]execute_script returns [08:31:07]free content buf [08:31:07]Sock 9.Close socket [08:31:07]Sock 9.Thread stoped [08:31:08]accept exits with 7 [08:31:08]New connection [08:31:08]New thread 3067215204 created [08:31:08]Thread 3067071844 joined [08:31:08]Waiting for new connection... [08:31:08] Sock 7.Parse request [08:31:08]Sock 7.Check first char [08:31:08]Sock 7.First char is OK [08:31:08]request: POST /json_proto HTTP/1.0 [08:31:08]Method: POST [08:31:08]URL: /json_proto [08:31:08]Method is POST - this is cgi request [08:31:08]url: /json_proto [08:31:08]query_string will be loaded in cgi processing [08:31:08]execute_cgi json_proto POST (null) [08:31:08]execute_cgi path=json_proto method=POST [08:31:08]POST find Content-Length [08:31:08]Host: 172.17.45.67:8080 [08:31:08]Content-Length: 677 [08:31:08]Content-Type: application/json [08:31:08] [08:31:08]POST finish read [08:31:08]Found Content-Length = 677 [08:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:08]execute_script... [08:31: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)593399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:08]POST & json_proto [08:31:08]process_json_proto [08:31:08]json parsed OK: [08:31:08]protocol is kg_v1.0 [08:31:08]action value=close_receipt [08:31:08]process_action close_receipt [08:31:08]cmd_close_receipt [08:31:08]MH_GetDate [08:31:08]Write to MH i2c: F0 00 00 CB 14 CE [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: F0 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: F0 09 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: F0 09 00 CB 14 00 4E 54 C4 66 5F 7F 2B 66 12 [08:31:08]GetLastDocTimeStamp 1724142666 [08:31:08]current date 1724142670 [08:31:08]FM_GetShiftState [08:31:08]SAM_PROTO_GetShiftState [08:31:08]wFMCommunicate request_size=4 [08:31:08]MH_SAM_APDU [08:31:08]CAPDU: 80 13 01 00 [08:31:08]Write to MH i2c: E2 08 00 CC 14 80 13 01 00 00 00 00 00 5D [08:31:08]Write i2c OK [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 [08:31:08]MH_I2C_Read... [08:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:08]Read from MH i2c: E2 0E 00 [08:31:08]MH_I2C_Read... [08:31:08]Read from MH i2c: E2 0E 00 CC 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EE [08:31:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:31:08]wFMCommunicate OK [08:31:08]SAM_PROTO_GetShiftState done [08:31:08]FM_GetShiftState done [08:31:08]opened in 1724113785 [08:31:08]opened+sec_in_day 1724200185 [08:31:08]quantity*price = 40002 [08:31:08]sum+1 = 40003 [08:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 30 20.08.2024 08:31 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139558 ФПД: 152478720803277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083111&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139558&fm=152478720803277&tin=02508201610067®Number=0000000000092569&sum=40000 [08:31:09]StoreToDocumentArchive [08:31:09]shift 453 fd 139558 [08:31:09]save to /storage/0453/doc_00139558 [08:31:09]save last doc name /storage/0453/doc_00139558 to /storage/kkm_last_doc_name [08:31:09]save OK [08:31:09]Clear old archive folders... [08:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:09]tlvbuf is 00D97610 [08:31:09]SAM_PROTO_ClearQueue [08:31:09]wFMCommunicate request_size=4 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 09 00 00 [08:31:09]Write to MH i2c: E2 08 00 D9 14 80 09 00 00 00 00 00 00 5F [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 03 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 03 00 D9 14 00 90 00 61 [08:31:09]RAPDU: 90 00 [08:31:09]wFMCommunicate OK [08:31:09]SAM_PROTO_ClearQueue done [08:31:09]KKMCreateOFDPacket [08:31:09]OFDProtocolAddRootSTLVToBuf [08:31:09]FM_MakeSignedData [08:31:09]FM_MakeSignedData [08:31:09]SAM_PROTO_SignData [08:31:09]wFMCommunicate request_size=4 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 0D 01 02 [08:31:09]Write to MH i2c: E2 08 00 DA 14 80 0D 01 02 00 00 00 00 67 [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:09]Read from MH i2c: E2 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 03 00 [08:31:09]MH_I2C_Read... [08:31:09]Read from MH i2c: E2 03 00 DA 14 00 90 00 62 [08:31:09]RAPDU: 90 00 [08:31:09]wFMCommunicate OK [08:31:09]wFMCommunicate request_size=255 [08:31:09]MH_SAM_APDU [08:31:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 4F 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 21 02 00 35 04 06 00 8A [08:31:09]Write to MH i2c: E2 02 01 DB 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 4F 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 21 02 00 35 04 06 00 8A 00 00 59 [08:31:09]Write i2c OK [08:31:09]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 DB 14 00 90 00 63 [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]wFMCommunicate request_size=10 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 0D 02 02 05 AD B7 FD 41 CD [08:31:10]Write to MH i2c: E2 0D 00 DC 14 80 0D 02 02 05 00 AD B7 FD 41 CD 00 00 E3 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [08:31:10]RAPDU: 90 00 [08:31:10]wFMCommunicate OK [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 0D 03 02 [08:31:10]Write to MH i2c: E2 08 00 DD 14 80 0D 03 02 00 00 00 00 6C [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 0B 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 0B 00 DD 14 00 29 CC 28 04 0D 8A 0A 4D 90 00 7C [08:31:10]RAPDU: 29 CC 28 04 0D 8A 0A 4D 90 00 [08:31:10]wFMCommunicate OK [08:31:10]SAM_PROTO_SignData done [08:31:10]FM_MakeSignedData done [08:31:10]CreateOFDProtocolMessage [08:31:10]wFMCommunicate request_size=4 [08:31:10]MH_SAM_APDU [08:31:10]CAPDU: 80 11 00 00 [08:31:10]Write to MH i2c: E2 08 00 DE 14 80 11 00 00 00 00 00 00 6C [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:10]Read from MH i2c: E2 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 17 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: E2 17 00 DE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C3 [08:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:31:10]wFMCommunicate OK [08:31:10]CreateOFDProtocolMessage done [08:31:10]OFDSenderStorePacket 139558 [08:31:10]StoreOFDPacket docnum=139558 [08:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F0 73 07 01 AB 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 4F 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 21 02 00 35 04 06 00 8A AD B7 FD 41 CD 29 CC 28 04 0D 8A 0A 4D [08:31:10]CheckFolder [08:31:10]dirname=/storage/ofd_packets [08:31:10]CheckFolder done [08:31:10]ProducePacketName [08:31:10]name=ofd_packets/00139558 [08:31:10]NVStorageSaveData ofd_packets/00139558 [08:31:10]File name is /storage/ofd_packets/00139558 [08:31:10]Write 301 bytes [08:31:10]NVStorageSaveData done [08:31:10]OFDSenderStorePacket done [08:31:10]KKMCreateOFDPacket done [08:31:10]NVStorageSaveData kkm_last_timestamp [08:31:10]File name is /storage/kkm_last_timestamp [08:31:10]Write 4 bytes [08:31:10]NVStorageSaveData done [08:31:10]ExternCall_PrintAddStr [08:31:10]wPrintStart [08:31:10]Write to MH i2c: 01 00 00 DF 14 F3 [08:31:10]Write i2c OK [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: 01 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: 01 07 00 [08:31:10]MH_I2C_Read... [08:31:10]Read from MH i2c: 01 07 00 DF 14 00 00 00 00 00 FF 0F 08 [08:31:10]RasterBufferAndPrint [08:31:10]line Счет N : (1)593399 [08:31:10]line ИНН: 02508201610067 [08:31:10]line Контрольно-Кассовый Чек [08:31:10]line ПРОДАЖА [08:31:10]line ТРК (МРК, ГНК) : 52 [08:31:10]line Товар: 2710124130 [08:31:10]line Аи-92-К-5 [08:31:10]line 5.900 * 67.80 [08:31:10]line = 400.02 [08:31:10]line НДС 12% НСП 1% [08:31:10]line > о реализуемом товаре [08:31:10]line ОКРУГЛЕНИЕ: -0.02 [08:31:10]line ИТОГО: 400.00 [08:31:10]line Внесено: 400.00 [08:31:10]line СДАЧА: 0.00 [08:31:10]line НСП 1% : 3.54 [08:31:10]line НДС 12% : 42.48 [08:31:10]line Наличными: 400.00 [08:31:10]line Безнал.: 0.00 [08:31:10]line Место: АЗС № 136 "Партнер Нефть" [08:31:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:31:10]line СНО: Общий режим [08:31:10]line Чек 30 20.08.2024 08:31 [08:31:10]line Смена: 453 ФФД: 1.0 [08:31:10]line ЗНМ: 0300000067 [08:31:10]line РНМ: 0000000000092569 [08:31:10]line Версия ККМ: 001 [08:31:10]line ФМ: 0000000000871776 [08:31:10]line ФД: 139558 [08:31:10]line ФПД: 152478720803277 [08:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083111&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139558&fm=152478720803277&tin=02508201610067®Number=0000000000092569&sum=40000 [08:31:10]OFD Sender: Processing packet 139558 [packets to send 137, broken 136] [08:31:10]ProducePacketName [08:31:10]name=ofd_packets/00139558 [08:31:10]OFD Sender: To server: pG, [08:31:10]CommunicateWithHost lk.salyk.kg:30040 [08:31:10]ConnectInit lk.salyk.kg [08:31:10]written 0, free lines is 4095 [08:31:10]Connected sock=10 [08:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F0 73 07 01 AB 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 4F 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 21 02 00 35 04 06 00 8A AD B7 FD 41 CD 29 CC 28 04 0D 8A 0A 4D [08:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AA C8 47 00 5F C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 21 02 00 F4 03 04 00 E3 FA C3 66 B6 04 01 00 00 BF AB 53 3C 1A B4 9D E3 [08:31:11]CommunicateWithHost err = 0 [08:31:11]CheckOFDResponse [08:31:11]1017 (14) - 77093643461234 [08:31:11]1041 (16) - 0000000000871776 [08:31:11]1040 (4) - 139558 [08:31:11]1012 (4) - 20.08.2024 02:09 [08:31:11]1206 (1) - 0 [08:31:11]OFD Sender: Remove packet 139558 [08:31:11]ProducePacketName [08:31:11]name=ofd_packets/00139558 [08:31:11]NVStorageDeleteData [08:31:11]Write to MH i2c: 01 00 00 0A 15 1F [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 07 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 D5 0C 07 [08:31:11]RasterBufferAndPrint [08:31:11]line [08:31:11]line [08:31:11]line [08:31:11]line [08:31:11]line [08:31:11]written 0, free lines is 3295 [08:31:11]MH_Cut [08:31:11]Write to MH i2c: D1 01 00 11 15 01 F8 [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: D1 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: D1 01 00 [08:31:11]MH_I2C_Read... [08:31:11]Read from MH i2c: D1 01 00 11 15 00 F7 [08:31:11]Write to MH i2c: 01 00 00 12 15 27 [08:31:11]Write i2c OK [08:31:11]MH_I2C_Read... [08:31:11]OFD Sender: No OFD packet to send [08:31:12]*** Cut start [08:31:12]*** Partial cut [08:31:12]*** CUTSNS_PIN = 1 [08:31:12]*** CUTSNS_PIN = 0 [08:31:12]*** Brake cut motor [08:31:12]Read from MH i2c: 01 [08:31:12]MH_I2C_Read... [08:31:12]*** Stop cut motor [08:31:12]*** Cut end [08:31:12]Read from MH i2c: 01 07 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: 01 07 00 12 15 00 00 00 00 00 FF 0F 3C [08:31:12]process_action close_receipt done [08:31:12]requested_data is exist [08:31:12]produce_requested_data [08:31:12]requested_item fm.sn is exist - process it [08:31:12]wFMCommunicate request_size=4 [08:31:12]MH_SAM_APDU [08:31:12]CAPDU: 80 11 00 00 [08:31:12]Write to MH i2c: E2 08 00 13 15 80 11 00 00 00 00 00 00 A2 [08:31:12]Write i2c OK [08:31:12]MH_I2C_Read... [08:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:12]Read from MH i2c: E2 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 17 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 17 00 13 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [08:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:31:12]wFMCommunicate OK [08:31:12]requested_item fd.num is exist - process it [08:31:12]SAM_PROTO_GetFieldsCounters [08:31:12]wFMCommunicate request_size=4 [08:31:12]MH_SAM_APDU [08:31:12]CAPDU: 80 13 00 00 [08:31:12]Write to MH i2c: E2 08 00 14 15 80 13 00 00 00 00 00 00 A5 [08:31:12]Write i2c OK [08:31:12]MH_I2C_Read... [08:31:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:12]Read from MH i2c: E2 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 62 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 62 00 14 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 26 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [08:31:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 26 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:12]wFMCommunicate OK [08:31:12]SAM_PROTO_GetFieldsCounters done [08:31:12]requested_item shift.num is exist - process it [08:31:12]requested_item shift.opened is exist - process it [08:31:12]req_shift_opened [08:31:12]FM_GetShiftState [08:31:12]SAM_PROTO_GetShiftState [08:31:12]wFMCommunicate request_size=4 [08:31:12]MH_SAM_APDU [08:31:12]CAPDU: 80 13 01 00 [08:31:12]Write to MH i2c: E2 08 00 15 15 80 13 01 00 00 00 00 00 A7 [08:31:12]Write i2c OK [08:31:12]MH_I2C_Read... [08:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:12]Read from MH i2c: E2 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 0E 00 [08:31:12]MH_I2C_Read... [08:31:12]Read from MH i2c: E2 0E 00 15 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 38 [08:31:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:31:12]wFMCommunicate OK [08:31:12]SAM_PROTO_GetShiftState done [08:31:12]FM_GetShiftState done [08:31:12]req_shift_opened done [08:31:12]requested_item shift.open_date is exist - process it [08:31:12]req_shift_open_date [08:31:12]req_shift_open_date done [08:31:12]produce_requested_data done [08:31:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139558,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:31:12]process_action_free close_receipt [08:31:12]json_value_free [08:31:12]json_value_free done [08:31:12]process_json_proto returns [08:31:12]Send response to host [08:31:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139558,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:31:12]free response buf [08:31:12]execute_script done [08:31:12]execute_script returns [08:31:12]free content buf [08:31:12]Sock 7.Close socket [08:31:12]Sock 7.Thread stoped [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:14]accept exits with 9 [08:32:14]New connection [08:32:14]New thread 3067071844 created [08:32:14]Thread 3067215204 joined [08:32:14]Waiting for new connection... [08:32:14] Sock 9.Parse request [08:32:14]Sock 9.Check first char [08:32:14]Sock 9.First char is OK [08:32:14]request: POST /json_proto HTTP/1.0 [08:32:14]Method: POST [08:32:14]URL: /json_proto [08:32:14]Method is POST - this is cgi request [08:32:14]url: /json_proto [08:32:14]query_string will be loaded in cgi processing [08:32:14]execute_cgi json_proto POST (null) [08:32:14]execute_cgi path=json_proto method=POST [08:32:14]POST find Content-Length [08:32:14]Host: 172.17.45.67:8080 [08:32:14]Content-Length: 658 [08:32:14]Content-Type: application/json [08:32:14] [08:32:14]POST finish read [08:32:14]Found Content-Length = 658 [08:32:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.000, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:14]execute_script... [08:32:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.000, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:14]POST & json_proto [08:32:14]process_json_proto [08:32:14]json parsed OK: [08:32:14]protocol is kg_v1.0 [08:32:14]action value=close_receipt [08:32:14]process_action close_receipt [08:32:14]cmd_close_receipt [08:32:14]MH_GetDate [08:32:14]Write to MH i2c: F0 00 00 16 15 1A [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: F0 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: F0 09 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: F0 09 00 16 15 00 91 54 C4 66 5F 7F 2B 66 A1 [08:32:14]GetLastDocTimeStamp 1724142671 [08:32:14]current date 1724142737 [08:32:14]FM_GetShiftState [08:32:14]SAM_PROTO_GetShiftState [08:32:14]wFMCommunicate request_size=4 [08:32:14]MH_SAM_APDU [08:32:14]CAPDU: 80 13 01 00 [08:32:14]Write to MH i2c: E2 08 00 17 15 80 13 01 00 00 00 00 00 A9 [08:32:14]Write i2c OK [08:32:14]MH_I2C_Read... [08:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:14]Read from MH i2c: E2 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 0E 00 [08:32:14]MH_I2C_Read... [08:32:14]Read from MH i2c: E2 0E 00 17 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3A [08:32:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:32:14]wFMCommunicate OK [08:32:14]SAM_PROTO_GetShiftState done [08:32:14]FM_GetShiftState done [08:32:14]opened in 1724113785 [08:32:14]opened+sec_in_day 1724200185 [08:32:14]quantity*price = 55040 [08:32:14]sum+1 = 55041 [08:32:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 31 20.08.2024 08:32 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139559 ФПД: 47446174274380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083217&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139559&fm=47446174274380&tin=02508201610067®Number=0000000000092569&sum=55000 [08:32:15]StoreToDocumentArchive [08:32:15]shift 453 fd 139559 [08:32:15]save to /storage/0453/doc_00139559 [08:32:15]save last doc name /storage/0453/doc_00139559 to /storage/kkm_last_doc_name [08:32:15]save OK [08:32:15]Clear old archive folders... [08:32:15]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:32:15]tlvbuf is 00D86A00 [08:32:15]SAM_PROTO_ClearQueue [08:32:15]wFMCommunicate request_size=4 [08:32:15]MH_SAM_APDU [08:32:15]CAPDU: 80 09 00 00 [08:32:15]Write to MH i2c: E2 08 00 24 15 80 09 00 00 00 00 00 00 AB [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:15]Read from MH i2c: E2 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 03 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 03 00 24 15 00 90 00 AD [08:32:15]RAPDU: 90 00 [08:32:15]wFMCommunicate OK [08:32:15]SAM_PROTO_ClearQueue done [08:32:15]KKMCreateOFDPacket [08:32:15]OFDProtocolAddRootSTLVToBuf [08:32:15]FM_MakeSignedData [08:32:15]FM_MakeSignedData [08:32:15]SAM_PROTO_SignData [08:32:15]wFMCommunicate request_size=4 [08:32:15]MH_SAM_APDU [08:32:15]CAPDU: 80 0D 01 02 [08:32:15]Write to MH i2c: E2 08 00 25 15 80 0D 01 02 00 00 00 00 B3 [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:15]Read from MH i2c: E2 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 03 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 03 00 25 15 00 90 00 AE [08:32:15]RAPDU: 90 00 [08:32:15]wFMCommunicate OK [08:32:15]wFMCommunicate request_size=253 [08:32:15]MH_SAM_APDU [08:32:15]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 91 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 21 02 00 35 04 06 00 2B 26 EC 5D 13 4C [08:32:15]Write to MH i2c: E2 00 01 26 15 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 91 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 21 02 00 35 04 06 00 2B 26 EC 5D 13 4C 00 00 0B [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:15]Read from MH i2c: E2 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 03 00 [08:32:15]MH_I2C_Read... [08:32:15]Read from MH i2c: E2 03 00 26 15 00 90 00 AF [08:32:15]RAPDU: 90 00 [08:32:15]wFMCommunicate OK [08:32:15]wFMCommunicate request_size=4 [08:32:15]MH_SAM_APDU [08:32:15]CAPDU: 80 0D 03 02 [08:32:15]Write to MH i2c: E2 08 00 27 15 80 0D 03 02 00 00 00 00 B7 [08:32:15]Write i2c OK [08:32:15]MH_I2C_Read... [08:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:16]Read from MH i2c: E2 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 0B 00 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 0B 00 27 15 00 D5 09 B8 E3 FA CD 91 74 90 00 FD [08:32:16]RAPDU: D5 09 B8 E3 FA CD 91 74 90 00 [08:32:16]wFMCommunicate OK [08:32:16]SAM_PROTO_SignData done [08:32:16]FM_MakeSignedData done [08:32:16]CreateOFDProtocolMessage [08:32:16]wFMCommunicate request_size=4 [08:32:16]MH_SAM_APDU [08:32:16]CAPDU: 80 11 00 00 [08:32:16]Write to MH i2c: E2 08 00 28 15 80 11 00 00 00 00 00 00 B7 [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:16]Read from MH i2c: E2 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 17 00 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: E2 17 00 28 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0E [08:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:32:16]wFMCommunicate OK [08:32:16]CreateOFDProtocolMessage done [08:32:16]OFDSenderStorePacket 139559 [08:32:16]StoreOFDPacket docnum=139559 [08:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 07 EA 00 01 3D 39 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 91 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 21 02 00 35 04 06 00 2B 26 EC 5D 13 4C D5 09 B8 E3 FA CD 91 74 [08:32:16]CheckFolder [08:32:16]dirname=/storage/ofd_packets [08:32:16]CheckFolder done [08:32:16]ProducePacketName [08:32:16]name=ofd_packets/00139559 [08:32:16]NVStorageSaveData ofd_packets/00139559 [08:32:16]File name is /storage/ofd_packets/00139559 [08:32:16]Write 294 bytes [08:32:16]NVStorageSaveData done [08:32:16]OFDSenderStorePacket done [08:32:16]KKMCreateOFDPacket done [08:32:16]NVStorageSaveData kkm_last_timestamp [08:32:16]File name is /storage/kkm_last_timestamp [08:32:16]Write 4 bytes [08:32:16]NVStorageSaveData done [08:32:16]ExternCall_PrintAddStr [08:32:16]wPrintStart [08:32:16]Write to MH i2c: 01 00 00 29 15 3E [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: 01 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: 01 07 00 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: 01 07 00 29 15 00 00 00 00 00 FF 0F 53 [08:32:16]RasterBufferAndPrint [08:32:16]line Счет N : (1)593401 [08:32:16]line ИНН: 02508201610067 [08:32:16]line Контрольно-Кассовый Чек [08:32:16]line ПРОДАЖА [08:32:16]line ТРК (МРК, ГНК) : 63 [08:32:16]line Товар: 2710124130 [08:32:16]line SU-92 [08:32:16]line 8.000 * 68.80 [08:32:16]line = 550.40 [08:32:16]line НДС 12% НСП 1% [08:32:16]line > о реализуемом товаре [08:32:16]line ОКРУГЛЕНИЕ: -0.40 [08:32:16]line ИТОГО: 550.00 [08:32:16]line Внесено: 550.00 [08:32:16]line СДАЧА: 0.00 [08:32:16]line НСП 1% : 4.87 [08:32:16]line НДС 12% : 58.45 [08:32:16]line Наличными: 550.00 [08:32:16]line Безнал.: 0.00 [08:32:16]line Место: АЗС № 136 "Партнер Нефть" [08:32:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:32:16]line СНО: Общий режим [08:32:16]line Чек 31 20.08.2024 08:32 [08:32:16]line Смена: 453 ФФД: 1.0 [08:32:16]line ЗНМ: 0300000067 [08:32:16]line РНМ: 0000000000092569 [08:32:16]line Версия ККМ: 001 [08:32:16]line ФМ: 0000000000871776 [08:32:16]line ФД: 139559 [08:32:16]line ФПД: 47446174274380 [08:32:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083217&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139559&fm=47446174274380&tin=02508201610067®Number=0000000000092569&sum=55000 [08:32:16]OFD Sender: Processing packet 139559 [packets to send 137, broken 136] [08:32:16]ProducePacketName [08:32:16]name=ofd_packets/00139559 [08:32:16]OFD Sender: To server: pG, [08:32:16]CommunicateWithHost lk.salyk.kg:30040 [08:32:16]ConnectInit lk.salyk.kg [08:32:16]written 0, free lines is 4095 [08:32:16]Connected sock=10 [08:32:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 07 EA 00 01 3D 39 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 91 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 21 02 00 35 04 06 00 2B 26 EC 5D 13 4C D5 09 B8 E3 FA CD 91 74 [08:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 CA 5B 47 00 12 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 21 02 00 F4 03 04 00 24 FB C3 66 B6 04 01 00 00 0C 79 8A E8 7D 2E FC 18 [08:32:16]CommunicateWithHost err = 0 [08:32:16]CheckOFDResponse [08:32:16]1017 (14) - 77093643461234 [08:32:16]1041 (16) - 0000000000871776 [08:32:16]1040 (4) - 139559 [08:32:16]1012 (4) - 20.08.2024 02:10 [08:32:16]1206 (1) - 0 [08:32:16]OFD Sender: Remove packet 139559 [08:32:16]ProducePacketName [08:32:16]name=ofd_packets/00139559 [08:32:16]NVStorageDeleteData [08:32:16]Write to MH i2c: 01 00 00 54 15 69 [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: 01 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: 01 07 00 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: 01 07 00 54 15 00 00 00 00 00 D2 0C 4E [08:32:16]RasterBufferAndPrint [08:32:16]line [08:32:16]line [08:32:16]line [08:32:16]line [08:32:16]line [08:32:16]written 0, free lines is 3290 [08:32:16]MH_Cut [08:32:16]Write to MH i2c: D1 01 00 5B 15 01 42 [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: D1 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: D1 01 00 [08:32:16]MH_I2C_Read... [08:32:16]Read from MH i2c: D1 01 00 5B 15 00 41 [08:32:16]Write to MH i2c: 01 00 00 5C 15 71 [08:32:16]Write i2c OK [08:32:16]MH_I2C_Read... [08:32:17]OFD Sender: No OFD packet to send [08:32:17]*** Cut start [08:32:17]*** Partial cut [08:32:17]*** CUTSNS_PIN = 1 [08:32:17]*** CUTSNS_PIN = 0 [08:32:17]*** Brake cut motor [08:32:18]Read from MH i2c: 01 [08:32:18]MH_I2C_Read... [08:32:18]*** Stop cut motor [08:32:18]*** Cut end [08:32:18]Read from MH i2c: 01 07 00 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: 01 07 00 5C 15 00 00 00 00 00 FF 0F 86 [08:32:18]process_action close_receipt done [08:32:18]requested_data is exist [08:32:18]produce_requested_data [08:32:18]requested_item fm.sn is exist - process it [08:32:18]wFMCommunicate request_size=4 [08:32:18]MH_SAM_APDU [08:32:18]CAPDU: 80 11 00 00 [08:32:18]Write to MH i2c: E2 08 00 5D 15 80 11 00 00 00 00 00 00 EC [08:32:18]Write i2c OK [08:32:18]MH_I2C_Read... [08:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:18]Read from MH i2c: E2 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: E2 17 00 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: E2 17 00 5D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [08:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:32:18]wFMCommunicate OK [08:32:18]requested_item fd.num is exist - process it [08:32:18]SAM_PROTO_GetFieldsCounters [08:32:18]wFMCommunicate request_size=4 [08:32:18]MH_SAM_APDU [08:32:18]CAPDU: 80 13 00 00 [08:32:18]Write to MH i2c: E2 08 00 5E 15 80 13 00 00 00 00 00 00 EF [08:32:18]Write i2c OK [08:32:18]MH_I2C_Read... [08:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:18]Read from MH i2c: E2 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: E2 62 00 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: E2 62 00 5E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 27 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [08:32:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 27 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:18]wFMCommunicate OK [08:32:18]SAM_PROTO_GetFieldsCounters done [08:32:18]requested_item shift.num is exist - process it [08:32:18]requested_item shift.opened is exist - process it [08:32:18]req_shift_opened [08:32:18]FM_GetShiftState [08:32:18]SAM_PROTO_GetShiftState [08:32:18]wFMCommunicate request_size=4 [08:32:18]MH_SAM_APDU [08:32:18]CAPDU: 80 13 01 00 [08:32:18]Write to MH i2c: E2 08 00 5F 15 80 13 01 00 00 00 00 00 F1 [08:32:18]Write i2c OK [08:32:18]MH_I2C_Read... [08:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:18]Read from MH i2c: E2 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: E2 0E 00 [08:32:18]MH_I2C_Read... [08:32:18]Read from MH i2c: E2 0E 00 5F 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 82 [08:32:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:32:18]wFMCommunicate OK [08:32:18]SAM_PROTO_GetShiftState done [08:32:18]FM_GetShiftState done [08:32:18]req_shift_opened done [08:32:18]requested_item shift.open_date is exist - process it [08:32:18]req_shift_open_date [08:32:18]req_shift_open_date done [08:32:18]produce_requested_data done [08:32:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139559,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:32:18]process_action_free close_receipt [08:32:18]json_value_free [08:32:18]json_value_free done [08:32:18]process_json_proto returns [08:32:18]Send response to host [08:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139559,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:32:18]free response buf [08:32:18]execute_script done [08:32:18]execute_script returns [08:32:18]free content buf [08:32:18]Sock 9.Close socket [08:32:18]Sock 9.Thread stoped [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:32:57]int [08:32:57]Write to MH i2c: 01 00 00 60 15 75 [08:32:57]*** FLAG_PRN_KEY set [08:32:57]Write i2c OK [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: 01 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: 01 07 00 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: 01 07 00 60 15 00 08 00 00 00 FF 0F 92 [08:32:57]state=0 [08:32:57]Key pressed [08:32:57]Feed [08:32:57]Write to MH i2c: D8 00 00 61 15 4D [08:32:57]Write i2c OK [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: D8 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: D8 01 00 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: D8 01 00 61 15 00 4E [08:32:57]int [08:32:57]Write to MH i2c: 01 00 00 62 15 77 [08:32:57]Write i2c OK [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: 01 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: 01 07 00 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: 01 07 00 62 15 00 48 00 00 00 3C 00 02 [08:32:57]state=2 [08:32:57]Key pressed [08:32:57]int [08:32:57]Write to MH i2c: 01 00 00 63 15 78 [08:32:57]*** FLAG_PRN_KEY reset [08:32:57]Write i2c OK [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: 01 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: 01 07 00 [08:32:57]MH_I2C_Read... [08:32:57]Read from MH i2c: 01 07 00 63 15 00 00 00 00 00 F6 0F 84 [08:32:57]state=2 [08:32:57]Stop feed [08:33:02]OFD Sender: No OFD packet to send [08:33:06]accept exits with 7 [08:33:06]New connection [08:33:06]New thread 3067215204 created [08:33:06]Thread 3067071844 joined [08:33:06]Waiting for new connection... [08:33:06] Sock 7.Parse request [08:33:06]Sock 7.Check first char [08:33:06]Sock 7.First char is OK [08:33:06]request: POST /json_proto HTTP/1.0 [08:33:06]Method: POST [08:33:06]URL: /json_proto [08:33:06]Method is POST - this is cgi request [08:33:06]url: /json_proto [08:33:06]query_string will be loaded in cgi processing [08:33:06]execute_cgi json_proto POST (null) [08:33:06]execute_cgi path=json_proto method=POST [08:33:06]POST find Content-Length [08:33:06]Host: 172.17.45.67:8080 [08:33:06]Content-Length: 834 [08:33:06]Content-Type: application/json [08:33:06] [08:33:06]POST finish read [08:33:06]Found Content-Length = 834 [08:33:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:06]execute_script... [08:33: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)593402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:06]POST & json_proto [08:33:06]process_json_proto [08:33:06]json parsed OK: [08:33:06]protocol is kg_v1.0 [08:33:06]action value=close_receipt [08:33:06]process_action close_receipt [08:33:06]cmd_close_receipt [08:33:06]MH_GetDate [08:33:06]Write to MH i2c: F0 00 00 64 15 68 [08:33:06]Write i2c OK [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: F0 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: F0 09 00 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: F0 09 00 64 15 00 C5 54 C4 66 5F 7F 2B 66 23 [08:33:06]GetLastDocTimeStamp 1724142737 [08:33:06]current date 1724142789 [08:33:06]FM_GetShiftState [08:33:06]SAM_PROTO_GetShiftState [08:33:06]wFMCommunicate request_size=4 [08:33:06]MH_SAM_APDU [08:33:06]CAPDU: 80 13 01 00 [08:33:06]Write to MH i2c: E2 08 00 65 15 80 13 01 00 00 00 00 00 F7 [08:33:06]Write i2c OK [08:33:06]MH_I2C_Read... [08:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:06]Read from MH i2c: E2 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: E2 0E 00 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: E2 0E 00 65 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 88 [08:33:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:33:06]wFMCommunicate OK [08:33:06]SAM_PROTO_GetShiftState done [08:33:06]FM_GetShiftState done [08:33:06]opened in 1724113785 [08:33:06]opened+sec_in_day 1724200185 [08:33:06]quantity*price = 50036 [08:33:06]sum+1 = 50037 [08:33:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 32 20.08.2024 08:33 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139560 ФПД: 107860920079334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083309&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139560&fm=107860920079334&tin=02508201610067®Number=0000000000092569&sum=50000 [08:33:07]StoreToDocumentArchive [08:33:07]shift 453 fd 139560 [08:33:07]save to /storage/0453/doc_00139560 [08:33:07]save last doc name /storage/0453/doc_00139560 to /storage/kkm_last_doc_name [08:33:07]save OK [08:33:07]Clear old archive folders... [08:33:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:07]tlvbuf is 00D75340 [08:33:07]SAM_PROTO_ClearQueue [08:33:07]wFMCommunicate request_size=4 [08:33:07]MH_SAM_APDU [08:33:07]CAPDU: 80 09 00 00 [08:33:07]Write to MH i2c: E2 08 00 72 15 80 09 00 00 00 00 00 00 F9 [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 [08:33:07]MH_I2C_Read... [08:33:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:07]Read from MH i2c: E2 03 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [08:33:07]RAPDU: 90 00 [08:33:07]wFMCommunicate OK [08:33:07]SAM_PROTO_ClearQueue done [08:33:07]KKMCreateOFDPacket [08:33:07]OFDProtocolAddRootSTLVToBuf [08:33:07]FM_MakeSignedData [08:33:07]FM_MakeSignedData [08:33:07]SAM_PROTO_SignData [08:33:07]wFMCommunicate request_size=4 [08:33:07]MH_SAM_APDU [08:33:07]CAPDU: 80 0D 01 02 [08:33:07]Write to MH i2c: E2 08 00 73 15 80 0D 01 02 00 00 00 00 01 [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:07]Read from MH i2c: E2 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 03 00 [08:33:07]MH_I2C_Read... [08:33:07]Read from MH i2c: E2 03 00 73 15 00 90 00 FC [08:33:07]RAPDU: 90 00 [08:33:07]wFMCommunicate OK [08:33:07]wFMCommunicate request_size=255 [08:33:07]MH_SAM_APDU [08:33:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C5 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 21 02 00 35 04 06 00 62 [08:33:07]Write to MH i2c: E2 02 01 74 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C5 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 21 02 00 35 04 06 00 62 00 00 60 [08:33:07]Write i2c OK [08:33:07]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [08:33:08]RAPDU: 90 00 [08:33:08]wFMCommunicate OK [08:33:08]wFMCommunicate request_size=10 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 0D 02 02 05 19 53 D3 93 E6 [08:33:08]Write to MH i2c: E2 0D 00 75 15 80 0D 02 02 05 00 19 53 D3 93 E6 00 00 C6 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 03 00 75 15 00 90 00 FE [08:33:08]RAPDU: 90 00 [08:33:08]wFMCommunicate OK [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 0D 03 02 [08:33:08]Write to MH i2c: E2 08 00 76 15 80 0D 03 02 00 00 00 00 06 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0B 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0B 00 76 15 00 ED 4E 42 65 54 CA 47 EF 90 00 3D [08:33:08]RAPDU: ED 4E 42 65 54 CA 47 EF 90 00 [08:33:08]wFMCommunicate OK [08:33:08]SAM_PROTO_SignData done [08:33:08]FM_MakeSignedData done [08:33:08]CreateOFDProtocolMessage [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 11 00 00 [08:33:08]Write to MH i2c: E2 08 00 77 15 80 11 00 00 00 00 00 00 06 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 17 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 17 00 77 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5D [08:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:33:08]wFMCommunicate OK [08:33:08]CreateOFDProtocolMessage done [08:33:08]OFDSenderStorePacket 139560 [08:33:08]StoreOFDPacket docnum=139560 [08:33:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 63 86 07 01 88 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C5 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 21 02 00 35 04 06 00 62 19 53 D3 93 E6 ED 4E 42 65 54 CA 47 EF [08:33:08]CheckFolder [08:33:08]dirname=/storage/ofd_packets [08:33:08]CheckFolder done [08:33:08]ProducePacketName [08:33:08]name=ofd_packets/00139560 [08:33:08]NVStorageSaveData ofd_packets/00139560 [08:33:08]File name is /storage/ofd_packets/00139560 [08:33:08]Write 301 bytes [08:33:08]NVStorageSaveData done [08:33:08]OFDSenderStorePacket done [08:33:08]KKMCreateOFDPacket done [08:33:08]NVStorageSaveData kkm_last_timestamp [08:33:08]File name is /storage/kkm_last_timestamp [08:33:08]Write 4 bytes [08:33:08]NVStorageSaveData done [08:33:08]ExternCall_PrintAddStr [08:33:08]wPrintStart [08:33:08]Write to MH i2c: 01 00 00 78 15 8D [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: 01 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: 01 07 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: 01 07 00 78 15 00 00 00 00 00 FF 0F A2 [08:33:08]RasterBufferAndPrint [08:33:08]line Счет N : (1)593402 [08:33:08]line ИНН: 02508201610067 [08:33:08]line Контрольно-Кассовый Чек [08:33:08]line ПРОДАЖА [08:33:08]line ТРК (МРК, ГНК) : 32 [08:33:08]line Товар: 2710124130 [08:33:08]line Аи-92-К-5 [08:33:08]line 7.380 * 67.80 [08:33:08]line = 500.36 [08:33:08]line НДС 12% НСП 1% [08:33:08]line > о реализуемом товаре [08:33:08]line ОКРУГЛЕНИЕ: -0.36 [08:33:08]line ИТОГО: 500.00 [08:33:08]line НСП 1% : 4.43 [08:33:08]line НДС 12% : 53.14 [08:33:08]line Наличными: 0.00 [08:33:08]line Безнал.: 500.00 [08:33:08]line Место: АЗС № 136 "Партнер Нефть" [08:33:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:33:08]line СНО: Общий режим [08:33:08]line Чек 32 20.08.2024 08:33 [08:33:08]line Смена: 453 ФФД: 1.0 [08:33:08]line ЗНМ: 0300000067 [08:33:08]line РНМ: 0000000000092569 [08:33:08]line Версия ККМ: 001 [08:33:08]line Платежная система: Бакай Банк [08:33:08]line ФМ: 0000000000871776 [08:33:08]line ФД: 139560 [08:33:08]line ФПД: 107860920079334 [08:33:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083309&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139560&fm=107860920079334&tin=02508201610067®Number=0000000000092569&sum=50000 [08:33:08]OFD Sender: Processing packet 139560 [packets to send 137, broken 136] [08:33:08]ProducePacketName [08:33:08]name=ofd_packets/00139560 [08:33:08]OFD Sender: To server: pG, [08:33:08]CommunicateWithHost lk.salyk.kg:30040 [08:33:08]ConnectInit lk.salyk.kg [08:33:08]written 0, free lines is 4095 [08:33:08]Connected sock=10 [08:33:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 63 86 07 01 88 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C5 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 21 02 00 35 04 06 00 62 19 53 D3 93 E6 ED 4E 42 65 54 CA 47 EF [08:33:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 34 3A 47 00 C9 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 21 02 00 F4 03 04 00 59 FB C3 66 B6 04 01 00 00 66 21 11 3D E2 BD DE AB [08:33:09]CommunicateWithHost err = 0 [08:33:09]CheckOFDResponse [08:33:09]1017 (14) - 77093643461234 [08:33:09]1041 (16) - 0000000000871776 [08:33:09]1040 (4) - 139560 [08:33:09]1012 (4) - 20.08.2024 02:11 [08:33:09]1206 (1) - 0 [08:33:09]OFD Sender: Remove packet 139560 [08:33:09]ProducePacketName [08:33:09]name=ofd_packets/00139560 [08:33:09]NVStorageDeleteData [08:33:09]Write to MH i2c: 01 00 00 A3 15 B8 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: 01 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: 01 07 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: 01 07 00 A3 15 00 00 00 00 00 D6 0C A1 [08:33:09]RasterBufferAndPrint [08:33:09]line [08:33:09]line [08:33:09]line [08:33:09]line [08:33:09]line [08:33:09]written 0, free lines is 3293 [08:33:09]MH_Cut [08:33:09]Write to MH i2c: D1 01 00 AA 15 01 91 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: D1 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: D1 01 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: D1 01 00 AA 15 00 90 [08:33:09]Write to MH i2c: 01 00 00 AB 15 C0 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]OFD Sender: No OFD packet to send [08:33:09]*** Cut start [08:33:09]*** Partial cut [08:33:09]*** CUTSNS_PIN = 1 [08:33:10]*** CUTSNS_PIN = 0 [08:33:10]*** Brake cut motor [08:33:10]Read from MH i2c: 01 [08:33:10]MH_I2C_Read... [08:33:10]*** Stop cut motor [08:33:10]*** Cut end [08:33:10]Read from MH i2c: 01 07 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 FF 0F D5 [08:33:10]process_action close_receipt done [08:33:10]requested_data is exist [08:33:10]produce_requested_data [08:33:10]requested_item fm.sn is exist - process it [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 11 00 00 [08:33:10]Write to MH i2c: E2 08 00 AC 15 80 11 00 00 00 00 00 00 3B [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 17 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 17 00 AC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 92 [08:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:33:10]wFMCommunicate OK [08:33:10]requested_item fd.num is exist - process it [08:33:10]SAM_PROTO_GetFieldsCounters [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 13 00 00 [08:33:10]Write to MH i2c: E2 08 00 AD 15 80 13 00 00 00 00 00 00 3E [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 62 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 62 00 AD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 28 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [08:33:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 28 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:10]wFMCommunicate OK [08:33:10]SAM_PROTO_GetFieldsCounters done [08:33:10]requested_item shift.num is exist - process it [08:33:10]requested_item shift.opened is exist - process it [08:33:10]req_shift_opened [08:33:10]FM_GetShiftState [08:33:10]SAM_PROTO_GetShiftState [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 13 01 00 [08:33:10]Write to MH i2c: E2 08 00 AE 15 80 13 01 00 00 00 00 00 40 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 0E 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 0E 00 AE 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D1 [08:33:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:33:10]wFMCommunicate OK [08:33:10]SAM_PROTO_GetShiftState done [08:33:10]FM_GetShiftState done [08:33:10]req_shift_opened done [08:33:10]requested_item shift.open_date is exist - process it [08:33:10]req_shift_open_date [08:33:10]req_shift_open_date done [08:33:10]produce_requested_data done [08:33:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139560,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:33:10]process_action_free close_receipt [08:33:10]json_value_free [08:33:10]json_value_free done [08:33:10]process_json_proto returns [08:33:10]Send response to host [08:33:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139560,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:33:10]free response buf [08:33:10]execute_script done [08:33:10]execute_script returns [08:33:10]free content buf [08:33:10]Sock 7.Close socket [08:33:10]Sock 7.Thread stoped [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:26]accept exits with 9 [08:33:26]New connection [08:33:26]New thread 3067071844 created [08:33:26]Thread 3067215204 joined [08:33:26]Waiting for new connection... [08:33:26] Sock 9.Parse request [08:33:26]Sock 9.Check first char [08:33:26]Sock 9.First char is OK [08:33:26]request: POST /json_proto HTTP/1.0 [08:33:26]Method: POST [08:33:26]URL: /json_proto [08:33:26]Method is POST - this is cgi request [08:33:26]url: /json_proto [08:33:26]query_string will be loaded in cgi processing [08:33:26]execute_cgi json_proto POST (null) [08:33:26]execute_cgi path=json_proto method=POST [08:33:26]POST find Content-Length [08:33:26]Host: 172.17.45.67:8080 [08:33:26]Content-Length: 677 [08:33:26]Content-Type: application/json [08:33:26] [08:33:26]POST finish read [08:33:26]Found Content-Length = 677 [08:33:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:26]execute_script... [08:33: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)593403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:26]POST & json_proto [08:33:26]process_json_proto [08:33:26]json parsed OK: [08:33:26]protocol is kg_v1.0 [08:33:26]action value=close_receipt [08:33:26]process_action close_receipt [08:33:26]cmd_close_receipt [08:33:26]MH_GetDate [08:33:26]Write to MH i2c: F0 00 00 AF 15 B3 [08:33:26]Write i2c OK [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: F0 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: F0 09 00 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: F0 09 00 AF 15 00 D9 54 C4 66 5F 7F 2B 66 82 [08:33:26]GetLastDocTimeStamp 1724142789 [08:33:26]current date 1724142809 [08:33:26]FM_GetShiftState [08:33:26]SAM_PROTO_GetShiftState [08:33:26]wFMCommunicate request_size=4 [08:33:26]MH_SAM_APDU [08:33:26]CAPDU: 80 13 01 00 [08:33:26]Write to MH i2c: E2 08 00 B0 15 80 13 01 00 00 00 00 00 42 [08:33:26]Write i2c OK [08:33:26]MH_I2C_Read... [08:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:26]Read from MH i2c: E2 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: E2 0E 00 [08:33:26]MH_I2C_Read... [08:33:26]Read from MH i2c: E2 0E 00 B0 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D3 [08:33:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:33:26]wFMCommunicate OK [08:33:26]SAM_PROTO_GetShiftState done [08:33:26]FM_GetShiftState done [08:33:26]opened in 1724113785 [08:33:26]opened+sec_in_day 1724200185 [08:33:26]quantity*price = 30035 [08:33:26]sum+1 = 30036 [08:33:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 33 20.08.2024 08:33 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139561 ФПД: 106338919862667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083329&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139561&fm=106338919862667&tin=02508201610067®Number=0000000000092569&sum=30000 [08:33:27]StoreToDocumentArchive [08:33:27]shift 453 fd 139561 [08:33:27]save to /storage/0453/doc_00139561 [08:33:27]save last doc name /storage/0453/doc_00139561 to /storage/kkm_last_doc_name [08:33:27]save OK [08:33:27]Clear old archive folders... [08:33:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:27]tlvbuf is B6F98A80 [08:33:27]SAM_PROTO_ClearQueue [08:33:27]wFMCommunicate request_size=4 [08:33:27]MH_SAM_APDU [08:33:27]CAPDU: 80 09 00 00 [08:33:27]Write to MH i2c: E2 08 00 BD 15 80 09 00 00 00 00 00 00 44 [08:33:27]Write i2c OK [08:33:27]MH_I2C_Read... [08:33:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:27]Read from MH i2c: E2 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 03 00 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [08:33:27]RAPDU: 90 00 [08:33:27]wFMCommunicate OK [08:33:27]SAM_PROTO_ClearQueue done [08:33:27]KKMCreateOFDPacket [08:33:27]OFDProtocolAddRootSTLVToBuf [08:33:27]FM_MakeSignedData [08:33:27]FM_MakeSignedData [08:33:27]SAM_PROTO_SignData [08:33:27]wFMCommunicate request_size=4 [08:33:27]MH_SAM_APDU [08:33:27]CAPDU: 80 0D 01 02 [08:33:27]Write to MH i2c: E2 08 00 BE 15 80 0D 01 02 00 00 00 00 4C [08:33:27]Write i2c OK [08:33:27]MH_I2C_Read... [08:33:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:27]Read from MH i2c: E2 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 03 00 [08:33:27]MH_I2C_Read... [08:33:27]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [08:33:27]RAPDU: 90 00 [08:33:27]wFMCommunicate OK [08:33:27]wFMCommunicate request_size=255 [08:33:27]MH_SAM_APDU [08:33:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D9 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 21 02 00 35 04 06 00 60 [08:33:27]Write to MH i2c: E2 02 01 BF 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D9 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 21 02 00 35 04 06 00 60 00 00 DE [08:33:27]Write i2c OK [08:33:27]MH_I2C_Read... [08:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:28]Read from MH i2c: E2 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 03 00 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [08:33:28]RAPDU: 90 00 [08:33:28]wFMCommunicate OK [08:33:28]wFMCommunicate request_size=10 [08:33:28]MH_SAM_APDU [08:33:28]CAPDU: 80 0D 02 02 05 B6 F5 8B 51 8B [08:33:28]Write to MH i2c: E2 0D 00 C0 15 80 0D 02 02 05 00 B6 F5 8B 51 8B 00 00 6B [08:33:28]Write i2c OK [08:33:28]MH_I2C_Read... [08:33:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:28]Read from MH i2c: E2 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 03 00 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 03 00 C0 15 00 90 00 49 [08:33:28]RAPDU: 90 00 [08:33:28]wFMCommunicate OK [08:33:28]wFMCommunicate request_size=4 [08:33:28]MH_SAM_APDU [08:33:28]CAPDU: 80 0D 03 02 [08:33:28]Write to MH i2c: E2 08 00 C1 15 80 0D 03 02 00 00 00 00 51 [08:33:28]Write i2c OK [08:33:28]MH_I2C_Read... [08:33:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:28]Read from MH i2c: E2 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 0B 00 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 0B 00 C1 15 00 BD 6E F5 09 D0 3B 7B 21 90 00 22 [08:33:28]RAPDU: BD 6E F5 09 D0 3B 7B 21 90 00 [08:33:28]wFMCommunicate OK [08:33:28]SAM_PROTO_SignData done [08:33:28]FM_MakeSignedData done [08:33:28]CreateOFDProtocolMessage [08:33:28]wFMCommunicate request_size=4 [08:33:28]MH_SAM_APDU [08:33:28]CAPDU: 80 11 00 00 [08:33:28]Write to MH i2c: E2 08 00 C2 15 80 11 00 00 00 00 00 00 51 [08:33:28]Write i2c OK [08:33:28]MH_I2C_Read... [08:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:28]Read from MH i2c: E2 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 17 00 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: E2 17 00 C2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A8 [08:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:33:28]wFMCommunicate OK [08:33:28]CreateOFDProtocolMessage done [08:33:28]OFDSenderStorePacket 139561 [08:33:28]StoreOFDPacket docnum=139561 [08:33:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8B AB 07 01 16 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D9 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 21 02 00 35 04 06 00 60 B6 F5 8B 51 8B BD 6E F5 09 D0 3B 7B 21 [08:33:28]CheckFolder [08:33:28]dirname=/storage/ofd_packets [08:33:28]CheckFolder done [08:33:28]ProducePacketName [08:33:28]name=ofd_packets/00139561 [08:33:28]NVStorageSaveData ofd_packets/00139561 [08:33:28]File name is /storage/ofd_packets/00139561 [08:33:28]Write 301 bytes [08:33:28]NVStorageSaveData done [08:33:28]OFDSenderStorePacket done [08:33:28]KKMCreateOFDPacket done [08:33:28]NVStorageSaveData kkm_last_timestamp [08:33:28]File name is /storage/kkm_last_timestamp [08:33:28]Write 4 bytes [08:33:28]NVStorageSaveData done [08:33:28]ExternCall_PrintAddStr [08:33:28]wPrintStart [08:33:28]Write to MH i2c: 01 00 00 C3 15 D8 [08:33:28]Write i2c OK [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: 01 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: 01 07 00 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: 01 07 00 C3 15 00 00 00 00 00 FF 0F ED [08:33:28]RasterBufferAndPrint [08:33:28]line Счет N : (1)593403 [08:33:28]line ИНН: 02508201610067 [08:33:28]line Контрольно-Кассовый Чек [08:33:28]line ПРОДАЖА [08:33:28]line ТРК (МРК, ГНК) : 52 [08:33:28]line Товар: 2710124130 [08:33:28]line Аи-92-К-5 [08:33:28]line 4.430 * 67.80 [08:33:28]line = 300.35 [08:33:28]line НДС 12% НСП 1% [08:33:28]line > о реализуемом товаре [08:33:28]line ОКРУГЛЕНИЕ: -0.35 [08:33:28]line ИТОГО: 300.00 [08:33:28]line Внесено: 300.00 [08:33:28]line СДАЧА: 0.00 [08:33:28]line НСП 1% : 2.66 [08:33:28]line НДС 12% : 31.90 [08:33:28]line Наличными: 300.00 [08:33:28]line Безнал.: 0.00 [08:33:28]line Место: АЗС № 136 "Партнер Нефть" [08:33:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:33:28]line СНО: Общий режим [08:33:28]line Чек 33 20.08.2024 08:33 [08:33:28]line Смена: 453 ФФД: 1.0 [08:33:28]line ЗНМ: 0300000067 [08:33:28]line РНМ: 0000000000092569 [08:33:28]line Версия ККМ: 001 [08:33:28]line ФМ: 0000000000871776 [08:33:28]line ФД: 139561 [08:33:28]line ФПД: 106338919862667 [08:33:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083329&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139561&fm=106338919862667&tin=02508201610067®Number=0000000000092569&sum=30000 [08:33:28]written 0, free lines is 4095 [08:33:28]OFD Sender: Processing packet 139561 [packets to send 137, broken 136] [08:33:28]ProducePacketName [08:33:28]name=ofd_packets/00139561 [08:33:28]OFD Sender: To server: pG, [08:33:28]CommunicateWithHost lk.salyk.kg:30040 [08:33:28]ConnectInit lk.salyk.kg [08:33:28]Connected sock=10 [08:33:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8B AB 07 01 16 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D9 54 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 21 02 00 35 04 06 00 60 B6 F5 8B 51 8B BD 6E F5 09 D0 3B 7B 21 [08:33:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 81 70 47 00 31 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 21 02 00 F4 03 04 00 6D FB C3 66 B6 04 01 00 00 DC D2 5B 82 FE E4 20 2E [08:33:28]CommunicateWithHost err = 0 [08:33:28]CheckOFDResponse [08:33:28]1017 (14) - 77093643461234 [08:33:28]1041 (16) - 0000000000871776 [08:33:28]1040 (4) - 139561 [08:33:28]1012 (4) - 20.08.2024 02:11 [08:33:28]1206 (1) - 0 [08:33:28]OFD Sender: Remove packet 139561 [08:33:28]ProducePacketName [08:33:28]name=ofd_packets/00139561 [08:33:28]NVStorageDeleteData [08:33:28]Write to MH i2c: 01 00 00 EE 15 03 [08:33:28]Write i2c OK [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: 01 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: 01 07 00 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: 01 07 00 EE 15 00 00 00 00 00 D1 0C E7 [08:33:28]RasterBufferAndPrint [08:33:28]line [08:33:28]line [08:33:28]line [08:33:28]line [08:33:28]line [08:33:28]written 0, free lines is 3287 [08:33:28]MH_Cut [08:33:28]Write to MH i2c: D1 01 00 F5 15 01 DC [08:33:28]Write i2c OK [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: D1 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: D1 01 00 [08:33:28]MH_I2C_Read... [08:33:28]Read from MH i2c: D1 01 00 F5 15 00 DB [08:33:28]Write to MH i2c: 01 00 00 F6 15 0B [08:33:28]Write i2c OK [08:33:28]MH_I2C_Read... [08:33:29]OFD Sender: No OFD packet to send [08:33:29]*** Cut start [08:33:29]*** Partial cut [08:33:29]*** CUTSNS_PIN = 1 [08:33:29]*** CUTSNS_PIN = 0 [08:33:29]*** Brake cut motor [08:33:30]Read from MH i2c: 01 [08:33:30]MH_I2C_Read... [08:33:30]*** Stop cut motor [08:33:30]*** Cut end [08:33:30]Read from MH i2c: 01 07 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: 01 07 00 F6 15 00 00 00 00 00 FF 0F 20 [08:33:30]process_action close_receipt done [08:33:30]requested_data is exist [08:33:30]produce_requested_data [08:33:30]requested_item fm.sn is exist - process it [08:33:30]wFMCommunicate request_size=4 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 11 00 00 [08:33:30]Write to MH i2c: E2 08 00 F7 15 80 11 00 00 00 00 00 00 86 [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 17 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 17 00 F7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DD [08:33:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:33:30]wFMCommunicate OK [08:33:30]requested_item fd.num is exist - process it [08:33:30]SAM_PROTO_GetFieldsCounters [08:33:30]wFMCommunicate request_size=4 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 13 00 00 [08:33:30]Write to MH i2c: E2 08 00 F8 15 80 13 00 00 00 00 00 00 89 [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 62 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 62 00 F8 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 29 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [08:33:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 29 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:30]wFMCommunicate OK [08:33:30]SAM_PROTO_GetFieldsCounters done [08:33:30]requested_item shift.num is exist - process it [08:33:30]requested_item shift.opened is exist - process it [08:33:30]req_shift_opened [08:33:30]FM_GetShiftState [08:33:30]SAM_PROTO_GetShiftState [08:33:30]wFMCommunicate request_size=4 [08:33:30]MH_SAM_APDU [08:33:30]CAPDU: 80 13 01 00 [08:33:30]Write to MH i2c: E2 08 00 F9 15 80 13 01 00 00 00 00 00 8B [08:33:30]Write i2c OK [08:33:30]MH_I2C_Read... [08:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:30]Read from MH i2c: E2 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 0E 00 [08:33:30]MH_I2C_Read... [08:33:30]Read from MH i2c: E2 0E 00 F9 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1C [08:33:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:33:30]wFMCommunicate OK [08:33:30]SAM_PROTO_GetShiftState done [08:33:30]FM_GetShiftState done [08:33:30]req_shift_opened done [08:33:30]requested_item shift.open_date is exist - process it [08:33:30]req_shift_open_date [08:33:30]req_shift_open_date done [08:33:30]produce_requested_data done [08:33:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139561,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:33:30]process_action_free close_receipt [08:33:30]json_value_free [08:33:30]json_value_free done [08:33:30]process_json_proto returns [08:33:30]Send response to host [08:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139561,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:33:30]free response buf [08:33:30]execute_script done [08:33:30]execute_script returns [08:33:30]free content buf [08:33:30]Sock 9.Close socket [08:33:30]Sock 9.Thread stoped [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:52]accept exits with 7 [08:35:52]New connection [08:35:52]New thread 3067215204 created [08:35:52]Thread 3067071844 joined [08:35:52]Waiting for new connection... [08:35:52] Sock 7.Parse request [08:35:52]Sock 7.Check first char [08:35:52]Sock 7.First char is OK [08:35:52]request: POST /json_proto HTTP/1.0 [08:35:52]Method: POST [08:35:52]URL: /json_proto [08:35:52]Method is POST - this is cgi request [08:35:52]url: /json_proto [08:35:52]query_string will be loaded in cgi processing [08:35:52]execute_cgi json_proto POST (null) [08:35:52]execute_cgi path=json_proto method=POST [08:35:52]POST find Content-Length [08:35:52]Host: 172.17.45.67:8080 [08:35:52]Content-Length: 687 [08:35:52]Content-Type: application/json [08:35:52] [08:35:52]POST finish read [08:35:52]Found Content-Length = 687 [08:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:52]execute_script... [08:35: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)593404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:52]POST & json_proto [08:35:52]process_json_proto [08:35:52]json parsed OK: [08:35:52]protocol is kg_v1.0 [08:35:52]action value=close_receipt [08:35:52]process_action close_receipt [08:35:52]cmd_close_receipt [08:35:52]MH_GetDate [08:35:52]Write to MH i2c: F0 00 00 FA 15 FE [08:35:52]Write i2c OK [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: F0 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: F0 09 00 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: F0 09 00 FA 15 00 6B 55 C4 66 5F 7F 2B 66 60 [08:35:52]GetLastDocTimeStamp 1724142809 [08:35:52]current date 1724142955 [08:35:52]FM_GetShiftState [08:35:52]SAM_PROTO_GetShiftState [08:35:52]wFMCommunicate request_size=4 [08:35:52]MH_SAM_APDU [08:35:52]CAPDU: 80 13 01 00 [08:35:52]Write to MH i2c: E2 08 00 FB 15 80 13 01 00 00 00 00 00 8D [08:35:52]Write i2c OK [08:35:52]MH_I2C_Read... [08:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:52]Read from MH i2c: E2 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 0E 00 [08:35:52]MH_I2C_Read... [08:35:52]Read from MH i2c: E2 0E 00 FB 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1E [08:35:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:35:52]wFMCommunicate OK [08:35:52]SAM_PROTO_GetShiftState done [08:35:52]FM_GetShiftState done [08:35:52]opened in 1724113785 [08:35:52]opened+sec_in_day 1724200185 [08:35:52]quantity*price = 100050 [08:35:52]sum+1 = 100052 [08:35:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 34 20.08.2024 08:35 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139562 ФПД: 131976404877921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139562&fm=131976404877921&tin=02508201610067®Number=0000000000092569&sum=100000 [08:35:53]StoreToDocumentArchive [08:35:53]shift 453 fd 139562 [08:35:53]save to /storage/0453/doc_00139562 [08:35:53]save last doc name /storage/0453/doc_00139562 to /storage/kkm_last_doc_name [08:35:53]save OK [08:35:53]Clear old archive folders... [08:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:35:53]tlvbuf is 00D6CA80 [08:35:53]SAM_PROTO_ClearQueue [08:35:53]wFMCommunicate request_size=4 [08:35:53]MH_SAM_APDU [08:35:53]CAPDU: 80 09 00 00 [08:35:53]Write to MH i2c: E2 08 00 08 16 80 09 00 00 00 00 00 00 90 [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:53]Read from MH i2c: E2 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 08 16 00 90 00 92 [08:35:53]RAPDU: 90 00 [08:35:53]wFMCommunicate OK [08:35:53]SAM_PROTO_ClearQueue done [08:35:53]KKMCreateOFDPacket [08:35:53]OFDProtocolAddRootSTLVToBuf [08:35:53]FM_MakeSignedData [08:35:53]FM_MakeSignedData [08:35:53]SAM_PROTO_SignData [08:35:53]wFMCommunicate request_size=4 [08:35:53]MH_SAM_APDU [08:35:53]CAPDU: 80 0D 01 02 [08:35:53]Write to MH i2c: E2 08 00 09 16 80 0D 01 02 00 00 00 00 98 [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:53]Read from MH i2c: E2 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 [08:35:53]MH_I2C_Read... [08:35:53]Read from MH i2c: E2 03 00 09 16 00 90 00 93 [08:35:53]RAPDU: 90 00 [08:35:53]wFMCommunicate OK [08:35:53]wFMCommunicate request_size=255 [08:35:53]MH_SAM_APDU [08:35:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 22 00 00 00 F4 03 04 00 6B 55 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 21 02 00 35 04 06 00 [08:35:53]Write to MH i2c: E2 02 01 0A 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 22 00 00 00 F4 03 04 00 6B 55 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 21 02 00 35 04 06 00 00 00 2E [08:35:53]Write i2c OK [08:35:53]MH_I2C_Read... [08:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:54]Read from MH i2c: E2 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 03 00 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 03 00 0A 16 00 90 00 94 [08:35:54]RAPDU: 90 00 [08:35:54]wFMCommunicate OK [08:35:54]wFMCommunicate request_size=11 [08:35:54]MH_SAM_APDU [08:35:54]CAPDU: 80 0D 02 02 06 78 08 26 BB 42 61 [08:35:54]Write to MH i2c: E2 0E 00 0B 16 80 0D 02 02 06 00 78 08 26 BB 42 61 00 00 AB [08:35:54]Write i2c OK [08:35:54]MH_I2C_Read... [08:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:54]Read from MH i2c: E2 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 03 00 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 03 00 0B 16 00 90 00 95 [08:35:54]RAPDU: 90 00 [08:35:54]wFMCommunicate OK [08:35:54]wFMCommunicate request_size=4 [08:35:54]MH_SAM_APDU [08:35:54]CAPDU: 80 0D 03 02 [08:35:54]Write to MH i2c: E2 08 00 0C 16 80 0D 03 02 00 00 00 00 9D [08:35:54]Write i2c OK [08:35:54]MH_I2C_Read... [08:35:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:54]Read from MH i2c: E2 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 0B 00 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 0B 00 0C 16 00 A2 FE CF A3 85 62 3D 37 90 00 0B [08:35:54]RAPDU: A2 FE CF A3 85 62 3D 37 90 00 [08:35:54]wFMCommunicate OK [08:35:54]SAM_PROTO_SignData done [08:35:54]FM_MakeSignedData done [08:35:54]CreateOFDProtocolMessage [08:35:54]wFMCommunicate request_size=4 [08:35:54]MH_SAM_APDU [08:35:54]CAPDU: 80 11 00 00 [08:35:54]Write to MH i2c: E2 08 00 0D 16 80 11 00 00 00 00 00 00 9D [08:35:54]Write i2c OK [08:35:54]MH_I2C_Read... [08:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:54]Read from MH i2c: E2 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 17 00 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: E2 17 00 0D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F4 [08:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:35:54]wFMCommunicate OK [08:35:54]CreateOFDProtocolMessage done [08:35:54]OFDSenderStorePacket 139562 [08:35:54]StoreOFDPacket docnum=139562 [08:35:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 6B C7 08 01 24 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 22 00 00 00 F4 03 04 00 6B 55 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 21 02 00 35 04 06 00 78 08 26 BB 42 61 A2 FE CF A3 85 62 3D 37 [08:35:54]CheckFolder [08:35:54]dirname=/storage/ofd_packets [08:35:54]CheckFolder done [08:35:54]ProducePacketName [08:35:54]name=ofd_packets/00139562 [08:35:54]NVStorageSaveData ofd_packets/00139562 [08:35:54]File name is /storage/ofd_packets/00139562 [08:35:54]Write 302 bytes [08:35:54]NVStorageSaveData done [08:35:54]OFDSenderStorePacket done [08:35:54]KKMCreateOFDPacket done [08:35:54]NVStorageSaveData kkm_last_timestamp [08:35:54]File name is /storage/kkm_last_timestamp [08:35:54]Write 4 bytes [08:35:54]NVStorageSaveData done [08:35:54]ExternCall_PrintAddStr [08:35:54]wPrintStart [08:35:54]Write to MH i2c: 01 00 00 0E 16 24 [08:35:54]Write i2c OK [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: 01 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: 01 07 00 [08:35:54]MH_I2C_Read... [08:35:54]Read from MH i2c: 01 07 00 0E 16 00 00 00 00 00 FF 0F 39 [08:35:54]RasterBufferAndPrint [08:35:54]line Счет N : (1)593404 [08:35:54]line ИНН: 02508201610067 [08:35:54]line Контрольно-Кассовый Чек [08:35:54]line ПРОДАЖА [08:35:54]line ТРК (МРК, ГНК) : 64 [08:35:54]line Товар: 2710194210 [08:35:54]line ДТ(л)-К-5 [08:35:54]line 13.130 * 76.20 [08:35:54]line = 1000.51 [08:35:54]line НДС 12% НСП 1% [08:35:54]line > о реализуемом товаре [08:35:54]line ОКРУГЛЕНИЕ: -0.51 [08:35:54]line ИТОГО: 1000.00 [08:35:54]line Внесено: 1000.00 [08:35:54]line СДАЧА: 0.00 [08:35:54]line НСП 1% : 8.85 [08:35:54]line НДС 12% : 106.25 [08:35:54]line Наличными: 1000.00 [08:35:54]line Безнал.: 0.00 [08:35:54]line Место: АЗС № 136 "Партнер Нефть" [08:35:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:35:54]line СНО: Общий режим [08:35:54]line Чек 34 20.08.2024 08:35 [08:35:54]line Смена: 453 ФФД: 1.0 [08:35:54]line ЗНМ: 0300000067 [08:35:54]line РНМ: 0000000000092569 [08:35:54]line Версия ККМ: 001 [08:35:54]line ФМ: 0000000000871776 [08:35:54]line ФД: 139562 [08:35:54]line ФПД: 131976404877921 [08:35:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139562&fm=131976404877921&tin=02508201610067®Number=0000000000092569&sum=100000 [08:35:54]OFD Sender: Processing packet 139562 [packets to send 137, broken 136] [08:35:54]ProducePacketName [08:35:54]name=ofd_packets/00139562 [08:35:54]OFD Sender: To server: pG, [08:35:54]CommunicateWithHost lk.salyk.kg:30040 [08:35:54]ConnectInit lk.salyk.kg [08:35:54]written 0, free lines is 4095 [08:35:54]Connected sock=11 [08:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 6B C7 08 01 24 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 22 00 00 00 F4 03 04 00 6B 55 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 21 02 00 35 04 06 00 78 08 26 BB 42 61 A2 FE CF A3 85 62 3D 37 [08:35:55]Write to MH i2c: 01 00 00 39 16 4F [08:35:55]Write i2c OK [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: 01 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: 01 07 00 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: 01 07 00 39 16 00 00 00 00 00 CE 0C 30 [08:35:55]RasterBufferAndPrint [08:35:55]line [08:35:55]line [08:35:55]line [08:35:55]line [08:35:55]line [08:35:55]written 0, free lines is 3283 [08:35:55]MH_Cut [08:35:55]Write to MH i2c: D1 01 00 40 16 01 28 [08:35:55]Write i2c OK [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: D1 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: D1 01 00 [08:35:55]MH_I2C_Read... [08:35:55]Read from MH i2c: D1 01 00 40 16 00 27 [08:35:55]Write to MH i2c: 01 00 00 41 16 57 [08:35:55]Write i2c OK [08:35:55]MH_I2C_Read... [08:35:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 97 18 47 00 67 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 21 02 00 F4 03 04 00 FF FB C3 66 B6 04 01 00 00 3E 13 FC 50 0E F3 90 D6 [08:35:55]CommunicateWithHost err = 0 [08:35:55]CheckOFDResponse [08:35:55]1017 (14) - 77093643461234 [08:35:55]1041 (16) - 0000000000871776 [08:35:55]1040 (4) - 139562 [08:35:55]1012 (4) - 20.08.2024 02:14 [08:35:55]1206 (1) - 0 [08:35:55]OFD Sender: Remove packet 139562 [08:35:55]ProducePacketName [08:35:55]name=ofd_packets/00139562 [08:35:55]NVStorageDeleteData [08:35:55]OFD Sender: No OFD packet to send [08:35:55]*** Cut start [08:35:55]*** Partial cut [08:35:55]*** CUTSNS_PIN = 1 [08:35:55]*** CUTSNS_PIN = 0 [08:35:56]*** Brake cut motor [08:35:56]Read from MH i2c: 01 [08:35:56]MH_I2C_Read... [08:35:56]*** Stop cut motor [08:35:56]*** Cut end [08:35:56]Read from MH i2c: 01 07 00 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: 01 07 00 41 16 00 00 00 00 00 FF 0F 6C [08:35:56]process_action close_receipt done [08:35:56]requested_data is exist [08:35:56]produce_requested_data [08:35:56]requested_item fm.sn is exist - process it [08:35:56]wFMCommunicate request_size=4 [08:35:56]MH_SAM_APDU [08:35:56]CAPDU: 80 11 00 00 [08:35:56]Write to MH i2c: E2 08 00 42 16 80 11 00 00 00 00 00 00 D2 [08:35:56]Write i2c OK [08:35:56]MH_I2C_Read... [08:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:56]Read from MH i2c: E2 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 17 00 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 17 00 42 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 29 [08:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:35:56]wFMCommunicate OK [08:35:56]requested_item fd.num is exist - process it [08:35:56]SAM_PROTO_GetFieldsCounters [08:35:56]wFMCommunicate request_size=4 [08:35:56]MH_SAM_APDU [08:35:56]CAPDU: 80 13 00 00 [08:35:56]Write to MH i2c: E2 08 00 43 16 80 13 00 00 00 00 00 00 D5 [08:35:56]Write i2c OK [08:35:56]MH_I2C_Read... [08:35:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:56]Read from MH i2c: E2 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 62 00 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 62 00 43 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [08:35:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:56]wFMCommunicate OK [08:35:56]SAM_PROTO_GetFieldsCounters done [08:35:56]requested_item shift.num is exist - process it [08:35:56]requested_item shift.opened is exist - process it [08:35:56]req_shift_opened [08:35:56]FM_GetShiftState [08:35:56]SAM_PROTO_GetShiftState [08:35:56]wFMCommunicate request_size=4 [08:35:56]MH_SAM_APDU [08:35:56]CAPDU: 80 13 01 00 [08:35:56]Write to MH i2c: E2 08 00 44 16 80 13 01 00 00 00 00 00 D7 [08:35:56]Write i2c OK [08:35:56]MH_I2C_Read... [08:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:56]Read from MH i2c: E2 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 0E 00 [08:35:56]MH_I2C_Read... [08:35:56]Read from MH i2c: E2 0E 00 44 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 68 [08:35:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:35:56]wFMCommunicate OK [08:35:56]SAM_PROTO_GetShiftState done [08:35:56]FM_GetShiftState done [08:35:56]req_shift_opened done [08:35:56]requested_item shift.open_date is exist - process it [08:35:56]req_shift_open_date [08:35:56]req_shift_open_date done [08:35:56]produce_requested_data done [08:35:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139562,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:35:56]process_action_free close_receipt [08:35:56]json_value_free [08:35:56]json_value_free done [08:35:56]process_json_proto returns [08:35:56]Send response to host [08:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139562,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:35:56]free response buf [08:35:56]execute_script done [08:35:56]execute_script returns [08:35:56]free content buf [08:35:56]Sock 7.Close socket [08:35:56]Sock 7.Thread stoped [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:44]int [08:36:44]Write to MH i2c: 01 00 00 45 16 5B [08:36:44]*** FLAG_PRN_KEY set [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: 01 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: 01 07 00 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: 01 07 00 45 16 00 08 00 00 00 FF 0F 78 [08:36:44]state=0 [08:36:44]Key pressed [08:36:44]Feed [08:36:44]Write to MH i2c: D8 00 00 46 16 33 [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: D8 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: D8 01 00 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: D8 01 00 46 16 00 34 [08:36:44]int [08:36:44]Write to MH i2c: 01 00 00 47 16 5D [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: 01 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: 01 07 00 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: 01 07 00 47 16 00 48 00 00 00 3C 00 E8 [08:36:44]state=2 [08:36:44]Key pressed [08:36:44]int [08:36:44]Write to MH i2c: 01 00 00 48 16 5E [08:36:44]*** FLAG_PRN_KEY reset [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: 01 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: 01 07 00 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: 01 07 00 48 16 00 00 00 00 00 FE 0F 72 [08:36:44]state=2 [08:36:44]Stop feed [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]accept exits with 9 [08:37:20]New connection [08:37:20]New thread 3067071844 created [08:37:20]Thread 3067215204 joined [08:37:20]Waiting for new connection... [08:37:20] Sock 9.Parse request [08:37:20]Sock 9.Check first char [08:37:20]Sock 9.First char is OK [08:37:20]request: POST /json_proto HTTP/1.0 [08:37:20]Method: POST [08:37:20]URL: /json_proto [08:37:20]Method is POST - this is cgi request [08:37:20]url: /json_proto [08:37:20]query_string will be loaded in cgi processing [08:37:20]execute_cgi json_proto POST (null) [08:37:20]execute_cgi path=json_proto method=POST [08:37:20]POST find Content-Length [08:37:20]Host: 172.17.45.67:8080 [08:37:20]Content-Length: 677 [08:37:20]Content-Type: application/json [08:37:20] [08:37:20]POST finish read [08:37:20]Found Content-Length = 677 [08:37:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:20]execute_script... [08: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)593405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:20]POST & json_proto [08:37:20]process_json_proto [08:37:20]json parsed OK: [08:37:20]protocol is kg_v1.0 [08:37:20]action value=close_receipt [08:37:20]process_action close_receipt [08:37:20]cmd_close_receipt [08:37:20]MH_GetDate [08:37:20]Write to MH i2c: F0 00 00 49 16 4E [08:37:20]Write i2c OK [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: F0 [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: F0 09 00 [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: F0 09 00 49 16 00 C3 55 C4 66 5F 7F 2B 66 08 [08:37:20]GetLastDocTimeStamp 1724142955 [08:37:20]current date 1724143043 [08:37:20]FM_GetShiftState [08:37:20]SAM_PROTO_GetShiftState [08:37:20]wFMCommunicate request_size=4 [08:37:20]MH_SAM_APDU [08:37:20]CAPDU: 80 13 01 00 [08:37:20]Write to MH i2c: E2 08 00 4A 16 80 13 01 00 00 00 00 00 DD [08:37:20]Write i2c OK [08:37:20]MH_I2C_Read... [08:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:20]Read from MH i2c: E2 [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: E2 0E 00 [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: E2 0E 00 4A 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6E [08:37:20]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:37:20]wFMCommunicate OK [08:37:20]SAM_PROTO_GetShiftState done [08:37:20]FM_GetShiftState done [08:37:20]opened in 1724113785 [08:37:20]opened+sec_in_day 1724200185 [08:37:20]quantity*price = 20001 [08:37:20]sum+1 = 20002 [08:37:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 35 20.08.2024 08:37 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139563 ФПД: 136460930272523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139563&fm=136460930272523&tin=02508201610067®Number=0000000000092569&sum=20000 [08:37:21]StoreToDocumentArchive [08:37:21]shift 453 fd 139563 [08:37:21]save to /storage/0453/doc_00139563 [08:37:21]save last doc name /storage/0453/doc_00139563 to /storage/kkm_last_doc_name [08:37:21]save OK [08:37:21]Clear old archive folders... [08:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:21]tlvbuf is 00D3E550 [08:37:21]SAM_PROTO_ClearQueue [08:37:21]wFMCommunicate request_size=4 [08:37:21]MH_SAM_APDU [08:37:21]CAPDU: 80 09 00 00 [08:37:21]Write to MH i2c: E2 08 00 57 16 80 09 00 00 00 00 00 00 DF [08:37:21]Write i2c OK [08:37:21]MH_I2C_Read... [08:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:21]Read from MH i2c: E2 [08:37:21]MH_I2C_Read... [08:37:21]Read from MH i2c: E2 03 00 [08:37:21]MH_I2C_Read... [08:37:21]Read from MH i2c: E2 03 00 57 16 00 90 00 E1 [08:37:21]RAPDU: 90 00 [08:37:21]wFMCommunicate OK [08:37:21]SAM_PROTO_ClearQueue done [08:37:21]KKMCreateOFDPacket [08:37:21]OFDProtocolAddRootSTLVToBuf [08:37:21]FM_MakeSignedData [08:37:21]FM_MakeSignedData [08:37:21]SAM_PROTO_SignData [08:37:21]wFMCommunicate request_size=4 [08:37:21]MH_SAM_APDU [08:37:21]CAPDU: 80 0D 01 02 [08:37:21]Write to MH i2c: E2 08 00 58 16 80 0D 01 02 00 00 00 00 E7 [08:37:21]Write i2c OK [08:37:21]MH_I2C_Read... [08:37:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:21]Read from MH i2c: E2 [08:37:21]MH_I2C_Read... [08:37:21]Read from MH i2c: E2 03 00 [08:37:21]MH_I2C_Read... [08:37:21]Read from MH i2c: E2 03 00 58 16 00 90 00 E2 [08:37:21]RAPDU: 90 00 [08:37:21]wFMCommunicate OK [08:37:21]wFMCommunicate request_size=255 [08:37:21]MH_SAM_APDU [08: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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C3 55 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 21 02 00 35 04 06 00 7C [08:37:21]Write to MH i2c: E2 02 01 59 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C3 55 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 21 02 00 35 04 06 00 7C 00 00 67 [08:37:21]Write i2c OK [08:37:21]MH_I2C_Read... [08:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:22]Read from MH i2c: E2 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 03 00 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 03 00 59 16 00 90 00 E3 [08:37:22]RAPDU: 90 00 [08:37:22]wFMCommunicate OK [08:37:22]wFMCommunicate request_size=10 [08:37:22]MH_SAM_APDU [08:37:22]CAPDU: 80 0D 02 02 05 1C 49 46 4D 0B [08:37:22]Write to MH i2c: E2 0D 00 5A 16 80 0D 02 02 05 00 1C 49 46 4D 0B 00 00 F7 [08:37:22]Write i2c OK [08:37:22]MH_I2C_Read... [08:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:22]Read from MH i2c: E2 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 03 00 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 03 00 5A 16 00 90 00 E4 [08:37:22]RAPDU: 90 00 [08:37:22]wFMCommunicate OK [08:37:22]wFMCommunicate request_size=4 [08:37:22]MH_SAM_APDU [08:37:22]CAPDU: 80 0D 03 02 [08:37:22]Write to MH i2c: E2 08 00 5B 16 80 0D 03 02 00 00 00 00 EC [08:37:22]Write i2c OK [08:37:22]MH_I2C_Read... [08:37:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:22]Read from MH i2c: E2 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 0B 00 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 0B 00 5B 16 00 78 5F CD BC B1 9D 6F 98 90 00 A2 [08:37:22]RAPDU: 78 5F CD BC B1 9D 6F 98 90 00 [08:37:22]wFMCommunicate OK [08:37:22]SAM_PROTO_SignData done [08:37:22]FM_MakeSignedData done [08:37:22]CreateOFDProtocolMessage [08:37:22]wFMCommunicate request_size=4 [08:37:22]MH_SAM_APDU [08:37:22]CAPDU: 80 11 00 00 [08:37:22]Write to MH i2c: E2 08 00 5C 16 80 11 00 00 00 00 00 00 EC [08:37:22]Write i2c OK [08:37:22]MH_I2C_Read... [08:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:22]Read from MH i2c: E2 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 17 00 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 17 00 5C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [08:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:37:22]wFMCommunicate OK [08:37:22]CreateOFDProtocolMessage done [08:37:22]OFDSenderStorePacket 139563 [08:37:22]StoreOFDPacket docnum=139563 [08:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 68 07 01 BC D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C3 55 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 21 02 00 35 04 06 00 7C 1C 49 46 4D 0B 78 5F CD BC B1 9D 6F 98 [08:37:22]CheckFolder [08:37:22]dirname=/storage/ofd_packets [08:37:22]CheckFolder done [08:37:22]ProducePacketName [08:37:22]name=ofd_packets/00139563 [08:37:22]NVStorageSaveData ofd_packets/00139563 [08:37:22]File name is /storage/ofd_packets/00139563 [08:37:22]Write 301 bytes [08:37:22]NVStorageSaveData done [08:37:22]OFDSenderStorePacket done [08:37:22]KKMCreateOFDPacket done [08:37:22]NVStorageSaveData kkm_last_timestamp [08:37:22]File name is /storage/kkm_last_timestamp [08:37:22]Write 4 bytes [08:37:22]NVStorageSaveData done [08:37:22]ExternCall_PrintAddStr [08:37:22]wPrintStart [08:37:22]Write to MH i2c: 01 00 00 5D 16 73 [08:37:22]Write i2c OK [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: 01 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: 01 07 00 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: 01 07 00 5D 16 00 00 00 00 00 FF 0F 88 [08:37:22]RasterBufferAndPrint [08:37:22]line Счет N : (1)593405 [08:37:22]line ИНН: 02508201610067 [08:37:22]line Контрольно-Кассовый Чек [08:37:22]line ПРОДАЖА [08:37:22]line ТРК (МРК, ГНК) : 42 [08:37:22]line Товар: 2710124130 [08:37:22]line Аи-92-К-5 [08:37:22]line 2.950 * 67.80 [08:37:22]line = 200.01 [08:37:22]line НДС 12% НСП 1% [08:37:22]line > о реализуемом товаре [08:37:22]line ОКРУГЛЕНИЕ: -0.01 [08:37:22]line ИТОГО: 200.00 [08:37:22]line Внесено: 200.00 [08:37:22]line СДАЧА: 0.00 [08:37:22]line НСП 1% : 1.77 [08:37:22]line НДС 12% : 21.24 [08:37:22]line Наличными: 200.00 [08:37:22]line Безнал.: 0.00 [08:37:22]line Место: АЗС № 136 "Партнер Нефть" [08:37:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:37:22]line СНО: Общий режим [08:37:22]line Чек 35 20.08.2024 08:37 [08:37:22]line Смена: 453 ФФД: 1.0 [08:37:22]line ЗНМ: 0300000067 [08:37:22]line РНМ: 0000000000092569 [08:37:22]line Версия ККМ: 001 [08:37:22]line ФМ: 0000000000871776 [08:37:22]line ФД: 139563 [08:37:22]line ФПД: 136460930272523 [08:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T083723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139563&fm=136460930272523&tin=02508201610067®Number=0000000000092569&sum=20000 [08:37:22]OFD Sender: Processing packet 139563 [packets to send 137, broken 136] [08:37:22]ProducePacketName [08:37:22]name=ofd_packets/00139563 [08:37:22]OFD Sender: To server: pG, [08:37:22]CommunicateWithHost lk.salyk.kg:30040 [08:37:22]ConnectInit lk.salyk.kg [08:37:22]written 0, free lines is 4095 [08:37:22]Connected sock=10 [08:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 68 07 01 BC D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C3 55 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 21 02 00 35 04 06 00 7C 1C 49 46 4D 0B 78 5F CD BC B1 9D 6F 98 [08:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D2 58 47 00 0F DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 21 02 00 F4 03 04 00 57 FC C3 66 B6 04 01 00 00 A4 69 D8 F3 A6 1E 42 6D [08:37:23]CommunicateWithHost err = 0 [08:37:23]CheckOFDResponse [08:37:23]1017 (14) - 77093643461234 [08:37:23]1041 (16) - 0000000000871776 [08:37:23]1040 (4) - 139563 [08:37:23]1012 (4) - 20.08.2024 02:15 [08:37:23]1206 (1) - 0 [08:37:23]OFD Sender: Remove packet 139563 [08:37:23]ProducePacketName [08:37:23]name=ofd_packets/00139563 [08:37:23]NVStorageDeleteData [08:37:23]Write to MH i2c: 01 00 00 88 16 9E [08:37:23]Write i2c OK [08:37:23]MH_I2C_Read... [08:37:23]Read from MH i2c: 01 [08:37:23]MH_I2C_Read... [08:37:23]Read from MH i2c: 01 07 00 [08:37:23]MH_I2C_Read... [08:37:23]Read from MH i2c: 01 07 00 88 16 00 00 00 00 00 E4 0C 95 [08:37:23]RasterBufferAndPrint [08:37:23]line [08:37:23]line [08:37:23]line [08:37:23]line [08:37:23]line [08:37:23]written 0, free lines is 3306 [08:37:23]MH_Cut [08:37:23]Write to MH i2c: D1 01 00 8F 16 01 77 [08:37:23]Write i2c OK [08:37:23]MH_I2C_Read... [08:37:23]Read from MH i2c: D1 [08:37:23]MH_I2C_Read... [08:37:23]Read from MH i2c: D1 01 00 [08:37:23]MH_I2C_Read... [08:37:23]Read from MH i2c: D1 01 00 8F 16 00 76 [08:37:23]Write to MH i2c: 01 00 00 90 16 A6 [08:37:23]Write i2c OK [08:37:23]MH_I2C_Read... [08:37:23]OFD Sender: No OFD packet to send [08:37:23]*** Cut start [08:37:23]*** Partial cut [08:37:23]*** CUTSNS_PIN = 1 [08:37:23]*** CUTSNS_PIN = 0 [08:37:24]*** Brake cut motor [08:37:24]Read from MH i2c: 01 [08:37:24]MH_I2C_Read... [08:37:24]*** Stop cut motor [08:37:24]*** Cut end [08:37:24]Read from MH i2c: 01 07 00 [08:37:24]MH_I2C_Read... [08:37:24]Read from MH i2c: 01 07 00 90 16 00 00 00 00 00 FF 0F BB [08:37:24]process_action close_receipt done [08:37:24]requested_data is exist [08:37:24]produce_requested_data [08:37:24]requested_item fm.sn is exist - process it [08:37:24]wFMCommunicate request_size=4 [08:37:24]MH_SAM_APDU [08:37:24]CAPDU: 80 11 00 00 [08:37:24]Write to MH i2c: E2 08 00 91 16 80 11 00 00 00 00 00 00 21 [08:37:24]Write i2c OK [08:37:24]MH_I2C_Read... [08:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:24]Read from MH i2c: E2 [08:37:24]MH_I2C_Read... [08:37:24]Read from MH i2c: E2 17 00 [08:37:24]MH_I2C_Read... [08:37:24]Read from MH i2c: E2 17 00 91 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 78 [08:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:37:24]wFMCommunicate OK [08:37:24]requested_item fd.num is exist - process it [08:37:24]SAM_PROTO_GetFieldsCounters [08:37:24]wFMCommunicate request_size=4 [08:37:24]MH_SAM_APDU [08:37:24]CAPDU: 80 13 00 00 [08:37:24]Write to MH i2c: E2 08 00 92 16 80 13 00 00 00 00 00 00 24 [08:37:24]Write i2c OK [08:37:24]MH_I2C_Read... [08:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:24]Read from MH i2c: E2 [08:37:24]MH_I2C_Read... [08:37:24]Read from MH i2c: E2 62 00 [08:37:24]MH_I2C_Read... [08:37:24]Read from MH i2c: E2 62 00 92 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [08:37:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:24]wFMCommunicate OK [08:37:24]SAM_PROTO_GetFieldsCounters done [08:37:24]requested_item shift.num is exist - process it [08:37:24]requested_item shift.opened is exist - process it [08:37:24]req_shift_opened [08:37:24]FM_GetShiftState [08:37:24]SAM_PROTO_GetShiftState [08:37:24]wFMCommunicate request_size=4 [08:37:24]MH_SAM_APDU [08:37:24]CAPDU: 80 13 01 00 [08:37:24]Write to MH i2c: E2 08 00 93 16 80 13 01 00 00 00 00 00 26 [08:37:24]Write i2c OK [08:37:24]MH_I2C_Read... [08:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:24]Read from MH i2c: E2 [08:37:24]MH_I2C_Read... [08:37:24]Read from MH i2c: E2 0E 00 [08:37:24]MH_I2C_Read... [08:37:24]Read from MH i2c: E2 0E 00 93 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B7 [08:37:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:37:24]wFMCommunicate OK [08:37:24]SAM_PROTO_GetShiftState done [08:37:24]FM_GetShiftState done [08:37:24]req_shift_opened done [08:37:24]requested_item shift.open_date is exist - process it [08:37:24]req_shift_open_date [08:37:24]req_shift_open_date done [08:37:24]produce_requested_data done [08:37:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139563,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:37:24]process_action_free close_receipt [08:37:24]json_value_free [08:37:24]json_value_free done [08:37:24]process_json_proto returns [08:37:24]Send response to host [08:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139563,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:37:24]free response buf [08:37:24]execute_script done [08:37:24]execute_script returns [08:37:24]free content buf [08:37:24]Sock 9.Close socket [08:37:24]Sock 9.Thread stoped [08:37:28]OFD Sender: No OFD packet to send [08:37:29]recv_with_timeout no data received [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:19]accept exits with 7 [08:40:19]New connection [08:40:19]New thread 3067215204 created [08:40:19]Thread 3067071844 joined [08:40:19]Waiting for new connection... [08:40:19] Sock 7.Parse request [08:40:19]Sock 7.Check first char [08:40:19]Sock 7.First char is OK [08:40:19]request: POST /json_proto HTTP/1.0 [08:40:19]Method: POST [08:40:19]URL: /json_proto [08:40:19]Method is POST - this is cgi request [08:40:19]url: /json_proto [08:40:19]query_string will be loaded in cgi processing [08:40:19]execute_cgi json_proto POST (null) [08:40:19]execute_cgi path=json_proto method=POST [08:40:19]POST find Content-Length [08:40:19]Host: 172.17.45.67:8080 [08:40:19]Content-Length: 817 [08:40:19]Content-Type: application/json [08:40:19] [08:40:19]POST finish read [08:40:19]Found Content-Length = 817 [08:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.000, "sum" : 742.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 742.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:19]execute_script... [08:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.000, "sum" : 742.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 742.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:19]POST & json_proto [08:40:19]process_json_proto [08:40:19]json parsed OK: [08:40:19]protocol is kg_v1.0 [08:40:19]action value=close_receipt [08:40:19]process_action close_receipt [08:40:19]cmd_close_receipt [08:40:19]MH_GetDate [08:40:19]Write to MH i2c: F0 00 00 94 16 99 [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: F0 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: F0 09 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: F0 09 00 94 16 00 76 56 C4 66 5F 7F 2B 66 07 [08:40:19]GetLastDocTimeStamp 1724143043 [08:40:19]current date 1724143222 [08:40:19]FM_GetShiftState [08:40:19]SAM_PROTO_GetShiftState [08:40:19]wFMCommunicate request_size=4 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 13 01 00 [08:40:19]Write to MH i2c: E2 08 00 95 16 80 13 01 00 00 00 00 00 28 [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 0E 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 0E 00 95 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B9 [08:40:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:40:19]wFMCommunicate OK [08:40:19]SAM_PROTO_GetShiftState done [08:40:19]FM_GetShiftState done [08:40:19]opened in 1724113785 [08:40:19]opened+sec_in_day 1724200185 [08:40:19]quantity*price = 74200 [08:40:19]sum+1 = 74201 [08:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 742.00 НСП 1% : 6.57 НДС 12% : 78.80 Наличными: 0.00 Безнал.: 742.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 36 20.08.2024 08:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139564 ФПД: 79158501721810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084022&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139564&fm=79158501721810&tin=02508201610067®Number=0000000000092569&sum=74200 [08:40:20]StoreToDocumentArchive [08:40:20]shift 453 fd 139564 [08:40:20]save to /storage/0453/doc_00139564 [08:40:20]save last doc name /storage/0453/doc_00139564 to /storage/kkm_last_doc_name [08:40:20]save OK [08:40:20]Clear old archive folders... [08:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:20]tlvbuf is 00DB0C20 [08:40:20]SAM_PROTO_ClearQueue [08:40:20]wFMCommunicate request_size=4 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 09 00 00 [08:40:20]Write to MH i2c: E2 08 00 A2 16 80 09 00 00 00 00 00 00 2A [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 A2 16 00 90 00 2C [08:40:20]RAPDU: 90 00 [08:40:20]wFMCommunicate OK [08:40:20]SAM_PROTO_ClearQueue done [08:40:20]KKMCreateOFDPacket [08:40:20]OFDProtocolAddRootSTLVToBuf [08:40:20]FM_MakeSignedData [08:40:20]FM_MakeSignedData [08:40:20]SAM_PROTO_SignData [08:40:20]wFMCommunicate request_size=4 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 0D 01 02 [08:40:20]Write to MH i2c: E2 08 00 A3 16 80 0D 01 02 00 00 00 00 32 [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 A3 16 00 90 00 2D [08:40:20]RAPDU: 90 00 [08:40:20]wFMCommunicate OK [08:40:20]wFMCommunicate request_size=255 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 76 56 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 21 02 00 35 04 06 00 47 [08:40:20]Write to MH i2c: E2 02 01 A4 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 76 56 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 21 02 00 35 04 06 00 47 00 00 76 [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 A4 16 00 90 00 2E [08:40:20]RAPDU: 90 00 [08:40:20]wFMCommunicate OK [08:40:20]wFMCommunicate request_size=10 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 0D 02 02 05 FE 86 60 46 D2 [08:40:20]Write to MH i2c: E2 0D 00 A5 16 80 0D 02 02 05 00 FE 86 60 46 D2 00 00 3B [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 03 00 A5 16 00 90 00 2F [08:40:20]RAPDU: 90 00 [08:40:20]wFMCommunicate OK [08:40:20]wFMCommunicate request_size=4 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 0D 03 02 [08:40:20]Write to MH i2c: E2 08 00 A6 16 80 0D 03 02 00 00 00 00 37 [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 0B 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 0B 00 A6 16 00 22 1F 35 06 40 6D C0 49 90 00 6A [08:40:20]RAPDU: 22 1F 35 06 40 6D C0 49 90 00 [08:40:20]wFMCommunicate OK [08:40:20]SAM_PROTO_SignData done [08:40:20]FM_MakeSignedData done [08:40:20]CreateOFDProtocolMessage [08:40:20]wFMCommunicate request_size=4 [08:40:20]MH_SAM_APDU [08:40:20]CAPDU: 80 11 00 00 [08:40:20]Write to MH i2c: E2 08 00 A7 16 80 11 00 00 00 00 00 00 37 [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:20]Read from MH i2c: E2 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 17 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: E2 17 00 A7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8E [08:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:40:20]wFMCommunicate OK [08:40:20]CreateOFDProtocolMessage done [08:40:20]OFDSenderStorePacket 139564 [08:40:20]StoreOFDPacket docnum=139564 [08:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2B CD 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 76 56 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 21 02 00 35 04 06 00 47 FE 86 60 46 D2 22 1F 35 06 40 6D C0 49 [08:40:20]CheckFolder [08:40:20]dirname=/storage/ofd_packets [08:40:20]CheckFolder done [08:40:20]ProducePacketName [08:40:20]name=ofd_packets/00139564 [08:40:20]NVStorageSaveData ofd_packets/00139564 [08:40:20]File name is /storage/ofd_packets/00139564 [08:40:20]Write 301 bytes [08:40:20]NVStorageSaveData done [08:40:20]OFDSenderStorePacket done [08:40:20]KKMCreateOFDPacket done [08:40:20]NVStorageSaveData kkm_last_timestamp [08:40:20]File name is /storage/kkm_last_timestamp [08:40:20]Write 4 bytes [08:40:20]NVStorageSaveData done [08:40:20]ExternCall_PrintAddStr [08:40:20]wPrintStart [08:40:20]Write to MH i2c: 01 00 00 A8 16 BE [08:40:20]Write i2c OK [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: 01 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: 01 07 00 [08:40:20]MH_I2C_Read... [08:40:20]Read from MH i2c: 01 07 00 A8 16 00 00 00 00 00 FF 0F D3 [08:40:20]RasterBufferAndPrint [08:40:20]line Счет N : (1)593406 [08:40:20]line ИНН: 02508201610067 [08:40:20]line Контрольно-Кассовый Чек [08:40:20]line ПРОДАЖА [08:40:20]line ТРК (МРК, ГНК) : 61 [08:40:20]line Товар: 2710124500 [08:40:20]line Аи-95-К-5 [08:40:20]line 10.000 * 74.20 [08:40:20]line = 742.00 [08:40:20]line НДС 12% НСП 1% [08:40:21]line > о реализуемом товаре [08:40:21]line ИТОГО: 742.00 [08:40:21]line НСП 1% : 6.57 [08:40:21]line НДС 12% : 78.80 [08:40:21]line Наличными: 0.00 [08:40:21]line Безнал.: 742.00 [08:40:21]line Место: АЗС № 136 "Партнер Нефть" [08:40:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:40:21]line СНО: Общий режим [08:40:21]line Чек 36 20.08.2024 08:40 [08:40:21]line Смена: 453 ФФД: 1.0 [08:40:21]line ЗНМ: 0300000067 [08:40:21]line РНМ: 0000000000092569 [08:40:21]line Версия ККМ: 001 [08:40:21]line Платежная система: Бакай Банк [08:40:21]line ФМ: 0000000000871776 [08:40:21]line ФД: 139564 [08:40:21]line ФПД: 79158501721810 [08:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084022&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139564&fm=79158501721810&tin=02508201610067®Number=0000000000092569&sum=74200 [08:40:21]written 0, free lines is 4095 [08:40:21]OFD Sender: Processing packet 139564 [packets to send 137, broken 136] [08:40:21]ProducePacketName [08:40:21]name=ofd_packets/00139564 [08:40:21]OFD Sender: To server: pG, [08:40:21]CommunicateWithHost lk.salyk.kg:30040 [08:40:21]ConnectInit lk.salyk.kg [08:40:21]Write to MH i2c: 01 00 00 D2 16 E8 [08:40:21]Write i2c OK [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: 01 [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: 01 07 00 [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: 01 07 00 D2 16 00 00 00 00 00 D6 0C D1 [08:40:21]RasterBufferAndPrint [08:40:21]line [08:40:21]line [08:40:21]line [08:40:21]line [08:40:21]line [08:40:21]written 0, free lines is 3293 [08:40:21]MH_Cut [08:40:21]Write to MH i2c: D1 01 00 D9 16 01 C1 [08:40:21]Write i2c OK [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: D1 [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: D1 01 00 [08:40:21]MH_I2C_Read... [08:40:21]Read from MH i2c: D1 01 00 D9 16 00 C0 [08:40:21]Write to MH i2c: 01 00 00 DA 16 F0 [08:40:21]Write i2c OK [08:40:21]MH_I2C_Read... [08:40:21]Connected sock=11 [08:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2B CD 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 76 56 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 21 02 00 35 04 06 00 47 FE 86 60 46 D2 22 1F 35 06 40 6D C0 49 [08:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B1 D0 47 00 07 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 21 02 00 F4 03 04 00 09 FD C3 66 B6 04 01 00 00 DE A3 2E 1E E1 32 39 24 [08:40:21]CommunicateWithHost err = 0 [08:40:21]CheckOFDResponse [08:40:21]1017 (14) - 77093643461234 [08:40:21]1041 (16) - 0000000000871776 [08:40:21]1040 (4) - 139564 [08:40:21]1012 (4) - 20.08.2024 02:18 [08:40:21]1206 (1) - 0 [08:40:21]OFD Sender: Remove packet 139564 [08:40:21]ProducePacketName [08:40:21]name=ofd_packets/00139564 [08:40:21]NVStorageDeleteData [08:40:22]*** Cut start [08:40:22]*** Partial cut [08:40:22]*** CUTSNS_PIN = 1 [08:40:22]*** CUTSNS_PIN = 0 [08:40:22]OFD Sender: No OFD packet to send [08:40:22]*** Brake cut motor [08:40:22]Read from MH i2c: 01 [08:40:22]MH_I2C_Read... [08:40:22]*** Stop cut motor [08:40:22]*** Cut end [08:40:22]Read from MH i2c: 01 07 00 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: 01 07 00 DA 16 00 00 00 00 00 FF 0F 05 [08:40:22]process_action close_receipt done [08:40:22]requested_data is exist [08:40:22]produce_requested_data [08:40:22]requested_item fm.sn is exist - process it [08:40:22]wFMCommunicate request_size=4 [08:40:22]MH_SAM_APDU [08:40:22]CAPDU: 80 11 00 00 [08:40:22]Write to MH i2c: E2 08 00 DB 16 80 11 00 00 00 00 00 00 6B [08:40:22]Write i2c OK [08:40:22]MH_I2C_Read... [08:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:22]Read from MH i2c: E2 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 17 00 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 17 00 DB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C2 [08:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:40:22]wFMCommunicate OK [08:40:22]requested_item fd.num is exist - process it [08:40:22]SAM_PROTO_GetFieldsCounters [08:40:22]wFMCommunicate request_size=4 [08:40:22]MH_SAM_APDU [08:40:22]CAPDU: 80 13 00 00 [08:40:22]Write to MH i2c: E2 08 00 DC 16 80 13 00 00 00 00 00 00 6E [08:40:22]Write i2c OK [08:40:22]MH_I2C_Read... [08:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:22]Read from MH i2c: E2 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 62 00 [08:40:22]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 62 00 DC 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [08:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:23]wFMCommunicate OK [08:40:23]SAM_PROTO_GetFieldsCounters done [08:40:23]requested_item shift.num is exist - process it [08:40:23]requested_item shift.opened is exist - process it [08:40:23]req_shift_opened [08:40:23]FM_GetShiftState [08:40:23]SAM_PROTO_GetShiftState [08:40:23]wFMCommunicate request_size=4 [08:40:23]MH_SAM_APDU [08:40:23]CAPDU: 80 13 01 00 [08:40:23]Write to MH i2c: E2 08 00 DD 16 80 13 01 00 00 00 00 00 70 [08:40:23]Write i2c OK [08:40:23]MH_I2C_Read... [08:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:23]Read from MH i2c: E2 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 0E 00 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 0E 00 DD 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 01 [08:40:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:40:23]wFMCommunicate OK [08:40:23]SAM_PROTO_GetShiftState done [08:40:23]FM_GetShiftState done [08:40:23]req_shift_opened done [08:40:23]requested_item shift.open_date is exist - process it [08:40:23]req_shift_open_date [08:40:23]req_shift_open_date done [08:40:23]produce_requested_data done [08:40:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139564,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:40:23]process_action_free close_receipt [08:40:23]json_value_free [08:40:23]json_value_free done [08:40:23]process_json_proto returns [08:40:23]Send response to host [08:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139564,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:40:23]free response buf [08:40:23]execute_script done [08:40:23]execute_script returns [08:40:23]free content buf [08:40:23]Sock 7.Close socket [08:40:23]Sock 7.Thread stoped [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:50]int [08:40:50]Write to MH i2c: 01 00 00 DE 16 F4 [08:40:50]*** FLAG_PRN_KEY set [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 DE 16 00 08 00 00 00 FF 0F 11 [08:40:50]state=0 [08:40:50]Key pressed [08:40:50]Feed [08:40:50]Write to MH i2c: D8 00 00 DF 16 CC [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: D8 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: D8 01 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: D8 01 00 DF 16 00 CD [08:40:50]int [08:40:50]Write to MH i2c: 01 00 00 E0 16 F6 [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 E0 16 00 48 00 00 00 3C 00 81 [08:40:50]state=2 [08:40:50]Key pressed [08:40:50]int [08:40:50]Write to MH i2c: 01 00 00 E1 16 F7 [08:40:50]*** FLAG_PRN_KEY reset [08:40:50]Write i2c OK [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 [08:40:50]MH_I2C_Read... [08:40:50]Read from MH i2c: 01 07 00 E1 16 00 00 00 00 00 F5 0F 02 [08:40:50]state=2 [08:40:50]Stop feed [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:06]accept exits with 9 [08:44:06]New connection [08:44:06]New thread 3067071844 created [08:44:06]Thread 3067215204 joined [08:44:06]Waiting for new connection... [08:44:06] Sock 9.Parse request [08:44:06]Sock 9.Check first char [08:44:06]Sock 9.First char is OK [08:44:06]request: POST /json_proto HTTP/1.0 [08:44:06]Method: POST [08:44:06]URL: /json_proto [08:44:06]Method is POST - this is cgi request [08:44:06]url: /json_proto [08:44:06]query_string will be loaded in cgi processing [08:44:06]execute_cgi json_proto POST (null) [08:44:06]execute_cgi path=json_proto method=POST [08:44:06]POST find Content-Length [08:44:06]Host: 172.17.45.67:8080 [08:44:06]Content-Length: 677 [08:44:06]Content-Type: application/json [08:44:06] [08:44:06]POST finish read [08:44:06]Found Content-Length = 677 [08:44:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:06]execute_script... [08:44: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)593408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:06]POST & json_proto [08:44:06]process_json_proto [08:44:06]json parsed OK: [08:44:06]protocol is kg_v1.0 [08:44:06]action value=close_receipt [08:44:06]process_action close_receipt [08:44:06]cmd_close_receipt [08:44:06]MH_GetDate [08:44:06]Write to MH i2c: F0 00 00 E2 16 E7 [08:44:06]Write i2c OK [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: F0 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: F0 09 00 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: F0 09 00 E2 16 00 59 57 C4 66 5F 7F 2B 66 39 [08:44:06]GetLastDocTimeStamp 1724143222 [08:44:06]current date 1724143449 [08:44:06]FM_GetShiftState [08:44:06]SAM_PROTO_GetShiftState [08:44:06]wFMCommunicate request_size=4 [08:44:06]MH_SAM_APDU [08:44:06]CAPDU: 80 13 01 00 [08:44:06]Write to MH i2c: E2 08 00 E3 16 80 13 01 00 00 00 00 00 76 [08:44:06]Write i2c OK [08:44:06]MH_I2C_Read... [08:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:06]Read from MH i2c: E2 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 0E 00 [08:44:06]MH_I2C_Read... [08:44:06]Read from MH i2c: E2 0E 00 E3 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 07 [08:44:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:44:06]wFMCommunicate OK [08:44:06]SAM_PROTO_GetShiftState done [08:44:06]FM_GetShiftState done [08:44:06]opened in 1724113785 [08:44:06]opened+sec_in_day 1724200185 [08:44:06]quantity*price = 40002 [08:44:06]sum+1 = 40003 [08:44:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 37 20.08.2024 08:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139565 ФПД: 210055422886192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084409&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139565&fm=210055422886192&tin=02508201610067®Number=0000000000092569&sum=40000 [08:44:07]StoreToDocumentArchive [08:44:07]shift 453 fd 139565 [08:44:07]save to /storage/0453/doc_00139565 [08:44:07]save last doc name /storage/0453/doc_00139565 to /storage/kkm_last_doc_name [08:44:07]save OK [08:44:07]Clear old archive folders... [08:44:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:07]tlvbuf is 00D3E540 [08:44:07]SAM_PROTO_ClearQueue [08:44:07]wFMCommunicate request_size=4 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 09 00 00 [08:44:07]Write to MH i2c: E2 08 00 F0 16 80 09 00 00 00 00 00 00 78 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 F0 16 00 90 00 7A [08:44:07]RAPDU: 90 00 [08:44:07]wFMCommunicate OK [08:44:07]SAM_PROTO_ClearQueue done [08:44:07]KKMCreateOFDPacket [08:44:07]OFDProtocolAddRootSTLVToBuf [08:44:07]FM_MakeSignedData [08:44:07]FM_MakeSignedData [08:44:07]SAM_PROTO_SignData [08:44:07]wFMCommunicate request_size=4 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 0D 01 02 [08:44:07]Write to MH i2c: E2 08 00 F1 16 80 0D 01 02 00 00 00 00 80 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 F1 16 00 90 00 7B [08:44:07]RAPDU: 90 00 [08:44:07]wFMCommunicate OK [08:44:07]wFMCommunicate request_size=255 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 59 57 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 21 02 00 35 04 06 00 BF [08:44:07]Write to MH i2c: E2 02 01 F2 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 59 57 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 21 02 00 35 04 06 00 BF 00 00 C2 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]OFD Sender: No OFD packet to send [08:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 F2 16 00 90 00 7C [08:44:07]RAPDU: 90 00 [08:44:07]wFMCommunicate OK [08:44:07]wFMCommunicate request_size=10 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 0D 02 02 05 0B 56 DD 41 30 [08:44:07]Write to MH i2c: E2 0D 00 F3 16 80 0D 02 02 05 00 0B 56 DD 41 30 00 00 3C [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 03 00 F3 16 00 90 00 7D [08:44:07]RAPDU: 90 00 [08:44:07]wFMCommunicate OK [08:44:07]wFMCommunicate request_size=4 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 0D 03 02 [08:44:07]Write to MH i2c: E2 08 00 F4 16 80 0D 03 02 00 00 00 00 85 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 0B 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 0B 00 F4 16 00 49 94 17 0E 73 E4 D2 36 90 00 E7 [08:44:07]RAPDU: 49 94 17 0E 73 E4 D2 36 90 00 [08:44:07]wFMCommunicate OK [08:44:07]SAM_PROTO_SignData done [08:44:07]FM_MakeSignedData done [08:44:07]CreateOFDProtocolMessage [08:44:07]wFMCommunicate request_size=4 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 11 00 00 [08:44:07]Write to MH i2c: E2 08 00 F5 16 80 11 00 00 00 00 00 00 85 [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 17 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 17 00 F5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DC [08:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:44:07]wFMCommunicate OK [08:44:07]CreateOFDProtocolMessage done [08:44:07]OFDSenderStorePacket 139565 [08:44:07]StoreOFDPacket docnum=139565 [08:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F BB 07 01 8A 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 59 57 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 21 02 00 35 04 06 00 BF 0B 56 DD 41 30 49 94 17 0E 73 E4 D2 36 [08:44:07]CheckFolder [08:44:07]dirname=/storage/ofd_packets [08:44:07]CheckFolder done [08:44:07]ProducePacketName [08:44:07]name=ofd_packets/00139565 [08:44:07]NVStorageSaveData ofd_packets/00139565 [08:44:07]File name is /storage/ofd_packets/00139565 [08:44:07]Write 301 bytes [08:44:07]NVStorageSaveData done [08:44:07]OFDSenderStorePacket done [08:44:07]KKMCreateOFDPacket done [08:44:07]NVStorageSaveData kkm_last_timestamp [08:44:07]File name is /storage/kkm_last_timestamp [08:44:07]Write 4 bytes [08:44:07]NVStorageSaveData done [08:44:07]ExternCall_PrintAddStr [08:44:07]wPrintStart [08:44:07]Write to MH i2c: 01 00 00 F6 16 0C [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: 01 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: 01 07 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: 01 07 00 F6 16 00 00 00 00 00 FF 0F 21 [08:44:07]RasterBufferAndPrint [08:44:07]line Счет N : (1)593408 [08:44:07]line ИНН: 02508201610067 [08:44:07]line Контрольно-Кассовый Чек [08:44:07]line ПРОДАЖА [08:44:07]line ТРК (МРК, ГНК) : 32 [08:44:07]line Товар: 2710124130 [08:44:07]line Аи-92-К-5 [08:44:07]line 5.900 * 67.80 [08:44:07]line = 400.02 [08:44:07]line НДС 12% НСП 1% [08:44:07]line > о реализуемом товаре [08:44:07]line ОКРУГЛЕНИЕ: -0.02 [08:44:07]line ИТОГО: 400.00 [08:44:07]line Внесено: 400.00 [08:44:07]line СДАЧА: 0.00 [08:44:07]line НСП 1% : 3.54 [08:44:07]line НДС 12% : 42.48 [08:44:07]line Наличными: 400.00 [08:44:07]line Безнал.: 0.00 [08:44:07]line Место: АЗС № 136 "Партнер Нефть" [08:44:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:44:07]line СНО: Общий режим [08:44:07]line Чек 37 20.08.2024 08:44 [08:44:07]line Смена: 453 ФФД: 1.0 [08:44:07]line ЗНМ: 0300000067 [08:44:07]line РНМ: 0000000000092569 [08:44:07]line Версия ККМ: 001 [08:44:07]line ФМ: 0000000000871776 [08:44:07]line ФД: 139565 [08:44:07]line ФПД: 210055422886192 [08:44:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084409&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139565&fm=210055422886192&tin=02508201610067®Number=0000000000092569&sum=40000 [08:44:08]OFD Sender: Processing packet 139565 [packets to send 137, broken 136] [08:44:08]ProducePacketName [08:44:08]name=ofd_packets/00139565 [08:44:08]OFD Sender: To server: pG, [08:44:08]CommunicateWithHost lk.salyk.kg:30040 [08:44:08]ConnectInit lk.salyk.kg [08:44:08]written 0, free lines is 4095 [08:44:08]Connected sock=10 [08:44:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F BB 07 01 8A 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 59 57 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 21 02 00 35 04 06 00 BF 0B 56 DD 41 30 49 94 17 0E 73 E4 D2 36 [08:44:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C6 0D 47 00 BA 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 21 02 00 F4 03 04 00 EC FD C3 66 B6 04 01 00 00 4E 3E DA BD 9D B7 C7 79 [08:44:08]CommunicateWithHost err = 0 [08:44:08]CheckOFDResponse [08:44:08]1017 (14) - 77093643461234 [08:44:08]1041 (16) - 0000000000871776 [08:44:08]1040 (4) - 139565 [08:44:08]1012 (4) - 20.08.2024 02:22 [08:44:08]1206 (1) - 0 [08:44:08]OFD Sender: Remove packet 139565 [08:44:08]ProducePacketName [08:44:08]name=ofd_packets/00139565 [08:44:08]NVStorageDeleteData [08:44:08]Write to MH i2c: 01 00 00 21 17 38 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 07 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: 01 07 00 21 17 00 00 00 00 00 D9 0C 24 [08:44:08]RasterBufferAndPrint [08:44:08]line [08:44:08]line [08:44:08]line [08:44:08]line [08:44:08]line [08:44:08]written 0, free lines is 3296 [08:44:08]MH_Cut [08:44:08]Write to MH i2c: D1 01 00 28 17 01 11 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: D1 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: D1 01 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: D1 01 00 28 17 00 10 [08:44:08]Write to MH i2c: 01 00 00 29 17 40 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:09]OFD Sender: No OFD packet to send [08:44:09]*** Cut start [08:44:09]*** Partial cut [08:44:09]*** CUTSNS_PIN = 1 [08:44:09]*** CUTSNS_PIN = 0 [08:44:09]*** Brake cut motor [08:44:10]Read from MH i2c: 01 [08:44:10]MH_I2C_Read... [08:44:10]*** Stop cut motor [08:44:10]*** Cut end [08:44:10]Read from MH i2c: 01 07 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 29 17 00 00 00 00 00 FF 0F 55 [08:44:10]process_action close_receipt done [08:44:10]requested_data is exist [08:44:10]produce_requested_data [08:44:10]requested_item fm.sn is exist - process it [08:44:10]wFMCommunicate request_size=4 [08:44:10]MH_SAM_APDU [08:44:10]CAPDU: 80 11 00 00 [08:44:10]Write to MH i2c: E2 08 00 2A 17 80 11 00 00 00 00 00 00 BB [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 17 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 17 00 2A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 12 [08:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:44:10]wFMCommunicate OK [08:44:10]requested_item fd.num is exist - process it [08:44:10]SAM_PROTO_GetFieldsCounters [08:44:10]wFMCommunicate request_size=4 [08:44:10]MH_SAM_APDU [08:44:10]CAPDU: 80 13 00 00 [08:44:10]Write to MH i2c: E2 08 00 2B 17 80 13 00 00 00 00 00 00 BE [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 62 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 62 00 2B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [08:44:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:10]wFMCommunicate OK [08:44:10]SAM_PROTO_GetFieldsCounters done [08:44:10]requested_item shift.num is exist - process it [08:44:10]requested_item shift.opened is exist - process it [08:44:10]req_shift_opened [08:44:10]FM_GetShiftState [08:44:10]SAM_PROTO_GetShiftState [08:44:10]wFMCommunicate request_size=4 [08:44:10]MH_SAM_APDU [08:44:10]CAPDU: 80 13 01 00 [08:44:10]Write to MH i2c: E2 08 00 2C 17 80 13 01 00 00 00 00 00 C0 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:10]Read from MH i2c: E2 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 0E 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: E2 0E 00 2C 17 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 51 [08:44:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:44:10]wFMCommunicate OK [08:44:10]SAM_PROTO_GetShiftState done [08:44:10]FM_GetShiftState done [08:44:10]req_shift_opened done [08:44:10]requested_item shift.open_date is exist - process it [08:44:10]req_shift_open_date [08:44:10]req_shift_open_date done [08:44:10]produce_requested_data done [08:44:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139565,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:44:10]process_action_free close_receipt [08:44:10]json_value_free [08:44:10]json_value_free done [08:44:10]process_json_proto returns [08:44:10]Send response to host [08:44:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139565,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:44:10]free response buf [08:44:10]execute_script done [08:44:10]execute_script returns [08:44:10]free content buf [08:44:10]Sock 9.Close socket [08:44:10]Sock 9.Thread stoped [08:44:10]int [08:44:10]Write to MH i2c: 01 00 00 2D 17 44 [08:44:10]*** FLAG_PRN_KEY set [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 2D 17 00 08 00 00 00 FF 0F 61 [08:44:10]state=0 [08:44:10]Key pressed [08:44:10]Feed [08:44:10]Write to MH i2c: D8 00 00 2E 17 1C [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: D8 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: D8 01 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: D8 01 00 2E 17 00 1D [08:44:10]int [08:44:10]Write to MH i2c: 01 00 00 2F 17 46 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 2F 17 00 48 00 00 00 3C 00 D1 [08:44:10]state=2 [08:44:10]Key pressed [08:44:10]int [08:44:10]Write to MH i2c: 01 00 00 30 17 47 [08:44:10]*** FLAG_PRN_KEY reset [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 F7 0F 54 [08:44:10]state=2 [08:44:10]Stop feed [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:37]accept exits with 7 [08:44:37]New connection [08:44:37]New thread 3067215204 created [08:44:37]Thread 3067071844 joined [08:44:37]Waiting for new connection... [08:44:37] Sock 7.Parse request [08:44:37]Sock 7.Check first char [08:44:37]Sock 7.First char is OK [08:44:37]request: POST /json_proto HTTP/1.0 [08:44:37]Method: POST [08:44:37]URL: /json_proto [08:44:37]Method is POST - this is cgi request [08:44:37]url: /json_proto [08:44:37]query_string will be loaded in cgi processing [08:44:37]execute_cgi json_proto POST (null) [08:44:37]execute_cgi path=json_proto method=POST [08:44:37]POST find Content-Length [08:44:37]Host: 172.17.45.67:8080 [08:44:37]Content-Length: 792 [08:44:37]Content-Type: application/json [08:44:37] [08:44:37]POST finish read [08:44:37]Found Content-Length = 792 [08:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:37]execute_script... [08:44: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)593407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:37]POST & json_proto [08:44:37]process_json_proto [08:44:37]json parsed OK: [08:44:37]protocol is kg_v1.0 [08:44:37]action value=close_receipt [08:44:37]process_action close_receipt [08:44:37]cmd_close_receipt [08:44:37]MH_GetDate [08:44:37]Write to MH i2c: F0 00 00 31 17 37 [08:44:37]Write i2c OK [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: F0 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: F0 09 00 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: F0 09 00 31 17 00 78 57 C4 66 5F 7F 2B 66 A8 [08:44:37]GetLastDocTimeStamp 1724143449 [08:44:37]current date 1724143480 [08:44:37]FM_GetShiftState [08:44:37]SAM_PROTO_GetShiftState [08:44:37]wFMCommunicate request_size=4 [08:44:37]MH_SAM_APDU [08:44:37]CAPDU: 80 13 01 00 [08:44:37]Write to MH i2c: E2 08 00 32 17 80 13 01 00 00 00 00 00 C6 [08:44:37]Write i2c OK [08:44:37]MH_I2C_Read... [08:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:37]Read from MH i2c: E2 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: E2 0E 00 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: E2 0E 00 32 17 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 57 [08:44:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:44:37]wFMCommunicate OK [08:44:37]SAM_PROTO_GetShiftState done [08:44:37]FM_GetShiftState done [08:44:37]opened in 1724113785 [08:44:37]opened+sec_in_day 1724200185 [08:44:37]quantity*price = 0 [08:44:37]sum+1 = 1 [08:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 38 20.08.2024 08:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 68933 ФМ: 0000000000871776 ФД: 139566 ФПД: 62639702854885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084440&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139566&fm=62639702854885&tin=02508201610067®Number=0000000000092569&sum=0 [08:44:38]StoreToDocumentArchive [08:44:38]shift 453 fd 139566 [08:44:38]save to /storage/0453/doc_00139566 [08:44:38]save last doc name /storage/0453/doc_00139566 to /storage/kkm_last_doc_name [08:44:38]save OK [08:44:38]Clear old archive folders... [08:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:38]tlvbuf is 00D6C540 [08:44:38]SAM_PROTO_ClearQueue [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 09 00 00 [08:44:38]Write to MH i2c: E2 08 00 3F 17 80 09 00 00 00 00 00 00 C8 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 3F 17 00 90 00 CA [08:44:38]RAPDU: 90 00 [08:44:38]wFMCommunicate OK [08:44:38]SAM_PROTO_ClearQueue done [08:44:38]KKMCreateOFDPacket [08:44:38]OFDProtocolAddRootSTLVToBuf [08:44:38]FM_MakeSignedData [08:44:38]FM_MakeSignedData [08:44:38]SAM_PROTO_SignData [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 0D 01 02 [08:44:38]Write to MH i2c: E2 08 00 40 17 80 0D 01 02 00 00 00 00 D0 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 03 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 03 00 40 17 00 90 00 CB [08:44:39]RAPDU: 90 00 [08:44:39]wFMCommunicate OK [08:44:39]wFMCommunicate request_size=255 [08:44:39]MH_SAM_APDU [08:44:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 78 57 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 21 02 00 35 04 06 00 38 [08:44:39]Write to MH i2c: E2 02 01 41 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 78 57 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 21 02 00 35 04 06 00 38 00 00 F7 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 03 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 03 00 41 17 00 90 00 CC [08:44:39]RAPDU: 90 00 [08:44:39]wFMCommunicate OK [08:44:39]wFMCommunicate request_size=10 [08:44:39]MH_SAM_APDU [08:44:39]CAPDU: 80 0D 02 02 05 F8 71 3C CC E5 [08:44:39]Write to MH i2c: E2 0D 00 42 17 80 0D 02 02 05 00 F8 71 3C CC E5 00 00 33 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]OFD Sender: No OFD packet to send [08:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 03 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 03 00 42 17 00 90 00 CD [08:44:39]RAPDU: 90 00 [08:44:39]wFMCommunicate OK [08:44:39]wFMCommunicate request_size=4 [08:44:39]MH_SAM_APDU [08:44:39]CAPDU: 80 0D 03 02 [08:44:39]Write to MH i2c: E2 08 00 43 17 80 0D 03 02 00 00 00 00 D5 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 0B 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 0B 00 43 17 00 2B DD 26 C9 E9 66 94 C3 90 00 73 [08:44:39]RAPDU: 2B DD 26 C9 E9 66 94 C3 90 00 [08:44:39]wFMCommunicate OK [08:44:39]SAM_PROTO_SignData done [08:44:39]FM_MakeSignedData done [08:44:39]CreateOFDProtocolMessage [08:44:39]wFMCommunicate request_size=4 [08:44:39]MH_SAM_APDU [08:44:39]CAPDU: 80 11 00 00 [08:44:39]Write to MH i2c: E2 08 00 44 17 80 11 00 00 00 00 00 00 D5 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 17 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 17 00 44 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2C [08:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:44:39]wFMCommunicate OK [08:44:39]CreateOFDProtocolMessage done [08:44:39]OFDSenderStorePacket 139566 [08:44:39]StoreOFDPacket docnum=139566 [08:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 19 DD 07 01 C7 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 78 57 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 21 02 00 35 04 06 00 38 F8 71 3C CC E5 2B DD 26 C9 E9 66 94 C3 [08:44:39]CheckFolder [08:44:39]dirname=/storage/ofd_packets [08:44:39]CheckFolder done [08:44:39]ProducePacketName [08:44:39]name=ofd_packets/00139566 [08:44:39]NVStorageSaveData ofd_packets/00139566 [08:44:39]File name is /storage/ofd_packets/00139566 [08:44:39]Write 301 bytes [08:44:39]NVStorageSaveData done [08:44:39]OFDSenderStorePacket done [08:44:39]KKMCreateOFDPacket done [08:44:39]NVStorageSaveData kkm_last_timestamp [08:44:39]File name is /storage/kkm_last_timestamp [08:44:39]Write 4 bytes [08:44:39]NVStorageSaveData done [08:44:39]ExternCall_PrintAddStr [08:44:39]wPrintStart [08:44:39]Write to MH i2c: 01 00 00 45 17 5C [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: 01 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: 01 07 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: 01 07 00 45 17 00 00 00 00 00 FF 0F 71 [08:44:39]RasterBufferAndPrint [08:44:39]line Счет N : (1)593407 [08:44:39]line ИНН: 02508201610067 [08:44:39]line Контрольно-Кассовый Чек [08:44:39]line ПРОДАЖА [08:44:39]line ТРК (МРК, ГНК) : 52 [08:44:39]line Товар: 2710124130 [08:44:39]line Аи-92-К-5 [08:44:39]line 30.000 * 0.00 [08:44:39]line = 0.00 [08:44:39]line НДС 12% НСП 1% [08:44:39]line > о реализуемом товаре [08:44:39]line ИТОГО: 0.00 [08:44:39]line НСП 1% : 0.00 [08:44:39]line НДС 12% : 0.00 [08:44:39]line Наличными: 0.00 [08:44:39]line Безнал.: 0.00 [08:44:39]line Место: АЗС № 136 "Партнер Нефть" [08:44:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:44:39]line СНО: Общий режим [08:44:39]line Чек 38 20.08.2024 08:44 [08:44:39]line Смена: 453 ФФД: 1.0 [08:44:39]line ЗНМ: 0300000067 [08:44:39]line РНМ: 0000000000092569 [08:44:39]line Версия ККМ: 001 [08:44:39]line Талоны: Топливная Карта [08:44:39]line 68933 [08:44:39]line ФМ: 0000000000871776 [08:44:39]line ФД: 139566 [08:44:39]line ФПД: 62639702854885 [08:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084440&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139566&fm=62639702854885&tin=02508201610067®Number=0000000000092569&sum=0 [08:44:39]OFD Sender: Processing packet 139566 [packets to send 137, broken 136] [08:44:39]ProducePacketName [08:44:39]name=ofd_packets/00139566 [08:44:39]OFD Sender: To server: pG, [08:44:39]CommunicateWithHost lk.salyk.kg:30040 [08:44:39]ConnectInit lk.salyk.kg [08:44:39]written 0, free lines is 4095 [08:44:39]Connected sock=10 [08:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 19 DD 07 01 C7 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 78 57 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 21 02 00 35 04 06 00 38 F8 71 3C CC E5 2B DD 26 C9 E9 66 94 C3 [08:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 32 27 47 00 CE CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 21 02 00 F4 03 04 00 0C FE C3 66 B6 04 01 00 00 2F F0 69 CF 6A 49 7D F0 [08:44:40]CommunicateWithHost err = 0 [08:44:40]CheckOFDResponse [08:44:40]1017 (14) - 77093643461234 [08:44:40]1041 (16) - 0000000000871776 [08:44:40]1040 (4) - 139566 [08:44:40]1012 (4) - 20.08.2024 02:23 [08:44:40]1206 (1) - 0 [08:44:40]OFD Sender: Remove packet 139566 [08:44:40]ProducePacketName [08:44:40]name=ofd_packets/00139566 [08:44:40]NVStorageDeleteData [08:44:40]Write to MH i2c: 01 00 00 6F 17 86 [08:44:40]Write i2c OK [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: 01 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: 01 07 00 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: 01 07 00 6F 17 00 00 00 00 00 EC 0C 85 [08:44:40]RasterBufferAndPrint [08:44:40]line [08:44:40]line [08:44:40]line [08:44:40]line [08:44:40]line [08:44:40]written 0, free lines is 3315 [08:44:40]MH_Cut [08:44:40]Write to MH i2c: D1 01 00 76 17 01 5F [08:44:40]Write i2c OK [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: D1 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: D1 01 00 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: D1 01 00 76 17 00 5E [08:44:40]Write to MH i2c: 01 00 00 77 17 8E [08:44:40]Write i2c OK [08:44:40]MH_I2C_Read... [08:44:40]OFD Sender: No OFD packet to send [08:44:40]*** Cut start [08:44:40]*** Partial cut [08:44:40]*** CUTSNS_PIN = 1 [08:44:40]*** CUTSNS_PIN = 0 [08:44:41]*** Brake cut motor [08:44:41]Read from MH i2c: 01 [08:44:41]MH_I2C_Read... [08:44:41]*** Stop cut motor [08:44:41]*** Cut end [08:44:41]Read from MH i2c: 01 07 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: 01 07 00 77 17 00 00 00 00 00 FF 0F A3 [08:44:41]process_action close_receipt done [08:44:41]requested_data is exist [08:44:41]produce_requested_data [08:44:41]requested_item fm.sn is exist - process it [08:44:41]wFMCommunicate request_size=4 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 11 00 00 [08:44:41]Write to MH i2c: E2 08 00 78 17 80 11 00 00 00 00 00 00 09 [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 17 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 17 00 78 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 60 [08:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:44:41]wFMCommunicate OK [08:44:41]requested_item fd.num is exist - process it [08:44:41]SAM_PROTO_GetFieldsCounters [08:44:41]wFMCommunicate request_size=4 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 13 00 00 [08:44:41]Write to MH i2c: E2 08 00 79 17 80 13 00 00 00 00 00 00 0C [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 62 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 62 00 79 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [08:44:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:41]wFMCommunicate OK [08:44:41]SAM_PROTO_GetFieldsCounters done [08:44:41]requested_item shift.num is exist - process it [08:44:41]requested_item shift.opened is exist - process it [08:44:41]req_shift_opened [08:44:41]FM_GetShiftState [08:44:41]SAM_PROTO_GetShiftState [08:44:41]wFMCommunicate request_size=4 [08:44:41]MH_SAM_APDU [08:44:41]CAPDU: 80 13 01 00 [08:44:41]Write to MH i2c: E2 08 00 7A 17 80 13 01 00 00 00 00 00 0E [08:44:41]Write i2c OK [08:44:41]MH_I2C_Read... [08:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:41]Read from MH i2c: E2 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 0E 00 [08:44:41]MH_I2C_Read... [08:44:41]Read from MH i2c: E2 0E 00 7A 17 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9F [08:44:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:44:41]wFMCommunicate OK [08:44:41]SAM_PROTO_GetShiftState done [08:44:41]FM_GetShiftState done [08:44:41]req_shift_opened done [08:44:41]requested_item shift.open_date is exist - process it [08:44:41]req_shift_open_date [08:44:41]req_shift_open_date done [08:44:41]produce_requested_data done [08:44:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139566,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:44:41]process_action_free close_receipt [08:44:41]json_value_free [08:44:41]json_value_free done [08:44:41]process_json_proto returns [08:44:41]Send response to host [08:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139566,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:44:41]free response buf [08:44:41]execute_script done [08:44:41]execute_script returns [08:44:41]free content buf [08:44:41]Sock 7.Close socket [08:44:41]Sock 7.Thread stoped [08:44:42]int [08:44:42]Write to MH i2c: 01 00 00 7B 17 92 [08:44:42]*** FLAG_PRN_KEY set [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 7B 17 00 08 00 00 00 FF 0F AF [08:44:42]state=0 [08:44:42]Key pressed [08:44:42]Feed [08:44:42]Write to MH i2c: D8 00 00 7C 17 6A [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: D8 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: D8 01 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: D8 01 00 7C 17 00 6B [08:44:42]int [08:44:42]Write to MH i2c: 01 00 00 7D 17 94 [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 7D 17 00 48 00 00 00 3C 00 1F [08:44:42]state=2 [08:44:42]Key pressed [08:44:42]int [08:44:42]Write to MH i2c: 01 00 00 7E 17 95 [08:44:42]*** FLAG_PRN_KEY reset [08:44:42]Write i2c OK [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 [08:44:42]MH_I2C_Read... [08:44:42]Read from MH i2c: 01 07 00 7E 17 00 00 00 00 00 FD 0F A8 [08:44:42]state=2 [08:44:42]Stop feed [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]OFD Sender: No OFD packet to send [08:47:10]OFD Sender: No OFD packet to send [08:47:15]OFD Sender: No OFD packet to send [08:47:17]accept exits with 9 [08:47:17]New connection [08:47:17]New thread 3067071844 created [08:47:17]Thread 3067215204 joined [08:47:17]Waiting for new connection... [08:47:17] Sock 9.Parse request [08:47:17]Sock 9.Check first char [08:47:17]Sock 9.First char is OK [08:47:17]request: POST /json_proto HTTP/1.0 [08:47:17]Method: POST [08:47:17]URL: /json_proto [08:47:17]Method is POST - this is cgi request [08:47:17]url: /json_proto [08:47:17]query_string will be loaded in cgi processing [08:47:17]execute_cgi json_proto POST (null) [08:47:17]execute_cgi path=json_proto method=POST [08:47:17]POST find Content-Length [08:47:17]Host: 172.17.45.67:8080 [08:47:17]Content-Length: 678 [08:47:17]Content-Type: application/json [08:47:17] [08:47:17]POST finish read [08:47:17]Found Content-Length = 678 [08:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.130, "sum" : 890.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:17]execute_script... [08:47: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)593409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.130, "sum" : 890.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:17]POST & json_proto [08:47:17]process_json_proto [08:47:17]json parsed OK: [08:47:17]protocol is kg_v1.0 [08:47:17]action value=close_receipt [08:47:17]process_action close_receipt [08:47:17]cmd_close_receipt [08:47:17]MH_GetDate [08:47:17]Write to MH i2c: F0 00 00 7F 17 85 [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: F0 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: F0 09 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: F0 09 00 7F 17 00 18 58 C4 66 5F 7F 2B 66 97 [08:47:17]GetLastDocTimeStamp 1724143480 [08:47:17]current date 1724143640 [08:47:17]FM_GetShiftState [08:47:17]SAM_PROTO_GetShiftState [08:47:17]wFMCommunicate request_size=4 [08:47:17]MH_SAM_APDU [08:47:17]CAPDU: 80 13 01 00 [08:47:17]Write to MH i2c: E2 08 00 80 17 80 13 01 00 00 00 00 00 14 [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:17]Read from MH i2c: E2 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 0E 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 0E 00 80 17 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A5 [08:47:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:47:17]wFMCommunicate OK [08:47:17]SAM_PROTO_GetShiftState done [08:47:17]FM_GetShiftState done [08:47:17]opened in 1724113785 [08:47:17]opened+sec_in_day 1724200185 [08:47:17]quantity*price = 89021 [08:47:17]sum+1 = 89022 [08:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 890.00 Внесено: 890.00 СДАЧА: 0.00 НСП 1% : 7.88 НДС 12% : 94.54 Наличными: 890.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 39 20.08.2024 08:47 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139567 ФПД: 43526929855284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084720&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139567&fm=43526929855284&tin=02508201610067®Number=0000000000092569&sum=89000 [08:47:18]StoreToDocumentArchive [08:47:18]shift 453 fd 139567 [08:47:18]save to /storage/0453/doc_00139567 [08:47:18]save last doc name /storage/0453/doc_00139567 to /storage/kkm_last_doc_name [08:47:18]save OK [08:47:18]Clear old archive folders... [08:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:18]tlvbuf is B6EE8380 [08:47:18]SAM_PROTO_ClearQueue [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 09 00 00 [08:47:18]Write to MH i2c: E2 08 00 8D 17 80 09 00 00 00 00 00 00 16 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 8D 17 00 90 00 18 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]SAM_PROTO_ClearQueue done [08:47:18]KKMCreateOFDPacket [08:47:18]OFDProtocolAddRootSTLVToBuf [08:47:18]FM_MakeSignedData [08:47:18]FM_MakeSignedData [08:47:18]SAM_PROTO_SignData [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 01 02 [08:47:18]Write to MH i2c: E2 08 00 8E 17 80 0D 01 02 00 00 00 00 1E [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 8E 17 00 90 00 19 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=255 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BD 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 18 58 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 21 02 00 35 04 06 00 27 [08:47:18]Write to MH i2c: E2 02 01 8F 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BD 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 18 58 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 21 02 00 35 04 06 00 27 00 00 8F [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 8F 17 00 90 00 1A [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=10 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 02 02 05 96 67 31 33 34 [08:47:18]Write to MH i2c: E2 0D 00 90 17 80 0D 02 02 05 00 96 67 31 33 34 00 00 C0 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 90 17 00 90 00 1B [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 03 02 [08:47:18]Write to MH i2c: E2 08 00 91 17 80 0D 03 02 00 00 00 00 23 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 0B 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 0B 00 91 17 00 04 CE C3 91 77 70 55 86 90 00 0C [08:47:19]RAPDU: 04 CE C3 91 77 70 55 86 90 00 [08:47:19]wFMCommunicate OK [08:47:19]SAM_PROTO_SignData done [08:47:19]FM_MakeSignedData done [08:47:19]CreateOFDProtocolMessage [08:47:19]wFMCommunicate request_size=4 [08:47:19]MH_SAM_APDU [08:47:19]CAPDU: 80 11 00 00 [08:47:19]Write to MH i2c: E2 08 00 92 17 80 11 00 00 00 00 00 00 23 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 17 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 17 00 92 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [08:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:47:19]wFMCommunicate OK [08:47:19]CreateOFDProtocolMessage done [08:47:19]OFDSenderStorePacket 139567 [08:47:19]StoreOFDPacket docnum=139567 [08:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3A EF 07 01 24 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BD 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 18 58 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 21 02 00 35 04 06 00 27 96 67 31 33 34 04 CE C3 91 77 70 55 86 [08:47:19]CheckFolder [08:47:19]dirname=/storage/ofd_packets [08:47:19]CheckFolder done [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00139567 [08:47:19]NVStorageSaveData ofd_packets/00139567 [08:47:19]File name is /storage/ofd_packets/00139567 [08:47:19]Write 301 bytes [08:47:19]NVStorageSaveData done [08:47:19]OFDSenderStorePacket done [08:47:19]KKMCreateOFDPacket done [08:47:19]NVStorageSaveData kkm_last_timestamp [08:47:19]File name is /storage/kkm_last_timestamp [08:47:19]Write 4 bytes [08:47:19]NVStorageSaveData done [08:47:19]ExternCall_PrintAddStr [08:47:19]wPrintStart [08:47:19]Write to MH i2c: 01 00 00 93 17 AA [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 93 17 00 00 00 00 00 FF 0F BF [08:47:19]RasterBufferAndPrint [08:47:19]line Счет N : (1)593409 [08:47:19]line ИНН: 02508201610067 [08:47:19]line Контрольно-Кассовый Чек [08:47:19]line ПРОДАЖА [08:47:19]line ТРК (МРК, ГНК) : 42 [08:47:19]line Товар: 2710124130 [08:47:19]line Аи-92-К-5 [08:47:19]line 13.130 * 67.80 [08:47:19]line = 890.21 [08:47:19]line НДС 12% НСП 1% [08:47:19]line > о реализуемом товаре [08:47:19]line ОКРУГЛЕНИЕ: -0.21 [08:47:19]line ИТОГО: 890.00 [08:47:19]line Внесено: 890.00 [08:47:19]line СДАЧА: 0.00 [08:47:19]line НСП 1% : 7.88 [08:47:19]line НДС 12% : 94.54 [08:47:19]line Наличными: 890.00 [08:47:19]line Безнал.: 0.00 [08:47:19]line Место: АЗС № 136 "Партнер Нефть" [08:47:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:47:19]line СНО: Общий режим [08:47:19]line Чек 39 20.08.2024 08:47 [08:47:19]line Смена: 453 ФФД: 1.0 [08:47:19]line ЗНМ: 0300000067 [08:47:19]line РНМ: 0000000000092569 [08:47:19]line Версия ККМ: 001 [08:47:19]line ФМ: 0000000000871776 [08:47:19]line ФД: 139567 [08:47:19]line ФПД: 43526929855284 [08:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084720&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139567&fm=43526929855284&tin=02508201610067®Number=0000000000092569&sum=89000 [08:47:19]OFD Sender: Processing packet 139567 [packets to send 137, broken 136] [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00139567 [08:47:19]OFD Sender: To server: pG, [08:47:19]CommunicateWithHost lk.salyk.kg:30040 [08:47:19]ConnectInit lk.salyk.kg [08:47:19]written 0, free lines is 4095 [08:47:19]Connected sock=10 [08:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3A EF 07 01 24 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BD 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 18 58 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 21 02 00 35 04 06 00 27 96 67 31 33 34 04 CE C3 91 77 70 55 86 [08:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A5 37 47 00 1F 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 21 02 00 F4 03 04 00 AB FE C3 66 B6 04 01 00 00 B6 A3 48 D1 22 F3 A8 D3 [08:47:19]CommunicateWithHost err = 0 [08:47:19]CheckOFDResponse [08:47:19]1017 (14) - 77093643461234 [08:47:19]1041 (16) - 0000000000871776 [08:47:19]1040 (4) - 139567 [08:47:19]1012 (4) - 20.08.2024 02:25 [08:47:19]1206 (1) - 0 [08:47:19]OFD Sender: Remove packet 139567 [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00139567 [08:47:19]NVStorageDeleteData [08:47:19]Write to MH i2c: 01 00 00 BE 17 D5 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 BE 17 00 00 00 00 00 DD 0C C5 [08:47:19]RasterBufferAndPrint [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]written 0, free lines is 3299 [08:47:19]MH_Cut [08:47:19]Write to MH i2c: D1 01 00 C5 17 01 AE [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 01 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 01 00 C5 17 00 AD [08:47:19]Write to MH i2c: 01 00 00 C6 17 DD [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:20]OFD Sender: No OFD packet to send [08:47:20]*** Cut start [08:47:20]*** Partial cut [08:47:20]*** CUTSNS_PIN = 1 [08:47:20]*** CUTSNS_PIN = 0 [08:47:20]*** Brake cut motor [08:47:21]Read from MH i2c: 01 [08:47:21]MH_I2C_Read... [08:47:21]*** Stop cut motor [08:47:21]*** Cut end [08:47:21]Read from MH i2c: 01 07 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: 01 07 00 C6 17 00 00 00 00 00 FF 0F F2 [08:47:21]process_action close_receipt done [08:47:21]requested_data is exist [08:47:21]produce_requested_data [08:47:21]requested_item fm.sn is exist - process it [08:47:21]wFMCommunicate request_size=4 [08:47:21]MH_SAM_APDU [08:47:21]CAPDU: 80 11 00 00 [08:47:21]Write to MH i2c: E2 08 00 C7 17 80 11 00 00 00 00 00 00 58 [08:47:21]Write i2c OK [08:47:21]MH_I2C_Read... [08:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:21]Read from MH i2c: E2 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: E2 17 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: E2 17 00 C7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AF [08:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:47:21]wFMCommunicate OK [08:47:21]requested_item fd.num is exist - process it [08:47:21]SAM_PROTO_GetFieldsCounters [08:47:21]wFMCommunicate request_size=4 [08:47:21]MH_SAM_APDU [08:47:21]CAPDU: 80 13 00 00 [08:47:21]Write to MH i2c: E2 08 00 C8 17 80 13 00 00 00 00 00 00 5B [08:47:21]Write i2c OK [08:47:21]MH_I2C_Read... [08:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:21]Read from MH i2c: E2 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: E2 62 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: E2 62 00 C8 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [08:47:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:21]wFMCommunicate OK [08:47:21]SAM_PROTO_GetFieldsCounters done [08:47:21]requested_item shift.num is exist - process it [08:47:21]requested_item shift.opened is exist - process it [08:47:21]req_shift_opened [08:47:21]FM_GetShiftState [08:47:21]SAM_PROTO_GetShiftState [08:47:21]wFMCommunicate request_size=4 [08:47:21]MH_SAM_APDU [08:47:21]CAPDU: 80 13 01 00 [08:47:21]Write to MH i2c: E2 08 00 C9 17 80 13 01 00 00 00 00 00 5D [08:47:21]Write i2c OK [08:47:21]MH_I2C_Read... [08:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:21]Read from MH i2c: E2 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: E2 0E 00 [08:47:21]MH_I2C_Read... [08:47:21]Read from MH i2c: E2 0E 00 C9 17 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EE [08:47:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:47:21]wFMCommunicate OK [08:47:21]SAM_PROTO_GetShiftState done [08:47:21]FM_GetShiftState done [08:47:21]req_shift_opened done [08:47:21]requested_item shift.open_date is exist - process it [08:47:21]req_shift_open_date [08:47:21]req_shift_open_date done [08:47:21]produce_requested_data done [08:47:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139567,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:47:21]process_action_free close_receipt [08:47:21]json_value_free [08:47:21]json_value_free done [08:47:21]process_json_proto returns [08:47:21]Send response to host [08:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139567,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:47:21]free response buf [08:47:21]execute_script done [08:47:21]execute_script returns [08:47:21]free content buf [08:47:21]Sock 9.Close socket [08:47:21]Sock 9.Thread stoped [08:47:25]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:25]accept exits with 7 [08:49:25]New connection [08:49:25]New thread 3067215204 created [08:49:25]Thread 3067071844 joined [08:49:25]Waiting for new connection... [08:49:25] Sock 7.Parse request [08:49:25]Sock 7.Check first char [08:49:25]Sock 7.First char is OK [08:49:25]request: POST /json_proto HTTP/1.0 [08:49:25]Method: POST [08:49:25]URL: /json_proto [08:49:25]Method is POST - this is cgi request [08:49:25]url: /json_proto [08:49:25]query_string will be loaded in cgi processing [08:49:25]execute_cgi json_proto POST (null) [08:49:25]execute_cgi path=json_proto method=POST [08:49:25]POST find Content-Length [08:49:25]Host: 172.17.45.67:8080 [08:49:25]Content-Length: 658 [08:49:25]Content-Type: application/json [08:49:25] [08:49:25]POST finish read [08:49:25]Found Content-Length = 658 [08:49:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:25]execute_script... [08:49: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)593410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:25]POST & json_proto [08:49:25]process_json_proto [08:49:25]json parsed OK: [08:49:25]protocol is kg_v1.0 [08:49:25]action value=close_receipt [08:49:25]process_action close_receipt [08:49:25]cmd_close_receipt [08:49:25]MH_GetDate [08:49:25]Write to MH i2c: F0 00 00 CA 17 D0 [08:49:25]Write i2c OK [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: F0 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: F0 09 00 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: F0 09 00 CA 17 00 98 58 C4 66 5F 7F 2B 66 62 [08:49:25]GetLastDocTimeStamp 1724143640 [08:49:25]current date 1724143768 [08:49:25]FM_GetShiftState [08:49:25]SAM_PROTO_GetShiftState [08:49:25]wFMCommunicate request_size=4 [08:49:25]MH_SAM_APDU [08:49:25]CAPDU: 80 13 01 00 [08:49:25]Write to MH i2c: E2 08 00 CB 17 80 13 01 00 00 00 00 00 5F [08:49:25]Write i2c OK [08:49:25]MH_I2C_Read... [08:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:25]Read from MH i2c: E2 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 0E 00 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 0E 00 CB 17 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F0 [08:49:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:49:25]wFMCommunicate OK [08:49:25]SAM_PROTO_GetShiftState done [08:49:25]FM_GetShiftState done [08:49:25]opened in 1724113785 [08:49:25]opened+sec_in_day 1724200185 [08:49:25]quantity*price = 50017 [08:49:25]sum+1 = 50019 [08:49:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 40 20.08.2024 08:49 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139568 ФПД: 228646432229166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139568&fm=228646432229166&tin=02508201610067®Number=0000000000092569&sum=50000 [08:49:27]StoreToDocumentArchive [08:49:27]shift 453 fd 139568 [08:49:27]save to /storage/0453/doc_00139568 [08:49:27]save last doc name /storage/0453/doc_00139568 to /storage/kkm_last_doc_name [08:49:27]save OK [08:49:27]Clear old archive folders... [08:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:49:27]tlvbuf is 00DB0A70 [08:49:27]SAM_PROTO_ClearQueue [08:49:27]wFMCommunicate request_size=4 [08:49:27]MH_SAM_APDU [08:49:27]CAPDU: 80 09 00 00 [08:49:27]Write to MH i2c: E2 08 00 D8 17 80 09 00 00 00 00 00 00 61 [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:27]Read from MH i2c: E2 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 03 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 03 00 D8 17 00 90 00 63 [08:49:27]RAPDU: 90 00 [08:49:27]wFMCommunicate OK [08:49:27]SAM_PROTO_ClearQueue done [08:49:27]KKMCreateOFDPacket [08:49:27]OFDProtocolAddRootSTLVToBuf [08:49:27]FM_MakeSignedData [08:49:27]FM_MakeSignedData [08:49:27]SAM_PROTO_SignData [08:49:27]wFMCommunicate request_size=4 [08:49:27]MH_SAM_APDU [08:49:27]CAPDU: 80 0D 01 02 [08:49:27]Write to MH i2c: E2 08 00 D9 17 80 0D 01 02 00 00 00 00 69 [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:27]Read from MH i2c: E2 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 03 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 03 00 D9 17 00 90 00 64 [08:49:27]RAPDU: 90 00 [08:49:27]wFMCommunicate OK [08:49:27]wFMCommunicate request_size=253 [08:49:27]MH_SAM_APDU [08:49:27]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 00 00 00 F4 03 04 00 98 58 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 21 02 00 35 04 06 00 CF F3 E5 5F 47 2E [08:49:27]Write to MH i2c: E2 00 01 DA 17 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 00 00 00 F4 03 04 00 98 58 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 21 02 00 35 04 06 00 CF F3 E5 5F 47 2E 00 00 58 [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:27]Read from MH i2c: E2 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 03 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [08:49:27]RAPDU: 90 00 [08:49:27]wFMCommunicate OK [08:49:27]wFMCommunicate request_size=4 [08:49:27]MH_SAM_APDU [08:49:27]CAPDU: 80 0D 03 02 [08:49:27]Write to MH i2c: E2 08 00 DB 17 80 0D 03 02 00 00 00 00 6D [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:27]Read from MH i2c: E2 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 0B 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 0B 00 DB 17 00 59 B0 54 3E 57 66 C0 88 90 00 0E [08:49:27]RAPDU: 59 B0 54 3E 57 66 C0 88 90 00 [08:49:27]wFMCommunicate OK [08:49:27]SAM_PROTO_SignData done [08:49:27]FM_MakeSignedData done [08:49:27]CreateOFDProtocolMessage [08:49:27]wFMCommunicate request_size=4 [08:49:27]MH_SAM_APDU [08:49:27]CAPDU: 80 11 00 00 [08:49:27]Write to MH i2c: E2 08 00 DC 17 80 11 00 00 00 00 00 00 6D [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:27]Read from MH i2c: E2 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 17 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 17 00 DC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [08:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:49:27]wFMCommunicate OK [08:49:27]CreateOFDProtocolMessage done [08:49:27]OFDSenderStorePacket 139568 [08:49:27]StoreOFDPacket docnum=139568 [08:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 C2 E6 00 01 41 5F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 00 00 00 F4 03 04 00 98 58 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 21 02 00 35 04 06 00 CF F3 E5 5F 47 2E 59 B0 54 3E 57 66 C0 88 [08:49:27]CheckFolder [08:49:27]dirname=/storage/ofd_packets [08:49:27]CheckFolder done [08:49:27]ProducePacketName [08:49:27]name=ofd_packets/00139568 [08:49:27]NVStorageSaveData ofd_packets/00139568 [08:49:27]File name is /storage/ofd_packets/00139568 [08:49:27]Write 294 bytes [08:49:27]NVStorageSaveData done [08:49:27]OFDSenderStorePacket done [08:49:27]KKMCreateOFDPacket done [08:49:27]NVStorageSaveData kkm_last_timestamp [08:49:27]File name is /storage/kkm_last_timestamp [08:49:27]Write 4 bytes [08:49:27]NVStorageSaveData done [08:49:27]ExternCall_PrintAddStr [08:49:27]wPrintStart [08:49:27]Write to MH i2c: 01 00 00 DD 17 F4 [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 07 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 07 00 DD 17 00 00 00 00 00 FF 0F 09 [08:49:27]RasterBufferAndPrint [08:49:27]line Счет N : (1)593410 [08:49:27]line ИНН: 02508201610067 [08:49:27]line Контрольно-Кассовый Чек [08:49:27]line ПРОДАЖА [08:49:27]line ТРК (МРК, ГНК) : 33 [08:49:27]line Товар: 2710124130 [08:49:27]line SU-92 [08:49:27]line 7.270 * 68.80 [08:49:27]line = 500.18 [08:49:27]line НДС 12% НСП 1% [08:49:27]line > о реализуемом товаре [08:49:27]line ОКРУГЛЕНИЕ: -0.18 [08:49:27]line ИТОГО: 500.00 [08:49:27]line Внесено: 500.00 [08:49:27]line СДАЧА: 0.00 [08:49:27]line НСП 1% : 4.43 [08:49:27]line НДС 12% : 53.12 [08:49:27]line Наличными: 500.00 [08:49:27]line Безнал.: 0.00 [08:49:27]line Место: АЗС № 136 "Партнер Нефть" [08:49:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:49:27]line СНО: Общий режим [08:49:27]line Чек 40 20.08.2024 08:49 [08:49:27]line Смена: 453 ФФД: 1.0 [08:49:27]line ЗНМ: 0300000067 [08:49:27]line РНМ: 0000000000092569 [08:49:27]line Версия ККМ: 001 [08:49:27]line ФМ: 0000000000871776 [08:49:27]line ФД: 139568 [08:49:27]line ФПД: 228646432229166 [08:49:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T084928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139568&fm=228646432229166&tin=02508201610067®Number=0000000000092569&sum=50000 [08:49:27]OFD Sender: Processing packet 139568 [packets to send 137, broken 136] [08:49:27]ProducePacketName [08:49:27]name=ofd_packets/00139568 [08:49:27]OFD Sender: To server: pG, [08:49:27]CommunicateWithHost lk.salyk.kg:30040 [08:49:27]ConnectInit lk.salyk.kg [08:49:27]written 0, free lines is 4095 [08:49:28]Connected sock=10 [08:49:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 C2 E6 00 01 41 5F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 00 00 00 F4 03 04 00 98 58 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 21 02 00 35 04 06 00 CF F3 E5 5F 47 2E 59 B0 54 3E 57 66 C0 88 [08:49:28]Write to MH i2c: 01 00 00 08 18 20 [08:49:28]Write i2c OK [08:49:28]MH_I2C_Read... [08:49:28]Read from MH i2c: 01 [08:49:28]MH_I2C_Read... [08:49:28]Read from MH i2c: 01 07 00 [08:49:28]MH_I2C_Read... [08:49:28]Read from MH i2c: 01 07 00 08 18 00 00 00 00 00 CE 0C 01 [08:49:28]RasterBufferAndPrint [08:49:28]line [08:49:28]line [08:49:28]line [08:49:28]line [08:49:28]line [08:49:28]written 0, free lines is 3282 [08:49:28]MH_Cut [08:49:28]Write to MH i2c: D1 01 00 0F 18 01 F9 [08:49:28]Write i2c OK [08:49:28]MH_I2C_Read... [08:49:28]Read from MH i2c: D1 [08:49:28]MH_I2C_Read... [08:49:28]Read from MH i2c: D1 01 00 [08:49:28]MH_I2C_Read... [08:49:28]Read from MH i2c: D1 01 00 0F 18 00 F8 [08:49:28]Write to MH i2c: 01 00 00 10 18 28 [08:49:28]Write i2c OK [08:49:28]MH_I2C_Read... [08:49:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 9F 32 47 00 E1 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 21 02 00 F4 03 04 00 2C FF C3 66 B6 04 01 00 00 87 6D FE 0D 8B BD 33 A9 [08:49:28]CommunicateWithHost err = 0 [08:49:28]CheckOFDResponse [08:49:28]1017 (14) - 77093643461234 [08:49:28]1041 (16) - 0000000000871776 [08:49:28]1040 (4) - 139568 [08:49:28]1012 (4) - 20.08.2024 02:27 [08:49:28]1206 (1) - 0 [08:49:28]OFD Sender: Remove packet 139568 [08:49:28]ProducePacketName [08:49:28]name=ofd_packets/00139568 [08:49:28]NVStorageDeleteData [08:49:28]OFD Sender: No OFD packet to send [08:49:29]*** Cut start [08:49:29]*** Partial cut [08:49:29]*** CUTSNS_PIN = 1 [08:49:29]*** CUTSNS_PIN = 0 [08:49:29]*** Brake cut motor [08:49:29]Read from MH i2c: 01 [08:49:29]MH_I2C_Read... [08:49:29]*** Stop cut motor [08:49:29]*** Cut end [08:49:29]Read from MH i2c: 01 07 00 [08:49:29]MH_I2C_Read... [08:49:29]Read from MH i2c: 01 07 00 10 18 00 00 00 00 00 FF 0F 3D [08:49:29]process_action close_receipt done [08:49:29]requested_data is exist [08:49:29]produce_requested_data [08:49:29]requested_item fm.sn is exist - process it [08:49:29]wFMCommunicate request_size=4 [08:49:29]MH_SAM_APDU [08:49:29]CAPDU: 80 11 00 00 [08:49:29]Write to MH i2c: E2 08 00 11 18 80 11 00 00 00 00 00 00 A3 [08:49:29]Write i2c OK [08:49:29]MH_I2C_Read... [08:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:29]Read from MH i2c: E2 [08:49:29]MH_I2C_Read... [08:49:29]Read from MH i2c: E2 17 00 [08:49:29]MH_I2C_Read... [08:49:29]Read from MH i2c: E2 17 00 11 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [08:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:49:29]wFMCommunicate OK [08:49:29]requested_item fd.num is exist - process it [08:49:29]SAM_PROTO_GetFieldsCounters [08:49:29]wFMCommunicate request_size=4 [08:49:29]MH_SAM_APDU [08:49:29]CAPDU: 80 13 00 00 [08:49:29]Write to MH i2c: E2 08 00 12 18 80 13 00 00 00 00 00 00 A6 [08:49:29]Write i2c OK [08:49:29]MH_I2C_Read... [08:49:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:29]Read from MH i2c: E2 [08:49:29]MH_I2C_Read... [08:49:29]Read from MH i2c: E2 62 00 [08:49:29]MH_I2C_Read... [08:49:29]Read from MH i2c: E2 62 00 12 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 30 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [08:49:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 30 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:29]wFMCommunicate OK [08:49:29]SAM_PROTO_GetFieldsCounters done [08:49:29]requested_item shift.num is exist - process it [08:49:29]requested_item shift.opened is exist - process it [08:49:29]req_shift_opened [08:49:29]FM_GetShiftState [08:49:29]SAM_PROTO_GetShiftState [08:49:29]wFMCommunicate request_size=4 [08:49:29]MH_SAM_APDU [08:49:29]CAPDU: 80 13 01 00 [08:49:29]Write to MH i2c: E2 08 00 13 18 80 13 01 00 00 00 00 00 A8 [08:49:29]Write i2c OK [08:49:29]MH_I2C_Read... [08:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:29]Read from MH i2c: E2 [08:49:29]MH_I2C_Read... [08:49:29]Read from MH i2c: E2 0E 00 [08:49:29]MH_I2C_Read... [08:49:29]Read from MH i2c: E2 0E 00 13 18 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 39 [08:49:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:49:29]wFMCommunicate OK [08:49:29]SAM_PROTO_GetShiftState done [08:49:29]FM_GetShiftState done [08:49:29]req_shift_opened done [08:49:29]requested_item shift.open_date is exist - process it [08:49:29]req_shift_open_date [08:49:29]req_shift_open_date done [08:49:29]produce_requested_data done [08:49:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139568,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:49:29]process_action_free close_receipt [08:49:29]json_value_free [08:49:29]json_value_free done [08:49:29]process_json_proto returns [08:49:29]Send response to host [08:49:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139568,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:49:29]free response buf [08:49:29]execute_script done [08:49:29]execute_script returns [08:49:29]free content buf [08:49:29]Sock 7.Close socket [08:49:29]Sock 7.Thread stoped [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:19]accept exits with 9 [08:52:19]New connection [08:52:19]New thread 3067071844 created [08:52:19]Thread 3067215204 joined [08:52:19]Waiting for new connection... [08:52:19] Sock 9.Parse request [08:52:19]Sock 9.Check first char [08:52:19]Sock 9.First char is OK [08:52:19]request: POST /json_proto HTTP/1.0 [08:52:19]Method: POST [08:52:19]URL: /json_proto [08:52:19]Method is POST - this is cgi request [08:52:19]url: /json_proto [08:52:19]query_string will be loaded in cgi processing [08:52:19]execute_cgi json_proto POST (null) [08:52:19]execute_cgi path=json_proto method=POST [08:52:19]POST find Content-Length [08:52:19]Host: 172.17.45.67:8080 [08:52:19]Content-Length: 678 [08:52:19]Content-Type: application/json [08:52:19] [08:52:19]POST finish read [08:52:19]Found Content-Length = 678 [08:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:19]execute_script... [08:52:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:19]POST & json_proto [08:52:19]process_json_proto [08:52:19]json parsed OK: [08:52:19]protocol is kg_v1.0 [08:52:19]action value=close_receipt [08:52:19]process_action close_receipt [08:52:19]cmd_close_receipt [08:52:19]MH_GetDate [08:52:19]Write to MH i2c: F0 00 00 14 18 1B [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 09 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 09 00 14 18 00 45 59 C4 66 5F 7F 2B 66 5B [08:52:19]GetLastDocTimeStamp 1724143768 [08:52:19]current date 1724143941 [08:52:19]FM_GetShiftState [08:52:19]SAM_PROTO_GetShiftState [08:52:19]wFMCommunicate request_size=4 [08:52:19]MH_SAM_APDU [08:52:19]CAPDU: 80 13 01 00 [08:52:19]Write to MH i2c: E2 08 00 15 18 80 13 01 00 00 00 00 00 AA [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:19]Read from MH i2c: E2 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 0E 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 0E 00 15 18 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3B [08:52:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:52:19]wFMCommunicate OK [08:52:19]SAM_PROTO_GetShiftState done [08:52:19]FM_GetShiftState done [08:52:19]opened in 1724113785 [08:52:19]opened+sec_in_day 1724200185 [08:52:19]quantity*price = 70037 [08:52:19]sum+1 = 70038 [08:52:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 41 20.08.2024 08:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139569 ФПД: 106552361981215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085221&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139569&fm=106552361981215&tin=02508201610067®Number=0000000000092569&sum=70000 [08:52:20]StoreToDocumentArchive [08:52:20]shift 453 fd 139569 [08:52:20]save to /storage/0453/doc_00139569 [08:52:20]save last doc name /storage/0453/doc_00139569 to /storage/kkm_last_doc_name [08:52:20]save OK [08:52:20]Clear old archive folders... [08:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:20]tlvbuf is 00D89470 [08:52:20]SAM_PROTO_ClearQueue [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 09 00 00 [08:52:20]Write to MH i2c: E2 08 00 22 18 80 09 00 00 00 00 00 00 AC [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 22 18 00 90 00 AE [08:52:20]RAPDU: 90 00 [08:52:20]wFMCommunicate OK [08:52:20]SAM_PROTO_ClearQueue done [08:52:20]KKMCreateOFDPacket [08:52:20]OFDProtocolAddRootSTLVToBuf [08:52:20]FM_MakeSignedData [08:52:20]FM_MakeSignedData [08:52:20]SAM_PROTO_SignData [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 0D 01 02 [08:52:20]Write to MH i2c: E2 08 00 23 18 80 0D 01 02 00 00 00 00 B4 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [08:52:20]RAPDU: 90 00 [08:52:20]wFMCommunicate OK [08:52:20]wFMCommunicate request_size=255 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 45 59 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 21 02 00 35 04 06 00 60 [08:52:20]Write to MH i2c: E2 02 01 24 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 45 59 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 21 02 00 35 04 06 00 60 00 00 8F [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 24 18 00 90 00 B0 [08:52:20]RAPDU: 90 00 [08:52:20]wFMCommunicate OK [08:52:20]wFMCommunicate request_size=10 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 0D 02 02 05 E8 A7 AF 95 1F [08:52:20]Write to MH i2c: E2 0D 00 25 18 80 0D 02 02 05 00 E8 A7 AF 95 1F 00 00 B3 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [08:52:20]RAPDU: 90 00 [08:52:20]wFMCommunicate OK [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 0D 03 02 [08:52:20]Write to MH i2c: E2 08 00 26 18 80 0D 03 02 00 00 00 00 B9 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 0B 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 0B 00 26 18 00 61 95 91 B5 01 CA 65 C0 90 00 E6 [08:52:20]RAPDU: 61 95 91 B5 01 CA 65 C0 90 00 [08:52:20]wFMCommunicate OK [08:52:20]SAM_PROTO_SignData done [08:52:20]FM_MakeSignedData done [08:52:20]CreateOFDProtocolMessage [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 11 00 00 [08:52:20]Write to MH i2c: E2 08 00 27 18 80 11 00 00 00 00 00 00 B9 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 17 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 17 00 27 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [08:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:52:20]wFMCommunicate OK [08:52:20]CreateOFDProtocolMessage done [08:52:20]OFDSenderStorePacket 139569 [08:52:20]StoreOFDPacket docnum=139569 [08:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 0F 07 01 37 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 45 59 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 21 02 00 35 04 06 00 60 E8 A7 AF 95 1F 61 95 91 B5 01 CA 65 C0 [08:52:20]CheckFolder [08:52:20]dirname=/storage/ofd_packets [08:52:20]CheckFolder done [08:52:20]ProducePacketName [08:52:20]name=ofd_packets/00139569 [08:52:20]NVStorageSaveData ofd_packets/00139569 [08:52:20]File name is /storage/ofd_packets/00139569 [08:52:20]Write 301 bytes [08:52:20]NVStorageSaveData done [08:52:20]OFDSenderStorePacket done [08:52:20]KKMCreateOFDPacket done [08:52:20]NVStorageSaveData kkm_last_timestamp [08:52:20]File name is /storage/kkm_last_timestamp [08:52:20]Write 4 bytes [08:52:20]NVStorageSaveData done [08:52:20]ExternCall_PrintAddStr [08:52:20]wPrintStart [08:52:20]Write to MH i2c: 01 00 00 28 18 40 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: 01 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: 01 07 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: 01 07 00 28 18 00 00 00 00 00 FF 0F 55 [08:52:20]RasterBufferAndPrint [08:52:20]line Счет N : (1)593411 [08:52:20]line ИНН: 02508201610067 [08:52:20]line Контрольно-Кассовый Чек [08:52:20]line ПРОДАЖА [08:52:20]line ТРК (МРК, ГНК) : 32 [08:52:20]line Товар: 2710124130 [08:52:20]line Аи-92-К-5 [08:52:20]line 10.330 * 67.80 [08:52:20]line = 700.37 [08:52:20]line НДС 12% НСП 1% [08:52:20]line > о реализуемом товаре [08:52:20]line ОКРУГЛЕНИЕ: -0.37 [08:52:20]line ИТОГО: 700.00 [08:52:20]line Внесено: 700.00 [08:52:20]line СДАЧА: 0.00 [08:52:20]line НСП 1% : 6.20 [08:52:20]line НДС 12% : 74.38 [08:52:20]line Наличными: 700.00 [08:52:20]line Безнал.: 0.00 [08:52:20]line Место: АЗС № 136 "Партнер Нефть" [08:52:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:52:20]line СНО: Общий режим [08:52:20]line Чек 41 20.08.2024 08:52 [08:52:20]line Смена: 453 ФФД: 1.0 [08:52:20]line ЗНМ: 0300000067 [08:52:20]line РНМ: 0000000000092569 [08:52:20]line Версия ККМ: 001 [08:52:20]line ФМ: 0000000000871776 [08:52:20]line ФД: 139569 [08:52:20]line ФПД: 106552361981215 [08:52:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085221&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139569&fm=106552361981215&tin=02508201610067®Number=0000000000092569&sum=70000 [08:52:21]OFD Sender: Processing packet 139569 [packets to send 137, broken 136] [08:52:21]ProducePacketName [08:52:21]name=ofd_packets/00139569 [08:52:21]OFD Sender: To server: pG, [08:52:21]CommunicateWithHost lk.salyk.kg:30040 [08:52:21]ConnectInit lk.salyk.kg [08:52:21]written 0, free lines is 4095 [08:52:21]Connected sock=7 [08:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 0F 07 01 37 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 45 59 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 21 02 00 35 04 06 00 60 E8 A7 AF 95 1F 61 95 91 B5 01 CA 65 C0 [08:52:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3F 89 47 00 AE 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 21 02 00 F4 03 04 00 D9 FF C3 66 B6 04 01 00 00 4D E5 BC B3 E2 38 AA 5B [08:52:21]CommunicateWithHost err = 0 [08:52:21]CheckOFDResponse [08:52:21]1017 (14) - 77093643461234 [08:52:21]1041 (16) - 0000000000871776 [08:52:21]1040 (4) - 139569 [08:52:21]1012 (4) - 20.08.2024 02:30 [08:52:21]1206 (1) - 0 [08:52:21]OFD Sender: Remove packet 139569 [08:52:21]ProducePacketName [08:52:21]name=ofd_packets/00139569 [08:52:21]NVStorageDeleteData [08:52:21]Write to MH i2c: 01 00 00 53 18 6B [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 07 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 07 00 53 18 00 00 00 00 00 CD 0C 4B [08:52:21]RasterBufferAndPrint [08:52:21]line [08:52:21]line [08:52:21]line [08:52:21]line [08:52:21]line [08:52:21]written 0, free lines is 3284 [08:52:21]MH_Cut [08:52:21]Write to MH i2c: D1 01 00 5A 18 01 44 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: D1 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: D1 01 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: D1 01 00 5A 18 00 43 [08:52:21]Write to MH i2c: 01 00 00 5B 18 73 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:22]OFD Sender: No OFD packet to send [08:52:22]*** Cut start [08:52:22]*** Partial cut [08:52:22]*** CUTSNS_PIN = 1 [08:52:22]*** CUTSNS_PIN = 0 [08:52:22]*** Brake cut motor [08:52:22]Read from MH i2c: 01 [08:52:22]MH_I2C_Read... [08:52:22]*** Stop cut motor [08:52:22]*** Cut end [08:52:22]Read from MH i2c: 01 07 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 07 00 5B 18 00 00 00 00 00 FF 0F 88 [08:52:22]process_action close_receipt done [08:52:22]requested_data is exist [08:52:22]produce_requested_data [08:52:22]requested_item fm.sn is exist - process it [08:52:22]wFMCommunicate request_size=4 [08:52:22]MH_SAM_APDU [08:52:22]CAPDU: 80 11 00 00 [08:52:22]Write to MH i2c: E2 08 00 5C 18 80 11 00 00 00 00 00 00 EE [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:22]Read from MH i2c: E2 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 17 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 17 00 5C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [08:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:52:22]wFMCommunicate OK [08:52:22]requested_item fd.num is exist - process it [08:52:22]SAM_PROTO_GetFieldsCounters [08:52:22]wFMCommunicate request_size=4 [08:52:22]MH_SAM_APDU [08:52:22]CAPDU: 80 13 00 00 [08:52:22]Write to MH i2c: E2 08 00 5D 18 80 13 00 00 00 00 00 00 F1 [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:23]Read from MH i2c: E2 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 62 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 62 00 5D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 31 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [08:52:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 31 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:23]wFMCommunicate OK [08:52:23]SAM_PROTO_GetFieldsCounters done [08:52:23]requested_item shift.num is exist - process it [08:52:23]requested_item shift.opened is exist - process it [08:52:23]req_shift_opened [08:52:23]FM_GetShiftState [08:52:23]SAM_PROTO_GetShiftState [08:52:23]wFMCommunicate request_size=4 [08:52:23]MH_SAM_APDU [08:52:23]CAPDU: 80 13 01 00 [08:52:23]Write to MH i2c: E2 08 00 5E 18 80 13 01 00 00 00 00 00 F3 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:23]Read from MH i2c: E2 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 0E 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 0E 00 5E 18 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 84 [08:52:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:52:23]wFMCommunicate OK [08:52:23]SAM_PROTO_GetShiftState done [08:52:23]FM_GetShiftState done [08:52:23]req_shift_opened done [08:52:23]requested_item shift.open_date is exist - process it [08:52:23]req_shift_open_date [08:52:23]req_shift_open_date done [08:52:23]produce_requested_data done [08:52:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139569,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:52:23]process_action_free close_receipt [08:52:23]json_value_free [08:52:23]json_value_free done [08:52:23]process_json_proto returns [08:52:23]Send response to host [08:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139569,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:52:23]free response buf [08:52:23]execute_script done [08:52:23]execute_script returns [08:52:23]free content buf [08:52:23]Sock 9.Close socket [08:52:23]Sock 9.Thread stoped [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:40]accept exits with 10 [08:52:40]New connection [08:52:40]New thread 3067215204 created [08:52:40]Thread 3067071844 joined [08:52:40]Waiting for new connection... [08:52:40] Sock 10.Parse request [08:52:40]Sock 10.Check first char [08:52:40]Sock 10.First char is OK [08:52:40]request: POST /json_proto HTTP/1.0 [08:52:40]Method: POST [08:52:40]URL: /json_proto [08:52:40]Method is POST - this is cgi request [08:52:40]url: /json_proto [08:52:40]query_string will be loaded in cgi processing [08:52:40]execute_cgi json_proto POST (null) [08:52:40]execute_cgi path=json_proto method=POST [08:52:40]POST find Content-Length [08:52:40]Host: 172.17.45.67:8080 [08:52:40]Content-Length: 677 [08:52:40]Content-Type: application/json [08:52:40] [08:52:40]POST finish read [08:52:40]Found Content-Length = 677 [08:52:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:40]execute_script... [08:52: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)593412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:40]POST & json_proto [08:52:40]process_json_proto [08:52:40]json parsed OK: [08:52:40]protocol is kg_v1.0 [08:52:40]action value=close_receipt [08:52:40]process_action close_receipt [08:52:40]cmd_close_receipt [08:52:40]MH_GetDate [08:52:40]Write to MH i2c: F0 00 00 5F 18 66 [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: F0 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: F0 09 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: F0 09 00 5F 18 00 5B 59 C4 66 5F 7F 2B 66 BC [08:52:40]GetLastDocTimeStamp 1724143941 [08:52:40]current date 1724143963 [08:52:40]FM_GetShiftState [08:52:40]SAM_PROTO_GetShiftState [08:52:40]wFMCommunicate request_size=4 [08:52:40]MH_SAM_APDU [08:52:40]CAPDU: 80 13 01 00 [08:52:40]Write to MH i2c: E2 08 00 60 18 80 13 01 00 00 00 00 00 F5 [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:40]Read from MH i2c: E2 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 0E 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 0E 00 60 18 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 86 [08:52:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:52:40]wFMCommunicate OK [08:52:40]SAM_PROTO_GetShiftState done [08:52:40]FM_GetShiftState done [08:52:40]opened in 1724113785 [08:52:40]opened+sec_in_day 1724200185 [08:52:40]quantity*price = 20034 [08:52:40]sum+1 = 20035 [08:52:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 42 20.08.2024 08:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139570 ФПД: 141073985647382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085243&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139570&fm=141073985647382&tin=02508201610067®Number=0000000000092569&sum=20000 [08:52:41]StoreToDocumentArchive [08:52:41]shift 453 fd 139570 [08:52:41]save to /storage/0453/doc_00139570 [08:52:41]save last doc name /storage/0453/doc_00139570 to /storage/kkm_last_doc_name [08:52:41]save OK [08:52:41]Clear old archive folders... [08:52:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:41]tlvbuf is 00DA9670 [08:52:41]SAM_PROTO_ClearQueue [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 09 00 00 [08:52:41]Write to MH i2c: E2 08 00 6D 18 80 09 00 00 00 00 00 00 F7 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 6D 18 00 90 00 F9 [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_ClearQueue done [08:52:41]KKMCreateOFDPacket [08:52:41]OFDProtocolAddRootSTLVToBuf [08:52:41]FM_MakeSignedData [08:52:41]FM_MakeSignedData [08:52:41]SAM_PROTO_SignData [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 01 02 [08:52:41]Write to MH i2c: E2 08 00 6E 18 80 0D 01 02 00 00 00 00 FF [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]wFMCommunicate request_size=255 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5B 59 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 21 02 00 35 04 06 00 80 [08:52:41]Write to MH i2c: E2 02 01 6F 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5B 59 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 21 02 00 35 04 06 00 80 00 00 DC [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]wFMCommunicate request_size=10 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 02 02 05 4E 58 CD 33 16 [08:52:41]Write to MH i2c: E2 0D 00 70 18 80 0D 02 02 05 00 4E 58 CD 33 16 00 00 C8 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 03 02 [08:52:41]Write to MH i2c: E2 08 00 71 18 80 0D 03 02 00 00 00 00 04 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0B 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0B 00 71 18 00 5E 1C 15 07 A1 C1 A0 1F 90 00 BC [08:52:41]RAPDU: 5E 1C 15 07 A1 C1 A0 1F 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_SignData done [08:52:41]FM_MakeSignedData done [08:52:41]CreateOFDProtocolMessage [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 11 00 00 [08:52:41]Write to MH i2c: E2 08 00 72 18 80 11 00 00 00 00 00 00 04 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 72 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [08:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:52:41]wFMCommunicate OK [08:52:41]CreateOFDProtocolMessage done [08:52:41]OFDSenderStorePacket 139570 [08:52:41]StoreOFDPacket docnum=139570 [08:52:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 0C 07 01 E7 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5B 59 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 21 02 00 35 04 06 00 80 4E 58 CD 33 16 5E 1C 15 07 A1 C1 A0 1F [08:52:41]CheckFolder [08:52:41]dirname=/storage/ofd_packets [08:52:41]CheckFolder done [08:52:41]ProducePacketName [08:52:41]name=ofd_packets/00139570 [08:52:41]NVStorageSaveData ofd_packets/00139570 [08:52:41]File name is /storage/ofd_packets/00139570 [08:52:41]Write 301 bytes [08:52:41]NVStorageSaveData done [08:52:41]OFDSenderStorePacket done [08:52:41]KKMCreateOFDPacket done [08:52:41]NVStorageSaveData kkm_last_timestamp [08:52:41]File name is /storage/kkm_last_timestamp [08:52:41]Write 4 bytes [08:52:41]NVStorageSaveData done [08:52:41]ExternCall_PrintAddStr [08:52:41]wPrintStart [08:52:41]Write to MH i2c: 01 00 00 73 18 8B [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 07 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 07 00 73 18 00 00 00 00 00 FF 0F A0 [08:52:41]RasterBufferAndPrint [08:52:41]line Счет N : (1)593412 [08:52:41]line ИНН: 02508201610067 [08:52:41]line Контрольно-Кассовый Чек [08:52:41]line ПРОДАЖА [08:52:41]line ТРК (МРК, ГНК) : 41 [08:52:41]line Товар: 2710124500 [08:52:41]line Аи-95-К-5 [08:52:41]line 2.700 * 74.20 [08:52:41]line = 200.34 [08:52:41]line НДС 12% НСП 1% [08:52:41]line > о реализуемом товаре [08:52:41]line ОКРУГЛЕНИЕ: -0.34 [08:52:41]line ИТОГО: 200.00 [08:52:41]line Внесено: 200.00 [08:52:41]line СДАЧА: 0.00 [08:52:41]line НСП 1% : 1.77 [08:52:41]line НДС 12% : 21.27 [08:52:41]line Наличными: 200.00 [08:52:41]line Безнал.: 0.00 [08:52:41]line Место: АЗС № 136 "Партнер Нефть" [08:52:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:52:41]line СНО: Общий режим [08:52:41]line Чек 42 20.08.2024 08:52 [08:52:41]line Смена: 453 ФФД: 1.0 [08:52:41]line ЗНМ: 0300000067 [08:52:41]line РНМ: 0000000000092569 [08:52:41]line Версия ККМ: 001 [08:52:41]line ФМ: 0000000000871776 [08:52:41]line ФД: 139570 [08:52:41]line ФПД: 141073985647382 [08:52:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085243&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139570&fm=141073985647382&tin=02508201610067®Number=0000000000092569&sum=20000 [08:52:42]OFD Sender: Processing packet 139570 [packets to send 137, broken 136] [08:52:42]ProducePacketName [08:52:42]name=ofd_packets/00139570 [08:52:42]OFD Sender: To server: pG, [08:52:42]CommunicateWithHost lk.salyk.kg:30040 [08:52:42]ConnectInit lk.salyk.kg [08:52:42]written 0, free lines is 4095 [08:52:42]Connected sock=9 [08:52:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 0C 07 01 E7 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5B 59 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 21 02 00 35 04 06 00 80 4E 58 CD 33 16 5E 1C 15 07 A1 C1 A0 1F [08:52:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 16 ED 47 00 AB 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 21 02 00 F4 03 04 00 EE FF C3 66 B6 04 01 00 00 79 A2 B7 E4 52 A0 72 77 [08:52:42]CommunicateWithHost err = 0 [08:52:42]CheckOFDResponse [08:52:42]1017 (14) - 77093643461234 [08:52:42]1041 (16) - 0000000000871776 [08:52:42]1040 (4) - 139570 [08:52:42]1012 (4) - 20.08.2024 02:31 [08:52:42]1206 (1) - 0 [08:52:42]OFD Sender: Remove packet 139570 [08:52:42]ProducePacketName [08:52:42]name=ofd_packets/00139570 [08:52:42]NVStorageDeleteData [08:52:42]Write to MH i2c: 01 00 00 9E 18 B6 [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: 01 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: 01 07 00 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: 01 07 00 9E 18 00 00 00 00 00 D1 0C 9A [08:52:42]RasterBufferAndPrint [08:52:42]line [08:52:42]line [08:52:42]line [08:52:42]line [08:52:42]line [08:52:42]written 0, free lines is 3287 [08:52:42]MH_Cut [08:52:42]Write to MH i2c: D1 01 00 A5 18 01 8F [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: D1 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: D1 01 00 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: D1 01 00 A5 18 00 8E [08:52:42]Write to MH i2c: 01 00 00 A6 18 BE [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:43]OFD Sender: No OFD packet to send [08:52:43]*** Cut start [08:52:43]*** Partial cut [08:52:43]*** CUTSNS_PIN = 1 [08:52:43]*** CUTSNS_PIN = 0 [08:52:43]*** Brake cut motor [08:52:44]Read from MH i2c: 01 [08:52:44]MH_I2C_Read... [08:52:44]*** Stop cut motor [08:52:44]*** Cut end [08:52:44]Read from MH i2c: 01 07 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: 01 07 00 A6 18 00 00 00 00 00 FF 0F D3 [08:52:44]process_action close_receipt done [08:52:44]requested_data is exist [08:52:44]produce_requested_data [08:52:44]requested_item fm.sn is exist - process it [08:52:44]wFMCommunicate request_size=4 [08:52:44]MH_SAM_APDU [08:52:44]CAPDU: 80 11 00 00 [08:52:44]Write to MH i2c: E2 08 00 A7 18 80 11 00 00 00 00 00 00 39 [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:44]Read from MH i2c: E2 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 17 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 17 00 A7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [08:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:52:44]wFMCommunicate OK [08:52:44]requested_item fd.num is exist - process it [08:52:44]SAM_PROTO_GetFieldsCounters [08:52:44]wFMCommunicate request_size=4 [08:52:44]MH_SAM_APDU [08:52:44]CAPDU: 80 13 00 00 [08:52:44]Write to MH i2c: E2 08 00 A8 18 80 13 00 00 00 00 00 00 3C [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:44]Read from MH i2c: E2 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 62 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 62 00 A8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 32 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [08:52:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 32 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:44]wFMCommunicate OK [08:52:44]SAM_PROTO_GetFieldsCounters done [08:52:44]requested_item shift.num is exist - process it [08:52:44]requested_item shift.opened is exist - process it [08:52:44]req_shift_opened [08:52:44]FM_GetShiftState [08:52:44]SAM_PROTO_GetShiftState [08:52:44]wFMCommunicate request_size=4 [08:52:44]MH_SAM_APDU [08:52:44]CAPDU: 80 13 01 00 [08:52:44]Write to MH i2c: E2 08 00 A9 18 80 13 01 00 00 00 00 00 3E [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:44]Read from MH i2c: E2 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 0E 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 0E 00 A9 18 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CF [08:52:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:52:44]wFMCommunicate OK [08:52:44]SAM_PROTO_GetShiftState done [08:52:44]FM_GetShiftState done [08:52:44]req_shift_opened done [08:52:44]requested_item shift.open_date is exist - process it [08:52:44]req_shift_open_date [08:52:44]req_shift_open_date done [08:52:44]produce_requested_data done [08:52:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139570,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:52:44]process_action_free close_receipt [08:52:44]json_value_free [08:52:44]json_value_free done [08:52:44]process_json_proto returns [08:52:44]Send response to host [08:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139570,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:52:44]free response buf [08:52:44]execute_script done [08:52:44]execute_script returns [08:52:44]free content buf [08:52:44]Sock 10.Close socket [08:52:44]Sock 10.Thread stoped [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]int [08:54:53]Write to MH i2c: 01 00 00 AA 18 C2 [08:54:53]*** FLAG_PRN_KEY set [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 AA 18 00 08 00 00 00 FF 0F DF [08:54:53]state=0 [08:54:53]Key pressed [08:54:53]Feed [08:54:53]Write to MH i2c: D8 00 00 AB 18 9A [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: D8 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: D8 01 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: D8 01 00 AB 18 00 9B [08:54:53]int [08:54:53]Write to MH i2c: 01 00 00 AC 18 C4 [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 AC 18 00 48 00 00 00 3C 00 4F [08:54:53]state=2 [08:54:53]Key pressed [08:54:53]int [08:54:53]Write to MH i2c: 01 00 00 AD 18 C5 [08:54:53]*** FLAG_PRN_KEY reset [08:54:53]Write i2c OK [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 [08:54:53]MH_I2C_Read... [08:54:53]Read from MH i2c: 01 07 00 AD 18 00 00 00 00 00 F6 0F D1 [08:54:53]state=2 [08:54:53]Stop feed [08:54:53]OFD Sender: No OFD packet to send [08:54:54]int [08:54:54]Write to MH i2c: 01 00 00 AE 18 C6 [08:54:54]*** FLAG_PRN_KEY set [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 07 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 07 00 AE 18 00 08 00 00 00 FF 0F E3 [08:54:54]state=0 [08:54:54]Key pressed [08:54:54]Feed [08:54:54]Write to MH i2c: D8 00 00 AF 18 9E [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: D8 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: D8 01 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: D8 01 00 AF 18 00 9F [08:54:54]int [08:54:54]Write to MH i2c: 01 00 00 B0 18 C8 [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 07 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 07 00 B0 18 00 48 00 00 00 3C 00 53 [08:54:54]state=2 [08:54:54]Key pressed [08:54:54]int [08:54:54]Write to MH i2c: 01 00 00 B1 18 C9 [08:54:54]*** FLAG_PRN_KEY reset [08:54:54]Write i2c OK [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 07 00 [08:54:54]MH_I2C_Read... [08:54:54]Read from MH i2c: 01 07 00 B1 18 00 00 00 00 00 F5 0F D4 [08:54:54]state=2 [08:54:54]Stop feed [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:15]accept exits with 7 [08:56:15]New connection [08:56:15]New thread 3067071844 created [08:56:15]Thread 3067215204 joined [08:56:15]Waiting for new connection... [08:56:15] Sock 7.Parse request [08:56:15]Sock 7.Check first char [08:56:15]Sock 7.First char is OK [08:56:15]request: POST /json_proto HTTP/1.0 [08:56:15]Method: POST [08:56:15]URL: /json_proto [08:56:15]Method is POST - this is cgi request [08:56:15]url: /json_proto [08:56:15]query_string will be loaded in cgi processing [08:56:15]execute_cgi json_proto POST (null) [08:56:15]execute_cgi path=json_proto method=POST [08:56:15]POST find Content-Length [08:56:15]Host: 172.17.45.67:8080 [08:56:15]Content-Length: 682 [08:56:15]Content-Type: application/json [08:56:15] [08:56:15]POST finish read [08:56:15]Found Content-Length = 682 [08:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:15]execute_script... [08:56:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:15]POST & json_proto [08:56:15]process_json_proto [08:56:15]json parsed OK: [08:56:15]protocol is kg_v1.0 [08:56:15]action value=close_receipt [08:56:15]process_action close_receipt [08:56:15]cmd_close_receipt [08:56:15]MH_GetDate [08:56:15]Write to MH i2c: F0 00 00 B2 18 B9 [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: F0 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: F0 09 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: F0 09 00 B2 18 00 32 5A C4 66 5F 7F 2B 66 E7 [08:56:15]GetLastDocTimeStamp 1724143963 [08:56:15]current date 1724144178 [08:56:15]FM_GetShiftState [08:56:15]SAM_PROTO_GetShiftState [08:56:15]wFMCommunicate request_size=4 [08:56:15]MH_SAM_APDU [08:56:15]CAPDU: 80 13 01 00 [08:56:15]Write to MH i2c: E2 08 00 B3 18 80 13 01 00 00 00 00 00 48 [08:56:15]Write i2c OK [08:56:15]MH_I2C_Read... [08:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:15]Read from MH i2c: E2 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 0E 00 [08:56:15]MH_I2C_Read... [08:56:15]Read from MH i2c: E2 0E 00 B3 18 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D9 [08:56:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:56:15]wFMCommunicate OK [08:56:15]SAM_PROTO_GetShiftState done [08:56:15]FM_GetShiftState done [08:56:15]opened in 1724113785 [08:56:15]opened+sec_in_day 1724200185 [08:56:15]quantity*price = 150041 [08:56:15]sum+1 = 150042 [08:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 43 20.08.2024 08:56 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139571 ФПД: 253428688022319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085618&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139571&fm=253428688022319&tin=02508201610067®Number=0000000000092569&sum=150000 [08:56:17]StoreToDocumentArchive [08:56:17]shift 453 fd 139571 [08:56:17]save to /storage/0453/doc_00139571 [08:56:17]save last doc name /storage/0453/doc_00139571 to /storage/kkm_last_doc_name [08:56:17]save OK [08:56:17]Clear old archive folders... [08:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:17]tlvbuf is 00DB0BC0 [08:56:17]SAM_PROTO_ClearQueue [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 09 00 00 [08:56:17]Write to MH i2c: E2 08 00 C0 18 80 09 00 00 00 00 00 00 4A [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 C0 18 00 90 00 4C [08:56:17]RAPDU: 90 00 [08:56:17]wFMCommunicate OK [08:56:17]SAM_PROTO_ClearQueue done [08:56:17]KKMCreateOFDPacket [08:56:17]OFDProtocolAddRootSTLVToBuf [08:56:17]FM_MakeSignedData [08:56:17]FM_MakeSignedData [08:56:17]SAM_PROTO_SignData [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 0D 01 02 [08:56:17]Write to MH i2c: E2 08 00 C1 18 80 0D 01 02 00 00 00 00 52 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 C1 18 00 90 00 4D [08:56:17]RAPDU: 90 00 [08:56:17]wFMCommunicate OK [08:56:17]wFMCommunicate request_size=255 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 32 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 21 02 00 35 04 06 00 E6 [08:56:17]Write to MH i2c: E2 02 01 C2 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 32 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 21 02 00 35 04 06 00 E6 00 00 33 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 C2 18 00 90 00 4E [08:56:17]RAPDU: 90 00 [08:56:17]wFMCommunicate OK [08:56:17]wFMCommunicate request_size=10 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 0D 02 02 05 7D F6 EC EB 2F [08:56:17]Write to MH i2c: E2 0D 00 C3 18 80 0D 02 02 05 00 7D F6 EC EB 2F 00 00 D8 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 C3 18 00 90 00 4F [08:56:17]RAPDU: 90 00 [08:56:17]wFMCommunicate OK [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 0D 03 02 [08:56:17]Write to MH i2c: E2 08 00 C4 18 80 0D 03 02 00 00 00 00 57 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 0B 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 0B 00 C4 18 00 28 ED BC 33 AF 3D 40 DA 90 00 62 [08:56:17]RAPDU: 28 ED BC 33 AF 3D 40 DA 90 00 [08:56:17]wFMCommunicate OK [08:56:17]SAM_PROTO_SignData done [08:56:17]FM_MakeSignedData done [08:56:17]CreateOFDProtocolMessage [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 11 00 00 [08:56:17]Write to MH i2c: E2 08 00 C5 18 80 11 00 00 00 00 00 00 57 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 17 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 17 00 C5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [08:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:56:17]wFMCommunicate OK [08:56:17]CreateOFDProtocolMessage done [08:56:17]OFDSenderStorePacket 139571 [08:56:17]StoreOFDPacket docnum=139571 [08:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 64 FC 07 01 B3 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 32 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 21 02 00 35 04 06 00 E6 7D F6 EC EB 2F 28 ED BC 33 AF 3D 40 DA [08:56:17]CheckFolder [08:56:17]dirname=/storage/ofd_packets [08:56:17]CheckFolder done [08:56:17]ProducePacketName [08:56:17]name=ofd_packets/00139571 [08:56:17]NVStorageSaveData ofd_packets/00139571 [08:56:17]File name is /storage/ofd_packets/00139571 [08:56:17]Write 301 bytes [08:56:17]NVStorageSaveData done [08:56:17]OFDSenderStorePacket done [08:56:17]KKMCreateOFDPacket done [08:56:17]NVStorageSaveData kkm_last_timestamp [08:56:17]File name is /storage/kkm_last_timestamp [08:56:17]Write 4 bytes [08:56:17]NVStorageSaveData done [08:56:17]ExternCall_PrintAddStr [08:56:17]wPrintStart [08:56:17]Write to MH i2c: 01 00 00 C6 18 DE [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 07 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: 01 07 00 C6 18 00 00 00 00 00 FF 0F F3 [08:56:17]RasterBufferAndPrint [08:56:17]line Счет N : (1)593413 [08:56:17]line ИНН: 02508201610067 [08:56:17]line Контрольно-Кассовый Чек [08:56:17]line ПРОДАЖА [08:56:17]line ТРК (МРК, ГНК) : 52 [08:56:17]line Товар: 2710124130 [08:56:17]line Аи-92-К-5 [08:56:17]line 22.130 * 67.80 [08:56:17]line = 1500.41 [08:56:17]line НДС 12% НСП 1% [08:56:17]line > о реализуемом товаре [08:56:17]line ОКРУГЛЕНИЕ: -0.41 [08:56:17]line ИТОГО: 1500.00 [08:56:17]line Внесено: 1500.00 [08:56:17]line СДАЧА: 0.00 [08:56:17]line НСП 1% : 13.28 [08:56:17]line НДС 12% : 159.34 [08:56:17]line Наличными: 1500.00 [08:56:17]line Безнал.: 0.00 [08:56:17]line Место: АЗС № 136 "Партнер Нефть" [08:56:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:56:17]line СНО: Общий режим [08:56:17]line Чек 43 20.08.2024 08:56 [08:56:17]line Смена: 453 ФФД: 1.0 [08:56:17]line ЗНМ: 0300000067 [08:56:17]line РНМ: 0000000000092569 [08:56:17]line Версия ККМ: 001 [08:56:17]line ФМ: 0000000000871776 [08:56:17]line ФД: 139571 [08:56:17]line ФПД: 253428688022319 [08:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085618&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139571&fm=253428688022319&tin=02508201610067®Number=0000000000092569&sum=150000 [08:56:18]OFD Sender: Processing packet 139571 [packets to send 137, broken 136] [08:56:18]ProducePacketName [08:56:18]name=ofd_packets/00139571 [08:56:18]OFD Sender: To server: pG, [08:56:18]CommunicateWithHost lk.salyk.kg:30040 [08:56:18]ConnectInit lk.salyk.kg [08:56:18]written 0, free lines is 4095 [08:56:18]Connected sock=10 [08:56:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 64 FC 07 01 B3 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 32 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 21 02 00 35 04 06 00 E6 7D F6 EC EB 2F 28 ED BC 33 AF 3D 40 DA [08:56:18]Write to MH i2c: 01 00 00 F1 18 09 [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: 01 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: 01 07 00 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: 01 07 00 F1 18 00 00 00 00 00 E0 0C FC [08:56:18]RasterBufferAndPrint [08:56:18]line [08:56:18]line [08:56:18]line [08:56:18]line [08:56:18]line [08:56:18]written 0, free lines is 3302 [08:56:18]MH_Cut [08:56:18]Write to MH i2c: D1 01 00 F8 18 01 E2 [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: D1 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: D1 01 00 [08:56:18]MH_I2C_Read... [08:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 10 CF 47 00 2F 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 21 02 00 F4 03 04 00 C6 00 C4 66 B6 04 01 00 00 C5 EA 76 A5 25 2F 8D 9F [08:56:18]CommunicateWithHost err = 0 [08:56:18]CheckOFDResponse [08:56:18]1017 (14) - 77093643461234 [08:56:18]1041 (16) - 0000000000871776 [08:56:18]1040 (4) - 139571 [08:56:18]1012 (4) - 20.08.2024 02:34 [08:56:18]1206 (1) - 0 [08:56:18]OFD Sender: Remove packet 139571 [08:56:18]ProducePacketName [08:56:18]name=ofd_packets/00139571 [08:56:18]NVStorageDeleteData [08:56:18]Read from MH i2c: D1 01 00 F8 18 00 E1 [08:56:18]Write to MH i2c: 01 00 00 F9 18 11 [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:19]OFD Sender: No OFD packet to send [08:56:19]*** Cut start [08:56:19]*** Partial cut [08:56:19]*** CUTSNS_PIN = 1 [08:56:19]*** CUTSNS_PIN = 0 [08:56:19]*** Brake cut motor [08:56:19]Read from MH i2c: 01 [08:56:19]MH_I2C_Read... [08:56:19]*** Stop cut motor [08:56:19]*** Cut end [08:56:19]Read from MH i2c: 01 07 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: 01 07 00 F9 18 00 00 00 00 00 FF 0F 26 [08:56:19]process_action close_receipt done [08:56:19]requested_data is exist [08:56:19]produce_requested_data [08:56:19]requested_item fm.sn is exist - process it [08:56:19]wFMCommunicate request_size=4 [08:56:19]MH_SAM_APDU [08:56:19]CAPDU: 80 11 00 00 [08:56:19]Write to MH i2c: E2 08 00 FA 18 80 11 00 00 00 00 00 00 8C [08:56:19]Write i2c OK [08:56:19]MH_I2C_Read... [08:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:19]Read from MH i2c: E2 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 17 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 17 00 FA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [08:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:56:19]wFMCommunicate OK [08:56:19]requested_item fd.num is exist - process it [08:56:19]SAM_PROTO_GetFieldsCounters [08:56:19]wFMCommunicate request_size=4 [08:56:19]MH_SAM_APDU [08:56:19]CAPDU: 80 13 00 00 [08:56:19]Write to MH i2c: E2 08 00 FB 18 80 13 00 00 00 00 00 00 8F [08:56:19]Write i2c OK [08:56:19]MH_I2C_Read... [08:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:19]Read from MH i2c: E2 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 62 00 [08:56:19]MH_I2C_Read... [08:56:19]Read from MH i2c: E2 62 00 FB 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 33 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [08:56:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 33 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:19]wFMCommunicate OK [08:56:19]SAM_PROTO_GetFieldsCounters done [08:56:19]requested_item shift.num is exist - process it [08:56:19]requested_item shift.opened is exist - process it [08:56:19]req_shift_opened [08:56:19]FM_GetShiftState [08:56:19]SAM_PROTO_GetShiftState [08:56:19]wFMCommunicate request_size=4 [08:56:19]MH_SAM_APDU [08:56:19]CAPDU: 80 13 01 00 [08:56:19]Write to MH i2c: E2 08 00 FC 18 80 13 01 00 00 00 00 00 91 [08:56:20]Write i2c OK [08:56:20]MH_I2C_Read... [08:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:20]Read from MH i2c: E2 [08:56:20]MH_I2C_Read... [08:56:20]Read from MH i2c: E2 0E 00 [08:56:20]MH_I2C_Read... [08:56:20]Read from MH i2c: E2 0E 00 FC 18 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 22 [08:56:20]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:56:20]wFMCommunicate OK [08:56:20]SAM_PROTO_GetShiftState done [08:56:20]FM_GetShiftState done [08:56:20]req_shift_opened done [08:56:20]requested_item shift.open_date is exist - process it [08:56:20]req_shift_open_date [08:56:20]req_shift_open_date done [08:56:20]produce_requested_data done [08:56:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139571,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:56:20]process_action_free close_receipt [08:56:20]json_value_free [08:56:20]json_value_free done [08:56:20]process_json_proto returns [08:56:20]Send response to host [08:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139571,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:56:20]free response buf [08:56:20]execute_script done [08:56:20]execute_script returns [08:56:20]free content buf [08:56:20]Sock 7.Close socket [08:56:20]Sock 7.Thread stoped [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:40]accept exits with 9 [08:56:40]New connection [08:56:40]New thread 3067215204 created [08:56:40]Thread 3067071844 joined [08:56:40]Waiting for new connection... [08:56:40] Sock 9.Parse request [08:56:40]Sock 9.Check first char [08:56:40]Sock 9.First char is OK [08:56:40]request: POST /json_proto HTTP/1.0 [08:56:40]Method: POST [08:56:40]URL: /json_proto [08:56:40]Method is POST - this is cgi request [08:56:40]url: /json_proto [08:56:40]query_string will be loaded in cgi processing [08:56:40]execute_cgi json_proto POST (null) [08:56:40]execute_cgi path=json_proto method=POST [08:56:40]POST find Content-Length [08:56:40]Host: 172.17.45.67:8080 [08:56:40]Content-Length: 682 [08:56:40]Content-Type: application/json [08:56:40] [08:56:40]POST finish read [08:56:40]Found Content-Length = 682 [08:56:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:40]execute_script... [08:56:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:40]POST & json_proto [08:56:40]process_json_proto [08:56:40]json parsed OK: [08:56:40]protocol is kg_v1.0 [08:56:40]action value=close_receipt [08:56:40]process_action close_receipt [08:56:40]cmd_close_receipt [08:56:40]MH_GetDate [08:56:40]Write to MH i2c: F0 00 00 FD 18 04 [08:56:40]Write i2c OK [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: F0 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: F0 09 00 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: F0 09 00 FD 18 00 4B 5A C4 66 5F 7F 2B 66 4B [08:56:40]GetLastDocTimeStamp 1724144178 [08:56:40]current date 1724144203 [08:56:40]FM_GetShiftState [08:56:40]SAM_PROTO_GetShiftState [08:56:40]wFMCommunicate request_size=4 [08:56:40]MH_SAM_APDU [08:56:40]CAPDU: 80 13 01 00 [08:56:40]Write to MH i2c: E2 08 00 FE 18 80 13 01 00 00 00 00 00 93 [08:56:40]Write i2c OK [08:56:40]MH_I2C_Read... [08:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:40]Read from MH i2c: E2 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: E2 0E 00 [08:56:40]MH_I2C_Read... [08:56:40]Read from MH i2c: E2 0E 00 FE 18 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 24 [08:56:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:56:40]wFMCommunicate OK [08:56:40]SAM_PROTO_GetShiftState done [08:56:40]FM_GetShiftState done [08:56:40]opened in 1724113785 [08:56:40]opened+sec_in_day 1724200185 [08:56:40]quantity*price = 100021 [08:56:40]sum+1 = 100023 [08:56:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 44 20.08.2024 08:56 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139572 ФПД: 235422686942517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085643&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139572&fm=235422686942517&tin=02508201610067®Number=0000000000092569&sum=100000 [08:56:42]StoreToDocumentArchive [08:56:42]shift 453 fd 139572 [08:56:42]save to /storage/0453/doc_00139572 [08:56:42]save last doc name /storage/0453/doc_00139572 to /storage/kkm_last_doc_name [08:56:42]save OK [08:56:42]Clear old archive folders... [08:56:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:42]tlvbuf is 00DB9870 [08:56:42]SAM_PROTO_ClearQueue [08:56:42]wFMCommunicate request_size=4 [08:56:42]MH_SAM_APDU [08:56:42]CAPDU: 80 09 00 00 [08:56:42]Write to MH i2c: E2 08 00 0B 19 80 09 00 00 00 00 00 00 96 [08:56:42]Write i2c OK [08:56:42]MH_I2C_Read... [08:56:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:42]Read from MH i2c: E2 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 03 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 03 00 0B 19 00 90 00 98 [08:56:42]RAPDU: 90 00 [08:56:42]wFMCommunicate OK [08:56:42]SAM_PROTO_ClearQueue done [08:56:42]KKMCreateOFDPacket [08:56:42]OFDProtocolAddRootSTLVToBuf [08:56:42]FM_MakeSignedData [08:56:42]FM_MakeSignedData [08:56:42]SAM_PROTO_SignData [08:56:42]wFMCommunicate request_size=4 [08:56:42]MH_SAM_APDU [08:56:42]CAPDU: 80 0D 01 02 [08:56:42]Write to MH i2c: E2 08 00 0C 19 80 0D 01 02 00 00 00 00 9E [08:56:42]Write i2c OK [08:56:42]MH_I2C_Read... [08:56:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:42]Read from MH i2c: E2 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 03 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 03 00 0C 19 00 90 00 99 [08:56:42]RAPDU: 90 00 [08:56:42]wFMCommunicate OK [08:56:42]wFMCommunicate request_size=255 [08:56:42]MH_SAM_APDU [08:56:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 2C 00 00 00 F4 03 04 00 4B 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 21 02 00 35 04 06 00 D6 [08:56:42]Write to MH i2c: E2 02 01 0D 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 4B 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 21 02 00 35 04 06 00 D6 00 00 42 [08:56:42]Write i2c OK [08:56:42]MH_I2C_Read... [08:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:42]Read from MH i2c: E2 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 03 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 03 00 0D 19 00 90 00 9A [08:56:42]RAPDU: 90 00 [08:56:42]wFMCommunicate OK [08:56:42]wFMCommunicate request_size=10 [08:56:42]MH_SAM_APDU [08:56:42]CAPDU: 80 0D 02 02 05 1D 9D A0 95 35 [08:56:42]Write to MH i2c: E2 0D 00 0E 19 80 0D 02 02 05 00 1D 9D A0 95 35 00 00 CF [08:56:42]Write i2c OK [08:56:42]MH_I2C_Read... [08:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:42]Read from MH i2c: E2 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 03 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 03 00 0E 19 00 90 00 9B [08:56:42]RAPDU: 90 00 [08:56:42]wFMCommunicate OK [08:56:42]wFMCommunicate request_size=4 [08:56:42]MH_SAM_APDU [08:56:42]CAPDU: 80 0D 03 02 [08:56:42]Write to MH i2c: E2 08 00 0F 19 80 0D 03 02 00 00 00 00 A3 [08:56:42]Write i2c OK [08:56:42]MH_I2C_Read... [08:56:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:42]Read from MH i2c: E2 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 0B 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 0B 00 0F 19 00 60 6B 66 9D BF 7B B2 F7 90 00 55 [08:56:42]RAPDU: 60 6B 66 9D BF 7B B2 F7 90 00 [08:56:42]wFMCommunicate OK [08:56:42]SAM_PROTO_SignData done [08:56:42]FM_MakeSignedData done [08:56:42]CreateOFDProtocolMessage [08:56:42]wFMCommunicate request_size=4 [08:56:42]MH_SAM_APDU [08:56:42]CAPDU: 80 11 00 00 [08:56:42]Write to MH i2c: E2 08 00 10 19 80 11 00 00 00 00 00 00 A3 [08:56:42]Write i2c OK [08:56:42]MH_I2C_Read... [08:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:42]Read from MH i2c: E2 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 17 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: E2 17 00 10 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [08:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:56:42]wFMCommunicate OK [08:56:42]CreateOFDProtocolMessage done [08:56:42]OFDSenderStorePacket 139572 [08:56:42]StoreOFDPacket docnum=139572 [08:56:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DD 7C 07 01 51 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 2C 00 00 00 F4 03 04 00 4B 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 21 02 00 35 04 06 00 D6 1D 9D A0 95 35 60 6B 66 9D BF 7B B2 F7 [08:56:42]CheckFolder [08:56:42]dirname=/storage/ofd_packets [08:56:42]CheckFolder done [08:56:42]ProducePacketName [08:56:42]name=ofd_packets/00139572 [08:56:42]NVStorageSaveData ofd_packets/00139572 [08:56:42]File name is /storage/ofd_packets/00139572 [08:56:42]Write 301 bytes [08:56:42]NVStorageSaveData done [08:56:42]OFDSenderStorePacket done [08:56:42]KKMCreateOFDPacket done [08:56:42]NVStorageSaveData kkm_last_timestamp [08:56:42]File name is /storage/kkm_last_timestamp [08:56:42]Write 4 bytes [08:56:42]NVStorageSaveData done [08:56:42]ExternCall_PrintAddStr [08:56:42]wPrintStart [08:56:42]Write to MH i2c: 01 00 00 11 19 2A [08:56:42]Write i2c OK [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: 01 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: 01 07 00 [08:56:42]MH_I2C_Read... [08:56:42]Read from MH i2c: 01 07 00 11 19 00 00 00 00 00 FF 0F 3F [08:56:42]RasterBufferAndPrint [08:56:42]line Счет N : (1)593414 [08:56:42]line ИНН: 02508201610067 [08:56:42]line Контрольно-Кассовый Чек [08:56:42]line ПРОДАЖА [08:56:42]line ТРК (МРК, ГНК) : 61 [08:56:42]line Товар: 2710124500 [08:56:42]line Аи-95-К-5 [08:56:42]line 13.480 * 74.20 [08:56:42]line = 1000.22 [08:56:42]line НДС 12% НСП 1% [08:56:42]line > о реализуемом товаре [08:56:42]line ОКРУГЛЕНИЕ: -0.22 [08:56:42]line ИТОГО: 1000.00 [08:56:42]line Внесено: 1000.00 [08:56:42]line СДАЧА: 0.00 [08:56:42]line НСП 1% : 8.85 [08:56:42]line НДС 12% : 106.22 [08:56:42]line Наличными: 1000.00 [08:56:42]line Безнал.: 0.00 [08:56:42]line Место: АЗС № 136 "Партнер Нефть" [08:56:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:56:42]line СНО: Общий режим [08:56:42]line Чек 44 20.08.2024 08:56 [08:56:42]line Смена: 453 ФФД: 1.0 [08:56:42]line ЗНМ: 0300000067 [08:56:42]line РНМ: 0000000000092569 [08:56:42]line Версия ККМ: 001 [08:56:42]line ФМ: 0000000000871776 [08:56:42]line ФД: 139572 [08:56:42]line ФПД: 235422686942517 [08:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085643&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139572&fm=235422686942517&tin=02508201610067®Number=0000000000092569&sum=100000 [08:56:42]OFD Sender: Processing packet 139572 [packets to send 137, broken 136] [08:56:42]ProducePacketName [08:56:42]name=ofd_packets/00139572 [08:56:42]OFD Sender: To server: pG, [08:56:42]CommunicateWithHost lk.salyk.kg:30040 [08:56:42]ConnectInit lk.salyk.kg [08:56:42]written 0, free lines is 4095 [08:56:43]Connected sock=10 [08:56:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DD 7C 07 01 51 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 2C 00 00 00 F4 03 04 00 4B 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 21 02 00 35 04 06 00 D6 1D 9D A0 95 35 60 6B 66 9D BF 7B B2 F7 [08:56:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C5 6E 47 00 57 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 21 02 00 F4 03 04 00 DF 00 C4 66 B6 04 01 00 00 9C 1E 37 5F B1 76 87 54 [08:56:43]CommunicateWithHost err = 0 [08:56:43]CheckOFDResponse [08:56:43]1017 (14) - 77093643461234 [08:56:43]1041 (16) - 0000000000871776 [08:56:43]1040 (4) - 139572 [08:56:43]1012 (4) - 20.08.2024 02:35 [08:56:43]1206 (1) - 0 [08:56:43]OFD Sender: Remove packet 139572 [08:56:43]ProducePacketName [08:56:43]name=ofd_packets/00139572 [08:56:43]NVStorageDeleteData [08:56:43]Write to MH i2c: 01 00 00 3C 19 55 [08:56:43]Write i2c OK [08:56:43]MH_I2C_Read... [08:56:43]Read from MH i2c: 01 [08:56:43]MH_I2C_Read... [08:56:43]Read from MH i2c: 01 07 00 [08:56:43]MH_I2C_Read... [08:56:43]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 CA 0C 32 [08:56:43]RasterBufferAndPrint [08:56:43]line [08:56:43]line [08:56:43]line [08:56:43]line [08:56:43]line [08:56:43]written 0, free lines is 3280 [08:56:43]MH_Cut [08:56:43]Write to MH i2c: D1 01 00 43 19 01 2E [08:56:43]Write i2c OK [08:56:43]MH_I2C_Read... [08:56:43]Read from MH i2c: D1 [08:56:43]MH_I2C_Read... [08:56:43]Read from MH i2c: D1 01 00 [08:56:43]MH_I2C_Read... [08:56:43]Read from MH i2c: D1 01 00 43 19 00 2D [08:56:43]Write to MH i2c: 01 00 00 44 19 5D [08:56:43]Write i2c OK [08:56:43]MH_I2C_Read... [08:56:43]OFD Sender: No OFD packet to send [08:56:44]*** Cut start [08:56:44]*** Partial cut [08:56:44]*** CUTSNS_PIN = 1 [08:56:44]*** CUTSNS_PIN = 0 [08:56:44]*** Brake cut motor [08:56:44]Read from MH i2c: 01 [08:56:44]MH_I2C_Read... [08:56:44]*** Stop cut motor [08:56:44]*** Cut end [08:56:44]Read from MH i2c: 01 07 00 [08:56:44]MH_I2C_Read... [08:56:44]Read from MH i2c: 01 07 00 44 19 00 00 00 00 00 FF 0F 72 [08:56:44]process_action close_receipt done [08:56:44]requested_data is exist [08:56:44]produce_requested_data [08:56:44]requested_item fm.sn is exist - process it [08:56:44]wFMCommunicate request_size=4 [08:56:44]MH_SAM_APDU [08:56:44]CAPDU: 80 11 00 00 [08:56:44]Write to MH i2c: E2 08 00 45 19 80 11 00 00 00 00 00 00 D8 [08:56:44]Write i2c OK [08:56:44]MH_I2C_Read... [08:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:44]Read from MH i2c: E2 [08:56:44]MH_I2C_Read... [08:56:44]Read from MH i2c: E2 17 00 [08:56:44]MH_I2C_Read... [08:56:44]Read from MH i2c: E2 17 00 45 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [08:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:56:44]wFMCommunicate OK [08:56:44]requested_item fd.num is exist - process it [08:56:44]SAM_PROTO_GetFieldsCounters [08:56:44]wFMCommunicate request_size=4 [08:56:44]MH_SAM_APDU [08:56:44]CAPDU: 80 13 00 00 [08:56:44]Write to MH i2c: E2 08 00 46 19 80 13 00 00 00 00 00 00 DB [08:56:44]Write i2c OK [08:56:44]MH_I2C_Read... [08:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:44]Read from MH i2c: E2 [08:56:44]MH_I2C_Read... [08:56:44]Read from MH i2c: E2 62 00 [08:56:44]MH_I2C_Read... [08:56:44]Read from MH i2c: E2 62 00 46 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [08:56:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:44]wFMCommunicate OK [08:56:44]SAM_PROTO_GetFieldsCounters done [08:56:44]requested_item shift.num is exist - process it [08:56:44]requested_item shift.opened is exist - process it [08:56:44]req_shift_opened [08:56:44]FM_GetShiftState [08:56:44]SAM_PROTO_GetShiftState [08:56:44]wFMCommunicate request_size=4 [08:56:44]MH_SAM_APDU [08:56:44]CAPDU: 80 13 01 00 [08:56:44]Write to MH i2c: E2 08 00 47 19 80 13 01 00 00 00 00 00 DD [08:56:44]Write i2c OK [08:56:44]MH_I2C_Read... [08:56:44]Read from MH i2c: E2 [08:56:45]MH_I2C_Read... [08:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:45]Read from MH i2c: E2 0E 00 [08:56:45]MH_I2C_Read... [08:56:45]Read from MH i2c: E2 0E 00 47 19 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6E [08:56:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:56:45]wFMCommunicate OK [08:56:45]SAM_PROTO_GetShiftState done [08:56:45]FM_GetShiftState done [08:56:45]req_shift_opened done [08:56:45]requested_item shift.open_date is exist - process it [08:56:45]req_shift_open_date [08:56:45]req_shift_open_date done [08:56:45]produce_requested_data done [08:56:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139572,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:56:45]process_action_free close_receipt [08:56:45]json_value_free [08:56:45]json_value_free done [08:56:45]process_json_proto returns [08:56:45]Send response to host [08:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139572,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:56:45]free response buf [08:56:45]execute_script done [08:56:45]execute_script returns [08:56:45]free content buf [08:56:45]Sock 9.Close socket [08:56:45]Sock 9.Thread stoped [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:37]accept exits with 7 [08:57:37]New connection [08:57:37]New thread 3067071844 created [08:57:37]Thread 3067215204 joined [08:57:37]Waiting for new connection... [08:57:37] Sock 7.Parse request [08:57:37]Sock 7.Check first char [08:57:37]Sock 7.First char is OK [08:57:37]request: POST /json_proto HTTP/1.0 [08:57:37]Method: POST [08:57:37]URL: /json_proto [08:57:37]Method is POST - this is cgi request [08:57:37]url: /json_proto [08:57:37]query_string will be loaded in cgi processing [08:57:37]execute_cgi json_proto POST (null) [08:57:37]execute_cgi path=json_proto method=POST [08:57:37]POST find Content-Length [08:57:37]Host: 172.17.45.67:8080 [08:57:37]Content-Length: 682 [08:57:37]Content-Type: application/json [08:57:37] [08:57:37]POST finish read [08:57:37]Found Content-Length = 682 [08:57:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:37]execute_script... [08:57: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)593415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:37]POST & json_proto [08:57:37]process_json_proto [08:57:37]json parsed OK: [08:57:37]protocol is kg_v1.0 [08:57:37]action value=close_receipt [08:57:37]process_action close_receipt [08:57:37]cmd_close_receipt [08:57:37]MH_GetDate [08:57:37]Write to MH i2c: F0 00 00 48 19 50 [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: F0 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: F0 09 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: F0 09 00 48 19 00 84 5A C4 66 5F 7F 2B 66 D0 [08:57:37]GetLastDocTimeStamp 1724144203 [08:57:37]current date 1724144260 [08:57:37]FM_GetShiftState [08:57:37]SAM_PROTO_GetShiftState [08:57:37]wFMCommunicate request_size=4 [08:57:37]MH_SAM_APDU [08:57:37]CAPDU: 80 13 01 00 [08:57:37]Write to MH i2c: E2 08 00 49 19 80 13 01 00 00 00 00 00 DF [08:57:37]Write i2c OK [08:57:37]MH_I2C_Read... [08:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:37]Read from MH i2c: E2 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 0E 00 [08:57:37]MH_I2C_Read... [08:57:37]Read from MH i2c: E2 0E 00 49 19 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 70 [08:57:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:57:37]wFMCommunicate OK [08:57:37]SAM_PROTO_GetShiftState done [08:57:37]FM_GetShiftState done [08:57:37]opened in 1724113785 [08:57:37]opened+sec_in_day 1724200185 [08:57:37]quantity*price = 110038 [08:57:37]sum+1 = 110040 [08:57:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 45 20.08.2024 08:57 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139573 ФПД: 103924348345784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085740&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139573&fm=103924348345784&tin=02508201610067®Number=0000000000092569&sum=110000 [08:57:38]StoreToDocumentArchive [08:57:38]shift 453 fd 139573 [08:57:38]save to /storage/0453/doc_00139573 [08:57:38]save last doc name /storage/0453/doc_00139573 to /storage/kkm_last_doc_name [08:57:38]save OK [08:57:38]Clear old archive folders... [08:57:38]OFD Sender: No OFD packet to send [08:57:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:38]tlvbuf is 00DB9740 [08:57:38]SAM_PROTO_ClearQueue [08:57:38]wFMCommunicate request_size=4 [08:57:38]MH_SAM_APDU [08:57:38]CAPDU: 80 09 00 00 [08:57:38]Write to MH i2c: E2 08 00 56 19 80 09 00 00 00 00 00 00 E1 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 03 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 03 00 56 19 00 90 00 E3 [08:57:39]RAPDU: 90 00 [08:57:39]wFMCommunicate OK [08:57:39]SAM_PROTO_ClearQueue done [08:57:39]KKMCreateOFDPacket [08:57:39]OFDProtocolAddRootSTLVToBuf [08:57:39]FM_MakeSignedData [08:57:39]FM_MakeSignedData [08:57:39]SAM_PROTO_SignData [08:57:39]wFMCommunicate request_size=4 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 0D 01 02 [08:57:39]Write to MH i2c: E2 08 00 57 19 80 0D 01 02 00 00 00 00 E9 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 03 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 03 00 57 19 00 90 00 E4 [08:57:39]RAPDU: 90 00 [08:57:39]wFMCommunicate OK [08:57:39]wFMCommunicate request_size=255 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 84 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 21 02 00 35 04 06 00 5E [08:57:39]Write to MH i2c: E2 02 01 58 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 84 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 21 02 00 35 04 06 00 5E 00 00 D6 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 03 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 03 00 58 19 00 90 00 E5 [08:57:39]RAPDU: 90 00 [08:57:39]wFMCommunicate OK [08:57:39]wFMCommunicate request_size=10 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 0D 02 02 05 84 C5 DD DD B8 [08:57:39]Write to MH i2c: E2 0D 00 59 19 80 0D 02 02 05 00 84 C5 DD DD B8 00 00 B1 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 03 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 03 00 59 19 00 90 00 E6 [08:57:39]RAPDU: 90 00 [08:57:39]wFMCommunicate OK [08:57:39]wFMCommunicate request_size=4 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 0D 03 02 [08:57:39]Write to MH i2c: E2 08 00 5A 19 80 0D 03 02 00 00 00 00 EE [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 0B 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 0B 00 5A 19 00 2A 12 C2 A0 79 12 A7 A7 90 00 66 [08:57:39]RAPDU: 2A 12 C2 A0 79 12 A7 A7 90 00 [08:57:39]wFMCommunicate OK [08:57:39]SAM_PROTO_SignData done [08:57:39]FM_MakeSignedData done [08:57:39]CreateOFDProtocolMessage [08:57:39]wFMCommunicate request_size=4 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 11 00 00 [08:57:39]Write to MH i2c: E2 08 00 5B 19 80 11 00 00 00 00 00 00 EE [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 17 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 17 00 5B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [08:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:57:39]wFMCommunicate OK [08:57:39]CreateOFDProtocolMessage done [08:57:39]OFDSenderStorePacket 139573 [08:57:39]StoreOFDPacket docnum=139573 [08:57:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F A7 07 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 84 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 21 02 00 35 04 06 00 5E 84 C5 DD DD B8 2A 12 C2 A0 79 12 A7 A7 [08:57:39]CheckFolder [08:57:39]dirname=/storage/ofd_packets [08:57:39]CheckFolder done [08:57:39]ProducePacketName [08:57:39]name=ofd_packets/00139573 [08:57:39]NVStorageSaveData ofd_packets/00139573 [08:57:39]File name is /storage/ofd_packets/00139573 [08:57:39]Write 301 bytes [08:57:39]NVStorageSaveData done [08:57:39]OFDSenderStorePacket done [08:57:39]KKMCreateOFDPacket done [08:57:39]NVStorageSaveData kkm_last_timestamp [08:57:39]File name is /storage/kkm_last_timestamp [08:57:39]Write 4 bytes [08:57:39]NVStorageSaveData done [08:57:39]ExternCall_PrintAddStr [08:57:39]wPrintStart [08:57:39]Write to MH i2c: 01 00 00 5C 19 75 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 07 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 07 00 5C 19 00 00 00 00 00 FF 0F 8A [08:57:39]RasterBufferAndPrint [08:57:39]line Счет N : (1)593415 [08:57:39]line ИНН: 02508201610067 [08:57:39]line Контрольно-Кассовый Чек [08:57:39]line ПРОДАЖА [08:57:39]line ТРК (МРК, ГНК) : 41 [08:57:39]line Товар: 2710124500 [08:57:39]line Аи-95-К-5 [08:57:39]line 14.830 * 74.20 [08:57:39]line = 1100.39 [08:57:39]line НДС 12% НСП 1% [08:57:39]line > о реализуемом товаре [08:57:39]line ОКРУГЛЕНИЕ: -0.39 [08:57:39]line ИТОГО: 1100.00 [08:57:39]line Внесено: 1100.00 [08:57:39]line СДАЧА: 0.00 [08:57:39]line НСП 1% : 9.74 [08:57:39]line НДС 12% : 116.86 [08:57:39]line Наличными: 1100.00 [08:57:39]line Безнал.: 0.00 [08:57:39]line Место: АЗС № 136 "Партнер Нефть" [08:57:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:57:39]line СНО: Общий режим [08:57:39]line Чек 45 20.08.2024 08:57 [08:57:39]line Смена: 453 ФФД: 1.0 [08:57:39]line ЗНМ: 0300000067 [08:57:39]line РНМ: 0000000000092569 [08:57:39]line Версия ККМ: 001 [08:57:39]line ФМ: 0000000000871776 [08:57:39]line ФД: 139573 [08:57:39]line ФПД: 103924348345784 [08:57:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T085740&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139573&fm=103924348345784&tin=02508201610067®Number=0000000000092569&sum=110000 [08:57:39]OFD Sender: Processing packet 139573 [packets to send 137, broken 136] [08:57:39]ProducePacketName [08:57:39]name=ofd_packets/00139573 [08:57:39]OFD Sender: To server: pG, [08:57:39]CommunicateWithHost lk.salyk.kg:30040 [08:57:39]ConnectInit lk.salyk.kg [08:57:39]written 0, free lines is 4095 [08:57:40]Connected sock=10 [08:57:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F A7 07 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 84 5A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 21 02 00 35 04 06 00 5E 84 C5 DD DD B8 2A 12 C2 A0 79 12 A7 A7 [08:57:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 33 83 47 00 EF 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 21 02 00 F4 03 04 00 18 01 C4 66 B6 04 01 00 00 31 BA BA A2 C0 BA 6E 2F [08:57:40]CommunicateWithHost err = 0 [08:57:40]CheckOFDResponse [08:57:40]1017 (14) - 77093643461234 [08:57:40]1041 (16) - 0000000000871776 [08:57:40]1040 (4) - 139573 [08:57:40]1012 (4) - 20.08.2024 02:36 [08:57:40]1206 (1) - 0 [08:57:40]OFD Sender: Remove packet 139573 [08:57:40]ProducePacketName [08:57:40]name=ofd_packets/00139573 [08:57:40]NVStorageDeleteData [08:57:40]Write to MH i2c: 01 00 00 87 19 A0 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: 01 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: 01 07 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: 01 07 00 87 19 00 00 00 00 00 D2 0C 85 [08:57:40]RasterBufferAndPrint [08:57:40]line [08:57:40]line [08:57:40]line [08:57:40]line [08:57:40]line [08:57:40]written 0, free lines is 3287 [08:57:40]MH_Cut [08:57:40]Write to MH i2c: D1 01 00 8E 19 01 79 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: D1 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: D1 01 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: D1 01 00 8E 19 00 78 [08:57:40]Write to MH i2c: 01 00 00 8F 19 A8 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]OFD Sender: No OFD packet to send [08:57:41]*** Cut start [08:57:41]*** Partial cut [08:57:41]*** CUTSNS_PIN = 1 [08:57:41]*** CUTSNS_PIN = 0 [08:57:41]*** Brake cut motor [08:57:41]Read from MH i2c: 01 [08:57:41]MH_I2C_Read... [08:57:41]*** Stop cut motor [08:57:41]*** Cut end [08:57:41]Read from MH i2c: 01 07 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: 01 07 00 8F 19 00 00 00 00 00 FF 0F BD [08:57:41]process_action close_receipt done [08:57:41]requested_data is exist [08:57:41]produce_requested_data [08:57:41]requested_item fm.sn is exist - process it [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 11 00 00 [08:57:41]Write to MH i2c: E2 08 00 90 19 80 11 00 00 00 00 00 00 23 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 17 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 17 00 90 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [08:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:57:41]wFMCommunicate OK [08:57:41]requested_item fd.num is exist - process it [08:57:41]SAM_PROTO_GetFieldsCounters [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 13 00 00 [08:57:41]Write to MH i2c: E2 08 00 91 19 80 13 00 00 00 00 00 00 26 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 62 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 62 00 91 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [08:57:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:41]wFMCommunicate OK [08:57:41]SAM_PROTO_GetFieldsCounters done [08:57:41]requested_item shift.num is exist - process it [08:57:41]requested_item shift.opened is exist - process it [08:57:41]req_shift_opened [08:57:41]FM_GetShiftState [08:57:41]SAM_PROTO_GetShiftState [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 13 01 00 [08:57:41]Write to MH i2c: E2 08 00 92 19 80 13 01 00 00 00 00 00 28 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 0E 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 0E 00 92 19 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B9 [08:57:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [08:57:41]wFMCommunicate OK [08:57:41]SAM_PROTO_GetShiftState done [08:57:41]FM_GetShiftState done [08:57:41]req_shift_opened done [08:57:41]requested_item shift.open_date is exist - process it [08:57:41]req_shift_open_date [08:57:41]req_shift_open_date done [08:57:41]produce_requested_data done [08:57:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139573,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [08:57:41]process_action_free close_receipt [08:57:41]json_value_free [08:57:41]json_value_free done [08:57:41]process_json_proto returns [08:57:41]Send response to host [08:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139573,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [08:57:41]free response buf [08:57:41]execute_script done [08:57:41]execute_script returns [08:57:41]free content buf [08:57:41]Sock 7.Close socket [08:57:41]Sock 7.Thread stoped [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:50]accept exits with 9 [09:00:50]New connection [09:00:50]New thread 3067215204 created [09:00:50]Thread 3067071844 joined [09:00:50]Waiting for new connection... [09:00:50] Sock 9.Parse request [09:00:50]Sock 9.Check first char [09:00:50]Sock 9.First char is OK [09:00:50]request: POST /json_proto HTTP/1.0 [09:00:50]Method: POST [09:00:50]URL: /json_proto [09:00:50]Method is POST - this is cgi request [09:00:50]url: /json_proto [09:00:50]query_string will be loaded in cgi processing [09:00:50]execute_cgi json_proto POST (null) [09:00:50]execute_cgi path=json_proto method=POST [09:00:50]POST find Content-Length [09:00:50]Host: 172.17.45.67:8080 [09:00:50]Content-Length: 677 [09:00:50]Content-Type: application/json [09:00:50] [09:00:50]POST finish read [09:00:50]Found Content-Length = 677 [09:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:50]execute_script... [09:00:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:50]POST & json_proto [09:00:50]process_json_proto [09:00:50]json parsed OK: [09:00:50]protocol is kg_v1.0 [09:00:50]action value=close_receipt [09:00:50]process_action close_receipt [09:00:50]cmd_close_receipt [09:00:50]MH_GetDate [09:00:50]Write to MH i2c: F0 00 00 93 19 9B [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: F0 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: F0 09 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: F0 09 00 93 19 00 45 5B C4 66 5F 7F 2B 66 DD [09:00:50]GetLastDocTimeStamp 1724144260 [09:00:50]current date 1724144453 [09:00:50]FM_GetShiftState [09:00:50]SAM_PROTO_GetShiftState [09:00:50]wFMCommunicate request_size=4 [09:00:50]MH_SAM_APDU [09:00:50]CAPDU: 80 13 01 00 [09:00:50]Write to MH i2c: E2 08 00 94 19 80 13 01 00 00 00 00 00 2A [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:50]Read from MH i2c: E2 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 0E 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 0E 00 94 19 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BB [09:00:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:00:50]wFMCommunicate OK [09:00:50]SAM_PROTO_GetShiftState done [09:00:50]FM_GetShiftState done [09:00:50]opened in 1724113785 [09:00:50]opened+sec_in_day 1724200185 [09:00:50]quantity*price = 50036 [09:00:50]sum+1 = 50037 [09:00:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 46 20.08.2024 09:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139574 ФПД: 162665355174550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090053&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139574&fm=162665355174550&tin=02508201610067®Number=0000000000092569&sum=50000 [09:00:51]StoreToDocumentArchive [09:00:51]shift 453 fd 139574 [09:00:51]save to /storage/0453/doc_00139574 [09:00:51]save last doc name /storage/0453/doc_00139574 to /storage/kkm_last_doc_name [09:00:51]save OK [09:00:51]Clear old archive folders... [09:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:51]tlvbuf is B6DE8620 [09:00:51]SAM_PROTO_ClearQueue [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 09 00 00 [09:00:51]Write to MH i2c: E2 08 00 A1 19 80 09 00 00 00 00 00 00 2C [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 A1 19 00 90 00 2E [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]SAM_PROTO_ClearQueue done [09:00:51]KKMCreateOFDPacket [09:00:51]OFDProtocolAddRootSTLVToBuf [09:00:51]FM_MakeSignedData [09:00:51]FM_MakeSignedData [09:00:51]SAM_PROTO_SignData [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 01 02 [09:00:51]Write to MH i2c: E2 08 00 A2 19 80 0D 01 02 00 00 00 00 34 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 A2 19 00 90 00 2F [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]wFMCommunicate request_size=255 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 21 02 00 35 04 06 00 93 [09:00:51]Write to MH i2c: E2 02 01 A3 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 21 02 00 35 04 06 00 93 00 00 67 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 A3 19 00 90 00 30 [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]wFMCommunicate request_size=10 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 02 02 05 F1 7A B6 62 96 [09:00:51]Write to MH i2c: E2 0D 00 A4 19 80 0D 02 02 05 00 F1 7A B6 62 96 00 00 5A [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 A4 19 00 90 00 31 [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 03 02 [09:00:51]Write to MH i2c: E2 08 00 A5 19 80 0D 03 02 00 00 00 00 39 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:52]Read from MH i2c: E2 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: E2 0B 00 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: E2 0B 00 A5 19 00 EE 2D D5 3B 1B EC 81 AF 90 00 9C [09:00:52]RAPDU: EE 2D D5 3B 1B EC 81 AF 90 00 [09:00:52]wFMCommunicate OK [09:00:52]SAM_PROTO_SignData done [09:00:52]FM_MakeSignedData done [09:00:52]CreateOFDProtocolMessage [09:00:52]wFMCommunicate request_size=4 [09:00:52]MH_SAM_APDU [09:00:52]CAPDU: 80 11 00 00 [09:00:52]Write to MH i2c: E2 08 00 A6 19 80 11 00 00 00 00 00 00 39 [09:00:52]Write i2c OK [09:00:52]MH_I2C_Read... [09:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:52]Read from MH i2c: E2 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: E2 17 00 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: E2 17 00 A6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [09:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:00:52]wFMCommunicate OK [09:00:52]CreateOFDProtocolMessage done [09:00:52]OFDSenderStorePacket 139574 [09:00:52]StoreOFDPacket docnum=139574 [09:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BE A8 07 01 4A 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 21 02 00 35 04 06 00 93 F1 7A B6 62 96 EE 2D D5 3B 1B EC 81 AF [09:00:52]CheckFolder [09:00:52]dirname=/storage/ofd_packets [09:00:52]CheckFolder done [09:00:52]ProducePacketName [09:00:52]name=ofd_packets/00139574 [09:00:52]NVStorageSaveData ofd_packets/00139574 [09:00:52]File name is /storage/ofd_packets/00139574 [09:00:52]Write 301 bytes [09:00:52]NVStorageSaveData done [09:00:52]OFDSenderStorePacket done [09:00:52]KKMCreateOFDPacket done [09:00:52]NVStorageSaveData kkm_last_timestamp [09:00:52]File name is /storage/kkm_last_timestamp [09:00:52]Write 4 bytes [09:00:52]NVStorageSaveData done [09:00:52]ExternCall_PrintAddStr [09:00:52]wPrintStart [09:00:52]Write to MH i2c: 01 00 00 A7 19 C0 [09:00:52]Write i2c OK [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: 01 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: 01 07 00 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: 01 07 00 A7 19 00 00 00 00 00 FF 0F D5 [09:00:52]RasterBufferAndPrint [09:00:52]line Счет N : (1)593416 [09:00:52]line ИНН: 02508201610067 [09:00:52]line Контрольно-Кассовый Чек [09:00:52]line ПРОДАЖА [09:00:52]line ТРК (МРК, ГНК) : 32 [09:00:52]line Товар: 2710124130 [09:00:52]line Аи-92-К-5 [09:00:52]line 7.380 * 67.80 [09:00:52]line = 500.36 [09:00:52]line НДС 12% НСП 1% [09:00:52]line > о реализуемом товаре [09:00:52]line ОКРУГЛЕНИЕ: -0.36 [09:00:52]line ИТОГО: 500.00 [09:00:52]line Внесено: 500.00 [09:00:52]line СДАЧА: 0.00 [09:00:52]line НСП 1% : 4.43 [09:00:52]line НДС 12% : 53.14 [09:00:52]line Наличными: 500.00 [09:00:52]line Безнал.: 0.00 [09:00:52]line Место: АЗС № 136 "Партнер Нефть" [09:00:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:00:52]line СНО: Общий режим [09:00:52]line Чек 46 20.08.2024 09:00 [09:00:52]line Смена: 453 ФФД: 1.0 [09:00:52]line ЗНМ: 0300000067 [09:00:52]line РНМ: 0000000000092569 [09:00:52]line Версия ККМ: 001 [09:00:52]line ФМ: 0000000000871776 [09:00:52]line ФД: 139574 [09:00:52]line ФПД: 162665355174550 [09:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090053&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139574&fm=162665355174550&tin=02508201610067®Number=0000000000092569&sum=50000 [09:00:52]OFD Sender: Processing packet 139574 [packets to send 137, broken 136] [09:00:52]ProducePacketName [09:00:52]name=ofd_packets/00139574 [09:00:52]OFD Sender: To server: pG, [09:00:52]CommunicateWithHost lk.salyk.kg:30040 [09:00:52]ConnectInit lk.salyk.kg [09:00:52]written 0, free lines is 4095 [09:00:52]Connected sock=11 [09:00:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BE A8 07 01 4A 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 21 02 00 35 04 06 00 93 F1 7A B6 62 96 EE 2D D5 3B 1B EC 81 AF [09:00:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 40 41 47 00 16 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 21 02 00 F4 03 04 00 D8 01 C4 66 B6 04 01 00 00 F3 43 69 47 F9 69 52 E4 [09:00:52]CommunicateWithHost err = 0 [09:00:52]CheckOFDResponse [09:00:52]1017 (14) - 77093643461234 [09:00:52]1041 (16) - 0000000000871776 [09:00:52]1040 (4) - 139574 [09:00:52]1012 (4) - 20.08.2024 02:39 [09:00:52]1206 (1) - 0 [09:00:52]OFD Sender: Remove packet 139574 [09:00:52]ProducePacketName [09:00:52]name=ofd_packets/00139574 [09:00:52]NVStorageDeleteData [09:00:52]Write to MH i2c: 01 00 00 D2 19 EB [09:00:52]Write i2c OK [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: 01 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: 01 07 00 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: 01 07 00 D2 19 00 00 00 00 00 D6 0C D4 [09:00:52]RasterBufferAndPrint [09:00:52]line [09:00:52]line [09:00:52]line [09:00:52]line [09:00:52]line [09:00:52]written 0, free lines is 3290 [09:00:52]MH_Cut [09:00:52]Write to MH i2c: D1 01 00 D9 19 01 C4 [09:00:52]Write i2c OK [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: D1 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: D1 01 00 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: D1 01 00 D9 19 00 C3 [09:00:52]Write to MH i2c: 01 00 00 DA 19 F3 [09:00:52]Write i2c OK [09:00:52]MH_I2C_Read... [09:00:53]OFD Sender: No OFD packet to send [09:00:53]*** Cut start [09:00:53]*** Partial cut [09:00:53]*** CUTSNS_PIN = 1 [09:00:53]*** CUTSNS_PIN = 0 [09:00:53]*** Brake cut motor [09:00:54]Read from MH i2c: 01 [09:00:54]MH_I2C_Read... [09:00:54]*** Stop cut motor [09:00:54]*** Cut end [09:00:54]Read from MH i2c: 01 07 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: 01 07 00 DA 19 00 00 00 00 00 FF 0F 08 [09:00:54]process_action close_receipt done [09:00:54]requested_data is exist [09:00:54]produce_requested_data [09:00:54]requested_item fm.sn is exist - process it [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 11 00 00 [09:00:54]Write to MH i2c: E2 08 00 DB 19 80 11 00 00 00 00 00 00 6E [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 17 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 17 00 DB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C5 [09:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:00:54]wFMCommunicate OK [09:00:54]requested_item fd.num is exist - process it [09:00:54]SAM_PROTO_GetFieldsCounters [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 13 00 00 [09:00:54]Write to MH i2c: E2 08 00 DC 19 80 13 00 00 00 00 00 00 71 [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 62 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 62 00 DC 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [09:00:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:54]wFMCommunicate OK [09:00:54]SAM_PROTO_GetFieldsCounters done [09:00:54]requested_item shift.num is exist - process it [09:00:54]requested_item shift.opened is exist - process it [09:00:54]req_shift_opened [09:00:54]FM_GetShiftState [09:00:54]SAM_PROTO_GetShiftState [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 13 01 00 [09:00:54]Write to MH i2c: E2 08 00 DD 19 80 13 01 00 00 00 00 00 73 [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 0E 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 0E 00 DD 19 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 04 [09:00:54]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:00:54]wFMCommunicate OK [09:00:54]SAM_PROTO_GetShiftState done [09:00:54]FM_GetShiftState done [09:00:54]req_shift_opened done [09:00:54]requested_item shift.open_date is exist - process it [09:00:54]req_shift_open_date [09:00:54]req_shift_open_date done [09:00:54]produce_requested_data done [09:00:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139574,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:00:54]process_action_free close_receipt [09:00:54]json_value_free [09:00:54]json_value_free done [09:00:54]process_json_proto returns [09:00:54]Send response to host [09:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139574,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:00:54]free response buf [09:00:54]execute_script done [09:00:54]execute_script returns [09:00:54]free content buf [09:00:54]Sock 9.Close socket [09:00:54]Sock 9.Thread stoped [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:56]accept exits with 7 [09:01:56]New connection [09:01:56]New thread 3067071844 created [09:01:56]Thread 3067215204 joined [09:01:56]Waiting for new connection... [09:01:56] Sock 7.Parse request [09:01:56]Sock 7.Check first char [09:01:56]Sock 7.First char is OK [09:01:56]request: POST /json_proto HTTP/1.0 [09:01:56]Method: POST [09:01:56]URL: /json_proto [09:01:56]Method is POST - this is cgi request [09:01:56]url: /json_proto [09:01:56]query_string will be loaded in cgi processing [09:01:56]execute_cgi json_proto POST (null) [09:01:56]execute_cgi path=json_proto method=POST [09:01:56]POST find Content-Length [09:01:56]Host: 172.17.45.67:8080 [09:01:56]Content-Length: 677 [09:01:56]Content-Type: application/json [09:01:56] [09:01:56]POST finish read [09:01:56]Found Content-Length = 677 [09:01:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:56]execute_script... [09:01: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)593417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:56]POST & json_proto [09:01:56]process_json_proto [09:01:56]json parsed OK: [09:01:56]protocol is kg_v1.0 [09:01:56]action value=close_receipt [09:01:56]process_action close_receipt [09:01:56]cmd_close_receipt [09:01:56]MH_GetDate [09:01:56]Write to MH i2c: F0 00 00 DE 19 E6 [09:01:56]Write i2c OK [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: F0 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: F0 09 00 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: F0 09 00 DE 19 00 87 5B C4 66 5F 7F 2B 66 6A [09:01:56]GetLastDocTimeStamp 1724144453 [09:01:56]current date 1724144519 [09:01:56]FM_GetShiftState [09:01:56]SAM_PROTO_GetShiftState [09:01:56]wFMCommunicate request_size=4 [09:01:56]MH_SAM_APDU [09:01:56]CAPDU: 80 13 01 00 [09:01:56]Write to MH i2c: E2 08 00 DF 19 80 13 01 00 00 00 00 00 75 [09:01:56]Write i2c OK [09:01:56]MH_I2C_Read... [09:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:56]Read from MH i2c: E2 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: E2 0E 00 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: E2 0E 00 DF 19 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 06 [09:01:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:01:56]wFMCommunicate OK [09:01:56]SAM_PROTO_GetShiftState done [09:01:56]FM_GetShiftState done [09:01:56]opened in 1724113785 [09:01:56]opened+sec_in_day 1724200185 [09:01:56]quantity*price = 40002 [09:01:56]sum+1 = 40003 [09:01:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 47 20.08.2024 09:01 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139575 ФПД: 197163529934956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090159&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139575&fm=197163529934956&tin=02508201610067®Number=0000000000092569&sum=40000 [09:01:57]StoreToDocumentArchive [09:01:57]shift 453 fd 139575 [09:01:57]save to /storage/0453/doc_00139575 [09:01:57]save last doc name /storage/0453/doc_00139575 to /storage/kkm_last_doc_name [09:01:57]save OK [09:01:57]Clear old archive folders... [09:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:57]tlvbuf is 00D5AE50 [09:01:57]SAM_PROTO_ClearQueue [09:01:57]wFMCommunicate request_size=4 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 09 00 00 [09:01:57]Write to MH i2c: E2 08 00 EC 19 80 09 00 00 00 00 00 00 77 [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 EC 19 00 90 00 79 [09:01:57]RAPDU: 90 00 [09:01:57]wFMCommunicate OK [09:01:57]SAM_PROTO_ClearQueue done [09:01:57]KKMCreateOFDPacket [09:01:57]OFDProtocolAddRootSTLVToBuf [09:01:57]FM_MakeSignedData [09:01:57]FM_MakeSignedData [09:01:57]SAM_PROTO_SignData [09:01:57]wFMCommunicate request_size=4 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 0D 01 02 [09:01:57]Write to MH i2c: E2 08 00 ED 19 80 0D 01 02 00 00 00 00 7F [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 ED 19 00 90 00 7A [09:01:57]RAPDU: 90 00 [09:01:57]wFMCommunicate OK [09:01:57]wFMCommunicate request_size=255 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 87 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 21 02 00 35 04 06 00 B3 [09:01:58]Write to MH i2c: E2 02 01 EE 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 87 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 21 02 00 35 04 06 00 B3 00 00 FB [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 EE 19 00 90 00 7B [09:01:58]RAPDU: 90 00 [09:01:58]wFMCommunicate OK [09:01:58]wFMCommunicate request_size=10 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 0D 02 02 05 51 B6 2A 18 6C [09:01:58]Write to MH i2c: E2 0D 00 EF 19 80 0D 02 02 05 00 51 B6 2A 18 6C 00 00 41 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 03 00 EF 19 00 90 00 7C [09:01:58]RAPDU: 90 00 [09:01:58]wFMCommunicate OK [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 0D 03 02 [09:01:58]Write to MH i2c: E2 08 00 F0 19 80 0D 03 02 00 00 00 00 84 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 0B 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 0B 00 F0 19 00 1B 9B AA DE 12 C4 AD 2D 90 00 73 [09:01:58]RAPDU: 1B 9B AA DE 12 C4 AD 2D 90 00 [09:01:58]wFMCommunicate OK [09:01:58]SAM_PROTO_SignData done [09:01:58]FM_MakeSignedData done [09:01:58]CreateOFDProtocolMessage [09:01:58]wFMCommunicate request_size=4 [09:01:58]MH_SAM_APDU [09:01:58]CAPDU: 80 11 00 00 [09:01:58]Write to MH i2c: E2 08 00 F1 19 80 11 00 00 00 00 00 00 84 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:58]Read from MH i2c: E2 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 17 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: E2 17 00 F1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [09:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:01:58]wFMCommunicate OK [09:01:58]CreateOFDProtocolMessage done [09:01:58]OFDSenderStorePacket 139575 [09:01:58]StoreOFDPacket docnum=139575 [09:01:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 70 F0 07 01 6C 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 87 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 21 02 00 35 04 06 00 B3 51 B6 2A 18 6C 1B 9B AA DE 12 C4 AD 2D [09:01:58]CheckFolder [09:01:58]dirname=/storage/ofd_packets [09:01:58]CheckFolder done [09:01:58]ProducePacketName [09:01:58]name=ofd_packets/00139575 [09:01:58]NVStorageSaveData ofd_packets/00139575 [09:01:58]File name is /storage/ofd_packets/00139575 [09:01:58]Write 301 bytes [09:01:58]NVStorageSaveData done [09:01:58]OFDSenderStorePacket done [09:01:58]KKMCreateOFDPacket done [09:01:58]NVStorageSaveData kkm_last_timestamp [09:01:58]File name is /storage/kkm_last_timestamp [09:01:58]Write 4 bytes [09:01:58]NVStorageSaveData done [09:01:58]ExternCall_PrintAddStr [09:01:58]wPrintStart [09:01:58]Write to MH i2c: 01 00 00 F2 19 0B [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 07 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 07 00 F2 19 00 00 00 00 00 FF 0F 20 [09:01:58]RasterBufferAndPrint [09:01:58]line Счет N : (1)593417 [09:01:58]line ИНН: 02508201610067 [09:01:58]line Контрольно-Кассовый Чек [09:01:58]line ПРОДАЖА [09:01:58]line ТРК (МРК, ГНК) : 42 [09:01:58]line Товар: 2710124130 [09:01:58]line Аи-92-К-5 [09:01:58]line 5.900 * 67.80 [09:01:58]line = 400.02 [09:01:58]line НДС 12% НСП 1% [09:01:58]line > о реализуемом товаре [09:01:58]line ОКРУГЛЕНИЕ: -0.02 [09:01:58]line ИТОГО: 400.00 [09:01:58]line Внесено: 400.00 [09:01:58]line СДАЧА: 0.00 [09:01:58]line НСП 1% : 3.54 [09:01:58]line НДС 12% : 42.48 [09:01:58]line Наличными: 400.00 [09:01:58]line Безнал.: 0.00 [09:01:58]line Место: АЗС № 136 "Партнер Нефть" [09:01:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:01:58]line СНО: Общий режим [09:01:58]line Чек 47 20.08.2024 09:01 [09:01:58]line Смена: 453 ФФД: 1.0 [09:01:58]line ЗНМ: 0300000067 [09:01:58]line РНМ: 0000000000092569 [09:01:58]line Версия ККМ: 001 [09:01:58]line ФМ: 0000000000871776 [09:01:58]line ФД: 139575 [09:01:58]line ФПД: 197163529934956 [09:01:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090159&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139575&fm=197163529934956&tin=02508201610067®Number=0000000000092569&sum=40000 [09:01:58]OFD Sender: Processing packet 139575 [packets to send 137, broken 136] [09:01:58]ProducePacketName [09:01:58]name=ofd_packets/00139575 [09:01:58]OFD Sender: To server: pG, [09:01:58]CommunicateWithHost lk.salyk.kg:30040 [09:01:58]ConnectInit lk.salyk.kg [09:01:58]written 0, free lines is 4095 [09:01:58]Connected sock=9 [09:01:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 70 F0 07 01 6C 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 87 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 21 02 00 35 04 06 00 B3 51 B6 2A 18 6C 1B 9B AA DE 12 C4 AD 2D [09:01:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AD B7 47 00 21 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 21 02 00 F4 03 04 00 1B 02 C4 66 B6 04 01 00 00 BC D7 FA EF C5 2E 70 9E [09:01:59]CommunicateWithHost err = 0 [09:01:59]CheckOFDResponse [09:01:59]1017 (14) - 77093643461234 [09:01:59]1041 (16) - 0000000000871776 [09:01:59]1040 (4) - 139575 [09:01:59]1012 (4) - 20.08.2024 02:40 [09:01:59]1206 (1) - 0 [09:01:59]OFD Sender: Remove packet 139575 [09:01:59]ProducePacketName [09:01:59]name=ofd_packets/00139575 [09:01:59]NVStorageDeleteData [09:01:59]Write to MH i2c: 01 00 00 1D 1A 37 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 07 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: 01 07 00 1D 1A 00 00 00 00 00 C8 0C 12 [09:01:59]RasterBufferAndPrint [09:01:59]line [09:01:59]line [09:01:59]line [09:01:59]line [09:01:59]line [09:01:59]written 0, free lines is 3278 [09:01:59]MH_Cut [09:01:59]Write to MH i2c: D1 01 00 24 1A 01 10 [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: D1 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: D1 01 00 [09:01:59]MH_I2C_Read... [09:01:59]Read from MH i2c: D1 01 00 24 1A 00 0F [09:01:59]Write to MH i2c: 01 00 00 25 1A 3F [09:01:59]Write i2c OK [09:01:59]MH_I2C_Read... [09:01:59]OFD Sender: No OFD packet to send [09:01:59]*** Cut start [09:01:59]*** Partial cut [09:01:59]*** CUTSNS_PIN = 1 [09:02:00]*** CUTSNS_PIN = 0 [09:02:00]*** Brake cut motor [09:02:00]Read from MH i2c: 01 [09:02:00]MH_I2C_Read... [09:02:00]*** Stop cut motor [09:02:00]*** Cut end [09:02:00]Read from MH i2c: 01 07 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: 01 07 00 25 1A 00 00 00 00 00 FF 0F 54 [09:02:00]process_action close_receipt done [09:02:00]requested_data is exist [09:02:00]produce_requested_data [09:02:00]requested_item fm.sn is exist - process it [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 11 00 00 [09:02:00]Write to MH i2c: E2 08 00 26 1A 80 11 00 00 00 00 00 00 BA [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 26 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 11 [09:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:02:00]wFMCommunicate OK [09:02:00]requested_item fd.num is exist - process it [09:02:00]SAM_PROTO_GetFieldsCounters [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 13 00 00 [09:02:00]Write to MH i2c: E2 08 00 27 1A 80 13 00 00 00 00 00 00 BD [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 62 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 62 00 27 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [09:02:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:00]wFMCommunicate OK [09:02:00]SAM_PROTO_GetFieldsCounters done [09:02:00]requested_item shift.num is exist - process it [09:02:00]requested_item shift.opened is exist - process it [09:02:00]req_shift_opened [09:02:00]FM_GetShiftState [09:02:00]SAM_PROTO_GetShiftState [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 13 01 00 [09:02:00]Write to MH i2c: E2 08 00 28 1A 80 13 01 00 00 00 00 00 BF [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 0E 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 0E 00 28 1A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 50 [09:02:00]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:02:00]wFMCommunicate OK [09:02:00]SAM_PROTO_GetShiftState done [09:02:00]FM_GetShiftState done [09:02:00]req_shift_opened done [09:02:00]requested_item shift.open_date is exist - process it [09:02:00]req_shift_open_date [09:02:00]req_shift_open_date done [09:02:00]produce_requested_data done [09:02:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139575,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:02:00]process_action_free close_receipt [09:02:00]json_value_free [09:02:00]json_value_free done [09:02:00]process_json_proto returns [09:02:00]Send response to host [09:02:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139575,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:02:00]free response buf [09:02:00]execute_script done [09:02:00]execute_script returns [09:02:00]free content buf [09:02:00]Sock 7.Close socket [09:02:00]Sock 7.Thread stoped [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:31]accept exits with 10 [09:02:31]New connection [09:02:31]New thread 3067215204 created [09:02:31]Thread 3067071844 joined [09:02:31]Waiting for new connection... [09:02:31] Sock 10.Parse request [09:02:31]Sock 10.Check first char [09:02:31]Sock 10.First char is OK [09:02:31]request: POST /json_proto HTTP/1.0 [09:02:31]Method: POST [09:02:31]URL: /json_proto [09:02:31]Method is POST - this is cgi request [09:02:31]url: /json_proto [09:02:31]query_string will be loaded in cgi processing [09:02:31]execute_cgi json_proto POST (null) [09:02:31]execute_cgi path=json_proto method=POST [09:02:31]POST find Content-Length [09:02:31]Host: 172.17.45.67:8080 [09:02:31]Content-Length: 677 [09:02:31]Content-Type: application/json [09:02:31] [09:02:31]POST finish read [09:02:31]Found Content-Length = 677 [09:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:31]execute_script... [09:02: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)593418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:31]POST & json_proto [09:02:31]process_json_proto [09:02:31]json parsed OK: [09:02:31]protocol is kg_v1.0 [09:02:31]action value=close_receipt [09:02:31]process_action close_receipt [09:02:31]cmd_close_receipt [09:02:31]MH_GetDate [09:02:31]Write to MH i2c: F0 00 00 29 1A 32 [09:02:31]Write i2c OK [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: F0 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: F0 09 00 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: F0 09 00 29 1A 00 AA 5B C4 66 5F 7F 2B 66 D9 [09:02:31]GetLastDocTimeStamp 1724144519 [09:02:31]current date 1724144554 [09:02:31]FM_GetShiftState [09:02:31]SAM_PROTO_GetShiftState [09:02:31]wFMCommunicate request_size=4 [09:02:31]MH_SAM_APDU [09:02:31]CAPDU: 80 13 01 00 [09:02:31]Write to MH i2c: E2 08 00 2A 1A 80 13 01 00 00 00 00 00 C1 [09:02:31]Write i2c OK [09:02:31]MH_I2C_Read... [09:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:31]Read from MH i2c: E2 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: E2 0E 00 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: E2 0E 00 2A 1A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 52 [09:02:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:02:31]wFMCommunicate OK [09:02:31]SAM_PROTO_GetShiftState done [09:02:31]FM_GetShiftState done [09:02:31]opened in 1724113785 [09:02:31]opened+sec_in_day 1724200185 [09:02:31]quantity*price = 50036 [09:02:31]sum+1 = 50037 [09:02:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 48 20.08.2024 09:02 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139576 ФПД: 209651248753418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090234&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139576&fm=209651248753418&tin=02508201610067®Number=0000000000092569&sum=50000 [09:02:32]StoreToDocumentArchive [09:02:32]shift 453 fd 139576 [09:02:32]save to /storage/0453/doc_00139576 [09:02:32]save last doc name /storage/0453/doc_00139576 to /storage/kkm_last_doc_name [09:02:32]save OK [09:02:32]Clear old archive folders... [09:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:32]tlvbuf is 00DA9180 [09:02:32]SAM_PROTO_ClearQueue [09:02:32]wFMCommunicate request_size=4 [09:02:32]MH_SAM_APDU [09:02:32]CAPDU: 80 09 00 00 [09:02:32]Write to MH i2c: E2 08 00 37 1A 80 09 00 00 00 00 00 00 C3 [09:02:32]Write i2c OK [09:02:32]MH_I2C_Read... [09:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:32]Read from MH i2c: E2 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 03 00 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 03 00 37 1A 00 90 00 C5 [09:02:32]RAPDU: 90 00 [09:02:32]wFMCommunicate OK [09:02:32]SAM_PROTO_ClearQueue done [09:02:32]KKMCreateOFDPacket [09:02:32]OFDProtocolAddRootSTLVToBuf [09:02:32]FM_MakeSignedData [09:02:32]FM_MakeSignedData [09:02:32]SAM_PROTO_SignData [09:02:32]wFMCommunicate request_size=4 [09:02:32]MH_SAM_APDU [09:02:32]CAPDU: 80 0D 01 02 [09:02:32]Write to MH i2c: E2 08 00 38 1A 80 0D 01 02 00 00 00 00 CB [09:02:32]Write i2c OK [09:02:32]MH_I2C_Read... [09:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:32]Read from MH i2c: E2 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 03 00 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 03 00 38 1A 00 90 00 C6 [09:02:32]RAPDU: 90 00 [09:02:32]wFMCommunicate OK [09:02:32]wFMCommunicate request_size=255 [09:02:32]MH_SAM_APDU [09:02:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 AA 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 21 02 00 35 04 06 00 BE [09:02:32]Write to MH i2c: E2 02 01 39 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 AA 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 21 02 00 35 04 06 00 BE 00 00 92 [09:02:32]Write i2c OK [09:02:32]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 39 1A 00 90 00 C7 [09:02:33]RAPDU: 90 00 [09:02:33]wFMCommunicate OK [09:02:33]wFMCommunicate request_size=10 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 0D 02 02 05 AD 3C 35 6B 0A [09:02:33]Write to MH i2c: E2 0D 00 3A 1A 80 0D 02 02 05 00 AD 3C 35 6B 0A 00 00 6B [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 3A 1A 00 90 00 C8 [09:02:33]RAPDU: 90 00 [09:02:33]wFMCommunicate OK [09:02:33]wFMCommunicate request_size=4 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 0D 03 02 [09:02:33]Write to MH i2c: E2 08 00 3B 1A 80 0D 03 02 00 00 00 00 D0 [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 0B 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 0B 00 3B 1A 00 AB B6 93 BD A9 F0 BB 1A 90 00 F0 [09:02:33]RAPDU: AB B6 93 BD A9 F0 BB 1A 90 00 [09:02:33]wFMCommunicate OK [09:02:33]SAM_PROTO_SignData done [09:02:33]FM_MakeSignedData done [09:02:33]CreateOFDProtocolMessage [09:02:33]wFMCommunicate request_size=4 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 11 00 00 [09:02:33]Write to MH i2c: E2 08 00 3C 1A 80 11 00 00 00 00 00 00 D0 [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 17 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 17 00 3C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [09:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:02:33]wFMCommunicate OK [09:02:33]CreateOFDProtocolMessage done [09:02:33]OFDSenderStorePacket 139576 [09:02:33]StoreOFDPacket docnum=139576 [09:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 66 73 07 01 EE D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 AA 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 21 02 00 35 04 06 00 BE AD 3C 35 6B 0A AB B6 93 BD A9 F0 BB 1A [09:02:33]CheckFolder [09:02:33]dirname=/storage/ofd_packets [09:02:33]CheckFolder done [09:02:33]ProducePacketName [09:02:33]name=ofd_packets/00139576 [09:02:33]NVStorageSaveData ofd_packets/00139576 [09:02:33]File name is /storage/ofd_packets/00139576 [09:02:33]Write 301 bytes [09:02:33]NVStorageSaveData done [09:02:33]OFDSenderStorePacket done [09:02:33]KKMCreateOFDPacket done [09:02:33]NVStorageSaveData kkm_last_timestamp [09:02:33]File name is /storage/kkm_last_timestamp [09:02:33]Write 4 bytes [09:02:33]NVStorageSaveData done [09:02:33]ExternCall_PrintAddStr [09:02:33]wPrintStart [09:02:33]Write to MH i2c: 01 00 00 3D 1A 57 [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 07 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 07 00 3D 1A 00 00 00 00 00 FF 0F 6C [09:02:33]RasterBufferAndPrint [09:02:33]line Счет N : (1)593418 [09:02:33]line ИНН: 02508201610067 [09:02:33]line Контрольно-Кассовый Чек [09:02:33]line ПРОДАЖА [09:02:33]line ТРК (МРК, ГНК) : 52 [09:02:33]line Товар: 2710124130 [09:02:33]line Аи-92-К-5 [09:02:33]line 7.380 * 67.80 [09:02:33]line = 500.36 [09:02:33]line НДС 12% НСП 1% [09:02:33]line > о реализуемом товаре [09:02:33]line ОКРУГЛЕНИЕ: -0.36 [09:02:33]line ИТОГО: 500.00 [09:02:33]line Внесено: 500.00 [09:02:33]line СДАЧА: 0.00 [09:02:33]line НСП 1% : 4.43 [09:02:33]line НДС 12% : 53.14 [09:02:33]line Наличными: 500.00 [09:02:33]line Безнал.: 0.00 [09:02:33]line Место: АЗС № 136 "Партнер Нефть" [09:02:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:02:33]line СНО: Общий режим [09:02:33]line Чек 48 20.08.2024 09:02 [09:02:33]line Смена: 453 ФФД: 1.0 [09:02:33]line ЗНМ: 0300000067 [09:02:33]line РНМ: 0000000000092569 [09:02:33]line Версия ККМ: 001 [09:02:33]line ФМ: 0000000000871776 [09:02:33]line ФД: 139576 [09:02:33]line ФПД: 209651248753418 [09:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090234&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139576&fm=209651248753418&tin=02508201610067®Number=0000000000092569&sum=50000 [09:02:33]OFD Sender: Processing packet 139576 [packets to send 137, broken 136] [09:02:33]ProducePacketName [09:02:33]name=ofd_packets/00139576 [09:02:33]OFD Sender: To server: pG, [09:02:33]CommunicateWithHost lk.salyk.kg:30040 [09:02:33]ConnectInit lk.salyk.kg [09:02:33]written 0, free lines is 4095 [09:02:33]Connected sock=9 [09:02:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 66 73 07 01 EE D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 AA 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 21 02 00 35 04 06 00 BE AD 3C 35 6B 0A AB B6 93 BD A9 F0 BB 1A [09:02:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 34 DB 47 00 62 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 21 02 00 F4 03 04 00 3E 02 C4 66 B6 04 01 00 00 D8 96 47 E4 89 77 C1 DB [09:02:34]CommunicateWithHost err = 0 [09:02:34]CheckOFDResponse [09:02:34]1017 (14) - 77093643461234 [09:02:34]1041 (16) - 0000000000871776 [09:02:34]1040 (4) - 139576 [09:02:34]1012 (4) - 20.08.2024 02:41 [09:02:34]1206 (1) - 0 [09:02:34]OFD Sender: Remove packet 139576 [09:02:34]ProducePacketName [09:02:34]name=ofd_packets/00139576 [09:02:34]NVStorageDeleteData [09:02:34]Write to MH i2c: 01 00 00 68 1A 82 [09:02:34]Write i2c OK [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 07 00 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 07 00 68 1A 00 00 00 00 00 BE 0C 53 [09:02:34]RasterBufferAndPrint [09:02:34]line [09:02:34]line [09:02:34]line [09:02:34]line [09:02:34]line [09:02:34]written 0, free lines is 3268 [09:02:34]MH_Cut [09:02:34]Write to MH i2c: D1 01 00 6F 1A 01 5B [09:02:34]Write i2c OK [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: D1 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: D1 01 00 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: D1 01 00 6F 1A 00 5A [09:02:34]Write to MH i2c: 01 00 00 70 1A 8A [09:02:34]Write i2c OK [09:02:34]MH_I2C_Read... [09:02:34]OFD Sender: No OFD packet to send [09:02:34]*** Cut start [09:02:34]*** Partial cut [09:02:34]*** CUTSNS_PIN = 1 [09:02:34]*** CUTSNS_PIN = 0 [09:02:35]*** Brake cut motor [09:02:35]Read from MH i2c: 01 [09:02:35]MH_I2C_Read... [09:02:35]*** Stop cut motor [09:02:35]*** Cut end [09:02:35]Read from MH i2c: 01 07 00 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: 01 07 00 70 1A 00 00 00 00 00 FF 0F 9F [09:02:35]process_action close_receipt done [09:02:35]requested_data is exist [09:02:35]produce_requested_data [09:02:35]requested_item fm.sn is exist - process it [09:02:35]wFMCommunicate request_size=4 [09:02:35]MH_SAM_APDU [09:02:35]CAPDU: 80 11 00 00 [09:02:35]Write to MH i2c: E2 08 00 71 1A 80 11 00 00 00 00 00 00 05 [09:02:35]Write i2c OK [09:02:35]MH_I2C_Read... [09:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:35]Read from MH i2c: E2 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 17 00 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 17 00 71 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5C [09:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:02:35]wFMCommunicate OK [09:02:35]requested_item fd.num is exist - process it [09:02:35]SAM_PROTO_GetFieldsCounters [09:02:35]wFMCommunicate request_size=4 [09:02:35]MH_SAM_APDU [09:02:35]CAPDU: 80 13 00 00 [09:02:35]Write to MH i2c: E2 08 00 72 1A 80 13 00 00 00 00 00 00 08 [09:02:35]Write i2c OK [09:02:35]MH_I2C_Read... [09:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:35]Read from MH i2c: E2 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 62 00 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 62 00 72 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [09:02:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:35]wFMCommunicate OK [09:02:35]SAM_PROTO_GetFieldsCounters done [09:02:35]requested_item shift.num is exist - process it [09:02:35]requested_item shift.opened is exist - process it [09:02:35]req_shift_opened [09:02:35]FM_GetShiftState [09:02:35]SAM_PROTO_GetShiftState [09:02:35]wFMCommunicate request_size=4 [09:02:35]MH_SAM_APDU [09:02:35]CAPDU: 80 13 01 00 [09:02:35]Write to MH i2c: E2 08 00 73 1A 80 13 01 00 00 00 00 00 0A [09:02:35]Write i2c OK [09:02:35]MH_I2C_Read... [09:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:35]Read from MH i2c: E2 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 0E 00 [09:02:35]MH_I2C_Read... [09:02:35]Read from MH i2c: E2 0E 00 73 1A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9B [09:02:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:02:35]wFMCommunicate OK [09:02:35]SAM_PROTO_GetShiftState done [09:02:35]FM_GetShiftState done [09:02:35]req_shift_opened done [09:02:35]requested_item shift.open_date is exist - process it [09:02:35]req_shift_open_date [09:02:35]req_shift_open_date done [09:02:35]produce_requested_data done [09:02:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139576,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:02:35]process_action_free close_receipt [09:02:35]json_value_free [09:02:35]json_value_free done [09:02:35]process_json_proto returns [09:02:35]Send response to host [09:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139576,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:02:35]free response buf [09:02:35]execute_script done [09:02:35]execute_script returns [09:02:35]free content buf [09:02:35]Sock 10.Close socket [09:02:35]Sock 10.Thread stoped [09:02:39]OFD Sender: No OFD packet to send [09:02:40]int [09:02:40]Write to MH i2c: 01 00 00 74 1A 8E [09:02:40]*** FLAG_PRN_KEY set [09:02:40]Write i2c OK [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: 01 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: 01 07 00 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: 01 07 00 74 1A 00 08 00 00 00 FF 0F AB [09:02:40]state=0 [09:02:40]Key pressed [09:02:40]Feed [09:02:40]Write to MH i2c: D8 00 00 75 1A 66 [09:02:40]Write i2c OK [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: D8 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: D8 01 00 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: D8 01 00 75 1A 00 67 [09:02:40]int [09:02:40]Write to MH i2c: 01 00 00 76 1A 90 [09:02:40]Write i2c OK [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: 01 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: 01 07 00 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: 01 07 00 76 1A 00 48 00 00 00 3C 00 1B [09:02:40]state=2 [09:02:40]Key pressed [09:02:40]int [09:02:40]Write to MH i2c: 01 00 00 77 1A 91 [09:02:40]*** FLAG_PRN_KEY reset [09:02:40]Write i2c OK [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: 01 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: 01 07 00 [09:02:40]MH_I2C_Read... [09:02:40]Read from MH i2c: 01 07 00 77 1A 00 00 00 00 00 F8 0F 9F [09:02:40]state=2 [09:02:40]Stop feed [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:27]accept exits with 7 [09:03:27]New connection [09:03:27]New thread 3067071844 created [09:03:27]Thread 3067215204 joined [09:03:27]Waiting for new connection... [09:03:27] Sock 7.Parse request [09:03:27]Sock 7.Check first char [09:03:27]Sock 7.First char is OK [09:03:27]request: POST /json_proto HTTP/1.0 [09:03:27]Method: POST [09:03:27]URL: /json_proto [09:03:27]Method is POST - this is cgi request [09:03:27]url: /json_proto [09:03:27]query_string will be loaded in cgi processing [09:03:27]execute_cgi json_proto POST (null) [09:03:27]execute_cgi path=json_proto method=POST [09:03:27]POST find Content-Length [09:03:27]Host: 172.17.45.67:8080 [09:03:27]Content-Length: 677 [09:03:27]Content-Type: application/json [09:03:27] [09:03:27]POST finish read [09:03:27]Found Content-Length = 677 [09:03:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:27]execute_script... [09:03: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)593419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:27]POST & json_proto [09:03:27]process_json_proto [09:03:27]json parsed OK: [09:03:27]protocol is kg_v1.0 [09:03:27]action value=close_receipt [09:03:27]process_action close_receipt [09:03:27]cmd_close_receipt [09:03:27]MH_GetDate [09:03:27]Write to MH i2c: F0 00 00 78 1A 81 [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: F0 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: F0 09 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: F0 09 00 78 1A 00 E2 5B C4 66 5F 7F 2B 66 60 [09:03:27]GetLastDocTimeStamp 1724144554 [09:03:27]current date 1724144610 [09:03:27]FM_GetShiftState [09:03:27]SAM_PROTO_GetShiftState [09:03:27]wFMCommunicate request_size=4 [09:03:27]MH_SAM_APDU [09:03:27]CAPDU: 80 13 01 00 [09:03:27]Write to MH i2c: E2 08 00 79 1A 80 13 01 00 00 00 00 00 10 [09:03:27]Write i2c OK [09:03:27]MH_I2C_Read... [09:03:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:27]Read from MH i2c: E2 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 0E 00 [09:03:27]MH_I2C_Read... [09:03:27]Read from MH i2c: E2 0E 00 79 1A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A1 [09:03:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:03:27]wFMCommunicate OK [09:03:27]SAM_PROTO_GetShiftState done [09:03:27]FM_GetShiftState done [09:03:27]opened in 1724113785 [09:03:27]opened+sec_in_day 1724200185 [09:03:27]quantity*price = 50036 [09:03:27]sum+1 = 50037 [09:03:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 49 20.08.2024 09:03 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139577 ФПД: 136620323396548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090330&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139577&fm=136620323396548&tin=02508201610067®Number=0000000000092569&sum=50000 [09:03:28]StoreToDocumentArchive [09:03:28]shift 453 fd 139577 [09:03:28]save to /storage/0453/doc_00139577 [09:03:28]save last doc name /storage/0453/doc_00139577 to /storage/kkm_last_doc_name [09:03:28]save OK [09:03:28]Clear old archive folders... [09:03:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:28]tlvbuf is 00D44DA0 [09:03:28]SAM_PROTO_ClearQueue [09:03:28]wFMCommunicate request_size=4 [09:03:28]MH_SAM_APDU [09:03:28]CAPDU: 80 09 00 00 [09:03:28]Write to MH i2c: E2 08 00 86 1A 80 09 00 00 00 00 00 00 12 [09:03:28]Write i2c OK [09:03:28]MH_I2C_Read... [09:03:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:28]Read from MH i2c: E2 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 03 00 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 03 00 86 1A 00 90 00 14 [09:03:28]RAPDU: 90 00 [09:03:28]wFMCommunicate OK [09:03:28]SAM_PROTO_ClearQueue done [09:03:28]KKMCreateOFDPacket [09:03:28]OFDProtocolAddRootSTLVToBuf [09:03:28]FM_MakeSignedData [09:03:28]FM_MakeSignedData [09:03:28]SAM_PROTO_SignData [09:03:28]wFMCommunicate request_size=4 [09:03:28]MH_SAM_APDU [09:03:28]CAPDU: 80 0D 01 02 [09:03:28]Write to MH i2c: E2 08 00 87 1A 80 0D 01 02 00 00 00 00 1A [09:03:28]Write i2c OK [09:03:28]MH_I2C_Read... [09:03:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:28]Read from MH i2c: E2 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 03 00 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 03 00 87 1A 00 90 00 15 [09:03:28]RAPDU: 90 00 [09:03:28]wFMCommunicate OK [09:03:28]wFMCommunicate request_size=255 [09:03:28]MH_SAM_APDU [09:03:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E2 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 21 02 00 35 04 06 00 7C [09:03:28]Write to MH i2c: E2 02 01 88 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E2 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 21 02 00 35 04 06 00 7C 00 00 D9 [09:03:28]Write i2c OK [09:03:28]MH_I2C_Read... [09:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:28]Read from MH i2c: E2 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 03 00 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 03 00 88 1A 00 90 00 16 [09:03:28]RAPDU: 90 00 [09:03:28]wFMCommunicate OK [09:03:28]wFMCommunicate request_size=10 [09:03:28]MH_SAM_APDU [09:03:28]CAPDU: 80 0D 02 02 05 41 65 D8 5B C4 [09:03:28]Write to MH i2c: E2 0D 00 89 1A 80 0D 02 02 05 00 41 65 D8 5B C4 00 00 C4 [09:03:28]Write i2c OK [09:03:28]MH_I2C_Read... [09:03:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:28]Read from MH i2c: E2 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 03 00 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 03 00 89 1A 00 90 00 17 [09:03:28]RAPDU: 90 00 [09:03:28]wFMCommunicate OK [09:03:28]wFMCommunicate request_size=4 [09:03:28]MH_SAM_APDU [09:03:28]CAPDU: 80 0D 03 02 [09:03:28]Write to MH i2c: E2 08 00 8A 1A 80 0D 03 02 00 00 00 00 1F [09:03:28]Write i2c OK [09:03:28]MH_I2C_Read... [09:03:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:28]Read from MH i2c: E2 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 0B 00 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 0B 00 8A 1A 00 DD 92 7B 98 3A 54 56 33 90 00 B9 [09:03:28]RAPDU: DD 92 7B 98 3A 54 56 33 90 00 [09:03:28]wFMCommunicate OK [09:03:28]SAM_PROTO_SignData done [09:03:28]FM_MakeSignedData done [09:03:28]CreateOFDProtocolMessage [09:03:28]wFMCommunicate request_size=4 [09:03:28]MH_SAM_APDU [09:03:28]CAPDU: 80 11 00 00 [09:03:28]Write to MH i2c: E2 08 00 8B 1A 80 11 00 00 00 00 00 00 1F [09:03:28]Write i2c OK [09:03:28]MH_I2C_Read... [09:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:28]Read from MH i2c: E2 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 17 00 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: E2 17 00 8B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 76 [09:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:03:28]wFMCommunicate OK [09:03:28]CreateOFDProtocolMessage done [09:03:28]OFDSenderStorePacket 139577 [09:03:28]StoreOFDPacket docnum=139577 [09:03:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 60 49 07 01 0C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E2 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 21 02 00 35 04 06 00 7C 41 65 D8 5B C4 DD 92 7B 98 3A 54 56 33 [09:03:28]CheckFolder [09:03:28]dirname=/storage/ofd_packets [09:03:28]CheckFolder done [09:03:28]ProducePacketName [09:03:28]name=ofd_packets/00139577 [09:03:28]NVStorageSaveData ofd_packets/00139577 [09:03:28]File name is /storage/ofd_packets/00139577 [09:03:28]Write 301 bytes [09:03:28]NVStorageSaveData done [09:03:28]OFDSenderStorePacket done [09:03:28]KKMCreateOFDPacket done [09:03:28]NVStorageSaveData kkm_last_timestamp [09:03:28]File name is /storage/kkm_last_timestamp [09:03:28]Write 4 bytes [09:03:28]NVStorageSaveData done [09:03:28]ExternCall_PrintAddStr [09:03:28]wPrintStart [09:03:28]Write to MH i2c: 01 00 00 8C 1A A6 [09:03:28]Write i2c OK [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: 01 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: 01 07 00 [09:03:28]MH_I2C_Read... [09:03:28]Read from MH i2c: 01 07 00 8C 1A 00 00 00 00 00 FF 0F BB [09:03:28]RasterBufferAndPrint [09:03:28]line Счет N : (1)593419 [09:03:28]line ИНН: 02508201610067 [09:03:28]line Контрольно-Кассовый Чек [09:03:28]line ПРОДАЖА [09:03:28]line ТРК (МРК, ГНК) : 62 [09:03:28]line Товар: 2710124130 [09:03:28]line Аи-92-К-5 [09:03:28]line 7.380 * 67.80 [09:03:28]line = 500.36 [09:03:28]line НДС 12% НСП 1% [09:03:28]line > о реализуемом товаре [09:03:28]line ОКРУГЛЕНИЕ: -0.36 [09:03:28]line ИТОГО: 500.00 [09:03:28]line Внесено: 500.00 [09:03:28]line СДАЧА: 0.00 [09:03:28]line НСП 1% : 4.43 [09:03:28]line НДС 12% : 53.14 [09:03:28]line Наличными: 500.00 [09:03:28]line Безнал.: 0.00 [09:03:28]line Место: АЗС № 136 "Партнер Нефть" [09:03:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:03:28]line СНО: Общий режим [09:03:28]line Чек 49 20.08.2024 09:03 [09:03:28]line Смена: 453 ФФД: 1.0 [09:03:28]line ЗНМ: 0300000067 [09:03:28]line РНМ: 0000000000092569 [09:03:28]line Версия ККМ: 001 [09:03:28]line ФМ: 0000000000871776 [09:03:28]line ФД: 139577 [09:03:28]line ФПД: 136620323396548 [09:03:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090330&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139577&fm=136620323396548&tin=02508201610067®Number=0000000000092569&sum=50000 [09:03:29]OFD Sender: Processing packet 139577 [packets to send 137, broken 136] [09:03:29]ProducePacketName [09:03:29]name=ofd_packets/00139577 [09:03:29]OFD Sender: To server: pG, [09:03:29]CommunicateWithHost lk.salyk.kg:30040 [09:03:29]ConnectInit lk.salyk.kg [09:03:29]written 0, free lines is 4095 [09:03:29]Connected sock=10 [09:03:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 60 49 07 01 0C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 E2 5B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 21 02 00 35 04 06 00 7C 41 65 D8 5B C4 DD 92 7B 98 3A 54 56 33 [09:03:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4B 4C 47 00 C7 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 21 02 00 F4 03 04 00 75 02 C4 66 B6 04 01 00 00 D0 0F 5B 86 9D 80 89 6E [09:03:29]CommunicateWithHost err = 0 [09:03:29]CheckOFDResponse [09:03:29]1017 (14) - 77093643461234 [09:03:29]1041 (16) - 0000000000871776 [09:03:29]1040 (4) - 139577 [09:03:29]1012 (4) - 20.08.2024 02:41 [09:03:29]1206 (1) - 0 [09:03:29]OFD Sender: Remove packet 139577 [09:03:29]ProducePacketName [09:03:29]name=ofd_packets/00139577 [09:03:29]NVStorageDeleteData [09:03:29]Write to MH i2c: 01 00 00 B7 1A D1 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: 01 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: 01 07 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: 01 07 00 B7 1A 00 00 00 00 00 C6 0C AA [09:03:29]RasterBufferAndPrint [09:03:29]line [09:03:29]line [09:03:29]line [09:03:29]line [09:03:29]line [09:03:29]written 0, free lines is 3276 [09:03:29]MH_Cut [09:03:29]Write to MH i2c: D1 01 00 BE 1A 01 AA [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: D1 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: D1 01 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: D1 01 00 BE 1A 00 A9 [09:03:29]Write to MH i2c: 01 00 00 BF 1A D9 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:30]OFD Sender: No OFD packet to send [09:03:30]*** Cut start [09:03:30]*** Partial cut [09:03:30]*** CUTSNS_PIN = 1 [09:03:30]*** CUTSNS_PIN = 0 [09:03:30]*** Brake cut motor [09:03:31]Read from MH i2c: 01 [09:03:31]MH_I2C_Read... [09:03:31]*** Stop cut motor [09:03:31]*** Cut end [09:03:31]Read from MH i2c: 01 07 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 BF 1A 00 00 00 00 00 FF 0F EE [09:03:31]process_action close_receipt done [09:03:31]requested_data is exist [09:03:31]produce_requested_data [09:03:31]requested_item fm.sn is exist - process it [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 11 00 00 [09:03:31]Write to MH i2c: E2 08 00 C0 1A 80 11 00 00 00 00 00 00 54 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 C0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AB [09:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:03:31]wFMCommunicate OK [09:03:31]requested_item fd.num is exist - process it [09:03:31]SAM_PROTO_GetFieldsCounters [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 13 00 00 [09:03:31]Write to MH i2c: E2 08 00 C1 1A 80 13 00 00 00 00 00 00 57 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 62 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 62 00 C1 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [09:03:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:31]wFMCommunicate OK [09:03:31]SAM_PROTO_GetFieldsCounters done [09:03:31]requested_item shift.num is exist - process it [09:03:31]requested_item shift.opened is exist - process it [09:03:31]req_shift_opened [09:03:31]FM_GetShiftState [09:03:31]SAM_PROTO_GetShiftState [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 13 01 00 [09:03:31]Write to MH i2c: E2 08 00 C2 1A 80 13 01 00 00 00 00 00 59 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0E 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0E 00 C2 1A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EA [09:03:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:03:31]wFMCommunicate OK [09:03:31]SAM_PROTO_GetShiftState done [09:03:31]FM_GetShiftState done [09:03:31]req_shift_opened done [09:03:31]requested_item shift.open_date is exist - process it [09:03:31]req_shift_open_date [09:03:31]req_shift_open_date done [09:03:31]produce_requested_data done [09:03:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139577,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:03:31]process_action_free close_receipt [09:03:31]json_value_free [09:03:31]json_value_free done [09:03:31]process_json_proto returns [09:03:31]Send response to host [09:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139577,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:03:31]free response buf [09:03:31]execute_script done [09:03:31]execute_script returns [09:03:31]free content buf [09:03:31]Sock 7.Close socket [09:03:31]Sock 7.Thread stoped [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:07]accept exits with 9 [09:08:07]New connection [09:08:07]New thread 3067215204 created [09:08:07]Thread 3067071844 joined [09:08:07]Waiting for new connection... [09:08:07] Sock 9.Parse request [09:08:07]Sock 9.Check first char [09:08:07]Sock 9.First char is OK [09:08:07]request: POST /json_proto HTTP/1.0 [09:08:07]Method: POST [09:08:07]URL: /json_proto [09:08:07]Method is POST - this is cgi request [09:08:07]url: /json_proto [09:08:07]query_string will be loaded in cgi processing [09:08:07]execute_cgi json_proto POST (null) [09:08:07]execute_cgi path=json_proto method=POST [09:08:07]POST find Content-Length [09:08:07]Host: 172.17.45.67:8080 [09:08:07]Content-Length: 658 [09:08:07]Content-Type: application/json [09:08:07] [09:08:07]POST finish read [09:08:07]Found Content-Length = 658 [09:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:07]execute_script... [09:08: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)593420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:07]POST & json_proto [09:08:07]process_json_proto [09:08:07]json parsed OK: [09:08:07]protocol is kg_v1.0 [09:08:07]action value=close_receipt [09:08:07]process_action close_receipt [09:08:07]cmd_close_receipt [09:08:07]MH_GetDate [09:08:07]Write to MH i2c: F0 00 00 C3 1A CC [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: F0 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: F0 09 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: F0 09 00 C3 1A 00 FA 5C C4 66 5F 7F 2B 66 C4 [09:08:07]GetLastDocTimeStamp 1724144610 [09:08:07]current date 1724144890 [09:08:07]FM_GetShiftState [09:08:07]SAM_PROTO_GetShiftState [09:08:07]wFMCommunicate request_size=4 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 13 01 00 [09:08:07]Write to MH i2c: E2 08 00 C4 1A 80 13 01 00 00 00 00 00 5B [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 0E 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 0E 00 C4 1A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EC [09:08:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:08:07]wFMCommunicate OK [09:08:07]SAM_PROTO_GetShiftState done [09:08:07]FM_GetShiftState done [09:08:07]opened in 1724113785 [09:08:07]opened+sec_in_day 1724200185 [09:08:07]quantity*price = 50017 [09:08:07]sum+1 = 50019 [09:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 50 20.08.2024 09:08 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139578 ФПД: 260522681035498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090810&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139578&fm=260522681035498&tin=02508201610067®Number=0000000000092569&sum=50000 [09:08:08]StoreToDocumentArchive [09:08:08]shift 453 fd 139578 [09:08:08]save to /storage/0453/doc_00139578 [09:08:08]save last doc name /storage/0453/doc_00139578 to /storage/kkm_last_doc_name [09:08:08]save OK [09:08:08]Clear old archive folders... [09:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:08:08]tlvbuf is 00D6C460 [09:08:08]SAM_PROTO_ClearQueue [09:08:08]wFMCommunicate request_size=4 [09:08:08]MH_SAM_APDU [09:08:08]CAPDU: 80 09 00 00 [09:08:08]Write to MH i2c: E2 08 00 D1 1A 80 09 00 00 00 00 00 00 5D [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:08]Read from MH i2c: E2 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 03 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 03 00 D1 1A 00 90 00 5F [09:08:08]RAPDU: 90 00 [09:08:08]wFMCommunicate OK [09:08:08]SAM_PROTO_ClearQueue done [09:08:08]KKMCreateOFDPacket [09:08:08]OFDProtocolAddRootSTLVToBuf [09:08:08]FM_MakeSignedData [09:08:08]FM_MakeSignedData [09:08:08]SAM_PROTO_SignData [09:08:08]wFMCommunicate request_size=4 [09:08:08]MH_SAM_APDU [09:08:08]CAPDU: 80 0D 01 02 [09:08:08]Write to MH i2c: E2 08 00 D2 1A 80 0D 01 02 00 00 00 00 65 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:08]Read from MH i2c: E2 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 03 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 03 00 D2 1A 00 90 00 60 [09:08:08]RAPDU: 90 00 [09:08:08]wFMCommunicate OK [09:08:08]wFMCommunicate request_size=253 [09:08:08]MH_SAM_APDU [09:08:08]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 00 00 00 F4 03 04 00 FA 5C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 21 02 00 35 04 06 00 EC F1 A9 DB EA EA [09:08:08]Write to MH i2c: E2 00 01 D3 1A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 00 00 00 F4 03 04 00 FA 5C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 21 02 00 35 04 06 00 EC F1 A9 DB EA EA 00 00 88 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:08]Read from MH i2c: E2 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 03 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 03 00 D3 1A 00 90 00 61 [09:08:08]RAPDU: 90 00 [09:08:08]wFMCommunicate OK [09:08:08]wFMCommunicate request_size=4 [09:08:08]MH_SAM_APDU [09:08:08]CAPDU: 80 0D 03 02 [09:08:08]Write to MH i2c: E2 08 00 D4 1A 80 0D 03 02 00 00 00 00 69 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:08]Read from MH i2c: E2 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 0B 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 0B 00 D4 1A 00 BA 00 DF B5 20 18 EC 5A 90 00 36 [09:08:08]RAPDU: BA 00 DF B5 20 18 EC 5A 90 00 [09:08:08]wFMCommunicate OK [09:08:08]SAM_PROTO_SignData done [09:08:08]FM_MakeSignedData done [09:08:08]CreateOFDProtocolMessage [09:08:08]wFMCommunicate request_size=4 [09:08:08]MH_SAM_APDU [09:08:08]CAPDU: 80 11 00 00 [09:08:08]Write to MH i2c: E2 08 00 D5 1A 80 11 00 00 00 00 00 00 69 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:08]Read from MH i2c: E2 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 17 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: E2 17 00 D5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [09:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:08:08]wFMCommunicate OK [09:08:08]CreateOFDProtocolMessage done [09:08:08]OFDSenderStorePacket 139578 [09:08:08]StoreOFDPacket docnum=139578 [09:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 AC 6A 00 01 D2 89 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 00 00 00 F4 03 04 00 FA 5C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 21 02 00 35 04 06 00 EC F1 A9 DB EA EA BA 00 DF B5 20 18 EC 5A [09:08:08]CheckFolder [09:08:08]dirname=/storage/ofd_packets [09:08:08]CheckFolder done [09:08:08]ProducePacketName [09:08:08]name=ofd_packets/00139578 [09:08:08]NVStorageSaveData ofd_packets/00139578 [09:08:08]File name is /storage/ofd_packets/00139578 [09:08:08]Write 294 bytes [09:08:08]NVStorageSaveData done [09:08:08]OFDSenderStorePacket done [09:08:08]KKMCreateOFDPacket done [09:08:08]NVStorageSaveData kkm_last_timestamp [09:08:08]File name is /storage/kkm_last_timestamp [09:08:08]Write 4 bytes [09:08:08]NVStorageSaveData done [09:08:08]ExternCall_PrintAddStr [09:08:08]wPrintStart [09:08:08]Write to MH i2c: 01 00 00 D6 1A F0 [09:08:08]OFD Sender: Processing packet 139578 [packets to send 137, broken 136] [09:08:08]ProducePacketName [09:08:08]name=ofd_packets/00139578 [09:08:08]OFD Sender: To server: pG, [09:08:08]CommunicateWithHost lk.salyk.kg:30040 [09:08:08]ConnectInit lk.salyk.kg [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 D6 1A 00 00 00 00 00 FF 0F 05 [09:08:08]RasterBufferAndPrint [09:08:08]line Счет N : (1)593420 [09:08:08]line ИНН: 02508201610067 [09:08:08]line Контрольно-Кассовый Чек [09:08:08]line ПРОДАЖА [09:08:08]line ТРК (МРК, ГНК) : 63 [09:08:08]line Товар: 2710124130 [09:08:08]line SU-92 [09:08:09]line 7.270 * 68.80 [09:08:09]line = 500.18 [09:08:09]line НДС 12% НСП 1% [09:08:09]line > о реализуемом товаре [09:08:09]line ОКРУГЛЕНИЕ: -0.18 [09:08:09]line ИТОГО: 500.00 [09:08:09]line Внесено: 500.00 [09:08:09]line СДАЧА: 0.00 [09:08:09]line НСП 1% : 4.43 [09:08:09]line НДС 12% : 53.12 [09:08:09]line Наличными: 500.00 [09:08:09]line Безнал.: 0.00 [09:08:09]line Место: АЗС № 136 "Партнер Нефть" [09:08:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:08:09]line СНО: Общий режим [09:08:09]line Чек 50 20.08.2024 09:08 [09:08:09]line Смена: 453 ФФД: 1.0 [09:08:09]line ЗНМ: 0300000067 [09:08:09]line РНМ: 0000000000092569 [09:08:09]line Версия ККМ: 001 [09:08:09]line ФМ: 0000000000871776 [09:08:09]line ФД: 139578 [09:08:09]line ФПД: 260522681035498 [09:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T090810&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139578&fm=260522681035498&tin=02508201610067®Number=0000000000092569&sum=50000 [09:08:09]Connected sock=10 [09:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 AC 6A 00 01 D2 89 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 00 00 00 F4 03 04 00 FA 5C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 21 02 00 35 04 06 00 EC F1 A9 DB EA EA BA 00 DF B5 20 18 EC 5A [09:08:09]written 0, free lines is 4095 [09:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 72 FB 47 00 55 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 21 02 00 F4 03 04 00 8D 03 C4 66 B6 04 01 00 00 45 49 8A 3F CA 9B AF 6B [09:08:09]CommunicateWithHost err = 0 [09:08:09]CheckOFDResponse [09:08:09]1017 (14) - 77093643461234 [09:08:09]1041 (16) - 0000000000871776 [09:08:09]1040 (4) - 139578 [09:08:09]1012 (4) - 20.08.2024 02:46 [09:08:09]1206 (1) - 0 [09:08:09]OFD Sender: Remove packet 139578 [09:08:09]ProducePacketName [09:08:09]name=ofd_packets/00139578 [09:08:09]NVStorageDeleteData [09:08:09]Write to MH i2c: 01 00 00 01 1B 1C [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: 01 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: 01 07 00 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: 01 07 00 01 1B 00 00 00 00 00 C6 0C F5 [09:08:09]RasterBufferAndPrint [09:08:09]line [09:08:09]line [09:08:09]line [09:08:09]line [09:08:09]line [09:08:09]written 0, free lines is 3276 [09:08:09]MH_Cut [09:08:09]Write to MH i2c: D1 01 00 08 1B 01 F5 [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: D1 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: D1 01 00 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: D1 01 00 08 1B 00 F4 [09:08:09]Write to MH i2c: 01 00 00 09 1B 24 [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:10]OFD Sender: No OFD packet to send [09:08:10]*** Cut start [09:08:10]*** Partial cut [09:08:10]*** CUTSNS_PIN = 1 [09:08:10]*** CUTSNS_PIN = 0 [09:08:10]*** Brake cut motor [09:08:11]Read from MH i2c: 01 [09:08:11]MH_I2C_Read... [09:08:11]*** Stop cut motor [09:08:11]*** Cut end [09:08:11]Read from MH i2c: 01 07 00 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: 01 07 00 09 1B 00 00 00 00 00 FF 0F 39 [09:08:11]process_action close_receipt done [09:08:11]requested_data is exist [09:08:11]produce_requested_data [09:08:11]requested_item fm.sn is exist - process it [09:08:11]wFMCommunicate request_size=4 [09:08:11]MH_SAM_APDU [09:08:11]CAPDU: 80 11 00 00 [09:08:11]Write to MH i2c: E2 08 00 0A 1B 80 11 00 00 00 00 00 00 9F [09:08:11]Write i2c OK [09:08:11]MH_I2C_Read... [09:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:11]Read from MH i2c: E2 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 17 00 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 17 00 0A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [09:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:08:11]wFMCommunicate OK [09:08:11]requested_item fd.num is exist - process it [09:08:11]SAM_PROTO_GetFieldsCounters [09:08:11]wFMCommunicate request_size=4 [09:08:11]MH_SAM_APDU [09:08:11]CAPDU: 80 13 00 00 [09:08:11]Write to MH i2c: E2 08 00 0B 1B 80 13 00 00 00 00 00 00 A2 [09:08:11]Write i2c OK [09:08:11]MH_I2C_Read... [09:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:11]Read from MH i2c: E2 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 62 00 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 62 00 0B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [09:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:11]wFMCommunicate OK [09:08:11]SAM_PROTO_GetFieldsCounters done [09:08:11]requested_item shift.num is exist - process it [09:08:11]requested_item shift.opened is exist - process it [09:08:11]req_shift_opened [09:08:11]FM_GetShiftState [09:08:11]SAM_PROTO_GetShiftState [09:08:11]wFMCommunicate request_size=4 [09:08:11]MH_SAM_APDU [09:08:11]CAPDU: 80 13 01 00 [09:08:11]Write to MH i2c: E2 08 00 0C 1B 80 13 01 00 00 00 00 00 A4 [09:08:11]Write i2c OK [09:08:11]MH_I2C_Read... [09:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:11]Read from MH i2c: E2 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 0E 00 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 0E 00 0C 1B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 35 [09:08:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:08:11]wFMCommunicate OK [09:08:11]SAM_PROTO_GetShiftState done [09:08:11]FM_GetShiftState done [09:08:11]req_shift_opened done [09:08:11]requested_item shift.open_date is exist - process it [09:08:11]req_shift_open_date [09:08:11]req_shift_open_date done [09:08:11]produce_requested_data done [09:08:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139578,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:08:11]process_action_free close_receipt [09:08:11]json_value_free [09:08:11]json_value_free done [09:08:11]process_json_proto returns [09:08:11]Send response to host [09:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139578,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:08:11]free response buf [09:08:11]execute_script done [09:08:11]execute_script returns [09:08:11]free content buf [09:08:11]Sock 9.Close socket [09:08:11]Sock 9.Thread stoped [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:50]accept exits with 7 [09:10:50]New connection [09:10:50]New thread 3067071844 created [09:10:50]Thread 3067215204 joined [09:10:50]Waiting for new connection... [09:10:50] Sock 7.Parse request [09:10:50]Sock 7.Check first char [09:10:50]Sock 7.First char is OK [09:10:50]request: POST /json_proto HTTP/1.0 [09:10:50]Method: POST [09:10:50]URL: /json_proto [09:10:50]Method is POST - this is cgi request [09:10:50]url: /json_proto [09:10:50]query_string will be loaded in cgi processing [09:10:50]execute_cgi json_proto POST (null) [09:10:50]execute_cgi path=json_proto method=POST [09:10:50]POST find Content-Length [09:10:50]Host: 172.17.45.67:8080 [09:10:50]Content-Length: 682 [09:10:50]Content-Type: application/json [09:10:50] [09:10:50]POST finish read [09:10:50]Found Content-Length = 682 [09:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:10:50]execute_script... [09:10: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)593421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:10:50]POST & json_proto [09:10:50]process_json_proto [09:10:50]json parsed OK: [09:10:50]protocol is kg_v1.0 [09:10:50]action value=close_receipt [09:10:50]process_action close_receipt [09:10:50]cmd_close_receipt [09:10:50]MH_GetDate [09:10:50]Write to MH i2c: F0 00 00 0D 1B 17 [09:10:50]Write i2c OK [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: F0 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: F0 09 00 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: F0 09 00 0D 1B 00 9D 5D C4 66 5F 7F 2B 66 B3 [09:10:50]GetLastDocTimeStamp 1724144890 [09:10:50]current date 1724145053 [09:10:50]FM_GetShiftState [09:10:50]SAM_PROTO_GetShiftState [09:10:50]wFMCommunicate request_size=4 [09:10:50]MH_SAM_APDU [09:10:50]CAPDU: 80 13 01 00 [09:10:50]Write to MH i2c: E2 08 00 0E 1B 80 13 01 00 00 00 00 00 A6 [09:10:50]Write i2c OK [09:10:50]MH_I2C_Read... [09:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:50]Read from MH i2c: E2 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 0E 00 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 0E 00 0E 1B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 37 [09:10:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:10:50]wFMCommunicate OK [09:10:50]SAM_PROTO_GetShiftState done [09:10:50]FM_GetShiftState done [09:10:50]opened in 1724113785 [09:10:50]opened+sec_in_day 1724200185 [09:10:50]quantity*price = 50063 [09:10:50]sum+1 = 50064 [09:10:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 51 20.08.2024 09:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139579 ФПД: 230201292360114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091053&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139579&fm=230201292360114&tin=02508201610067®Number=0000000000092569&sum=50000 [09:10:51]StoreToDocumentArchive [09:10:51]shift 453 fd 139579 [09:10:51]save to /storage/0453/doc_00139579 [09:10:51]save last doc name /storage/0453/doc_00139579 to /storage/kkm_last_doc_name [09:10:51]save OK [09:10:51]Clear old archive folders... [09:10:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:10:51]tlvbuf is 00D28CD0 [09:10:51]SAM_PROTO_ClearQueue [09:10:51]wFMCommunicate request_size=4 [09:10:51]MH_SAM_APDU [09:10:51]CAPDU: 80 09 00 00 [09:10:51]Write to MH i2c: E2 08 00 1B 1B 80 09 00 00 00 00 00 00 A8 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:51]Read from MH i2c: E2 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 03 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 03 00 1B 1B 00 90 00 AA [09:10:51]RAPDU: 90 00 [09:10:51]wFMCommunicate OK [09:10:51]SAM_PROTO_ClearQueue done [09:10:51]KKMCreateOFDPacket [09:10:51]OFDProtocolAddRootSTLVToBuf [09:10:51]FM_MakeSignedData [09:10:51]FM_MakeSignedData [09:10:51]SAM_PROTO_SignData [09:10:51]wFMCommunicate request_size=4 [09:10:51]MH_SAM_APDU [09:10:51]CAPDU: 80 0D 01 02 [09:10:51]Write to MH i2c: E2 08 00 1C 1B 80 0D 01 02 00 00 00 00 B0 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:51]Read from MH i2c: E2 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 03 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 03 00 1C 1B 00 90 00 AB [09:10:51]RAPDU: 90 00 [09:10:51]wFMCommunicate OK [09:10:51]wFMCommunicate request_size=255 [09:10:51]MH_SAM_APDU [09:10:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 33 00 00 00 F4 03 04 00 9D 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 21 02 00 35 04 06 00 [09:10:51]Write to MH i2c: E2 02 01 1D 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 33 00 00 00 F4 03 04 00 9D 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 21 02 00 35 04 06 00 00 00 2A [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 1D 1B 00 90 00 AC [09:10:52]RAPDU: 90 00 [09:10:52]wFMCommunicate OK [09:10:52]wFMCommunicate request_size=11 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 0D 02 02 06 D1 5D EA 42 09 B2 [09:10:52]Write to MH i2c: E2 0E 00 1E 1B 80 0D 02 02 06 00 D1 5D EA 42 09 B2 00 00 D4 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 03 00 1E 1B 00 90 00 AD [09:10:52]RAPDU: 90 00 [09:10:52]wFMCommunicate OK [09:10:52]wFMCommunicate request_size=4 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 0D 03 02 [09:10:52]Write to MH i2c: E2 08 00 1F 1B 80 0D 03 02 00 00 00 00 B5 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 0B 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 0B 00 1F 1B 00 D4 CE 6E 35 9A B5 D5 18 90 00 37 [09:10:52]RAPDU: D4 CE 6E 35 9A B5 D5 18 90 00 [09:10:52]wFMCommunicate OK [09:10:52]SAM_PROTO_SignData done [09:10:52]FM_MakeSignedData done [09:10:52]CreateOFDProtocolMessage [09:10:52]wFMCommunicate request_size=4 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 11 00 00 [09:10:52]Write to MH i2c: E2 08 00 20 1B 80 11 00 00 00 00 00 00 B5 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:52]Read from MH i2c: E2 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 17 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: E2 17 00 20 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [09:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:10:52]wFMCommunicate OK [09:10:52]CreateOFDProtocolMessage done [09:10:52]OFDSenderStorePacket 139579 [09:10:52]StoreOFDPacket docnum=139579 [09:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 04 01 08 01 50 A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 33 00 00 00 F4 03 04 00 9D 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 21 02 00 35 04 06 00 D1 5D EA 42 09 B2 D4 CE 6E 35 9A B5 D5 18 [09:10:52]CheckFolder [09:10:52]dirname=/storage/ofd_packets [09:10:52]CheckFolder done [09:10:52]ProducePacketName [09:10:52]name=ofd_packets/00139579 [09:10:52]NVStorageSaveData ofd_packets/00139579 [09:10:52]File name is /storage/ofd_packets/00139579 [09:10:52]Write 302 bytes [09:10:52]NVStorageSaveData done [09:10:52]OFDSenderStorePacket done [09:10:52]KKMCreateOFDPacket done [09:10:52]NVStorageSaveData kkm_last_timestamp [09:10:52]File name is /storage/kkm_last_timestamp [09:10:52]Write 4 bytes [09:10:52]NVStorageSaveData done [09:10:52]ExternCall_PrintAddStr [09:10:52]wPrintStart [09:10:52]Write to MH i2c: 01 00 00 21 1B 3C [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: 01 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: 01 07 00 [09:10:52]MH_I2C_Read... [09:10:52]Read from MH i2c: 01 07 00 21 1B 00 00 00 00 00 FF 0F 51 [09:10:52]RasterBufferAndPrint [09:10:52]line Счет N : (1)593421 [09:10:52]line ИНН: 02508201610067 [09:10:52]line Контрольно-Кассовый Чек [09:10:52]line ПРОДАЖА [09:10:52]line ТРК (МРК, ГНК) : 64 [09:10:52]line Товар: 2710194210 [09:10:52]line ДТ(л)-К-5 [09:10:52]line 6.570 * 76.20 [09:10:52]line = 500.63 [09:10:52]line НДС 12% НСП 1% [09:10:52]line > о реализуемом товаре [09:10:52]line ОКРУГЛЕНИЕ: -0.63 [09:10:52]line ИТОГО: 500.00 [09:10:52]line Внесено: 500.00 [09:10:52]line СДАЧА: 0.00 [09:10:52]line НСП 1% : 4.43 [09:10:52]line НДС 12% : 53.16 [09:10:52]line Наличными: 500.00 [09:10:52]line Безнал.: 0.00 [09:10:52]line Место: АЗС № 136 "Партнер Нефть" [09:10:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:10:52]line СНО: Общий режим [09:10:52]line Чек 51 20.08.2024 09:10 [09:10:52]line Смена: 453 ФФД: 1.0 [09:10:52]line ЗНМ: 0300000067 [09:10:52]line РНМ: 0000000000092569 [09:10:52]line Версия ККМ: 001 [09:10:52]line ФМ: 0000000000871776 [09:10:52]line ФД: 139579 [09:10:52]line ФПД: 230201292360114 [09:10:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091053&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139579&fm=230201292360114&tin=02508201610067®Number=0000000000092569&sum=50000 [09:10:52]OFD Sender: Processing packet 139579 [packets to send 137, broken 136] [09:10:52]ProducePacketName [09:10:52]name=ofd_packets/00139579 [09:10:52]OFD Sender: To server: pG, [09:10:52]CommunicateWithHost lk.salyk.kg:30040 [09:10:52]ConnectInit lk.salyk.kg [09:10:52]written 0, free lines is 4095 [09:10:52]Connected sock=10 [09:10:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 04 01 08 01 50 A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 33 00 00 00 F4 03 04 00 9D 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 21 02 00 35 04 06 00 D1 5D EA 42 09 B2 D4 CE 6E 35 9A B5 D5 18 [09:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 34 41 47 00 B6 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 21 02 00 F4 03 04 00 31 04 C4 66 B6 04 01 00 00 88 9F 0B D0 1D 0D 92 8B [09:10:53]CommunicateWithHost err = 0 [09:10:53]CheckOFDResponse [09:10:53]1017 (14) - 77093643461234 [09:10:53]1041 (16) - 0000000000871776 [09:10:53]1040 (4) - 139579 [09:10:53]1012 (4) - 20.08.2024 02:49 [09:10:53]1206 (1) - 0 [09:10:53]OFD Sender: Remove packet 139579 [09:10:53]ProducePacketName [09:10:53]name=ofd_packets/00139579 [09:10:53]NVStorageDeleteData [09:10:53]Write to MH i2c: 01 00 00 4C 1B 67 [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 07 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 07 00 4C 1B 00 00 00 00 00 CB 0C 45 [09:10:53]RasterBufferAndPrint [09:10:53]line [09:10:53]line [09:10:53]line [09:10:53]line [09:10:53]line [09:10:53]written 0, free lines is 3282 [09:10:53]MH_Cut [09:10:53]Write to MH i2c: D1 01 00 53 1B 01 40 [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: D1 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: D1 01 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: D1 01 00 53 1B 00 3F [09:10:53]Write to MH i2c: 01 00 00 54 1B 6F [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]OFD Sender: No OFD packet to send [09:10:53]*** Cut start [09:10:53]*** Partial cut [09:10:53]*** CUTSNS_PIN = 1 [09:10:53]*** CUTSNS_PIN = 0 [09:10:54]*** Brake cut motor [09:10:54]Read from MH i2c: 01 [09:10:54]MH_I2C_Read... [09:10:54]*** Stop cut motor [09:10:54]*** Cut end [09:10:54]Read from MH i2c: 01 07 00 [09:10:54]MH_I2C_Read... [09:10:54]Read from MH i2c: 01 07 00 54 1B 00 00 00 00 00 FF 0F 84 [09:10:54]process_action close_receipt done [09:10:54]requested_data is exist [09:10:54]produce_requested_data [09:10:54]requested_item fm.sn is exist - process it [09:10:54]wFMCommunicate request_size=4 [09:10:54]MH_SAM_APDU [09:10:54]CAPDU: 80 11 00 00 [09:10:54]Write to MH i2c: E2 08 00 55 1B 80 11 00 00 00 00 00 00 EA [09:10:54]Write i2c OK [09:10:54]MH_I2C_Read... [09:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:54]Read from MH i2c: E2 [09:10:54]MH_I2C_Read... [09:10:54]Read from MH i2c: E2 17 00 [09:10:54]MH_I2C_Read... [09:10:54]Read from MH i2c: E2 17 00 55 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 41 [09:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:10:54]wFMCommunicate OK [09:10:54]requested_item fd.num is exist - process it [09:10:54]SAM_PROTO_GetFieldsCounters [09:10:54]wFMCommunicate request_size=4 [09:10:54]MH_SAM_APDU [09:10:54]CAPDU: 80 13 00 00 [09:10:54]Write to MH i2c: E2 08 00 56 1B 80 13 00 00 00 00 00 00 ED [09:10:54]Write i2c OK [09:10:54]MH_I2C_Read... [09:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:54]Read from MH i2c: E2 [09:10:54]MH_I2C_Read... [09:10:54]Read from MH i2c: E2 62 00 [09:10:54]MH_I2C_Read... [09:10:54]Read from MH i2c: E2 62 00 56 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [09:10:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:54]wFMCommunicate OK [09:10:54]SAM_PROTO_GetFieldsCounters done [09:10:54]requested_item shift.num is exist - process it [09:10:54]requested_item shift.opened is exist - process it [09:10:54]req_shift_opened [09:10:54]FM_GetShiftState [09:10:54]SAM_PROTO_GetShiftState [09:10:54]wFMCommunicate request_size=4 [09:10:54]MH_SAM_APDU [09:10:54]CAPDU: 80 13 01 00 [09:10:54]Write to MH i2c: E2 08 00 57 1B 80 13 01 00 00 00 00 00 EF [09:10:54]Write i2c OK [09:10:54]MH_I2C_Read... [09:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:54]Read from MH i2c: E2 [09:10:54]MH_I2C_Read... [09:10:54]Read from MH i2c: E2 0E 00 [09:10:54]MH_I2C_Read... [09:10:54]Read from MH i2c: E2 0E 00 57 1B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 80 [09:10:54]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:10:54]wFMCommunicate OK [09:10:54]SAM_PROTO_GetShiftState done [09:10:54]FM_GetShiftState done [09:10:54]req_shift_opened done [09:10:54]requested_item shift.open_date is exist - process it [09:10:54]req_shift_open_date [09:10:54]req_shift_open_date done [09:10:54]produce_requested_data done [09:10:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139579,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:10:54]process_action_free close_receipt [09:10:54]json_value_free [09:10:54]json_value_free done [09:10:54]process_json_proto returns [09:10:54]Send response to host [09:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139579,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:10:54]free response buf [09:10:54]execute_script done [09:10:54]execute_script returns [09:10:54]free content buf [09:10:54]Sock 7.Close socket [09:10:54]Sock 7.Thread stoped [09:10:58]OFD Sender: No OFD packet to send [09:10:58]accept exits with 9 [09:10:58]New connection [09:10:58]New thread 3067215204 created [09:10:58]Thread 3067071844 joined [09:10:58]Waiting for new connection... [09:10:58] Sock 9.Parse request [09:10:58]Sock 9.Check first char [09:10:58]Sock 9.First char is OK [09:10:58]request: POST /json_proto HTTP/1.0 [09:10:58]Method: POST [09:10:58]URL: /json_proto [09:10:58]Method is POST - this is cgi request [09:10:58]url: /json_proto [09:10:58]query_string will be loaded in cgi processing [09:10:58]execute_cgi json_proto POST (null) [09:10:58]execute_cgi path=json_proto method=POST [09:10:58]POST find Content-Length [09:10:58]Host: 172.17.45.67:8080 [09:10:58]Content-Length: 677 [09:10:58]Content-Type: application/json [09:10:58] [09:10:58]POST finish read [09:10:58]Found Content-Length = 677 [09:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:58]execute_script... [09:10: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)593422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:58]POST & json_proto [09:10:58]process_json_proto [09:10:58]json parsed OK: [09:10:58]protocol is kg_v1.0 [09:10:58]action value=close_receipt [09:10:58]process_action close_receipt [09:10:58]cmd_close_receipt [09:10:58]MH_GetDate [09:10:58]Write to MH i2c: F0 00 00 58 1B 62 [09:10:58]Write i2c OK [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: F0 [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: F0 09 00 [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: F0 09 00 58 1B 00 A5 5D C4 66 5F 7F 2B 66 06 [09:10:58]GetLastDocTimeStamp 1724145053 [09:10:58]current date 1724145061 [09:10:58]FM_GetShiftState [09:10:58]SAM_PROTO_GetShiftState [09:10:58]wFMCommunicate request_size=4 [09:10:58]MH_SAM_APDU [09:10:58]CAPDU: 80 13 01 00 [09:10:58]Write to MH i2c: E2 08 00 59 1B 80 13 01 00 00 00 00 00 F1 [09:10:58]Write i2c OK [09:10:58]MH_I2C_Read... [09:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:58]Read from MH i2c: E2 [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: E2 0E 00 [09:10:58]MH_I2C_Read... [09:10:58]Read from MH i2c: E2 0E 00 59 1B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 82 [09:10:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:10:58]wFMCommunicate OK [09:10:58]SAM_PROTO_GetShiftState done [09:10:58]FM_GetShiftState done [09:10:58]opened in 1724113785 [09:10:58]opened+sec_in_day 1724200185 [09:10:58]quantity*price = 50036 [09:10:58]sum+1 = 50037 [09:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 52 20.08.2024 09:11 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139580 ФПД: 166172175035115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091101&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139580&fm=166172175035115&tin=02508201610067®Number=0000000000092569&sum=50000 [09:11:00]StoreToDocumentArchive [09:11:00]shift 453 fd 139580 [09:11:00]save to /storage/0453/doc_00139580 [09:11:00]save last doc name /storage/0453/doc_00139580 to /storage/kkm_last_doc_name [09:11:00]save OK [09:11:00]Clear old archive folders... [09:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:00]tlvbuf is 00D7CA80 [09:11:00]SAM_PROTO_ClearQueue [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 09 00 00 [09:11:00]Write to MH i2c: E2 08 00 66 1B 80 09 00 00 00 00 00 00 F3 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 66 1B 00 90 00 F5 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]SAM_PROTO_ClearQueue done [09:11:00]KKMCreateOFDPacket [09:11:00]OFDProtocolAddRootSTLVToBuf [09:11:00]FM_MakeSignedData [09:11:00]FM_MakeSignedData [09:11:00]SAM_PROTO_SignData [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 01 02 [09:11:00]Write to MH i2c: E2 08 00 67 1B 80 0D 01 02 00 00 00 00 FB [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 67 1B 00 90 00 F6 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=255 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A5 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 21 02 00 35 04 06 00 97 [09:11:00]Write to MH i2c: E2 02 01 68 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A5 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 21 02 00 35 04 06 00 97 00 00 A0 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 68 1B 00 90 00 F7 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=10 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 02 02 05 21 F9 76 EA EB [09:11:00]Write to MH i2c: E2 0D 00 69 1B 80 0D 02 02 05 00 21 F9 76 EA EB 00 00 6D [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 03 00 69 1B 00 90 00 F8 [09:11:00]RAPDU: 90 00 [09:11:00]wFMCommunicate OK [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 0D 03 02 [09:11:00]Write to MH i2c: E2 08 00 6A 1B 80 0D 03 02 00 00 00 00 00 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0B 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0B 00 6A 1B 00 14 B9 05 94 10 8B AB F0 90 00 9D [09:11:00]RAPDU: 14 B9 05 94 10 8B AB F0 90 00 [09:11:00]wFMCommunicate OK [09:11:00]SAM_PROTO_SignData done [09:11:00]FM_MakeSignedData done [09:11:00]CreateOFDProtocolMessage [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 11 00 00 [09:11:00]Write to MH i2c: E2 08 00 6B 1B 80 11 00 00 00 00 00 00 00 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 17 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 17 00 6B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 57 [09:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:11:00]wFMCommunicate OK [09:11:00]CreateOFDProtocolMessage done [09:11:00]OFDSenderStorePacket 139580 [09:11:00]StoreOFDPacket docnum=139580 [09:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 14 62 07 01 ED 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A5 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 21 02 00 35 04 06 00 97 21 F9 76 EA EB 14 B9 05 94 10 8B AB F0 [09:11:00]CheckFolder [09:11:00]dirname=/storage/ofd_packets [09:11:00]CheckFolder done [09:11:00]ProducePacketName [09:11:00]name=ofd_packets/00139580 [09:11:00]NVStorageSaveData ofd_packets/00139580 [09:11:00]File name is /storage/ofd_packets/00139580 [09:11:00]Write 301 bytes [09:11:00]NVStorageSaveData done [09:11:00]OFDSenderStorePacket done [09:11:00]KKMCreateOFDPacket done [09:11:00]NVStorageSaveData kkm_last_timestamp [09:11:00]File name is /storage/kkm_last_timestamp [09:11:00]Write 4 bytes [09:11:00]NVStorageSaveData done [09:11:00]ExternCall_PrintAddStr [09:11:00]wPrintStart [09:11:00]Write to MH i2c: 01 00 00 6C 1B 87 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 07 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 07 00 6C 1B 00 00 00 00 00 FF 0F 9C [09:11:00]RasterBufferAndPrint [09:11:00]line Счет N : (1)593422 [09:11:00]line ИНН: 02508201610067 [09:11:00]line Контрольно-Кассовый Чек [09:11:00]line ПРОДАЖА [09:11:00]line ТРК (МРК, ГНК) : 42 [09:11:00]line Товар: 2710124130 [09:11:00]line Аи-92-К-5 [09:11:00]line 7.380 * 67.80 [09:11:00]line = 500.36 [09:11:00]line НДС 12% НСП 1% [09:11:00]line > о реализуемом товаре [09:11:00]line ОКРУГЛЕНИЕ: -0.36 [09:11:00]line ИТОГО: 500.00 [09:11:00]line Внесено: 500.00 [09:11:00]line СДАЧА: 0.00 [09:11:00]line НСП 1% : 4.43 [09:11:00]line НДС 12% : 53.14 [09:11:00]line Наличными: 500.00 [09:11:00]line Безнал.: 0.00 [09:11:00]line Место: АЗС № 136 "Партнер Нефть" [09:11:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:11:00]line СНО: Общий режим [09:11:00]line Чек 52 20.08.2024 09:11 [09:11:00]line Смена: 453 ФФД: 1.0 [09:11:00]line ЗНМ: 0300000067 [09:11:00]line РНМ: 0000000000092569 [09:11:00]line Версия ККМ: 001 [09:11:00]line ФМ: 0000000000871776 [09:11:00]line ФД: 139580 [09:11:00]line ФПД: 166172175035115 [09:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091101&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139580&fm=166172175035115&tin=02508201610067®Number=0000000000092569&sum=50000 [09:11:00]OFD Sender: Processing packet 139580 [packets to send 137, broken 136] [09:11:00]ProducePacketName [09:11:00]name=ofd_packets/00139580 [09:11:00]OFD Sender: To server: pG, [09:11:00]CommunicateWithHost lk.salyk.kg:30040 [09:11:00]ConnectInit lk.salyk.kg [09:11:00]Connected sock=10 [09:11:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 14 62 07 01 ED 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A5 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 21 02 00 35 04 06 00 97 21 F9 76 EA EB 14 B9 05 94 10 8B AB F0 [09:11:01]written 0, free lines is 4095 [09:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5C C4 47 00 4C E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 21 02 00 F4 03 04 00 39 04 C4 66 B6 04 01 00 00 F6 7E 61 F7 19 19 0A FE [09:11:01]CommunicateWithHost err = 0 [09:11:01]CheckOFDResponse [09:11:01]1017 (14) - 77093643461234 [09:11:01]1041 (16) - 0000000000871776 [09:11:01]1040 (4) - 139580 [09:11:01]1012 (4) - 20.08.2024 02:49 [09:11:01]1206 (1) - 0 [09:11:01]OFD Sender: Remove packet 139580 [09:11:01]ProducePacketName [09:11:01]name=ofd_packets/00139580 [09:11:01]NVStorageDeleteData [09:11:01]Write to MH i2c: 01 00 00 97 1B B2 [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 07 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: 01 07 00 97 1B 00 00 00 00 00 C1 0C 86 [09:11:01]RasterBufferAndPrint [09:11:01]line [09:11:01]line [09:11:01]line [09:11:01]line [09:11:01]line [09:11:01]written 0, free lines is 3274 [09:11:01]MH_Cut [09:11:01]Write to MH i2c: D1 01 00 9E 1B 01 8B [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: D1 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: D1 01 00 [09:11:01]MH_I2C_Read... [09:11:01]Read from MH i2c: D1 01 00 9E 1B 00 8A [09:11:01]Write to MH i2c: 01 00 00 9F 1B BA [09:11:01]Write i2c OK [09:11:01]MH_I2C_Read... [09:11:01]OFD Sender: No OFD packet to send [09:11:02]*** Cut start [09:11:02]*** Partial cut [09:11:02]*** CUTSNS_PIN = 1 [09:11:02]*** CUTSNS_PIN = 0 [09:11:02]*** Brake cut motor [09:11:02]Read from MH i2c: 01 [09:11:02]MH_I2C_Read... [09:11:02]*** Stop cut motor [09:11:02]*** Cut end [09:11:02]Read from MH i2c: 01 07 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: 01 07 00 9F 1B 00 00 00 00 00 FF 0F CF [09:11:02]process_action close_receipt done [09:11:02]requested_data is exist [09:11:02]produce_requested_data [09:11:02]requested_item fm.sn is exist - process it [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 11 00 00 [09:11:02]Write to MH i2c: E2 08 00 A0 1B 80 11 00 00 00 00 00 00 35 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 17 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 17 00 A0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [09:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:11:02]wFMCommunicate OK [09:11:02]requested_item fd.num is exist - process it [09:11:02]SAM_PROTO_GetFieldsCounters [09:11:02]wFMCommunicate request_size=4 [09:11:02]MH_SAM_APDU [09:11:02]CAPDU: 80 13 00 00 [09:11:02]Write to MH i2c: E2 08 00 A1 1B 80 13 00 00 00 00 00 00 38 [09:11:02]Write i2c OK [09:11:02]MH_I2C_Read... [09:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:02]Read from MH i2c: E2 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 62 00 [09:11:02]MH_I2C_Read... [09:11:02]Read from MH i2c: E2 62 00 A1 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [09:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:03]wFMCommunicate OK [09:11:03]SAM_PROTO_GetFieldsCounters done [09:11:03]requested_item shift.num is exist - process it [09:11:03]requested_item shift.opened is exist - process it [09:11:03]req_shift_opened [09:11:03]FM_GetShiftState [09:11:03]SAM_PROTO_GetShiftState [09:11:03]wFMCommunicate request_size=4 [09:11:03]MH_SAM_APDU [09:11:03]CAPDU: 80 13 01 00 [09:11:03]Write to MH i2c: E2 08 00 A2 1B 80 13 01 00 00 00 00 00 3A [09:11:03]Write i2c OK [09:11:03]MH_I2C_Read... [09:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:03]Read from MH i2c: E2 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 0E 00 [09:11:03]MH_I2C_Read... [09:11:03]Read from MH i2c: E2 0E 00 A2 1B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CB [09:11:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:11:03]wFMCommunicate OK [09:11:03]SAM_PROTO_GetShiftState done [09:11:03]FM_GetShiftState done [09:11:03]req_shift_opened done [09:11:03]requested_item shift.open_date is exist - process it [09:11:03]req_shift_open_date [09:11:03]req_shift_open_date done [09:11:03]produce_requested_data done [09:11:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139580,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:11:03]process_action_free close_receipt [09:11:03]json_value_free [09:11:03]json_value_free done [09:11:03]process_json_proto returns [09:11:03]Send response to host [09:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139580,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:11:03]free response buf [09:11:03]execute_script done [09:11:03]execute_script returns [09:11:03]free content buf [09:11:03]Sock 9.Close socket [09:11:03]Sock 9.Thread stoped [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]accept exits with 7 [09:11:36]New connection [09:11:36]New thread 3067071844 created [09:11:36]Thread 3067215204 joined [09:11:36]Waiting for new connection... [09:11:36] Sock 7.Parse request [09:11:36]Sock 7.Check first char [09:11:36]Sock 7.First char is OK [09:11:36]request: POST /json_proto HTTP/1.0 [09:11:36]Method: POST [09:11:36]URL: /json_proto [09:11:36]Method is POST - this is cgi request [09:11:36]url: /json_proto [09:11:36]query_string will be loaded in cgi processing [09:11:36]execute_cgi json_proto POST (null) [09:11:36]execute_cgi path=json_proto method=POST [09:11:36]POST find Content-Length [09:11:36]Host: 172.17.45.67:8080 [09:11:36]Content-Length: 658 [09:11:36]Content-Type: application/json [09:11:36] [09:11:36]POST finish read [09:11:36]Found Content-Length = 658 [09:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:36]execute_script... [09:11: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)593423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:36]POST & json_proto [09:11:36]process_json_proto [09:11:36]json parsed OK: [09:11:36]protocol is kg_v1.0 [09:11:36]action value=close_receipt [09:11:36]process_action close_receipt [09:11:36]cmd_close_receipt [09:11:36]MH_GetDate [09:11:36]Write to MH i2c: F0 00 00 A3 1B AD [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: F0 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: F0 09 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: F0 09 00 A3 1B 00 CB 5D C4 66 5F 7F 2B 66 77 [09:11:36]GetLastDocTimeStamp 1724145061 [09:11:36]current date 1724145099 [09:11:36]FM_GetShiftState [09:11:36]SAM_PROTO_GetShiftState [09:11:36]wFMCommunicate request_size=4 [09:11:36]MH_SAM_APDU [09:11:36]CAPDU: 80 13 01 00 [09:11:36]Write to MH i2c: E2 08 00 A4 1B 80 13 01 00 00 00 00 00 3C [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 0E 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 0E 00 A4 1B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CD [09:11:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:11:36]wFMCommunicate OK [09:11:36]SAM_PROTO_GetShiftState done [09:11:36]FM_GetShiftState done [09:11:36]opened in 1724113785 [09:11:36]opened+sec_in_day 1724200185 [09:11:36]quantity*price = 30065 [09:11:36]sum+1 = 30067 [09:11:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.93 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 53 20.08.2024 09:11 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139581 ФПД: 257851332471159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091139&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139581&fm=257851332471159&tin=02508201610067®Number=0000000000092569&sum=30000 [09:11:37]StoreToDocumentArchive [09:11:37]shift 453 fd 139581 [09:11:37]save to /storage/0453/doc_00139581 [09:11:37]save last doc name /storage/0453/doc_00139581 to /storage/kkm_last_doc_name [09:11:37]save OK [09:11:37]Clear old archive folders... [09:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:11:37]tlvbuf is B6DE85E0 [09:11:37]SAM_PROTO_ClearQueue [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 09 00 00 [09:11:37]Write to MH i2c: E2 08 00 B1 1B 80 09 00 00 00 00 00 00 3E [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 B1 1B 00 90 00 40 [09:11:37]RAPDU: 90 00 [09:11:37]wFMCommunicate OK [09:11:37]SAM_PROTO_ClearQueue done [09:11:37]KKMCreateOFDPacket [09:11:37]OFDProtocolAddRootSTLVToBuf [09:11:37]FM_MakeSignedData [09:11:37]FM_MakeSignedData [09:11:37]SAM_PROTO_SignData [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 0D 01 02 [09:11:37]Write to MH i2c: E2 08 00 B2 1B 80 0D 01 02 00 00 00 00 46 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 B2 1B 00 90 00 41 [09:11:37]RAPDU: 90 00 [09:11:37]wFMCommunicate OK [09:11:37]wFMCommunicate request_size=253 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 35 00 00 00 F4 03 04 00 CB 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 21 02 00 35 04 06 00 EA 83 B1 13 A9 77 [09:11:37]Write to MH i2c: E2 00 01 B3 1B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 35 00 00 00 F4 03 04 00 CB 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 21 02 00 35 04 06 00 EA 83 B1 13 A9 77 00 00 E4 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 03 00 B3 1B 00 90 00 42 [09:11:37]RAPDU: 90 00 [09:11:37]wFMCommunicate OK [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 0D 03 02 [09:11:37]Write to MH i2c: E2 08 00 B4 1B 80 0D 03 02 00 00 00 00 4A [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 0B 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 0B 00 B4 1B 00 16 D9 9E 5E A2 13 4A 5E 90 00 93 [09:11:37]RAPDU: 16 D9 9E 5E A2 13 4A 5E 90 00 [09:11:37]wFMCommunicate OK [09:11:37]SAM_PROTO_SignData done [09:11:37]FM_MakeSignedData done [09:11:37]CreateOFDProtocolMessage [09:11:37]wFMCommunicate request_size=4 [09:11:37]MH_SAM_APDU [09:11:37]CAPDU: 80 11 00 00 [09:11:37]Write to MH i2c: E2 08 00 B5 1B 80 11 00 00 00 00 00 00 4A [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:37]Read from MH i2c: E2 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 17 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: E2 17 00 B5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [09:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:11:37]wFMCommunicate OK [09:11:37]CreateOFDProtocolMessage done [09:11:37]OFDSenderStorePacket 139581 [09:11:37]StoreOFDPacket docnum=139581 [09:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 81 48 00 01 EF 66 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 35 00 00 00 F4 03 04 00 CB 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 21 02 00 35 04 06 00 EA 83 B1 13 A9 77 16 D9 9E 5E A2 13 4A 5E [09:11:37]CheckFolder [09:11:37]dirname=/storage/ofd_packets [09:11:37]CheckFolder done [09:11:37]ProducePacketName [09:11:37]name=ofd_packets/00139581 [09:11:37]NVStorageSaveData ofd_packets/00139581 [09:11:37]File name is /storage/ofd_packets/00139581 [09:11:37]Write 294 bytes [09:11:37]NVStorageSaveData done [09:11:37]OFDSenderStorePacket done [09:11:37]KKMCreateOFDPacket done [09:11:37]NVStorageSaveData kkm_last_timestamp [09:11:37]File name is /storage/kkm_last_timestamp [09:11:37]Write 4 bytes [09:11:37]NVStorageSaveData done [09:11:37]ExternCall_PrintAddStr [09:11:37]wPrintStart [09:11:37]Write to MH i2c: 01 00 00 B6 1B D1 [09:11:37]Write i2c OK [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 07 00 [09:11:37]MH_I2C_Read... [09:11:37]Read from MH i2c: 01 07 00 B6 1B 00 00 00 00 00 FF 0F E6 [09:11:37]RasterBufferAndPrint [09:11:37]line Счет N : (1)593423 [09:11:37]line ИНН: 02508201610067 [09:11:37]line Контрольно-Кассовый Чек [09:11:37]line ПРОДАЖА [09:11:37]line ТРК (МРК, ГНК) : 53 [09:11:37]line Товар: 2710124130 [09:11:37]line SU-92 [09:11:37]line 4.370 * 68.80 [09:11:37]line = 300.66 [09:11:37]line НДС 12% НСП 1% [09:11:37]line > о реализуемом товаре [09:11:37]line ОКРУГЛЕНИЕ: -0.66 [09:11:37]line ИТОГО: 300.00 [09:11:37]line Внесено: 300.00 [09:11:37]line СДАЧА: 0.00 [09:11:37]line НСП 1% : 2.66 [09:11:37]line НДС 12% : 31.93 [09:11:37]line Наличными: 300.00 [09:11:37]line Безнал.: 0.00 [09:11:37]line Место: АЗС № 136 "Партнер Нефть" [09:11:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:11:37]line СНО: Общий режим [09:11:37]line Чек 53 20.08.2024 09:11 [09:11:37]line Смена: 453 ФФД: 1.0 [09:11:37]line ЗНМ: 0300000067 [09:11:37]line РНМ: 0000000000092569 [09:11:37]line Версия ККМ: 001 [09:11:37]line ФМ: 0000000000871776 [09:11:37]line ФД: 139581 [09:11:37]line ФПД: 257851332471159 [09:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091139&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139581&fm=257851332471159&tin=02508201610067®Number=0000000000092569&sum=30000 [09:11:38]OFD Sender: Processing packet 139581 [packets to send 137, broken 136] [09:11:38]ProducePacketName [09:11:38]name=ofd_packets/00139581 [09:11:38]OFD Sender: To server: pG, [09:11:38]CommunicateWithHost lk.salyk.kg:30040 [09:11:38]ConnectInit lk.salyk.kg [09:11:38]written 0, free lines is 4095 [09:11:38]Connected sock=10 [09:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 81 48 00 01 EF 66 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 35 00 00 00 F4 03 04 00 CB 5D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 21 02 00 35 04 06 00 EA 83 B1 13 A9 77 16 D9 9E 5E A2 13 4A 5E [09:11:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1D 6E 47 00 E6 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 21 02 00 F4 03 04 00 5E 04 C4 66 B6 04 01 00 00 28 B6 C7 0B 82 68 60 06 [09:11:38]CommunicateWithHost err = 0 [09:11:38]CheckOFDResponse [09:11:38]1017 (14) - 77093643461234 [09:11:38]1041 (16) - 0000000000871776 [09:11:38]1040 (4) - 139581 [09:11:38]1012 (4) - 20.08.2024 02:50 [09:11:38]1206 (1) - 0 [09:11:38]OFD Sender: Remove packet 139581 [09:11:38]ProducePacketName [09:11:38]name=ofd_packets/00139581 [09:11:38]NVStorageDeleteData [09:11:38]Write to MH i2c: 01 00 00 E1 1B FC [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: 01 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: 01 07 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: 01 07 00 E1 1B 00 00 00 00 00 C3 0C D2 [09:11:38]RasterBufferAndPrint [09:11:38]line [09:11:38]line [09:11:38]line [09:11:38]line [09:11:38]line [09:11:38]written 0, free lines is 3273 [09:11:38]MH_Cut [09:11:38]Write to MH i2c: D1 01 00 E8 1B 01 D5 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: D1 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: D1 01 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: D1 01 00 E8 1B 00 D4 [09:11:38]Write to MH i2c: 01 00 00 E9 1B 04 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:39]OFD Sender: No OFD packet to send [09:11:39]*** Cut start [09:11:39]*** Partial cut [09:11:39]*** CUTSNS_PIN = 1 [09:11:39]*** CUTSNS_PIN = 0 [09:11:39]*** Brake cut motor [09:11:40]Read from MH i2c: 01 [09:11:40]MH_I2C_Read... [09:11:40]*** Stop cut motor [09:11:40]*** Cut end [09:11:40]Read from MH i2c: 01 07 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 07 00 E9 1B 00 00 00 00 00 FF 0F 19 [09:11:40]process_action close_receipt done [09:11:40]requested_data is exist [09:11:40]produce_requested_data [09:11:40]requested_item fm.sn is exist - process it [09:11:40]wFMCommunicate request_size=4 [09:11:40]MH_SAM_APDU [09:11:40]CAPDU: 80 11 00 00 [09:11:40]Write to MH i2c: E2 08 00 EA 1B 80 11 00 00 00 00 00 00 7F [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:40]Read from MH i2c: E2 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 17 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 17 00 EA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [09:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:11:40]wFMCommunicate OK [09:11:40]requested_item fd.num is exist - process it [09:11:40]SAM_PROTO_GetFieldsCounters [09:11:40]wFMCommunicate request_size=4 [09:11:40]MH_SAM_APDU [09:11:40]CAPDU: 80 13 00 00 [09:11:40]Write to MH i2c: E2 08 00 EB 1B 80 13 00 00 00 00 00 00 82 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:40]Read from MH i2c: E2 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 62 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 62 00 EB 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [09:11:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:40]wFMCommunicate OK [09:11:40]SAM_PROTO_GetFieldsCounters done [09:11:40]requested_item shift.num is exist - process it [09:11:40]requested_item shift.opened is exist - process it [09:11:40]req_shift_opened [09:11:40]FM_GetShiftState [09:11:40]SAM_PROTO_GetShiftState [09:11:40]wFMCommunicate request_size=4 [09:11:40]MH_SAM_APDU [09:11:40]CAPDU: 80 13 01 00 [09:11:40]Write to MH i2c: E2 08 00 EC 1B 80 13 01 00 00 00 00 00 84 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:40]Read from MH i2c: E2 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 0E 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 0E 00 EC 1B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 15 [09:11:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:11:40]wFMCommunicate OK [09:11:40]SAM_PROTO_GetShiftState done [09:11:40]FM_GetShiftState done [09:11:40]req_shift_opened done [09:11:40]requested_item shift.open_date is exist - process it [09:11:40]req_shift_open_date [09:11:40]req_shift_open_date done [09:11:40]produce_requested_data done [09:11:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139581,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:11:40]process_action_free close_receipt [09:11:40]json_value_free [09:11:40]json_value_free done [09:11:40]process_json_proto returns [09:11:40]Send response to host [09:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139581,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:11:40]free response buf [09:11:40]execute_script done [09:11:40]execute_script returns [09:11:40]free content buf [09:11:40]Sock 7.Close socket [09:11:40]Sock 7.Thread stoped [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:54]int [09:11:54]Write to MH i2c: 01 00 00 ED 1B 08 [09:11:54]*** FLAG_PRN_KEY set [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 07 00 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 07 00 ED 1B 00 08 00 00 00 FF 0F 25 [09:11:54]state=0 [09:11:54]Key pressed [09:11:54]Feed [09:11:54]Write to MH i2c: D8 00 00 EE 1B E0 [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: D8 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: D8 01 00 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: D8 01 00 EE 1B 00 E1 [09:11:54]int [09:11:54]Write to MH i2c: 01 00 00 EF 1B 0A [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 07 00 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 07 00 EF 1B 00 48 00 00 00 3C 00 95 [09:11:54]state=2 [09:11:54]Key pressed [09:11:54]int [09:11:54]Write to MH i2c: 01 00 00 F0 1B 0B [09:11:54]*** FLAG_PRN_KEY reset [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 07 00 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: 01 07 00 F0 1B 00 00 00 00 00 F5 0F 16 [09:11:54]state=2 [09:11:54]Stop feed [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:41]accept exits with 9 [09:12:41]New connection [09:12:41]New thread 3067215204 created [09:12:41]Thread 3067071844 joined [09:12:41]Waiting for new connection... [09:12:41] Sock 9.Parse request [09:12:41]Sock 9.Check first char [09:12:41]Sock 9.First char is OK [09:12:41]request: POST /json_proto HTTP/1.0 [09:12:41]Method: POST [09:12:41]URL: /json_proto [09:12:41]Method is POST - this is cgi request [09:12:41]url: /json_proto [09:12:41]query_string will be loaded in cgi processing [09:12:41]execute_cgi json_proto POST (null) [09:12:41]execute_cgi path=json_proto method=POST [09:12:41]POST find Content-Length [09:12:41]Host: 172.17.45.67:8080 [09:12:41]Content-Length: 677 [09:12:41]Content-Type: application/json [09:12:41] [09:12:41]POST finish read [09:12:41]Found Content-Length = 677 [09:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:41]execute_script... [09: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)593424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:41]POST & json_proto [09:12:41]process_json_proto [09:12:41]json parsed OK: [09:12:41]protocol is kg_v1.0 [09:12:41]action value=close_receipt [09:12:41]process_action close_receipt [09:12:41]cmd_close_receipt [09:12:41]MH_GetDate [09:12:41]Write to MH i2c: F0 00 00 F1 1B FB [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: F0 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: F0 09 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: F0 09 00 F1 1B 00 0C 5E C4 66 5F 7F 2B 66 07 [09:12:41]GetLastDocTimeStamp 1724145099 [09:12:41]current date 1724145164 [09:12:41]FM_GetShiftState [09:12:41]SAM_PROTO_GetShiftState [09:12:41]wFMCommunicate request_size=4 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 13 01 00 [09:12:41]Write to MH i2c: E2 08 00 F2 1B 80 13 01 00 00 00 00 00 8A [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 0E 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 0E 00 F2 1B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1B [09:12:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:12:41]wFMCommunicate OK [09:12:41]SAM_PROTO_GetShiftState done [09:12:41]FM_GetShiftState done [09:12:41]opened in 1724113785 [09:12:41]opened+sec_in_day 1724200185 [09:12:41]quantity*price = 50036 [09:12:41]sum+1 = 50037 [09:12:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 54 20.08.2024 09:12 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139582 ФПД: 108992702670472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139582&fm=108992702670472&tin=02508201610067®Number=0000000000092569&sum=50000 [09:12:42]StoreToDocumentArchive [09:12:42]shift 453 fd 139582 [09:12:42]save to /storage/0453/doc_00139582 [09:12:42]save last doc name /storage/0453/doc_00139582 to /storage/kkm_last_doc_name [09:12:42]save OK [09:12:42]Clear old archive folders... [09:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:42]tlvbuf is 00D2E110 [09:12:42]SAM_PROTO_ClearQueue [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 09 00 00 [09:12:42]Write to MH i2c: E2 08 00 FF 1B 80 09 00 00 00 00 00 00 8C [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 FF 1B 00 90 00 8E [09:12:42]RAPDU: 90 00 [09:12:42]wFMCommunicate OK [09:12:42]SAM_PROTO_ClearQueue done [09:12:42]KKMCreateOFDPacket [09:12:42]OFDProtocolAddRootSTLVToBuf [09:12:42]FM_MakeSignedData [09:12:42]FM_MakeSignedData [09:12:42]SAM_PROTO_SignData [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 0D 01 02 [09:12:42]Write to MH i2c: E2 08 00 00 1C 80 0D 01 02 00 00 00 00 95 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 00 1C 00 90 00 90 [09:12:42]RAPDU: 90 00 [09:12:42]wFMCommunicate OK [09:12:42]wFMCommunicate request_size=255 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0C 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 21 02 00 35 04 06 00 63 [09:12:42]Write to MH i2c: E2 02 01 01 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0C 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 21 02 00 35 04 06 00 63 00 00 72 [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 01 1C 00 90 00 91 [09:12:42]RAPDU: 90 00 [09:12:42]wFMCommunicate OK [09:12:42]wFMCommunicate request_size=10 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 0D 02 02 05 20 D7 53 66 88 [09:12:42]Write to MH i2c: E2 0D 00 02 1C 80 0D 02 02 05 00 20 D7 53 66 88 00 00 DA [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:42]Read from MH i2c: E2 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 [09:12:42]MH_I2C_Read... [09:12:42]Read from MH i2c: E2 03 00 02 1C 00 90 00 92 [09:12:42]RAPDU: 90 00 [09:12:42]wFMCommunicate OK [09:12:42]wFMCommunicate request_size=4 [09:12:42]MH_SAM_APDU [09:12:42]CAPDU: 80 0D 03 02 [09:12:42]Write to MH i2c: E2 08 00 03 1C 80 0D 03 02 00 00 00 00 9A [09:12:42]Write i2c OK [09:12:42]MH_I2C_Read... [09:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:43]Read from MH i2c: E2 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 0B 00 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 0B 00 03 1C 00 3F 06 A1 8D 23 DF FF 1B 90 00 2A [09:12:43]RAPDU: 3F 06 A1 8D 23 DF FF 1B 90 00 [09:12:43]wFMCommunicate OK [09:12:43]SAM_PROTO_SignData done [09:12:43]FM_MakeSignedData done [09:12:43]CreateOFDProtocolMessage [09:12:43]wFMCommunicate request_size=4 [09:12:43]MH_SAM_APDU [09:12:43]CAPDU: 80 11 00 00 [09:12:43]Write to MH i2c: E2 08 00 04 1C 80 11 00 00 00 00 00 00 9A [09:12:43]Write i2c OK [09:12:43]MH_I2C_Read... [09:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:43]Read from MH i2c: E2 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 17 00 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: E2 17 00 04 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [09:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:12:43]wFMCommunicate OK [09:12:43]CreateOFDProtocolMessage done [09:12:43]OFDSenderStorePacket 139582 [09:12:43]StoreOFDPacket docnum=139582 [09:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A3 10 07 01 EE 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0C 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 21 02 00 35 04 06 00 63 20 D7 53 66 88 3F 06 A1 8D 23 DF FF 1B [09:12:43]CheckFolder [09:12:43]dirname=/storage/ofd_packets [09:12:43]CheckFolder done [09:12:43]ProducePacketName [09:12:43]name=ofd_packets/00139582 [09:12:43]NVStorageSaveData ofd_packets/00139582 [09:12:43]File name is /storage/ofd_packets/00139582 [09:12:43]Write 301 bytes [09:12:43]NVStorageSaveData done [09:12:43]OFDSenderStorePacket done [09:12:43]KKMCreateOFDPacket done [09:12:43]NVStorageSaveData kkm_last_timestamp [09:12:43]File name is /storage/kkm_last_timestamp [09:12:43]Write 4 bytes [09:12:43]NVStorageSaveData done [09:12:43]ExternCall_PrintAddStr [09:12:43]wPrintStart [09:12:43]Write to MH i2c: 01 00 00 05 1C 21 [09:12:43]Write i2c OK [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: 01 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: 01 07 00 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: 01 07 00 05 1C 00 00 00 00 00 FF 0F 36 [09:12:43]RasterBufferAndPrint [09:12:43]line Счет N : (1)593424 [09:12:43]line ИНН: 02508201610067 [09:12:43]line Контрольно-Кассовый Чек [09:12:43]line ПРОДАЖА [09:12:43]line ТРК (МРК, ГНК) : 32 [09:12:43]line Товар: 2710124130 [09:12:43]line Аи-92-К-5 [09:12:43]line 7.380 * 67.80 [09:12:43]line = 500.36 [09:12:43]line НДС 12% НСП 1% [09:12:43]line > о реализуемом товаре [09:12:43]line ОКРУГЛЕНИЕ: -0.36 [09:12:43]line ИТОГО: 500.00 [09:12:43]line Внесено: 500.00 [09:12:43]line СДАЧА: 0.00 [09:12:43]line НСП 1% : 4.43 [09:12:43]line НДС 12% : 53.14 [09:12:43]line Наличными: 500.00 [09:12:43]line Безнал.: 0.00 [09:12:43]line Место: АЗС № 136 "Партнер Нефть" [09:12:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:12:43]line СНО: Общий режим [09:12:43]line Чек 54 20.08.2024 09:12 [09:12:43]line Смена: 453 ФФД: 1.0 [09:12:43]line ЗНМ: 0300000067 [09:12:43]line РНМ: 0000000000092569 [09:12:43]line Версия ККМ: 001 [09:12:43]line ФМ: 0000000000871776 [09:12:43]line ФД: 139582 [09:12:43]line ФПД: 108992702670472 [09:12:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139582&fm=108992702670472&tin=02508201610067®Number=0000000000092569&sum=50000 [09:12:43]OFD Sender: Processing packet 139582 [packets to send 137, broken 136] [09:12:43]ProducePacketName [09:12:43]name=ofd_packets/00139582 [09:12:43]OFD Sender: To server: pG, [09:12:43]CommunicateWithHost lk.salyk.kg:30040 [09:12:43]ConnectInit lk.salyk.kg [09:12:43]written 0, free lines is 4095 [09:12:43]Connected sock=10 [09:12:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A3 10 07 01 EE 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0C 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 21 02 00 35 04 06 00 63 20 D7 53 66 88 3F 06 A1 8D 23 DF FF 1B [09:12:43]Write to MH i2c: 01 00 00 30 1C 4C [09:12:43]Write i2c OK [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: 01 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: 01 07 00 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: 01 07 00 30 1C 00 00 00 00 00 D9 0C 38 [09:12:43]RasterBufferAndPrint [09:12:43]line [09:12:43]line [09:12:43]line [09:12:43]line [09:12:43]line [09:12:43]written 0, free lines is 3297 [09:12:43]MH_Cut [09:12:43]Write to MH i2c: D1 01 00 37 1C 01 25 [09:12:43]Write i2c OK [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: D1 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: D1 01 00 [09:12:43]MH_I2C_Read... [09:12:43]Read from MH i2c: D1 01 00 37 1C 00 24 [09:12:43]Write to MH i2c: 01 00 00 38 1C 54 [09:12:43]Write i2c OK [09:12:43]MH_I2C_Read... [09:12:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 30 61 47 00 14 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 21 02 00 F4 03 04 00 A0 04 C4 66 B6 04 01 00 00 02 27 75 A0 9E 62 EC D7 [09:12:43]CommunicateWithHost err = 0 [09:12:43]CheckOFDResponse [09:12:43]1017 (14) - 77093643461234 [09:12:43]1041 (16) - 0000000000871776 [09:12:43]1040 (4) - 139582 [09:12:43]1012 (4) - 20.08.2024 02:51 [09:12:43]1206 (1) - 0 [09:12:43]OFD Sender: Remove packet 139582 [09:12:43]ProducePacketName [09:12:43]name=ofd_packets/00139582 [09:12:43]NVStorageDeleteData [09:12:44]OFD Sender: No OFD packet to send [09:12:44]*** Cut start [09:12:44]*** Partial cut [09:12:44]*** CUTSNS_PIN = 1 [09:12:44]*** CUTSNS_PIN = 0 [09:12:44]*** Brake cut motor [09:12:45]Read from MH i2c: 01 [09:12:45]MH_I2C_Read... [09:12:45]*** Stop cut motor [09:12:45]*** Cut end [09:12:45]Read from MH i2c: 01 07 00 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: 01 07 00 38 1C 00 00 00 00 00 FF 0F 69 [09:12:45]process_action close_receipt done [09:12:45]requested_data is exist [09:12:45]produce_requested_data [09:12:45]requested_item fm.sn is exist - process it [09:12:45]wFMCommunicate request_size=4 [09:12:45]MH_SAM_APDU [09:12:45]CAPDU: 80 11 00 00 [09:12:45]Write to MH i2c: E2 08 00 39 1C 80 11 00 00 00 00 00 00 CF [09:12:45]Write i2c OK [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: E2 [09:12:45]MH_I2C_Read... [09:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:45]Read from MH i2c: E2 17 00 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: E2 17 00 39 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [09:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:12:45]wFMCommunicate OK [09:12:45]requested_item fd.num is exist - process it [09:12:45]SAM_PROTO_GetFieldsCounters [09:12:45]wFMCommunicate request_size=4 [09:12:45]MH_SAM_APDU [09:12:45]CAPDU: 80 13 00 00 [09:12:45]Write to MH i2c: E2 08 00 3A 1C 80 13 00 00 00 00 00 00 D2 [09:12:45]Write i2c OK [09:12:45]MH_I2C_Read... [09:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:45]Read from MH i2c: E2 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: E2 62 00 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: E2 62 00 3A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [09:12:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:45]wFMCommunicate OK [09:12:45]SAM_PROTO_GetFieldsCounters done [09:12:45]requested_item shift.num is exist - process it [09:12:45]requested_item shift.opened is exist - process it [09:12:45]req_shift_opened [09:12:45]FM_GetShiftState [09:12:45]SAM_PROTO_GetShiftState [09:12:45]wFMCommunicate request_size=4 [09:12:45]MH_SAM_APDU [09:12:45]CAPDU: 80 13 01 00 [09:12:45]Write to MH i2c: E2 08 00 3B 1C 80 13 01 00 00 00 00 00 D4 [09:12:45]Write i2c OK [09:12:45]MH_I2C_Read... [09:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:45]Read from MH i2c: E2 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: E2 0E 00 [09:12:45]MH_I2C_Read... [09:12:45]Read from MH i2c: E2 0E 00 3B 1C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 65 [09:12:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:12:45]wFMCommunicate OK [09:12:45]SAM_PROTO_GetShiftState done [09:12:45]FM_GetShiftState done [09:12:45]req_shift_opened done [09:12:45]requested_item shift.open_date is exist - process it [09:12:45]req_shift_open_date [09:12:45]req_shift_open_date done [09:12:45]produce_requested_data done [09:12:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139582,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:12:45]process_action_free close_receipt [09:12:45]json_value_free [09:12:45]json_value_free done [09:12:45]process_json_proto returns [09:12:45]Send response to host [09:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139582,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:12:45]free response buf [09:12:45]execute_script done [09:12:45]execute_script returns [09:12:45]free content buf [09:12:45]Sock 9.Close socket [09:12:45]Sock 9.Thread stoped [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:57]accept exits with 7 [09:13:57]New connection [09:13:57]New thread 3067071844 created [09:13:57]Thread 3067215204 joined [09:13:57]Waiting for new connection... [09:13:57] Sock 7.Parse request [09:13:57]Sock 7.Check first char [09:13:57]Sock 7.First char is OK [09:13:57]request: POST /json_proto HTTP/1.0 [09:13:57]Method: POST [09:13:57]URL: /json_proto [09:13:57]Method is POST - this is cgi request [09:13:57]url: /json_proto [09:13:57]query_string will be loaded in cgi processing [09:13:57]execute_cgi json_proto POST (null) [09:13:57]execute_cgi path=json_proto method=POST [09:13:57]POST find Content-Length [09:13:57]Host: 172.17.45.67:8080 [09:13:57]Content-Length: 677 [09:13:57]Content-Type: application/json [09:13:57] [09:13:57]POST finish read [09:13:57]Found Content-Length = 677 [09:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:57]execute_script... [09:13: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)593425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:57]POST & json_proto [09:13:57]process_json_proto [09:13:57]json parsed OK: [09:13:57]protocol is kg_v1.0 [09:13:57]action value=close_receipt [09:13:57]process_action close_receipt [09:13:57]cmd_close_receipt [09:13:57]MH_GetDate [09:13:57]Write to MH i2c: F0 00 00 3C 1C 47 [09:13:57]Write i2c OK [09:13:57]MH_I2C_Read... [09:13:57]Read from MH i2c: F0 [09:13:57]MH_I2C_Read... [09:13:57]Read from MH i2c: F0 09 00 [09:13:57]MH_I2C_Read... [09:13:57]Read from MH i2c: F0 09 00 3C 1C 00 58 5E C4 66 5F 7F 2B 66 9F [09:13:57]GetLastDocTimeStamp 1724145164 [09:13:57]current date 1724145240 [09:13:57]FM_GetShiftState [09:13:57]SAM_PROTO_GetShiftState [09:13:57]wFMCommunicate request_size=4 [09:13:57]MH_SAM_APDU [09:13:57]CAPDU: 80 13 01 00 [09:13:57]Write to MH i2c: E2 08 00 3D 1C 80 13 01 00 00 00 00 00 D6 [09:13:57]Write i2c OK [09:13:57]MH_I2C_Read... [09:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:57]Read from MH i2c: E2 [09:13:57]MH_I2C_Read... [09:13:57]Read from MH i2c: E2 0E 00 [09:13:57]MH_I2C_Read... [09:13:57]Read from MH i2c: E2 0E 00 3D 1C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 67 [09:13:57]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:13:57]wFMCommunicate OK [09:13:57]SAM_PROTO_GetShiftState done [09:13:57]FM_GetShiftState done [09:13:57]opened in 1724113785 [09:13:57]opened+sec_in_day 1724200185 [09:13:57]quantity*price = 50036 [09:13:57]sum+1 = 50037 [09:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 55 20.08.2024 09:14 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139583 ФПД: 54410091358101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091400&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139583&fm=54410091358101&tin=02508201610067®Number=0000000000092569&sum=50000 [09:13:58]StoreToDocumentArchive [09:13:58]shift 453 fd 139583 [09:13:58]save to /storage/0453/doc_00139583 [09:13:58]save last doc name /storage/0453/doc_00139583 to /storage/kkm_last_doc_name [09:13:58]save OK [09:13:58]Clear old archive folders... [09:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:58]tlvbuf is 00DDAAA0 [09:13:58]SAM_PROTO_ClearQueue [09:13:58]wFMCommunicate request_size=4 [09:13:58]MH_SAM_APDU [09:13:58]CAPDU: 80 09 00 00 [09:13:58]Write to MH i2c: E2 08 00 4A 1C 80 09 00 00 00 00 00 00 D8 [09:13:58]Write i2c OK [09:13:58]MH_I2C_Read... [09:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:59]Read from MH i2c: E2 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 03 00 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 03 00 4A 1C 00 90 00 DA [09:13:59]RAPDU: 90 00 [09:13:59]wFMCommunicate OK [09:13:59]SAM_PROTO_ClearQueue done [09:13:59]KKMCreateOFDPacket [09:13:59]OFDProtocolAddRootSTLVToBuf [09:13:59]FM_MakeSignedData [09:13:59]FM_MakeSignedData [09:13:59]SAM_PROTO_SignData [09:13:59]wFMCommunicate request_size=4 [09:13:59]MH_SAM_APDU [09:13:59]CAPDU: 80 0D 01 02 [09:13:59]Write to MH i2c: E2 08 00 4B 1C 80 0D 01 02 00 00 00 00 E0 [09:13:59]Write i2c OK [09:13:59]MH_I2C_Read... [09:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:59]Read from MH i2c: E2 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 03 00 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 03 00 4B 1C 00 90 00 DB [09:13:59]RAPDU: 90 00 [09:13:59]wFMCommunicate OK [09:13:59]wFMCommunicate request_size=255 [09:13:59]MH_SAM_APDU [09:13:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 58 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 21 02 00 35 04 06 00 31 [09:13:59]Write to MH i2c: E2 02 01 4C 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 58 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 21 02 00 35 04 06 00 31 00 00 D9 [09:13:59]Write i2c OK [09:13:59]MH_I2C_Read... [09:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:59]Read from MH i2c: E2 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 03 00 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 03 00 4C 1C 00 90 00 DC [09:13:59]RAPDU: 90 00 [09:13:59]wFMCommunicate OK [09:13:59]wFMCommunicate request_size=10 [09:13:59]MH_SAM_APDU [09:13:59]CAPDU: 80 0D 02 02 05 7C 56 2A E7 95 [09:13:59]Write to MH i2c: E2 0D 00 4D 1C 80 0D 02 02 05 00 7C 56 2A E7 95 00 00 65 [09:13:59]Write i2c OK [09:13:59]MH_I2C_Read... [09:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:59]Read from MH i2c: E2 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 03 00 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 03 00 4D 1C 00 90 00 DD [09:13:59]RAPDU: 90 00 [09:13:59]wFMCommunicate OK [09:13:59]wFMCommunicate request_size=4 [09:13:59]MH_SAM_APDU [09:13:59]CAPDU: 80 0D 03 02 [09:13:59]Write to MH i2c: E2 08 00 4E 1C 80 0D 03 02 00 00 00 00 E5 [09:13:59]Write i2c OK [09:13:59]MH_I2C_Read... [09:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:59]Read from MH i2c: E2 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 0B 00 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 0B 00 4E 1C 00 B0 A5 EA 72 43 94 E6 E5 90 00 39 [09:13:59]RAPDU: B0 A5 EA 72 43 94 E6 E5 90 00 [09:13:59]wFMCommunicate OK [09:13:59]SAM_PROTO_SignData done [09:13:59]FM_MakeSignedData done [09:13:59]CreateOFDProtocolMessage [09:13:59]wFMCommunicate request_size=4 [09:13:59]MH_SAM_APDU [09:13:59]CAPDU: 80 11 00 00 [09:13:59]Write to MH i2c: E2 08 00 4F 1C 80 11 00 00 00 00 00 00 E5 [09:13:59]Write i2c OK [09:13:59]MH_I2C_Read... [09:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:59]Read from MH i2c: E2 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 17 00 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: E2 17 00 4F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [09:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:13:59]wFMCommunicate OK [09:13:59]CreateOFDProtocolMessage done [09:13:59]OFDSenderStorePacket 139583 [09:13:59]StoreOFDPacket docnum=139583 [09:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 21 F1 07 01 3E 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 58 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 21 02 00 35 04 06 00 31 7C 56 2A E7 95 B0 A5 EA 72 43 94 E6 E5 [09:13:59]CheckFolder [09:13:59]dirname=/storage/ofd_packets [09:13:59]CheckFolder done [09:13:59]ProducePacketName [09:13:59]name=ofd_packets/00139583 [09:13:59]NVStorageSaveData ofd_packets/00139583 [09:13:59]File name is /storage/ofd_packets/00139583 [09:13:59]Write 301 bytes [09:13:59]NVStorageSaveData done [09:13:59]OFDSenderStorePacket done [09:13:59]KKMCreateOFDPacket done [09:13:59]NVStorageSaveData kkm_last_timestamp [09:13:59]File name is /storage/kkm_last_timestamp [09:13:59]Write 4 bytes [09:13:59]NVStorageSaveData done [09:13:59]ExternCall_PrintAddStr [09:13:59]wPrintStart [09:13:59]Write to MH i2c: 01 00 00 50 1C 6C [09:13:59]Write i2c OK [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: 01 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: 01 07 00 [09:13:59]MH_I2C_Read... [09:13:59]Read from MH i2c: 01 07 00 50 1C 00 00 00 00 00 FF 0F 81 [09:13:59]RasterBufferAndPrint [09:13:59]line Счет N : (1)593425 [09:13:59]line ИНН: 02508201610067 [09:13:59]line Контрольно-Кассовый Чек [09:13:59]line ПРОДАЖА [09:13:59]line ТРК (МРК, ГНК) : 52 [09:13:59]line Товар: 2710124130 [09:13:59]line Аи-92-К-5 [09:13:59]line 7.380 * 67.80 [09:13:59]line = 500.36 [09:13:59]line НДС 12% НСП 1% [09:13:59]line > о реализуемом товаре [09:13:59]line ОКРУГЛЕНИЕ: -0.36 [09:13:59]line ИТОГО: 500.00 [09:13:59]line Внесено: 500.00 [09:13:59]line СДАЧА: 0.00 [09:13:59]line НСП 1% : 4.43 [09:13:59]line НДС 12% : 53.14 [09:13:59]line Наличными: 500.00 [09:13:59]line Безнал.: 0.00 [09:13:59]line Место: АЗС № 136 "Партнер Нефть" [09:13:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:13:59]line СНО: Общий режим [09:13:59]line Чек 55 20.08.2024 09:14 [09:13:59]line Смена: 453 ФФД: 1.0 [09:13:59]line ЗНМ: 0300000067 [09:13:59]line РНМ: 0000000000092569 [09:13:59]line Версия ККМ: 001 [09:13:59]line ФМ: 0000000000871776 [09:13:59]line ФД: 139583 [09:13:59]line ФПД: 54410091358101 [09:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091400&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139583&fm=54410091358101&tin=02508201610067®Number=0000000000092569&sum=50000 [09:13:59]OFD Sender: Processing packet 139583 [packets to send 137, broken 136] [09:13:59]ProducePacketName [09:13:59]name=ofd_packets/00139583 [09:13:59]OFD Sender: To server: pG, [09:13:59]CommunicateWithHost lk.salyk.kg:30040 [09:13:59]ConnectInit lk.salyk.kg [09:13:59]written 0, free lines is 4095 [09:14:00]Connected sock=10 [09:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 21 F1 07 01 3E 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 58 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 21 02 00 35 04 06 00 31 7C 56 2A E7 95 B0 A5 EA 72 43 94 E6 E5 [09:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6C EA 47 00 A0 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 21 02 00 F4 03 04 00 EC 04 C4 66 B6 04 01 00 00 EB 81 02 C4 A5 C6 4D 3D [09:14:00]CommunicateWithHost err = 0 [09:14:00]CheckOFDResponse [09:14:00]1017 (14) - 77093643461234 [09:14:00]1041 (16) - 0000000000871776 [09:14:00]1040 (4) - 139583 [09:14:00]1012 (4) - 20.08.2024 02:52 [09:14:00]1206 (1) - 0 [09:14:00]OFD Sender: Remove packet 139583 [09:14:00]ProducePacketName [09:14:00]name=ofd_packets/00139583 [09:14:00]NVStorageDeleteData [09:14:00]Write to MH i2c: 01 00 00 7B 1C 97 [09:14:00]Write i2c OK [09:14:00]MH_I2C_Read... [09:14:00]Read from MH i2c: 01 [09:14:00]MH_I2C_Read... [09:14:00]Read from MH i2c: 01 07 00 [09:14:00]MH_I2C_Read... [09:14:00]Read from MH i2c: 01 07 00 7B 1C 00 00 00 00 00 C3 0C 6D [09:14:00]RasterBufferAndPrint [09:14:00]line [09:14:00]line [09:14:00]line [09:14:00]line [09:14:00]line [09:14:00]written 0, free lines is 3273 [09:14:00]MH_Cut [09:14:00]Write to MH i2c: D1 01 00 82 1C 01 70 [09:14:00]Write i2c OK [09:14:00]MH_I2C_Read... [09:14:00]Read from MH i2c: D1 [09:14:00]MH_I2C_Read... [09:14:00]Read from MH i2c: D1 01 00 [09:14:00]MH_I2C_Read... [09:14:00]Read from MH i2c: D1 01 00 82 1C 00 6F [09:14:00]Write to MH i2c: 01 00 00 83 1C 9F [09:14:00]Write i2c OK [09:14:00]MH_I2C_Read... [09:14:00]OFD Sender: No OFD packet to send [09:14:01]*** Cut start [09:14:01]*** Partial cut [09:14:01]*** CUTSNS_PIN = 1 [09:14:01]*** CUTSNS_PIN = 0 [09:14:01]*** Brake cut motor [09:14:01]Read from MH i2c: 01 [09:14:01]MH_I2C_Read... [09:14:01]*** Stop cut motor [09:14:01]*** Cut end [09:14:01]Read from MH i2c: 01 07 00 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: 01 07 00 83 1C 00 00 00 00 00 FF 0F B4 [09:14:01]process_action close_receipt done [09:14:01]requested_data is exist [09:14:01]produce_requested_data [09:14:01]requested_item fm.sn is exist - process it [09:14:01]wFMCommunicate request_size=4 [09:14:01]MH_SAM_APDU [09:14:01]CAPDU: 80 11 00 00 [09:14:01]Write to MH i2c: E2 08 00 84 1C 80 11 00 00 00 00 00 00 1A [09:14:01]Write i2c OK [09:14:01]MH_I2C_Read... [09:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:01]Read from MH i2c: E2 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: E2 17 00 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: E2 17 00 84 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 71 [09:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:14:01]wFMCommunicate OK [09:14:01]requested_item fd.num is exist - process it [09:14:01]SAM_PROTO_GetFieldsCounters [09:14:01]wFMCommunicate request_size=4 [09:14:01]MH_SAM_APDU [09:14:01]CAPDU: 80 13 00 00 [09:14:01]Write to MH i2c: E2 08 00 85 1C 80 13 00 00 00 00 00 00 1D [09:14:01]Write i2c OK [09:14:01]MH_I2C_Read... [09:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:01]Read from MH i2c: E2 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: E2 62 00 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: E2 62 00 85 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [09:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:01]wFMCommunicate OK [09:14:01]SAM_PROTO_GetFieldsCounters done [09:14:01]requested_item shift.num is exist - process it [09:14:01]requested_item shift.opened is exist - process it [09:14:01]req_shift_opened [09:14:01]FM_GetShiftState [09:14:01]SAM_PROTO_GetShiftState [09:14:01]wFMCommunicate request_size=4 [09:14:01]MH_SAM_APDU [09:14:01]CAPDU: 80 13 01 00 [09:14:01]Write to MH i2c: E2 08 00 86 1C 80 13 01 00 00 00 00 00 1F [09:14:01]Write i2c OK [09:14:01]MH_I2C_Read... [09:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:01]Read from MH i2c: E2 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: E2 0E 00 [09:14:01]MH_I2C_Read... [09:14:01]Read from MH i2c: E2 0E 00 86 1C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B0 [09:14:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:14:01]wFMCommunicate OK [09:14:01]SAM_PROTO_GetShiftState done [09:14:01]FM_GetShiftState done [09:14:01]req_shift_opened done [09:14:01]requested_item shift.open_date is exist - process it [09:14:01]req_shift_open_date [09:14:01]req_shift_open_date done [09:14:01]produce_requested_data done [09:14:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139583,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:14:01]process_action_free close_receipt [09:14:01]json_value_free [09:14:01]json_value_free done [09:14:01]process_json_proto returns [09:14:01]Send response to host [09:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139583,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:14:01]free response buf [09:14:01]execute_script done [09:14:01]execute_script returns [09:14:01]free content buf [09:14:01]Sock 7.Close socket [09:14:01]Sock 7.Thread stoped [09:14:05]OFD Sender: No OFD packet to send [09:14:05]accept exits with 9 [09:14:05]New connection [09:14:05]New thread 3067215204 created [09:14:05]Thread 3067071844 joined [09:14:05]Waiting for new connection... [09:14:05] Sock 9.Parse request [09:14:05]Sock 9.Check first char [09:14:05]Sock 9.First char is OK [09:14:05]request: POST /json_proto HTTP/1.0 [09:14:05]Method: POST [09:14:05]URL: /json_proto [09:14:05]Method is POST - this is cgi request [09:14:05]url: /json_proto [09:14:05]query_string will be loaded in cgi processing [09:14:05]execute_cgi json_proto POST (null) [09:14:05]execute_cgi path=json_proto method=POST [09:14:05]POST find Content-Length [09:14:05]Host: 172.17.45.67:8080 [09:14:05]Content-Length: 677 [09:14:05]Content-Type: application/json [09:14:05] [09:14:05]POST finish read [09:14:05]Found Content-Length = 677 [09:14:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:05]execute_script... [09:14: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)593426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:05]POST & json_proto [09:14:05]process_json_proto [09:14:05]json parsed OK: [09:14:05]protocol is kg_v1.0 [09:14:05]action value=close_receipt [09:14:05]process_action close_receipt [09:14:05]cmd_close_receipt [09:14:05]MH_GetDate [09:14:05]Write to MH i2c: F0 00 00 87 1C 92 [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: F0 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: F0 09 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: F0 09 00 87 1C 00 60 5E C4 66 5F 7F 2B 66 F2 [09:14:05]GetLastDocTimeStamp 1724145240 [09:14:05]current date 1724145248 [09:14:05]FM_GetShiftState [09:14:05]SAM_PROTO_GetShiftState [09:14:05]wFMCommunicate request_size=4 [09:14:05]MH_SAM_APDU [09:14:05]CAPDU: 80 13 01 00 [09:14:05]Write to MH i2c: E2 08 00 88 1C 80 13 01 00 00 00 00 00 21 [09:14:05]Write i2c OK [09:14:05]MH_I2C_Read... [09:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:05]Read from MH i2c: E2 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 0E 00 [09:14:05]MH_I2C_Read... [09:14:05]Read from MH i2c: E2 0E 00 88 1C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B2 [09:14:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:14:05]wFMCommunicate OK [09:14:05]SAM_PROTO_GetShiftState done [09:14:05]FM_GetShiftState done [09:14:05]opened in 1724113785 [09:14:05]opened+sec_in_day 1724200185 [09:14:05]quantity*price = 20001 [09:14:05]sum+1 = 20002 [09:14:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 56 20.08.2024 09:14 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139584 ФПД: 240985388695162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091408&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139584&fm=240985388695162&tin=02508201610067®Number=0000000000092569&sum=20000 [09:14:06]StoreToDocumentArchive [09:14:06]shift 453 fd 139584 [09:14:06]save to /storage/0453/doc_00139584 [09:14:06]save last doc name /storage/0453/doc_00139584 to /storage/kkm_last_doc_name [09:14:06]save OK [09:14:06]Clear old archive folders... [09:14:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:06]tlvbuf is B6DE8730 [09:14:06]SAM_PROTO_ClearQueue [09:14:06]wFMCommunicate request_size=4 [09:14:06]MH_SAM_APDU [09:14:06]CAPDU: 80 09 00 00 [09:14:06]Write to MH i2c: E2 08 00 95 1C 80 09 00 00 00 00 00 00 23 [09:14:06]Write i2c OK [09:14:06]MH_I2C_Read... [09:14:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 95 1C 00 90 00 25 [09:14:07]RAPDU: 90 00 [09:14:07]wFMCommunicate OK [09:14:07]SAM_PROTO_ClearQueue done [09:14:07]KKMCreateOFDPacket [09:14:07]OFDProtocolAddRootSTLVToBuf [09:14:07]FM_MakeSignedData [09:14:07]FM_MakeSignedData [09:14:07]SAM_PROTO_SignData [09:14:07]wFMCommunicate request_size=4 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 0D 01 02 [09:14:07]Write to MH i2c: E2 08 00 96 1C 80 0D 01 02 00 00 00 00 2B [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 96 1C 00 90 00 26 [09:14:07]RAPDU: 90 00 [09:14:07]wFMCommunicate OK [09:14:07]wFMCommunicate request_size=255 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 60 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 21 02 00 35 04 06 00 DB [09:14:07]Write to MH i2c: E2 02 01 97 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 60 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 21 02 00 35 04 06 00 DB 00 00 DA [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 97 1C 00 90 00 27 [09:14:07]RAPDU: 90 00 [09:14:07]wFMCommunicate OK [09:14:07]wFMCommunicate request_size=10 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 0D 02 02 05 2C C8 7D 3E 7A [09:14:07]Write to MH i2c: E2 0D 00 98 1C 80 0D 02 02 05 00 2C C8 7D 3E 7A 00 00 61 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 03 00 98 1C 00 90 00 28 [09:14:07]RAPDU: 90 00 [09:14:07]wFMCommunicate OK [09:14:07]wFMCommunicate request_size=4 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 0D 03 02 [09:14:07]Write to MH i2c: E2 08 00 99 1C 80 0D 03 02 00 00 00 00 30 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 0B 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 0B 00 99 1C 00 D3 8F 3E 62 52 FC 83 AA 90 00 AE [09:14:07]RAPDU: D3 8F 3E 62 52 FC 83 AA 90 00 [09:14:07]wFMCommunicate OK [09:14:07]SAM_PROTO_SignData done [09:14:07]FM_MakeSignedData done [09:14:07]CreateOFDProtocolMessage [09:14:07]wFMCommunicate request_size=4 [09:14:07]MH_SAM_APDU [09:14:07]CAPDU: 80 11 00 00 [09:14:07]Write to MH i2c: E2 08 00 9A 1C 80 11 00 00 00 00 00 00 30 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:07]Read from MH i2c: E2 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 17 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: E2 17 00 9A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 87 [09:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:14:07]wFMCommunicate OK [09:14:07]CreateOFDProtocolMessage done [09:14:07]OFDSenderStorePacket 139584 [09:14:07]StoreOFDPacket docnum=139584 [09:14:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0A FD 07 01 A5 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 60 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 21 02 00 35 04 06 00 DB 2C C8 7D 3E 7A D3 8F 3E 62 52 FC 83 AA [09:14:07]CheckFolder [09:14:07]dirname=/storage/ofd_packets [09:14:07]CheckFolder done [09:14:07]ProducePacketName [09:14:07]name=ofd_packets/00139584 [09:14:07]NVStorageSaveData ofd_packets/00139584 [09:14:07]File name is /storage/ofd_packets/00139584 [09:14:07]Write 301 bytes [09:14:07]NVStorageSaveData done [09:14:07]OFDSenderStorePacket done [09:14:07]KKMCreateOFDPacket done [09:14:07]NVStorageSaveData kkm_last_timestamp [09:14:07]File name is /storage/kkm_last_timestamp [09:14:07]Write 4 bytes [09:14:07]NVStorageSaveData done [09:14:07]ExternCall_PrintAddStr [09:14:07]wPrintStart [09:14:07]Write to MH i2c: 01 00 00 9B 1C B7 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: 01 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: 01 07 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: 01 07 00 9B 1C 00 00 00 00 00 FF 0F CC [09:14:07]RasterBufferAndPrint [09:14:07]line Счет N : (1)593426 [09:14:07]line ИНН: 02508201610067 [09:14:07]line Контрольно-Кассовый Чек [09:14:07]line ПРОДАЖА [09:14:07]line ТРК (МРК, ГНК) : 42 [09:14:07]line Товар: 2710124130 [09:14:07]line Аи-92-К-5 [09:14:07]line 2.950 * 67.80 [09:14:07]line = 200.01 [09:14:07]line НДС 12% НСП 1% [09:14:07]line > о реализуемом товаре [09:14:07]line ОКРУГЛЕНИЕ: -0.01 [09:14:07]line ИТОГО: 200.00 [09:14:07]line Внесено: 200.00 [09:14:07]line СДАЧА: 0.00 [09:14:07]line НСП 1% : 1.77 [09:14:07]line НДС 12% : 21.24 [09:14:07]line Наличными: 200.00 [09:14:07]line Безнал.: 0.00 [09:14:07]line Место: АЗС № 136 "Партнер Нефть" [09:14:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:14:07]line СНО: Общий режим [09:14:07]line Чек 56 20.08.2024 09:14 [09:14:07]line Смена: 453 ФФД: 1.0 [09:14:07]line ЗНМ: 0300000067 [09:14:07]line РНМ: 0000000000092569 [09:14:07]line Версия ККМ: 001 [09:14:07]line ФМ: 0000000000871776 [09:14:07]line ФД: 139584 [09:14:07]line ФПД: 240985388695162 [09:14:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091408&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139584&fm=240985388695162&tin=02508201610067®Number=0000000000092569&sum=20000 [09:14:07]written 0, free lines is 4095 [09:14:07]OFD Sender: Processing packet 139584 [packets to send 137, broken 136] [09:14:07]ProducePacketName [09:14:07]name=ofd_packets/00139584 [09:14:07]OFD Sender: To server: pG, [09:14:07]CommunicateWithHost lk.salyk.kg:30040 [09:14:07]ConnectInit lk.salyk.kg [09:14:07]Connected sock=10 [09:14:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0A FD 07 01 A5 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 60 5E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 21 02 00 35 04 06 00 DB 2C C8 7D 3E 7A D3 8F 3E 62 52 FC 83 AA [09:14:07]Write to MH i2c: 01 00 00 C6 1C E2 [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: 01 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: 01 07 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: 01 07 00 C6 1C 00 00 00 00 00 D1 0C C6 [09:14:07]RasterBufferAndPrint [09:14:07]line [09:14:07]line [09:14:07]line [09:14:07]line [09:14:07]line [09:14:07]written 0, free lines is 3292 [09:14:07]MH_Cut [09:14:07]Write to MH i2c: D1 01 00 CD 1C 01 BB [09:14:07]Write i2c OK [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: D1 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: D1 01 00 [09:14:07]MH_I2C_Read... [09:14:07]Read from MH i2c: D1 01 00 CD 1C 00 BA [09:14:07]Write to MH i2c: 01 00 00 CE 1C EA [09:14:07]Write i2c OK [09:14:08]MH_I2C_Read... [09:14:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 26 C3 47 00 22 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 21 02 00 F4 03 04 00 F4 04 C4 66 B6 04 01 00 00 69 94 B0 25 6E CA 61 41 [09:14:08]CommunicateWithHost err = 0 [09:14:08]CheckOFDResponse [09:14:08]1017 (14) - 77093643461234 [09:14:08]1041 (16) - 0000000000871776 [09:14:08]1040 (4) - 139584 [09:14:08]1012 (4) - 20.08.2024 02:52 [09:14:08]1206 (1) - 0 [09:14:08]OFD Sender: Remove packet 139584 [09:14:08]ProducePacketName [09:14:08]name=ofd_packets/00139584 [09:14:08]NVStorageDeleteData [09:14:08]OFD Sender: No OFD packet to send [09:14:08]*** Cut start [09:14:08]*** Partial cut [09:14:08]*** CUTSNS_PIN = 1 [09:14:08]*** CUTSNS_PIN = 0 [09:14:08]*** Brake cut motor [09:14:09]Read from MH i2c: 01 [09:14:09]MH_I2C_Read... [09:14:09]*** Stop cut motor [09:14:09]*** Cut end [09:14:09]Read from MH i2c: 01 07 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: 01 07 00 CE 1C 00 00 00 00 00 FF 0F FF [09:14:09]process_action close_receipt done [09:14:09]requested_data is exist [09:14:09]produce_requested_data [09:14:09]requested_item fm.sn is exist - process it [09:14:09]wFMCommunicate request_size=4 [09:14:09]MH_SAM_APDU [09:14:09]CAPDU: 80 11 00 00 [09:14:09]Write to MH i2c: E2 08 00 CF 1C 80 11 00 00 00 00 00 00 65 [09:14:09]Write i2c OK [09:14:09]MH_I2C_Read... [09:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:09]Read from MH i2c: E2 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 17 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 17 00 CF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BC [09:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:14:09]wFMCommunicate OK [09:14:09]requested_item fd.num is exist - process it [09:14:09]SAM_PROTO_GetFieldsCounters [09:14:09]wFMCommunicate request_size=4 [09:14:09]MH_SAM_APDU [09:14:09]CAPDU: 80 13 00 00 [09:14:09]Write to MH i2c: E2 08 00 D0 1C 80 13 00 00 00 00 00 00 68 [09:14:09]Write i2c OK [09:14:09]MH_I2C_Read... [09:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:09]Read from MH i2c: E2 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 62 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 62 00 D0 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [09:14:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:09]wFMCommunicate OK [09:14:09]SAM_PROTO_GetFieldsCounters done [09:14:09]requested_item shift.num is exist - process it [09:14:09]requested_item shift.opened is exist - process it [09:14:09]req_shift_opened [09:14:09]FM_GetShiftState [09:14:09]SAM_PROTO_GetShiftState [09:14:09]wFMCommunicate request_size=4 [09:14:09]MH_SAM_APDU [09:14:09]CAPDU: 80 13 01 00 [09:14:09]Write to MH i2c: E2 08 00 D1 1C 80 13 01 00 00 00 00 00 6A [09:14:09]Write i2c OK [09:14:09]MH_I2C_Read... [09:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:09]Read from MH i2c: E2 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 0E 00 [09:14:09]MH_I2C_Read... [09:14:09]Read from MH i2c: E2 0E 00 D1 1C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FB [09:14:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:14:09]wFMCommunicate OK [09:14:09]SAM_PROTO_GetShiftState done [09:14:09]FM_GetShiftState done [09:14:09]req_shift_opened done [09:14:09]requested_item shift.open_date is exist - process it [09:14:09]req_shift_open_date [09:14:09]req_shift_open_date done [09:14:09]produce_requested_data done [09:14:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139584,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:14:09]process_action_free close_receipt [09:14:09]json_value_free [09:14:09]json_value_free done [09:14:09]process_json_proto returns [09:14:09]Send response to host [09:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139584,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:14:09]free response buf [09:14:09]execute_script done [09:14:09]execute_script returns [09:14:09]free content buf [09:14:09]Sock 9.Close socket [09:14:09]Sock 9.Thread stoped [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:11]accept exits with 7 [09:17:11]New connection [09:17:11]New thread 3067071844 created [09:17:11]Thread 3067215204 joined [09:17:11]Waiting for new connection... [09:17:11] Sock 7.Parse request [09:17:11]Sock 7.Check first char [09:17:11]Sock 7.First char is OK [09:17:11]request: POST /json_proto HTTP/1.0 [09:17:11]Method: POST [09:17:11]URL: /json_proto [09:17:11]Method is POST - this is cgi request [09:17:11]url: /json_proto [09:17:11]query_string will be loaded in cgi processing [09:17:11]execute_cgi json_proto POST (null) [09:17:11]execute_cgi path=json_proto method=POST [09:17:11]POST find Content-Length [09:17:11]Host: 172.17.45.67:8080 [09:17:11]Content-Length: 677 [09:17:11]Content-Type: application/json [09:17:11] [09:17:11]POST finish read [09:17:11]Found Content-Length = 677 [09:17:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.310, "sum" : 360.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:11]execute_script... [09:17: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)593428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.310, "sum" : 360.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:11]POST & json_proto [09:17:11]process_json_proto [09:17:11]json parsed OK: [09:17:11]protocol is kg_v1.0 [09:17:11]action value=close_receipt [09:17:11]process_action close_receipt [09:17:11]cmd_close_receipt [09:17:11]MH_GetDate [09:17:11]Write to MH i2c: F0 00 00 D2 1C DD [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: F0 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: F0 09 00 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: F0 09 00 D2 1C 00 1A 5F C4 66 5F 7F 2B 66 F8 [09:17:11]GetLastDocTimeStamp 1724145248 [09:17:11]current date 1724145434 [09:17:11]FM_GetShiftState [09:17:11]SAM_PROTO_GetShiftState [09:17:11]wFMCommunicate request_size=4 [09:17:11]MH_SAM_APDU [09:17:11]CAPDU: 80 13 01 00 [09:17:11]Write to MH i2c: E2 08 00 D3 1C 80 13 01 00 00 00 00 00 6C [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:11]Read from MH i2c: E2 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: E2 0E 00 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: E2 0E 00 D3 1C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FD [09:17:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:17:11]wFMCommunicate OK [09:17:11]SAM_PROTO_GetShiftState done [09:17:11]FM_GetShiftState done [09:17:11]opened in 1724113785 [09:17:11]opened+sec_in_day 1724200185 [09:17:11]quantity*price = 36001 [09:17:11]sum+1 = 36003 [09:17:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.23 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 57 20.08.2024 09:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139585 ФПД: 111276477201516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091714&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139585&fm=111276477201516&tin=02508201610067®Number=0000000000092569&sum=36000 [09:17:12]StoreToDocumentArchive [09:17:12]shift 453 fd 139585 [09:17:12]save to /storage/0453/doc_00139585 [09:17:12]save last doc name /storage/0453/doc_00139585 to /storage/kkm_last_doc_name [09:17:12]save OK [09:17:12]Clear old archive folders... [09:17:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:12]tlvbuf is 00D3E500 [09:17:12]SAM_PROTO_ClearQueue [09:17:12]wFMCommunicate request_size=4 [09:17:12]MH_SAM_APDU [09:17:12]CAPDU: 80 09 00 00 [09:17:12]Write to MH i2c: E2 08 00 E0 1C 80 09 00 00 00 00 00 00 6E [09:17:12]Write i2c OK [09:17:12]MH_I2C_Read... [09:17:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:12]Read from MH i2c: E2 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 03 00 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 03 00 E0 1C 00 90 00 70 [09:17:12]RAPDU: 90 00 [09:17:12]wFMCommunicate OK [09:17:12]SAM_PROTO_ClearQueue done [09:17:12]KKMCreateOFDPacket [09:17:12]OFDProtocolAddRootSTLVToBuf [09:17:12]FM_MakeSignedData [09:17:12]FM_MakeSignedData [09:17:12]SAM_PROTO_SignData [09:17:12]wFMCommunicate request_size=4 [09:17:12]MH_SAM_APDU [09:17:12]CAPDU: 80 0D 01 02 [09:17:12]Write to MH i2c: E2 08 00 E1 1C 80 0D 01 02 00 00 00 00 76 [09:17:12]Write i2c OK [09:17:12]MH_I2C_Read... [09:17:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:12]Read from MH i2c: E2 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 03 00 [09:17:12]MH_I2C_Read... [09:17:12]Read from MH i2c: E2 03 00 E1 1C 00 90 00 71 [09:17:12]RAPDU: 90 00 [09:17:12]wFMCommunicate OK [09:17:12]wFMCommunicate request_size=255 [09:17:12]MH_SAM_APDU [09:17:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A2 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1A 5F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 21 02 00 35 04 06 00 65 [09:17:12]Write to MH i2c: E2 02 01 E2 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A2 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1A 5F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 21 02 00 35 04 06 00 65 00 00 20 [09:17:12]Write i2c OK [09:17:12]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 E2 1C 00 90 00 72 [09:17:13]RAPDU: 90 00 [09:17:13]wFMCommunicate OK [09:17:13]wFMCommunicate request_size=10 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 0D 02 02 05 34 92 E5 3C 6C [09:17:13]Write to MH i2c: E2 0D 00 E3 1C 80 0D 02 02 05 00 34 92 E5 3C 6C 00 00 D6 [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 03 00 E3 1C 00 90 00 73 [09:17:13]RAPDU: 90 00 [09:17:13]wFMCommunicate OK [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 0D 03 02 [09:17:13]Write to MH i2c: E2 08 00 E4 1C 80 0D 03 02 00 00 00 00 7B [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 0B 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 0B 00 E4 1C 00 54 FE 57 5A 73 39 4C 54 90 00 CB [09:17:13]RAPDU: 54 FE 57 5A 73 39 4C 54 90 00 [09:17:13]wFMCommunicate OK [09:17:13]SAM_PROTO_SignData done [09:17:13]FM_MakeSignedData done [09:17:13]CreateOFDProtocolMessage [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 11 00 00 [09:17:13]Write to MH i2c: E2 08 00 E5 1C 80 11 00 00 00 00 00 00 7B [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 17 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 17 00 E5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [09:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:13]wFMCommunicate OK [09:17:13]CreateOFDProtocolMessage done [09:17:13]OFDSenderStorePacket 139585 [09:17:13]StoreOFDPacket docnum=139585 [09:17:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 14 8C 07 01 B9 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A2 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1A 5F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 21 02 00 35 04 06 00 65 34 92 E5 3C 6C 54 FE 57 5A 73 39 4C 54 [09:17:13]CheckFolder [09:17:13]dirname=/storage/ofd_packets [09:17:13]CheckFolder done [09:17:13]ProducePacketName [09:17:13]name=ofd_packets/00139585 [09:17:13]NVStorageSaveData ofd_packets/00139585 [09:17:13]File name is /storage/ofd_packets/00139585 [09:17:13]Write 301 bytes [09:17:13]NVStorageSaveData done [09:17:13]OFDSenderStorePacket done [09:17:13]KKMCreateOFDPacket done [09:17:13]NVStorageSaveData kkm_last_timestamp [09:17:13]File name is /storage/kkm_last_timestamp [09:17:13]Write 4 bytes [09:17:13]NVStorageSaveData done [09:17:13]ExternCall_PrintAddStr [09:17:13]wPrintStart [09:17:13]Write to MH i2c: 01 00 00 E6 1C 02 [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: 01 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: 01 07 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: 01 07 00 E6 1C 00 00 00 00 00 FF 0F 17 [09:17:13]RasterBufferAndPrint [09:17:13]line Счет N : (1)593428 [09:17:13]line ИНН: 02508201610067 [09:17:13]line Контрольно-Кассовый Чек [09:17:13]line ПРОДАЖА [09:17:13]line ТРК (МРК, ГНК) : 52 [09:17:13]line Товар: 2710124130 [09:17:13]line Аи-92-К-5 [09:17:13]line 5.310 * 67.80 [09:17:13]line = 360.02 [09:17:13]line НДС 12% НСП 1% [09:17:13]line > о реализуемом товаре [09:17:13]line ОКРУГЛЕНИЕ: -0.02 [09:17:13]line ИТОГО: 360.00 [09:17:13]line Внесено: 360.00 [09:17:13]line СДАЧА: 0.00 [09:17:13]line НСП 1% : 3.19 [09:17:13]line НДС 12% : 38.23 [09:17:13]line Наличными: 360.00 [09:17:13]line Безнал.: 0.00 [09:17:13]line Место: АЗС № 136 "Партнер Нефть" [09:17:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:17:13]line СНО: Общий режим [09:17:13]line Чек 57 20.08.2024 09:17 [09:17:13]line Смена: 453 ФФД: 1.0 [09:17:13]line ЗНМ: 0300000067 [09:17:13]line РНМ: 0000000000092569 [09:17:13]line Версия ККМ: 001 [09:17:13]line ФМ: 0000000000871776 [09:17:13]line ФД: 139585 [09:17:13]line ФПД: 111276477201516 [09:17:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091714&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139585&fm=111276477201516&tin=02508201610067®Number=0000000000092569&sum=36000 [09:17:13]OFD Sender: Processing packet 139585 [packets to send 137, broken 136] [09:17:13]ProducePacketName [09:17:13]name=ofd_packets/00139585 [09:17:13]OFD Sender: To server: pG, [09:17:13]CommunicateWithHost lk.salyk.kg:30040 [09:17:13]ConnectInit lk.salyk.kg [09:17:13]written 0, free lines is 4095 [09:17:14]Write to MH i2c: 01 00 00 11 1D 2E [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: 01 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: 01 07 00 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: 01 07 00 11 1D 00 00 00 00 00 BE 0C FF [09:17:14]RasterBufferAndPrint [09:17:14]line [09:17:14]line [09:17:14]line [09:17:14]line [09:17:14]line [09:17:14]written 0, free lines is 3268 [09:17:14]MH_Cut [09:17:14]Write to MH i2c: D1 01 00 18 1D 01 07 [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: D1 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: D1 01 00 [09:17:14]MH_I2C_Read... [09:17:14]Read from MH i2c: D1 01 00 18 1D 00 06 [09:17:14]Write to MH i2c: 01 00 00 19 1D 36 [09:17:14]Write i2c OK [09:17:14]MH_I2C_Read... [09:17:14]Connected sock=9 [09:17:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 14 8C 07 01 B9 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A2 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1A 5F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 21 02 00 35 04 06 00 65 34 92 E5 3C 6C 54 FE 57 5A 73 39 4C 54 [09:17:14]*** Cut start [09:17:14]*** Partial cut [09:17:14]*** CUTSNS_PIN = 1 [09:17:14]*** CUTSNS_PIN = 0 [09:17:15]*** Brake cut motor [09:17:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 53 20 47 00 88 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 21 02 00 F4 03 04 00 AF 05 C4 66 B6 04 01 00 00 67 8C 0C 4A 80 11 06 09 [09:17:15]CommunicateWithHost err = 0 [09:17:15]CheckOFDResponse [09:17:15]1017 (14) - 77093643461234 [09:17:15]1041 (16) - 0000000000871776 [09:17:15]1040 (4) - 139585 [09:17:15]1012 (4) - 20.08.2024 02:55 [09:17:15]1206 (1) - 0 [09:17:15]OFD Sender: Remove packet 139585 [09:17:15]ProducePacketName [09:17:15]name=ofd_packets/00139585 [09:17:15]NVStorageDeleteData [09:17:15]Read from MH i2c: 01 [09:17:15]MH_I2C_Read... [09:17:15]*** Stop cut motor [09:17:15]*** Cut end [09:17:15]Read from MH i2c: 01 07 00 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: 01 07 00 19 1D 00 00 00 00 00 FF 0F 4B [09:17:15]process_action close_receipt done [09:17:15]requested_data is exist [09:17:15]produce_requested_data [09:17:15]requested_item fm.sn is exist - process it [09:17:15]wFMCommunicate request_size=4 [09:17:15]MH_SAM_APDU [09:17:15]CAPDU: 80 11 00 00 [09:17:15]Write to MH i2c: E2 08 00 1A 1D 80 11 00 00 00 00 00 00 B1 [09:17:15]Write i2c OK [09:17:15]MH_I2C_Read... [09:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:15]Read from MH i2c: E2 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 17 00 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 17 00 1A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 08 [09:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:15]wFMCommunicate OK [09:17:15]requested_item fd.num is exist - process it [09:17:15]SAM_PROTO_GetFieldsCounters [09:17:15]wFMCommunicate request_size=4 [09:17:15]MH_SAM_APDU [09:17:15]CAPDU: 80 13 00 00 [09:17:15]Write to MH i2c: E2 08 00 1B 1D 80 13 00 00 00 00 00 00 B4 [09:17:15]Write i2c OK [09:17:15]MH_I2C_Read... [09:17:15]OFD Sender: No OFD packet to send [09:17:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:15]Read from MH i2c: E2 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 62 00 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 62 00 1B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [09:17:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:15]wFMCommunicate OK [09:17:15]SAM_PROTO_GetFieldsCounters done [09:17:15]requested_item shift.num is exist - process it [09:17:15]requested_item shift.opened is exist - process it [09:17:15]req_shift_opened [09:17:15]FM_GetShiftState [09:17:15]SAM_PROTO_GetShiftState [09:17:15]wFMCommunicate request_size=4 [09:17:15]MH_SAM_APDU [09:17:15]CAPDU: 80 13 01 00 [09:17:15]Write to MH i2c: E2 08 00 1C 1D 80 13 01 00 00 00 00 00 B6 [09:17:15]Write i2c OK [09:17:15]MH_I2C_Read... [09:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:15]Read from MH i2c: E2 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 0E 00 [09:17:15]MH_I2C_Read... [09:17:15]Read from MH i2c: E2 0E 00 1C 1D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 47 [09:17:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:17:15]wFMCommunicate OK [09:17:15]SAM_PROTO_GetShiftState done [09:17:15]FM_GetShiftState done [09:17:15]req_shift_opened done [09:17:15]requested_item shift.open_date is exist - process it [09:17:15]req_shift_open_date [09:17:15]req_shift_open_date done [09:17:15]produce_requested_data done [09:17:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139585,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:17:15]process_action_free close_receipt [09:17:15]json_value_free [09:17:15]json_value_free done [09:17:15]process_json_proto returns [09:17:15]Send response to host [09:17:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139585,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:17:15]free response buf [09:17:15]execute_script done [09:17:15]execute_script returns [09:17:15]free content buf [09:17:15]Sock 7.Close socket [09:17:15]Sock 7.Thread stoped [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:49]accept exits with 10 [09:17:49]New connection [09:17:49]New thread 3067215204 created [09:17:49]Thread 3067071844 joined [09:17:49]Waiting for new connection... [09:17:49] Sock 10.Parse request [09:17:49]Sock 10.Check first char [09:17:49]Sock 10.First char is OK [09:17:49]request: POST /json_proto HTTP/1.0 [09:17:49]Method: POST [09:17:49]URL: /json_proto [09:17:49]Method is POST - this is cgi request [09:17:49]url: /json_proto [09:17:49]query_string will be loaded in cgi processing [09:17:49]execute_cgi json_proto POST (null) [09:17:49]execute_cgi path=json_proto method=POST [09:17:49]POST find Content-Length [09:17:49]Host: 172.17.45.67:8080 [09:17:49]Content-Length: 682 [09:17:49]Content-Type: application/json [09:17:49] [09:17:49]POST finish read [09:17:49]Found Content-Length = 682 [09:17:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:49]execute_script... [09:17: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)593427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:49]POST & json_proto [09:17:49]process_json_proto [09:17:49]json parsed OK: [09:17:49]protocol is kg_v1.0 [09:17:49]action value=close_receipt [09:17:49]process_action close_receipt [09:17:49]cmd_close_receipt [09:17:49]MH_GetDate [09:17:49]Write to MH i2c: F0 00 00 1D 1D 29 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: F0 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: F0 09 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: F0 09 00 1D 1D 00 40 5F C4 66 5F 7F 2B 66 6A [09:17:49]GetLastDocTimeStamp 1724145434 [09:17:49]current date 1724145472 [09:17:49]FM_GetShiftState [09:17:49]SAM_PROTO_GetShiftState [09:17:49]wFMCommunicate request_size=4 [09:17:49]MH_SAM_APDU [09:17:49]CAPDU: 80 13 01 00 [09:17:49]Write to MH i2c: E2 08 00 1E 1D 80 13 01 00 00 00 00 00 B8 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:49]Read from MH i2c: E2 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 0E 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: E2 0E 00 1E 1D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 49 [09:17:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:17:49]wFMCommunicate OK [09:17:49]SAM_PROTO_GetShiftState done [09:17:49]FM_GetShiftState done [09:17:49]opened in 1724113785 [09:17:49]opened+sec_in_day 1724200185 [09:17:49]quantity*price = 200043 [09:17:49]sum+1 = 200044 [09:17:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 58 20.08.2024 09:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139586 ФПД: 16969672107539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091752&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139586&fm=16969672107539&tin=02508201610067®Number=0000000000092569&sum=200000 [09:17:50]StoreToDocumentArchive [09:17:50]shift 453 fd 139586 [09:17:50]save to /storage/0453/doc_00139586 [09:17:50]save last doc name /storage/0453/doc_00139586 to /storage/kkm_last_doc_name [09:17:50]save OK [09:17:50]Clear old archive folders... [09:17:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:50]tlvbuf is 00D82D60 [09:17:50]SAM_PROTO_ClearQueue [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 09 00 00 [09:17:50]Write to MH i2c: E2 08 00 2B 1D 80 09 00 00 00 00 00 00 BA [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 03 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 03 00 2B 1D 00 90 00 BC [09:17:50]RAPDU: 90 00 [09:17:50]wFMCommunicate OK [09:17:50]SAM_PROTO_ClearQueue done [09:17:50]KKMCreateOFDPacket [09:17:50]OFDProtocolAddRootSTLVToBuf [09:17:50]FM_MakeSignedData [09:17:50]FM_MakeSignedData [09:17:50]SAM_PROTO_SignData [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 0D 01 02 [09:17:50]Write to MH i2c: E2 08 00 2C 1D 80 0D 01 02 00 00 00 00 C2 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 03 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 03 00 2C 1D 00 90 00 BD [09:17:50]RAPDU: 90 00 [09:17:50]wFMCommunicate OK [09:17:50]wFMCommunicate request_size=255 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 40 5F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 21 02 00 35 04 06 00 0F [09:17:50]Write to MH i2c: E2 02 01 2D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 40 5F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 21 02 00 35 04 06 00 0F 00 00 40 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]OFD Sender: No OFD packet to send [09:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 03 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 03 00 2D 1D 00 90 00 BE [09:17:50]RAPDU: 90 00 [09:17:50]wFMCommunicate OK [09:17:50]wFMCommunicate request_size=10 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 0D 02 02 05 6F 0F 47 26 13 [09:17:50]Write to MH i2c: E2 0D 00 2E 1D 80 0D 02 02 05 00 6F 0F 47 26 13 00 00 CD [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 03 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 03 00 2E 1D 00 90 00 BF [09:17:50]RAPDU: 90 00 [09:17:50]wFMCommunicate OK [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 0D 03 02 [09:17:50]Write to MH i2c: E2 08 00 2F 1D 80 0D 03 02 00 00 00 00 C7 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 0B 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 0B 00 2F 1D 00 FE 9A FE 46 A3 B4 1E 34 90 00 4D [09:17:50]RAPDU: FE 9A FE 46 A3 B4 1E 34 90 00 [09:17:50]wFMCommunicate OK [09:17:50]SAM_PROTO_SignData done [09:17:50]FM_MakeSignedData done [09:17:50]CreateOFDProtocolMessage [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 11 00 00 [09:17:50]Write to MH i2c: E2 08 00 30 1D 80 11 00 00 00 00 00 00 C7 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 17 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 17 00 30 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [09:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:50]wFMCommunicate OK [09:17:50]CreateOFDProtocolMessage done [09:17:50]OFDSenderStorePacket 139586 [09:17:50]StoreOFDPacket docnum=139586 [09:17:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 08 6A 07 01 50 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 40 5F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 21 02 00 35 04 06 00 0F 6F 0F 47 26 13 FE 9A FE 46 A3 B4 1E 34 [09:17:50]CheckFolder [09:17:50]dirname=/storage/ofd_packets [09:17:50]CheckFolder done [09:17:50]ProducePacketName [09:17:50]name=ofd_packets/00139586 [09:17:50]NVStorageSaveData ofd_packets/00139586 [09:17:50]File name is /storage/ofd_packets/00139586 [09:17:50]Write 301 bytes [09:17:50]NVStorageSaveData done [09:17:50]OFDSenderStorePacket done [09:17:50]KKMCreateOFDPacket done [09:17:50]NVStorageSaveData kkm_last_timestamp [09:17:50]File name is /storage/kkm_last_timestamp [09:17:50]Write 4 bytes [09:17:50]NVStorageSaveData done [09:17:50]ExternCall_PrintAddStr [09:17:50]wPrintStart [09:17:50]Write to MH i2c: 01 00 00 31 1D 4E [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 07 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 07 00 31 1D 00 00 00 00 00 FF 0F 63 [09:17:50]RasterBufferAndPrint [09:17:50]line Счет N : (1)593427 [09:17:50]line ИНН: 02508201610067 [09:17:50]line Контрольно-Кассовый Чек [09:17:50]line ПРОДАЖА [09:17:50]line ТРК (МРК, ГНК) : 41 [09:17:50]line Товар: 2710124500 [09:17:50]line Аи-95-К-5 [09:17:50]line 26.960 * 74.20 [09:17:50]line = 2000.43 [09:17:50]line НДС 12% НСП 1% [09:17:50]line > о реализуемом товаре [09:17:50]line ОКРУГЛЕНИЕ: -0.43 [09:17:50]line ИТОГО: 2000.00 [09:17:50]line Внесено: 2000.00 [09:17:50]line СДАЧА: 0.00 [09:17:50]line НСП 1% : 17.70 [09:17:50]line НДС 12% : 212.43 [09:17:50]line Наличными: 2000.00 [09:17:50]line Безнал.: 0.00 [09:17:50]line Место: АЗС № 136 "Партнер Нефть" [09:17:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:17:50]line СНО: Общий режим [09:17:50]line Чек 58 20.08.2024 09:17 [09:17:50]line Смена: 453 ФФД: 1.0 [09:17:50]line ЗНМ: 0300000067 [09:17:50]line РНМ: 0000000000092569 [09:17:50]line Версия ККМ: 001 [09:17:50]line ФМ: 0000000000871776 [09:17:50]line ФД: 139586 [09:17:50]line ФПД: 16969672107539 [09:17:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T091752&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139586&fm=16969672107539&tin=02508201610067®Number=0000000000092569&sum=200000 [09:17:51]OFD Sender: Processing packet 139586 [packets to send 137, broken 136] [09:17:51]ProducePacketName [09:17:51]name=ofd_packets/00139586 [09:17:51]OFD Sender: To server: pG, [09:17:51]CommunicateWithHost lk.salyk.kg:30040 [09:17:51]ConnectInit lk.salyk.kg [09:17:51]written 0, free lines is 4095 [09:17:51]Connected sock=7 [09:17:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 08 6A 07 01 50 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 40 5F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 21 02 00 35 04 06 00 0F 6F 0F 47 26 13 FE 9A FE 46 A3 B4 1E 34 [09:17:51]Write to MH i2c: 01 00 00 5C 1D 79 [09:17:51]Write i2c OK [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: 01 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: 01 07 00 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: 01 07 00 5C 1D 00 00 00 00 00 C8 0C 54 [09:17:51]RasterBufferAndPrint [09:17:51]line [09:17:51]line [09:17:51]line [09:17:51]line [09:17:51]line [09:17:51]written 0, free lines is 3278 [09:17:51]MH_Cut [09:17:51]Write to MH i2c: D1 01 00 63 1D 01 52 [09:17:51]Write i2c OK [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: D1 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: D1 01 00 [09:17:51]MH_I2C_Read... [09:17:51]Read from MH i2c: D1 01 00 63 1D 00 51 [09:17:51]Write to MH i2c: 01 00 00 64 1D 81 [09:17:51]Write i2c OK [09:17:51]MH_I2C_Read... [09:17:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3B ED 47 00 95 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 21 02 00 F4 03 04 00 D3 05 C4 66 B6 04 01 00 00 9E 73 3F D4 8E 49 D7 0F [09:17:51]CommunicateWithHost err = 0 [09:17:51]CheckOFDResponse [09:17:51]1017 (14) - 77093643461234 [09:17:51]1041 (16) - 0000000000871776 [09:17:51]1040 (4) - 139586 [09:17:51]1012 (4) - 20.08.2024 02:56 [09:17:51]1206 (1) - 0 [09:17:51]OFD Sender: Remove packet 139586 [09:17:51]ProducePacketName [09:17:51]name=ofd_packets/00139586 [09:17:51]NVStorageDeleteData [09:17:52]OFD Sender: No OFD packet to send [09:17:52]*** Cut start [09:17:52]*** Partial cut [09:17:52]*** CUTSNS_PIN = 1 [09:17:52]*** CUTSNS_PIN = 0 [09:17:52]*** Brake cut motor [09:17:53]Read from MH i2c: 01 [09:17:53]MH_I2C_Read... [09:17:53]*** Stop cut motor [09:17:53]*** Cut end [09:17:53]Read from MH i2c: 01 07 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: 01 07 00 64 1D 00 00 00 00 00 FF 0F 96 [09:17:53]process_action close_receipt done [09:17:53]requested_data is exist [09:17:53]produce_requested_data [09:17:53]requested_item fm.sn is exist - process it [09:17:53]wFMCommunicate request_size=4 [09:17:53]MH_SAM_APDU [09:17:53]CAPDU: 80 11 00 00 [09:17:53]Write to MH i2c: E2 08 00 65 1D 80 11 00 00 00 00 00 00 FC [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:53]Read from MH i2c: E2 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 17 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 17 00 65 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [09:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:53]wFMCommunicate OK [09:17:53]requested_item fd.num is exist - process it [09:17:53]SAM_PROTO_GetFieldsCounters [09:17:53]wFMCommunicate request_size=4 [09:17:53]MH_SAM_APDU [09:17:53]CAPDU: 80 13 00 00 [09:17:53]Write to MH i2c: E2 08 00 66 1D 80 13 00 00 00 00 00 00 FF [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:53]Read from MH i2c: E2 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 62 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 62 00 66 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 42 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [09:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 42 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:53]wFMCommunicate OK [09:17:53]SAM_PROTO_GetFieldsCounters done [09:17:53]requested_item shift.num is exist - process it [09:17:53]requested_item shift.opened is exist - process it [09:17:53]req_shift_opened [09:17:53]FM_GetShiftState [09:17:53]SAM_PROTO_GetShiftState [09:17:53]wFMCommunicate request_size=4 [09:17:53]MH_SAM_APDU [09:17:53]CAPDU: 80 13 01 00 [09:17:53]Write to MH i2c: E2 08 00 67 1D 80 13 01 00 00 00 00 00 01 [09:17:53]Write i2c OK [09:17:53]MH_I2C_Read... [09:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:53]Read from MH i2c: E2 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 0E 00 [09:17:53]MH_I2C_Read... [09:17:53]Read from MH i2c: E2 0E 00 67 1D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 92 [09:17:53]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:17:53]wFMCommunicate OK [09:17:53]SAM_PROTO_GetShiftState done [09:17:53]FM_GetShiftState done [09:17:53]req_shift_opened done [09:17:53]requested_item shift.open_date is exist - process it [09:17:53]req_shift_open_date [09:17:53]req_shift_open_date done [09:17:53]produce_requested_data done [09:17:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139586,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:17:53]process_action_free close_receipt [09:17:53]json_value_free [09:17:53]json_value_free done [09:17:53]process_json_proto returns [09:17:53]Send response to host [09:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139586,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:17:53]free response buf [09:17:53]execute_script done [09:17:53]execute_script returns [09:17:53]free content buf [09:17:53]Sock 10.Close socket [09:17:53]Sock 10.Thread stoped [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:19]int [09:22:19]Write to MH i2c: 01 00 00 68 1D 85 [09:22:19]*** FLAG_PRN_KEY set [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 68 1D 00 08 00 00 00 FF 0F A2 [09:22:19]state=0 [09:22:19]Key pressed [09:22:19]Feed [09:22:19]Write to MH i2c: D8 00 00 69 1D 5D [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: D8 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: D8 01 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: D8 01 00 69 1D 00 5E [09:22:19]int [09:22:19]Write to MH i2c: 01 00 00 6A 1D 87 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 6A 1D 00 48 00 00 00 3C 00 12 [09:22:19]state=2 [09:22:19]Key pressed [09:22:19]int [09:22:19]Write to MH i2c: 01 00 00 6B 1D 88 [09:22:19]*** FLAG_PRN_KEY reset [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 6B 1D 00 00 00 00 00 F6 0F 94 [09:22:19]state=2 [09:22:19]Stop feed [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:22]accept exits with 9 [09:23:22]New connection [09:23:22]New thread 3067071844 created [09:23:22]Thread 3067215204 joined [09:23:22]Waiting for new connection... [09:23:22] Sock 9.Parse request [09:23:22]Sock 9.Check first char [09:23:22]Sock 9.First char is OK [09:23:22]request: POST /json_proto HTTP/1.0 [09:23:22]Method: POST [09:23:22]URL: /json_proto [09:23:22]Method is POST - this is cgi request [09:23:22]url: /json_proto [09:23:22]query_string will be loaded in cgi processing [09:23:22]execute_cgi json_proto POST (null) [09:23:22]execute_cgi path=json_proto method=POST [09:23:22]POST find Content-Length [09:23:22]Host: 172.17.45.67:8080 [09:23:22]Content-Length: 687 [09:23:22]Content-Type: application/json [09:23:22] [09:23:22]POST finish read [09:23:22]Found Content-Length = 687 [09:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:23:22]execute_script... [09:23: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)593429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:23:22]POST & json_proto [09:23:22]process_json_proto [09:23:22]json parsed OK: [09:23:22]protocol is kg_v1.0 [09:23:22]action value=close_receipt [09:23:22]process_action close_receipt [09:23:22]cmd_close_receipt [09:23:22]MH_GetDate [09:23:22]Write to MH i2c: F0 00 00 6C 1D 78 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: F0 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: F0 09 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: F0 09 00 6C 1D 00 8D 60 C4 66 5F 7F 2B 66 07 [09:23:22]GetLastDocTimeStamp 1724145472 [09:23:22]current date 1724145805 [09:23:22]FM_GetShiftState [09:23:22]SAM_PROTO_GetShiftState [09:23:22]wFMCommunicate request_size=4 [09:23:22]MH_SAM_APDU [09:23:22]CAPDU: 80 13 01 00 [09:23:22]Write to MH i2c: E2 08 00 6D 1D 80 13 01 00 00 00 00 00 07 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 0E 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 0E 00 6D 1D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 98 [09:23:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:23:22]wFMCommunicate OK [09:23:22]SAM_PROTO_GetShiftState done [09:23:22]FM_GetShiftState done [09:23:22]opened in 1724113785 [09:23:22]opened+sec_in_day 1724200185 [09:23:22]quantity*price = 100050 [09:23:22]sum+1 = 100052 [09:23: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 59 20.08.2024 09:23 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139587 ФПД: 132562976976128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T092325&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139587&fm=132562976976128&tin=02508201610067®Number=0000000000092569&sum=100000 [09:23:24]StoreToDocumentArchive [09:23:24]shift 453 fd 139587 [09:23:24]save to /storage/0453/doc_00139587 [09:23:24]save last doc name /storage/0453/doc_00139587 to /storage/kkm_last_doc_name [09:23:24]save OK [09:23:24]Clear old archive folders... [09:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:23:24]tlvbuf is 00D44C90 [09:23:24]SAM_PROTO_ClearQueue [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 09 00 00 [09:23:24]Write to MH i2c: E2 08 00 7A 1D 80 09 00 00 00 00 00 00 09 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 7A 1D 00 90 00 0B [09:23:24]RAPDU: 90 00 [09:23:24]wFMCommunicate OK [09:23:24]SAM_PROTO_ClearQueue done [09:23:24]KKMCreateOFDPacket [09:23:24]OFDProtocolAddRootSTLVToBuf [09:23:24]FM_MakeSignedData [09:23:24]FM_MakeSignedData [09:23:24]SAM_PROTO_SignData [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 0D 01 02 [09:23:24]Write to MH i2c: E2 08 00 7B 1D 80 0D 01 02 00 00 00 00 11 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 7B 1D 00 90 00 0C [09:23:24]RAPDU: 90 00 [09:23:24]wFMCommunicate OK [09:23:24]wFMCommunicate request_size=255 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 3B 00 00 00 F4 03 04 00 8D 60 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 21 02 00 35 04 06 00 [09:23:24]Write to MH i2c: E2 02 01 7C 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 3B 00 00 00 F4 03 04 00 8D 60 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 21 02 00 35 04 06 00 00 00 06 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 7C 1D 00 90 00 0D [09:23:24]RAPDU: 90 00 [09:23:24]wFMCommunicate OK [09:23:24]wFMCommunicate request_size=11 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 0D 02 02 06 78 90 B9 27 2D 00 [09:23:24]Write to MH i2c: E2 0E 00 7D 1D 80 0D 02 02 06 00 78 90 B9 27 2D 00 00 00 35 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 7D 1D 00 90 00 0E [09:23:24]RAPDU: 90 00 [09:23:24]wFMCommunicate OK [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 0D 03 02 [09:23:24]Write to MH i2c: E2 08 00 7E 1D 80 0D 03 02 00 00 00 00 16 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0B 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0B 00 7E 1D 00 A1 C8 4A 62 1D 95 9E 56 90 00 D2 [09:23:24]RAPDU: A1 C8 4A 62 1D 95 9E 56 90 00 [09:23:24]wFMCommunicate OK [09:23:24]SAM_PROTO_SignData done [09:23:24]FM_MakeSignedData done [09:23:24]CreateOFDProtocolMessage [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 11 00 00 [09:23:24]Write to MH i2c: E2 08 00 7F 1D 80 11 00 00 00 00 00 00 16 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 17 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 17 00 7F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [09:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:23:24]wFMCommunicate OK [09:23:24]CreateOFDProtocolMessage done [09:23:24]OFDSenderStorePacket 139587 [09:23:24]StoreOFDPacket docnum=139587 [09:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 94 FD 08 01 84 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 3B 00 00 00 F4 03 04 00 8D 60 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 21 02 00 35 04 06 00 78 90 B9 27 2D 00 A1 C8 4A 62 1D 95 9E 56 [09:23:24]CheckFolder [09:23:24]dirname=/storage/ofd_packets [09:23:24]CheckFolder done [09:23:24]ProducePacketName [09:23:24]name=ofd_packets/00139587 [09:23:24]NVStorageSaveData ofd_packets/00139587 [09:23:24]File name is /storage/ofd_packets/00139587 [09:23:24]Write 302 bytes [09:23:24]NVStorageSaveData done [09:23:24]OFDSenderStorePacket done [09:23:24]KKMCreateOFDPacket done [09:23:24]NVStorageSaveData kkm_last_timestamp [09:23:24]File name is /storage/kkm_last_timestamp [09:23:24]Write 4 bytes [09:23:24]NVStorageSaveData done [09:23:24]ExternCall_PrintAddStr [09:23:24]wPrintStart [09:23:24]Write to MH i2c: 01 00 00 80 1D 9D [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 07 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 07 00 80 1D 00 00 00 00 00 FF 0F B2 [09:23:24]RasterBufferAndPrint [09:23:24]line Счет N : (1)593429 [09:23:24]line ИНН: 02508201610067 [09:23:24]line Контрольно-Кассовый Чек [09:23:24]line ПРОДАЖА [09:23:24]line ТРК (МРК, ГНК) : 44 [09:23:24]line Товар: 2710194210 [09:23:24]line ДТ(л)-К-5 [09:23:24]line 13.130 * 76.20 [09:23:24]line = 1000.51 [09:23:24]line НДС 12% НСП 1% [09:23:24]line > о реализуемом товаре [09:23:24]line ОКРУГЛЕНИЕ: -0.51 [09:23:24]line ИТОГО: 1000.00 [09:23:24]line Внесено: 1000.00 [09:23:24]line СДАЧА: 0.00 [09:23:24]line НСП 1% : 8.85 [09:23:24]line НДС 12% : 106.25 [09:23:24]line Наличными: 1000.00 [09:23:24]line Безнал.: 0.00 [09:23:24]line Место: АЗС № 136 "Партнер Нефть" [09:23:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:23:24]line СНО: Общий режим [09:23:24]line Чек 59 20.08.2024 09:23 [09:23:24]line Смена: 453 ФФД: 1.0 [09:23:24]line ЗНМ: 0300000067 [09:23:24]line РНМ: 0000000000092569 [09:23:24]line Версия ККМ: 001 [09:23:24]line ФМ: 0000000000871776 [09:23:24]line ФД: 139587 [09:23:24]line ФПД: 132562976976128 [09:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T092325&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139587&fm=132562976976128&tin=02508201610067®Number=0000000000092569&sum=100000 [09:23:24]OFD Sender: Processing packet 139587 [packets to send 137, broken 136] [09:23:24]ProducePacketName [09:23:24]name=ofd_packets/00139587 [09:23:24]OFD Sender: To server: pG, [09:23:24]CommunicateWithHost lk.salyk.kg:30040 [09:23:24]ConnectInit lk.salyk.kg [09:23:24]written 0, free lines is 4095 [09:23:25]Connected sock=10 [09:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 94 FD 08 01 84 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 3B 00 00 00 F4 03 04 00 8D 60 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 21 02 00 35 04 06 00 78 90 B9 27 2D 00 A1 C8 4A 62 1D 95 9E 56 [09:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F3 C7 47 00 2E 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 21 02 00 F4 03 04 00 21 07 C4 66 B6 04 01 00 00 99 11 91 E9 1D 55 51 A9 [09:23:25]CommunicateWithHost err = 0 [09:23:25]CheckOFDResponse [09:23:25]1017 (14) - 77093643461234 [09:23:25]1041 (16) - 0000000000871776 [09:23:25]1040 (4) - 139587 [09:23:25]1012 (4) - 20.08.2024 03:01 [09:23:25]1206 (1) - 0 [09:23:25]OFD Sender: Remove packet 139587 [09:23:25]ProducePacketName [09:23:25]name=ofd_packets/00139587 [09:23:25]NVStorageDeleteData [09:23:25]Write to MH i2c: 01 00 00 AB 1D C8 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 07 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 07 00 AB 1D 00 00 00 00 00 C8 0C A3 [09:23:25]RasterBufferAndPrint [09:23:25]line [09:23:25]line [09:23:25]line [09:23:25]line [09:23:25]line [09:23:25]written 0, free lines is 3278 [09:23:25]MH_Cut [09:23:25]Write to MH i2c: D1 01 00 B2 1D 01 A1 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: D1 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: D1 01 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: D1 01 00 B2 1D 00 A0 [09:23:25]Write to MH i2c: 01 00 00 B3 1D D0 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]OFD Sender: No OFD packet to send [09:23:26]*** Cut start [09:23:26]*** Partial cut [09:23:26]*** CUTSNS_PIN = 1 [09:23:26]*** CUTSNS_PIN = 0 [09:23:26]*** Brake cut motor [09:23:26]Read from MH i2c: 01 [09:23:26]MH_I2C_Read... [09:23:26]*** Stop cut motor [09:23:26]*** Cut end [09:23:26]Read from MH i2c: 01 07 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: 01 07 00 B3 1D 00 00 00 00 00 FF 0F E5 [09:23:26]process_action close_receipt done [09:23:26]requested_data is exist [09:23:26]produce_requested_data [09:23:26]requested_item fm.sn is exist - process it [09:23:26]wFMCommunicate request_size=4 [09:23:26]MH_SAM_APDU [09:23:26]CAPDU: 80 11 00 00 [09:23:26]Write to MH i2c: E2 08 00 B4 1D 80 11 00 00 00 00 00 00 4B [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:26]Read from MH i2c: E2 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 17 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 17 00 B4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [09:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:23:26]wFMCommunicate OK [09:23:26]requested_item fd.num is exist - process it [09:23:26]SAM_PROTO_GetFieldsCounters [09:23:26]wFMCommunicate request_size=4 [09:23:26]MH_SAM_APDU [09:23:26]CAPDU: 80 13 00 00 [09:23:26]Write to MH i2c: E2 08 00 B5 1D 80 13 00 00 00 00 00 00 4E [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:26]Read from MH i2c: E2 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 62 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 62 00 B5 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 43 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [09:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 43 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:26]wFMCommunicate OK [09:23:26]SAM_PROTO_GetFieldsCounters done [09:23:26]requested_item shift.num is exist - process it [09:23:26]requested_item shift.opened is exist - process it [09:23:26]req_shift_opened [09:23:26]FM_GetShiftState [09:23:26]SAM_PROTO_GetShiftState [09:23:26]wFMCommunicate request_size=4 [09:23:26]MH_SAM_APDU [09:23:26]CAPDU: 80 13 01 00 [09:23:26]Write to MH i2c: E2 08 00 B6 1D 80 13 01 00 00 00 00 00 50 [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:26]Read from MH i2c: E2 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 0E 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 0E 00 B6 1D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E1 [09:23:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:23:26]wFMCommunicate OK [09:23:26]SAM_PROTO_GetShiftState done [09:23:26]FM_GetShiftState done [09:23:26]req_shift_opened done [09:23:26]requested_item shift.open_date is exist - process it [09:23:26]req_shift_open_date [09:23:26]req_shift_open_date done [09:23:26]produce_requested_data done [09:23:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139587,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:23:26]process_action_free close_receipt [09:23:26]json_value_free [09:23:26]json_value_free done [09:23:26]process_json_proto returns [09:23:26]Send response to host [09:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139587,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:23:26]free response buf [09:23:26]execute_script done [09:23:26]execute_script returns [09:23:26]free content buf [09:23:26]Sock 9.Close socket [09:23:26]Sock 9.Thread stoped [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:47]accept exits with 7 [09:25:47]New connection [09:25:47]New thread 3067215204 created [09:25:47]Thread 3067071844 joined [09:25:47]Waiting for new connection... [09:25:47] Sock 7.Parse request [09:25:47]Sock 7.Check first char [09:25:47]Sock 7.First char is OK [09:25:47]request: POST /json_proto HTTP/1.0 [09:25:47]Method: POST [09:25:47]URL: /json_proto [09:25:47]Method is POST - this is cgi request [09:25:47]url: /json_proto [09:25:47]query_string will be loaded in cgi processing [09:25:47]execute_cgi json_proto POST (null) [09:25:47]execute_cgi path=json_proto method=POST [09:25:47]POST find Content-Length [09:25:47]Host: 172.17.45.67:8080 [09:25:47]Content-Length: 677 [09:25:47]Content-Type: application/json [09:25:47] [09:25:47]POST finish read [09:25:47]Found Content-Length = 677 [09:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:47]execute_script... [09:25:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:47]POST & json_proto [09:25:47]process_json_proto [09:25:47]json parsed OK: [09:25:47]protocol is kg_v1.0 [09:25:47]action value=close_receipt [09:25:47]process_action close_receipt [09:25:47]cmd_close_receipt [09:25:47]MH_GetDate [09:25:47]Write to MH i2c: F0 00 00 B7 1D C3 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: F0 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: F0 09 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: F0 09 00 B7 1D 00 1E 61 C4 66 5F 7F 2B 66 E4 [09:25:47]GetLastDocTimeStamp 1724145805 [09:25:47]current date 1724145950 [09:25:47]FM_GetShiftState [09:25:47]SAM_PROTO_GetShiftState [09:25:47]wFMCommunicate request_size=4 [09:25:47]MH_SAM_APDU [09:25:47]CAPDU: 80 13 01 00 [09:25:47]Write to MH i2c: E2 08 00 B8 1D 80 13 01 00 00 00 00 00 52 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 0E 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 0E 00 B8 1D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E3 [09:25:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:25:48]wFMCommunicate OK [09:25:48]SAM_PROTO_GetShiftState done [09:25:48]FM_GetShiftState done [09:25:48]opened in 1724113785 [09:25:48]opened+sec_in_day 1724200185 [09:25:48]quantity*price = 40002 [09:25:48]sum+1 = 40003 [09:25:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 60 20.08.2024 09:25 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139588 ФПД: 180937510542840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T092550&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139588&fm=180937510542840&tin=02508201610067®Number=0000000000092569&sum=40000 [09:25:49]StoreToDocumentArchive [09:25:49]shift 453 fd 139588 [09:25:49]save to /storage/0453/doc_00139588 [09:25:49]save last doc name /storage/0453/doc_00139588 to /storage/kkm_last_doc_name [09:25:49]save OK [09:25:49]Clear old archive folders... [09:25:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:49]tlvbuf is 00D3E8B0 [09:25:49]SAM_PROTO_ClearQueue [09:25:49]wFMCommunicate request_size=4 [09:25:49]MH_SAM_APDU [09:25:49]CAPDU: 80 09 00 00 [09:25:49]Write to MH i2c: E2 08 00 C5 1D 80 09 00 00 00 00 00 00 54 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 C5 1D 00 90 00 56 [09:25:49]RAPDU: 90 00 [09:25:49]wFMCommunicate OK [09:25:49]SAM_PROTO_ClearQueue done [09:25:49]KKMCreateOFDPacket [09:25:49]OFDProtocolAddRootSTLVToBuf [09:25:49]FM_MakeSignedData [09:25:49]FM_MakeSignedData [09:25:49]SAM_PROTO_SignData [09:25:49]wFMCommunicate request_size=4 [09:25:49]MH_SAM_APDU [09:25:49]CAPDU: 80 0D 01 02 [09:25:49]Write to MH i2c: E2 08 00 C6 1D 80 0D 01 02 00 00 00 00 5C [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 C6 1D 00 90 00 57 [09:25:49]RAPDU: 90 00 [09:25:49]wFMCommunicate OK [09:25:49]wFMCommunicate request_size=255 [09:25:49]MH_SAM_APDU [09:25:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 21 02 00 35 04 06 00 A4 [09:25:49]Write to MH i2c: E2 02 01 C7 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 21 02 00 35 04 06 00 A4 00 00 80 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 C7 1D 00 90 00 58 [09:25:49]RAPDU: 90 00 [09:25:49]wFMCommunicate OK [09:25:49]wFMCommunicate request_size=10 [09:25:49]MH_SAM_APDU [09:25:49]CAPDU: 80 0D 02 02 05 8F CC 0A DD F8 [09:25:49]Write to MH i2c: E2 0D 00 C8 1D 80 0D 02 02 05 00 8F CC 0A DD F8 00 00 A3 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 C8 1D 00 90 00 59 [09:25:49]RAPDU: 90 00 [09:25:49]wFMCommunicate OK [09:25:49]wFMCommunicate request_size=4 [09:25:49]MH_SAM_APDU [09:25:49]CAPDU: 80 0D 03 02 [09:25:49]Write to MH i2c: E2 08 00 C9 1D 80 0D 03 02 00 00 00 00 61 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 0B 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 0B 00 C9 1D 00 F3 3B 0D 45 E1 06 C7 5D 90 00 ED [09:25:49]RAPDU: F3 3B 0D 45 E1 06 C7 5D 90 00 [09:25:49]wFMCommunicate OK [09:25:49]SAM_PROTO_SignData done [09:25:49]FM_MakeSignedData done [09:25:49]CreateOFDProtocolMessage [09:25:49]wFMCommunicate request_size=4 [09:25:49]MH_SAM_APDU [09:25:49]CAPDU: 80 11 00 00 [09:25:49]Write to MH i2c: E2 08 00 CA 1D 80 11 00 00 00 00 00 00 61 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 17 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 17 00 CA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [09:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:25:49]wFMCommunicate OK [09:25:49]CreateOFDProtocolMessage done [09:25:49]OFDSenderStorePacket 139588 [09:25:49]StoreOFDPacket docnum=139588 [09:25:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 42 07 01 CA EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 21 02 00 35 04 06 00 A4 8F CC 0A DD F8 F3 3B 0D 45 E1 06 C7 5D [09:25:49]CheckFolder [09:25:49]dirname=/storage/ofd_packets [09:25:49]CheckFolder done [09:25:49]ProducePacketName [09:25:49]name=ofd_packets/00139588 [09:25:49]NVStorageSaveData ofd_packets/00139588 [09:25:49]File name is /storage/ofd_packets/00139588 [09:25:49]Write 301 bytes [09:25:49]NVStorageSaveData done [09:25:49]OFDSenderStorePacket done [09:25:49]KKMCreateOFDPacket done [09:25:49]NVStorageSaveData kkm_last_timestamp [09:25:49]File name is /storage/kkm_last_timestamp [09:25:49]Write 4 bytes [09:25:49]NVStorageSaveData done [09:25:49]ExternCall_PrintAddStr [09:25:49]wPrintStart [09:25:49]Write to MH i2c: 01 00 00 CB 1D E8 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: 01 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: 01 07 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: 01 07 00 CB 1D 00 00 00 00 00 FF 0F FD [09:25:49]RasterBufferAndPrint [09:25:49]line Счет N : (1)593430 [09:25:49]line ИНН: 02508201610067 [09:25:49]line Контрольно-Кассовый Чек [09:25:49]line ПРОДАЖА [09:25:49]line ТРК (МРК, ГНК) : 32 [09:25:49]line Товар: 2710124130 [09:25:49]line Аи-92-К-5 [09:25:49]line 5.900 * 67.80 [09:25:49]line = 400.02 [09:25:49]line НДС 12% НСП 1% [09:25:49]line > о реализуемом товаре [09:25:49]line ОКРУГЛЕНИЕ: -0.02 [09:25:49]line ИТОГО: 400.00 [09:25:49]line Внесено: 400.00 [09:25:49]line СДАЧА: 0.00 [09:25:49]line НСП 1% : 3.54 [09:25:49]line НДС 12% : 42.48 [09:25:49]line Наличными: 400.00 [09:25:49]line Безнал.: 0.00 [09:25:49]line Место: АЗС № 136 "Партнер Нефть" [09:25:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:25:49]line СНО: Общий режим [09:25:49]line Чек 60 20.08.2024 09:25 [09:25:49]line Смена: 453 ФФД: 1.0 [09:25:49]line ЗНМ: 0300000067 [09:25:49]line РНМ: 0000000000092569 [09:25:49]line Версия ККМ: 001 [09:25:49]line ФМ: 0000000000871776 [09:25:49]line ФД: 139588 [09:25:49]line ФПД: 180937510542840 [09:25:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T092550&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139588&fm=180937510542840&tin=02508201610067®Number=0000000000092569&sum=40000 [09:25:50]OFD Sender: Processing packet 139588 [packets to send 137, broken 136] [09:25:50]ProducePacketName [09:25:50]name=ofd_packets/00139588 [09:25:50]OFD Sender: To server: pG, [09:25:50]CommunicateWithHost lk.salyk.kg:30040 [09:25:50]ConnectInit lk.salyk.kg [09:25:50]written 0, free lines is 4095 [09:25:50]Connected sock=10 [09:25:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 42 07 01 CA EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 21 02 00 35 04 06 00 A4 8F CC 0A DD F8 F3 3B 0D 45 E1 06 C7 5D [09:25:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 13 36 47 00 73 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 21 02 00 F4 03 04 00 B2 07 C4 66 B6 04 01 00 00 55 43 97 D7 F9 D4 2E 5A [09:25:50]CommunicateWithHost err = 0 [09:25:50]CheckOFDResponse [09:25:50]1017 (14) - 77093643461234 [09:25:50]1041 (16) - 0000000000871776 [09:25:50]1040 (4) - 139588 [09:25:50]1012 (4) - 20.08.2024 03:04 [09:25:50]1206 (1) - 0 [09:25:50]OFD Sender: Remove packet 139588 [09:25:50]ProducePacketName [09:25:50]name=ofd_packets/00139588 [09:25:50]NVStorageDeleteData [09:25:50]Write to MH i2c: 01 00 00 F6 1D 13 [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: 01 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: 01 07 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: 01 07 00 F6 1D 00 00 00 00 00 BF 0C E5 [09:25:50]RasterBufferAndPrint [09:25:50]line [09:25:50]line [09:25:50]line [09:25:50]line [09:25:50]line [09:25:50]written 0, free lines is 3270 [09:25:50]MH_Cut [09:25:50]Write to MH i2c: D1 01 00 FD 1D 01 EC [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: D1 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: D1 01 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: D1 01 00 FD 1D 00 EB [09:25:50]Write to MH i2c: 01 00 00 FE 1D 1B [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]OFD Sender: No OFD packet to send [09:25:51]*** Cut start [09:25:51]*** Partial cut [09:25:51]*** CUTSNS_PIN = 1 [09:25:51]*** CUTSNS_PIN = 0 [09:25:51]*** Brake cut motor [09:25:51]Read from MH i2c: 01 [09:25:51]MH_I2C_Read... [09:25:51]*** Stop cut motor [09:25:51]*** Cut end [09:25:51]Read from MH i2c: 01 07 00 [09:25:51]MH_I2C_Read... [09:25:51]Read from MH i2c: 01 07 00 FE 1D 00 00 00 00 00 FF 0F 30 [09:25:51]process_action close_receipt done [09:25:51]requested_data is exist [09:25:51]produce_requested_data [09:25:51]requested_item fm.sn is exist - process it [09:25:51]wFMCommunicate request_size=4 [09:25:51]MH_SAM_APDU [09:25:51]CAPDU: 80 11 00 00 [09:25:51]Write to MH i2c: E2 08 00 FF 1D 80 11 00 00 00 00 00 00 96 [09:25:51]Write i2c OK [09:25:51]MH_I2C_Read... [09:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:51]Read from MH i2c: E2 [09:25:51]MH_I2C_Read... [09:25:51]Read from MH i2c: E2 17 00 [09:25:51]MH_I2C_Read... [09:25:51]Read from MH i2c: E2 17 00 FF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [09:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:25:51]wFMCommunicate OK [09:25:51]requested_item fd.num is exist - process it [09:25:51]SAM_PROTO_GetFieldsCounters [09:25:51]wFMCommunicate request_size=4 [09:25:51]MH_SAM_APDU [09:25:51]CAPDU: 80 13 00 00 [09:25:51]Write to MH i2c: E2 08 00 00 1E 80 13 00 00 00 00 00 00 9A [09:25:51]Write i2c OK [09:25:51]MH_I2C_Read... [09:25:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:51]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 62 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 62 00 00 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 44 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [09:25:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 44 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:52]wFMCommunicate OK [09:25:52]SAM_PROTO_GetFieldsCounters done [09:25:52]requested_item shift.num is exist - process it [09:25:52]requested_item shift.opened is exist - process it [09:25:52]req_shift_opened [09:25:52]FM_GetShiftState [09:25:52]SAM_PROTO_GetShiftState [09:25:52]wFMCommunicate request_size=4 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 13 01 00 [09:25:52]Write to MH i2c: E2 08 00 01 1E 80 13 01 00 00 00 00 00 9C [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:52]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 0E 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 0E 00 01 1E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2D [09:25:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:25:52]wFMCommunicate OK [09:25:52]SAM_PROTO_GetShiftState done [09:25:52]FM_GetShiftState done [09:25:52]req_shift_opened done [09:25:52]requested_item shift.open_date is exist - process it [09:25:52]req_shift_open_date [09:25:52]req_shift_open_date done [09:25:52]produce_requested_data done [09:25:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139588,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:25:52]process_action_free close_receipt [09:25:52]json_value_free [09:25:52]json_value_free done [09:25:52]process_json_proto returns [09:25:52]Send response to host [09:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139588,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:25:52]free response buf [09:25:52]execute_script done [09:25:52]execute_script returns [09:25:52]free content buf [09:25:52]Sock 7.Close socket [09:25:52]Sock 7.Thread stoped [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:08]accept exits with 9 [09:27:08]New connection [09:27:08]New thread 3067071844 created [09:27:08]Thread 3067215204 joined [09:27:08]Waiting for new connection... [09:27:08] Sock 9.Parse request [09:27:08]Sock 9.Check first char [09:27:08]Sock 9.First char is OK [09:27:08]request: POST /json_proto HTTP/1.0 [09:27:08]Method: POST [09:27:08]URL: /json_proto [09:27:08]Method is POST - this is cgi request [09:27:08]url: /json_proto [09:27:08]query_string will be loaded in cgi processing [09:27:08]execute_cgi json_proto POST (null) [09:27:08]execute_cgi path=json_proto method=POST [09:27:08]POST find Content-Length [09:27:08]Host: 172.17.45.67:8080 [09:27:08]Content-Length: 677 [09:27:08]Content-Type: application/json [09:27:08] [09:27:08]POST finish read [09:27:08]Found Content-Length = 677 [09:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:08]execute_script... [09:27: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)593431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:08]POST & json_proto [09:27:08]process_json_proto [09:27:08]json parsed OK: [09:27:08]protocol is kg_v1.0 [09:27:08]action value=close_receipt [09:27:08]process_action close_receipt [09:27:08]cmd_close_receipt [09:27:08]MH_GetDate [09:27:08]Write to MH i2c: F0 00 00 02 1E 0F [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: F0 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: F0 09 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: F0 09 00 02 1E 00 6F 61 C4 66 5F 7F 2B 66 81 [09:27:08]GetLastDocTimeStamp 1724145950 [09:27:08]current date 1724146031 [09:27:08]FM_GetShiftState [09:27:08]SAM_PROTO_GetShiftState [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 13 01 00 [09:27:08]Write to MH i2c: E2 08 00 03 1E 80 13 01 00 00 00 00 00 9E [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0E 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0E 00 03 1E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2F [09:27:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:27:08]wFMCommunicate OK [09:27:08]SAM_PROTO_GetShiftState done [09:27:08]FM_GetShiftState done [09:27:08]opened in 1724113785 [09:27:08]opened+sec_in_day 1724200185 [09:27:08]quantity*price = 50036 [09:27:08]sum+1 = 50037 [09:27:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 61 20.08.2024 09:27 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139589 ФПД: 182278280029414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T092711&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139589&fm=182278280029414&tin=02508201610067®Number=0000000000092569&sum=50000 [09:27:09]StoreToDocumentArchive [09:27:09]shift 453 fd 139589 [09:27:09]save to /storage/0453/doc_00139589 [09:27:09]save last doc name /storage/0453/doc_00139589 to /storage/kkm_last_doc_name [09:27:09]save OK [09:27:09]Clear old archive folders... [09:27:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:09]tlvbuf is 00D3E540 [09:27:09]SAM_PROTO_ClearQueue [09:27:09]wFMCommunicate request_size=4 [09:27:09]MH_SAM_APDU [09:27:09]CAPDU: 80 09 00 00 [09:27:09]Write to MH i2c: E2 08 00 10 1E 80 09 00 00 00 00 00 00 A0 [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:09]Read from MH i2c: E2 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 03 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 03 00 10 1E 00 90 00 A2 [09:27:09]RAPDU: 90 00 [09:27:09]wFMCommunicate OK [09:27:09]SAM_PROTO_ClearQueue done [09:27:09]KKMCreateOFDPacket [09:27:09]OFDProtocolAddRootSTLVToBuf [09:27:09]FM_MakeSignedData [09:27:09]FM_MakeSignedData [09:27:09]SAM_PROTO_SignData [09:27:09]wFMCommunicate request_size=4 [09:27:09]MH_SAM_APDU [09:27:09]CAPDU: 80 0D 01 02 [09:27:09]Write to MH i2c: E2 08 00 11 1E 80 0D 01 02 00 00 00 00 A8 [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:09]Read from MH i2c: E2 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 03 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 03 00 11 1E 00 90 00 A3 [09:27:09]RAPDU: 90 00 [09:27:09]wFMCommunicate OK [09:27:09]wFMCommunicate request_size=255 [09:27:09]MH_SAM_APDU [09:27:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 6F 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 21 02 00 35 04 06 00 A5 [09:27:09]Write to MH i2c: E2 02 01 12 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 6F 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 21 02 00 35 04 06 00 A5 00 00 3B [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:09]Read from MH i2c: E2 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 03 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 03 00 12 1E 00 90 00 A4 [09:27:09]RAPDU: 90 00 [09:27:09]wFMCommunicate OK [09:27:09]wFMCommunicate request_size=10 [09:27:09]MH_SAM_APDU [09:27:09]CAPDU: 80 0D 02 02 05 C7 F8 21 A4 E6 [09:27:09]Write to MH i2c: E2 0D 00 13 1E 80 0D 02 02 05 00 C7 F8 21 A4 E6 00 00 1F [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:09]Read from MH i2c: E2 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 03 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 03 00 13 1E 00 90 00 A5 [09:27:09]RAPDU: 90 00 [09:27:09]wFMCommunicate OK [09:27:09]wFMCommunicate request_size=4 [09:27:09]MH_SAM_APDU [09:27:09]CAPDU: 80 0D 03 02 [09:27:09]Write to MH i2c: E2 08 00 14 1E 80 0D 03 02 00 00 00 00 AD [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:10]Read from MH i2c: E2 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 0B 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 0B 00 14 1E 00 0B 47 E1 29 AA C8 F5 BB 90 00 2C [09:27:10]RAPDU: 0B 47 E1 29 AA C8 F5 BB 90 00 [09:27:10]wFMCommunicate OK [09:27:10]SAM_PROTO_SignData done [09:27:10]FM_MakeSignedData done [09:27:10]CreateOFDProtocolMessage [09:27:10]wFMCommunicate request_size=4 [09:27:10]MH_SAM_APDU [09:27:10]CAPDU: 80 11 00 00 [09:27:10]Write to MH i2c: E2 08 00 15 1E 80 11 00 00 00 00 00 00 AD [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:10]Read from MH i2c: E2 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 17 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 17 00 15 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [09:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:27:10]wFMCommunicate OK [09:27:10]CreateOFDProtocolMessage done [09:27:10]OFDSenderStorePacket 139589 [09:27:10]StoreOFDPacket docnum=139589 [09:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 86 56 07 01 46 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 6F 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 21 02 00 35 04 06 00 A5 C7 F8 21 A4 E6 0B 47 E1 29 AA C8 F5 BB [09:27:10]CheckFolder [09:27:10]dirname=/storage/ofd_packets [09:27:10]CheckFolder done [09:27:10]ProducePacketName [09:27:10]name=ofd_packets/00139589 [09:27:10]NVStorageSaveData ofd_packets/00139589 [09:27:10]File name is /storage/ofd_packets/00139589 [09:27:10]Write 301 bytes [09:27:10]NVStorageSaveData done [09:27:10]OFDSenderStorePacket done [09:27:10]KKMCreateOFDPacket done [09:27:10]NVStorageSaveData kkm_last_timestamp [09:27:10]File name is /storage/kkm_last_timestamp [09:27:10]Write 4 bytes [09:27:10]NVStorageSaveData done [09:27:10]OFD Sender: Processing packet 139589 [packets to send 137, broken 136] [09:27:10]ProducePacketName [09:27:10]name=ofd_packets/00139589 [09:27:10]OFD Sender: To server: pG, [09:27:10]CommunicateWithHost lk.salyk.kg:30040 [09:27:10]ConnectInit lk.salyk.kg [09:27:10]ExternCall_PrintAddStr [09:27:10]wPrintStart [09:27:10]Write to MH i2c: 01 00 00 16 1E 34 [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: 01 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: 01 07 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: 01 07 00 16 1E 00 00 00 00 00 FF 0F 49 [09:27:10]RasterBufferAndPrint [09:27:10]line Счет N : (1)593431 [09:27:10]line ИНН: 02508201610067 [09:27:10]line Контрольно-Кассовый Чек [09:27:10]line ПРОДАЖА [09:27:10]line ТРК (МРК, ГНК) : 42 [09:27:10]line Товар: 2710124130 [09:27:10]line Аи-92-К-5 [09:27:10]line 7.380 * 67.80 [09:27:10]line = 500.36 [09:27:10]line НДС 12% НСП 1% [09:27:10]line > о реализуемом товаре [09:27:10]line ОКРУГЛЕНИЕ: -0.36 [09:27:10]line ИТОГО: 500.00 [09:27:10]line Внесено: 500.00 [09:27:10]line СДАЧА: 0.00 [09:27:10]line НСП 1% : 4.43 [09:27:10]line НДС 12% : 53.14 [09:27:10]line Наличными: 500.00 [09:27:10]line Безнал.: 0.00 [09:27:10]line Место: АЗС № 136 "Партнер Нефть" [09:27:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:27:10]line СНО: Общий режим [09:27:10]line Чек 61 20.08.2024 09:27 [09:27:10]line Смена: 453 ФФД: 1.0 [09:27:10]line ЗНМ: 0300000067 [09:27:10]line РНМ: 0000000000092569 [09:27:10]line Версия ККМ: 001 [09:27:10]line ФМ: 0000000000871776 [09:27:10]line ФД: 139589 [09:27:10]line ФПД: 182278280029414 [09:27:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T092711&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139589&fm=182278280029414&tin=02508201610067®Number=0000000000092569&sum=50000 [09:27:10]Connected sock=11 [09:27:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 86 56 07 01 46 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 6F 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 21 02 00 35 04 06 00 A5 C7 F8 21 A4 E6 0B 47 E1 29 AA C8 F5 BB [09:27:10]written 0, free lines is 4095 [09:27:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D2 B5 47 00 BF A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 21 02 00 F4 03 04 00 02 08 C4 66 B6 04 01 00 00 A5 B6 81 83 3F 9C 4C C0 [09:27:10]CommunicateWithHost err = 0 [09:27:10]CheckOFDResponse [09:27:10]1017 (14) - 77093643461234 [09:27:10]1041 (16) - 0000000000871776 [09:27:10]1040 (4) - 139589 [09:27:10]1012 (4) - 20.08.2024 03:05 [09:27:10]1206 (1) - 0 [09:27:10]OFD Sender: Remove packet 139589 [09:27:10]ProducePacketName [09:27:10]name=ofd_packets/00139589 [09:27:10]NVStorageDeleteData [09:27:10]Write to MH i2c: 01 00 00 41 1E 5F [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: 01 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: 01 07 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: 01 07 00 41 1E 00 00 00 00 00 C6 0C 38 [09:27:10]RasterBufferAndPrint [09:27:10]line [09:27:10]line [09:27:10]line [09:27:10]line [09:27:10]line [09:27:10]written 0, free lines is 3276 [09:27:10]MH_Cut [09:27:10]Write to MH i2c: D1 01 00 48 1E 01 38 [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: D1 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: D1 01 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: D1 01 00 48 1E 00 37 [09:27:10]Write to MH i2c: 01 00 00 49 1E 67 [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:11]OFD Sender: No OFD packet to send [09:27:11]*** Cut start [09:27:11]*** Partial cut [09:27:11]*** CUTSNS_PIN = 1 [09:27:11]*** CUTSNS_PIN = 0 [09:27:11]*** Brake cut motor [09:27:12]Read from MH i2c: 01 [09:27:12]MH_I2C_Read... [09:27:12]*** Stop cut motor [09:27:12]*** Cut end [09:27:12]Read from MH i2c: 01 07 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: 01 07 00 49 1E 00 00 00 00 00 FF 0F 7C [09:27:12]process_action close_receipt done [09:27:12]requested_data is exist [09:27:12]produce_requested_data [09:27:12]requested_item fm.sn is exist - process it [09:27:12]wFMCommunicate request_size=4 [09:27:12]MH_SAM_APDU [09:27:12]CAPDU: 80 11 00 00 [09:27:12]Write to MH i2c: E2 08 00 4A 1E 80 11 00 00 00 00 00 00 E2 [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:12]Read from MH i2c: E2 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 17 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 17 00 4A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [09:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:27:12]wFMCommunicate OK [09:27:12]requested_item fd.num is exist - process it [09:27:12]SAM_PROTO_GetFieldsCounters [09:27:12]wFMCommunicate request_size=4 [09:27:12]MH_SAM_APDU [09:27:12]CAPDU: 80 13 00 00 [09:27:12]Write to MH i2c: E2 08 00 4B 1E 80 13 00 00 00 00 00 00 E5 [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:12]Read from MH i2c: E2 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 62 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 62 00 4B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 45 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [09:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 45 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:12]wFMCommunicate OK [09:27:12]SAM_PROTO_GetFieldsCounters done [09:27:12]requested_item shift.num is exist - process it [09:27:12]requested_item shift.opened is exist - process it [09:27:12]req_shift_opened [09:27:12]FM_GetShiftState [09:27:12]SAM_PROTO_GetShiftState [09:27:12]wFMCommunicate request_size=4 [09:27:12]MH_SAM_APDU [09:27:12]CAPDU: 80 13 01 00 [09:27:12]Write to MH i2c: E2 08 00 4C 1E 80 13 01 00 00 00 00 00 E7 [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:12]Read from MH i2c: E2 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 0E 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 0E 00 4C 1E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 78 [09:27:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:27:12]wFMCommunicate OK [09:27:12]SAM_PROTO_GetShiftState done [09:27:12]FM_GetShiftState done [09:27:12]req_shift_opened done [09:27:12]requested_item shift.open_date is exist - process it [09:27:12]req_shift_open_date [09:27:12]req_shift_open_date done [09:27:12]produce_requested_data done [09:27:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139589,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:27:12]process_action_free close_receipt [09:27:12]json_value_free [09:27:12]json_value_free done [09:27:12]process_json_proto returns [09:27:12]Send response to host [09:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139589,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:27:12]free response buf [09:27:12]execute_script done [09:27:12]execute_script returns [09:27:12]free content buf [09:27:12]Sock 9.Close socket [09:27:12]Sock 9.Thread stoped [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:03]accept exits with 7 [09:28:03]New connection [09:28:03]New thread 3067215204 created [09:28:03]Thread 3067071844 joined [09:28:03]Waiting for new connection... [09:28:03] Sock 7.Parse request [09:28:03]Sock 7.Check first char [09:28:03]Sock 7.First char is OK [09:28:03]request: POST /json_proto HTTP/1.0 [09:28:03]Method: POST [09:28:03]URL: /json_proto [09:28:03]Method is POST - this is cgi request [09:28:03]url: /json_proto [09:28:03]query_string will be loaded in cgi processing [09:28:03]execute_cgi json_proto POST (null) [09:28:03]execute_cgi path=json_proto method=POST [09:28:03]POST find Content-Length [09:28:03]Host: 172.17.45.67:8080 [09:28:03]Content-Length: 687 [09:28:03]Content-Type: application/json [09:28:03] [09:28:03]POST finish read [09:28:03]Found Content-Length = 687 [09:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:28:03]execute_script... [09:28: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)593432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:28:03]POST & json_proto [09:28:03]process_json_proto [09:28:03]json parsed OK: [09:28:03]protocol is kg_v1.0 [09:28:03]action value=close_receipt [09:28:03]process_action close_receipt [09:28:03]cmd_close_receipt [09:28:03]MH_GetDate [09:28:03]Write to MH i2c: F0 00 00 4D 1E 5A [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: F0 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: F0 09 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: F0 09 00 4D 1E 00 A6 61 C4 66 5F 7F 2B 66 03 [09:28:03]GetLastDocTimeStamp 1724146031 [09:28:03]current date 1724146086 [09:28:03]FM_GetShiftState [09:28:03]SAM_PROTO_GetShiftState [09:28:03]wFMCommunicate request_size=4 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 13 01 00 [09:28:03]Write to MH i2c: E2 08 00 4E 1E 80 13 01 00 00 00 00 00 E9 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 0E 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 0E 00 4E 1E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7A [09:28:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:28:03]wFMCommunicate OK [09:28:03]SAM_PROTO_GetShiftState done [09:28:03]FM_GetShiftState done [09:28:03]opened in 1724113785 [09:28:03]opened+sec_in_day 1724200185 [09:28:03]quantity*price = 200025 [09:28:03]sum+1 = 200026 [09:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 62 20.08.2024 09:28 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139590 ФПД: 98186698347229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T092806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139590&fm=98186698347229&tin=02508201610067®Number=0000000000092569&sum=200000 [09:28:04]StoreToDocumentArchive [09:28:04]shift 453 fd 139590 [09:28:04]save to /storage/0453/doc_00139590 [09:28:04]save last doc name /storage/0453/doc_00139590 to /storage/kkm_last_doc_name [09:28:04]save OK [09:28:04]Clear old archive folders... [09:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:28:04]tlvbuf is 00D95D40 [09:28:04]SAM_PROTO_ClearQueue [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 09 00 00 [09:28:04]Write to MH i2c: E2 08 00 5B 1E 80 09 00 00 00 00 00 00 EB [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 5B 1E 00 90 00 ED [09:28:04]RAPDU: 90 00 [09:28:04]wFMCommunicate OK [09:28:04]SAM_PROTO_ClearQueue done [09:28:04]KKMCreateOFDPacket [09:28:04]OFDProtocolAddRootSTLVToBuf [09:28:04]FM_MakeSignedData [09:28:04]FM_MakeSignedData [09:28:04]SAM_PROTO_SignData [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 0D 01 02 [09:28:04]Write to MH i2c: E2 08 00 5C 1E 80 0D 01 02 00 00 00 00 F3 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 5C 1E 00 90 00 EE [09:28:04]RAPDU: 90 00 [09:28:04]wFMCommunicate OK [09:28:04]wFMCommunicate request_size=255 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 3E 00 00 00 F4 03 04 00 A6 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 21 02 00 35 04 06 00 [09:28:04]Write to MH i2c: E2 02 01 5D 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 3E 00 00 00 F4 03 04 00 A6 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 21 02 00 35 04 06 00 00 00 F6 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [09:28:04]RAPDU: 90 00 [09:28:04]wFMCommunicate OK [09:28:04]wFMCommunicate request_size=11 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 0D 02 02 06 59 4C DF 46 D2 DD [09:28:04]Write to MH i2c: E2 0E 00 5E 1E 80 0D 02 02 06 00 59 4C DF 46 D2 DD 00 00 7B [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 03 00 5E 1E 00 90 00 F0 [09:28:04]RAPDU: 90 00 [09:28:04]wFMCommunicate OK [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 0D 03 02 [09:28:04]Write to MH i2c: E2 08 00 5F 1E 80 0D 03 02 00 00 00 00 F8 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0B 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0B 00 5F 1E 00 E3 2E C5 21 90 19 D9 CA 90 00 3C [09:28:05]RAPDU: E3 2E C5 21 90 19 D9 CA 90 00 [09:28:05]wFMCommunicate OK [09:28:05]SAM_PROTO_SignData done [09:28:05]FM_MakeSignedData done [09:28:05]CreateOFDProtocolMessage [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 11 00 00 [09:28:05]Write to MH i2c: E2 08 00 60 1E 80 11 00 00 00 00 00 00 F8 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 60 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [09:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:28:05]wFMCommunicate OK [09:28:05]CreateOFDProtocolMessage done [09:28:05]OFDSenderStorePacket 139590 [09:28:05]StoreOFDPacket docnum=139590 [09:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 52 E9 08 01 8E 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 3E 00 00 00 F4 03 04 00 A6 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 21 02 00 35 04 06 00 59 4C DF 46 D2 DD E3 2E C5 21 90 19 D9 CA [09:28:05]CheckFolder [09:28:05]dirname=/storage/ofd_packets [09:28:05]CheckFolder done [09:28:05]ProducePacketName [09:28:05]name=ofd_packets/00139590 [09:28:05]NVStorageSaveData ofd_packets/00139590 [09:28:05]File name is /storage/ofd_packets/00139590 [09:28:05]Write 302 bytes [09:28:05]NVStorageSaveData done [09:28:05]OFDSenderStorePacket done [09:28:05]KKMCreateOFDPacket done [09:28:05]NVStorageSaveData kkm_last_timestamp [09:28:05]File name is /storage/kkm_last_timestamp [09:28:05]Write 4 bytes [09:28:05]NVStorageSaveData done [09:28:05]ExternCall_PrintAddStr [09:28:05]wPrintStart [09:28:05]Write to MH i2c: 01 00 00 61 1E 7F [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 61 1E 00 00 00 00 00 FF 0F 94 [09:28:05]RasterBufferAndPrint [09:28:05]line Счет N : (1)593432 [09:28:05]line ИНН: 02508201610067 [09:28:05]line Контрольно-Кассовый Чек [09:28:05]line ПРОДАЖА [09:28:05]line ТРК (МРК, ГНК) : 64 [09:28:05]line Товар: 2710194210 [09:28:05]line ДТ(л)-К-5 [09:28:05]line 26.250 * 76.20 [09:28:05]line = 2000.25 [09:28:05]line НДС 12% НСП 1% [09:28:05]line > о реализуемом товаре [09:28:05]line ОКРУГЛЕНИЕ: -0.25 [09:28:05]line ИТОГО: 2000.00 [09:28:05]line Внесено: 2000.00 [09:28:05]line СДАЧА: 0.00 [09:28:05]line НСП 1% : 17.70 [09:28:05]line НДС 12% : 212.42 [09:28:05]line Наличными: 2000.00 [09:28:05]line Безнал.: 0.00 [09:28:05]line Место: АЗС № 136 "Партнер Нефть" [09:28:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:28:05]line СНО: Общий режим [09:28:05]line Чек 62 20.08.2024 09:28 [09:28:05]line Смена: 453 ФФД: 1.0 [09:28:05]line ЗНМ: 0300000067 [09:28:05]line РНМ: 0000000000092569 [09:28:05]line Версия ККМ: 001 [09:28:05]line ФМ: 0000000000871776 [09:28:05]line ФД: 139590 [09:28:05]line ФПД: 98186698347229 [09:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T092806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139590&fm=98186698347229&tin=02508201610067®Number=0000000000092569&sum=200000 [09:28:05]OFD Sender: Processing packet 139590 [packets to send 137, broken 136] [09:28:05]ProducePacketName [09:28:05]name=ofd_packets/00139590 [09:28:05]OFD Sender: To server: pG, [09:28:05]CommunicateWithHost lk.salyk.kg:30040 [09:28:05]ConnectInit lk.salyk.kg [09:28:05]written 0, free lines is 4095 [09:28:05]Connected sock=10 [09:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 52 E9 08 01 8E 53 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 3E 00 00 00 F4 03 04 00 A6 61 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 21 02 00 35 04 06 00 59 4C DF 46 D2 DD E3 2E C5 21 90 19 D9 CA [09:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3F 73 47 00 81 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 21 02 00 F4 03 04 00 39 08 C4 66 B6 04 01 00 00 E0 CE DB 09 FF 10 10 1D [09:28:05]CommunicateWithHost err = 0 [09:28:05]CheckOFDResponse [09:28:05]1017 (14) - 77093643461234 [09:28:05]1041 (16) - 0000000000871776 [09:28:05]1040 (4) - 139590 [09:28:05]1012 (4) - 20.08.2024 03:06 [09:28:05]1206 (1) - 0 [09:28:05]OFD Sender: Remove packet 139590 [09:28:05]ProducePacketName [09:28:05]name=ofd_packets/00139590 [09:28:05]NVStorageDeleteData [09:28:05]Write to MH i2c: 01 00 00 8C 1E AA [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 8C 1E 00 00 00 00 00 CF 0C 8C [09:28:05]RasterBufferAndPrint [09:28:05]line [09:28:05]line [09:28:05]line [09:28:05]line [09:28:05]line [09:28:05]written 0, free lines is 3284 [09:28:05]MH_Cut [09:28:05]Write to MH i2c: D1 01 00 93 1E 01 83 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: D1 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: D1 01 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: D1 01 00 93 1E 00 82 [09:28:05]Write to MH i2c: 01 00 00 94 1E B2 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:06]OFD Sender: No OFD packet to send [09:28:06]*** Cut start [09:28:06]*** Partial cut [09:28:06]*** CUTSNS_PIN = 1 [09:28:06]*** CUTSNS_PIN = 0 [09:28:06]*** Brake cut motor [09:28:07]Read from MH i2c: 01 [09:28:07]MH_I2C_Read... [09:28:07]*** Stop cut motor [09:28:07]*** Cut end [09:28:07]Read from MH i2c: 01 07 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: 01 07 00 94 1E 00 00 00 00 00 FF 0F C7 [09:28:07]process_action close_receipt done [09:28:07]requested_data is exist [09:28:07]produce_requested_data [09:28:07]requested_item fm.sn is exist - process it [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 11 00 00 [09:28:07]Write to MH i2c: E2 08 00 95 1E 80 11 00 00 00 00 00 00 2D [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 17 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 17 00 95 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [09:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:28:07]wFMCommunicate OK [09:28:07]requested_item fd.num is exist - process it [09:28:07]SAM_PROTO_GetFieldsCounters [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 13 00 00 [09:28:07]Write to MH i2c: E2 08 00 96 1E 80 13 00 00 00 00 00 00 30 [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 62 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 62 00 96 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 46 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [09:28:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 46 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:07]wFMCommunicate OK [09:28:07]SAM_PROTO_GetFieldsCounters done [09:28:07]requested_item shift.num is exist - process it [09:28:07]requested_item shift.opened is exist - process it [09:28:07]req_shift_opened [09:28:07]FM_GetShiftState [09:28:07]SAM_PROTO_GetShiftState [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 13 01 00 [09:28:07]Write to MH i2c: E2 08 00 97 1E 80 13 01 00 00 00 00 00 32 [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 0E 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 0E 00 97 1E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C3 [09:28:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:28:07]wFMCommunicate OK [09:28:07]SAM_PROTO_GetShiftState done [09:28:07]FM_GetShiftState done [09:28:07]req_shift_opened done [09:28:07]requested_item shift.open_date is exist - process it [09:28:07]req_shift_open_date [09:28:07]req_shift_open_date done [09:28:07]produce_requested_data done [09:28:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139590,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:28:07]process_action_free close_receipt [09:28:07]json_value_free [09:28:07]json_value_free done [09:28:07]process_json_proto returns [09:28:07]Send response to host [09:28:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139590,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:28:07]free response buf [09:28:07]execute_script done [09:28:07]execute_script returns [09:28:07]free content buf [09:28:07]Sock 7.Close socket [09:28:07]Sock 7.Thread stoped [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:10]int [09:33:10]Write to MH i2c: 01 00 00 98 1E B6 [09:33:10]*** FLAG_PRN_KEY set [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 07 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 07 00 98 1E 00 08 00 00 00 FF 0F D3 [09:33:10]state=0 [09:33:10]Key pressed [09:33:10]Feed [09:33:10]Write to MH i2c: D8 00 00 99 1E 8E [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: D8 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: D8 01 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: D8 01 00 99 1E 00 8F [09:33:10]int [09:33:10]Write to MH i2c: 01 00 00 9A 1E B8 [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 07 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 07 00 9A 1E 00 48 00 00 00 3C 00 43 [09:33:10]state=2 [09:33:10]Key pressed [09:33:10]int [09:33:10]Write to MH i2c: 01 00 00 9B 1E B9 [09:33:10]*** FLAG_PRN_KEY reset [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 07 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: 01 07 00 9B 1E 00 00 00 00 00 F5 0F C4 [09:33:10]state=2 [09:33:10]Stop feed [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:07]accept exits with 9 [09:35:07]New connection [09:35:07]New thread 3067071844 created [09:35:07]Thread 3067215204 joined [09:35:07]Waiting for new connection... [09:35:07] Sock 9.Parse request [09:35:07]Sock 9.Check first char [09:35:07]Sock 9.First char is OK [09:35:07]request: POST /json_proto HTTP/1.0 [09:35:07]Method: POST [09:35:07]URL: /json_proto [09:35:07]Method is POST - this is cgi request [09:35:07]url: /json_proto [09:35:07]query_string will be loaded in cgi processing [09:35:07]execute_cgi json_proto POST (null) [09:35:07]execute_cgi path=json_proto method=POST [09:35:07]POST find Content-Length [09:35:07]Host: 172.17.45.67:8080 [09:35:07]Content-Length: 824 [09:35:07]Content-Type: application/json [09:35:07] [09:35:07]POST finish read [09:35:07]Found Content-Length = 824 [09:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 900.00, "payments": [ { "type": 1, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:07]execute_script... [09:35: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)593433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 900.00, "payments": [ { "type": 1, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:07]POST & json_proto [09:35:07]process_json_proto [09:35:07]json parsed OK: [09:35:07]protocol is kg_v1.0 [09:35:07]action value=close_receipt [09:35:07]process_action close_receipt [09:35:07]cmd_close_receipt [09:35:07]MH_GetDate [09:35:07]Write to MH i2c: F0 00 00 9C 1E A9 [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: F0 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: F0 09 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: F0 09 00 9C 1E 00 4E 63 C4 66 5F 7F 2B 66 FC [09:35:07]GetLastDocTimeStamp 1724146086 [09:35:07]current date 1724146510 [09:35:07]FM_GetShiftState [09:35:07]SAM_PROTO_GetShiftState [09:35:07]wFMCommunicate request_size=4 [09:35:07]MH_SAM_APDU [09:35:07]CAPDU: 80 13 01 00 [09:35:07]Write to MH i2c: E2 08 00 9D 1E 80 13 01 00 00 00 00 00 38 [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:07]Read from MH i2c: E2 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 0E 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 0E 00 9D 1E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C9 [09:35:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:35:07]wFMCommunicate OK [09:35:07]SAM_PROTO_GetShiftState done [09:35:07]FM_GetShiftState done [09:35:07]opened in 1724113785 [09:35:07]opened+sec_in_day 1724200185 [09:35:07]quantity*price = 90068 [09:35:07]sum+1 = 90069 [09:35:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 0.00 Безнал.: 900.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 63 20.08.2024 09:35 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139591 ФПД: 100781398793002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T093510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139591&fm=100781398793002&tin=02508201610067®Number=0000000000092569&sum=90000 [09:35:08]StoreToDocumentArchive [09:35:08]shift 453 fd 139591 [09:35:08]save to /storage/0453/doc_00139591 [09:35:08]save last doc name /storage/0453/doc_00139591 to /storage/kkm_last_doc_name [09:35:08]save OK [09:35:08]Clear old archive folders... [09:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:35:08]tlvbuf is 00D86CC0 [09:35:08]SAM_PROTO_ClearQueue [09:35:08]wFMCommunicate request_size=4 [09:35:08]MH_SAM_APDU [09:35:08]CAPDU: 80 09 00 00 [09:35:08]Write to MH i2c: E2 08 00 AA 1E 80 09 00 00 00 00 00 00 3A [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:08]Read from MH i2c: E2 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 03 00 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 03 00 AA 1E 00 90 00 3C [09:35:08]RAPDU: 90 00 [09:35:08]wFMCommunicate OK [09:35:08]SAM_PROTO_ClearQueue done [09:35:08]KKMCreateOFDPacket [09:35:08]OFDProtocolAddRootSTLVToBuf [09:35:08]FM_MakeSignedData [09:35:08]FM_MakeSignedData [09:35:08]SAM_PROTO_SignData [09:35:08]wFMCommunicate request_size=4 [09:35:08]MH_SAM_APDU [09:35:08]CAPDU: 80 0D 01 02 [09:35:08]Write to MH i2c: E2 08 00 AB 1E 80 0D 01 02 00 00 00 00 42 [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:08]Read from MH i2c: E2 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 03 00 [09:35:08]MH_I2C_Read... [09:35:08]Read from MH i2c: E2 03 00 AB 1E 00 90 00 3D [09:35:08]RAPDU: 90 00 [09:35:08]wFMCommunicate OK [09:35:08]wFMCommunicate request_size=255 [09:35:08]MH_SAM_APDU [09:35:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4E 63 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 21 02 00 35 04 06 00 [09:35:08]Write to MH i2c: E2 02 01 AC 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4E 63 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 21 02 00 35 04 06 00 00 00 CC [09:35:08]Write i2c OK [09:35:08]MH_I2C_Read... [09:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:09]Read from MH i2c: E2 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 03 00 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 03 00 AC 1E 00 90 00 3E [09:35:09]RAPDU: 90 00 [09:35:09]wFMCommunicate OK [09:35:09]wFMCommunicate request_size=11 [09:35:09]MH_SAM_APDU [09:35:09]CAPDU: 80 0D 02 02 06 5B A8 FF 79 9B 2A [09:35:09]Write to MH i2c: E2 0E 00 AD 1E 80 0D 02 02 06 00 5B A8 FF 79 9B 2A 00 00 91 [09:35:09]Write i2c OK [09:35:09]MH_I2C_Read... [09:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:09]Read from MH i2c: E2 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 03 00 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 03 00 AD 1E 00 90 00 3F [09:35:09]RAPDU: 90 00 [09:35:09]wFMCommunicate OK [09:35:09]wFMCommunicate request_size=4 [09:35:09]MH_SAM_APDU [09:35:09]CAPDU: 80 0D 03 02 [09:35:09]Write to MH i2c: E2 08 00 AE 1E 80 0D 03 02 00 00 00 00 47 [09:35:09]Write i2c OK [09:35:09]MH_I2C_Read... [09:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:09]Read from MH i2c: E2 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 0B 00 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 0B 00 AE 1E 00 1E BB FD 47 2E C0 AB C3 90 00 C1 [09:35:09]RAPDU: 1E BB FD 47 2E C0 AB C3 90 00 [09:35:09]wFMCommunicate OK [09:35:09]SAM_PROTO_SignData done [09:35:09]FM_MakeSignedData done [09:35:09]CreateOFDProtocolMessage [09:35:09]wFMCommunicate request_size=4 [09:35:09]MH_SAM_APDU [09:35:09]CAPDU: 80 11 00 00 [09:35:09]Write to MH i2c: E2 08 00 AF 1E 80 11 00 00 00 00 00 00 47 [09:35:09]Write i2c OK [09:35:09]MH_I2C_Read... [09:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:09]Read from MH i2c: E2 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 17 00 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 17 00 AF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [09:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:35:09]wFMCommunicate OK [09:35:09]CreateOFDProtocolMessage done [09:35:09]OFDSenderStorePacket 139591 [09:35:09]StoreOFDPacket docnum=139591 [09:35:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 3D 02 08 01 BC AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4E 63 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 21 02 00 35 04 06 00 5B A8 FF 79 9B 2A 1E BB FD 47 2E C0 AB C3 [09:35:09]CheckFolder [09:35:09]dirname=/storage/ofd_packets [09:35:09]CheckFolder done [09:35:09]ProducePacketName [09:35:09]name=ofd_packets/00139591 [09:35:09]NVStorageSaveData ofd_packets/00139591 [09:35:09]File name is /storage/ofd_packets/00139591 [09:35:09]Write 302 bytes [09:35:09]NVStorageSaveData done [09:35:09]OFDSenderStorePacket done [09:35:09]KKMCreateOFDPacket done [09:35:09]NVStorageSaveData kkm_last_timestamp [09:35:09]File name is /storage/kkm_last_timestamp [09:35:09]Write 4 bytes [09:35:09]NVStorageSaveData done [09:35:09]ExternCall_PrintAddStr [09:35:09]wPrintStart [09:35:09]Write to MH i2c: 01 00 00 B0 1E CE [09:35:09]Write i2c OK [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: 01 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: 01 07 00 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: 01 07 00 B0 1E 00 00 00 00 00 FF 0F E3 [09:35:09]RasterBufferAndPrint [09:35:09]line Счет N : (1)593433 [09:35:09]line ИНН: 02508201610067 [09:35:09]line Контрольно-Кассовый Чек [09:35:09]line ПРОДАЖА [09:35:09]line ТРК (МРК, ГНК) : 64 [09:35:09]line Товар: 2710194210 [09:35:09]line ДТ(л)-К-5 [09:35:09]line 11.820 * 76.20 [09:35:09]line = 900.68 [09:35:09]line НДС 12% НСП 1% [09:35:09]line > о реализуемом товаре [09:35:09]line ОКРУГЛЕНИЕ: -0.68 [09:35:09]line ИТОГО: 900.00 [09:35:09]line НСП 1% : 7.97 [09:35:09]line НДС 12% : 95.65 [09:35:09]line Наличными: 0.00 [09:35:09]line Безнал.: 900.00 [09:35:09]line Место: АЗС № 136 "Партнер Нефть" [09:35:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:35:09]line СНО: Общий режим [09:35:09]line Чек 63 20.08.2024 09:35 [09:35:09]line Смена: 453 ФФД: 1.0 [09:35:09]line ЗНМ: 0300000067 [09:35:09]line РНМ: 0000000000092569 [09:35:09]line Версия ККМ: 001 [09:35:09]line Платежная система: O! деньги [09:35:09]line ФМ: 0000000000871776 [09:35:09]line ФД: 139591 [09:35:09]line ФПД: 100781398793002 [09:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T093510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139591&fm=100781398793002&tin=02508201610067®Number=0000000000092569&sum=90000 [09:35:09]OFD Sender: Processing packet 139591 [packets to send 137, broken 136] [09:35:09]ProducePacketName [09:35:09]name=ofd_packets/00139591 [09:35:09]OFD Sender: To server: pG, [09:35:09]CommunicateWithHost lk.salyk.kg:30040 [09:35:09]ConnectInit lk.salyk.kg [09:35:09]written 0, free lines is 4095 [09:35:09]Connected sock=10 [09:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 3D 02 08 01 BC AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4E 63 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 21 02 00 35 04 06 00 5B A8 FF 79 9B 2A 1E BB FD 47 2E C0 AB C3 [09:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A8 60 47 00 C1 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 21 02 00 F4 03 04 00 E2 09 C4 66 B6 04 01 00 00 14 4B 66 99 AD 0E A1 89 [09:35:10]CommunicateWithHost err = 0 [09:35:10]CheckOFDResponse [09:35:10]1017 (14) - 77093643461234 [09:35:10]1041 (16) - 0000000000871776 [09:35:10]1040 (4) - 139591 [09:35:10]1012 (4) - 20.08.2024 03:13 [09:35:10]1206 (1) - 0 [09:35:10]OFD Sender: Remove packet 139591 [09:35:10]ProducePacketName [09:35:10]name=ofd_packets/00139591 [09:35:10]NVStorageDeleteData [09:35:10]Write to MH i2c: 01 00 00 DB 1E F9 [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: 01 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: 01 07 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: 01 07 00 DB 1E 00 00 00 00 00 D3 0C DF [09:35:10]RasterBufferAndPrint [09:35:10]line [09:35:10]line [09:35:10]line [09:35:10]line [09:35:10]line [09:35:10]written 0, free lines is 3289 [09:35:10]MH_Cut [09:35:10]Write to MH i2c: D1 01 00 E2 1E 01 D2 [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: D1 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: D1 01 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: D1 01 00 E2 1E 00 D1 [09:35:10]Write to MH i2c: 01 00 00 E3 1E 01 [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]OFD Sender: No OFD packet to send [09:35:10]*** Cut start [09:35:10]*** Partial cut [09:35:10]*** CUTSNS_PIN = 1 [09:35:10]*** CUTSNS_PIN = 0 [09:35:11]*** Brake cut motor [09:35:11]Read from MH i2c: 01 [09:35:11]MH_I2C_Read... [09:35:11]*** Stop cut motor [09:35:11]*** Cut end [09:35:11]Read from MH i2c: 01 07 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 07 00 E3 1E 00 00 00 00 00 FF 0F 16 [09:35:11]process_action close_receipt done [09:35:11]requested_data is exist [09:35:11]produce_requested_data [09:35:11]requested_item fm.sn is exist - process it [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 11 00 00 [09:35:11]Write to MH i2c: E2 08 00 E4 1E 80 11 00 00 00 00 00 00 7C [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 17 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 17 00 E4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [09:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:35:11]wFMCommunicate OK [09:35:11]requested_item fd.num is exist - process it [09:35:11]SAM_PROTO_GetFieldsCounters [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 13 00 00 [09:35:11]Write to MH i2c: E2 08 00 E5 1E 80 13 00 00 00 00 00 00 7F [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 62 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 62 00 E5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 47 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [09:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 47 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:11]wFMCommunicate OK [09:35:11]SAM_PROTO_GetFieldsCounters done [09:35:11]requested_item shift.num is exist - process it [09:35:11]requested_item shift.opened is exist - process it [09:35:11]req_shift_opened [09:35:11]FM_GetShiftState [09:35:11]SAM_PROTO_GetShiftState [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 13 01 00 [09:35:11]Write to MH i2c: E2 08 00 E6 1E 80 13 01 00 00 00 00 00 81 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 0E 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 0E 00 E6 1E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 12 [09:35:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:35:11]wFMCommunicate OK [09:35:11]SAM_PROTO_GetShiftState done [09:35:11]FM_GetShiftState done [09:35:11]req_shift_opened done [09:35:11]requested_item shift.open_date is exist - process it [09:35:11]req_shift_open_date [09:35:11]req_shift_open_date done [09:35:11]produce_requested_data done [09:35:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139591,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:35:11]process_action_free close_receipt [09:35:11]json_value_free [09:35:11]json_value_free done [09:35:11]process_json_proto returns [09:35:11]Send response to host [09:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139591,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:35:11]free response buf [09:35:11]execute_script done [09:35:11]execute_script returns [09:35:11]free content buf [09:35:11]Sock 9.Close socket [09:35:11]Sock 9.Thread stoped [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:14]accept exits with 7 [09:39:14]New connection [09:39:14]New thread 3067215204 created [09:39:14]Thread 3067071844 joined [09:39:14]Waiting for new connection... [09:39:14] Sock 7.Parse request [09:39:14]Sock 7.Check first char [09:39:14]Sock 7.First char is OK [09:39:14]request: POST /json_proto HTTP/1.0 [09:39:14]Method: POST [09:39:14]URL: /json_proto [09:39:14]Method is POST - this is cgi request [09:39:14]url: /json_proto [09:39:14]query_string will be loaded in cgi processing [09:39:14]execute_cgi json_proto POST (null) [09:39:14]execute_cgi path=json_proto method=POST [09:39:14]POST find Content-Length [09:39:14]Host: 172.17.45.67:8080 [09:39:14]Content-Length: 658 [09:39:14]Content-Type: application/json [09:39:14] [09:39:14]POST finish read [09:39:14]Found Content-Length = 658 [09:39:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:14]execute_script... [09:39:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:14]POST & json_proto [09:39:14]process_json_proto [09:39:14]json parsed OK: [09:39:14]protocol is kg_v1.0 [09:39:14]action value=close_receipt [09:39:14]process_action close_receipt [09:39:14]cmd_close_receipt [09:39:14]MH_GetDate [09:39:14]Write to MH i2c: F0 00 00 E7 1E F4 [09:39:14]Write i2c OK [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: F0 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: F0 09 00 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: F0 09 00 E7 1E 00 44 64 C4 66 5F 7F 2B 66 3E [09:39:14]GetLastDocTimeStamp 1724146510 [09:39:14]current date 1724146756 [09:39:14]FM_GetShiftState [09:39:14]SAM_PROTO_GetShiftState [09:39:14]wFMCommunicate request_size=4 [09:39:14]MH_SAM_APDU [09:39:14]CAPDU: 80 13 01 00 [09:39:14]Write to MH i2c: E2 08 00 E8 1E 80 13 01 00 00 00 00 00 83 [09:39:14]Write i2c OK [09:39:14]MH_I2C_Read... [09:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:14]Read from MH i2c: E2 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 0E 00 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 0E 00 E8 1E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 14 [09:39:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:39:14]wFMCommunicate OK [09:39:14]SAM_PROTO_GetShiftState done [09:39:14]FM_GetShiftState done [09:39:14]opened in 1724113785 [09:39:14]opened+sec_in_day 1724200185 [09:39:14]quantity*price = 30065 [09:39:14]sum+1 = 30067 [09:39:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.93 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 64 20.08.2024 09:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139592 ФПД: 120598288153029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T093917&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139592&fm=120598288153029&tin=02508201610067®Number=0000000000092569&sum=30000 [09:39:15]StoreToDocumentArchive [09:39:15]shift 453 fd 139592 [09:39:15]save to /storage/0453/doc_00139592 [09:39:15]save last doc name /storage/0453/doc_00139592 to /storage/kkm_last_doc_name [09:39:15]save OK [09:39:15]Clear old archive folders... [09:39:15]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:39:15]tlvbuf is 00DC46E0 [09:39:15]SAM_PROTO_ClearQueue [09:39:15]wFMCommunicate request_size=4 [09:39:15]MH_SAM_APDU [09:39:15]CAPDU: 80 09 00 00 [09:39:15]Write to MH i2c: E2 08 00 F5 1E 80 09 00 00 00 00 00 00 85 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:15]Read from MH i2c: E2 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 03 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 03 00 F5 1E 00 90 00 87 [09:39:15]RAPDU: 90 00 [09:39:15]wFMCommunicate OK [09:39:15]SAM_PROTO_ClearQueue done [09:39:15]KKMCreateOFDPacket [09:39:15]OFDProtocolAddRootSTLVToBuf [09:39:15]FM_MakeSignedData [09:39:15]FM_MakeSignedData [09:39:15]SAM_PROTO_SignData [09:39:15]wFMCommunicate request_size=4 [09:39:15]MH_SAM_APDU [09:39:15]CAPDU: 80 0D 01 02 [09:39:15]Write to MH i2c: E2 08 00 F6 1E 80 0D 01 02 00 00 00 00 8D [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:15]Read from MH i2c: E2 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 03 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 03 00 F6 1E 00 90 00 88 [09:39:15]RAPDU: 90 00 [09:39:15]wFMCommunicate OK [09:39:15]wFMCommunicate request_size=253 [09:39:15]MH_SAM_APDU [09:39:15]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 45 64 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 21 02 00 35 04 06 00 6D AE FA 20 39 C5 [09:39:15]Write to MH i2c: E2 00 01 F7 1E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 45 64 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 21 02 00 35 04 06 00 6D AE FA 20 39 C5 00 00 A4 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:15]Read from MH i2c: E2 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 03 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 03 00 F7 1E 00 90 00 89 [09:39:15]RAPDU: 90 00 [09:39:15]wFMCommunicate OK [09:39:15]wFMCommunicate request_size=4 [09:39:15]MH_SAM_APDU [09:39:15]CAPDU: 80 0D 03 02 [09:39:15]Write to MH i2c: E2 08 00 F8 1E 80 0D 03 02 00 00 00 00 91 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:15]Read from MH i2c: E2 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 0B 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 0B 00 F8 1E 00 44 45 BA C5 49 91 84 26 90 00 1E [09:39:15]RAPDU: 44 45 BA C5 49 91 84 26 90 00 [09:39:15]wFMCommunicate OK [09:39:15]SAM_PROTO_SignData done [09:39:15]FM_MakeSignedData done [09:39:15]CreateOFDProtocolMessage [09:39:15]wFMCommunicate request_size=4 [09:39:15]MH_SAM_APDU [09:39:15]CAPDU: 80 11 00 00 [09:39:15]Write to MH i2c: E2 08 00 F9 1E 80 11 00 00 00 00 00 00 91 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:15]Read from MH i2c: E2 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 17 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: E2 17 00 F9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [09:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:39:15]wFMCommunicate OK [09:39:15]CreateOFDProtocolMessage done [09:39:15]OFDSenderStorePacket 139592 [09:39:15]StoreOFDPacket docnum=139592 [09:39:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 CE 83 00 01 CD BA 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 45 64 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 21 02 00 35 04 06 00 6D AE FA 20 39 C5 44 45 BA C5 49 91 84 26 [09:39:15]CheckFolder [09:39:15]dirname=/storage/ofd_packets [09:39:15]CheckFolder done [09:39:15]ProducePacketName [09:39:15]name=ofd_packets/00139592 [09:39:15]NVStorageSaveData ofd_packets/00139592 [09:39:15]File name is /storage/ofd_packets/00139592 [09:39:15]Write 294 bytes [09:39:15]NVStorageSaveData done [09:39:15]OFDSenderStorePacket done [09:39:15]KKMCreateOFDPacket done [09:39:15]NVStorageSaveData kkm_last_timestamp [09:39:15]File name is /storage/kkm_last_timestamp [09:39:15]Write 4 bytes [09:39:15]NVStorageSaveData done [09:39:15]ExternCall_PrintAddStr [09:39:15]wPrintStart [09:39:15]Write to MH i2c: 01 00 00 FA 1E 18 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: 01 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: 01 07 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: 01 07 00 FA 1E 00 00 00 00 00 FF 0F 2D [09:39:15]RasterBufferAndPrint [09:39:15]line Счет N : (1)593436 [09:39:15]line ИНН: 02508201610067 [09:39:15]line Контрольно-Кассовый Чек [09:39:15]line ПРОДАЖА [09:39:15]line ТРК (МРК, ГНК) : 43 [09:39:15]line Товар: 2710124130 [09:39:15]line SU-92 [09:39:15]line 4.370 * 68.80 [09:39:15]line = 300.66 [09:39:15]line НДС 12% НСП 1% [09:39:15]line > о реализуемом товаре [09:39:15]line ОКРУГЛЕНИЕ: -0.66 [09:39:15]line ИТОГО: 300.00 [09:39:15]line Внесено: 300.00 [09:39:15]line СДАЧА: 0.00 [09:39:15]line НСП 1% : 2.66 [09:39:15]line НДС 12% : 31.93 [09:39:15]line Наличными: 300.00 [09:39:15]line Безнал.: 0.00 [09:39:15]line Место: АЗС № 136 "Партнер Нефть" [09:39:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:39:15]line СНО: Общий режим [09:39:15]line Чек 64 20.08.2024 09:39 [09:39:15]line Смена: 453 ФФД: 1.0 [09:39:15]line ЗНМ: 0300000067 [09:39:15]line РНМ: 0000000000092569 [09:39:15]line Версия ККМ: 001 [09:39:15]line ФМ: 0000000000871776 [09:39:15]line ФД: 139592 [09:39:15]line ФПД: 120598288153029 [09:39:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T093917&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139592&fm=120598288153029&tin=02508201610067®Number=0000000000092569&sum=30000 [09:39:16]OFD Sender: Processing packet 139592 [packets to send 137, broken 136] [09:39:16]ProducePacketName [09:39:16]name=ofd_packets/00139592 [09:39:16]OFD Sender: To server: pG, [09:39:16]CommunicateWithHost lk.salyk.kg:30040 [09:39:16]ConnectInit lk.salyk.kg [09:39:16]written 0, free lines is 4095 [09:39:16]Connected sock=10 [09:39:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 CE 83 00 01 CD BA 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 45 64 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 21 02 00 35 04 06 00 6D AE FA 20 39 C5 44 45 BA C5 49 91 84 26 [09:39:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5B 87 47 00 66 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 21 02 00 F4 03 04 00 D8 0A C4 66 B6 04 01 00 00 3D 9D 07 9C 4C 2C 68 EC [09:39:16]CommunicateWithHost err = 0 [09:39:16]CheckOFDResponse [09:39:16]1017 (14) - 77093643461234 [09:39:16]1041 (16) - 0000000000871776 [09:39:16]1040 (4) - 139592 [09:39:16]1012 (4) - 20.08.2024 03:17 [09:39:16]1206 (1) - 0 [09:39:16]OFD Sender: Remove packet 139592 [09:39:16]ProducePacketName [09:39:16]name=ofd_packets/00139592 [09:39:16]NVStorageDeleteData [09:39:16]Write to MH i2c: 01 00 00 25 1F 44 [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: 01 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: 01 07 00 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: 01 07 00 25 1F 00 00 00 00 00 CC 0C 23 [09:39:16]RasterBufferAndPrint [09:39:16]line [09:39:16]line [09:39:16]line [09:39:16]line [09:39:16]line [09:39:16]written 0, free lines is 3282 [09:39:16]MH_Cut [09:39:16]Write to MH i2c: D1 01 00 2C 1F 01 1D [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: D1 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: D1 01 00 [09:39:16]MH_I2C_Read... [09:39:16]Read from MH i2c: D1 01 00 2C 1F 00 1C [09:39:16]Write to MH i2c: 01 00 00 2D 1F 4C [09:39:16]Write i2c OK [09:39:16]MH_I2C_Read... [09:39:16]OFD Sender: No OFD packet to send [09:39:17]*** Cut start [09:39:17]*** Partial cut [09:39:17]*** CUTSNS_PIN = 1 [09:39:17]*** CUTSNS_PIN = 0 [09:39:17]*** Brake cut motor [09:39:17]Read from MH i2c: 01 [09:39:17]MH_I2C_Read... [09:39:17]*** Stop cut motor [09:39:17]*** Cut end [09:39:17]Read from MH i2c: 01 07 00 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: 01 07 00 2D 1F 00 00 00 00 00 FF 0F 61 [09:39:17]process_action close_receipt done [09:39:17]requested_data is exist [09:39:17]produce_requested_data [09:39:17]requested_item fm.sn is exist - process it [09:39:17]wFMCommunicate request_size=4 [09:39:17]MH_SAM_APDU [09:39:17]CAPDU: 80 11 00 00 [09:39:17]Write to MH i2c: E2 08 00 2E 1F 80 11 00 00 00 00 00 00 C7 [09:39:17]Write i2c OK [09:39:17]MH_I2C_Read... [09:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:17]Read from MH i2c: E2 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 17 00 [09:39:17]MH_I2C_Read... [09:39:17]Read from MH i2c: E2 17 00 2E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [09:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:39:17]wFMCommunicate OK [09:39:17]requested_item fd.num is exist - process it [09:39:17]SAM_PROTO_GetFieldsCounters [09:39:17]wFMCommunicate request_size=4 [09:39:17]MH_SAM_APDU [09:39:17]CAPDU: 80 13 00 00 [09:39:17]Write to MH i2c: E2 08 00 2F 1F 80 13 00 00 00 00 00 00 CA [09:39:17]Write i2c OK [09:39:17]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 62 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 62 00 2F 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 48 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [09:39:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 48 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:18]wFMCommunicate OK [09:39:18]SAM_PROTO_GetFieldsCounters done [09:39:18]requested_item shift.num is exist - process it [09:39:18]requested_item shift.opened is exist - process it [09:39:18]req_shift_opened [09:39:18]FM_GetShiftState [09:39:18]SAM_PROTO_GetShiftState [09:39:18]wFMCommunicate request_size=4 [09:39:18]MH_SAM_APDU [09:39:18]CAPDU: 80 13 01 00 [09:39:18]Write to MH i2c: E2 08 00 30 1F 80 13 01 00 00 00 00 00 CC [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 0E 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 0E 00 30 1F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5D [09:39:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:39:18]wFMCommunicate OK [09:39:18]SAM_PROTO_GetShiftState done [09:39:18]FM_GetShiftState done [09:39:18]req_shift_opened done [09:39:18]requested_item shift.open_date is exist - process it [09:39:18]req_shift_open_date [09:39:18]req_shift_open_date done [09:39:18]produce_requested_data done [09:39:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139592,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:39:18]process_action_free close_receipt [09:39:18]json_value_free [09:39:18]json_value_free done [09:39:18]process_json_proto returns [09:39:18]Send response to host [09:39:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139592,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:39:18]free response buf [09:39:18]execute_script done [09:39:18]execute_script returns [09:39:18]free content buf [09:39:18]Sock 7.Close socket [09:39:18]Sock 7.Thread stoped [09:39:19]accept exits with 9 [09:39:19]New connection [09:39:19]New thread 3067071844 created [09:39:19]Thread 3067215204 joined [09:39:19]Waiting for new connection... [09:39:19] Sock 9.Parse request [09:39:19]Sock 9.Check first char [09:39:19]Sock 9.First char is OK [09:39:19]request: POST /json_proto HTTP/1.0 [09:39:19]Method: POST [09:39:19]URL: /json_proto [09:39:19]Method is POST - this is cgi request [09:39:19]url: /json_proto [09:39:19]query_string will be loaded in cgi processing [09:39:19]execute_cgi json_proto POST (null) [09:39:19]execute_cgi path=json_proto method=POST [09:39:19]POST find Content-Length [09:39:19]Host: 172.17.45.67:8080 [09:39:19]Content-Length: 677 [09:39:19]Content-Type: application/json [09:39:19] [09:39:19]POST finish read [09:39:19]Found Content-Length = 677 [09:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:19]execute_script... [09:39:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:19]POST & json_proto [09:39:19]process_json_proto [09:39:19]json parsed OK: [09:39:19]protocol is kg_v1.0 [09:39:19]action value=close_receipt [09:39:19]process_action close_receipt [09:39:19]cmd_close_receipt [09:39:19]MH_GetDate [09:39:19]Write to MH i2c: F0 00 00 31 1F 3F [09:39:19]Write i2c OK [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: F0 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: F0 09 00 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: F0 09 00 31 1F 00 4A 64 C4 66 5F 7F 2B 66 8F [09:39:19]GetLastDocTimeStamp 1724146757 [09:39:19]current date 1724146762 [09:39:19]FM_GetShiftState [09:39:19]SAM_PROTO_GetShiftState [09:39:19]wFMCommunicate request_size=4 [09:39:19]MH_SAM_APDU [09:39:19]CAPDU: 80 13 01 00 [09:39:19]Write to MH i2c: E2 08 00 32 1F 80 13 01 00 00 00 00 00 CE [09:39:19]Write i2c OK [09:39:19]MH_I2C_Read... [09:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:19]Read from MH i2c: E2 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: E2 0E 00 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: E2 0E 00 32 1F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5F [09:39:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:39:19]wFMCommunicate OK [09:39:19]SAM_PROTO_GetShiftState done [09:39:19]FM_GetShiftState done [09:39:19]opened in 1724113785 [09:39:19]opened+sec_in_day 1724200185 [09:39:19]quantity*price = 20001 [09:39:19]sum+1 = 20002 [09:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 65 20.08.2024 09:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139593 ФПД: 80269844809757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T093922&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139593&fm=80269844809757&tin=02508201610067®Number=0000000000092569&sum=20000 [09:39:21]StoreToDocumentArchive [09:39:21]shift 453 fd 139593 [09:39:21]save to /storage/0453/doc_00139593 [09:39:21]save last doc name /storage/0453/doc_00139593 to /storage/kkm_last_doc_name [09:39:21]save OK [09:39:21]Clear old archive folders... [09:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:21]tlvbuf is 00DE17F0 [09:39:21]SAM_PROTO_ClearQueue [09:39:21]wFMCommunicate request_size=4 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 09 00 00 [09:39:21]Write to MH i2c: E2 08 00 3F 1F 80 09 00 00 00 00 00 00 D0 [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 3F 1F 00 90 00 D2 [09:39:21]RAPDU: 90 00 [09:39:21]wFMCommunicate OK [09:39:21]SAM_PROTO_ClearQueue done [09:39:21]KKMCreateOFDPacket [09:39:21]OFDProtocolAddRootSTLVToBuf [09:39:21]FM_MakeSignedData [09:39:21]FM_MakeSignedData [09:39:21]SAM_PROTO_SignData [09:39:21]wFMCommunicate request_size=4 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 0D 01 02 [09:39:21]Write to MH i2c: E2 08 00 40 1F 80 0D 01 02 00 00 00 00 D8 [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 40 1F 00 90 00 D3 [09:39:21]RAPDU: 90 00 [09:39:21]wFMCommunicate OK [09:39:21]wFMCommunicate request_size=255 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4A 64 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 21 02 00 35 04 06 00 49 [09:39:21]Write to MH i2c: E2 02 01 41 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4A 64 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 21 02 00 35 04 06 00 49 00 00 F7 [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 41 1F 00 90 00 D4 [09:39:21]RAPDU: 90 00 [09:39:21]wFMCommunicate OK [09:39:21]wFMCommunicate request_size=10 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 0D 02 02 05 01 47 96 08 1D [09:39:21]Write to MH i2c: E2 0D 00 42 1F 80 0D 02 02 05 00 01 47 96 08 1D 00 00 E8 [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 42 1F 00 90 00 D5 [09:39:21]RAPDU: 90 00 [09:39:21]wFMCommunicate OK [09:39:21]wFMCommunicate request_size=4 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 0D 03 02 [09:39:21]Write to MH i2c: E2 08 00 43 1F 80 0D 03 02 00 00 00 00 DD [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 0B 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 0B 00 43 1F 00 7D 0E 0F CE 66 DD C3 7E 90 00 CA [09:39:21]RAPDU: 7D 0E 0F CE 66 DD C3 7E 90 00 [09:39:21]wFMCommunicate OK [09:39:21]SAM_PROTO_SignData done [09:39:21]FM_MakeSignedData done [09:39:21]CreateOFDProtocolMessage [09:39:21]wFMCommunicate request_size=4 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 11 00 00 [09:39:21]Write to MH i2c: E2 08 00 44 1F 80 11 00 00 00 00 00 00 DD [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 17 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 17 00 44 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 34 [09:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:39:21]wFMCommunicate OK [09:39:21]CreateOFDProtocolMessage done [09:39:21]OFDSenderStorePacket 139593 [09:39:21]StoreOFDPacket docnum=139593 [09:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 4F 07 01 F8 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4A 64 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 21 02 00 35 04 06 00 49 01 47 96 08 1D 7D 0E 0F CE 66 DD C3 7E [09:39:21]CheckFolder [09:39:21]dirname=/storage/ofd_packets [09:39:21]CheckFolder done [09:39:21]ProducePacketName [09:39:21]name=ofd_packets/00139593 [09:39:21]NVStorageSaveData ofd_packets/00139593 [09:39:21]File name is /storage/ofd_packets/00139593 [09:39:21]Write 301 bytes [09:39:21]NVStorageSaveData done [09:39:21]OFDSenderStorePacket done [09:39:21]KKMCreateOFDPacket done [09:39:21]NVStorageSaveData kkm_last_timestamp [09:39:21]File name is /storage/kkm_last_timestamp [09:39:21]Write 4 bytes [09:39:21]NVStorageSaveData done [09:39:21]ExternCall_PrintAddStr [09:39:21]wPrintStart [09:39:21]Write to MH i2c: 01 00 00 45 1F 64 [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: 01 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: 01 07 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: 01 07 00 45 1F 00 00 00 00 00 FF 0F 79 [09:39:21]RasterBufferAndPrint [09:39:21]line Счет N : (1)593437 [09:39:21]line ИНН: 02508201610067 [09:39:21]line Контрольно-Кассовый Чек [09:39:21]line ПРОДАЖА [09:39:21]line ТРК (МРК, ГНК) : 52 [09:39:21]line Товар: 2710124130 [09:39:21]line Аи-92-К-5 [09:39:21]line 2.950 * 67.80 [09:39:21]line = 200.01 [09:39:21]line НДС 12% НСП 1% [09:39:21]line > о реализуемом товаре [09:39:21]line ОКРУГЛЕНИЕ: -0.01 [09:39:21]line ИТОГО: 200.00 [09:39:21]line Внесено: 200.00 [09:39:21]line СДАЧА: 0.00 [09:39:21]line НСП 1% : 1.77 [09:39:21]line НДС 12% : 21.24 [09:39:21]line Наличными: 200.00 [09:39:21]line Безнал.: 0.00 [09:39:21]line Место: АЗС № 136 "Партнер Нефть" [09:39:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:39:21]line СНО: Общий режим [09:39:21]line Чек 65 20.08.2024 09:39 [09:39:21]line Смена: 453 ФФД: 1.0 [09:39:21]line ЗНМ: 0300000067 [09:39:21]line РНМ: 0000000000092569 [09:39:21]line Версия ККМ: 001 [09:39:21]line ФМ: 0000000000871776 [09:39:21]line ФД: 139593 [09:39:21]line ФПД: 80269844809757 [09:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T093922&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139593&fm=80269844809757&tin=02508201610067®Number=0000000000092569&sum=20000 [09:39:21]OFD Sender: Processing packet 139593 [packets to send 137, broken 136] [09:39:21]ProducePacketName [09:39:21]name=ofd_packets/00139593 [09:39:21]OFD Sender: To server: pG, [09:39:21]CommunicateWithHost lk.salyk.kg:30040 [09:39:21]ConnectInit lk.salyk.kg [09:39:21]written 0, free lines is 4095 [09:39:21]Connected sock=10 [09:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 4F 07 01 F8 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 4A 64 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 21 02 00 35 04 06 00 49 01 47 96 08 1D 7D 0E 0F CE 66 DD C3 7E [09:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 95 15 47 00 AE DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 21 02 00 F4 03 04 00 DE 0A C4 66 B6 04 01 00 00 D4 3D 53 A0 13 95 27 9D [09:39:22]CommunicateWithHost err = 0 [09:39:22]CheckOFDResponse [09:39:22]1017 (14) - 77093643461234 [09:39:22]1041 (16) - 0000000000871776 [09:39:22]1040 (4) - 139593 [09:39:22]1012 (4) - 20.08.2024 03:17 [09:39:22]1206 (1) - 0 [09:39:22]OFD Sender: Remove packet 139593 [09:39:22]ProducePacketName [09:39:22]name=ofd_packets/00139593 [09:39:22]NVStorageDeleteData [09:39:22]Write to MH i2c: 01 00 00 70 1F 8F [09:39:22]Write i2c OK [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: 01 [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: 01 07 00 [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: 01 07 00 70 1F 00 00 00 00 00 C7 0C 69 [09:39:22]RasterBufferAndPrint [09:39:22]line [09:39:22]line [09:39:22]line [09:39:22]line [09:39:22]line [09:39:22]written 0, free lines is 3285 [09:39:22]MH_Cut [09:39:22]Write to MH i2c: D1 01 00 77 1F 01 68 [09:39:22]Write i2c OK [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: D1 [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: D1 01 00 [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: D1 01 00 77 1F 00 67 [09:39:22]Write to MH i2c: 01 00 00 78 1F 97 [09:39:22]Write i2c OK [09:39:22]MH_I2C_Read... [09:39:22]OFD Sender: No OFD packet to send [09:39:23]*** Cut start [09:39:23]*** Partial cut [09:39:23]*** CUTSNS_PIN = 1 [09:39:23]*** CUTSNS_PIN = 0 [09:39:23]*** Brake cut motor [09:39:23]Read from MH i2c: 01 [09:39:23]MH_I2C_Read... [09:39:23]*** Stop cut motor [09:39:23]*** Cut end [09:39:23]Read from MH i2c: 01 07 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: 01 07 00 78 1F 00 00 00 00 00 FF 0F AC [09:39:23]process_action close_receipt done [09:39:23]requested_data is exist [09:39:23]produce_requested_data [09:39:23]requested_item fm.sn is exist - process it [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 11 00 00 [09:39:23]Write to MH i2c: E2 08 00 79 1F 80 11 00 00 00 00 00 00 12 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 17 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 17 00 79 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [09:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:39:23]wFMCommunicate OK [09:39:23]requested_item fd.num is exist - process it [09:39:23]SAM_PROTO_GetFieldsCounters [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 13 00 00 [09:39:23]Write to MH i2c: E2 08 00 7A 1F 80 13 00 00 00 00 00 00 15 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 62 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 62 00 7A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 49 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [09:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 49 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:23]wFMCommunicate OK [09:39:23]SAM_PROTO_GetFieldsCounters done [09:39:23]requested_item shift.num is exist - process it [09:39:23]requested_item shift.opened is exist - process it [09:39:23]req_shift_opened [09:39:23]FM_GetShiftState [09:39:23]SAM_PROTO_GetShiftState [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 13 01 00 [09:39:23]Write to MH i2c: E2 08 00 7B 1F 80 13 01 00 00 00 00 00 17 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 0E 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 0E 00 7B 1F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A8 [09:39:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:39:23]wFMCommunicate OK [09:39:23]SAM_PROTO_GetShiftState done [09:39:23]FM_GetShiftState done [09:39:23]req_shift_opened done [09:39:23]requested_item shift.open_date is exist - process it [09:39:23]req_shift_open_date [09:39:23]req_shift_open_date done [09:39:23]produce_requested_data done [09:39:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139593,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:39:23]process_action_free close_receipt [09:39:23]json_value_free [09:39:23]json_value_free done [09:39:23]process_json_proto returns [09:39:23]Send response to host [09:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139593,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:39:23]free response buf [09:39:23]execute_script done [09:39:23]execute_script returns [09:39:23]free content buf [09:39:23]Sock 9.Close socket [09:39:23]Sock 9.Thread stoped [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:04]accept exits with 7 [09:43:04]New connection [09:43:04]New thread 3067215204 created [09:43:04]Thread 3067071844 joined [09:43:04]Waiting for new connection... [09:43:04] Sock 7.Parse request [09:43:04]Sock 7.Check first char [09:43:04]Sock 7.First char is OK [09:43:04]request: POST /json_proto HTTP/1.0 [09:43:04]Method: POST [09:43:04]URL: /json_proto [09:43:04]Method is POST - this is cgi request [09:43:04]url: /json_proto [09:43:04]query_string will be loaded in cgi processing [09:43:04]execute_cgi json_proto POST (null) [09:43:04]execute_cgi path=json_proto method=POST [09:43:04]POST find Content-Length [09:43:04]Host: 172.17.45.67:8080 [09:43:04]Content-Length: 797 [09:43:04]Content-Type: application/json [09:43:04] [09:43:04]POST finish read [09:43:04]Found Content-Length = 797 [09:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:04]execute_script... [09:43: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)593438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:04]POST & json_proto [09:43:04]process_json_proto [09:43:04]json parsed OK: [09:43:04]protocol is kg_v1.0 [09:43:04]action value=close_receipt [09:43:04]process_action close_receipt [09:43:04]cmd_close_receipt [09:43:04]MH_GetDate [09:43:04]Write to MH i2c: F0 00 00 7C 1F 8A [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: F0 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: F0 09 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: F0 09 00 7C 1F 00 2B 65 C4 66 5F 7F 2B 66 BC [09:43:04]GetLastDocTimeStamp 1724146762 [09:43:04]current date 1724146987 [09:43:04]FM_GetShiftState [09:43:04]SAM_PROTO_GetShiftState [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 13 01 00 [09:43:04]Write to MH i2c: E2 08 00 7D 1F 80 13 01 00 00 00 00 00 19 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0E 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0E 00 7D 1F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AA [09:43:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:43:04]wFMCommunicate OK [09:43:04]SAM_PROTO_GetShiftState done [09:43:04]FM_GetShiftState done [09:43:04]opened in 1724113785 [09:43:04]opened+sec_in_day 1724200185 [09:43:04]quantity*price = 0 [09:43:04]sum+1 = 1 [09:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 66 20.08.2024 09:43 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139594 ФПД: 63016438970175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094307&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139594&fm=63016438970175&tin=02508201610067®Number=0000000000092569&sum=0 [09:43:05]StoreToDocumentArchive [09:43:05]shift 453 fd 139594 [09:43:05]save to /storage/0453/doc_00139594 [09:43:05]save last doc name /storage/0453/doc_00139594 to /storage/kkm_last_doc_name [09:43:05]save OK [09:43:05]Clear old archive folders... [09:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:43:05]tlvbuf is 00DDB170 [09:43:05]SAM_PROTO_ClearQueue [09:43:05]wFMCommunicate request_size=4 [09:43:05]MH_SAM_APDU [09:43:05]CAPDU: 80 09 00 00 [09:43:06]Write to MH i2c: E2 08 00 8A 1F 80 09 00 00 00 00 00 00 1B [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 8A 1F 00 90 00 1D [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]SAM_PROTO_ClearQueue done [09:43:06]KKMCreateOFDPacket [09:43:06]OFDProtocolAddRootSTLVToBuf [09:43:06]FM_MakeSignedData [09:43:06]FM_MakeSignedData [09:43:06]SAM_PROTO_SignData [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 01 02 [09:43:06]Write to MH i2c: E2 08 00 8B 1F 80 0D 01 02 00 00 00 00 23 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 8B 1F 00 90 00 1E [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]wFMCommunicate request_size=255 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B 65 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 21 02 00 35 04 06 00 [09:43:06]Write to MH i2c: E2 02 01 8C 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B 65 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 21 02 00 35 04 06 00 00 00 6E [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 8C 1F 00 90 00 1F [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]wFMCommunicate request_size=11 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 02 02 06 39 50 28 75 B7 3F [09:43:06]Write to MH i2c: E2 0E 00 8D 1F 80 0D 02 02 06 00 39 50 28 75 B7 3F 00 00 4E [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 8D 1F 00 90 00 20 [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 03 02 [09:43:06]Write to MH i2c: E2 08 00 8E 1F 80 0D 03 02 00 00 00 00 28 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 0B 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 0B 00 8E 1F 00 35 A0 FB C4 95 33 DD C3 90 00 25 [09:43:06]RAPDU: 35 A0 FB C4 95 33 DD C3 90 00 [09:43:06]wFMCommunicate OK [09:43:06]SAM_PROTO_SignData done [09:43:06]FM_MakeSignedData done [09:43:06]CreateOFDProtocolMessage [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 11 00 00 [09:43:06]Write to MH i2c: E2 08 00 8F 1F 80 11 00 00 00 00 00 00 28 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 8F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [09:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:43:06]wFMCommunicate OK [09:43:06]CreateOFDProtocolMessage done [09:43:06]OFDSenderStorePacket 139594 [09:43:06]StoreOFDPacket docnum=139594 [09:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 AE 68 08 01 58 88 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B 65 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 21 02 00 35 04 06 00 39 50 28 75 B7 3F 35 A0 FB C4 95 33 DD C3 [09:43:06]CheckFolder [09:43:06]dirname=/storage/ofd_packets [09:43:06]CheckFolder done [09:43:06]ProducePacketName [09:43:06]name=ofd_packets/00139594 [09:43:06]NVStorageSaveData ofd_packets/00139594 [09:43:06]File name is /storage/ofd_packets/00139594 [09:43:06]Write 302 bytes [09:43:06]NVStorageSaveData done [09:43:06]OFDSenderStorePacket done [09:43:06]KKMCreateOFDPacket done [09:43:06]NVStorageSaveData kkm_last_timestamp [09:43:06]File name is /storage/kkm_last_timestamp [09:43:06]Write 4 bytes [09:43:06]NVStorageSaveData done [09:43:06]OFD Sender: Processing packet 139594 [packets to send 137, broken 136] [09:43:06]ProducePacketName [09:43:06]name=ofd_packets/00139594 [09:43:06]OFD Sender: To server: pG, [09:43:06]CommunicateWithHost lk.salyk.kg:30040 [09:43:06]ConnectInit lk.salyk.kg [09:43:06]ExternCall_PrintAddStr [09:43:06]wPrintStart [09:43:06]Write to MH i2c: 01 00 00 90 1F AF [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 90 1F 00 00 00 00 00 FF 0F C4 [09:43:06]RasterBufferAndPrint [09:43:06]line Счет N : (1)593438 [09:43:06]line ИНН: 02508201610067 [09:43:06]line Контрольно-Кассовый Чек [09:43:06]line ПРОДАЖА [09:43:06]line ТРК (МРК, ГНК) : 21 [09:43:06]line Товар: 2710194210 [09:43:06]line ДТ(л)-К-5 [09:43:06]line 28.000 * 0.00 [09:43:06]line = 0.00 [09:43:06]line НДС 12% НСП 1% [09:43:06]line > о реализуемом товаре [09:43:06]line ИТОГО: 0.00 [09:43:06]line НСП 1% : 0.00 [09:43:06]line НДС 12% : 0.00 [09:43:06]line Наличными: 0.00 [09:43:06]line Безнал.: 0.00 [09:43:06]line Место: АЗС № 136 "Партнер Нефть" [09:43:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:43:06]line СНО: Общий режим [09:43:06]line Чек 66 20.08.2024 09:43 [09:43:06]line Смена: 453 ФФД: 1.0 [09:43:06]line ЗНМ: 0300000067 [09:43:06]line РНМ: 0000000000092569 [09:43:06]line Версия ККМ: 001 [09:43:06]line Талоны: Топливная Карта [09:43:06]line 99761 [09:43:06]line ФМ: 0000000000871776 [09:43:06]line ФД: 139594 [09:43:06]line ФПД: 63016438970175 [09:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094307&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139594&fm=63016438970175&tin=02508201610067®Number=0000000000092569&sum=0 [09:43:06]Connected sock=11 [09:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 AE 68 08 01 58 88 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B 65 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 21 02 00 35 04 06 00 39 50 28 75 B7 3F 35 A0 FB C4 95 33 DD C3 [09:43:06]written 0, free lines is 4095 [09:43:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AA 0E 47 00 07 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 21 02 00 F4 03 04 00 BF 0B C4 66 B6 04 01 00 00 BA 4A 7E 71 FC 5B 7A 40 [09:43:07]CommunicateWithHost err = 0 [09:43:07]CheckOFDResponse [09:43:07]1017 (14) - 77093643461234 [09:43:07]1041 (16) - 0000000000871776 [09:43:07]1040 (4) - 139594 [09:43:07]1012 (4) - 20.08.2024 03:21 [09:43:07]1206 (1) - 0 [09:43:07]OFD Sender: Remove packet 139594 [09:43:07]ProducePacketName [09:43:07]name=ofd_packets/00139594 [09:43:07]NVStorageDeleteData [09:43:07]Write to MH i2c: 01 00 00 BA 1F D9 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 BA 1F 00 00 00 00 00 CA 0C B6 [09:43:07]RasterBufferAndPrint [09:43:07]line [09:43:07]line [09:43:07]line [09:43:07]line [09:43:07]line [09:43:07]written 0, free lines is 3280 [09:43:07]MH_Cut [09:43:07]Write to MH i2c: D1 01 00 C1 1F 01 B2 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: D1 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: D1 01 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: D1 01 00 C1 1F 00 B1 [09:43:07]Write to MH i2c: 01 00 00 C2 1F E1 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]OFD Sender: No OFD packet to send [09:43:08]*** Cut start [09:43:08]*** Partial cut [09:43:08]*** CUTSNS_PIN = 1 [09:43:08]*** CUTSNS_PIN = 0 [09:43:08]*** Brake cut motor [09:43:08]Read from MH i2c: 01 [09:43:08]MH_I2C_Read... [09:43:08]*** Stop cut motor [09:43:08]*** Cut end [09:43:08]Read from MH i2c: 01 07 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: 01 07 00 C2 1F 00 00 00 00 00 FF 0F F6 [09:43:08]process_action close_receipt done [09:43:08]requested_data is exist [09:43:08]produce_requested_data [09:43:08]requested_item fm.sn is exist - process it [09:43:08]wFMCommunicate request_size=4 [09:43:08]MH_SAM_APDU [09:43:08]CAPDU: 80 11 00 00 [09:43:08]Write to MH i2c: E2 08 00 C3 1F 80 11 00 00 00 00 00 00 5C [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:08]Read from MH i2c: E2 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 17 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 17 00 C3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B3 [09:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:43:08]wFMCommunicate OK [09:43:08]requested_item fd.num is exist - process it [09:43:08]SAM_PROTO_GetFieldsCounters [09:43:08]wFMCommunicate request_size=4 [09:43:08]MH_SAM_APDU [09:43:08]CAPDU: 80 13 00 00 [09:43:08]Write to MH i2c: E2 08 00 C4 1F 80 13 00 00 00 00 00 00 5F [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:08]Read from MH i2c: E2 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 62 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 62 00 C4 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [09:43:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:08]wFMCommunicate OK [09:43:08]SAM_PROTO_GetFieldsCounters done [09:43:08]requested_item shift.num is exist - process it [09:43:08]requested_item shift.opened is exist - process it [09:43:08]req_shift_opened [09:43:08]FM_GetShiftState [09:43:08]SAM_PROTO_GetShiftState [09:43:08]wFMCommunicate request_size=4 [09:43:08]MH_SAM_APDU [09:43:08]CAPDU: 80 13 01 00 [09:43:08]Write to MH i2c: E2 08 00 C5 1F 80 13 01 00 00 00 00 00 61 [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:08]Read from MH i2c: E2 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 0E 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: E2 0E 00 C5 1F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F2 [09:43:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:43:08]wFMCommunicate OK [09:43:08]SAM_PROTO_GetShiftState done [09:43:08]FM_GetShiftState done [09:43:08]req_shift_opened done [09:43:08]requested_item shift.open_date is exist - process it [09:43:08]req_shift_open_date [09:43:08]req_shift_open_date done [09:43:08]produce_requested_data done [09:43:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139594,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:43:08]process_action_free close_receipt [09:43:08]json_value_free [09:43:08]json_value_free done [09:43:08]process_json_proto returns [09:43:08]Send response to host [09:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139594,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:43:08]free response buf [09:43:08]execute_script done [09:43:08]execute_script returns [09:43:08]free content buf [09:43:08]Sock 7.Close socket [09:43:08]Sock 7.Thread stoped [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]accept exits with 9 [09:43:32]New connection [09:43:32]New thread 3067071844 created [09:43:32]Thread 3067215204 joined [09:43:32]Waiting for new connection... [09:43:32] Sock 9.Parse request [09:43:32]Sock 9.Check first char [09:43:32]Sock 9.First char is OK [09:43:32]request: POST /json_proto HTTP/1.0 [09:43:32]Method: POST [09:43:32]URL: /json_proto [09:43:32]Method is POST - this is cgi request [09:43:32]url: /json_proto [09:43:32]query_string will be loaded in cgi processing [09:43:32]execute_cgi json_proto POST (null) [09:43:32]execute_cgi path=json_proto method=POST [09:43:32]POST find Content-Length [09:43:32]Host: 172.17.45.67:8080 [09:43:32]Content-Length: 677 [09:43:32]Content-Type: application/json [09:43:32] [09:43:32]POST finish read [09:43:32]Found Content-Length = 677 [09:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:32]execute_script... [09:43: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)593439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:32]POST & json_proto [09:43:32]process_json_proto [09:43:32]json parsed OK: [09:43:32]protocol is kg_v1.0 [09:43:32]action value=close_receipt [09:43:32]process_action close_receipt [09:43:32]cmd_close_receipt [09:43:32]MH_GetDate [09:43:32]Write to MH i2c: F0 00 00 C6 1F D4 [09:43:32]Write i2c OK [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: F0 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: F0 09 00 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: F0 09 00 C6 1F 00 47 65 C4 66 5F 7F 2B 66 22 [09:43:32]GetLastDocTimeStamp 1724146987 [09:43:32]current date 1724147015 [09:43:32]FM_GetShiftState [09:43:32]SAM_PROTO_GetShiftState [09:43:32]wFMCommunicate request_size=4 [09:43:32]MH_SAM_APDU [09:43:32]CAPDU: 80 13 01 00 [09:43:32]Write to MH i2c: E2 08 00 C7 1F 80 13 01 00 00 00 00 00 63 [09:43:32]Write i2c OK [09:43:32]MH_I2C_Read... [09:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:32]Read from MH i2c: E2 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 0E 00 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 0E 00 C7 1F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F4 [09:43:32]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:43:32]wFMCommunicate OK [09:43:32]SAM_PROTO_GetShiftState done [09:43:32]FM_GetShiftState done [09:43:32]opened in 1724113785 [09:43:32]opened+sec_in_day 1724200185 [09:43:32]quantity*price = 50036 [09:43:32]sum+1 = 50037 [09:43:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 67 20.08.2024 09:43 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139595 ФПД: 92623858754836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094335&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139595&fm=92623858754836&tin=02508201610067®Number=0000000000092569&sum=50000 [09:43:33]StoreToDocumentArchive [09:43:33]shift 453 fd 139595 [09:43:33]save to /storage/0453/doc_00139595 [09:43:33]save last doc name /storage/0453/doc_00139595 to /storage/kkm_last_doc_name [09:43:33]save OK [09:43:33]Clear old archive folders... [09:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:33]tlvbuf is B6DE8710 [09:43:33]SAM_PROTO_ClearQueue [09:43:33]wFMCommunicate request_size=4 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 09 00 00 [09:43:33]Write to MH i2c: E2 08 00 D4 1F 80 09 00 00 00 00 00 00 65 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 D4 1F 00 90 00 67 [09:43:33]RAPDU: 90 00 [09:43:33]wFMCommunicate OK [09:43:33]SAM_PROTO_ClearQueue done [09:43:33]KKMCreateOFDPacket [09:43:33]OFDProtocolAddRootSTLVToBuf [09:43:33]FM_MakeSignedData [09:43:33]FM_MakeSignedData [09:43:33]SAM_PROTO_SignData [09:43:33]wFMCommunicate request_size=4 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 0D 01 02 [09:43:33]Write to MH i2c: E2 08 00 D5 1F 80 0D 01 02 00 00 00 00 6D [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 D5 1F 00 90 00 68 [09:43:33]RAPDU: 90 00 [09:43:33]wFMCommunicate OK [09:43:33]wFMCommunicate request_size=255 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 47 65 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 21 02 00 35 04 06 00 54 [09:43:33]Write to MH i2c: E2 02 01 D6 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 47 65 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 21 02 00 35 04 06 00 54 00 00 97 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 D6 1F 00 90 00 69 [09:43:33]RAPDU: 90 00 [09:43:33]wFMCommunicate OK [09:43:33]wFMCommunicate request_size=10 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 0D 02 02 05 3D AC 32 E5 14 [09:43:33]Write to MH i2c: E2 0D 00 D7 1F 80 0D 02 02 05 00 3D AC 32 E5 14 00 00 8E [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 D7 1F 00 90 00 6A [09:43:33]RAPDU: 90 00 [09:43:33]wFMCommunicate OK [09:43:33]wFMCommunicate request_size=4 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 0D 03 02 [09:43:33]Write to MH i2c: E2 08 00 D8 1F 80 0D 03 02 00 00 00 00 72 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 0B 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 0B 00 D8 1F 00 30 95 8C EE 78 A4 EA C2 90 00 7A [09:43:33]RAPDU: 30 95 8C EE 78 A4 EA C2 90 00 [09:43:33]wFMCommunicate OK [09:43:33]SAM_PROTO_SignData done [09:43:33]FM_MakeSignedData done [09:43:33]CreateOFDProtocolMessage [09:43:33]wFMCommunicate request_size=4 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 11 00 00 [09:43:33]Write to MH i2c: E2 08 00 D9 1F 80 11 00 00 00 00 00 00 72 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 17 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 17 00 D9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C9 [09:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:43:34]wFMCommunicate OK [09:43:34]CreateOFDProtocolMessage done [09:43:34]OFDSenderStorePacket 139595 [09:43:34]StoreOFDPacket docnum=139595 [09:43:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 55 91 07 01 D3 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 47 65 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 21 02 00 35 04 06 00 54 3D AC 32 E5 14 30 95 8C EE 78 A4 EA C2 [09:43:34]CheckFolder [09:43:34]dirname=/storage/ofd_packets [09:43:34]CheckFolder done [09:43:34]ProducePacketName [09:43:34]name=ofd_packets/00139595 [09:43:34]NVStorageSaveData ofd_packets/00139595 [09:43:34]File name is /storage/ofd_packets/00139595 [09:43:34]Write 301 bytes [09:43:34]NVStorageSaveData done [09:43:34]OFDSenderStorePacket done [09:43:34]KKMCreateOFDPacket done [09:43:34]NVStorageSaveData kkm_last_timestamp [09:43:34]File name is /storage/kkm_last_timestamp [09:43:34]Write 4 bytes [09:43:34]NVStorageSaveData done [09:43:34]ExternCall_PrintAddStr [09:43:34]wPrintStart [09:43:34]Write to MH i2c: 01 00 00 DA 1F F9 [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 07 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 07 00 DA 1F 00 00 00 00 00 FF 0F 0E [09:43:34]RasterBufferAndPrint [09:43:34]line Счет N : (1)593439 [09:43:34]line ИНН: 02508201610067 [09:43:34]line Контрольно-Кассовый Чек [09:43:34]line ПРОДАЖА [09:43:34]line ТРК (МРК, ГНК) : 62 [09:43:34]line Товар: 2710124130 [09:43:34]line Аи-92-К-5 [09:43:34]line 7.380 * 67.80 [09:43:34]line = 500.36 [09:43:34]line НДС 12% НСП 1% [09:43:34]line > о реализуемом товаре [09:43:34]line ОКРУГЛЕНИЕ: -0.36 [09:43:34]line ИТОГО: 500.00 [09:43:34]line Внесено: 500.00 [09:43:34]line СДАЧА: 0.00 [09:43:34]line НСП 1% : 4.43 [09:43:34]line НДС 12% : 53.14 [09:43:34]line Наличными: 500.00 [09:43:34]line Безнал.: 0.00 [09:43:34]line Место: АЗС № 136 "Партнер Нефть" [09:43:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:43:34]line СНО: Общий режим [09:43:34]line Чек 67 20.08.2024 09:43 [09:43:34]line Смена: 453 ФФД: 1.0 [09:43:34]line ЗНМ: 0300000067 [09:43:34]line РНМ: 0000000000092569 [09:43:34]line Версия ККМ: 001 [09:43:34]line ФМ: 0000000000871776 [09:43:34]line ФД: 139595 [09:43:34]line ФПД: 92623858754836 [09:43:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094335&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139595&fm=92623858754836&tin=02508201610067®Number=0000000000092569&sum=50000 [09:43:34]OFD Sender: Processing packet 139595 [packets to send 137, broken 136] [09:43:34]ProducePacketName [09:43:34]name=ofd_packets/00139595 [09:43:34]OFD Sender: To server: pG, [09:43:34]CommunicateWithHost lk.salyk.kg:30040 [09:43:34]ConnectInit lk.salyk.kg [09:43:34]written 0, free lines is 4095 [09:43:34]Connected sock=10 [09:43:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 55 91 07 01 D3 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 47 65 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 21 02 00 35 04 06 00 54 3D AC 32 E5 14 30 95 8C EE 78 A4 EA C2 [09:43:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D0 56 47 00 57 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 21 02 00 F4 03 04 00 DB 0B C4 66 B6 04 01 00 00 D0 4F 53 18 25 83 EC 6C [09:43:34]CommunicateWithHost err = 0 [09:43:34]CheckOFDResponse [09:43:34]1017 (14) - 77093643461234 [09:43:34]1041 (16) - 0000000000871776 [09:43:34]1040 (4) - 139595 [09:43:34]1012 (4) - 20.08.2024 03:22 [09:43:34]1206 (1) - 0 [09:43:34]OFD Sender: Remove packet 139595 [09:43:34]ProducePacketName [09:43:34]name=ofd_packets/00139595 [09:43:34]NVStorageDeleteData [09:43:34]Write to MH i2c: 01 00 00 05 20 25 [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 07 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 07 00 05 20 00 00 00 00 00 CD 0C 05 [09:43:34]RasterBufferAndPrint [09:43:34]line [09:43:34]line [09:43:34]line [09:43:34]line [09:43:34]line [09:43:34]written 0, free lines is 3283 [09:43:34]MH_Cut [09:43:34]Write to MH i2c: D1 01 00 0C 20 01 FE [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: D1 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: D1 01 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: D1 01 00 0C 20 00 FD [09:43:34]Write to MH i2c: 01 00 00 0D 20 2D [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:35]OFD Sender: No OFD packet to send [09:43:35]*** Cut start [09:43:35]*** Partial cut [09:43:35]*** CUTSNS_PIN = 1 [09:43:35]*** CUTSNS_PIN = 0 [09:43:35]*** Brake cut motor [09:43:36]Read from MH i2c: 01 [09:43:36]MH_I2C_Read... [09:43:36]*** Stop cut motor [09:43:36]*** Cut end [09:43:36]Read from MH i2c: 01 07 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: 01 07 00 0D 20 00 00 00 00 00 FF 0F 42 [09:43:36]process_action close_receipt done [09:43:36]requested_data is exist [09:43:36]produce_requested_data [09:43:36]requested_item fm.sn is exist - process it [09:43:36]wFMCommunicate request_size=4 [09:43:36]MH_SAM_APDU [09:43:36]CAPDU: 80 11 00 00 [09:43:36]Write to MH i2c: E2 08 00 0E 20 80 11 00 00 00 00 00 00 A8 [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 [09:43:36]MH_I2C_Read... [09:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:36]Read from MH i2c: E2 17 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 17 00 0E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FF [09:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:43:36]wFMCommunicate OK [09:43:36]requested_item fd.num is exist - process it [09:43:36]SAM_PROTO_GetFieldsCounters [09:43:36]wFMCommunicate request_size=4 [09:43:36]MH_SAM_APDU [09:43:36]CAPDU: 80 13 00 00 [09:43:36]Write to MH i2c: E2 08 00 0F 20 80 13 00 00 00 00 00 00 AB [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:36]Read from MH i2c: E2 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 62 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 62 00 0F 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [09:43:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:36]wFMCommunicate OK [09:43:36]SAM_PROTO_GetFieldsCounters done [09:43:36]requested_item shift.num is exist - process it [09:43:36]requested_item shift.opened is exist - process it [09:43:36]req_shift_opened [09:43:36]FM_GetShiftState [09:43:36]SAM_PROTO_GetShiftState [09:43:36]wFMCommunicate request_size=4 [09:43:36]MH_SAM_APDU [09:43:36]CAPDU: 80 13 01 00 [09:43:36]Write to MH i2c: E2 08 00 10 20 80 13 01 00 00 00 00 00 AD [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:36]Read from MH i2c: E2 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 0E 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 0E 00 10 20 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3E [09:43:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:43:36]wFMCommunicate OK [09:43:36]SAM_PROTO_GetShiftState done [09:43:36]FM_GetShiftState done [09:43:36]req_shift_opened done [09:43:36]requested_item shift.open_date is exist - process it [09:43:36]req_shift_open_date [09:43:36]req_shift_open_date done [09:43:36]produce_requested_data done [09:43:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139595,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:43:36]process_action_free close_receipt [09:43:36]json_value_free [09:43:36]json_value_free done [09:43:36]process_json_proto returns [09:43:36]Send response to host [09:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139595,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:43:36]free response buf [09:43:36]execute_script done [09:43:36]execute_script returns [09:43:36]free content buf [09:43:36]Sock 9.Close socket [09:43:36]Sock 9.Thread stoped [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:08]int [09:44:08]Write to MH i2c: 01 00 00 11 20 31 [09:44:08]*** FLAG_PRN_KEY set [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 07 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 07 00 11 20 00 08 00 00 00 FF 0F 4E [09:44:08]state=0 [09:44:08]Key pressed [09:44:08]Feed [09:44:08]Write to MH i2c: D8 00 00 12 20 09 [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: D8 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: D8 01 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: D8 01 00 12 20 00 0A [09:44:08]int [09:44:08]Write to MH i2c: 01 00 00 13 20 33 [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 07 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 07 00 13 20 00 48 00 00 00 3C 00 BE [09:44:08]state=2 [09:44:08]Key pressed [09:44:08]int [09:44:08]Write to MH i2c: 01 00 00 14 20 34 [09:44:08]*** FLAG_PRN_KEY reset [09:44:08]Write i2c OK [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 07 00 [09:44:08]MH_I2C_Read... [09:44:08]Read from MH i2c: 01 07 00 14 20 00 00 00 00 00 F5 0F 3F [09:44:08]state=2 [09:44:08]Stop feed [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:31]accept exits with 7 [09:47:31]New connection [09:47:31]New thread 3067215204 created [09:47:31]Thread 3067071844 joined [09:47:31]Waiting for new connection... [09:47:31] Sock 7.Parse request [09:47:31]Sock 7.Check first char [09:47:31]Sock 7.First char is OK [09:47:31]request: POST /json_proto HTTP/1.0 [09:47:31]Method: POST [09:47:31]URL: /json_proto [09:47:31]Method is POST - this is cgi request [09:47:31]url: /json_proto [09:47:31]query_string will be loaded in cgi processing [09:47:31]execute_cgi json_proto POST (null) [09:47:31]execute_cgi path=json_proto method=POST [09:47:31]POST find Content-Length [09:47:31]Host: 172.17.45.67:8080 [09:47:31]Content-Length: 792 [09:47:31]Content-Type: application/json [09:47:31] [09:47:31]POST finish read [09:47:31]Found Content-Length = 792 [09:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81754", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:31]execute_script... [09:47: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)593440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81754", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:31]POST & json_proto [09:47:31]process_json_proto [09:47:31]json parsed OK: [09:47:31]protocol is kg_v1.0 [09:47:31]action value=close_receipt [09:47:31]process_action close_receipt [09:47:31]cmd_close_receipt [09:47:31]MH_GetDate [09:47:31]Write to MH i2c: F0 00 00 15 20 24 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: F0 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: F0 09 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: F0 09 00 15 20 00 36 66 C4 66 5F 7F 2B 66 62 [09:47:31]GetLastDocTimeStamp 1724147015 [09:47:31]current date 1724147254 [09:47:31]FM_GetShiftState [09:47:31]SAM_PROTO_GetShiftState [09:47:31]wFMCommunicate request_size=4 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 13 01 00 [09:47:31]Write to MH i2c: E2 08 00 16 20 80 13 01 00 00 00 00 00 B3 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0E 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0E 00 16 20 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 44 [09:47:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:47:31]wFMCommunicate OK [09:47:31]SAM_PROTO_GetShiftState done [09:47:31]FM_GetShiftState done [09:47:31]opened in 1724113785 [09:47:31]opened+sec_in_day 1724200185 [09:47:31]quantity*price = 0 [09:47:31]sum+1 = 1 [09:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 68 20.08.2024 09:47 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 81754 ФМ: 0000000000871776 ФД: 139596 ФПД: 48068044143204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094734&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139596&fm=48068044143204&tin=02508201610067®Number=0000000000092569&sum=0 [09:47:32]StoreToDocumentArchive [09:47:32]shift 453 fd 139596 [09:47:32]save to /storage/0453/doc_00139596 [09:47:32]save last doc name /storage/0453/doc_00139596 to /storage/kkm_last_doc_name [09:47:32]save OK [09:47:32]Clear old archive folders... [09:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:32]tlvbuf is B6F95510 [09:47:32]SAM_PROTO_ClearQueue [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 09 00 00 [09:47:32]Write to MH i2c: E2 08 00 23 20 80 09 00 00 00 00 00 00 B5 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 23 20 00 90 00 B7 [09:47:32]RAPDU: 90 00 [09:47:32]wFMCommunicate OK [09:47:32]SAM_PROTO_ClearQueue done [09:47:32]KKMCreateOFDPacket [09:47:32]OFDProtocolAddRootSTLVToBuf [09:47:32]FM_MakeSignedData [09:47:32]FM_MakeSignedData [09:47:32]SAM_PROTO_SignData [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 0D 01 02 [09:47:32]Write to MH i2c: E2 08 00 24 20 80 0D 01 02 00 00 00 00 BD [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 24 20 00 90 00 B8 [09:47:32]RAPDU: 90 00 [09:47:32]wFMCommunicate OK [09:47:32]wFMCommunicate request_size=255 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 36 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 21 02 00 35 04 06 00 2B [09:47:32]Write to MH i2c: E2 02 01 25 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 44 00 00 00 F4 03 04 00 36 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 21 02 00 35 04 06 00 2B 00 00 72 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 25 20 00 90 00 B9 [09:47:32]RAPDU: 90 00 [09:47:32]wFMCommunicate OK [09:47:32]wFMCommunicate request_size=10 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 0D 02 02 05 B7 B6 B2 3A 64 [09:47:32]Write to MH i2c: E2 0D 00 26 20 80 0D 02 02 05 00 B7 B6 B2 3A 64 00 00 87 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 03 00 26 20 00 90 00 BA [09:47:32]RAPDU: 90 00 [09:47:32]wFMCommunicate OK [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 0D 03 02 [09:47:32]Write to MH i2c: E2 08 00 27 20 80 0D 03 02 00 00 00 00 C2 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 0B 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 0B 00 27 20 00 2E D4 45 97 04 40 86 45 90 00 B0 [09:47:32]RAPDU: 2E D4 45 97 04 40 86 45 90 00 [09:47:32]wFMCommunicate OK [09:47:32]SAM_PROTO_SignData done [09:47:32]FM_MakeSignedData done [09:47:32]CreateOFDProtocolMessage [09:47:32]wFMCommunicate request_size=4 [09:47:32]MH_SAM_APDU [09:47:32]CAPDU: 80 11 00 00 [09:47:32]Write to MH i2c: E2 08 00 28 20 80 11 00 00 00 00 00 00 C2 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:32]Read from MH i2c: E2 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 17 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: E2 17 00 28 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 19 [09:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:32]wFMCommunicate OK [09:47:32]CreateOFDProtocolMessage done [09:47:32]OFDSenderStorePacket 139596 [09:47:32]StoreOFDPacket docnum=139596 [09:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 33 67 07 01 79 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 36 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 21 02 00 35 04 06 00 2B B7 B6 B2 3A 64 2E D4 45 97 04 40 86 45 [09:47:32]CheckFolder [09:47:32]dirname=/storage/ofd_packets [09:47:32]CheckFolder done [09:47:32]ProducePacketName [09:47:32]name=ofd_packets/00139596 [09:47:32]NVStorageSaveData ofd_packets/00139596 [09:47:32]File name is /storage/ofd_packets/00139596 [09:47:32]Write 301 bytes [09:47:32]NVStorageSaveData done [09:47:32]OFDSenderStorePacket done [09:47:32]KKMCreateOFDPacket done [09:47:32]NVStorageSaveData kkm_last_timestamp [09:47:32]File name is /storage/kkm_last_timestamp [09:47:32]Write 4 bytes [09:47:32]NVStorageSaveData done [09:47:32]ExternCall_PrintAddStr [09:47:32]wPrintStart [09:47:32]Write to MH i2c: 01 00 00 29 20 49 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: 01 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: 01 07 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: 01 07 00 29 20 00 00 00 00 00 FF 0F 5E [09:47:32]RasterBufferAndPrint [09:47:32]line Счет N : (1)593440 [09:47:32]line ИНН: 02508201610067 [09:47:32]line Контрольно-Кассовый Чек [09:47:32]line ПРОДАЖА [09:47:32]line ТРК (МРК, ГНК) : 52 [09:47:32]line Товар: 2710124130 [09:47:32]line Аи-92-К-5 [09:47:32]line 10.000 * 0.00 [09:47:32]line = 0.00 [09:47:32]line НДС 12% НСП 1% [09:47:32]line > о реализуемом товаре [09:47:32]line ИТОГО: 0.00 [09:47:32]line НСП 1% : 0.00 [09:47:32]line НДС 12% : 0.00 [09:47:32]line Наличными: 0.00 [09:47:32]line Безнал.: 0.00 [09:47:32]line Место: АЗС № 136 "Партнер Нефть" [09:47:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:47:32]line СНО: Общий режим [09:47:32]line Чек 68 20.08.2024 09:47 [09:47:32]line Смена: 453 ФФД: 1.0 [09:47:32]line ЗНМ: 0300000067 [09:47:32]line РНМ: 0000000000092569 [09:47:32]line Версия ККМ: 001 [09:47:32]line Талоны: Топливная Карта [09:47:32]line 81754 [09:47:32]line ФМ: 0000000000871776 [09:47:32]line ФД: 139596 [09:47:32]line ФПД: 48068044143204 [09:47:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094734&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139596&fm=48068044143204&tin=02508201610067®Number=0000000000092569&sum=0 [09:47:32]written 0, free lines is 4095 [09:47:32]OFD Sender: Processing packet 139596 [packets to send 137, broken 136] [09:47:32]ProducePacketName [09:47:32]name=ofd_packets/00139596 [09:47:32]OFD Sender: To server: pG, [09:47:32]CommunicateWithHost lk.salyk.kg:30040 [09:47:32]ConnectInit lk.salyk.kg [09:47:33]Connected sock=11 [09:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 33 67 07 01 79 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 36 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 21 02 00 35 04 06 00 2B B7 B6 B2 3A 64 2E D4 45 97 04 40 86 45 [09:47:33]Write to MH i2c: 01 00 00 53 20 73 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 07 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 07 00 53 20 00 00 00 00 00 D2 0C 58 [09:47:33]RasterBufferAndPrint [09:47:33]line [09:47:33]line [09:47:33]line [09:47:33]line [09:47:33]line [09:47:33]written 0, free lines is 3288 [09:47:33]MH_Cut [09:47:33]Write to MH i2c: D1 01 00 5A 20 01 4C [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: D1 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: D1 01 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: D1 01 00 5A 20 00 4B [09:47:33]Write to MH i2c: 01 00 00 5B 20 7B [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BA 1B 47 00 C8 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 21 02 00 F4 03 04 00 C9 0C C4 66 B6 04 01 00 00 71 B0 8E 47 94 0C 77 E4 [09:47:33]CommunicateWithHost err = 0 [09:47:33]CheckOFDResponse [09:47:33]1017 (14) - 77093643461234 [09:47:33]1041 (16) - 0000000000871776 [09:47:33]1040 (4) - 139596 [09:47:33]1012 (4) - 20.08.2024 03:26 [09:47:33]1206 (1) - 0 [09:47:33]OFD Sender: Remove packet 139596 [09:47:33]ProducePacketName [09:47:33]name=ofd_packets/00139596 [09:47:33]NVStorageDeleteData [09:47:33]OFD Sender: No OFD packet to send [09:47:33]*** Cut start [09:47:33]*** Partial cut [09:47:33]*** CUTSNS_PIN = 1 [09:47:34]*** CUTSNS_PIN = 0 [09:47:34]*** Brake cut motor [09:47:34]Read from MH i2c: 01 [09:47:34]MH_I2C_Read... [09:47:34]*** Stop cut motor [09:47:34]*** Cut end [09:47:34]Read from MH i2c: 01 07 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 07 00 5B 20 00 00 00 00 00 FF 0F 90 [09:47:34]process_action close_receipt done [09:47:34]requested_data is exist [09:47:34]produce_requested_data [09:47:34]requested_item fm.sn is exist - process it [09:47:34]wFMCommunicate request_size=4 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 11 00 00 [09:47:34]Write to MH i2c: E2 08 00 5C 20 80 11 00 00 00 00 00 00 F6 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 17 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 17 00 5C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [09:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:34]wFMCommunicate OK [09:47:34]requested_item fd.num is exist - process it [09:47:34]SAM_PROTO_GetFieldsCounters [09:47:34]wFMCommunicate request_size=4 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 13 00 00 [09:47:34]Write to MH i2c: E2 08 00 5D 20 80 13 00 00 00 00 00 00 F9 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 62 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 62 00 5D 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [09:47:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:34]wFMCommunicate OK [09:47:34]SAM_PROTO_GetFieldsCounters done [09:47:34]requested_item shift.num is exist - process it [09:47:34]requested_item shift.opened is exist - process it [09:47:34]req_shift_opened [09:47:34]FM_GetShiftState [09:47:34]SAM_PROTO_GetShiftState [09:47:34]wFMCommunicate request_size=4 [09:47:34]MH_SAM_APDU [09:47:34]CAPDU: 80 13 01 00 [09:47:34]Write to MH i2c: E2 08 00 5E 20 80 13 01 00 00 00 00 00 FB [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:34]Read from MH i2c: E2 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 0E 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: E2 0E 00 5E 20 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8C [09:47:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:47:34]wFMCommunicate OK [09:47:34]SAM_PROTO_GetShiftState done [09:47:34]FM_GetShiftState done [09:47:34]req_shift_opened done [09:47:34]requested_item shift.open_date is exist - process it [09:47:34]req_shift_open_date [09:47:34]req_shift_open_date done [09:47:34]produce_requested_data done [09:47:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139596,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:47:34]process_action_free close_receipt [09:47:34]json_value_free [09:47:34]json_value_free done [09:47:34]process_json_proto returns [09:47:34]Send response to host [09:47:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139596,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:47:34]free response buf [09:47:34]execute_script done [09:47:34]execute_script returns [09:47:34]free content buf [09:47:34]Sock 7.Close socket [09:47:34]Sock 7.Thread stoped [09:47:36]int [09:47:36]Write to MH i2c: 01 00 00 5F 20 7F [09:47:36]*** FLAG_PRN_KEY set [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 07 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 07 00 5F 20 00 08 00 00 00 FF 0F 9C [09:47:36]state=0 [09:47:36]Key pressed [09:47:36]Feed [09:47:36]Write to MH i2c: D8 00 00 60 20 57 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: D8 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: D8 01 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: D8 01 00 60 20 00 58 [09:47:36]int [09:47:36]Write to MH i2c: 01 00 00 61 20 81 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 07 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 07 00 61 20 00 48 00 00 00 3C 00 0C [09:47:36]state=2 [09:47:36]Key pressed [09:47:36]int [09:47:36]Write to MH i2c: 01 00 00 62 20 82 [09:47:36]*** FLAG_PRN_KEY reset [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 07 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: 01 07 00 62 20 00 00 00 00 00 FB 0F 93 [09:47:36]state=2 [09:47:36]Stop feed [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:43]accept exits with 9 [09:48:43]New connection [09:48:43]New thread 3067071844 created [09:48:43]Thread 3067215204 joined [09:48:43]Waiting for new connection... [09:48:43] Sock 9.Parse request [09:48:43]Sock 9.Check first char [09:48:43]Sock 9.First char is OK [09:48:43]request: POST /json_proto HTTP/1.0 [09:48:43]Method: POST [09:48:43]URL: /json_proto [09:48:43]Method is POST - this is cgi request [09:48:43]url: /json_proto [09:48:43]query_string will be loaded in cgi processing [09:48:43]execute_cgi json_proto POST (null) [09:48:43]execute_cgi path=json_proto method=POST [09:48:43]POST find Content-Length [09:48:43]Host: 172.17.45.67:8080 [09:48:43]Content-Length: 792 [09:48:43]Content-Type: application/json [09:48:43] [09:48:43]POST finish read [09:48:43]Found Content-Length = 792 [09:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:43]execute_script... [09:48: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)593441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:43]POST & json_proto [09:48:43]process_json_proto [09:48:43]json parsed OK: [09:48:43]protocol is kg_v1.0 [09:48:43]action value=close_receipt [09:48:43]process_action close_receipt [09:48:43]cmd_close_receipt [09:48:43]MH_GetDate [09:48:43]Write to MH i2c: F0 00 00 63 20 72 [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 09 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 09 00 63 20 00 7E 66 C4 66 5F 7F 2B 66 F8 [09:48:43]GetLastDocTimeStamp 1724147254 [09:48:43]current date 1724147326 [09:48:43]FM_GetShiftState [09:48:43]SAM_PROTO_GetShiftState [09:48:43]wFMCommunicate request_size=4 [09:48:43]MH_SAM_APDU [09:48:43]CAPDU: 80 13 01 00 [09:48:43]Write to MH i2c: E2 08 00 64 20 80 13 01 00 00 00 00 00 01 [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:43]Read from MH i2c: E2 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 64 20 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 92 [09:48:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:48:43]wFMCommunicate OK [09:48:43]SAM_PROTO_GetShiftState done [09:48:43]FM_GetShiftState done [09:48:43]opened in 1724113785 [09:48:43]opened+sec_in_day 1724200185 [09:48:43]quantity*price = 0 [09:48:43]sum+1 = 1 [09:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 69 20.08.2024 09:48 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 139597 ФПД: 31288388309728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094846&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139597&fm=31288388309728&tin=02508201610067®Number=0000000000092569&sum=0 [09:48:45]StoreToDocumentArchive [09:48:45]shift 453 fd 139597 [09:48:45]save to /storage/0453/doc_00139597 [09:48:45]save last doc name /storage/0453/doc_00139597 to /storage/kkm_last_doc_name [09:48:45]save OK [09:48:45]Clear old archive folders... [09:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:45]tlvbuf is 00DB0690 [09:48:45]SAM_PROTO_ClearQueue [09:48:45]wFMCommunicate request_size=4 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 09 00 00 [09:48:45]Write to MH i2c: E2 08 00 71 20 80 09 00 00 00 00 00 00 03 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 71 20 00 90 00 05 [09:48:45]RAPDU: 90 00 [09:48:45]wFMCommunicate OK [09:48:45]SAM_PROTO_ClearQueue done [09:48:45]KKMCreateOFDPacket [09:48:45]OFDProtocolAddRootSTLVToBuf [09:48:45]FM_MakeSignedData [09:48:45]FM_MakeSignedData [09:48:45]SAM_PROTO_SignData [09:48:45]wFMCommunicate request_size=4 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 0D 01 02 [09:48:45]Write to MH i2c: E2 08 00 72 20 80 0D 01 02 00 00 00 00 0B [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 72 20 00 90 00 06 [09:48:45]RAPDU: 90 00 [09:48:45]wFMCommunicate OK [09:48:45]wFMCommunicate request_size=255 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 21 02 00 35 04 06 00 1C [09:48:45]Write to MH i2c: E2 02 01 73 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 45 00 00 00 F4 03 04 00 7E 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 21 02 00 35 04 06 00 1C 00 00 32 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 73 20 00 90 00 07 [09:48:45]RAPDU: 90 00 [09:48:45]wFMCommunicate OK [09:48:45]wFMCommunicate request_size=10 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 0D 02 02 05 74 E5 45 52 E0 [09:48:45]Write to MH i2c: E2 0D 00 74 20 80 0D 02 02 05 00 74 E5 45 52 E0 00 00 E8 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 03 00 74 20 00 90 00 08 [09:48:45]RAPDU: 90 00 [09:48:45]wFMCommunicate OK [09:48:45]wFMCommunicate request_size=4 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 0D 03 02 [09:48:45]Write to MH i2c: E2 08 00 75 20 80 0D 03 02 00 00 00 00 10 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 0B 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 0B 00 75 20 00 99 D4 49 0B 56 18 C7 46 90 00 4D [09:48:45]RAPDU: 99 D4 49 0B 56 18 C7 46 90 00 [09:48:45]wFMCommunicate OK [09:48:45]SAM_PROTO_SignData done [09:48:45]FM_MakeSignedData done [09:48:45]CreateOFDProtocolMessage [09:48:45]wFMCommunicate request_size=4 [09:48:45]MH_SAM_APDU [09:48:45]CAPDU: 80 11 00 00 [09:48:45]Write to MH i2c: E2 08 00 76 20 80 11 00 00 00 00 00 00 10 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:45]Read from MH i2c: E2 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 17 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: E2 17 00 76 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 67 [09:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:48:45]wFMCommunicate OK [09:48:45]CreateOFDProtocolMessage done [09:48:45]OFDSenderStorePacket 139597 [09:48:45]StoreOFDPacket docnum=139597 [09:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FD 60 07 01 28 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 7E 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 21 02 00 35 04 06 00 1C 74 E5 45 52 E0 99 D4 49 0B 56 18 C7 46 [09:48:45]CheckFolder [09:48:45]dirname=/storage/ofd_packets [09:48:45]CheckFolder done [09:48:45]ProducePacketName [09:48:45]name=ofd_packets/00139597 [09:48:45]NVStorageSaveData ofd_packets/00139597 [09:48:45]File name is /storage/ofd_packets/00139597 [09:48:45]Write 301 bytes [09:48:45]NVStorageSaveData done [09:48:45]OFDSenderStorePacket done [09:48:45]KKMCreateOFDPacket done [09:48:45]NVStorageSaveData kkm_last_timestamp [09:48:45]File name is /storage/kkm_last_timestamp [09:48:45]Write 4 bytes [09:48:45]NVStorageSaveData done [09:48:45]ExternCall_PrintAddStr [09:48:45]wPrintStart [09:48:45]Write to MH i2c: 01 00 00 77 20 97 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 07 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 07 00 77 20 00 00 00 00 00 FF 0F AC [09:48:45]RasterBufferAndPrint [09:48:45]line Счет N : (1)593441 [09:48:45]line ИНН: 02508201610067 [09:48:45]line Контрольно-Кассовый Чек [09:48:45]line ПРОДАЖА [09:48:45]line ТРК (МРК, ГНК) : 62 [09:48:45]line Товар: 2710124130 [09:48:45]line Аи-92-К-5 [09:48:45]line 20.000 * 0.00 [09:48:45]line = 0.00 [09:48:45]line НДС 12% НСП 1% [09:48:45]line > о реализуемом товаре [09:48:45]line ИТОГО: 0.00 [09:48:45]line НСП 1% : 0.00 [09:48:45]line НДС 12% : 0.00 [09:48:45]line Наличными: 0.00 [09:48:45]line Безнал.: 0.00 [09:48:45]line Место: АЗС № 136 "Партнер Нефть" [09:48:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:48:45]line СНО: Общий режим [09:48:45]line Чек 69 20.08.2024 09:48 [09:48:45]line Смена: 453 ФФД: 1.0 [09:48:45]line ЗНМ: 0300000067 [09:48:45]line РНМ: 0000000000092569 [09:48:45]line Версия ККМ: 001 [09:48:45]line Талоны: Топливная Карта [09:48:45]line 03824 [09:48:45]line ФМ: 0000000000871776 [09:48:45]line ФД: 139597 [09:48:45]line ФПД: 31288388309728 [09:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094846&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139597&fm=31288388309728&tin=02508201610067®Number=0000000000092569&sum=0 [09:48:45]written 0, free lines is 4095 [09:48:45]OFD Sender: Processing packet 139597 [packets to send 137, broken 136] [09:48:45]ProducePacketName [09:48:45]name=ofd_packets/00139597 [09:48:45]OFD Sender: To server: pG, [09:48:45]CommunicateWithHost lk.salyk.kg:30040 [09:48:45]ConnectInit lk.salyk.kg [09:48:46]Write to MH i2c: 01 00 00 A1 20 C1 [09:48:46]Write i2c OK [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: 01 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: 01 07 00 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: 01 07 00 A1 20 00 00 00 00 00 DA 0C AE [09:48:46]RasterBufferAndPrint [09:48:46]line [09:48:46]line [09:48:46]line [09:48:46]line [09:48:46]line [09:48:46]written 0, free lines is 3296 [09:48:46]MH_Cut [09:48:46]Write to MH i2c: D1 01 00 A8 20 01 9A [09:48:46]Write i2c OK [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: D1 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: D1 01 00 [09:48:46]MH_I2C_Read... [09:48:46]Read from MH i2c: D1 01 00 A8 20 00 99 [09:48:46]Write to MH i2c: 01 00 00 A9 20 C9 [09:48:46]Write i2c OK [09:48:46]MH_I2C_Read... [09:48:46]Connected sock=10 [09:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FD 60 07 01 28 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 7E 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 21 02 00 35 04 06 00 1C 74 E5 45 52 E0 99 D4 49 0B 56 18 C7 46 [09:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 72 19 47 00 0A 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 21 02 00 F4 03 04 00 12 0D C4 66 B6 04 01 00 00 36 82 63 95 BE 26 DE 1A [09:48:46]CommunicateWithHost err = 0 [09:48:46]CheckOFDResponse [09:48:46]1017 (14) - 77093643461234 [09:48:46]1041 (16) - 0000000000871776 [09:48:46]1040 (4) - 139597 [09:48:46]1012 (4) - 20.08.2024 03:27 [09:48:46]1206 (1) - 0 [09:48:46]OFD Sender: Remove packet 139597 [09:48:46]ProducePacketName [09:48:46]name=ofd_packets/00139597 [09:48:46]NVStorageDeleteData [09:48:46]*** Cut start [09:48:46]*** Partial cut [09:48:46]*** CUTSNS_PIN = 1 [09:48:46]*** CUTSNS_PIN = 0 [09:48:46]OFD Sender: No OFD packet to send [09:48:47]*** Brake cut motor [09:48:47]Read from MH i2c: 01 [09:48:47]MH_I2C_Read... [09:48:47]*** Stop cut motor [09:48:47]*** Cut end [09:48:47]Read from MH i2c: 01 07 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: 01 07 00 A9 20 00 00 00 00 00 FF 0F DE [09:48:47]process_action close_receipt done [09:48:47]requested_data is exist [09:48:47]produce_requested_data [09:48:47]requested_item fm.sn is exist - process it [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 11 00 00 [09:48:47]Write to MH i2c: E2 08 00 AA 20 80 11 00 00 00 00 00 00 44 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 AA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [09:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:48:47]wFMCommunicate OK [09:48:47]requested_item fd.num is exist - process it [09:48:47]SAM_PROTO_GetFieldsCounters [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 13 00 00 [09:48:47]Write to MH i2c: E2 08 00 AB 20 80 13 00 00 00 00 00 00 47 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 62 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 62 00 AB 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [09:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_GetFieldsCounters done [09:48:47]requested_item shift.num is exist - process it [09:48:47]requested_item shift.opened is exist - process it [09:48:47]req_shift_opened [09:48:47]FM_GetShiftState [09:48:47]SAM_PROTO_GetShiftState [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 13 01 00 [09:48:47]Write to MH i2c: E2 08 00 AC 20 80 13 01 00 00 00 00 00 49 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 AC 20 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DA [09:48:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_GetShiftState done [09:48:47]FM_GetShiftState done [09:48:47]req_shift_opened done [09:48:47]requested_item shift.open_date is exist - process it [09:48:47]req_shift_open_date [09:48:47]req_shift_open_date done [09:48:47]produce_requested_data done [09:48:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139597,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:48:47]process_action_free close_receipt [09:48:47]json_value_free [09:48:47]json_value_free done [09:48:47]process_json_proto returns [09:48:47]Send response to host [09:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139597,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:48:47]free response buf [09:48:47]execute_script done [09:48:47]execute_script returns [09:48:47]free content buf [09:48:47]Sock 9.Close socket [09:48:47]Sock 9.Thread stoped [09:48:48]int [09:48:48]Write to MH i2c: 01 00 00 AD 20 CD [09:48:48]*** FLAG_PRN_KEY set [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 AD 20 00 08 00 00 00 FF 0F EA [09:48:48]state=0 [09:48:48]Key pressed [09:48:48]Feed [09:48:48]Write to MH i2c: D8 00 00 AE 20 A5 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: D8 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: D8 01 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: D8 01 00 AE 20 00 A6 [09:48:48]int [09:48:48]Write to MH i2c: 01 00 00 AF 20 CF [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 AF 20 00 48 00 00 00 3C 00 5A [09:48:48]state=2 [09:48:48]Key pressed [09:48:49]int [09:48:49]Write to MH i2c: 01 00 00 B0 20 D0 [09:48:49]*** FLAG_PRN_KEY reset [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 07 00 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 07 00 B0 20 00 00 00 00 00 F6 0F DC [09:48:49]state=2 [09:48:49]Stop feed [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:49]accept exits with 7 [09:49:49]New connection [09:49:49]New thread 3067215204 created [09:49:49]Thread 3067071844 joined [09:49:49]Waiting for new connection... [09:49:49] Sock 7.Parse request [09:49:49]Sock 7.Check first char [09:49:49]Sock 7.First char is OK [09:49:49]request: POST /json_proto HTTP/1.0 [09:49:49]Method: POST [09:49:49]URL: /json_proto [09:49:49]Method is POST - this is cgi request [09:49:49]url: /json_proto [09:49:49]query_string will be loaded in cgi processing [09:49:49]execute_cgi json_proto POST (null) [09:49:49]execute_cgi path=json_proto method=POST [09:49:49]POST find Content-Length [09:49:49]Host: 172.17.45.67:8080 [09:49:49]Content-Length: 677 [09:49:49]Content-Type: application/json [09:49:49] [09:49:49]POST finish read [09:49:49]Found Content-Length = 677 [09:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:49]execute_script... [09:49: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)593442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:49]POST & json_proto [09:49:49]process_json_proto [09:49:49]json parsed OK: [09:49:49]protocol is kg_v1.0 [09:49:49]action value=close_receipt [09:49:49]process_action close_receipt [09:49:49]cmd_close_receipt [09:49:49]MH_GetDate [09:49:49]Write to MH i2c: F0 00 00 B1 20 C0 [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: F0 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: F0 09 00 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: F0 09 00 B1 20 00 C0 66 C4 66 5F 7F 2B 66 88 [09:49:49]GetLastDocTimeStamp 1724147326 [09:49:49]current date 1724147392 [09:49:49]FM_GetShiftState [09:49:49]SAM_PROTO_GetShiftState [09:49:49]wFMCommunicate request_size=4 [09:49:49]MH_SAM_APDU [09:49:49]CAPDU: 80 13 01 00 [09:49:49]Write to MH i2c: E2 08 00 B2 20 80 13 01 00 00 00 00 00 4F [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:49]Read from MH i2c: E2 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 0E 00 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: E2 0E 00 B2 20 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E0 [09:49:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:49:49]wFMCommunicate OK [09:49:49]SAM_PROTO_GetShiftState done [09:49:49]FM_GetShiftState done [09:49:49]opened in 1724113785 [09:49:49]opened+sec_in_day 1724200185 [09:49:49]quantity*price = 50036 [09:49:49]sum+1 = 50037 [09:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 70 20.08.2024 09:49 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139598 ФПД: 52507680648900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094952&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139598&fm=52507680648900&tin=02508201610067®Number=0000000000092569&sum=50000 [09:49:50]StoreToDocumentArchive [09:49:50]shift 453 fd 139598 [09:49:50]save to /storage/0453/doc_00139598 [09:49:50]save last doc name /storage/0453/doc_00139598 to /storage/kkm_last_doc_name [09:49:50]save OK [09:49:50]Clear old archive folders... [09:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:50]tlvbuf is 00DB0640 [09:49:50]SAM_PROTO_ClearQueue [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 09 00 00 [09:49:50]Write to MH i2c: E2 08 00 BF 20 80 09 00 00 00 00 00 00 51 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 BF 20 00 90 00 53 [09:49:50]RAPDU: 90 00 [09:49:50]wFMCommunicate OK [09:49:50]SAM_PROTO_ClearQueue done [09:49:50]KKMCreateOFDPacket [09:49:50]OFDProtocolAddRootSTLVToBuf [09:49:50]FM_MakeSignedData [09:49:50]FM_MakeSignedData [09:49:50]SAM_PROTO_SignData [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 0D 01 02 [09:49:50]Write to MH i2c: E2 08 00 C0 20 80 0D 01 02 00 00 00 00 59 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 03 00 C0 20 00 90 00 54 [09:49:50]RAPDU: 90 00 [09:49:50]wFMCommunicate OK [09:49:50]wFMCommunicate request_size=255 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C0 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 21 02 00 35 04 06 00 2F [09:49:50]Write to MH i2c: E2 02 01 C1 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C0 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 21 02 00 35 04 06 00 2F 00 00 DE [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:51]Read from MH i2c: E2 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 03 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 03 00 C1 20 00 90 00 55 [09:49:51]RAPDU: 90 00 [09:49:51]wFMCommunicate OK [09:49:51]wFMCommunicate request_size=10 [09:49:51]MH_SAM_APDU [09:49:51]CAPDU: 80 0D 02 02 05 C1 65 A7 2E C4 [09:49:51]Write to MH i2c: E2 0D 00 C2 20 80 0D 02 02 05 00 C1 65 A7 2E C4 00 00 25 [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:51]Read from MH i2c: E2 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 03 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 03 00 C2 20 00 90 00 56 [09:49:51]RAPDU: 90 00 [09:49:51]wFMCommunicate OK [09:49:51]wFMCommunicate request_size=4 [09:49:51]MH_SAM_APDU [09:49:51]CAPDU: 80 0D 03 02 [09:49:51]Write to MH i2c: E2 08 00 C3 20 80 0D 03 02 00 00 00 00 5E [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:51]Read from MH i2c: E2 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 0B 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 0B 00 C3 20 00 56 32 51 82 EB BF 50 36 90 00 EA [09:49:51]RAPDU: 56 32 51 82 EB BF 50 36 90 00 [09:49:51]wFMCommunicate OK [09:49:51]SAM_PROTO_SignData done [09:49:51]FM_MakeSignedData done [09:49:51]CreateOFDProtocolMessage [09:49:51]wFMCommunicate request_size=4 [09:49:51]MH_SAM_APDU [09:49:51]CAPDU: 80 11 00 00 [09:49:51]Write to MH i2c: E2 08 00 C4 20 80 11 00 00 00 00 00 00 5E [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:51]Read from MH i2c: E2 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 17 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 17 00 C4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [09:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:49:51]wFMCommunicate OK [09:49:51]CreateOFDProtocolMessage done [09:49:51]OFDSenderStorePacket 139598 [09:49:51]StoreOFDPacket docnum=139598 [09:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 58 B1 07 01 3C 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C0 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 21 02 00 35 04 06 00 2F C1 65 A7 2E C4 56 32 51 82 EB BF 50 36 [09:49:51]CheckFolder [09:49:51]dirname=/storage/ofd_packets [09:49:51]CheckFolder done [09:49:51]ProducePacketName [09:49:51]name=ofd_packets/00139598 [09:49:51]NVStorageSaveData ofd_packets/00139598 [09:49:51]File name is /storage/ofd_packets/00139598 [09:49:51]Write 301 bytes [09:49:51]NVStorageSaveData done [09:49:51]OFDSenderStorePacket done [09:49:51]KKMCreateOFDPacket done [09:49:51]NVStorageSaveData kkm_last_timestamp [09:49:51]File name is /storage/kkm_last_timestamp [09:49:51]Write 4 bytes [09:49:51]NVStorageSaveData done [09:49:51]ExternCall_PrintAddStr [09:49:51]wPrintStart [09:49:51]Write to MH i2c: 01 00 00 C5 20 E5 [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: 01 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: 01 07 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: 01 07 00 C5 20 00 00 00 00 00 FF 0F FA [09:49:51]RasterBufferAndPrint [09:49:51]line Счет N : (1)593442 [09:49:51]line ИНН: 02508201610067 [09:49:51]line Контрольно-Кассовый Чек [09:49:51]line ПРОДАЖА [09:49:51]line ТРК (МРК, ГНК) : 42 [09:49:51]line Товар: 2710124130 [09:49:51]line Аи-92-К-5 [09:49:51]line 7.380 * 67.80 [09:49:51]line = 500.36 [09:49:51]line НДС 12% НСП 1% [09:49:51]line > о реализуемом товаре [09:49:51]line ОКРУГЛЕНИЕ: -0.36 [09:49:51]line ИТОГО: 500.00 [09:49:51]line Внесено: 500.00 [09:49:51]line СДАЧА: 0.00 [09:49:51]line НСП 1% : 4.43 [09:49:51]line НДС 12% : 53.14 [09:49:51]line Наличными: 500.00 [09:49:51]line Безнал.: 0.00 [09:49:51]line Место: АЗС № 136 "Партнер Нефть" [09:49:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:49:51]line СНО: Общий режим [09:49:51]line Чек 70 20.08.2024 09:49 [09:49:51]line Смена: 453 ФФД: 1.0 [09:49:51]line ЗНМ: 0300000067 [09:49:51]line РНМ: 0000000000092569 [09:49:51]line Версия ККМ: 001 [09:49:51]line ФМ: 0000000000871776 [09:49:51]line ФД: 139598 [09:49:51]line ФПД: 52507680648900 [09:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T094952&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139598&fm=52507680648900&tin=02508201610067®Number=0000000000092569&sum=50000 [09:49:51]OFD Sender: Processing packet 139598 [packets to send 137, broken 136] [09:49:51]ProducePacketName [09:49:51]name=ofd_packets/00139598 [09:49:51]OFD Sender: To server: pG, [09:49:51]CommunicateWithHost lk.salyk.kg:30040 [09:49:51]ConnectInit lk.salyk.kg [09:49:51]written 0, free lines is 4095 [09:49:51]Connected sock=10 [09:49:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 58 B1 07 01 3C 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C0 66 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 21 02 00 35 04 06 00 2F C1 65 A7 2E C4 56 32 51 82 EB BF 50 36 [09:49:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C4 0C 47 00 0D B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 21 02 00 F4 03 04 00 54 0D C4 66 B6 04 01 00 00 C2 5A BA 40 35 D9 3E 1F [09:49:52]CommunicateWithHost err = 0 [09:49:52]CheckOFDResponse [09:49:52]1017 (14) - 77093643461234 [09:49:52]1041 (16) - 0000000000871776 [09:49:52]1040 (4) - 139598 [09:49:52]1012 (4) - 20.08.2024 03:28 [09:49:52]1206 (1) - 0 [09:49:52]OFD Sender: Remove packet 139598 [09:49:52]ProducePacketName [09:49:52]name=ofd_packets/00139598 [09:49:52]NVStorageDeleteData [09:49:52]Write to MH i2c: 01 00 00 F0 20 10 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: 01 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: 01 07 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: 01 07 00 F0 20 00 00 00 00 00 C5 0C E8 [09:49:52]RasterBufferAndPrint [09:49:52]line [09:49:52]line [09:49:52]line [09:49:52]line [09:49:52]line [09:49:52]written 0, free lines is 3275 [09:49:52]MH_Cut [09:49:52]Write to MH i2c: D1 01 00 F7 20 01 E9 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: D1 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: D1 01 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: D1 01 00 F7 20 00 E8 [09:49:52]Write to MH i2c: 01 00 00 F8 20 18 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]OFD Sender: No OFD packet to send [09:49:52]*** Cut start [09:49:52]*** Partial cut [09:49:52]*** CUTSNS_PIN = 1 [09:49:52]*** CUTSNS_PIN = 0 [09:49:53]*** Brake cut motor [09:49:53]Read from MH i2c: 01 [09:49:53]MH_I2C_Read... [09:49:53]*** Stop cut motor [09:49:53]*** Cut end [09:49:53]Read from MH i2c: 01 07 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 F8 20 00 00 00 00 00 FF 0F 2D [09:49:53]process_action close_receipt done [09:49:53]requested_data is exist [09:49:53]produce_requested_data [09:49:53]requested_item fm.sn is exist - process it [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 11 00 00 [09:49:53]Write to MH i2c: E2 08 00 F9 20 80 11 00 00 00 00 00 00 93 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 F9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [09:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:49:53]wFMCommunicate OK [09:49:53]requested_item fd.num is exist - process it [09:49:53]SAM_PROTO_GetFieldsCounters [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 13 00 00 [09:49:53]Write to MH i2c: E2 08 00 FA 20 80 13 00 00 00 00 00 00 96 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 62 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 62 00 FA 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [09:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_GetFieldsCounters done [09:49:53]requested_item shift.num is exist - process it [09:49:53]requested_item shift.opened is exist - process it [09:49:53]req_shift_opened [09:49:53]FM_GetShiftState [09:49:53]SAM_PROTO_GetShiftState [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 13 01 00 [09:49:53]Write to MH i2c: E2 08 00 FB 20 80 13 01 00 00 00 00 00 98 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0E 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0E 00 FB 20 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 29 [09:49:53]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_GetShiftState done [09:49:53]FM_GetShiftState done [09:49:53]req_shift_opened done [09:49:53]requested_item shift.open_date is exist - process it [09:49:53]req_shift_open_date [09:49:53]req_shift_open_date done [09:49:53]produce_requested_data done [09:49:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139598,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:49:53]process_action_free close_receipt [09:49:53]json_value_free [09:49:53]json_value_free done [09:49:53]process_json_proto returns [09:49:53]Send response to host [09:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139598,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:49:53]free response buf [09:49:53]execute_script done [09:49:53]execute_script returns [09:49:53]free content buf [09:49:53]Sock 7.Close socket [09:49:53]Sock 7.Thread stoped [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]int [09:50:07]Write to MH i2c: 01 00 00 FC 20 1C [09:50:07]*** FLAG_PRN_KEY set [09:50:07]Write i2c OK [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 07 00 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 07 00 FC 20 00 08 00 00 00 FF 0F 39 [09:50:07]state=0 [09:50:07]Key pressed [09:50:07]Feed [09:50:07]Write to MH i2c: D8 00 00 FD 20 F4 [09:50:07]Write i2c OK [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: D8 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: D8 01 00 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: D8 01 00 FD 20 00 F5 [09:50:07]int [09:50:07]Write to MH i2c: 01 00 00 FE 20 1E [09:50:07]Write i2c OK [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 07 00 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 07 00 FE 20 00 48 00 00 00 3C 00 A9 [09:50:07]state=2 [09:50:07]Key pressed [09:50:07]int [09:50:07]Write to MH i2c: 01 00 00 FF 20 1F [09:50:07]*** FLAG_PRN_KEY reset [09:50:07]Write i2c OK [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 07 00 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 07 00 FF 20 00 00 00 00 00 F5 0F 2A [09:50:07]state=2 [09:50:07]Stop feed [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:26]accept exits with 9 [09:51:26]New connection [09:51:26]New thread 3067071844 created [09:51:26]Thread 3067215204 joined [09:51:26]Waiting for new connection... [09:51:26] Sock 9.Parse request [09:51:26]Sock 9.Check first char [09:51:26]Sock 9.First char is OK [09:51:26]request: POST /json_proto HTTP/1.0 [09:51:26]Method: POST [09:51:26]URL: /json_proto [09:51:26]Method is POST - this is cgi request [09:51:26]url: /json_proto [09:51:26]query_string will be loaded in cgi processing [09:51:26]execute_cgi json_proto POST (null) [09:51:26]execute_cgi path=json_proto method=POST [09:51:26]POST find Content-Length [09:51:26]Host: 172.17.45.67:8080 [09:51:26]Content-Length: 792 [09:51:26]Content-Type: application/json [09:51:26] [09:51:26]POST finish read [09:51:26]Found Content-Length = 792 [09:51:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:26]execute_script... [09:51: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)593443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:26]POST & json_proto [09:51:26]process_json_proto [09:51:26]json parsed OK: [09:51:26]protocol is kg_v1.0 [09:51:26]action value=close_receipt [09:51:26]process_action close_receipt [09:51:26]cmd_close_receipt [09:51:26]MH_GetDate [09:51:26]Write to MH i2c: F0 00 00 00 21 10 [09:51:26]Write i2c OK [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: F0 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: F0 09 00 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: F0 09 00 00 21 00 21 67 C4 66 5F 7F 2B 66 3A [09:51:26]GetLastDocTimeStamp 1724147392 [09:51:26]current date 1724147489 [09:51:26]FM_GetShiftState [09:51:26]SAM_PROTO_GetShiftState [09:51:26]wFMCommunicate request_size=4 [09:51:26]MH_SAM_APDU [09:51:26]CAPDU: 80 13 01 00 [09:51:26]Write to MH i2c: E2 08 00 01 21 80 13 01 00 00 00 00 00 9F [09:51:26]Write i2c OK [09:51:26]MH_I2C_Read... [09:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:26]Read from MH i2c: E2 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: E2 0E 00 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: E2 0E 00 01 21 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 30 [09:51:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:51:26]wFMCommunicate OK [09:51:26]SAM_PROTO_GetShiftState done [09:51:26]FM_GetShiftState done [09:51:26]opened in 1724113785 [09:51:26]opened+sec_in_day 1724200185 [09:51:26]quantity*price = 0 [09:51:26]sum+1 = 1 [09:51:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 71 20.08.2024 09:51 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 139599 ФПД: 28178161120322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095129&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139599&fm=28178161120322&tin=02508201610067®Number=0000000000092569&sum=0 [09:51:28]StoreToDocumentArchive [09:51:28]shift 453 fd 139599 [09:51:28]save to /storage/0453/doc_00139599 [09:51:28]save last doc name /storage/0453/doc_00139599 to /storage/kkm_last_doc_name [09:51:28]save OK [09:51:28]Clear old archive folders... [09:51:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:28]tlvbuf is 00DB9D20 [09:51:28]SAM_PROTO_ClearQueue [09:51:28]wFMCommunicate request_size=4 [09:51:28]MH_SAM_APDU [09:51:28]CAPDU: 80 09 00 00 [09:51:28]Write to MH i2c: E2 08 00 0E 21 80 09 00 00 00 00 00 00 A1 [09:51:28]Write i2c OK [09:51:28]MH_I2C_Read... [09:51:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:28]Read from MH i2c: E2 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 03 00 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [09:51:28]RAPDU: 90 00 [09:51:28]wFMCommunicate OK [09:51:28]SAM_PROTO_ClearQueue done [09:51:28]KKMCreateOFDPacket [09:51:28]OFDProtocolAddRootSTLVToBuf [09:51:28]FM_MakeSignedData [09:51:28]FM_MakeSignedData [09:51:28]SAM_PROTO_SignData [09:51:28]wFMCommunicate request_size=4 [09:51:28]MH_SAM_APDU [09:51:28]CAPDU: 80 0D 01 02 [09:51:28]Write to MH i2c: E2 08 00 0F 21 80 0D 01 02 00 00 00 00 A9 [09:51:28]Write i2c OK [09:51:28]MH_I2C_Read... [09:51:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:28]Read from MH i2c: E2 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 03 00 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 03 00 0F 21 00 90 00 A4 [09:51:28]RAPDU: 90 00 [09:51:28]wFMCommunicate OK [09:51:28]wFMCommunicate request_size=255 [09:51:28]MH_SAM_APDU [09: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 21 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 21 02 00 35 04 06 00 19 [09:51:28]Write to MH i2c: E2 02 01 10 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 21 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 21 02 00 35 04 06 00 19 00 00 3E [09:51:28]Write i2c OK [09:51:28]MH_I2C_Read... [09:51:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:28]Read from MH i2c: E2 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 03 00 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 03 00 10 21 00 90 00 A5 [09:51:28]RAPDU: 90 00 [09:51:28]wFMCommunicate OK [09:51:28]wFMCommunicate request_size=10 [09:51:28]MH_SAM_APDU [09:51:28]CAPDU: 80 0D 02 02 05 A0 BD 48 B4 42 [09:51:28]Write to MH i2c: E2 0D 00 11 21 80 0D 02 02 05 00 A0 BD 48 B4 42 00 00 51 [09:51:28]Write i2c OK [09:51:28]MH_I2C_Read... [09:51:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:28]Read from MH i2c: E2 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 03 00 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 03 00 11 21 00 90 00 A6 [09:51:28]RAPDU: 90 00 [09:51:28]wFMCommunicate OK [09:51:28]wFMCommunicate request_size=4 [09:51:28]MH_SAM_APDU [09:51:28]CAPDU: 80 0D 03 02 [09:51:28]Write to MH i2c: E2 08 00 12 21 80 0D 03 02 00 00 00 00 AE [09:51:28]Write i2c OK [09:51:28]MH_I2C_Read... [09:51:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:28]Read from MH i2c: E2 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 0B 00 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 0B 00 12 21 00 3C 52 E5 E8 94 31 8E 2E 90 00 8B [09:51:28]RAPDU: 3C 52 E5 E8 94 31 8E 2E 90 00 [09:51:28]wFMCommunicate OK [09:51:28]SAM_PROTO_SignData done [09:51:28]FM_MakeSignedData done [09:51:28]CreateOFDProtocolMessage [09:51:28]wFMCommunicate request_size=4 [09:51:28]MH_SAM_APDU [09:51:28]CAPDU: 80 11 00 00 [09:51:28]Write to MH i2c: E2 08 00 13 21 80 11 00 00 00 00 00 00 AE [09:51:28]Write i2c OK [09:51:28]MH_I2C_Read... [09:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:28]Read from MH i2c: E2 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 17 00 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: E2 17 00 13 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 05 [09:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:51:28]wFMCommunicate OK [09:51:28]CreateOFDProtocolMessage done [09:51:28]OFDSenderStorePacket 139599 [09:51:28]StoreOFDPacket docnum=139599 [09:51:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 84 F2 07 01 DF E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 21 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 21 02 00 35 04 06 00 19 A0 BD 48 B4 42 3C 52 E5 E8 94 31 8E 2E [09:51:28]CheckFolder [09:51:28]dirname=/storage/ofd_packets [09:51:28]CheckFolder done [09:51:28]ProducePacketName [09:51:28]name=ofd_packets/00139599 [09:51:28]NVStorageSaveData ofd_packets/00139599 [09:51:28]File name is /storage/ofd_packets/00139599 [09:51:28]Write 301 bytes [09:51:28]NVStorageSaveData done [09:51:28]OFDSenderStorePacket done [09:51:28]KKMCreateOFDPacket done [09:51:28]NVStorageSaveData kkm_last_timestamp [09:51:28]File name is /storage/kkm_last_timestamp [09:51:28]Write 4 bytes [09:51:28]NVStorageSaveData done [09:51:28]ExternCall_PrintAddStr [09:51:28]wPrintStart [09:51:28]Write to MH i2c: 01 00 00 14 21 35 [09:51:28]Write i2c OK [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: 01 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: 01 07 00 [09:51:28]MH_I2C_Read... [09:51:28]Read from MH i2c: 01 07 00 14 21 00 00 00 00 00 FF 0F 4A [09:51:28]RasterBufferAndPrint [09:51:28]line Счет N : (1)593443 [09:51:28]line ИНН: 02508201610067 [09:51:28]line Контрольно-Кассовый Чек [09:51:28]line ПРОДАЖА [09:51:28]line ТРК (МРК, ГНК) : 32 [09:51:28]line Товар: 2710124130 [09:51:28]line Аи-92-К-5 [09:51:28]line 10.000 * 0.00 [09:51:28]line = 0.00 [09:51:28]line НДС 12% НСП 1% [09:51:28]line > о реализуемом товаре [09:51:28]line ИТОГО: 0.00 [09:51:28]line НСП 1% : 0.00 [09:51:28]line НДС 12% : 0.00 [09:51:28]line Наличными: 0.00 [09:51:28]line Безнал.: 0.00 [09:51:28]line Место: АЗС № 136 "Партнер Нефть" [09:51:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:51:28]line СНО: Общий режим [09:51:28]line Чек 71 20.08.2024 09:51 [09:51:28]line Смена: 453 ФФД: 1.0 [09:51:28]line ЗНМ: 0300000067 [09:51:28]line РНМ: 0000000000092569 [09:51:28]line Версия ККМ: 001 [09:51:28]line Талоны: Топливная Карта [09:51:28]line 03824 [09:51:28]line ФМ: 0000000000871776 [09:51:28]line ФД: 139599 [09:51:28]line ФПД: 28178161120322 [09:51:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095129&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139599&fm=28178161120322&tin=02508201610067®Number=0000000000092569&sum=0 [09:51:28]written 0, free lines is 4095 [09:51:28]OFD Sender: Processing packet 139599 [packets to send 137, broken 136] [09:51:28]ProducePacketName [09:51:28]name=ofd_packets/00139599 [09:51:28]OFD Sender: To server: pG, [09:51:28]CommunicateWithHost lk.salyk.kg:30040 [09:51:28]ConnectInit lk.salyk.kg [09:51:28]Connected sock=10 [09:51:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 84 F2 07 01 DF E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 21 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 21 02 00 35 04 06 00 19 A0 BD 48 B4 42 3C 52 E5 E8 94 31 8E 2E [09:51:29]Write to MH i2c: 01 00 00 3E 21 5F [09:51:29]Write i2c OK [09:51:29]MH_I2C_Read... [09:51:29]Read from MH i2c: 01 [09:51:29]MH_I2C_Read... [09:51:29]Read from MH i2c: 01 07 00 [09:51:29]MH_I2C_Read... [09:51:29]Read from MH i2c: 01 07 00 3E 21 00 00 00 00 00 E2 0C 54 [09:51:29]RasterBufferAndPrint [09:51:29]line [09:51:29]line [09:51:29]line [09:51:29]line [09:51:29]line [09:51:29]written 0, free lines is 3304 [09:51:29]MH_Cut [09:51:29]Write to MH i2c: D1 01 00 45 21 01 38 [09:51:29]Write i2c OK [09:51:29]MH_I2C_Read... [09:51:29]Read from MH i2c: D1 [09:51:29]MH_I2C_Read... [09:51:29]Read from MH i2c: D1 01 00 [09:51:29]MH_I2C_Read... [09:51:29]Read from MH i2c: D1 01 00 45 21 00 37 [09:51:29]Write to MH i2c: 01 00 00 46 21 67 [09:51:29]Write i2c OK [09:51:29]MH_I2C_Read... [09:51:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 64 C0 47 00 05 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 21 02 00 F4 03 04 00 B5 0D C4 66 B6 04 01 00 00 A7 5F 60 DB 07 3F BF FA [09:51:29]CommunicateWithHost err = 0 [09:51:29]CheckOFDResponse [09:51:29]1017 (14) - 77093643461234 [09:51:29]1041 (16) - 0000000000871776 [09:51:29]1040 (4) - 139599 [09:51:29]1012 (4) - 20.08.2024 03:29 [09:51:29]1206 (1) - 0 [09:51:29]OFD Sender: Remove packet 139599 [09:51:29]ProducePacketName [09:51:29]name=ofd_packets/00139599 [09:51:29]NVStorageDeleteData [09:51:29]OFD Sender: No OFD packet to send [09:51:29]*** Cut start [09:51:29]*** Partial cut [09:51:29]*** CUTSNS_PIN = 1 [09:51:29]*** CUTSNS_PIN = 0 [09:51:30]*** Brake cut motor [09:51:30]Read from MH i2c: 01 [09:51:30]MH_I2C_Read... [09:51:30]*** Stop cut motor [09:51:30]*** Cut end [09:51:30]Read from MH i2c: 01 07 00 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 FF 0F 7C [09:51:30]process_action close_receipt done [09:51:30]requested_data is exist [09:51:30]produce_requested_data [09:51:30]requested_item fm.sn is exist - process it [09:51:30]wFMCommunicate request_size=4 [09:51:30]MH_SAM_APDU [09:51:30]CAPDU: 80 11 00 00 [09:51:30]Write to MH i2c: E2 08 00 47 21 80 11 00 00 00 00 00 00 E2 [09:51:30]Write i2c OK [09:51:30]MH_I2C_Read... [09:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:30]Read from MH i2c: E2 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: E2 17 00 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: E2 17 00 47 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [09:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:51:30]wFMCommunicate OK [09:51:30]requested_item fd.num is exist - process it [09:51:30]SAM_PROTO_GetFieldsCounters [09:51:30]wFMCommunicate request_size=4 [09:51:30]MH_SAM_APDU [09:51:30]CAPDU: 80 13 00 00 [09:51:30]Write to MH i2c: E2 08 00 48 21 80 13 00 00 00 00 00 00 E5 [09:51:30]Write i2c OK [09:51:30]MH_I2C_Read... [09:51:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:30]Read from MH i2c: E2 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: E2 62 00 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: E2 62 00 48 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:51:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:30]wFMCommunicate OK [09:51:30]SAM_PROTO_GetFieldsCounters done [09:51:30]requested_item shift.num is exist - process it [09:51:30]requested_item shift.opened is exist - process it [09:51:30]req_shift_opened [09:51:30]FM_GetShiftState [09:51:30]SAM_PROTO_GetShiftState [09:51:30]wFMCommunicate request_size=4 [09:51:30]MH_SAM_APDU [09:51:30]CAPDU: 80 13 01 00 [09:51:30]Write to MH i2c: E2 08 00 49 21 80 13 01 00 00 00 00 00 E7 [09:51:30]Write i2c OK [09:51:30]MH_I2C_Read... [09:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:30]Read from MH i2c: E2 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: E2 0E 00 [09:51:30]MH_I2C_Read... [09:51:30]Read from MH i2c: E2 0E 00 49 21 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 78 [09:51:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:51:30]wFMCommunicate OK [09:51:30]SAM_PROTO_GetShiftState done [09:51:30]FM_GetShiftState done [09:51:30]req_shift_opened done [09:51:30]requested_item shift.open_date is exist - process it [09:51:30]req_shift_open_date [09:51:30]req_shift_open_date done [09:51:30]produce_requested_data done [09:51:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139599,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:51:30]process_action_free close_receipt [09:51:30]json_value_free [09:51:30]json_value_free done [09:51:30]process_json_proto returns [09:51:30]Send response to host [09:51:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139599,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:51:30]free response buf [09:51:30]execute_script done [09:51:30]execute_script returns [09:51:30]free content buf [09:51:30]Sock 9.Close socket [09:51:30]Sock 9.Thread stoped [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]int [09:51:49]Write to MH i2c: 01 00 00 4A 21 6B [09:51:49]*** FLAG_PRN_KEY set [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 4A 21 00 08 00 00 00 FF 0F 88 [09:51:49]state=0 [09:51:49]Key pressed [09:51:49]Feed [09:51:49]Write to MH i2c: D8 00 00 4B 21 43 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: D8 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: D8 01 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: D8 01 00 4B 21 00 44 [09:51:49]int [09:51:49]Write to MH i2c: 01 00 00 4C 21 6D [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 4C 21 00 48 00 00 00 3C 00 F8 [09:51:49]state=2 [09:51:49]Key pressed [09:51:49]OFD Sender: No OFD packet to send [09:51:49]int [09:51:49]Write to MH i2c: 01 00 00 4D 21 6E [09:51:49]*** FLAG_PRN_KEY reset [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: 01 07 00 4D 21 00 00 00 00 00 F5 0F 79 [09:51:49]state=2 [09:51:49]Stop feed [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:18]accept exits with 7 [09:52:18]New connection [09:52:18]New thread 3067215204 created [09:52:18]Thread 3067071844 joined [09:52:18]Waiting for new connection... [09:52:18] Sock 7.Parse request [09:52:18]Sock 7.Check first char [09:52:18]Sock 7.First char is OK [09:52:18]request: POST /json_proto HTTP/1.0 [09:52:18]Method: POST [09:52:18]URL: /json_proto [09:52:18]Method is POST - this is cgi request [09:52:18]url: /json_proto [09:52:18]query_string will be loaded in cgi processing [09:52:18]execute_cgi json_proto POST (null) [09:52:18]execute_cgi path=json_proto method=POST [09:52:18]POST find Content-Length [09:52:18]Host: 172.17.45.67:8080 [09:52:18]Content-Length: 791 [09:52:18]Content-Type: application/json [09:52:18] [09:52:18]POST finish read [09:52:18]Found Content-Length = 791 [09:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:18]execute_script... [09:52:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:18]POST & json_proto [09:52:18]process_json_proto [09:52:18]json parsed OK: [09:52:18]protocol is kg_v1.0 [09:52:18]action value=close_receipt [09:52:18]process_action close_receipt [09:52:18]cmd_close_receipt [09:52:18]MH_GetDate [09:52:18]Write to MH i2c: F0 00 00 4E 21 5E [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: F0 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: F0 09 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: F0 09 00 4E 21 00 55 67 C4 66 5F 7F 2B 66 BC [09:52:18]GetLastDocTimeStamp 1724147489 [09:52:18]current date 1724147541 [09:52:18]FM_GetShiftState [09:52:18]SAM_PROTO_GetShiftState [09:52:18]wFMCommunicate request_size=4 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 13 01 00 [09:52:18]Write to MH i2c: E2 08 00 4F 21 80 13 01 00 00 00 00 00 ED [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 0E 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 0E 00 4F 21 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7E [09:52:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:52:18]wFMCommunicate OK [09:52:18]SAM_PROTO_GetShiftState done [09:52:18]FM_GetShiftState done [09:52:18]opened in 1724113785 [09:52:18]opened+sec_in_day 1724200185 [09:52:18]quantity*price = 0 [09:52:18]sum+1 = 1 [09:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 72 20.08.2024 09:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 139600 ФПД: 96192139559336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095221&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139600&fm=96192139559336&tin=02508201610067®Number=0000000000092569&sum=0 [09:52:19]StoreToDocumentArchive [09:52:19]shift 453 fd 139600 [09:52:19]save to /storage/0453/doc_00139600 [09:52:19]save last doc name /storage/0453/doc_00139600 to /storage/kkm_last_doc_name [09:52:19]save OK [09:52:19]Clear old archive folders... [09:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:19]tlvbuf is B6DE8590 [09:52:19]SAM_PROTO_ClearQueue [09:52:19]wFMCommunicate request_size=4 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 09 00 00 [09:52:19]Write to MH i2c: E2 08 00 5C 21 80 09 00 00 00 00 00 00 EF [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 5C 21 00 90 00 F1 [09:52:19]RAPDU: 90 00 [09:52:19]wFMCommunicate OK [09:52:19]SAM_PROTO_ClearQueue done [09:52:19]KKMCreateOFDPacket [09:52:19]OFDProtocolAddRootSTLVToBuf [09:52:19]FM_MakeSignedData [09:52:19]FM_MakeSignedData [09:52:19]SAM_PROTO_SignData [09:52:19]wFMCommunicate request_size=4 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 0D 01 02 [09:52:19]Write to MH i2c: E2 08 00 5D 21 80 0D 01 02 00 00 00 00 F7 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 5D 21 00 90 00 F2 [09:52:19]RAPDU: 90 00 [09:52:19]wFMCommunicate OK [09:52:19]wFMCommunicate request_size=255 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 55 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 21 02 00 35 04 06 00 57 [09:52:19]Write to MH i2c: E2 02 01 5E 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 48 00 00 00 F4 03 04 00 55 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 21 02 00 35 04 06 00 57 00 00 64 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]OFD Sender: No OFD packet to send [09:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 5E 21 00 90 00 F3 [09:52:19]RAPDU: 90 00 [09:52:19]wFMCommunicate OK [09:52:19]wFMCommunicate request_size=10 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 0D 02 02 05 7C 7A 4F 01 A8 [09:52:19]Write to MH i2c: E2 0D 00 5F 21 80 0D 02 02 05 00 7C 7A 4F 01 A8 00 00 F2 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 5F 21 00 90 00 F4 [09:52:19]RAPDU: 90 00 [09:52:19]wFMCommunicate OK [09:52:19]wFMCommunicate request_size=4 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 0D 03 02 [09:52:19]Write to MH i2c: E2 08 00 60 21 80 0D 03 02 00 00 00 00 FC [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 0B 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 0B 00 60 21 00 BD 99 D0 CB F4 26 41 0C 90 00 55 [09:52:19]RAPDU: BD 99 D0 CB F4 26 41 0C 90 00 [09:52:19]wFMCommunicate OK [09:52:19]SAM_PROTO_SignData done [09:52:19]FM_MakeSignedData done [09:52:19]CreateOFDProtocolMessage [09:52:19]wFMCommunicate request_size=4 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 11 00 00 [09:52:19]Write to MH i2c: E2 08 00 61 21 80 11 00 00 00 00 00 00 FC [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 17 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 17 00 61 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [09:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:52:20]wFMCommunicate OK [09:52:20]CreateOFDProtocolMessage done [09:52:20]OFDSenderStorePacket 139600 [09:52:20]StoreOFDPacket docnum=139600 [09:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A8 4E 07 01 22 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 55 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 21 02 00 35 04 06 00 57 7C 7A 4F 01 A8 BD 99 D0 CB F4 26 41 0C [09:52:20]CheckFolder [09:52:20]dirname=/storage/ofd_packets [09:52:20]CheckFolder done [09:52:20]ProducePacketName [09:52:20]name=ofd_packets/00139600 [09:52:20]NVStorageSaveData ofd_packets/00139600 [09:52:20]File name is /storage/ofd_packets/00139600 [09:52:20]Write 301 bytes [09:52:20]NVStorageSaveData done [09:52:20]OFDSenderStorePacket done [09:52:20]KKMCreateOFDPacket done [09:52:20]NVStorageSaveData kkm_last_timestamp [09:52:20]File name is /storage/kkm_last_timestamp [09:52:20]Write 4 bytes [09:52:20]NVStorageSaveData done [09:52:20]ExternCall_PrintAddStr [09:52:20]wPrintStart [09:52:20]Write to MH i2c: 01 00 00 62 21 83 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 07 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 07 00 62 21 00 00 00 00 00 FF 0F 98 [09:52:20]RasterBufferAndPrint [09:52:20]line Счет N : (1)593444 [09:52:20]line ИНН: 02508201610067 [09:52:20]line Контрольно-Кассовый Чек [09:52:20]line ПРОДАЖА [09:52:20]line ТРК (МРК, ГНК) : 32 [09:52:20]line Товар: 2710124130 [09:52:20]line Аи-92-К-5 [09:52:20]line 5.000 * 0.00 [09:52:20]line = 0.00 [09:52:20]line НДС 12% НСП 1% [09:52:20]line > о реализуемом товаре [09:52:20]line ИТОГО: 0.00 [09:52:20]line НСП 1% : 0.00 [09:52:20]line НДС 12% : 0.00 [09:52:20]line Наличными: 0.00 [09:52:20]line Безнал.: 0.00 [09:52:20]line Место: АЗС № 136 "Партнер Нефть" [09:52:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:52:20]line СНО: Общий режим [09:52:20]line Чек 72 20.08.2024 09:52 [09:52:20]line Смена: 453 ФФД: 1.0 [09:52:20]line ЗНМ: 0300000067 [09:52:20]line РНМ: 0000000000092569 [09:52:20]line Версия ККМ: 001 [09:52:20]line Талоны: Топливная Карта [09:52:20]line 03824 [09:52:20]line ФМ: 0000000000871776 [09:52:20]line ФД: 139600 [09:52:20]line ФПД: 96192139559336 [09:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095221&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139600&fm=96192139559336&tin=02508201610067®Number=0000000000092569&sum=0 [09:52:20]written 0, free lines is 4095 [09:52:20]OFD Sender: Processing packet 139600 [packets to send 137, broken 136] [09:52:20]ProducePacketName [09:52:20]name=ofd_packets/00139600 [09:52:20]OFD Sender: To server: pG, [09:52:20]CommunicateWithHost lk.salyk.kg:30040 [09:52:20]ConnectInit lk.salyk.kg [09:52:20]Connected sock=10 [09:52:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A8 4E 07 01 22 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 48 00 00 00 F4 03 04 00 55 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 21 02 00 35 04 06 00 57 7C 7A 4F 01 A8 BD 99 D0 CB F4 26 41 0C [09:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 37 11 47 00 85 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 21 02 00 F4 03 04 00 E8 0D C4 66 B6 04 01 00 00 6E 75 0B 3F FD AE 78 7A [09:52:20]CommunicateWithHost err = 0 [09:52:20]CheckOFDResponse [09:52:20]1017 (14) - 77093643461234 [09:52:20]1041 (16) - 0000000000871776 [09:52:20]1040 (4) - 139600 [09:52:20]1012 (4) - 20.08.2024 03:30 [09:52:20]1206 (1) - 0 [09:52:20]OFD Sender: Remove packet 139600 [09:52:20]ProducePacketName [09:52:20]name=ofd_packets/00139600 [09:52:20]NVStorageDeleteData [09:52:20]Write to MH i2c: 01 00 00 8C 21 AD [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 07 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 DF 0C 9F [09:52:20]RasterBufferAndPrint [09:52:20]line [09:52:20]line [09:52:20]line [09:52:20]line [09:52:20]line [09:52:20]written 0, free lines is 3301 [09:52:20]MH_Cut [09:52:20]Write to MH i2c: D1 01 00 93 21 01 86 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: D1 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: D1 01 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: D1 01 00 93 21 00 85 [09:52:20]Write to MH i2c: 01 00 00 94 21 B5 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:21]OFD Sender: No OFD packet to send [09:52:21]*** Cut start [09:52:21]*** Partial cut [09:52:21]*** CUTSNS_PIN = 1 [09:52:21]*** CUTSNS_PIN = 0 [09:52:21]*** Brake cut motor [09:52:22]Read from MH i2c: 01 [09:52:22]MH_I2C_Read... [09:52:22]*** Stop cut motor [09:52:22]*** Cut end [09:52:22]Read from MH i2c: 01 07 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: 01 07 00 94 21 00 00 00 00 00 FF 0F CA [09:52:22]process_action close_receipt done [09:52:22]requested_data is exist [09:52:22]produce_requested_data [09:52:22]requested_item fm.sn is exist - process it [09:52:22]wFMCommunicate request_size=4 [09:52:22]MH_SAM_APDU [09:52:22]CAPDU: 80 11 00 00 [09:52:22]Write to MH i2c: E2 08 00 95 21 80 11 00 00 00 00 00 00 30 [09:52:22]Write i2c OK [09:52:22]MH_I2C_Read... [09:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:22]Read from MH i2c: E2 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 17 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 17 00 95 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 87 [09:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:52:22]wFMCommunicate OK [09:52:22]requested_item fd.num is exist - process it [09:52:22]SAM_PROTO_GetFieldsCounters [09:52:22]wFMCommunicate request_size=4 [09:52:22]MH_SAM_APDU [09:52:22]CAPDU: 80 13 00 00 [09:52:22]Write to MH i2c: E2 08 00 96 21 80 13 00 00 00 00 00 00 33 [09:52:22]Write i2c OK [09:52:22]MH_I2C_Read... [09:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:22]Read from MH i2c: E2 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 62 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 62 00 96 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 50 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [09:52:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 50 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:22]wFMCommunicate OK [09:52:22]SAM_PROTO_GetFieldsCounters done [09:52:22]requested_item shift.num is exist - process it [09:52:22]requested_item shift.opened is exist - process it [09:52:22]req_shift_opened [09:52:22]FM_GetShiftState [09:52:22]SAM_PROTO_GetShiftState [09:52:22]wFMCommunicate request_size=4 [09:52:22]MH_SAM_APDU [09:52:22]CAPDU: 80 13 01 00 [09:52:22]Write to MH i2c: E2 08 00 97 21 80 13 01 00 00 00 00 00 35 [09:52:22]Write i2c OK [09:52:22]MH_I2C_Read... [09:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:22]Read from MH i2c: E2 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 0E 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 0E 00 97 21 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C6 [09:52:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:52:22]wFMCommunicate OK [09:52:22]SAM_PROTO_GetShiftState done [09:52:22]FM_GetShiftState done [09:52:22]req_shift_opened done [09:52:22]requested_item shift.open_date is exist - process it [09:52:22]req_shift_open_date [09:52:22]req_shift_open_date done [09:52:22]produce_requested_data done [09:52:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139600,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:52:22]process_action_free close_receipt [09:52:22]json_value_free [09:52:22]json_value_free done [09:52:22]process_json_proto returns [09:52:22]Send response to host [09:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139600,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:52:22]free response buf [09:52:22]execute_script done [09:52:22]execute_script returns [09:52:22]free content buf [09:52:22]Sock 7.Close socket [09:52:22]Sock 7.Thread stoped [09:52:25]int [09:52:25]Write to MH i2c: 01 00 00 98 21 B9 [09:52:25]*** FLAG_PRN_KEY set [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 07 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 07 00 98 21 00 08 00 00 00 FF 0F D6 [09:52:25]state=0 [09:52:25]Key pressed [09:52:25]Feed [09:52:25]Write to MH i2c: D8 00 00 99 21 91 [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: D8 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: D8 01 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: D8 01 00 99 21 00 92 [09:52:25]int [09:52:25]Write to MH i2c: 01 00 00 9A 21 BB [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 07 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 07 00 9A 21 00 48 00 00 00 3C 00 46 [09:52:25]state=2 [09:52:25]Key pressed [09:52:25]int [09:52:25]Write to MH i2c: 01 00 00 9B 21 BC [09:52:25]*** FLAG_PRN_KEY reset [09:52:25]Write i2c OK [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 07 00 [09:52:25]MH_I2C_Read... [09:52:25]Read from MH i2c: 01 07 00 9B 21 00 00 00 00 00 FB 0F CD [09:52:25]state=2 [09:52:25]Stop feed [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:39]accept exits with 9 [09:53:39]New connection [09:53:39]New thread 3067071844 created [09:53:39]Thread 3067215204 joined [09:53:39]Waiting for new connection... [09:53:39] Sock 9.Parse request [09:53:39]Sock 9.Check first char [09:53:39]Sock 9.First char is OK [09:53:39]request: POST /json_proto HTTP/1.0 [09:53:39]Method: POST [09:53:39]URL: /json_proto [09:53:39]Method is POST - this is cgi request [09:53:39]url: /json_proto [09:53:39]query_string will be loaded in cgi processing [09:53:39]execute_cgi json_proto POST (null) [09:53:39]execute_cgi path=json_proto method=POST [09:53:39]POST find Content-Length [09:53:39]Host: 172.17.45.67:8080 [09:53:39]Content-Length: 678 [09:53:39]Content-Type: application/json [09:53:39] [09:53:39]POST finish read [09:53:39]Found Content-Length = 678 [09:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:39]execute_script... [09:53: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)593445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:39]POST & json_proto [09:53:39]process_json_proto [09:53:39]json parsed OK: [09:53:39]protocol is kg_v1.0 [09:53:39]action value=close_receipt [09:53:39]process_action close_receipt [09:53:39]cmd_close_receipt [09:53:39]MH_GetDate [09:53:39]Write to MH i2c: F0 00 00 9C 21 AC [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: F0 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: F0 09 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: F0 09 00 9C 21 00 A6 67 C4 66 5F 7F 2B 66 5B [09:53:39]GetLastDocTimeStamp 1724147541 [09:53:39]current date 1724147622 [09:53:39]FM_GetShiftState [09:53:39]SAM_PROTO_GetShiftState [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 13 01 00 [09:53:39]Write to MH i2c: E2 08 00 9D 21 80 13 01 00 00 00 00 00 3B [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 0E 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 0E 00 9D 21 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CC [09:53:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:53:39]wFMCommunicate OK [09:53:39]SAM_PROTO_GetShiftState done [09:53:39]FM_GetShiftState done [09:53:39]opened in 1724113785 [09:53:39]opened+sec_in_day 1724200185 [09:53:39]quantity*price = 80004 [09:53:39]sum+1 = 80005 [09:53:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 73 20.08.2024 09:53 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139601 ФПД: 233103324348444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095342&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139601&fm=233103324348444&tin=02508201610067®Number=0000000000092569&sum=80000 [09:53:40]StoreToDocumentArchive [09:53:40]shift 453 fd 139601 [09:53:40]save to /storage/0453/doc_00139601 [09:53:40]save last doc name /storage/0453/doc_00139601 to /storage/kkm_last_doc_name [09:53:40]save OK [09:53:40]Clear old archive folders... [09:53:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:40]tlvbuf is 00D3E440 [09:53:40]SAM_PROTO_ClearQueue [09:53:40]wFMCommunicate request_size=4 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 09 00 00 [09:53:40]Write to MH i2c: E2 08 00 AA 21 80 09 00 00 00 00 00 00 3D [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 AA 21 00 90 00 3F [09:53:40]RAPDU: 90 00 [09:53:40]wFMCommunicate OK [09:53:40]SAM_PROTO_ClearQueue done [09:53:40]KKMCreateOFDPacket [09:53:40]OFDProtocolAddRootSTLVToBuf [09:53:40]FM_MakeSignedData [09:53:40]FM_MakeSignedData [09:53:40]SAM_PROTO_SignData [09:53:40]wFMCommunicate request_size=4 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 0D 01 02 [09:53:40]Write to MH i2c: E2 08 00 AB 21 80 0D 01 02 00 00 00 00 45 [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 AB 21 00 90 00 40 [09:53:40]RAPDU: 90 00 [09:53:40]wFMCommunicate OK [09:53:40]wFMCommunicate request_size=255 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A6 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 21 02 00 35 04 06 00 D4 [09:53:40]Write to MH i2c: E2 02 01 AC 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A6 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 21 02 00 35 04 06 00 D4 00 00 09 [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 AC 21 00 90 00 41 [09:53:40]RAPDU: 90 00 [09:53:40]wFMCommunicate OK [09:53:40]wFMCommunicate request_size=10 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 0D 02 02 05 01 98 D8 00 1C [09:53:40]Write to MH i2c: E2 0D 00 AD 21 80 0D 02 02 05 00 01 98 D8 00 1C 00 00 DF [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:40]Read from MH i2c: E2 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: E2 03 00 AD 21 00 90 00 42 [09:53:40]RAPDU: 90 00 [09:53:40]wFMCommunicate OK [09:53:40]wFMCommunicate request_size=4 [09:53:40]MH_SAM_APDU [09:53:40]CAPDU: 80 0D 03 02 [09:53:40]Write to MH i2c: E2 08 00 AE 21 80 0D 03 02 00 00 00 00 4A [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0B 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 0B 00 AE 21 00 EC DA C1 4E A6 FF F2 52 90 00 09 [09:53:41]RAPDU: EC DA C1 4E A6 FF F2 52 90 00 [09:53:41]wFMCommunicate OK [09:53:41]SAM_PROTO_SignData done [09:53:41]FM_MakeSignedData done [09:53:41]CreateOFDProtocolMessage [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 11 00 00 [09:53:41]Write to MH i2c: E2 08 00 AF 21 80 11 00 00 00 00 00 00 4A [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 AF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [09:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:53:41]wFMCommunicate OK [09:53:41]CreateOFDProtocolMessage done [09:53:41]OFDSenderStorePacket 139601 [09:53:41]StoreOFDPacket docnum=139601 [09:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F E5 07 01 0E D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A6 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 21 02 00 35 04 06 00 D4 01 98 D8 00 1C EC DA C1 4E A6 FF F2 52 [09:53:41]CheckFolder [09:53:41]dirname=/storage/ofd_packets [09:53:41]CheckFolder done [09:53:41]ProducePacketName [09:53:41]name=ofd_packets/00139601 [09:53:41]NVStorageSaveData ofd_packets/00139601 [09:53:41]File name is /storage/ofd_packets/00139601 [09:53:41]Write 301 bytes [09:53:41]NVStorageSaveData done [09:53:41]OFDSenderStorePacket done [09:53:41]KKMCreateOFDPacket done [09:53:41]NVStorageSaveData kkm_last_timestamp [09:53:41]File name is /storage/kkm_last_timestamp [09:53:41]Write 4 bytes [09:53:41]NVStorageSaveData done [09:53:41]ExternCall_PrintAddStr [09:53:41]wPrintStart [09:53:41]Write to MH i2c: 01 00 00 B0 21 D1 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 FF 0F E6 [09:53:41]RasterBufferAndPrint [09:53:41]line Счет N : (1)593445 [09:53:41]line ИНН: 02508201610067 [09:53:41]line Контрольно-Кассовый Чек [09:53:41]line ПРОДАЖА [09:53:41]line ТРК (МРК, ГНК) : 52 [09:53:41]line Товар: 2710124130 [09:53:41]line Аи-92-К-5 [09:53:41]line 11.800 * 67.80 [09:53:41]line = 800.04 [09:53:41]line НДС 12% НСП 1% [09:53:41]line > о реализуемом товаре [09:53:41]line ОКРУГЛЕНИЕ: -0.04 [09:53:41]line ИТОГО: 800.00 [09:53:41]line Внесено: 800.00 [09:53:41]line СДАЧА: 0.00 [09:53:41]line НСП 1% : 7.08 [09:53:41]line НДС 12% : 84.96 [09:53:41]line Наличными: 800.00 [09:53:41]line Безнал.: 0.00 [09:53:41]line Место: АЗС № 136 "Партнер Нефть" [09:53:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:53:41]line СНО: Общий режим [09:53:41]line Чек 73 20.08.2024 09:53 [09:53:41]line Смена: 453 ФФД: 1.0 [09:53:41]line ЗНМ: 0300000067 [09:53:41]line РНМ: 0000000000092569 [09:53:41]line Версия ККМ: 001 [09:53:41]line ФМ: 0000000000871776 [09:53:41]line ФД: 139601 [09:53:41]line ФПД: 233103324348444 [09:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095342&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139601&fm=233103324348444&tin=02508201610067®Number=0000000000092569&sum=80000 [09:53:41]OFD Sender: Processing packet 139601 [packets to send 137, broken 136] [09:53:41]ProducePacketName [09:53:41]name=ofd_packets/00139601 [09:53:41]OFD Sender: To server: pG, [09:53:41]CommunicateWithHost lk.salyk.kg:30040 [09:53:41]ConnectInit lk.salyk.kg [09:53:41]written 0, free lines is 4095 [09:53:41]Connected sock=10 [09:53:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F E5 07 01 0E D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A6 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 21 02 00 35 04 06 00 D4 01 98 D8 00 1C EC DA C1 4E A6 FF F2 52 [09:53:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 79 A9 47 00 FC E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 21 02 00 F4 03 04 00 3A 0E C4 66 B6 04 01 00 00 A5 9F 73 40 69 39 75 58 [09:53:41]CommunicateWithHost err = 0 [09:53:41]CheckOFDResponse [09:53:41]1017 (14) - 77093643461234 [09:53:41]1041 (16) - 0000000000871776 [09:53:41]1040 (4) - 139601 [09:53:41]1012 (4) - 20.08.2024 03:32 [09:53:41]1206 (1) - 0 [09:53:41]OFD Sender: Remove packet 139601 [09:53:41]ProducePacketName [09:53:41]name=ofd_packets/00139601 [09:53:41]NVStorageDeleteData [09:53:41]Write to MH i2c: 01 00 00 DB 21 FC [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 DB 21 00 00 00 00 00 CE 0C DD [09:53:41]RasterBufferAndPrint [09:53:41]line [09:53:41]line [09:53:41]line [09:53:41]line [09:53:41]line [09:53:41]written 0, free lines is 3285 [09:53:41]MH_Cut [09:53:41]Write to MH i2c: D1 01 00 E2 21 01 D5 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: D1 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: D1 01 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: D1 01 00 E2 21 00 D4 [09:53:41]Write to MH i2c: 01 00 00 E3 21 04 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:42]OFD Sender: No OFD packet to send [09:53:42]*** Cut start [09:53:42]*** Partial cut [09:53:42]*** CUTSNS_PIN = 1 [09:53:42]*** CUTSNS_PIN = 0 [09:53:42]*** Brake cut motor [09:53:43]Read from MH i2c: 01 [09:53:43]MH_I2C_Read... [09:53:43]*** Stop cut motor [09:53:43]*** Cut end [09:53:43]Read from MH i2c: 01 07 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: 01 07 00 E3 21 00 00 00 00 00 FF 0F 19 [09:53:43]process_action close_receipt done [09:53:43]requested_data is exist [09:53:43]produce_requested_data [09:53:43]requested_item fm.sn is exist - process it [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 11 00 00 [09:53:43]Write to MH i2c: E2 08 00 E4 21 80 11 00 00 00 00 00 00 7F [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 17 00 E4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [09:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:53:43]wFMCommunicate OK [09:53:43]requested_item fd.num is exist - process it [09:53:43]SAM_PROTO_GetFieldsCounters [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 13 00 00 [09:53:43]Write to MH i2c: E2 08 00 E5 21 80 13 00 00 00 00 00 00 82 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 62 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 62 00 E5 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 51 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [09:53:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 51 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_GetFieldsCounters done [09:53:43]requested_item shift.num is exist - process it [09:53:43]requested_item shift.opened is exist - process it [09:53:43]req_shift_opened [09:53:43]FM_GetShiftState [09:53:43]SAM_PROTO_GetShiftState [09:53:43]wFMCommunicate request_size=4 [09:53:43]MH_SAM_APDU [09:53:43]CAPDU: 80 13 01 00 [09:53:43]Write to MH i2c: E2 08 00 E6 21 80 13 01 00 00 00 00 00 84 [09:53:43]Write i2c OK [09:53:43]MH_I2C_Read... [09:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:43]Read from MH i2c: E2 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 [09:53:43]MH_I2C_Read... [09:53:43]Read from MH i2c: E2 0E 00 E6 21 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 15 [09:53:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:53:43]wFMCommunicate OK [09:53:43]SAM_PROTO_GetShiftState done [09:53:43]FM_GetShiftState done [09:53:43]req_shift_opened done [09:53:43]requested_item shift.open_date is exist - process it [09:53:43]req_shift_open_date [09:53:43]req_shift_open_date done [09:53:43]produce_requested_data done [09:53:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139601,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:53:43]process_action_free close_receipt [09:53:43]json_value_free [09:53:43]json_value_free done [09:53:43]process_json_proto returns [09:53:43]Send response to host [09:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139601,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:53:43]free response buf [09:53:43]execute_script done [09:53:43]execute_script returns [09:53:43]free content buf [09:53:43]Sock 9.Close socket [09:53:43]Sock 9.Thread stoped [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:03]accept exits with 7 [09:54:03]New connection [09:54:03]New thread 3067215204 created [09:54:03]Thread 3067071844 joined [09:54:03]Waiting for new connection... [09:54:03] Sock 7.Parse request [09:54:03]Sock 7.Check first char [09:54:03]Sock 7.First char is OK [09:54:03]request: POST /json_proto HTTP/1.0 [09:54:03]Method: POST [09:54:03]URL: /json_proto [09:54:03]Method is POST - this is cgi request [09:54:03]url: /json_proto [09:54:03]query_string will be loaded in cgi processing [09:54:03]execute_cgi json_proto POST (null) [09:54:03]execute_cgi path=json_proto method=POST [09:54:03]POST find Content-Length [09:54:03]Host: 172.17.45.67:8080 [09:54:03]Content-Length: 677 [09:54:03]Content-Type: application/json [09:54:03] [09:54:03]POST finish read [09:54:03]Found Content-Length = 677 [09:54:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:03]execute_script... [09:54:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:03]POST & json_proto [09:54:03]process_json_proto [09:54:03]json parsed OK: [09:54:03]protocol is kg_v1.0 [09:54:03]action value=close_receipt [09:54:03]process_action close_receipt [09:54:03]cmd_close_receipt [09:54:03]MH_GetDate [09:54:03]Write to MH i2c: F0 00 00 E7 21 F7 [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: F0 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: F0 09 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: F0 09 00 E7 21 00 BE 67 C4 66 5F 7F 2B 66 BE [09:54:03]GetLastDocTimeStamp 1724147622 [09:54:03]current date 1724147646 [09:54:03]FM_GetShiftState [09:54:03]SAM_PROTO_GetShiftState [09:54:03]wFMCommunicate request_size=4 [09:54:03]MH_SAM_APDU [09:54:03]CAPDU: 80 13 01 00 [09:54:03]Write to MH i2c: E2 08 00 E8 21 80 13 01 00 00 00 00 00 86 [09:54:03]Write i2c OK [09:54:03]MH_I2C_Read... [09:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:03]Read from MH i2c: E2 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 0E 00 [09:54:03]MH_I2C_Read... [09:54:03]Read from MH i2c: E2 0E 00 E8 21 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 17 [09:54:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:54:03]wFMCommunicate OK [09:54:03]SAM_PROTO_GetShiftState done [09:54:03]FM_GetShiftState done [09:54:03]opened in 1724113785 [09:54:03]opened+sec_in_day 1724200185 [09:54:03]quantity*price = 60027 [09:54:03]sum+1 = 60029 [09:54:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 74 20.08.2024 09:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139602 ФПД: 259706694676480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139602&fm=259706694676480&tin=02508201610067®Number=0000000000092569&sum=60000 [09:54:04]StoreToDocumentArchive [09:54:04]shift 453 fd 139602 [09:54:04]save to /storage/0453/doc_00139602 [09:54:04]save last doc name /storage/0453/doc_00139602 to /storage/kkm_last_doc_name [09:54:04]save OK [09:54:04]Clear old archive folders... [09:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:04]tlvbuf is 00D6C800 [09:54:04]SAM_PROTO_ClearQueue [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 09 00 00 [09:54:04]Write to MH i2c: E2 08 00 F5 21 80 09 00 00 00 00 00 00 88 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 F5 21 00 90 00 8A [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]SAM_PROTO_ClearQueue done [09:54:04]KKMCreateOFDPacket [09:54:04]OFDProtocolAddRootSTLVToBuf [09:54:04]FM_MakeSignedData [09:54:04]FM_MakeSignedData [09:54:04]SAM_PROTO_SignData [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 01 02 [09:54:04]Write to MH i2c: E2 08 00 F6 21 80 0D 01 02 00 00 00 00 90 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]wFMCommunicate request_size=255 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 BE 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 21 02 00 35 04 06 00 EC [09:54:04]Write to MH i2c: E2 02 01 F7 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 BE 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 21 02 00 35 04 06 00 EC 00 00 47 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 F7 21 00 90 00 8C [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]wFMCommunicate request_size=10 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 02 02 05 33 AD 48 30 00 [09:54:04]Write to MH i2c: E2 0D 00 F8 21 80 0D 02 02 05 00 33 AD 48 30 00 00 00 F5 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [09:54:04]RAPDU: 90 00 [09:54:04]wFMCommunicate OK [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 0D 03 02 [09:54:04]Write to MH i2c: E2 08 00 F9 21 80 0D 03 02 00 00 00 00 95 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:04]Read from MH i2c: E2 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 0B 00 [09:54:04]MH_I2C_Read... [09:54:04]Read from MH i2c: E2 0B 00 F9 21 00 D7 E9 65 BC 65 77 88 53 90 00 2E [09:54:04]RAPDU: D7 E9 65 BC 65 77 88 53 90 00 [09:54:04]wFMCommunicate OK [09:54:04]SAM_PROTO_SignData done [09:54:04]FM_MakeSignedData done [09:54:04]CreateOFDProtocolMessage [09:54:04]wFMCommunicate request_size=4 [09:54:04]MH_SAM_APDU [09:54:04]CAPDU: 80 11 00 00 [09:54:04]Write to MH i2c: E2 08 00 FA 21 80 11 00 00 00 00 00 00 95 [09:54:04]Write i2c OK [09:54:04]MH_I2C_Read... [09:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:05]Read from MH i2c: E2 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 17 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: E2 17 00 FA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EC [09:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:54:05]wFMCommunicate OK [09:54:05]CreateOFDProtocolMessage done [09:54:05]OFDSenderStorePacket 139602 [09:54:05]StoreOFDPacket docnum=139602 [09:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0B 5C 07 01 62 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 BE 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 21 02 00 35 04 06 00 EC 33 AD 48 30 00 D7 E9 65 BC 65 77 88 53 [09:54:05]CheckFolder [09:54:05]dirname=/storage/ofd_packets [09:54:05]CheckFolder done [09:54:05]ProducePacketName [09:54:05]name=ofd_packets/00139602 [09:54:05]NVStorageSaveData ofd_packets/00139602 [09:54:05]File name is /storage/ofd_packets/00139602 [09:54:05]Write 301 bytes [09:54:05]NVStorageSaveData done [09:54:05]OFDSenderStorePacket done [09:54:05]KKMCreateOFDPacket done [09:54:05]NVStorageSaveData kkm_last_timestamp [09:54:05]File name is /storage/kkm_last_timestamp [09:54:05]Write 4 bytes [09:54:05]NVStorageSaveData done [09:54:05]ExternCall_PrintAddStr [09:54:05]wPrintStart [09:54:05]Write to MH i2c: 01 00 00 FB 21 1C [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 FB 21 00 00 00 00 00 FF 0F 31 [09:54:05]RasterBufferAndPrint [09:54:05]line Счет N : (1)593446 [09:54:05]line ИНН: 02508201610067 [09:54:05]line Контрольно-Кассовый Чек [09:54:05]line ПРОДАЖА [09:54:05]line ТРК (МРК, ГНК) : 61 [09:54:05]line Товар: 2710124500 [09:54:05]line Аи-95-К-5 [09:54:05]line 8.090 * 74.20 [09:54:05]line = 600.28 [09:54:05]line НДС 12% НСП 1% [09:54:05]line > о реализуемом товаре [09:54:05]line ОКРУГЛЕНИЕ: -0.28 [09:54:05]line ИТОГО: 600.00 [09:54:05]line Внесено: 600.00 [09:54:05]line СДАЧА: 0.00 [09:54:05]line НСП 1% : 5.31 [09:54:05]line НДС 12% : 63.75 [09:54:05]line Наличными: 600.00 [09:54:05]line Безнал.: 0.00 [09:54:05]line Место: АЗС № 136 "Партнер Нефть" [09:54:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:54:05]line СНО: Общий режим [09:54:05]line Чек 74 20.08.2024 09:54 [09:54:05]line Смена: 453 ФФД: 1.0 [09:54:05]line ЗНМ: 0300000067 [09:54:05]line РНМ: 0000000000092569 [09:54:05]line Версия ККМ: 001 [09:54:05]line ФМ: 0000000000871776 [09:54:05]line ФД: 139602 [09:54:05]line ФПД: 259706694676480 [09:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139602&fm=259706694676480&tin=02508201610067®Number=0000000000092569&sum=60000 [09:54:05]OFD Sender: Processing packet 139602 [packets to send 137, broken 136] [09:54:05]ProducePacketName [09:54:05]name=ofd_packets/00139602 [09:54:05]OFD Sender: To server: pG, [09:54:05]CommunicateWithHost lk.salyk.kg:30040 [09:54:05]ConnectInit lk.salyk.kg [09:54:05]written 0, free lines is 4095 [09:54:05]Connected sock=11 [09:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0B 5C 07 01 62 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 BE 67 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 21 02 00 35 04 06 00 EC 33 AD 48 30 00 D7 E9 65 BC 65 77 88 53 [09:54:05]Write to MH i2c: 01 00 00 26 22 48 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: 01 07 00 26 22 00 00 00 00 00 D0 0C 2B [09:54:05]RasterBufferAndPrint [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]line [09:54:05]written 0, free lines is 3285 [09:54:05]MH_Cut [09:54:05]Write to MH i2c: D1 01 00 2D 22 01 21 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 01 00 [09:54:05]MH_I2C_Read... [09:54:05]Read from MH i2c: D1 01 00 2D 22 00 20 [09:54:05]Write to MH i2c: 01 00 00 2E 22 50 [09:54:05]Write i2c OK [09:54:05]MH_I2C_Read... [09:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 71 45 47 00 22 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 21 02 00 F4 03 04 00 52 0E C4 66 B6 04 01 00 00 A5 86 35 2C 86 F4 5A 64 [09:54:05]CommunicateWithHost err = 0 [09:54:05]CheckOFDResponse [09:54:05]1017 (14) - 77093643461234 [09:54:05]1041 (16) - 0000000000871776 [09:54:05]1040 (4) - 139602 [09:54:05]1012 (4) - 20.08.2024 03:32 [09:54:05]1206 (1) - 0 [09:54:05]OFD Sender: Remove packet 139602 [09:54:05]ProducePacketName [09:54:05]name=ofd_packets/00139602 [09:54:05]NVStorageDeleteData [09:54:06]OFD Sender: No OFD packet to send [09:54:06]*** Cut start [09:54:06]*** Partial cut [09:54:06]*** CUTSNS_PIN = 1 [09:54:06]*** CUTSNS_PIN = 0 [09:54:06]*** Brake cut motor [09:54:07]Read from MH i2c: 01 [09:54:07]MH_I2C_Read... [09:54:07]*** Stop cut motor [09:54:07]*** Cut end [09:54:07]Read from MH i2c: 01 07 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: 01 07 00 2E 22 00 00 00 00 00 FF 0F 65 [09:54:07]process_action close_receipt done [09:54:07]requested_data is exist [09:54:07]produce_requested_data [09:54:07]requested_item fm.sn is exist - process it [09:54:07]wFMCommunicate request_size=4 [09:54:07]MH_SAM_APDU [09:54:07]CAPDU: 80 11 00 00 [09:54:07]Write to MH i2c: E2 08 00 2F 22 80 11 00 00 00 00 00 00 CB [09:54:07]Write i2c OK [09:54:07]MH_I2C_Read... [09:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:07]Read from MH i2c: E2 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 17 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 17 00 2F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 22 [09:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:54:07]wFMCommunicate OK [09:54:07]requested_item fd.num is exist - process it [09:54:07]SAM_PROTO_GetFieldsCounters [09:54:07]wFMCommunicate request_size=4 [09:54:07]MH_SAM_APDU [09:54:07]CAPDU: 80 13 00 00 [09:54:07]Write to MH i2c: E2 08 00 30 22 80 13 00 00 00 00 00 00 CE [09:54:07]Write i2c OK [09:54:07]MH_I2C_Read... [09:54:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:07]Read from MH i2c: E2 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 62 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 62 00 30 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 52 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [09:54:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 52 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:07]wFMCommunicate OK [09:54:07]SAM_PROTO_GetFieldsCounters done [09:54:07]requested_item shift.num is exist - process it [09:54:07]requested_item shift.opened is exist - process it [09:54:07]req_shift_opened [09:54:07]FM_GetShiftState [09:54:07]SAM_PROTO_GetShiftState [09:54:07]wFMCommunicate request_size=4 [09:54:07]MH_SAM_APDU [09:54:07]CAPDU: 80 13 01 00 [09:54:07]Write to MH i2c: E2 08 00 31 22 80 13 01 00 00 00 00 00 D0 [09:54:07]Write i2c OK [09:54:07]MH_I2C_Read... [09:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:07]Read from MH i2c: E2 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 0E 00 [09:54:07]MH_I2C_Read... [09:54:07]Read from MH i2c: E2 0E 00 31 22 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 61 [09:54:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:54:07]wFMCommunicate OK [09:54:07]SAM_PROTO_GetShiftState done [09:54:07]FM_GetShiftState done [09:54:07]req_shift_opened done [09:54:07]requested_item shift.open_date is exist - process it [09:54:07]req_shift_open_date [09:54:07]req_shift_open_date done [09:54:07]produce_requested_data done [09:54:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139602,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:54:07]process_action_free close_receipt [09:54:07]json_value_free [09:54:07]json_value_free done [09:54:07]process_json_proto returns [09:54:07]Send response to host [09:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139602,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:54:07]free response buf [09:54:07]execute_script done [09:54:07]execute_script returns [09:54:07]free content buf [09:54:07]Sock 7.Close socket [09:54:07]Sock 7.Thread stoped [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:18]accept exits with 9 [09:56:18]New connection [09:56:18]New thread 3067071844 created [09:56:18]Thread 3067215204 joined [09:56:18]Waiting for new connection... [09:56:18] Sock 9.Parse request [09:56:18]Sock 9.Check first char [09:56:18]Sock 9.First char is OK [09:56:18]request: POST /json_proto HTTP/1.0 [09:56:18]Method: POST [09:56:18]URL: /json_proto [09:56:18]Method is POST - this is cgi request [09:56:18]url: /json_proto [09:56:18]query_string will be loaded in cgi processing [09:56:18]execute_cgi json_proto POST (null) [09:56:18]execute_cgi path=json_proto method=POST [09:56:18]POST find Content-Length [09:56:18]Host: 172.17.45.67:8080 [09:56:18]Content-Length: 677 [09:56:18]Content-Type: application/json [09:56:18] [09:56:18]POST finish read [09:56:18]Found Content-Length = 677 [09:56:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:18]execute_script... [09:56: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)593447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:18]POST & json_proto [09:56:18]process_json_proto [09:56:18]json parsed OK: [09:56:18]protocol is kg_v1.0 [09:56:18]action value=close_receipt [09:56:18]process_action close_receipt [09:56:18]cmd_close_receipt [09:56:18]MH_GetDate [09:56:18]Write to MH i2c: F0 00 00 32 22 43 [09:56:18]Write i2c OK [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: F0 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: F0 09 00 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: F0 09 00 32 22 00 45 68 C4 66 5F 7F 2B 66 92 [09:56:18]GetLastDocTimeStamp 1724147646 [09:56:18]current date 1724147781 [09:56:18]FM_GetShiftState [09:56:18]SAM_PROTO_GetShiftState [09:56:18]wFMCommunicate request_size=4 [09:56:18]MH_SAM_APDU [09:56:18]CAPDU: 80 13 01 00 [09:56:18]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [09:56:18]Write i2c OK [09:56:18]MH_I2C_Read... [09:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:19]Read from MH i2c: E2 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 0E 00 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 63 [09:56:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:56:19]wFMCommunicate OK [09:56:19]SAM_PROTO_GetShiftState done [09:56:19]FM_GetShiftState done [09:56:19]opened in 1724113785 [09:56:19]opened+sec_in_day 1724200185 [09:56:19]quantity*price = 30035 [09:56:19]sum+1 = 30036 [09:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 75 20.08.2024 09:56 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139603 ФПД: 269646276101372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139603&fm=269646276101372&tin=02508201610067®Number=0000000000092569&sum=30000 [09:56:20]StoreToDocumentArchive [09:56:20]shift 453 fd 139603 [09:56:20]save to /storage/0453/doc_00139603 [09:56:20]save last doc name /storage/0453/doc_00139603 to /storage/kkm_last_doc_name [09:56:20]save OK [09:56:20]Clear old archive folders... [09:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:20]tlvbuf is 00DA9640 [09:56:20]SAM_PROTO_ClearQueue [09:56:20]wFMCommunicate request_size=4 [09:56:20]MH_SAM_APDU [09:56:20]CAPDU: 80 09 00 00 [09:56:20]Write to MH i2c: E2 08 00 40 22 80 09 00 00 00 00 00 00 D4 [09:56:20]Write i2c OK [09:56:20]MH_I2C_Read... [09:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:20]Read from MH i2c: E2 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 40 22 00 90 00 D6 [09:56:20]RAPDU: 90 00 [09:56:20]wFMCommunicate OK [09:56:20]SAM_PROTO_ClearQueue done [09:56:20]KKMCreateOFDPacket [09:56:20]OFDProtocolAddRootSTLVToBuf [09:56:20]FM_MakeSignedData [09:56:20]FM_MakeSignedData [09:56:20]SAM_PROTO_SignData [09:56:20]wFMCommunicate request_size=4 [09:56:20]MH_SAM_APDU [09:56:20]CAPDU: 80 0D 01 02 [09:56:20]Write to MH i2c: E2 08 00 41 22 80 0D 01 02 00 00 00 00 DC [09:56:20]Write i2c OK [09:56:20]MH_I2C_Read... [09:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:20]Read from MH i2c: E2 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 41 22 00 90 00 D7 [09:56:20]RAPDU: 90 00 [09:56:20]wFMCommunicate OK [09:56:20]wFMCommunicate request_size=255 [09:56:20]MH_SAM_APDU [09:56:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 21 02 00 35 04 06 00 F5 [09:56:20]Write to MH i2c: E2 02 01 42 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 21 02 00 35 04 06 00 F5 00 00 D8 [09:56:20]Write i2c OK [09:56:20]MH_I2C_Read... [09:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:20]Read from MH i2c: E2 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [09:56:20]RAPDU: 90 00 [09:56:20]wFMCommunicate OK [09:56:20]wFMCommunicate request_size=10 [09:56:20]MH_SAM_APDU [09:56:20]CAPDU: 80 0D 02 02 05 3D EA 80 84 FC [09:56:20]Write to MH i2c: E2 0D 00 43 22 80 0D 02 02 05 00 3D EA 80 84 FC 00 00 10 [09:56:20]Write i2c OK [09:56:20]MH_I2C_Read... [09:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:20]Read from MH i2c: E2 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [09:56:20]RAPDU: 90 00 [09:56:20]wFMCommunicate OK [09:56:20]wFMCommunicate request_size=4 [09:56:20]MH_SAM_APDU [09:56:20]CAPDU: 80 0D 03 02 [09:56:20]Write to MH i2c: E2 08 00 44 22 80 0D 03 02 00 00 00 00 E1 [09:56:20]Write i2c OK [09:56:20]MH_I2C_Read... [09:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:20]Read from MH i2c: E2 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 0B 00 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 0B 00 44 22 00 81 77 20 6B 90 E2 83 A2 90 00 FC [09:56:20]RAPDU: 81 77 20 6B 90 E2 83 A2 90 00 [09:56:20]wFMCommunicate OK [09:56:20]SAM_PROTO_SignData done [09:56:20]FM_MakeSignedData done [09:56:20]CreateOFDProtocolMessage [09:56:20]wFMCommunicate request_size=4 [09:56:20]MH_SAM_APDU [09:56:20]CAPDU: 80 11 00 00 [09:56:20]Write to MH i2c: E2 08 00 45 22 80 11 00 00 00 00 00 00 E1 [09:56:20]Write i2c OK [09:56:20]MH_I2C_Read... [09:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:20]Read from MH i2c: E2 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 17 00 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 17 00 45 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 38 [09:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:56:20]wFMCommunicate OK [09:56:20]CreateOFDProtocolMessage done [09:56:20]OFDSenderStorePacket 139603 [09:56:20]StoreOFDPacket docnum=139603 [09:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 64 24 07 01 2E E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 21 02 00 35 04 06 00 F5 3D EA 80 84 FC 81 77 20 6B 90 E2 83 A2 [09:56:20]CheckFolder [09:56:20]dirname=/storage/ofd_packets [09:56:20]CheckFolder done [09:56:20]ProducePacketName [09:56:20]name=ofd_packets/00139603 [09:56:20]NVStorageSaveData ofd_packets/00139603 [09:56:20]File name is /storage/ofd_packets/00139603 [09:56:20]Write 301 bytes [09:56:20]NVStorageSaveData done [09:56:20]OFDSenderStorePacket done [09:56:20]KKMCreateOFDPacket done [09:56:20]NVStorageSaveData kkm_last_timestamp [09:56:20]File name is /storage/kkm_last_timestamp [09:56:20]Write 4 bytes [09:56:20]NVStorageSaveData done [09:56:20]OFD Sender: Processing packet 139603 [packets to send 137, broken 136] [09:56:20]ProducePacketName [09:56:20]name=ofd_packets/00139603 [09:56:20]OFD Sender: To server: pG, [09:56:20]CommunicateWithHost lk.salyk.kg:30040 [09:56:20]ConnectInit lk.salyk.kg [09:56:20]ExternCall_PrintAddStr [09:56:20]wPrintStart [09:56:20]Write to MH i2c: 01 00 00 46 22 68 [09:56:20]Write i2c OK [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: 01 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: 01 07 00 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 FF 0F 7D [09:56:20]RasterBufferAndPrint [09:56:20]line Счет N : (1)593447 [09:56:20]line ИНН: 02508201610067 [09:56:20]line Контрольно-Кассовый Чек [09:56:20]line ПРОДАЖА [09:56:20]line ТРК (МРК, ГНК) : 42 [09:56:20]line Товар: 2710124130 [09:56:20]line Аи-92-К-5 [09:56:20]line 4.430 * 67.80 [09:56:20]line = 300.35 [09:56:20]line НДС 12% НСП 1% [09:56:20]line > о реализуемом товаре [09:56:20]line ОКРУГЛЕНИЕ: -0.35 [09:56:20]line ИТОГО: 300.00 [09:56:20]line Внесено: 300.00 [09:56:20]line СДАЧА: 0.00 [09:56:20]line НСП 1% : 2.66 [09:56:20]line НДС 12% : 31.90 [09:56:20]line Наличными: 300.00 [09:56:20]line Безнал.: 0.00 [09:56:20]line Место: АЗС № 136 "Партнер Нефть" [09:56:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:56:20]line СНО: Общий режим [09:56:20]line Чек 75 20.08.2024 09:56 [09:56:20]line Смена: 453 ФФД: 1.0 [09:56:20]line ЗНМ: 0300000067 [09:56:20]line РНМ: 0000000000092569 [09:56:20]line Версия ККМ: 001 [09:56:20]line ФМ: 0000000000871776 [09:56:20]line ФД: 139603 [09:56:20]line ФПД: 269646276101372 [09:56:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139603&fm=269646276101372&tin=02508201610067®Number=0000000000092569&sum=30000 [09:56:21]Connected sock=11 [09:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 64 24 07 01 2E E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 21 02 00 35 04 06 00 F5 3D EA 80 84 FC 81 77 20 6B 90 E2 83 A2 [09:56:21]written 0, free lines is 4095 [09:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 92 41 47 00 5D FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 21 02 00 F4 03 04 00 D9 0E C4 66 B6 04 01 00 00 67 AE 2C 13 8D EA 38 D2 [09:56:21]CommunicateWithHost err = 0 [09:56:21]CheckOFDResponse [09:56:21]1017 (14) - 77093643461234 [09:56:21]1041 (16) - 0000000000871776 [09:56:21]1040 (4) - 139603 [09:56:21]1012 (4) - 20.08.2024 03:34 [09:56:21]1206 (1) - 0 [09:56:21]OFD Sender: Remove packet 139603 [09:56:21]ProducePacketName [09:56:21]name=ofd_packets/00139603 [09:56:21]NVStorageDeleteData [09:56:21]Write to MH i2c: 01 00 00 71 22 93 [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: 01 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: 01 07 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: 01 07 00 71 22 00 00 00 00 00 D6 0C 7C [09:56:21]RasterBufferAndPrint [09:56:21]line [09:56:21]line [09:56:21]line [09:56:21]line [09:56:21]line [09:56:21]written 0, free lines is 3294 [09:56:21]MH_Cut [09:56:21]Write to MH i2c: D1 01 00 78 22 01 6C [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: D1 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: D1 01 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: D1 01 00 78 22 00 6B [09:56:21]Write to MH i2c: 01 00 00 79 22 9B [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]OFD Sender: No OFD packet to send [09:56:22]*** Cut start [09:56:22]*** Partial cut [09:56:22]*** CUTSNS_PIN = 1 [09:56:22]*** CUTSNS_PIN = 0 [09:56:22]*** Brake cut motor [09:56:22]Read from MH i2c: 01 [09:56:22]MH_I2C_Read... [09:56:22]*** Stop cut motor [09:56:22]*** Cut end [09:56:22]Read from MH i2c: 01 07 00 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: 01 07 00 79 22 00 00 00 00 00 FF 0F B0 [09:56:22]process_action close_receipt done [09:56:22]requested_data is exist [09:56:22]produce_requested_data [09:56:22]requested_item fm.sn is exist - process it [09:56:22]wFMCommunicate request_size=4 [09:56:22]MH_SAM_APDU [09:56:22]CAPDU: 80 11 00 00 [09:56:22]Write to MH i2c: E2 08 00 7A 22 80 11 00 00 00 00 00 00 16 [09:56:22]Write i2c OK [09:56:22]MH_I2C_Read... [09:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:22]Read from MH i2c: E2 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: E2 17 00 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: E2 17 00 7A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [09:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:56:22]wFMCommunicate OK [09:56:22]requested_item fd.num is exist - process it [09:56:22]SAM_PROTO_GetFieldsCounters [09:56:22]wFMCommunicate request_size=4 [09:56:22]MH_SAM_APDU [09:56:22]CAPDU: 80 13 00 00 [09:56:22]Write to MH i2c: E2 08 00 7B 22 80 13 00 00 00 00 00 00 19 [09:56:22]Write i2c OK [09:56:22]MH_I2C_Read... [09:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:22]Read from MH i2c: E2 [09:56:22]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 62 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 62 00 7B 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 53 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [09:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 53 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:23]wFMCommunicate OK [09:56:23]SAM_PROTO_GetFieldsCounters done [09:56:23]requested_item shift.num is exist - process it [09:56:23]requested_item shift.opened is exist - process it [09:56:23]req_shift_opened [09:56:23]FM_GetShiftState [09:56:23]SAM_PROTO_GetShiftState [09:56:23]wFMCommunicate request_size=4 [09:56:23]MH_SAM_APDU [09:56:23]CAPDU: 80 13 01 00 [09:56:23]Write to MH i2c: E2 08 00 7C 22 80 13 01 00 00 00 00 00 1B [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:23]Read from MH i2c: E2 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 0E 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 0E 00 7C 22 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AC [09:56:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:56:23]wFMCommunicate OK [09:56:23]SAM_PROTO_GetShiftState done [09:56:23]FM_GetShiftState done [09:56:23]req_shift_opened done [09:56:23]requested_item shift.open_date is exist - process it [09:56:23]req_shift_open_date [09:56:23]req_shift_open_date done [09:56:23]produce_requested_data done [09:56:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139603,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:56:23]process_action_free close_receipt [09:56:23]json_value_free [09:56:23]json_value_free done [09:56:23]process_json_proto returns [09:56:23]Send response to host [09:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139603,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:56:23]free response buf [09:56:23]execute_script done [09:56:23]execute_script returns [09:56:23]free content buf [09:56:23]Sock 9.Close socket [09:56:23]Sock 9.Thread stoped [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:36]accept exits with 7 [09:57:36]New connection [09:57:36]New thread 3067215204 created [09:57:36]Thread 3067071844 joined [09:57:36]Waiting for new connection... [09:57:36] Sock 7.Parse request [09:57:36]Sock 7.Check first char [09:57:36]Sock 7.First char is OK [09:57:36]request: POST /json_proto HTTP/1.0 [09:57:36]Method: POST [09:57:36]URL: /json_proto [09:57:36]Method is POST - this is cgi request [09:57:36]url: /json_proto [09:57:36]query_string will be loaded in cgi processing [09:57:36]execute_cgi json_proto POST (null) [09:57:36]execute_cgi path=json_proto method=POST [09:57:36]POST find Content-Length [09:57:36]Host: 172.17.45.67:8080 [09:57:36]Content-Length: 677 [09:57:36]Content-Type: application/json [09:57:36] [09:57:36]POST finish read [09:57:36]Found Content-Length = 677 [09:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:36]execute_script... [09:57: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)593448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:36]POST & json_proto [09:57:36]process_json_proto [09:57:36]json parsed OK: [09:57:36]protocol is kg_v1.0 [09:57:36]action value=close_receipt [09:57:36]process_action close_receipt [09:57:36]cmd_close_receipt [09:57:36]MH_GetDate [09:57:36]Write to MH i2c: F0 00 00 7D 22 8E [09:57:36]Write i2c OK [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: F0 [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: F0 09 00 [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: F0 09 00 7D 22 00 93 68 C4 66 5F 7F 2B 66 2B [09:57:36]GetLastDocTimeStamp 1724147782 [09:57:36]current date 1724147859 [09:57:36]FM_GetShiftState [09:57:36]SAM_PROTO_GetShiftState [09:57:36]wFMCommunicate request_size=4 [09:57:36]MH_SAM_APDU [09:57:36]CAPDU: 80 13 01 00 [09:57:36]Write to MH i2c: E2 08 00 7E 22 80 13 01 00 00 00 00 00 1D [09:57:36]Write i2c OK [09:57:36]MH_I2C_Read... [09:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:36]Read from MH i2c: E2 [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: E2 0E 00 [09:57:36]MH_I2C_Read... [09:57:36]Read from MH i2c: E2 0E 00 7E 22 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AE [09:57:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:57:36]wFMCommunicate OK [09:57:36]SAM_PROTO_GetShiftState done [09:57:36]FM_GetShiftState done [09:57:36]opened in 1724113785 [09:57:36]opened+sec_in_day 1724200185 [09:57:36]quantity*price = 60027 [09:57:36]sum+1 = 60029 [09:57:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 76 20.08.2024 09:57 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139604 ФПД: 62472500057551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095739&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139604&fm=62472500057551&tin=02508201610067®Number=0000000000092569&sum=60000 [09:57:38]StoreToDocumentArchive [09:57:38]shift 453 fd 139604 [09:57:38]save to /storage/0453/doc_00139604 [09:57:38]save last doc name /storage/0453/doc_00139604 to /storage/kkm_last_doc_name [09:57:38]save OK [09:57:38]Clear old archive folders... [09:57:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:38]tlvbuf is 00D6C920 [09:57:38]SAM_PROTO_ClearQueue [09:57:38]wFMCommunicate request_size=4 [09:57:38]MH_SAM_APDU [09:57:38]CAPDU: 80 09 00 00 [09:57:38]Write to MH i2c: E2 08 00 8B 22 80 09 00 00 00 00 00 00 1F [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 8B 22 00 90 00 21 [09:57:38]RAPDU: 90 00 [09:57:38]wFMCommunicate OK [09:57:38]SAM_PROTO_ClearQueue done [09:57:38]KKMCreateOFDPacket [09:57:38]OFDProtocolAddRootSTLVToBuf [09:57:38]FM_MakeSignedData [09:57:38]FM_MakeSignedData [09:57:38]SAM_PROTO_SignData [09:57:38]wFMCommunicate request_size=4 [09:57:38]MH_SAM_APDU [09:57:38]CAPDU: 80 0D 01 02 [09:57:38]Write to MH i2c: E2 08 00 8C 22 80 0D 01 02 00 00 00 00 27 [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 8C 22 00 90 00 22 [09:57:38]RAPDU: 90 00 [09:57:38]wFMCommunicate OK [09:57:38]wFMCommunicate request_size=255 [09:57:38]MH_SAM_APDU [09:57:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 93 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 21 02 00 35 04 06 00 38 [09:57:38]Write to MH i2c: E2 02 01 8D 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 93 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 21 02 00 35 04 06 00 38 00 00 04 [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 8D 22 00 90 00 23 [09:57:38]RAPDU: 90 00 [09:57:38]wFMCommunicate OK [09:57:38]wFMCommunicate request_size=10 [09:57:38]MH_SAM_APDU [09:57:38]CAPDU: 80 0D 02 02 05 D1 83 2C 95 CF [09:57:38]Write to MH i2c: E2 0D 00 8E 22 80 0D 02 02 05 00 D1 83 2C 95 CF 00 00 18 [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 03 00 8E 22 00 90 00 24 [09:57:38]RAPDU: 90 00 [09:57:38]wFMCommunicate OK [09:57:38]wFMCommunicate request_size=4 [09:57:38]MH_SAM_APDU [09:57:38]CAPDU: 80 0D 03 02 [09:57:38]Write to MH i2c: E2 08 00 8F 22 80 0D 03 02 00 00 00 00 2C [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 0B 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 0B 00 8F 22 00 E2 BF 12 04 C5 EE D9 B5 90 00 25 [09:57:38]RAPDU: E2 BF 12 04 C5 EE D9 B5 90 00 [09:57:38]wFMCommunicate OK [09:57:38]SAM_PROTO_SignData done [09:57:38]FM_MakeSignedData done [09:57:38]CreateOFDProtocolMessage [09:57:38]wFMCommunicate request_size=4 [09:57:38]MH_SAM_APDU [09:57:38]CAPDU: 80 11 00 00 [09:57:38]Write to MH i2c: E2 08 00 90 22 80 11 00 00 00 00 00 00 2C [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:38]Read from MH i2c: E2 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 17 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: E2 17 00 90 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 83 [09:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:57:38]wFMCommunicate OK [09:57:38]CreateOFDProtocolMessage done [09:57:38]OFDSenderStorePacket 139604 [09:57:38]StoreOFDPacket docnum=139604 [09:57:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 DA 07 01 55 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 93 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 21 02 00 35 04 06 00 38 D1 83 2C 95 CF E2 BF 12 04 C5 EE D9 B5 [09:57:38]CheckFolder [09:57:38]dirname=/storage/ofd_packets [09:57:38]CheckFolder done [09:57:38]ProducePacketName [09:57:38]name=ofd_packets/00139604 [09:57:38]NVStorageSaveData ofd_packets/00139604 [09:57:38]File name is /storage/ofd_packets/00139604 [09:57:38]Write 301 bytes [09:57:38]NVStorageSaveData done [09:57:38]OFDSenderStorePacket done [09:57:38]KKMCreateOFDPacket done [09:57:38]NVStorageSaveData kkm_last_timestamp [09:57:38]File name is /storage/kkm_last_timestamp [09:57:38]Write 4 bytes [09:57:38]NVStorageSaveData done [09:57:38]OFD Sender: Processing packet 139604 [packets to send 137, broken 136] [09:57:38]ProducePacketName [09:57:38]name=ofd_packets/00139604 [09:57:38]OFD Sender: To server: pG, [09:57:38]CommunicateWithHost lk.salyk.kg:30040 [09:57:38]ConnectInit lk.salyk.kg [09:57:38]ExternCall_PrintAddStr [09:57:38]wPrintStart [09:57:38]Write to MH i2c: 01 00 00 91 22 B3 [09:57:38]Write i2c OK [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: 01 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: 01 07 00 [09:57:38]MH_I2C_Read... [09:57:38]Read from MH i2c: 01 07 00 91 22 00 00 00 00 00 FF 0F C8 [09:57:38]RasterBufferAndPrint [09:57:38]line Счет N : (1)593448 [09:57:38]line ИНН: 02508201610067 [09:57:38]line Контрольно-Кассовый Чек [09:57:38]line ПРОДАЖА [09:57:38]line ТРК (МРК, ГНК) : 51 [09:57:38]line Товар: 2710124500 [09:57:38]line Аи-95-К-5 [09:57:38]line 8.090 * 74.20 [09:57:38]line = 600.28 [09:57:38]line НДС 12% НСП 1% [09:57:38]line > о реализуемом товаре [09:57:38]line ОКРУГЛЕНИЕ: -0.28 [09:57:38]line ИТОГО: 600.00 [09:57:38]line Внесено: 600.00 [09:57:38]line СДАЧА: 0.00 [09:57:38]line НСП 1% : 5.31 [09:57:38]line НДС 12% : 63.75 [09:57:38]line Наличными: 600.00 [09:57:38]line Безнал.: 0.00 [09:57:38]line Место: АЗС № 136 "Партнер Нефть" [09:57:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:57:38]line СНО: Общий режим [09:57:38]line Чек 76 20.08.2024 09:57 [09:57:38]line Смена: 453 ФФД: 1.0 [09:57:38]line ЗНМ: 0300000067 [09:57:38]line РНМ: 0000000000092569 [09:57:38]line Версия ККМ: 001 [09:57:38]line ФМ: 0000000000871776 [09:57:38]line ФД: 139604 [09:57:38]line ФПД: 62472500057551 [09:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095739&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139604&fm=62472500057551&tin=02508201610067®Number=0000000000092569&sum=60000 [09:57:38]Connected sock=11 [09:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 DA 07 01 55 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 93 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 21 02 00 35 04 06 00 38 D1 83 2C 95 CF E2 BF 12 04 C5 EE D9 B5 [09:57:38]written 0, free lines is 4095 [09:57:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6D 9C 47 00 D7 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 21 02 00 F4 03 04 00 27 0F C4 66 B6 04 01 00 00 12 05 BC 57 62 F6 95 FC [09:57:39]CommunicateWithHost err = 0 [09:57:39]CheckOFDResponse [09:57:39]1017 (14) - 77093643461234 [09:57:39]1041 (16) - 0000000000871776 [09:57:39]1040 (4) - 139604 [09:57:39]1012 (4) - 20.08.2024 03:36 [09:57:39]1206 (1) - 0 [09:57:39]OFD Sender: Remove packet 139604 [09:57:39]ProducePacketName [09:57:39]name=ofd_packets/00139604 [09:57:39]NVStorageDeleteData [09:57:39]Write to MH i2c: 01 00 00 BC 22 DE [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: 01 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: 01 07 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: 01 07 00 BC 22 00 00 00 00 00 CD 0C BE [09:57:39]RasterBufferAndPrint [09:57:39]line [09:57:39]line [09:57:39]line [09:57:39]line [09:57:39]line [09:57:39]written 0, free lines is 3283 [09:57:39]MH_Cut [09:57:39]Write to MH i2c: D1 01 00 C3 22 01 B7 [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: D1 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: D1 01 00 [09:57:39]MH_I2C_Read... [09:57:39]Read from MH i2c: D1 01 00 C3 22 00 B6 [09:57:39]Write to MH i2c: 01 00 00 C4 22 E6 [09:57:39]Write i2c OK [09:57:39]MH_I2C_Read... [09:57:39]OFD Sender: No OFD packet to send [09:57:40]*** Cut start [09:57:40]*** Partial cut [09:57:40]*** CUTSNS_PIN = 1 [09:57:40]*** CUTSNS_PIN = 0 [09:57:40]*** Brake cut motor [09:57:40]Read from MH i2c: 01 [09:57:40]MH_I2C_Read... [09:57:40]*** Stop cut motor [09:57:40]*** Cut end [09:57:40]Read from MH i2c: 01 07 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: 01 07 00 C4 22 00 00 00 00 00 FF 0F FB [09:57:40]process_action close_receipt done [09:57:40]requested_data is exist [09:57:40]produce_requested_data [09:57:40]requested_item fm.sn is exist - process it [09:57:40]wFMCommunicate request_size=4 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 11 00 00 [09:57:40]Write to MH i2c: E2 08 00 C5 22 80 11 00 00 00 00 00 00 61 [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 17 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 17 00 C5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [09:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:57:40]wFMCommunicate OK [09:57:40]requested_item fd.num is exist - process it [09:57:40]SAM_PROTO_GetFieldsCounters [09:57:40]wFMCommunicate request_size=4 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 13 00 00 [09:57:40]Write to MH i2c: E2 08 00 C6 22 80 13 00 00 00 00 00 00 64 [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 62 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 62 00 C6 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [09:57:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:40]wFMCommunicate OK [09:57:40]SAM_PROTO_GetFieldsCounters done [09:57:40]requested_item shift.num is exist - process it [09:57:40]requested_item shift.opened is exist - process it [09:57:40]req_shift_opened [09:57:40]FM_GetShiftState [09:57:40]SAM_PROTO_GetShiftState [09:57:40]wFMCommunicate request_size=4 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 13 01 00 [09:57:40]Write to MH i2c: E2 08 00 C7 22 80 13 01 00 00 00 00 00 66 [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 0E 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 0E 00 C7 22 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F7 [09:57:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:57:40]wFMCommunicate OK [09:57:40]SAM_PROTO_GetShiftState done [09:57:40]FM_GetShiftState done [09:57:40]req_shift_opened done [09:57:40]requested_item shift.open_date is exist - process it [09:57:40]req_shift_open_date [09:57:40]req_shift_open_date done [09:57:40]produce_requested_data done [09:57:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139604,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:57:40]process_action_free close_receipt [09:57:40]json_value_free [09:57:40]json_value_free done [09:57:40]process_json_proto returns [09:57:40]Send response to host [09:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139604,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:57:40]free response buf [09:57:40]execute_script done [09:57:40]execute_script returns [09:57:40]free content buf [09:57:40]Sock 7.Close socket [09:57:40]Sock 7.Thread stoped [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]accept exits with 9 [09:58:09]New connection [09:58:09]New thread 3067071844 created [09:58:09]Thread 3067215204 joined [09:58:09]Waiting for new connection... [09:58:09] Sock 9.Parse request [09:58:09]Sock 9.Check first char [09:58:09]Sock 9.First char is OK [09:58:09]request: POST /json_proto HTTP/1.0 [09:58:09]Method: POST [09:58:09]URL: /json_proto [09:58:09]Method is POST - this is cgi request [09:58:09]url: /json_proto [09:58:09]query_string will be loaded in cgi processing [09:58:09]execute_cgi json_proto POST (null) [09:58:09]execute_cgi path=json_proto method=POST [09:58:09]POST find Content-Length [09:58:09]Host: 172.17.45.67:8080 [09:58:09]Content-Length: 677 [09:58:09]Content-Type: application/json [09:58:09] [09:58:09]POST finish read [09:58:09]Found Content-Length = 677 [09:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:09]execute_script... [09:58: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)593450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:09]POST & json_proto [09:58:09]process_json_proto [09:58:09]json parsed OK: [09:58:09]protocol is kg_v1.0 [09:58:09]action value=close_receipt [09:58:09]process_action close_receipt [09:58:09]cmd_close_receipt [09:58:09]MH_GetDate [09:58:09]Write to MH i2c: F0 00 00 C8 22 D9 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: F0 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: F0 09 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: F0 09 00 C8 22 00 B4 68 C4 66 5F 7F 2B 66 97 [09:58:09]GetLastDocTimeStamp 1724147859 [09:58:09]current date 1724147892 [09:58:09]FM_GetShiftState [09:58:09]SAM_PROTO_GetShiftState [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 13 01 00 [09:58:09]Write to MH i2c: E2 08 00 C9 22 80 13 01 00 00 00 00 00 68 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0E 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0E 00 C9 22 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F9 [09:58:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:58:09]wFMCommunicate OK [09:58:09]SAM_PROTO_GetShiftState done [09:58:09]FM_GetShiftState done [09:58:09]opened in 1724113785 [09:58:09]opened+sec_in_day 1724200185 [09:58:09]quantity*price = 20001 [09:58:09]sum+1 = 20002 [09:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 77 20.08.2024 09:58 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139605 ФПД: 122390974479817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095812&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139605&fm=122390974479817&tin=02508201610067®Number=0000000000092569&sum=20000 [09:58:10]StoreToDocumentArchive [09:58:10]shift 453 fd 139605 [09:58:10]save to /storage/0453/doc_00139605 [09:58:10]save last doc name /storage/0453/doc_00139605 to /storage/kkm_last_doc_name [09:58:10]save OK [09:58:10]Clear old archive folders... [09:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:10]tlvbuf is 00D2E940 [09:58:10]SAM_PROTO_ClearQueue [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 09 00 00 [09:58:10]Write to MH i2c: E2 08 00 D6 22 80 09 00 00 00 00 00 00 6A [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 D6 22 00 90 00 6C [09:58:10]RAPDU: 90 00 [09:58:10]wFMCommunicate OK [09:58:10]SAM_PROTO_ClearQueue done [09:58:10]KKMCreateOFDPacket [09:58:10]OFDProtocolAddRootSTLVToBuf [09:58:10]FM_MakeSignedData [09:58:10]FM_MakeSignedData [09:58:10]SAM_PROTO_SignData [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 0D 01 02 [09:58:10]Write to MH i2c: E2 08 00 D7 22 80 0D 01 02 00 00 00 00 72 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 D7 22 00 90 00 6D [09:58:10]RAPDU: 90 00 [09:58:10]wFMCommunicate OK [09:58:10]wFMCommunicate request_size=255 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B4 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 21 02 00 35 04 06 00 6F [09:58:10]Write to MH i2c: E2 02 01 D8 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B4 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 21 02 00 35 04 06 00 6F 00 00 3D [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [09:58:10]RAPDU: 90 00 [09:58:10]wFMCommunicate OK [09:58:10]wFMCommunicate request_size=10 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 0D 02 02 05 50 5E 8E BD C9 [09:58:10]Write to MH i2c: E2 0D 00 D9 22 80 0D 02 02 05 00 50 5E 8E BD C9 00 00 41 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [09:58:10]RAPDU: 90 00 [09:58:10]wFMCommunicate OK [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 0D 03 02 [09:58:10]Write to MH i2c: E2 08 00 DA 22 80 0D 03 02 00 00 00 00 77 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 0B 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 0B 00 DA 22 00 9B 4A E6 40 42 5B 35 73 90 00 C8 [09:58:10]RAPDU: 9B 4A E6 40 42 5B 35 73 90 00 [09:58:10]wFMCommunicate OK [09:58:10]SAM_PROTO_SignData done [09:58:10]FM_MakeSignedData done [09:58:10]CreateOFDProtocolMessage [09:58:10]wFMCommunicate request_size=4 [09:58:10]MH_SAM_APDU [09:58:10]CAPDU: 80 11 00 00 [09:58:10]Write to MH i2c: E2 08 00 DB 22 80 11 00 00 00 00 00 00 77 [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:10]Read from MH i2c: E2 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 17 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: E2 17 00 DB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CE [09:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:58:10]wFMCommunicate OK [09:58:10]CreateOFDProtocolMessage done [09:58:10]OFDSenderStorePacket 139605 [09:58:10]StoreOFDPacket docnum=139605 [09:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 69 07 01 72 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B4 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 21 02 00 35 04 06 00 6F 50 5E 8E BD C9 9B 4A E6 40 42 5B 35 73 [09:58:10]CheckFolder [09:58:10]dirname=/storage/ofd_packets [09:58:10]CheckFolder done [09:58:10]ProducePacketName [09:58:10]name=ofd_packets/00139605 [09:58:10]NVStorageSaveData ofd_packets/00139605 [09:58:10]File name is /storage/ofd_packets/00139605 [09:58:10]Write 301 bytes [09:58:10]NVStorageSaveData done [09:58:10]OFDSenderStorePacket done [09:58:10]KKMCreateOFDPacket done [09:58:10]NVStorageSaveData kkm_last_timestamp [09:58:10]File name is /storage/kkm_last_timestamp [09:58:10]Write 4 bytes [09:58:10]NVStorageSaveData done [09:58:10]ExternCall_PrintAddStr [09:58:10]wPrintStart [09:58:10]Write to MH i2c: 01 00 00 DC 22 FE [09:58:10]Write i2c OK [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 07 00 [09:58:10]MH_I2C_Read... [09:58:10]Read from MH i2c: 01 07 00 DC 22 00 00 00 00 00 FF 0F 13 [09:58:10]RasterBufferAndPrint [09:58:10]line Счет N : (1)593450 [09:58:10]line ИНН: 02508201610067 [09:58:10]line Контрольно-Кассовый Чек [09:58:10]line ПРОДАЖА [09:58:10]line ТРК (МРК, ГНК) : 32 [09:58:10]line Товар: 2710124130 [09:58:10]line Аи-92-К-5 [09:58:10]line 2.950 * 67.80 [09:58:10]line = 200.01 [09:58:10]line НДС 12% НСП 1% [09:58:10]line > о реализуемом товаре [09:58:10]line ОКРУГЛЕНИЕ: -0.01 [09:58:10]line ИТОГО: 200.00 [09:58:10]line Внесено: 200.00 [09:58:10]line СДАЧА: 0.00 [09:58:10]line НСП 1% : 1.77 [09:58:10]line НДС 12% : 21.24 [09:58:10]line Наличными: 200.00 [09:58:10]line Безнал.: 0.00 [09:58:10]line Место: АЗС № 136 "Партнер Нефть" [09:58:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:58:10]line СНО: Общий режим [09:58:10]line Чек 77 20.08.2024 09:58 [09:58:10]line Смена: 453 ФФД: 1.0 [09:58:10]line ЗНМ: 0300000067 [09:58:10]line РНМ: 0000000000092569 [09:58:10]line Версия ККМ: 001 [09:58:10]line ФМ: 0000000000871776 [09:58:10]line ФД: 139605 [09:58:10]line ФПД: 122390974479817 [09:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095812&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139605&fm=122390974479817&tin=02508201610067®Number=0000000000092569&sum=20000 [09:58:11]OFD Sender: Processing packet 139605 [packets to send 137, broken 136] [09:58:11]ProducePacketName [09:58:11]name=ofd_packets/00139605 [09:58:11]OFD Sender: To server: pG, [09:58:11]CommunicateWithHost lk.salyk.kg:30040 [09:58:11]ConnectInit lk.salyk.kg [09:58:11]written 0, free lines is 4095 [09:58:11]Connected sock=10 [09:58:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 69 07 01 72 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B4 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 21 02 00 35 04 06 00 6F 50 5E 8E BD C9 9B 4A E6 40 42 5B 35 73 [09:58:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 02 09 47 00 64 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 21 02 00 F4 03 04 00 47 0F C4 66 B6 04 01 00 00 D3 57 3A 5D C7 CE 9C 26 [09:58:11]CommunicateWithHost err = 0 [09:58:11]CheckOFDResponse [09:58:11]1017 (14) - 77093643461234 [09:58:11]1041 (16) - 0000000000871776 [09:58:11]1040 (4) - 139605 [09:58:11]1012 (4) - 20.08.2024 03:36 [09:58:11]1206 (1) - 0 [09:58:11]OFD Sender: Remove packet 139605 [09:58:11]ProducePacketName [09:58:11]name=ofd_packets/00139605 [09:58:11]NVStorageDeleteData [09:58:11]Write to MH i2c: 01 00 00 07 23 2A [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 07 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 C6 0C 03 [09:58:11]RasterBufferAndPrint [09:58:11]line [09:58:11]line [09:58:11]line [09:58:11]line [09:58:11]line [09:58:11]written 0, free lines is 3276 [09:58:11]MH_Cut [09:58:11]Write to MH i2c: D1 01 00 0E 23 01 03 [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: D1 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: D1 01 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: D1 01 00 0E 23 00 02 [09:58:11]Write to MH i2c: 01 00 00 0F 23 32 [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:12]OFD Sender: No OFD packet to send [09:58:12]*** Cut start [09:58:12]*** Partial cut [09:58:12]*** CUTSNS_PIN = 1 [09:58:12]*** CUTSNS_PIN = 0 [09:58:12]*** Brake cut motor [09:58:13]Read from MH i2c: 01 [09:58:13]MH_I2C_Read... [09:58:13]*** Stop cut motor [09:58:13]*** Cut end [09:58:13]Read from MH i2c: 01 07 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: 01 07 00 0F 23 00 00 00 00 00 FF 0F 47 [09:58:13]process_action close_receipt done [09:58:13]requested_data is exist [09:58:13]produce_requested_data [09:58:13]requested_item fm.sn is exist - process it [09:58:13]wFMCommunicate request_size=4 [09:58:13]MH_SAM_APDU [09:58:13]CAPDU: 80 11 00 00 [09:58:13]Write to MH i2c: E2 08 00 10 23 80 11 00 00 00 00 00 00 AD [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:13]Read from MH i2c: E2 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 17 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 17 00 10 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [09:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:58:13]wFMCommunicate OK [09:58:13]requested_item fd.num is exist - process it [09:58:13]SAM_PROTO_GetFieldsCounters [09:58:13]wFMCommunicate request_size=4 [09:58:13]MH_SAM_APDU [09:58:13]CAPDU: 80 13 00 00 [09:58:13]Write to MH i2c: E2 08 00 11 23 80 13 00 00 00 00 00 00 B0 [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:13]Read from MH i2c: E2 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 62 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 62 00 11 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [09:58:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:13]wFMCommunicate OK [09:58:13]SAM_PROTO_GetFieldsCounters done [09:58:13]requested_item shift.num is exist - process it [09:58:13]requested_item shift.opened is exist - process it [09:58:13]req_shift_opened [09:58:13]FM_GetShiftState [09:58:13]SAM_PROTO_GetShiftState [09:58:13]wFMCommunicate request_size=4 [09:58:13]MH_SAM_APDU [09:58:13]CAPDU: 80 13 01 00 [09:58:13]Write to MH i2c: E2 08 00 12 23 80 13 01 00 00 00 00 00 B2 [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:13]Read from MH i2c: E2 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 0E 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: E2 0E 00 12 23 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 43 [09:58:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:58:13]wFMCommunicate OK [09:58:13]SAM_PROTO_GetShiftState done [09:58:13]FM_GetShiftState done [09:58:13]req_shift_opened done [09:58:13]requested_item shift.open_date is exist - process it [09:58:13]req_shift_open_date [09:58:13]req_shift_open_date done [09:58:13]produce_requested_data done [09:58:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139605,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:58:13]process_action_free close_receipt [09:58:13]json_value_free [09:58:13]json_value_free done [09:58:13]process_json_proto returns [09:58:13]Send response to host [09:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139605,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:58:13]free response buf [09:58:13]execute_script done [09:58:13]execute_script returns [09:58:13]free content buf [09:58:13]Sock 9.Close socket [09:58:13]Sock 9.Thread stoped [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:27]int [09:58:27]Write to MH i2c: 01 00 00 13 23 36 [09:58:27]*** FLAG_PRN_KEY set [09:58:27]Write i2c OK [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: 01 [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: 01 07 00 [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: 01 07 00 13 23 00 08 00 00 00 FF 0F 53 [09:58:27]state=0 [09:58:27]Key pressed [09:58:27]Feed [09:58:27]Write to MH i2c: D8 00 00 14 23 0E [09:58:27]Write i2c OK [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: D8 [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: D8 01 00 [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: D8 01 00 14 23 00 0F [09:58:27]int [09:58:27]Write to MH i2c: 01 00 00 15 23 38 [09:58:27]Write i2c OK [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: 01 [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: 01 07 00 [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: 01 07 00 15 23 00 48 00 00 00 3C 00 C3 [09:58:27]state=2 [09:58:27]Key pressed [09:58:27]int [09:58:27]Write to MH i2c: 01 00 00 16 23 39 [09:58:27]*** FLAG_PRN_KEY reset [09:58:27]Write i2c OK [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: 01 [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: 01 07 00 [09:58:27]MH_I2C_Read... [09:58:27]Read from MH i2c: 01 07 00 16 23 00 00 00 00 00 F5 0F 44 [09:58:27]state=2 [09:58:27]Stop feed [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:02]accept exits with 7 [09:59:02]New connection [09:59:02]New thread 3067215204 created [09:59:02]Thread 3067071844 joined [09:59:02]Waiting for new connection... [09:59:02] Sock 7.Parse request [09:59:02]Sock 7.Check first char [09:59:02]Sock 7.First char is OK [09:59:02]request: POST /json_proto HTTP/1.0 [09:59:02]Method: POST [09:59:02]URL: /json_proto [09:59:02]Method is POST - this is cgi request [09:59:02]url: /json_proto [09:59:02]query_string will be loaded in cgi processing [09:59:02]execute_cgi json_proto POST (null) [09:59:02]execute_cgi path=json_proto method=POST [09:59:02]POST find Content-Length [09:59:02]Host: 172.17.45.67:8080 [09:59:02]Content-Length: 677 [09:59:02]Content-Type: application/json [09:59:02] [09:59:02]POST finish read [09:59:02]Found Content-Length = 677 [09:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:02]execute_script... [09:59:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:02]POST & json_proto [09:59:02]process_json_proto [09:59:02]json parsed OK: [09:59:02]protocol is kg_v1.0 [09:59:02]action value=close_receipt [09:59:02]process_action close_receipt [09:59:02]cmd_close_receipt [09:59:02]MH_GetDate [09:59:02]Write to MH i2c: F0 00 00 17 23 29 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: F0 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: F0 09 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: F0 09 00 17 23 00 E9 68 C4 66 5F 7F 2B 66 1C [09:59:02]GetLastDocTimeStamp 1724147892 [09:59:02]current date 1724147945 [09:59:02]FM_GetShiftState [09:59:02]SAM_PROTO_GetShiftState [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 13 01 00 [09:59:02]Write to MH i2c: E2 08 00 18 23 80 13 01 00 00 00 00 00 B8 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0E 00 18 23 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 49 [09:59:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_GetShiftState done [09:59:02]FM_GetShiftState done [09:59:02]opened in 1724113785 [09:59:02]opened+sec_in_day 1724200185 [09:59:02]quantity*price = 40002 [09:59:02]sum+1 = 40003 [09:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 78 20.08.2024 09:59 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139606 ФПД: 171211615862026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095905&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139606&fm=171211615862026&tin=02508201610067®Number=0000000000092569&sum=40000 [09:59:03]StoreToDocumentArchive [09:59:03]shift 453 fd 139606 [09:59:03]save to /storage/0453/doc_00139606 [09:59:03]save last doc name /storage/0453/doc_00139606 to /storage/kkm_last_doc_name [09:59:03]save OK [09:59:03]Clear old archive folders... [09:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:03]tlvbuf is 00DE22A0 [09:59:03]SAM_PROTO_ClearQueue [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 09 00 00 [09:59:03]Write to MH i2c: E2 08 00 25 23 80 09 00 00 00 00 00 00 BA [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 25 23 00 90 00 BC [09:59:03]RAPDU: 90 00 [09:59:03]wFMCommunicate OK [09:59:03]SAM_PROTO_ClearQueue done [09:59:03]KKMCreateOFDPacket [09:59:03]OFDProtocolAddRootSTLVToBuf [09:59:03]FM_MakeSignedData [09:59:03]FM_MakeSignedData [09:59:03]SAM_PROTO_SignData [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 0D 01 02 [09:59:03]Write to MH i2c: E2 08 00 26 23 80 0D 01 02 00 00 00 00 C2 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 26 23 00 90 00 BD [09:59:03]RAPDU: 90 00 [09:59:03]wFMCommunicate OK [09:59:03]wFMCommunicate request_size=255 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E9 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 21 02 00 35 04 06 00 9B [09:59:03]Write to MH i2c: E2 02 01 27 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E9 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 21 02 00 35 04 06 00 9B 00 00 D3 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 27 23 00 90 00 BE [09:59:03]RAPDU: 90 00 [09:59:03]wFMCommunicate OK [09:59:03]wFMCommunicate request_size=10 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 0D 02 02 05 B7 4F 8B 7D 0A [09:59:03]Write to MH i2c: E2 0D 00 28 23 80 0D 02 02 05 00 B7 4F 8B 7D 0A 00 00 E7 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 03 00 28 23 00 90 00 BF [09:59:03]RAPDU: 90 00 [09:59:03]wFMCommunicate OK [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 0D 03 02 [09:59:03]Write to MH i2c: E2 08 00 29 23 80 0D 03 02 00 00 00 00 C7 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:03]Read from MH i2c: E2 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 0B 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: E2 0B 00 29 23 00 18 A8 8D CF 6A B6 3B F9 90 00 38 [09:59:03]RAPDU: 18 A8 8D CF 6A B6 3B F9 90 00 [09:59:03]wFMCommunicate OK [09:59:03]SAM_PROTO_SignData done [09:59:03]FM_MakeSignedData done [09:59:03]CreateOFDProtocolMessage [09:59:03]wFMCommunicate request_size=4 [09:59:03]MH_SAM_APDU [09:59:03]CAPDU: 80 11 00 00 [09:59:03]Write to MH i2c: E2 08 00 2A 23 80 11 00 00 00 00 00 00 C7 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 17 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 17 00 2A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [09:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:59:04]wFMCommunicate OK [09:59:04]CreateOFDProtocolMessage done [09:59:04]OFDSenderStorePacket 139606 [09:59:04]StoreOFDPacket docnum=139606 [09:59:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0D 11 07 01 AA AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E9 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 21 02 00 35 04 06 00 9B B7 4F 8B 7D 0A 18 A8 8D CF 6A B6 3B F9 [09:59:04]CheckFolder [09:59:04]dirname=/storage/ofd_packets [09:59:04]CheckFolder done [09:59:04]ProducePacketName [09:59:04]name=ofd_packets/00139606 [09:59:04]NVStorageSaveData ofd_packets/00139606 [09:59:04]File name is /storage/ofd_packets/00139606 [09:59:04]Write 301 bytes [09:59:04]NVStorageSaveData done [09:59:04]OFDSenderStorePacket done [09:59:04]KKMCreateOFDPacket done [09:59:04]NVStorageSaveData kkm_last_timestamp [09:59:04]File name is /storage/kkm_last_timestamp [09:59:04]Write 4 bytes [09:59:04]NVStorageSaveData done [09:59:04]ExternCall_PrintAddStr [09:59:04]wPrintStart [09:59:04]Write to MH i2c: 01 00 00 2B 23 4E [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 07 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 07 00 2B 23 00 00 00 00 00 FF 0F 63 [09:59:04]RasterBufferAndPrint [09:59:04]line Счет N : (1)593451 [09:59:04]line ИНН: 02508201610067 [09:59:04]line Контрольно-Кассовый Чек [09:59:04]line ПРОДАЖА [09:59:04]line ТРК (МРК, ГНК) : 32 [09:59:04]line Товар: 2710124130 [09:59:04]line Аи-92-К-5 [09:59:04]line 5.900 * 67.80 [09:59:04]line = 400.02 [09:59:04]line НДС 12% НСП 1% [09:59:04]line > о реализуемом товаре [09:59:04]line ОКРУГЛЕНИЕ: -0.02 [09:59:04]line ИТОГО: 400.00 [09:59:04]line Внесено: 400.00 [09:59:04]line СДАЧА: 0.00 [09:59:04]line НСП 1% : 3.54 [09:59:04]line НДС 12% : 42.48 [09:59:04]line Наличными: 400.00 [09:59:04]line Безнал.: 0.00 [09:59:04]line Место: АЗС № 136 "Партнер Нефть" [09:59:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:59:04]line СНО: Общий режим [09:59:04]line Чек 78 20.08.2024 09:59 [09:59:04]line Смена: 453 ФФД: 1.0 [09:59:04]line ЗНМ: 0300000067 [09:59:04]line РНМ: 0000000000092569 [09:59:04]line Версия ККМ: 001 [09:59:04]line ФМ: 0000000000871776 [09:59:04]line ФД: 139606 [09:59:04]line ФПД: 171211615862026 [09:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095905&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139606&fm=171211615862026&tin=02508201610067®Number=0000000000092569&sum=40000 [09:59:04]OFD Sender: Processing packet 139606 [packets to send 137, broken 136] [09:59:04]ProducePacketName [09:59:04]name=ofd_packets/00139606 [09:59:04]OFD Sender: To server: pG, [09:59:04]CommunicateWithHost lk.salyk.kg:30040 [09:59:04]ConnectInit lk.salyk.kg [09:59:04]written 0, free lines is 4095 [09:59:04]Connected sock=10 [09:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0D 11 07 01 AA AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 E9 68 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 21 02 00 35 04 06 00 9B B7 4F 8B 7D 0A 18 A8 8D CF 6A B6 3B F9 [09:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 37 3A 47 00 08 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 21 02 00 F4 03 04 00 7C 0F C4 66 B6 04 01 00 00 86 62 C6 58 CE F9 24 D2 [09:59:04]CommunicateWithHost err = 0 [09:59:04]CheckOFDResponse [09:59:04]1017 (14) - 77093643461234 [09:59:04]1041 (16) - 0000000000871776 [09:59:04]1040 (4) - 139606 [09:59:04]1012 (4) - 20.08.2024 03:37 [09:59:04]1206 (1) - 0 [09:59:04]OFD Sender: Remove packet 139606 [09:59:04]ProducePacketName [09:59:04]name=ofd_packets/00139606 [09:59:04]NVStorageDeleteData [09:59:04]Write to MH i2c: 01 00 00 56 23 79 [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 07 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 07 00 56 23 00 00 00 00 00 CD 0C 59 [09:59:04]RasterBufferAndPrint [09:59:04]line [09:59:04]line [09:59:04]line [09:59:04]line [09:59:04]line [09:59:04]written 0, free lines is 3284 [09:59:04]MH_Cut [09:59:04]Write to MH i2c: D1 01 00 5D 23 01 52 [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: D1 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: D1 01 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: D1 01 00 5D 23 00 51 [09:59:04]Write to MH i2c: 01 00 00 5E 23 81 [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:05]OFD Sender: No OFD packet to send [09:59:05]*** Cut start [09:59:05]*** Partial cut [09:59:05]*** CUTSNS_PIN = 1 [09:59:05]*** CUTSNS_PIN = 0 [09:59:05]*** Brake cut motor [09:59:06]Read from MH i2c: 01 [09:59:06]MH_I2C_Read... [09:59:06]*** Stop cut motor [09:59:06]*** Cut end [09:59:06]Read from MH i2c: 01 07 00 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: 01 07 00 5E 23 00 00 00 00 00 FF 0F 96 [09:59:06]process_action close_receipt done [09:59:06]requested_data is exist [09:59:06]produce_requested_data [09:59:06]requested_item fm.sn is exist - process it [09:59:06]wFMCommunicate request_size=4 [09:59:06]MH_SAM_APDU [09:59:06]CAPDU: 80 11 00 00 [09:59:06]Write to MH i2c: E2 08 00 5F 23 80 11 00 00 00 00 00 00 FC [09:59:06]Write i2c OK [09:59:06]MH_I2C_Read... [09:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:06]Read from MH i2c: E2 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: E2 17 00 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: E2 17 00 5F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [09:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:59:06]wFMCommunicate OK [09:59:06]requested_item fd.num is exist - process it [09:59:06]SAM_PROTO_GetFieldsCounters [09:59:06]wFMCommunicate request_size=4 [09:59:06]MH_SAM_APDU [09:59:06]CAPDU: 80 13 00 00 [09:59:06]Write to MH i2c: E2 08 00 60 23 80 13 00 00 00 00 00 00 FF [09:59:06]Write i2c OK [09:59:06]MH_I2C_Read... [09:59:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:06]Read from MH i2c: E2 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: E2 62 00 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: E2 62 00 60 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [09:59:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:06]wFMCommunicate OK [09:59:06]SAM_PROTO_GetFieldsCounters done [09:59:06]requested_item shift.num is exist - process it [09:59:06]requested_item shift.opened is exist - process it [09:59:06]req_shift_opened [09:59:06]FM_GetShiftState [09:59:06]SAM_PROTO_GetShiftState [09:59:06]wFMCommunicate request_size=4 [09:59:06]MH_SAM_APDU [09:59:06]CAPDU: 80 13 01 00 [09:59:06]Write to MH i2c: E2 08 00 61 23 80 13 01 00 00 00 00 00 01 [09:59:06]Write i2c OK [09:59:06]MH_I2C_Read... [09:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:06]Read from MH i2c: E2 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: E2 0E 00 [09:59:06]MH_I2C_Read... [09:59:06]Read from MH i2c: E2 0E 00 61 23 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 92 [09:59:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:59:06]wFMCommunicate OK [09:59:06]SAM_PROTO_GetShiftState done [09:59:06]FM_GetShiftState done [09:59:06]req_shift_opened done [09:59:06]requested_item shift.open_date is exist - process it [09:59:06]req_shift_open_date [09:59:06]req_shift_open_date done [09:59:06]produce_requested_data done [09:59:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139606,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:59:06]process_action_free close_receipt [09:59:06]json_value_free [09:59:06]json_value_free done [09:59:06]process_json_proto returns [09:59:06]Send response to host [09:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139606,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:59:06]free response buf [09:59:06]execute_script done [09:59:06]execute_script returns [09:59:06]free content buf [09:59:06]Sock 7.Close socket [09:59:06]Sock 7.Thread stoped [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:49]accept exits with 9 [09:59:49]New connection [09:59:49]New thread 3067071844 created [09:59:49]Thread 3067215204 joined [09:59:49]Waiting for new connection... [09:59:49] Sock 9.Parse request [09:59:49]Sock 9.Check first char [09:59:49]Sock 9.First char is OK [09:59:49]request: POST /json_proto HTTP/1.0 [09:59:49]Method: POST [09:59:49]URL: /json_proto [09:59:49]Method is POST - this is cgi request [09:59:49]url: /json_proto [09:59:49]query_string will be loaded in cgi processing [09:59:49]execute_cgi json_proto POST (null) [09:59:49]execute_cgi path=json_proto method=POST [09:59:49]POST find Content-Length [09:59:49]Host: 172.17.45.67:8080 [09:59:49]Content-Length: 658 [09:59:49]Content-Type: application/json [09:59:49] [09:59:49]POST finish read [09:59:49]Found Content-Length = 658 [09:59:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:49]execute_script... [09:59: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)593452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:49]POST & json_proto [09:59:49]process_json_proto [09:59:49]json parsed OK: [09:59:49]protocol is kg_v1.0 [09:59:49]action value=close_receipt [09:59:49]process_action close_receipt [09:59:49]cmd_close_receipt [09:59:49]MH_GetDate [09:59:49]Write to MH i2c: F0 00 00 62 23 74 [09:59:49]Write i2c OK [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: F0 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: F0 09 00 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: F0 09 00 62 23 00 18 69 C4 66 5F 7F 2B 66 97 [09:59:49]GetLastDocTimeStamp 1724147945 [09:59:49]current date 1724147992 [09:59:49]FM_GetShiftState [09:59:49]SAM_PROTO_GetShiftState [09:59:49]wFMCommunicate request_size=4 [09:59:49]MH_SAM_APDU [09:59:49]CAPDU: 80 13 01 00 [09:59:49]Write to MH i2c: E2 08 00 63 23 80 13 01 00 00 00 00 00 03 [09:59:49]Write i2c OK [09:59:49]MH_I2C_Read... [09:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:49]Read from MH i2c: E2 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 0E 00 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 0E 00 63 23 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 94 [09:59:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:59:49]wFMCommunicate OK [09:59:49]SAM_PROTO_GetShiftState done [09:59:49]FM_GetShiftState done [09:59:49]opened in 1724113785 [09:59:49]opened+sec_in_day 1724200185 [09:59:49]quantity*price = 20020 [09:59:49]sum+1 = 20022 [09:59:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 79 20.08.2024 09:59 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139607 ФПД: 178867956337718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095952&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139607&fm=178867956337718&tin=02508201610067®Number=0000000000092569&sum=20000 [09:59:50]StoreToDocumentArchive [09:59:50]shift 453 fd 139607 [09:59:50]save to /storage/0453/doc_00139607 [09:59:50]save last doc name /storage/0453/doc_00139607 to /storage/kkm_last_doc_name [09:59:50]save OK [09:59:50]Clear old archive folders... [09:59:50]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:59:50]tlvbuf is B6F98860 [09:59:50]SAM_PROTO_ClearQueue [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 09 00 00 [09:59:50]Write to MH i2c: E2 08 00 70 23 80 09 00 00 00 00 00 00 05 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 03 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 03 00 70 23 00 90 00 07 [09:59:50]RAPDU: 90 00 [09:59:50]wFMCommunicate OK [09:59:50]SAM_PROTO_ClearQueue done [09:59:50]KKMCreateOFDPacket [09:59:50]OFDProtocolAddRootSTLVToBuf [09:59:50]FM_MakeSignedData [09:59:50]FM_MakeSignedData [09:59:50]SAM_PROTO_SignData [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 0D 01 02 [09:59:50]Write to MH i2c: E2 08 00 71 23 80 0D 01 02 00 00 00 00 0D [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 03 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 03 00 71 23 00 90 00 08 [09:59:50]RAPDU: 90 00 [09:59:50]wFMCommunicate OK [09:59:50]wFMCommunicate request_size=253 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 4F 00 00 00 F4 03 04 00 18 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 21 02 00 35 04 06 00 A2 AD F0 FF CC 36 [09:59:50]Write to MH i2c: E2 00 01 72 23 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 4F 00 00 00 F4 03 04 00 18 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 21 02 00 35 04 06 00 A2 AD F0 FF CC 36 00 00 12 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 03 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 03 00 72 23 00 90 00 09 [09:59:50]RAPDU: 90 00 [09:59:50]wFMCommunicate OK [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 0D 03 02 [09:59:50]Write to MH i2c: E2 08 00 73 23 80 0D 03 02 00 00 00 00 11 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 0B 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 0B 00 73 23 00 B9 90 D3 83 22 67 96 AB 90 00 7B [09:59:50]RAPDU: B9 90 D3 83 22 67 96 AB 90 00 [09:59:50]wFMCommunicate OK [09:59:50]SAM_PROTO_SignData done [09:59:50]FM_MakeSignedData done [09:59:50]CreateOFDProtocolMessage [09:59:50]wFMCommunicate request_size=4 [09:59:50]MH_SAM_APDU [09:59:50]CAPDU: 80 11 00 00 [09:59:50]Write to MH i2c: E2 08 00 74 23 80 11 00 00 00 00 00 00 11 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:50]Read from MH i2c: E2 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 17 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: E2 17 00 74 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 68 [09:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:59:50]wFMCommunicate OK [09:59:50]CreateOFDProtocolMessage done [09:59:50]OFDSenderStorePacket 139607 [09:59:50]StoreOFDPacket docnum=139607 [09:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 9B 67 00 01 6C 36 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 4F 00 00 00 F4 03 04 00 18 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 21 02 00 35 04 06 00 A2 AD F0 FF CC 36 B9 90 D3 83 22 67 96 AB [09:59:50]CheckFolder [09:59:50]dirname=/storage/ofd_packets [09:59:50]CheckFolder done [09:59:50]ProducePacketName [09:59:50]name=ofd_packets/00139607 [09:59:50]NVStorageSaveData ofd_packets/00139607 [09:59:50]File name is /storage/ofd_packets/00139607 [09:59:50]Write 294 bytes [09:59:50]NVStorageSaveData done [09:59:50]OFDSenderStorePacket done [09:59:50]KKMCreateOFDPacket done [09:59:50]NVStorageSaveData kkm_last_timestamp [09:59:50]File name is /storage/kkm_last_timestamp [09:59:50]Write 4 bytes [09:59:50]NVStorageSaveData done [09:59:50]ExternCall_PrintAddStr [09:59:50]wPrintStart [09:59:50]Write to MH i2c: 01 00 00 75 23 98 [09:59:50]Write i2c OK [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: 01 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: 01 07 00 [09:59:50]MH_I2C_Read... [09:59:50]Read from MH i2c: 01 07 00 75 23 00 00 00 00 00 FF 0F AD [09:59:51]RasterBufferAndPrint [09:59:51]line Счет N : (1)593452 [09:59:51]line ИНН: 02508201610067 [09:59:51]line Контрольно-Кассовый Чек [09:59:51]line ПРОДАЖА [09:59:51]line ТРК (МРК, ГНК) : 63 [09:59:51]line Товар: 2710124130 [09:59:51]line SU-92 [09:59:51]line 2.910 * 68.80 [09:59:51]line = 200.21 [09:59:51]line НДС 12% НСП 1% [09:59:51]line > о реализуемом товаре [09:59:51]line ОКРУГЛЕНИЕ: -0.21 [09:59:51]line ИТОГО: 200.00 [09:59:51]line Внесено: 200.00 [09:59:51]line СДАЧА: 0.00 [09:59:51]line НСП 1% : 1.77 [09:59:51]line НДС 12% : 21.26 [09:59:51]line Наличными: 200.00 [09:59:51]line Безнал.: 0.00 [09:59:51]line Место: АЗС № 136 "Партнер Нефть" [09:59:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:59:51]line СНО: Общий режим [09:59:51]line Чек 79 20.08.2024 09:59 [09:59:51]line Смена: 453 ФФД: 1.0 [09:59:51]line ЗНМ: 0300000067 [09:59:51]line РНМ: 0000000000092569 [09:59:51]line Версия ККМ: 001 [09:59:51]line ФМ: 0000000000871776 [09:59:51]line ФД: 139607 [09:59:51]line ФПД: 178867956337718 [09:59:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T095952&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139607&fm=178867956337718&tin=02508201610067®Number=0000000000092569&sum=20000 [09:59:51]OFD Sender: Processing packet 139607 [packets to send 137, broken 136] [09:59:51]ProducePacketName [09:59:51]name=ofd_packets/00139607 [09:59:51]OFD Sender: To server: pG, [09:59:51]CommunicateWithHost lk.salyk.kg:30040 [09:59:51]ConnectInit lk.salyk.kg [09:59:51]written 0, free lines is 4095 [09:59:51]Connected sock=10 [09:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 9B 67 00 01 6C 36 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 4E 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 4F 00 00 00 F4 03 04 00 18 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 21 02 00 35 04 06 00 A2 AD F0 FF CC 36 B9 90 D3 83 22 67 96 AB [09:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 14 98 47 00 8C 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 21 02 00 F4 03 04 00 AB 0F C4 66 B6 04 01 00 00 73 BD E1 AF 32 A8 8B 57 [09:59:51]CommunicateWithHost err = 0 [09:59:51]CheckOFDResponse [09:59:51]1017 (14) - 77093643461234 [09:59:51]1041 (16) - 0000000000871776 [09:59:51]1040 (4) - 139607 [09:59:51]1012 (4) - 20.08.2024 03:38 [09:59:51]1206 (1) - 0 [09:59:51]OFD Sender: Remove packet 139607 [09:59:51]ProducePacketName [09:59:51]name=ofd_packets/00139607 [09:59:51]NVStorageDeleteData [09:59:51]Write to MH i2c: 01 00 00 A0 23 C3 [09:59:51]Write i2c OK [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: 01 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: 01 07 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: 01 07 00 A0 23 00 00 00 00 00 BF 0C 95 [09:59:51]RasterBufferAndPrint [09:59:51]line [09:59:51]line [09:59:51]line [09:59:51]line [09:59:51]line [09:59:51]written 0, free lines is 3269 [09:59:51]MH_Cut [09:59:51]Write to MH i2c: D1 01 00 A7 23 01 9C [09:59:51]Write i2c OK [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: D1 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: D1 01 00 [09:59:51]MH_I2C_Read... [09:59:51]Read from MH i2c: D1 01 00 A7 23 00 9B [09:59:51]Write to MH i2c: 01 00 00 A8 23 CB [09:59:51]Write i2c OK [09:59:51]MH_I2C_Read... [09:59:52]OFD Sender: No OFD packet to send [09:59:52]*** Cut start [09:59:52]*** Partial cut [09:59:52]*** CUTSNS_PIN = 1 [09:59:52]*** CUTSNS_PIN = 0 [09:59:52]*** Brake cut motor [09:59:53]Read from MH i2c: 01 [09:59:53]MH_I2C_Read... [09:59:53]*** Stop cut motor [09:59:53]*** Cut end [09:59:53]Read from MH i2c: 01 07 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: 01 07 00 A8 23 00 00 00 00 00 FF 0F E0 [09:59:53]process_action close_receipt done [09:59:53]requested_data is exist [09:59:53]produce_requested_data [09:59:53]requested_item fm.sn is exist - process it [09:59:53]wFMCommunicate request_size=4 [09:59:53]MH_SAM_APDU [09:59:53]CAPDU: 80 11 00 00 [09:59:53]Write to MH i2c: E2 08 00 A9 23 80 11 00 00 00 00 00 00 46 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:53]Read from MH i2c: E2 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 17 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 17 00 A9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9D [09:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:59:53]wFMCommunicate OK [09:59:53]requested_item fd.num is exist - process it [09:59:53]SAM_PROTO_GetFieldsCounters [09:59:53]wFMCommunicate request_size=4 [09:59:53]MH_SAM_APDU [09:59:53]CAPDU: 80 13 00 00 [09:59:53]Write to MH i2c: E2 08 00 AA 23 80 13 00 00 00 00 00 00 49 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:53]Read from MH i2c: E2 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 62 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 62 00 AA 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [09:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:53]wFMCommunicate OK [09:59:53]SAM_PROTO_GetFieldsCounters done [09:59:53]requested_item shift.num is exist - process it [09:59:53]requested_item shift.opened is exist - process it [09:59:53]req_shift_opened [09:59:53]FM_GetShiftState [09:59:53]SAM_PROTO_GetShiftState [09:59:53]wFMCommunicate request_size=4 [09:59:53]MH_SAM_APDU [09:59:53]CAPDU: 80 13 01 00 [09:59:53]Write to MH i2c: E2 08 00 AB 23 80 13 01 00 00 00 00 00 4B [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:53]Read from MH i2c: E2 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 0E 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 0E 00 AB 23 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DC [09:59:53]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [09:59:53]wFMCommunicate OK [09:59:53]SAM_PROTO_GetShiftState done [09:59:53]FM_GetShiftState done [09:59:53]req_shift_opened done [09:59:53]requested_item shift.open_date is exist - process it [09:59:53]req_shift_open_date [09:59:53]req_shift_open_date done [09:59:53]produce_requested_data done [09:59:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139607,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [09:59:53]process_action_free close_receipt [09:59:53]json_value_free [09:59:53]json_value_free done [09:59:53]process_json_proto returns [09:59:53]Send response to host [09:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139607,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [09:59:53]free response buf [09:59:53]execute_script done [09:59:53]execute_script returns [09:59:53]free content buf [09:59:53]Sock 9.Close socket [09:59:53]Sock 9.Thread stoped [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:26]accept exits with 7 [10:00:26]New connection [10:00:26]New thread 3067215204 created [10:00:26]Thread 3067071844 joined [10:00:26]Waiting for new connection... [10:00:26] Sock 7.Parse request [10:00:26]Sock 7.Check first char [10:00:26]Sock 7.First char is OK [10:00:26]request: POST /json_proto HTTP/1.0 [10:00:26]Method: POST [10:00:26]URL: /json_proto [10:00:26]Method is POST - this is cgi request [10:00:26]url: /json_proto [10:00:26]query_string will be loaded in cgi processing [10:00:26]execute_cgi json_proto POST (null) [10:00:26]execute_cgi path=json_proto method=POST [10:00:26]POST find Content-Length [10:00:26]Host: 172.17.45.67:8080 [10:00:26]Content-Length: 682 [10:00:26]Content-Type: application/json [10:00:26] [10:00:26]POST finish read [10:00:26]Found Content-Length = 682 [10:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:26]execute_script... [10:00: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)593453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:26]POST & json_proto [10:00:26]process_json_proto [10:00:26]json parsed OK: [10:00:26]protocol is kg_v1.0 [10:00:26]action value=close_receipt [10:00:26]process_action close_receipt [10:00:26]cmd_close_receipt [10:00:26]MH_GetDate [10:00:26]Write to MH i2c: F0 00 00 AC 23 BE [10:00:26]Write i2c OK [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: F0 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: F0 09 00 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: F0 09 00 AC 23 00 3D 69 C4 66 5F 7F 2B 66 06 [10:00:26]GetLastDocTimeStamp 1724147992 [10:00:26]current date 1724148029 [10:00:26]FM_GetShiftState [10:00:26]SAM_PROTO_GetShiftState [10:00:26]wFMCommunicate request_size=4 [10:00:26]MH_SAM_APDU [10:00:26]CAPDU: 80 13 01 00 [10:00:26]Write to MH i2c: E2 08 00 AD 23 80 13 01 00 00 00 00 00 4D [10:00:26]Write i2c OK [10:00:26]MH_I2C_Read... [10:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:26]Read from MH i2c: E2 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 0E 00 [10:00:26]MH_I2C_Read... [10:00:26]Read from MH i2c: E2 0E 00 AD 23 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DE [10:00:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:00:26]wFMCommunicate OK [10:00:26]SAM_PROTO_GetShiftState done [10:00:26]FM_GetShiftState done [10:00:26]opened in 1724113785 [10:00:26]opened+sec_in_day 1724200185 [10:00:26]quantity*price = 100005 [10:00:26]sum+1 = 100006 [10:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 80 20.08.2024 10:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139608 ФПД: 269927845169320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100029&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139608&fm=269927845169320&tin=02508201610067®Number=0000000000092569&sum=100000 [10:00:27]StoreToDocumentArchive [10:00:27]shift 453 fd 139608 [10:00:27]save to /storage/0453/doc_00139608 [10:00:27]save last doc name /storage/0453/doc_00139608 to /storage/kkm_last_doc_name [10:00:27]save OK [10:00:27]Clear old archive folders... [10:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:27]tlvbuf is B6F98740 [10:00:27]SAM_PROTO_ClearQueue [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 09 00 00 [10:00:27]Write to MH i2c: E2 08 00 BA 23 80 09 00 00 00 00 00 00 4F [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 BA 23 00 90 00 51 [10:00:27]RAPDU: 90 00 [10:00:27]wFMCommunicate OK [10:00:27]SAM_PROTO_ClearQueue done [10:00:27]KKMCreateOFDPacket [10:00:27]OFDProtocolAddRootSTLVToBuf [10:00:27]FM_MakeSignedData [10:00:27]FM_MakeSignedData [10:00:27]SAM_PROTO_SignData [10:00:27]wFMCommunicate request_size=4 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 0D 01 02 [10:00:27]Write to MH i2c: E2 08 00 BB 23 80 0D 01 02 00 00 00 00 57 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:27]Read from MH i2c: E2 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 [10:00:27]MH_I2C_Read... [10:00:27]Read from MH i2c: E2 03 00 BB 23 00 90 00 52 [10:00:27]RAPDU: 90 00 [10:00:27]wFMCommunicate OK [10:00:27]wFMCommunicate request_size=255 [10:00:27]MH_SAM_APDU [10:00:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 3D 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 21 02 00 35 04 06 00 F5 [10:00:27]Write to MH i2c: E2 02 01 BC 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 3D 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 21 02 00 35 04 06 00 F5 00 00 C5 [10:00:27]Write i2c OK [10:00:27]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 BC 23 00 90 00 53 [10:00:28]RAPDU: 90 00 [10:00:28]wFMCommunicate OK [10:00:28]wFMCommunicate request_size=10 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 0D 02 02 05 7F 79 53 88 A8 [10:00:28]Write to MH i2c: E2 0D 00 BD 23 80 0D 02 02 05 00 7F 79 53 88 A8 00 00 DF [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 03 00 BD 23 00 90 00 54 [10:00:28]RAPDU: 90 00 [10:00:28]wFMCommunicate OK [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 0D 03 02 [10:00:28]Write to MH i2c: E2 08 00 BE 23 80 0D 03 02 00 00 00 00 5C [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 0B 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 0B 00 BE 23 00 05 34 D7 15 81 CA 24 0F 90 00 00 [10:00:28]RAPDU: 05 34 D7 15 81 CA 24 0F 90 00 [10:00:28]wFMCommunicate OK [10:00:28]SAM_PROTO_SignData done [10:00:28]FM_MakeSignedData done [10:00:28]CreateOFDProtocolMessage [10:00:28]wFMCommunicate request_size=4 [10:00:28]MH_SAM_APDU [10:00:28]CAPDU: 80 11 00 00 [10:00:28]Write to MH i2c: E2 08 00 BF 23 80 11 00 00 00 00 00 00 5C [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:28]Read from MH i2c: E2 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 17 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: E2 17 00 BF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B3 [10:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:00:28]wFMCommunicate OK [10:00:28]CreateOFDProtocolMessage done [10:00:28]OFDSenderStorePacket 139608 [10:00:28]StoreOFDPacket docnum=139608 [10:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C2 69 07 01 1A 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 3D 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 21 02 00 35 04 06 00 F5 7F 79 53 88 A8 05 34 D7 15 81 CA 24 0F [10:00:28]CheckFolder [10:00:28]dirname=/storage/ofd_packets [10:00:28]CheckFolder done [10:00:28]ProducePacketName [10:00:28]name=ofd_packets/00139608 [10:00:28]NVStorageSaveData ofd_packets/00139608 [10:00:28]File name is /storage/ofd_packets/00139608 [10:00:28]Write 301 bytes [10:00:28]NVStorageSaveData done [10:00:28]OFDSenderStorePacket done [10:00:28]KKMCreateOFDPacket done [10:00:28]NVStorageSaveData kkm_last_timestamp [10:00:28]File name is /storage/kkm_last_timestamp [10:00:28]Write 4 bytes [10:00:28]NVStorageSaveData done [10:00:28]ExternCall_PrintAddStr [10:00:28]wPrintStart [10:00:28]Write to MH i2c: 01 00 00 C0 23 E3 [10:00:28]Write i2c OK [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 07 00 [10:00:28]MH_I2C_Read... [10:00:28]Read from MH i2c: 01 07 00 C0 23 00 00 00 00 00 FF 0F F8 [10:00:28]RasterBufferAndPrint [10:00:28]line Счет N : (1)593453 [10:00:28]line ИНН: 02508201610067 [10:00:28]line Контрольно-Кассовый Чек [10:00:28]line ПРОДАЖА [10:00:28]line ТРК (МРК, ГНК) : 52 [10:00:28]line Товар: 2710124130 [10:00:28]line Аи-92-К-5 [10:00:28]line 14.750 * 67.80 [10:00:28]line = 1000.05 [10:00:28]line НДС 12% НСП 1% [10:00:28]line > о реализуемом товаре [10:00:28]line ОКРУГЛЕНИЕ: -0.05 [10:00:28]line ИТОГО: 1000.00 [10:00:28]line Внесено: 1000.00 [10:00:28]line СДАЧА: 0.00 [10:00:28]line НСП 1% : 8.85 [10:00:28]line НДС 12% : 106.20 [10:00:28]line Наличными: 1000.00 [10:00:28]line Безнал.: 0.00 [10:00:28]line Место: АЗС № 136 "Партнер Нефть" [10:00:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:00:28]line СНО: Общий режим [10:00:28]line Чек 80 20.08.2024 10:00 [10:00:28]line Смена: 453 ФФД: 1.0 [10:00:28]line ЗНМ: 0300000067 [10:00:28]line РНМ: 0000000000092569 [10:00:28]line Версия ККМ: 001 [10:00:28]line ФМ: 0000000000871776 [10:00:28]line ФД: 139608 [10:00:28]line ФПД: 269927845169320 [10:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100029&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139608&fm=269927845169320&tin=02508201610067®Number=0000000000092569&sum=100000 [10:00:28]written 0, free lines is 4095 [10:00:28]OFD Sender: Processing packet 139608 [packets to send 137, broken 136] [10:00:28]ProducePacketName [10:00:28]name=ofd_packets/00139608 [10:00:28]OFD Sender: To server: pG, [10:00:28]CommunicateWithHost lk.salyk.kg:30040 [10:00:28]ConnectInit lk.salyk.kg [10:00:28]Connected sock=9 [10:00:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C2 69 07 01 1A 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 3D 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 21 02 00 35 04 06 00 F5 7F 79 53 88 A8 05 34 D7 15 81 CA 24 0F [10:00:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A0 1A 47 00 F3 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 21 02 00 F4 03 04 00 D1 0F C4 66 B6 04 01 00 00 B6 02 26 43 E5 11 11 9C [10:00:28]CommunicateWithHost err = 0 [10:00:28]CheckOFDResponse [10:00:28]1017 (14) - 77093643461234 [10:00:28]1041 (16) - 0000000000871776 [10:00:28]1040 (4) - 139608 [10:00:28]1012 (4) - 20.08.2024 03:38 [10:00:28]1206 (1) - 0 [10:00:28]OFD Sender: Remove packet 139608 [10:00:28]ProducePacketName [10:00:28]name=ofd_packets/00139608 [10:00:28]NVStorageDeleteData [10:00:29]Write to MH i2c: 01 00 00 EB 23 0E [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 07 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: 01 07 00 EB 23 00 00 00 00 00 C8 0C E9 [10:00:29]RasterBufferAndPrint [10:00:29]line [10:00:29]line [10:00:29]line [10:00:29]line [10:00:29]line [10:00:29]written 0, free lines is 3278 [10:00:29]MH_Cut [10:00:29]Write to MH i2c: D1 01 00 F2 23 01 E7 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: D1 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: D1 01 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: D1 01 00 F2 23 00 E6 [10:00:29]Write to MH i2c: 01 00 00 F3 23 16 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]OFD Sender: No OFD packet to send [10:00:29]*** Cut start [10:00:29]*** Partial cut [10:00:29]*** CUTSNS_PIN = 1 [10:00:29]*** CUTSNS_PIN = 0 [10:00:30]*** Brake cut motor [10:00:30]Read from MH i2c: 01 [10:00:30]MH_I2C_Read... [10:00:30]*** Stop cut motor [10:00:30]*** Cut end [10:00:30]Read from MH i2c: 01 07 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: 01 07 00 F3 23 00 00 00 00 00 FF 0F 2B [10:00:30]process_action close_receipt done [10:00:30]requested_data is exist [10:00:30]produce_requested_data [10:00:30]requested_item fm.sn is exist - process it [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 11 00 00 [10:00:30]Write to MH i2c: E2 08 00 F4 23 80 11 00 00 00 00 00 00 91 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 17 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 17 00 F4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [10:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:00:30]wFMCommunicate OK [10:00:30]requested_item fd.num is exist - process it [10:00:30]SAM_PROTO_GetFieldsCounters [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 13 00 00 [10:00:30]Write to MH i2c: E2 08 00 F5 23 80 13 00 00 00 00 00 00 94 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 62 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 62 00 F5 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [10:00:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:30]wFMCommunicate OK [10:00:30]SAM_PROTO_GetFieldsCounters done [10:00:30]requested_item shift.num is exist - process it [10:00:30]requested_item shift.opened is exist - process it [10:00:30]req_shift_opened [10:00:30]FM_GetShiftState [10:00:30]SAM_PROTO_GetShiftState [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 13 01 00 [10:00:30]Write to MH i2c: E2 08 00 F6 23 80 13 01 00 00 00 00 00 96 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0E 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 0E 00 F6 23 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 27 [10:00:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:00:30]wFMCommunicate OK [10:00:30]SAM_PROTO_GetShiftState done [10:00:30]FM_GetShiftState done [10:00:30]req_shift_opened done [10:00:30]requested_item shift.open_date is exist - process it [10:00:30]req_shift_open_date [10:00:30]req_shift_open_date done [10:00:30]produce_requested_data done [10:00:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139608,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:00:30]process_action_free close_receipt [10:00:30]json_value_free [10:00:30]json_value_free done [10:00:30]process_json_proto returns [10:00:30]Send response to host [10:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139608,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:00:30]free response buf [10:00:30]execute_script done [10:00:30]execute_script returns [10:00:30]free content buf [10:00:30]Sock 7.Close socket [10:00:30]Sock 7.Thread stoped [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:50]accept exits with 10 [10:02:50]New connection [10:02:50]New thread 3067071844 created [10:02:50]Thread 3067215204 joined [10:02:50]Waiting for new connection... [10:02:50] Sock 10.Parse request [10:02:50]Sock 10.Check first char [10:02:50]Sock 10.First char is OK [10:02:50]request: POST /json_proto HTTP/1.0 [10:02:50]Method: POST [10:02:50]URL: /json_proto [10:02:50]Method is POST - this is cgi request [10:02:50]url: /json_proto [10:02:50]query_string will be loaded in cgi processing [10:02:50]execute_cgi json_proto POST (null) [10:02:50]execute_cgi path=json_proto method=POST [10:02:50]POST find Content-Length [10:02:50]Host: 172.17.45.67:8080 [10:02:50]Content-Length: 658 [10:02:50]Content-Type: application/json [10:02:50] [10:02:50]POST finish read [10:02:50]Found Content-Length = 658 [10:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.670, "sum" : 390.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:50]execute_script... [10:02: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)593455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.670, "sum" : 390.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:50]POST & json_proto [10:02:50]process_json_proto [10:02:50]json parsed OK: [10:02:50]protocol is kg_v1.0 [10:02:50]action value=close_receipt [10:02:50]process_action close_receipt [10:02:50]cmd_close_receipt [10:02:50]MH_GetDate [10:02:50]Write to MH i2c: F0 00 00 F7 23 09 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: F0 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: F0 09 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: F0 09 00 F7 23 00 CD 69 C4 66 5F 7F 2B 66 E1 [10:02:50]GetLastDocTimeStamp 1724148029 [10:02:50]current date 1724148173 [10:02:50]FM_GetShiftState [10:02:50]SAM_PROTO_GetShiftState [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 13 01 00 [10:02:50]Write to MH i2c: E2 08 00 F8 23 80 13 01 00 00 00 00 00 98 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0E 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0E 00 F8 23 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 29 [10:02:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:02:50]wFMCommunicate OK [10:02:50]SAM_PROTO_GetShiftState done [10:02:50]FM_GetShiftState done [10:02:50]opened in 1724113785 [10:02:50]opened+sec_in_day 1724200185 [10:02:50]quantity*price = 39009 [10:02:50]sum+1 = 39011 [10:02:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.45 НДС 12% : 41.43 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 81 20.08.2024 10:02 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139609 ФПД: 125606800023321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100253&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139609&fm=125606800023321&tin=02508201610067®Number=0000000000092569&sum=39000 [10:02:51]StoreToDocumentArchive [10:02:51]shift 453 fd 139609 [10:02:51]save to /storage/0453/doc_00139609 [10:02:51]save last doc name /storage/0453/doc_00139609 to /storage/kkm_last_doc_name [10:02:51]save OK [10:02:51]Clear old archive folders... [10:02:51]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:02:51]tlvbuf is 00D44D50 [10:02:51]SAM_PROTO_ClearQueue [10:02:51]wFMCommunicate request_size=4 [10:02:51]MH_SAM_APDU [10:02:51]CAPDU: 80 09 00 00 [10:02:51]Write to MH i2c: E2 08 00 05 24 80 09 00 00 00 00 00 00 9B [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 05 24 00 90 00 9D [10:02:52]RAPDU: 90 00 [10:02:52]wFMCommunicate OK [10:02:52]SAM_PROTO_ClearQueue done [10:02:52]KKMCreateOFDPacket [10:02:52]OFDProtocolAddRootSTLVToBuf [10:02:52]FM_MakeSignedData [10:02:52]FM_MakeSignedData [10:02:52]SAM_PROTO_SignData [10:02:52]wFMCommunicate request_size=4 [10:02:52]MH_SAM_APDU [10:02:52]CAPDU: 80 0D 01 02 [10:02:52]Write to MH i2c: E2 08 00 06 24 80 0D 01 02 00 00 00 00 A3 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 06 24 00 90 00 9E [10:02:52]RAPDU: 90 00 [10:02:52]wFMCommunicate OK [10:02:52]wFMCommunicate request_size=253 [10:02:52]MH_SAM_APDU [10:02:52]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 CD 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 21 02 00 35 04 06 00 72 3D 1C B2 5F 19 [10:02:52]Write to MH i2c: E2 00 01 07 24 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 CD 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 21 02 00 35 04 06 00 72 3D 1C B2 5F 19 00 00 F6 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 03 00 07 24 00 90 00 9F [10:02:52]RAPDU: 90 00 [10:02:52]wFMCommunicate OK [10:02:52]wFMCommunicate request_size=4 [10:02:52]MH_SAM_APDU [10:02:52]CAPDU: 80 0D 03 02 [10:02:52]Write to MH i2c: E2 08 00 08 24 80 0D 03 02 00 00 00 00 A7 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 0B 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 0B 00 08 24 00 A9 B1 F6 98 4C F6 C8 4F 90 00 E9 [10:02:52]RAPDU: A9 B1 F6 98 4C F6 C8 4F 90 00 [10:02:52]wFMCommunicate OK [10:02:52]SAM_PROTO_SignData done [10:02:52]FM_MakeSignedData done [10:02:52]CreateOFDProtocolMessage [10:02:52]wFMCommunicate request_size=4 [10:02:52]MH_SAM_APDU [10:02:52]CAPDU: 80 11 00 00 [10:02:52]Write to MH i2c: E2 08 00 09 24 80 11 00 00 00 00 00 00 A7 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 17 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 17 00 09 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [10:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:02:52]wFMCommunicate OK [10:02:52]CreateOFDProtocolMessage done [10:02:52]OFDSenderStorePacket 139609 [10:02:52]StoreOFDPacket docnum=139609 [10:02:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 26 7A 00 01 A2 C2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 CD 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 21 02 00 35 04 06 00 72 3D 1C B2 5F 19 A9 B1 F6 98 4C F6 C8 4F [10:02:52]CheckFolder [10:02:52]dirname=/storage/ofd_packets [10:02:52]CheckFolder done [10:02:52]ProducePacketName [10:02:52]name=ofd_packets/00139609 [10:02:52]NVStorageSaveData ofd_packets/00139609 [10:02:52]File name is /storage/ofd_packets/00139609 [10:02:52]Write 294 bytes [10:02:52]NVStorageSaveData done [10:02:52]OFDSenderStorePacket done [10:02:52]KKMCreateOFDPacket done [10:02:52]NVStorageSaveData kkm_last_timestamp [10:02:52]File name is /storage/kkm_last_timestamp [10:02:52]Write 4 bytes [10:02:52]NVStorageSaveData done [10:02:52]ExternCall_PrintAddStr [10:02:52]wPrintStart [10:02:52]Write to MH i2c: 01 00 00 0A 24 2E [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 07 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 07 00 0A 24 00 00 00 00 00 FF 0F 43 [10:02:52]RasterBufferAndPrint [10:02:52]line Счет N : (1)593455 [10:02:52]line ИНН: 02508201610067 [10:02:52]line Контрольно-Кассовый Чек [10:02:52]line ПРОДАЖА [10:02:52]line ТРК (МРК, ГНК) : 53 [10:02:52]line Товар: 2710124130 [10:02:52]line SU-92 [10:02:52]line 5.670 * 68.80 [10:02:52]line = 390.10 [10:02:52]line НДС 12% НСП 1% [10:02:52]line > о реализуемом товаре [10:02:52]line ОКРУГЛЕНИЕ: -0.10 [10:02:52]line ИТОГО: 390.00 [10:02:52]line Внесено: 390.00 [10:02:52]line СДАЧА: 0.00 [10:02:52]line НСП 1% : 3.45 [10:02:52]line НДС 12% : 41.43 [10:02:52]line Наличными: 390.00 [10:02:52]line Безнал.: 0.00 [10:02:52]line Место: АЗС № 136 "Партнер Нефть" [10:02:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:02:52]line СНО: Общий режим [10:02:52]line Чек 81 20.08.2024 10:02 [10:02:52]line Смена: 453 ФФД: 1.0 [10:02:52]line ЗНМ: 0300000067 [10:02:52]line РНМ: 0000000000092569 [10:02:52]line Версия ККМ: 001 [10:02:52]line ФМ: 0000000000871776 [10:02:52]line ФД: 139609 [10:02:52]line ФПД: 125606800023321 [10:02:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100253&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139609&fm=125606800023321&tin=02508201610067®Number=0000000000092569&sum=39000 [10:02:52]OFD Sender: Processing packet 139609 [packets to send 137, broken 136] [10:02:52]ProducePacketName [10:02:52]name=ofd_packets/00139609 [10:02:52]OFD Sender: To server: pG, [10:02:52]CommunicateWithHost lk.salyk.kg:30040 [10:02:52]ConnectInit lk.salyk.kg [10:02:52]written 0, free lines is 4095 [10:02:52]Connected sock=9 [10:02:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 26 7A 00 01 A2 C2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 CD 69 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 21 02 00 35 04 06 00 72 3D 1C B2 5F 19 A9 B1 F6 98 4C F6 C8 4F [10:02:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A2 28 47 00 B9 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 21 02 00 F4 03 04 00 61 10 C4 66 B6 04 01 00 00 E1 17 16 AF 1C 32 5E 27 [10:02:53]CommunicateWithHost err = 0 [10:02:53]CheckOFDResponse [10:02:53]1017 (14) - 77093643461234 [10:02:53]1041 (16) - 0000000000871776 [10:02:53]1040 (4) - 139609 [10:02:53]1012 (4) - 20.08.2024 03:41 [10:02:53]1206 (1) - 0 [10:02:53]OFD Sender: Remove packet 139609 [10:02:53]ProducePacketName [10:02:53]name=ofd_packets/00139609 [10:02:53]NVStorageDeleteData [10:02:53]Write to MH i2c: 01 00 00 35 24 59 [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: 01 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: 01 07 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: 01 07 00 35 24 00 00 00 00 00 CB 0C 37 [10:02:53]RasterBufferAndPrint [10:02:53]line [10:02:53]line [10:02:53]line [10:02:53]line [10:02:53]line [10:02:53]written 0, free lines is 3282 [10:02:53]MH_Cut [10:02:53]Write to MH i2c: D1 01 00 3C 24 01 32 [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: D1 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: D1 01 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: D1 01 00 3C 24 00 31 [10:02:53]Write to MH i2c: 01 00 00 3D 24 61 [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]OFD Sender: No OFD packet to send [10:02:53]*** Cut start [10:02:53]*** Partial cut [10:02:53]*** CUTSNS_PIN = 1 [10:02:54]*** CUTSNS_PIN = 0 [10:02:54]*** Brake cut motor [10:02:54]Read from MH i2c: 01 [10:02:54]MH_I2C_Read... [10:02:54]*** Stop cut motor [10:02:54]*** Cut end [10:02:54]Read from MH i2c: 01 07 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: 01 07 00 3D 24 00 00 00 00 00 FF 0F 76 [10:02:54]process_action close_receipt done [10:02:54]requested_data is exist [10:02:54]produce_requested_data [10:02:54]requested_item fm.sn is exist - process it [10:02:54]wFMCommunicate request_size=4 [10:02:54]MH_SAM_APDU [10:02:54]CAPDU: 80 11 00 00 [10:02:54]Write to MH i2c: E2 08 00 3E 24 80 11 00 00 00 00 00 00 DC [10:02:54]Write i2c OK [10:02:54]MH_I2C_Read... [10:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:54]Read from MH i2c: E2 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 17 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 17 00 3E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [10:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:02:54]wFMCommunicate OK [10:02:54]requested_item fd.num is exist - process it [10:02:54]SAM_PROTO_GetFieldsCounters [10:02:54]wFMCommunicate request_size=4 [10:02:54]MH_SAM_APDU [10:02:54]CAPDU: 80 13 00 00 [10:02:54]Write to MH i2c: E2 08 00 3F 24 80 13 00 00 00 00 00 00 DF [10:02:54]Write i2c OK [10:02:54]MH_I2C_Read... [10:02:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:54]Read from MH i2c: E2 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 62 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 62 00 3F 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [10:02:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:54]wFMCommunicate OK [10:02:54]SAM_PROTO_GetFieldsCounters done [10:02:54]requested_item shift.num is exist - process it [10:02:54]requested_item shift.opened is exist - process it [10:02:54]req_shift_opened [10:02:54]FM_GetShiftState [10:02:54]SAM_PROTO_GetShiftState [10:02:54]wFMCommunicate request_size=4 [10:02:54]MH_SAM_APDU [10:02:54]CAPDU: 80 13 01 00 [10:02:54]Write to MH i2c: E2 08 00 40 24 80 13 01 00 00 00 00 00 E1 [10:02:54]Write i2c OK [10:02:54]MH_I2C_Read... [10:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:54]Read from MH i2c: E2 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 0E 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 0E 00 40 24 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 72 [10:02:54]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:02:54]wFMCommunicate OK [10:02:54]SAM_PROTO_GetShiftState done [10:02:54]FM_GetShiftState done [10:02:54]req_shift_opened done [10:02:54]requested_item shift.open_date is exist - process it [10:02:54]req_shift_open_date [10:02:54]req_shift_open_date done [10:02:54]produce_requested_data done [10:02:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139609,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:02:54]process_action_free close_receipt [10:02:54]json_value_free [10:02:54]json_value_free done [10:02:54]process_json_proto returns [10:02:54]Send response to host [10:02:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139609,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:02:54]free response buf [10:02:54]execute_script done [10:02:54]execute_script returns [10:02:54]free content buf [10:02:54]Sock 10.Close socket [10:02:54]Sock 10.Thread stoped [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:50]int [10:03:50]Write to MH i2c: 01 00 00 41 24 65 [10:03:50]*** FLAG_PRN_KEY set [10:03:50]Write i2c OK [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: 01 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: 01 07 00 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: 01 07 00 41 24 00 08 00 00 00 FF 0F 82 [10:03:50]state=0 [10:03:50]Key pressed [10:03:50]Feed [10:03:50]Write to MH i2c: D8 00 00 42 24 3D [10:03:50]Write i2c OK [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: D8 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: D8 01 00 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: D8 01 00 42 24 00 3E [10:03:50]int [10:03:50]Write to MH i2c: 01 00 00 43 24 67 [10:03:50]Write i2c OK [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: 01 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: 01 07 00 [10:03:50]MH_I2C_Read... [10:03:50]Read from MH i2c: 01 07 00 43 24 00 48 00 00 00 3C 00 F2 [10:03:50]state=2 [10:03:50]Key pressed [10:03:51]int [10:03:51]Write to MH i2c: 01 00 00 44 24 68 [10:03:51]*** FLAG_PRN_KEY reset [10:03:51]Write i2c OK [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: 01 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: 01 07 00 [10:03:51]MH_I2C_Read... [10:03:51]Read from MH i2c: 01 07 00 44 24 00 00 00 00 00 F6 0F 74 [10:03:51]state=2 [10:03:51]Stop feed [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:45]accept exits with 7 [10:04:45]New connection [10:04:45]New thread 3067215204 created [10:04:45]Thread 3067071844 joined [10:04:45]Waiting for new connection... [10:04:45] Sock 7.Parse request [10:04:45]Sock 7.Check first char [10:04:45]Sock 7.First char is OK [10:04:45]request: POST /json_proto HTTP/1.0 [10:04:45]Method: POST [10:04:45]URL: /json_proto [10:04:45]Method is POST - this is cgi request [10:04:45]url: /json_proto [10:04:45]query_string will be loaded in cgi processing [10:04:45]execute_cgi json_proto POST (null) [10:04:45]execute_cgi path=json_proto method=POST [10:04:45]POST find Content-Length [10:04:45]Host: 172.17.45.67:8080 [10:04:45]Content-Length: 797 [10:04:45]Content-Type: application/json [10:04:45] [10:04:45]POST finish read [10:04:45]Found Content-Length = 797 [10:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 57.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:45]execute_script... [10:04: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)593456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 57.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:45]POST & json_proto [10:04:45]process_json_proto [10:04:45]json parsed OK: [10:04:45]protocol is kg_v1.0 [10:04:45]action value=close_receipt [10:04:45]process_action close_receipt [10:04:45]cmd_close_receipt [10:04:45]MH_GetDate [10:04:45]Write to MH i2c: F0 00 00 45 24 58 [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: F0 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: F0 09 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: F0 09 00 45 24 00 40 6A C4 66 5F 7F 2B 66 A4 [10:04:45]GetLastDocTimeStamp 1724148173 [10:04:45]current date 1724148288 [10:04:45]FM_GetShiftState [10:04:45]SAM_PROTO_GetShiftState [10:04:45]wFMCommunicate request_size=4 [10:04:45]MH_SAM_APDU [10:04:45]CAPDU: 80 13 01 00 [10:04:45]Write to MH i2c: E2 08 00 46 24 80 13 01 00 00 00 00 00 E7 [10:04:45]Write i2c OK [10:04:45]MH_I2C_Read... [10:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:45]Read from MH i2c: E2 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 0E 00 [10:04:45]MH_I2C_Read... [10:04:45]Read from MH i2c: E2 0E 00 46 24 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 78 [10:04:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:04:45]wFMCommunicate OK [10:04:45]SAM_PROTO_GetShiftState done [10:04:45]FM_GetShiftState done [10:04:45]opened in 1724113785 [10:04:45]opened+sec_in_day 1724200185 [10:04:45]quantity*price = 0 [10:04:45]sum+1 = 1 [10:04:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 82 20.08.2024 10:04 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139610 ФПД: 233794755739961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100448&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139610&fm=233794755739961&tin=02508201610067®Number=0000000000092569&sum=0 [10:04:47]StoreToDocumentArchive [10:04:47]shift 453 fd 139610 [10:04:47]save to /storage/0453/doc_00139610 [10:04:47]save last doc name /storage/0453/doc_00139610 to /storage/kkm_last_doc_name [10:04:47]save OK [10:04:47]Clear old archive folders... [10:04:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:04:47]tlvbuf is 00D3E220 [10:04:47]SAM_PROTO_ClearQueue [10:04:47]wFMCommunicate request_size=4 [10:04:47]MH_SAM_APDU [10:04:47]CAPDU: 80 09 00 00 [10:04:47]Write to MH i2c: E2 08 00 53 24 80 09 00 00 00 00 00 00 E9 [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:47]Read from MH i2c: E2 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 03 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 03 00 53 24 00 90 00 EB [10:04:47]RAPDU: 90 00 [10:04:47]wFMCommunicate OK [10:04:47]SAM_PROTO_ClearQueue done [10:04:47]KKMCreateOFDPacket [10:04:47]OFDProtocolAddRootSTLVToBuf [10:04:47]FM_MakeSignedData [10:04:47]FM_MakeSignedData [10:04:47]SAM_PROTO_SignData [10:04:47]wFMCommunicate request_size=4 [10:04:47]MH_SAM_APDU [10:04:47]CAPDU: 80 0D 01 02 [10:04:47]Write to MH i2c: E2 08 00 54 24 80 0D 01 02 00 00 00 00 F1 [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:47]Read from MH i2c: E2 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 03 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 03 00 54 24 00 90 00 EC [10:04:47]RAPDU: 90 00 [10:04:47]wFMCommunicate OK [10:04:47]wFMCommunicate request_size=255 [10:04:47]MH_SAM_APDU [10:04:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 40 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 21 02 00 35 04 06 00 [10:04:47]Write to MH i2c: E2 02 01 55 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 40 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 21 02 00 35 04 06 00 00 00 2F [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:47]Read from MH i2c: E2 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 03 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 03 00 55 24 00 90 00 ED [10:04:47]RAPDU: 90 00 [10:04:47]wFMCommunicate OK [10:04:47]wFMCommunicate request_size=11 [10:04:47]MH_SAM_APDU [10:04:47]CAPDU: 80 0D 02 02 06 D4 A2 95 5D C1 39 [10:04:47]Write to MH i2c: E2 0E 00 56 24 80 0D 02 02 06 00 D4 A2 95 5D C1 39 00 00 62 [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:47]Read from MH i2c: E2 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 03 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 03 00 56 24 00 90 00 EE [10:04:47]RAPDU: 90 00 [10:04:47]wFMCommunicate OK [10:04:47]wFMCommunicate request_size=4 [10:04:47]MH_SAM_APDU [10:04:47]CAPDU: 80 0D 03 02 [10:04:47]Write to MH i2c: E2 08 00 57 24 80 0D 03 02 00 00 00 00 F6 [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:47]Read from MH i2c: E2 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 0B 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 0B 00 57 24 00 98 E7 9A 3C 5C 44 D4 88 90 00 48 [10:04:47]RAPDU: 98 E7 9A 3C 5C 44 D4 88 90 00 [10:04:47]wFMCommunicate OK [10:04:47]SAM_PROTO_SignData done [10:04:47]FM_MakeSignedData done [10:04:47]CreateOFDProtocolMessage [10:04:47]wFMCommunicate request_size=4 [10:04:47]MH_SAM_APDU [10:04:47]CAPDU: 80 11 00 00 [10:04:47]Write to MH i2c: E2 08 00 58 24 80 11 00 00 00 00 00 00 F6 [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:47]Read from MH i2c: E2 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 17 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: E2 17 00 58 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [10:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:04:47]wFMCommunicate OK [10:04:47]CreateOFDProtocolMessage done [10:04:47]OFDSenderStorePacket 139610 [10:04:47]StoreOFDPacket docnum=139610 [10:04:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B5 98 08 01 28 D0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 40 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 21 02 00 35 04 06 00 D4 A2 95 5D C1 39 98 E7 9A 3C 5C 44 D4 88 [10:04:47]CheckFolder [10:04:47]dirname=/storage/ofd_packets [10:04:47]CheckFolder done [10:04:47]ProducePacketName [10:04:47]name=ofd_packets/00139610 [10:04:47]NVStorageSaveData ofd_packets/00139610 [10:04:47]File name is /storage/ofd_packets/00139610 [10:04:47]Write 302 bytes [10:04:47]NVStorageSaveData done [10:04:47]OFDSenderStorePacket done [10:04:47]KKMCreateOFDPacket done [10:04:47]NVStorageSaveData kkm_last_timestamp [10:04:47]File name is /storage/kkm_last_timestamp [10:04:47]Write 4 bytes [10:04:47]NVStorageSaveData done [10:04:47]OFD Sender: Processing packet 139610 [packets to send 137, broken 136] [10:04:47]ProducePacketName [10:04:47]name=ofd_packets/00139610 [10:04:47]OFD Sender: To server: pG, [10:04:47]CommunicateWithHost lk.salyk.kg:30040 [10:04:47]ConnectInit lk.salyk.kg [10:04:47]ExternCall_PrintAddStr [10:04:47]wPrintStart [10:04:47]Write to MH i2c: 01 00 00 59 24 7D [10:04:47]Write i2c OK [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: 01 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: 01 07 00 [10:04:47]MH_I2C_Read... [10:04:47]Read from MH i2c: 01 07 00 59 24 00 00 00 00 00 FF 0F 92 [10:04:47]RasterBufferAndPrint [10:04:47]line Счет N : (1)593456 [10:04:47]line ИНН: 02508201610067 [10:04:47]line Контрольно-Кассовый Чек [10:04:47]line ПРОДАЖА [10:04:47]line ТРК (МРК, ГНК) : 34 [10:04:47]line Товар: 2710194210 [10:04:47]line ДТ(л)-К-5 [10:04:47]line 57.000 * 0.00 [10:04:47]line = 0.00 [10:04:47]line НДС 12% НСП 1% [10:04:47]line > о реализуемом товаре [10:04:47]line ИТОГО: 0.00 [10:04:47]line НСП 1% : 0.00 [10:04:47]line НДС 12% : 0.00 [10:04:47]line Наличными: 0.00 [10:04:47]line Безнал.: 0.00 [10:04:47]line Место: АЗС № 136 "Партнер Нефть" [10:04:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:04:47]line СНО: Общий режим [10:04:47]line Чек 82 20.08.2024 10:04 [10:04:47]line Смена: 453 ФФД: 1.0 [10:04:47]line ЗНМ: 0300000067 [10:04:47]line РНМ: 0000000000092569 [10:04:47]line Версия ККМ: 001 [10:04:47]line Талоны: Топливная Карта [10:04:47]line 99761 [10:04:47]line ФМ: 0000000000871776 [10:04:47]line ФД: 139610 [10:04:47]line ФПД: 233794755739961 [10:04:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100448&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139610&fm=233794755739961&tin=02508201610067®Number=0000000000092569&sum=0 [10:04:47]Connected sock=11 [10:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B5 98 08 01 28 D0 written 0, free lines is 4095 [10:04:47]5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 40 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 21 02 00 35 04 06 00 D4 A2 95 5D C1 39 98 E7 9A 3C 5C 44 D4 88 [10:04:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 75 B4 47 00 64 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 21 02 00 F4 03 04 00 D4 10 C4 66 B6 04 01 00 00 61 36 BD A6 84 4F 66 B7 [10:04:48]CommunicateWithHost err = 0 [10:04:48]CheckOFDResponse [10:04:48]1017 (14) - 77093643461234 [10:04:48]1041 (16) - 0000000000871776 [10:04:48]1040 (4) - 139610 [10:04:48]1012 (4) - 20.08.2024 03:43 [10:04:48]1206 (1) - 0 [10:04:48]OFD Sender: Remove packet 139610 [10:04:48]ProducePacketName [10:04:48]name=ofd_packets/00139610 [10:04:48]NVStorageDeleteData [10:04:48]Write to MH i2c: 01 00 00 83 24 A7 [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 07 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: 01 07 00 83 24 00 00 00 00 00 D9 0C 93 [10:04:48]RasterBufferAndPrint [10:04:48]line [10:04:48]line [10:04:48]line [10:04:48]line [10:04:48]line [10:04:48]written 0, free lines is 3296 [10:04:48]MH_Cut [10:04:48]Write to MH i2c: D1 01 00 8A 24 01 80 [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: D1 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: D1 01 00 [10:04:48]MH_I2C_Read... [10:04:48]Read from MH i2c: D1 01 00 8A 24 00 7F [10:04:48]Write to MH i2c: 01 00 00 8B 24 AF [10:04:48]Write i2c OK [10:04:48]MH_I2C_Read... [10:04:48]OFD Sender: No OFD packet to send [10:04:49]*** Cut start [10:04:49]*** Partial cut [10:04:49]*** CUTSNS_PIN = 1 [10:04:49]*** CUTSNS_PIN = 0 [10:04:49]*** Brake cut motor [10:04:49]Read from MH i2c: 01 [10:04:49]MH_I2C_Read... [10:04:49]*** Stop cut motor [10:04:49]*** Cut end [10:04:49]Read from MH i2c: 01 07 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: 01 07 00 8B 24 00 00 00 00 00 FF 0F C4 [10:04:49]process_action close_receipt done [10:04:49]requested_data is exist [10:04:49]produce_requested_data [10:04:49]requested_item fm.sn is exist - process it [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 11 00 00 [10:04:49]Write to MH i2c: E2 08 00 8C 24 80 11 00 00 00 00 00 00 2A [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:49]Read from MH i2c: E2 17 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 17 00 8C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [10:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:04:49]wFMCommunicate OK [10:04:49]requested_item fd.num is exist - process it [10:04:49]SAM_PROTO_GetFieldsCounters [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 13 00 00 [10:04:49]Write to MH i2c: E2 08 00 8D 24 80 13 00 00 00 00 00 00 2D [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 62 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 62 00 8D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [10:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:49]wFMCommunicate OK [10:04:49]SAM_PROTO_GetFieldsCounters done [10:04:49]requested_item shift.num is exist - process it [10:04:49]requested_item shift.opened is exist - process it [10:04:49]req_shift_opened [10:04:49]FM_GetShiftState [10:04:49]SAM_PROTO_GetShiftState [10:04:49]wFMCommunicate request_size=4 [10:04:49]MH_SAM_APDU [10:04:49]CAPDU: 80 13 01 00 [10:04:49]Write to MH i2c: E2 08 00 8E 24 80 13 01 00 00 00 00 00 2F [10:04:49]Write i2c OK [10:04:49]MH_I2C_Read... [10:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:49]Read from MH i2c: E2 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0E 00 [10:04:49]MH_I2C_Read... [10:04:49]Read from MH i2c: E2 0E 00 8E 24 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C0 [10:04:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:04:49]wFMCommunicate OK [10:04:49]SAM_PROTO_GetShiftState done [10:04:49]FM_GetShiftState done [10:04:49]req_shift_opened done [10:04:49]requested_item shift.open_date is exist - process it [10:04:49]req_shift_open_date [10:04:49]req_shift_open_date done [10:04:49]produce_requested_data done [10:04:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139610,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:04:49]process_action_free close_receipt [10:04:49]json_value_free [10:04:49]json_value_free done [10:04:49]process_json_proto returns [10:04:49]Send response to host [10:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139610,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:04:49]free response buf [10:04:49]execute_script done [10:04:49]execute_script returns [10:04:49]free content buf [10:04:49]Sock 7.Close socket [10:04:49]Sock 7.Thread stoped [10:04:51]int [10:04:51]Write to MH i2c: 01 00 00 8F 24 B3 [10:04:51]*** FLAG_PRN_KEY set [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 8F 24 00 08 00 00 00 FF 0F D0 [10:04:51]state=0 [10:04:51]Key pressed [10:04:51]Feed [10:04:51]Write to MH i2c: D8 00 00 90 24 8B [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: D8 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: D8 01 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: D8 01 00 90 24 00 8C [10:04:51]int [10:04:51]Write to MH i2c: 01 00 00 91 24 B5 [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 91 24 00 48 00 00 00 3C 00 40 [10:04:51]state=2 [10:04:51]Key pressed [10:04:51]int [10:04:51]Write to MH i2c: 01 00 00 92 24 B6 [10:04:51]*** FLAG_PRN_KEY reset [10:04:51]Write i2c OK [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 [10:04:51]MH_I2C_Read... [10:04:51]Read from MH i2c: 01 07 00 92 24 00 00 00 00 00 F9 0F C5 [10:04:51]state=2 [10:04:51]Stop feed [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]accept exits with 9 [10:05:28]New connection [10:05:28]New thread 3067071844 created [10:05:28]Thread 3067215204 joined [10:05:28]Waiting for new connection... [10:05:28] Sock 9.Parse request [10:05:28]Sock 9.Check first char [10:05:28]Sock 9.First char is OK [10:05:28]request: POST /json_proto HTTP/1.0 [10:05:28]Method: POST [10:05:28]URL: /json_proto [10:05:28]Method is POST - this is cgi request [10:05:28]url: /json_proto [10:05:28]query_string will be loaded in cgi processing [10:05:28]execute_cgi json_proto POST (null) [10:05:28]execute_cgi path=json_proto method=POST [10:05:28]POST find Content-Length [10:05:28]Host: 172.17.45.67:8080 [10:05:28]Content-Length: 797 [10:05:28]Content-Type: application/json [10:05:28] [10:05:28]POST finish read [10:05:28]Found Content-Length = 797 [10:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:28]execute_script... [10:05:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:28]POST & json_proto [10:05:28]process_json_proto [10:05:28]json parsed OK: [10:05:28]protocol is kg_v1.0 [10:05:28]action value=close_receipt [10:05:28]process_action close_receipt [10:05:28]cmd_close_receipt [10:05:28]MH_GetDate [10:05:28]Write to MH i2c: F0 00 00 93 24 A6 [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: F0 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: F0 09 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: F0 09 00 93 24 00 6B 6A C4 66 5F 7F 2B 66 1D [10:05:28]GetLastDocTimeStamp 1724148288 [10:05:28]current date 1724148331 [10:05:28]FM_GetShiftState [10:05:28]SAM_PROTO_GetShiftState [10:05:28]wFMCommunicate request_size=4 [10:05:28]MH_SAM_APDU [10:05:28]CAPDU: 80 13 01 00 [10:05:28]Write to MH i2c: E2 08 00 94 24 80 13 01 00 00 00 00 00 35 [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:28]Read from MH i2c: E2 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 0E 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 0E 00 94 24 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C6 [10:05:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:05:28]wFMCommunicate OK [10:05:28]SAM_PROTO_GetShiftState done [10:05:28]FM_GetShiftState done [10:05:28]opened in 1724113785 [10:05:28]opened+sec_in_day 1724200185 [10:05:28]quantity*price = 0 [10:05:28]sum+1 = 1 [10:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 83 20.08.2024 10:05 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139611 ФПД: 65893596086191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100531&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139611&fm=65893596086191&tin=02508201610067®Number=0000000000092569&sum=0 [10:05:29]StoreToDocumentArchive [10:05:29]shift 453 fd 139611 [10:05:29]save to /storage/0453/doc_00139611 [10:05:29]save last doc name /storage/0453/doc_00139611 to /storage/kkm_last_doc_name [10:05:29]save OK [10:05:29]Clear old archive folders... [10:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:05:29]tlvbuf is 00D890E0 [10:05:29]SAM_PROTO_ClearQueue [10:05:29]wFMCommunicate request_size=4 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 09 00 00 [10:05:29]Write to MH i2c: E2 08 00 A1 24 80 09 00 00 00 00 00 00 37 [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 03 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 03 00 A1 24 00 90 00 39 [10:05:29]RAPDU: 90 00 [10:05:29]wFMCommunicate OK [10:05:29]SAM_PROTO_ClearQueue done [10:05:29]KKMCreateOFDPacket [10:05:29]OFDProtocolAddRootSTLVToBuf [10:05:29]FM_MakeSignedData [10:05:29]FM_MakeSignedData [10:05:29]SAM_PROTO_SignData [10:05:29]wFMCommunicate request_size=4 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 0D 01 02 [10:05:29]Write to MH i2c: E2 08 00 A2 24 80 0D 01 02 00 00 00 00 3F [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 03 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 03 00 A2 24 00 90 00 3A [10:05:29]RAPDU: 90 00 [10:05:29]wFMCommunicate OK [10:05:29]wFMCommunicate request_size=255 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6B 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 21 02 00 35 04 06 00 [10:05:29]Write to MH i2c: E2 02 01 A3 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6B 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 21 02 00 35 04 06 00 00 00 F1 [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 03 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 03 00 A3 24 00 90 00 3B [10:05:29]RAPDU: 90 00 [10:05:29]wFMCommunicate OK [10:05:29]wFMCommunicate request_size=11 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 0D 02 02 06 3B EE 0C 63 3F AF [10:05:29]Write to MH i2c: E2 0E 00 A4 24 80 0D 02 02 06 00 3B EE 0C 63 3F AF 00 00 D4 [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 03 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 03 00 A4 24 00 90 00 3C [10:05:29]RAPDU: 90 00 [10:05:29]wFMCommunicate OK [10:05:29]wFMCommunicate request_size=4 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 0D 03 02 [10:05:29]Write to MH i2c: E2 08 00 A5 24 80 0D 03 02 00 00 00 00 44 [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 0B 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 0B 00 A5 24 00 4E 1C E6 39 6C 5F 4E E2 90 00 C9 [10:05:29]RAPDU: 4E 1C E6 39 6C 5F 4E E2 90 00 [10:05:29]wFMCommunicate OK [10:05:29]SAM_PROTO_SignData done [10:05:29]FM_MakeSignedData done [10:05:29]CreateOFDProtocolMessage [10:05:29]wFMCommunicate request_size=4 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 11 00 00 [10:05:29]Write to MH i2c: E2 08 00 A6 24 80 11 00 00 00 00 00 00 44 [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 17 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 17 00 A6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [10:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:05:29]wFMCommunicate OK [10:05:29]CreateOFDProtocolMessage done [10:05:29]OFDSenderStorePacket 139611 [10:05:29]StoreOFDPacket docnum=139611 [10:05:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 76 4F 08 01 3B A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6B 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 21 02 00 35 04 06 00 3B EE 0C 63 3F AF 4E 1C E6 39 6C 5F 4E E2 [10:05:29]CheckFolder [10:05:29]dirname=/storage/ofd_packets [10:05:29]CheckFolder done [10:05:29]ProducePacketName [10:05:29]name=ofd_packets/00139611 [10:05:29]NVStorageSaveData ofd_packets/00139611 [10:05:29]File name is /storage/ofd_packets/00139611 [10:05:29]Write 302 bytes [10:05:29]NVStorageSaveData done [10:05:29]OFDSenderStorePacket done [10:05:29]KKMCreateOFDPacket done [10:05:29]NVStorageSaveData kkm_last_timestamp [10:05:29]File name is /storage/kkm_last_timestamp [10:05:29]Write 4 bytes [10:05:29]NVStorageSaveData done [10:05:29]ExternCall_PrintAddStr [10:05:29]wPrintStart [10:05:29]Write to MH i2c: 01 00 00 A7 24 CB [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: 01 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: 01 07 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: 01 07 00 A7 24 00 00 00 00 00 FF 0F E0 [10:05:29]RasterBufferAndPrint [10:05:29]line Счет N : (1)593457 [10:05:29]line ИНН: 02508201610067 [10:05:29]line Контрольно-Кассовый Чек [10:05:29]line ПРОДАЖА [10:05:29]line ТРК (МРК, ГНК) : 44 [10:05:29]line Товар: 2710194210 [10:05:29]line ДТ(л)-К-5 [10:05:29]line 28.000 * 0.00 [10:05:29]line = 0.00 [10:05:29]line НДС 12% НСП 1% [10:05:29]line > о реализуемом товаре [10:05:29]line ИТОГО: 0.00 [10:05:29]line НСП 1% : 0.00 [10:05:29]line НДС 12% : 0.00 [10:05:29]line Наличными: 0.00 [10:05:29]line Безнал.: 0.00 [10:05:29]line Место: АЗС № 136 "Партнер Нефть" [10:05:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:05:29]line СНО: Общий режим [10:05:29]line Чек 83 20.08.2024 10:05 [10:05:29]line Смена: 453 ФФД: 1.0 [10:05:29]line ЗНМ: 0300000067 [10:05:29]line РНМ: 0000000000092569 [10:05:29]line Версия ККМ: 001 [10:05:29]line Талоны: Топливная Карта [10:05:29]line 99761 [10:05:29]line ФМ: 0000000000871776 [10:05:29]line ФД: 139611 [10:05:29]line ФПД: 65893596086191 [10:05:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100531&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139611&fm=65893596086191&tin=02508201610067®Number=0000000000092569&sum=0 [10:05:30]OFD Sender: Processing packet 139611 [packets to send 137, broken 136] [10:05:30]ProducePacketName [10:05:30]name=ofd_packets/00139611 [10:05:30]OFD Sender: To server: pG, [10:05:30]CommunicateWithHost lk.salyk.kg:30040 [10:05:30]ConnectInit lk.salyk.kg [10:05:30]written 0, free lines is 4095 [10:05:30]Connected sock=10 [10:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 76 4F 08 01 3B A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 6B 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 21 02 00 35 04 06 00 3B EE 0C 63 3F AF 4E 1C E6 39 6C 5F 4E E2 [10:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A7 1E 47 00 B4 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 21 02 00 F4 03 04 00 FE 10 C4 66 B6 04 01 00 00 45 6A 83 7D 44 7F 0C 05 [10:05:30]CommunicateWithHost err = 0 [10:05:30]CheckOFDResponse [10:05:30]1017 (14) - 77093643461234 [10:05:30]1041 (16) - 0000000000871776 [10:05:30]1040 (4) - 139611 [10:05:30]1012 (4) - 20.08.2024 03:43 [10:05:30]1206 (1) - 0 [10:05:30]OFD Sender: Remove packet 139611 [10:05:30]ProducePacketName [10:05:30]name=ofd_packets/00139611 [10:05:30]NVStorageDeleteData [10:05:30]Write to MH i2c: 01 00 00 D1 24 F5 [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: 01 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: 01 07 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: 01 07 00 D1 24 00 00 00 00 00 DF 0C E7 [10:05:30]RasterBufferAndPrint [10:05:30]line [10:05:30]line [10:05:30]line [10:05:30]line [10:05:30]line [10:05:30]written 0, free lines is 3301 [10:05:30]MH_Cut [10:05:30]Write to MH i2c: D1 01 00 D8 24 01 CE [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: D1 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: D1 01 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: D1 01 00 D8 24 00 CD [10:05:30]Write to MH i2c: 01 00 00 D9 24 FD [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:31]OFD Sender: No OFD packet to send [10:05:31]*** Cut start [10:05:31]*** Partial cut [10:05:31]*** CUTSNS_PIN = 1 [10:05:31]*** CUTSNS_PIN = 0 [10:05:31]*** Brake cut motor [10:05:31]Read from MH i2c: 01 [10:05:31]MH_I2C_Read... [10:05:31]*** Stop cut motor [10:05:31]*** Cut end [10:05:31]Read from MH i2c: 01 07 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 07 00 D9 24 00 00 00 00 00 FF 0F 12 [10:05:31]process_action close_receipt done [10:05:31]requested_data is exist [10:05:31]produce_requested_data [10:05:31]requested_item fm.sn is exist - process it [10:05:31]wFMCommunicate request_size=4 [10:05:31]MH_SAM_APDU [10:05:31]CAPDU: 80 11 00 00 [10:05:31]Write to MH i2c: E2 08 00 DA 24 80 11 00 00 00 00 00 00 78 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:31]Read from MH i2c: E2 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 17 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 17 00 DA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [10:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:05:31]wFMCommunicate OK [10:05:31]requested_item fd.num is exist - process it [10:05:31]SAM_PROTO_GetFieldsCounters [10:05:31]wFMCommunicate request_size=4 [10:05:31]MH_SAM_APDU [10:05:31]CAPDU: 80 13 00 00 [10:05:31]Write to MH i2c: E2 08 00 DB 24 80 13 00 00 00 00 00 00 7B [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 62 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 62 00 DB 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [10:05:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:32]wFMCommunicate OK [10:05:32]SAM_PROTO_GetFieldsCounters done [10:05:32]requested_item shift.num is exist - process it [10:05:32]requested_item shift.opened is exist - process it [10:05:32]req_shift_opened [10:05:32]FM_GetShiftState [10:05:32]SAM_PROTO_GetShiftState [10:05:32]wFMCommunicate request_size=4 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 13 01 00 [10:05:32]Write to MH i2c: E2 08 00 DC 24 80 13 01 00 00 00 00 00 7D [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 0E 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 0E 00 DC 24 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0E [10:05:32]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:05:32]wFMCommunicate OK [10:05:32]SAM_PROTO_GetShiftState done [10:05:32]FM_GetShiftState done [10:05:32]req_shift_opened done [10:05:32]requested_item shift.open_date is exist - process it [10:05:32]req_shift_open_date [10:05:32]req_shift_open_date done [10:05:32]produce_requested_data done [10:05:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139611,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:05:32]process_action_free close_receipt [10:05:32]json_value_free [10:05:32]json_value_free done [10:05:32]process_json_proto returns [10:05:32]Send response to host [10:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139611,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:05:32]free response buf [10:05:32]execute_script done [10:05:32]execute_script returns [10:05:32]free content buf [10:05:32]Sock 9.Close socket [10:05:32]Sock 9.Thread stoped [10:05:32]int [10:05:32]Write to MH i2c: 01 00 00 DD 24 01 [10:05:32]*** FLAG_PRN_KEY set [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 DD 24 00 08 00 00 00 FF 0F 1E [10:05:32]state=0 [10:05:32]Key pressed [10:05:32]Feed [10:05:32]Write to MH i2c: D8 00 00 DE 24 D9 [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: D8 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: D8 01 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: D8 01 00 DE 24 00 DA [10:05:32]int [10:05:32]Write to MH i2c: 01 00 00 DF 24 03 [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 DF 24 00 48 00 00 00 3C 00 8E [10:05:32]state=2 [10:05:32]Key pressed [10:05:32]int [10:05:32]Write to MH i2c: 01 00 00 E0 24 04 [10:05:32]*** FLAG_PRN_KEY reset [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 E0 24 00 00 00 00 00 F9 0F 13 [10:05:32]state=2 [10:05:32]Stop feed [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:07]accept exits with 7 [10:06:07]New connection [10:06:07]New thread 3067215204 created [10:06:07]Thread 3067071844 joined [10:06:07]Waiting for new connection... [10:06:07] Sock 7.Parse request [10:06:07]Sock 7.Check first char [10:06:07]Sock 7.First char is OK [10:06:07]request: POST /json_proto HTTP/1.0 [10:06:07]Method: POST [10:06:07]URL: /json_proto [10:06:07]Method is POST - this is cgi request [10:06:07]url: /json_proto [10:06:07]query_string will be loaded in cgi processing [10:06:07]execute_cgi json_proto POST (null) [10:06:07]execute_cgi path=json_proto method=POST [10:06:07]POST find Content-Length [10:06:07]Host: 172.17.45.67:8080 [10:06:07]Content-Length: 682 [10:06:07]Content-Type: application/json [10:06:07] [10:06:07]POST finish read [10:06:07]Found Content-Length = 682 [10:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:07]execute_script... [10:06:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:07]POST & json_proto [10:06:07]process_json_proto [10:06:07]json parsed OK: [10:06:07]protocol is kg_v1.0 [10:06:07]action value=close_receipt [10:06:07]process_action close_receipt [10:06:07]cmd_close_receipt [10:06:07]MH_GetDate [10:06:07]Write to MH i2c: F0 00 00 E1 24 F4 [10:06:07]Write i2c OK [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: F0 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: F0 09 00 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: F0 09 00 E1 24 00 92 6A C4 66 5F 7F 2B 66 92 [10:06:07]GetLastDocTimeStamp 1724148331 [10:06:07]current date 1724148370 [10:06:07]FM_GetShiftState [10:06:07]SAM_PROTO_GetShiftState [10:06:07]wFMCommunicate request_size=4 [10:06:07]MH_SAM_APDU [10:06:07]CAPDU: 80 13 01 00 [10:06:07]Write to MH i2c: E2 08 00 E2 24 80 13 01 00 00 00 00 00 83 [10:06:07]Write i2c OK [10:06:07]MH_I2C_Read... [10:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:08]Read from MH i2c: E2 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 0E 00 [10:06:08]MH_I2C_Read... [10:06:08]Read from MH i2c: E2 0E 00 E2 24 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 14 [10:06:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:06:08]wFMCommunicate OK [10:06:08]SAM_PROTO_GetShiftState done [10:06:08]FM_GetShiftState done [10:06:08]opened in 1724113785 [10:06:08]opened+sec_in_day 1724200185 [10:06:08]quantity*price = 100005 [10:06:08]sum+1 = 100006 [10:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 84 20.08.2024 10:06 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139612 ФПД: 51492354616008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100611&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139612&fm=51492354616008&tin=02508201610067®Number=0000000000092569&sum=100000 [10:06:09]StoreToDocumentArchive [10:06:09]shift 453 fd 139612 [10:06:09]save to /storage/0453/doc_00139612 [10:06:09]save last doc name /storage/0453/doc_00139612 to /storage/kkm_last_doc_name [10:06:09]save OK [10:06:09]Clear old archive folders... [10:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:09]tlvbuf is B6F952E0 [10:06:09]SAM_PROTO_ClearQueue [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 09 00 00 [10:06:09]Write to MH i2c: E2 08 00 EF 24 80 09 00 00 00 00 00 00 85 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 EF 24 00 90 00 87 [10:06:09]RAPDU: 90 00 [10:06:09]wFMCommunicate OK [10:06:09]SAM_PROTO_ClearQueue done [10:06:09]KKMCreateOFDPacket [10:06:09]OFDProtocolAddRootSTLVToBuf [10:06:09]FM_MakeSignedData [10:06:09]FM_MakeSignedData [10:06:09]SAM_PROTO_SignData [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 0D 01 02 [10:06:09]Write to MH i2c: E2 08 00 F0 24 80 0D 01 02 00 00 00 00 8D [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 F0 24 00 90 00 88 [10:06:09]RAPDU: 90 00 [10:06:09]wFMCommunicate OK [10:06:09]wFMCommunicate request_size=255 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 93 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 21 02 00 35 04 06 00 2E [10:06:09]Write to MH i2c: E2 02 01 F1 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 93 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 21 02 00 35 04 06 00 2E 00 00 93 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 F1 24 00 90 00 89 [10:06:09]RAPDU: 90 00 [10:06:09]wFMCommunicate OK [10:06:09]wFMCommunicate request_size=10 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 0D 02 02 05 D4 FF 81 6A C8 [10:06:09]Write to MH i2c: E2 0D 00 F2 24 80 0D 02 02 05 00 D4 FF 81 6A C8 00 00 20 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 03 00 F2 24 00 90 00 8A [10:06:09]RAPDU: 90 00 [10:06:09]wFMCommunicate OK [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 0D 03 02 [10:06:09]Write to MH i2c: E2 08 00 F3 24 80 0D 03 02 00 00 00 00 92 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 0B 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 0B 00 F3 24 00 DB 95 0F F3 94 71 BC DA 90 00 A0 [10:06:09]RAPDU: DB 95 0F F3 94 71 BC DA 90 00 [10:06:09]wFMCommunicate OK [10:06:09]SAM_PROTO_SignData done [10:06:09]FM_MakeSignedData done [10:06:09]CreateOFDProtocolMessage [10:06:09]wFMCommunicate request_size=4 [10:06:09]MH_SAM_APDU [10:06:09]CAPDU: 80 11 00 00 [10:06:09]Write to MH i2c: E2 08 00 F4 24 80 11 00 00 00 00 00 00 92 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:09]Read from MH i2c: E2 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 17 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: E2 17 00 F4 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E9 [10:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:06:09]wFMCommunicate OK [10:06:09]CreateOFDProtocolMessage done [10:06:09]OFDSenderStorePacket 139612 [10:06:09]StoreOFDPacket docnum=139612 [10:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F F1 07 01 DB 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 93 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 21 02 00 35 04 06 00 2E D4 FF 81 6A C8 DB 95 0F F3 94 71 BC DA [10:06:09]CheckFolder [10:06:09]dirname=/storage/ofd_packets [10:06:09]CheckFolder done [10:06:09]ProducePacketName [10:06:09]name=ofd_packets/00139612 [10:06:09]NVStorageSaveData ofd_packets/00139612 [10:06:09]File name is /storage/ofd_packets/00139612 [10:06:09]Write 301 bytes [10:06:09]NVStorageSaveData done [10:06:09]OFDSenderStorePacket done [10:06:09]KKMCreateOFDPacket done [10:06:09]NVStorageSaveData kkm_last_timestamp [10:06:09]File name is /storage/kkm_last_timestamp [10:06:09]Write 4 bytes [10:06:09]NVStorageSaveData done [10:06:09]ExternCall_PrintAddStr [10:06:09]wPrintStart [10:06:09]Write to MH i2c: 01 00 00 F5 24 19 [10:06:09]Write i2c OK [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: 01 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: 01 07 00 [10:06:09]MH_I2C_Read... [10:06:09]Read from MH i2c: 01 07 00 F5 24 00 00 00 00 00 FF 0F 2E [10:06:09]RasterBufferAndPrint [10:06:09]line Счет N : (1)593458 [10:06:09]line ИНН: 02508201610067 [10:06:09]line Контрольно-Кассовый Чек [10:06:09]line ПРОДАЖА [10:06:09]line ТРК (МРК, ГНК) : 62 [10:06:09]line Товар: 2710124130 [10:06:09]line Аи-92-К-5 [10:06:09]line 14.750 * 67.80 [10:06:09]line = 1000.05 [10:06:09]line НДС 12% НСП 1% [10:06:09]line > о реализуемом товаре [10:06:09]line ОКРУГЛЕНИЕ: -0.05 [10:06:09]line ИТОГО: 1000.00 [10:06:09]line Внесено: 1000.00 [10:06:09]line СДАЧА: 0.00 [10:06:09]line НСП 1% : 8.85 [10:06:09]line НДС 12% : 106.20 [10:06:09]line Наличными: 1000.00 [10:06:09]line Безнал.: 0.00 [10:06:09]line Место: АЗС № 136 "Партнер Нефть" [10:06:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:06:09]line СНО: Общий режим [10:06:09]line Чек 84 20.08.2024 10:06 [10:06:09]line Смена: 453 ФФД: 1.0 [10:06:09]line ЗНМ: 0300000067 [10:06:09]line РНМ: 0000000000092569 [10:06:09]line Версия ККМ: 001 [10:06:09]line ФМ: 0000000000871776 [10:06:09]line ФД: 139612 [10:06:09]line ФПД: 51492354616008 [10:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100611&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139612&fm=51492354616008&tin=02508201610067®Number=0000000000092569&sum=100000 [10:06:09]OFD Sender: Processing packet 139612 [packets to send 137, broken 136] [10:06:10]ProducePacketName [10:06:10]name=ofd_packets/00139612 [10:06:10]OFD Sender: To server: pG, [10:06:10]CommunicateWithHost lk.salyk.kg:30040 [10:06:10]ConnectInit lk.salyk.kg [10:06:10]written 0, free lines is 4095 [10:06:10]Write to MH i2c: 01 00 00 20 25 45 [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: 01 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: 01 07 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: 01 07 00 20 25 00 00 00 00 00 C5 0C 1D [10:06:10]RasterBufferAndPrint [10:06:10]line [10:06:10]line [10:06:10]line [10:06:10]line [10:06:10]line [10:06:10]written 0, free lines is 3273 [10:06:10]MH_Cut [10:06:10]Write to MH i2c: D1 01 00 27 25 01 1E [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: D1 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: D1 01 00 [10:06:10]MH_I2C_Read... [10:06:10]Read from MH i2c: D1 01 00 27 25 00 1D [10:06:10]Write to MH i2c: 01 00 00 28 25 4D [10:06:10]Write i2c OK [10:06:10]MH_I2C_Read... [10:06:11]*** Cut start [10:06:11]*** Partial cut [10:06:11]*** CUTSNS_PIN = 1 [10:06:11]*** CUTSNS_PIN = 0 [10:06:11]*** Brake cut motor [10:06:11]Read from MH i2c: 01 [10:06:11]MH_I2C_Read... [10:06:11]*** Stop cut motor [10:06:11]*** Cut end [10:06:11]Read from MH i2c: 01 07 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: 01 07 00 28 25 00 00 00 00 00 FF 0F 62 [10:06:11]process_action close_receipt done [10:06:11]requested_data is exist [10:06:11]produce_requested_data [10:06:11]requested_item fm.sn is exist - process it [10:06:11]wFMCommunicate request_size=4 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 11 00 00 [10:06:11]Write to MH i2c: E2 08 00 29 25 80 11 00 00 00 00 00 00 C8 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:11]Read from MH i2c: E2 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 17 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 17 00 29 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [10:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:06:11]wFMCommunicate OK [10:06:11]requested_item fd.num is exist - process it [10:06:11]SAM_PROTO_GetFieldsCounters [10:06:11]wFMCommunicate request_size=4 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 13 00 00 [10:06:11]Write to MH i2c: E2 08 00 2A 25 80 13 00 00 00 00 00 00 CB [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:11]Read from MH i2c: E2 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 62 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 62 00 2A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10:06:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:11]wFMCommunicate OK [10:06:11]SAM_PROTO_GetFieldsCounters done [10:06:11]requested_item shift.num is exist - process it [10:06:11]requested_item shift.opened is exist - process it [10:06:11]req_shift_opened [10:06:11]FM_GetShiftState [10:06:11]SAM_PROTO_GetShiftState [10:06:11]wFMCommunicate request_size=4 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 13 01 00 [10:06:11]Write to MH i2c: E2 08 00 2B 25 80 13 01 00 00 00 00 00 CD [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0E 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0E 00 2B 25 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5E [10:06:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_GetShiftState done [10:06:12]FM_GetShiftState done [10:06:12]req_shift_opened done [10:06:12]requested_item shift.open_date is exist - process it [10:06:12]req_shift_open_date [10:06:12]req_shift_open_date done [10:06:12]produce_requested_data done [10:06:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139612,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:06:12]process_action_free close_receipt [10:06:12]json_value_free [10:06:12]json_value_free done [10:06:12]process_json_proto returns [10:06:12]Send response to host [10:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139612,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:06:12]free response buf [10:06:12]execute_script done [10:06:12]execute_script returns [10:06:12]free content buf [10:06:12]Sock 7.Close socket [10:06:12]Sock 7.Thread stoped [10:07:13]accept exits with 9 [10:07:13]New connection [10:07:13]New thread 3067071844 created [10:07:13]Thread 3067215204 joined [10:07:13]Waiting for new connection... [10:07:13] Sock 9.Parse request [10:07:13]Sock 9.Check first char [10:07:13]Sock 9.First char is OK [10:07:13]request: POST /json_proto HTTP/1.0 [10:07:13]Method: POST [10:07:13]URL: /json_proto [10:07:13]Method is POST - this is cgi request [10:07:13]url: /json_proto [10:07:13]query_string will be loaded in cgi processing [10:07:13]execute_cgi json_proto POST (null) [10:07:13]execute_cgi path=json_proto method=POST [10:07:13]POST find Content-Length [10:07:13]Host: 172.17.45.67:8080 [10:07:13]Content-Length: 677 [10:07:13]Content-Type: application/json [10:07:13] [10:07:13]POST finish read [10:07:13]Found Content-Length = 677 [10:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:13]execute_script... [10:07: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)593459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:13]POST & json_proto [10:07:13]process_json_proto [10:07:13]json parsed OK: [10:07:13]protocol is kg_v1.0 [10:07:13]action value=close_receipt [10:07:13]process_action close_receipt [10:07:13]cmd_close_receipt [10:07:13]MH_GetDate [10:07:13]Write to MH i2c: F0 00 00 2C 25 40 [10:07:13]Write i2c OK [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: F0 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: F0 09 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: F0 09 00 2C 25 00 D4 6A C4 66 5F 7F 2B 66 20 [10:07:13]GetLastDocTimeStamp 1724148371 [10:07:13]current date 1724148436 [10:07:13]FM_GetShiftState [10:07:13]SAM_PROTO_GetShiftState [10:07:13]wFMCommunicate request_size=4 [10:07:13]MH_SAM_APDU [10:07:13]CAPDU: 80 13 01 00 [10:07:13]Write to MH i2c: E2 08 00 2D 25 80 13 01 00 00 00 00 00 CF [10:07:13]Write i2c OK [10:07:13]MH_I2C_Read... [10:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:13]Read from MH i2c: E2 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 0E 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 0E 00 2D 25 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 60 [10:07:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:07:13]wFMCommunicate OK [10:07:13]SAM_PROTO_GetShiftState done [10:07:13]FM_GetShiftState done [10:07:13]opened in 1724113785 [10:07:13]opened+sec_in_day 1724200185 [10:07:13]quantity*price = 50010 [10:07:13]sum+1 = 50012 [10:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 85 20.08.2024 10:07 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139613 ФПД: 5132326634620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100716&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139613&fm=5132326634620&tin=02508201610067®Number=0000000000092569&sum=50000 [10:07:14]StoreToDocumentArchive [10:07:14]shift 453 fd 139613 [10:07:14]save to /storage/0453/doc_00139613 [10:07:14]save last doc name /storage/0453/doc_00139613 to /storage/kkm_last_doc_name [10:07:14]save OK [10:07:14]Clear old archive folders... [10:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:14]tlvbuf is 00DA9480 [10:07:14]SAM_PROTO_ClearQueue [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 09 00 00 [10:07:14]Write to MH i2c: E2 08 00 3A 25 80 09 00 00 00 00 00 00 D1 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 3A 25 00 90 00 D3 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]SAM_PROTO_ClearQueue done [10:07:14]KKMCreateOFDPacket [10:07:14]OFDProtocolAddRootSTLVToBuf [10:07:14]FM_MakeSignedData [10:07:14]FM_MakeSignedData [10:07:14]SAM_PROTO_SignData [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 01 02 [10:07:14]Write to MH i2c: E2 08 00 3B 25 80 0D 01 02 00 00 00 00 D9 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 3B 25 00 90 00 D4 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]wFMCommunicate request_size=255 [10:07:14]MH_SAM_APDU [10:07: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 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D4 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 21 02 00 35 04 06 00 04 [10:07:14]Write to MH i2c: E2 02 01 3C 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 D4 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 21 02 00 35 04 06 00 04 00 00 51 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 3C 25 00 90 00 D5 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]wFMCommunicate request_size=10 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 02 02 05 AA F6 81 84 7C [10:07:14]Write to MH i2c: E2 0D 00 3D 25 80 0D 02 02 05 00 AA F6 81 84 7C 00 00 07 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 3D 25 00 90 00 D6 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 03 02 [10:07:14]Write to MH i2c: E2 08 00 3E 25 80 0D 03 02 00 00 00 00 DE [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0B 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0B 00 3E 25 00 B8 D5 3F 50 0C 12 FA D5 90 00 E8 [10:07:14]RAPDU: B8 D5 3F 50 0C 12 FA D5 90 00 [10:07:14]wFMCommunicate OK [10:07:14]SAM_PROTO_SignData done [10:07:14]FM_MakeSignedData done [10:07:14]CreateOFDProtocolMessage [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 11 00 00 [10:07:14]Write to MH i2c: E2 08 00 3F 25 80 11 00 00 00 00 00 00 DE [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 17 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 17 00 3F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [10:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:07:14]wFMCommunicate OK [10:07:14]CreateOFDProtocolMessage done [10:07:14]OFDSenderStorePacket 139613 [10:07:14]StoreOFDPacket docnum=139613 [10:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8D D0 07 01 17 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D4 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 21 02 00 35 04 06 00 04 AA F6 81 84 7C B8 D5 3F 50 0C 12 FA D5 [10:07:14]CheckFolder [10:07:14]dirname=/storage/ofd_packets [10:07:14]CheckFolder done [10:07:14]ProducePacketName [10:07:14]name=ofd_packets/00139613 [10:07:14]NVStorageSaveData ofd_packets/00139613 [10:07:14]File name is /storage/ofd_packets/00139613 [10:07:14]Write 301 bytes [10:07:14]NVStorageSaveData done [10:07:14]OFDSenderStorePacket done [10:07:14]KKMCreateOFDPacket done [10:07:14]NVStorageSaveData kkm_last_timestamp [10:07:14]File name is /storage/kkm_last_timestamp [10:07:14]Write 4 bytes [10:07:14]NVStorageSaveData done [10:07:14]ExternCall_PrintAddStr [10:07:14]wPrintStart [10:07:14]Write to MH i2c: 01 00 00 40 25 65 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: 01 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: 01 07 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: 01 07 00 40 25 00 00 00 00 00 FF 0F 7A [10:07:14]RasterBufferAndPrint [10:07:14]line Счет N : (1)593459 [10:07:14]line ИНН: 02508201610067 [10:07:14]line Контрольно-Кассовый Чек [10:07:14]line ПРОДАЖА [10:07:14]line ТРК (МРК, ГНК) : 31 [10:07:14]line Товар: 2710124500 [10:07:14]line Аи-95-К-5 [10:07:14]line 6.740 * 74.20 [10:07:14]line = 500.11 [10:07:14]line НДС 12% НСП 1% [10:07:14]line > о реализуемом товаре [10:07:14]line ОКРУГЛЕНИЕ: -0.11 [10:07:14]line ИТОГО: 500.00 [10:07:14]line Внесено: 500.00 [10:07:14]line СДАЧА: 0.00 [10:07:14]line НСП 1% : 4.43 [10:07:14]line НДС 12% : 53.11 [10:07:14]line Наличными: 500.00 [10:07:14]line Безнал.: 0.00 [10:07:14]line Место: АЗС № 136 "Партнер Нефть" [10:07:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:07:14]line СНО: Общий режим [10:07:14]line Чек 85 20.08.2024 10:07 [10:07:14]line Смена: 453 ФФД: 1.0 [10:07:14]line ЗНМ: 0300000067 [10:07:14]line РНМ: 0000000000092569 [10:07:14]line Версия ККМ: 001 [10:07:14]line ФМ: 0000000000871776 [10:07:14]line ФД: 139613 [10:07:14]line ФПД: 5132326634620 [10:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100716&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139613&fm=5132326634620&tin=02508201610067®Number=0000000000092569&sum=50000 [10:07:15]written 0, free lines is 4095 [10:07:15]Write to MH i2c: 01 00 00 6B 25 90 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 07 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 07 00 6B 25 00 00 00 00 00 BE 0C 61 [10:07:15]RasterBufferAndPrint [10:07:15]line [10:07:15]line [10:07:15]line [10:07:15]line [10:07:15]line [10:07:15]written 0, free lines is 3268 [10:07:15]MH_Cut [10:07:15]Write to MH i2c: D1 01 00 72 25 01 69 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: D1 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: D1 01 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: D1 01 00 72 25 00 68 [10:07:15]Write to MH i2c: 01 00 00 73 25 98 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:16]*** Cut start [10:07:16]*** Partial cut [10:07:16]*** CUTSNS_PIN = 1 [10:07:16]*** CUTSNS_PIN = 0 [10:07:16]*** Brake cut motor [10:07:16]Read from MH i2c: 01 [10:07:16]MH_I2C_Read... [10:07:16]*** Stop cut motor [10:07:16]Read from MH i2c: 01 07 00 [10:07:16]MH_I2C_Read... [10:07:16]*** Cut end [10:07:16]Read from MH i2c: 01 07 00 73 25 00 00 00 00 00 FF 0F AD [10:07:16]process_action close_receipt done [10:07:16]requested_data is exist [10:07:16]produce_requested_data [10:07:16]requested_item fm.sn is exist - process it [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 11 00 00 [10:07:16]Write to MH i2c: E2 08 00 74 25 80 11 00 00 00 00 00 00 13 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 17 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 17 00 74 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [10:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:07:16]wFMCommunicate OK [10:07:16]requested_item fd.num is exist - process it [10:07:16]SAM_PROTO_GetFieldsCounters [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 13 00 00 [10:07:16]Write to MH i2c: E2 08 00 75 25 80 13 00 00 00 00 00 00 16 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 62 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 62 00 75 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [10:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_GetFieldsCounters done [10:07:17]requested_item shift.num is exist - process it [10:07:17]requested_item shift.opened is exist - process it [10:07:17]req_shift_opened [10:07:17]FM_GetShiftState [10:07:17]SAM_PROTO_GetShiftState [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 13 01 00 [10:07:17]Write to MH i2c: E2 08 00 76 25 80 13 01 00 00 00 00 00 18 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0E 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0E 00 76 25 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A9 [10:07:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_GetShiftState done [10:07:17]FM_GetShiftState done [10:07:17]req_shift_opened done [10:07:17]requested_item shift.open_date is exist - process it [10:07:17]req_shift_open_date [10:07:17]req_shift_open_date done [10:07:17]produce_requested_data done [10:07:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139613,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:07:17]process_action_free close_receipt [10:07:17]json_value_free [10:07:17]json_value_free done [10:07:17]process_json_proto returns [10:07:17]Send response to host [10:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139613,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:07:17]free response buf [10:07:17]execute_script done [10:07:17]execute_script returns [10:07:17]free content buf [10:07:17]Sock 9.Close socket [10:07:17]Sock 9.Thread stoped [10:08:20]ConnectInit Can't connect to host [10:08:20]CommunicateWithHost connect error [10:08:20]CommunicateWithHost err = -1 [10:08:20]OFD Sender: Server communicate error [10:08:20]OFD Sender: Processing packet 139612 [packets to send 138, broken 136] [10:08:20]ProducePacketName [10:08:20]name=ofd_packets/00139612 [10:08:20]OFD Sender: To server: pG, [10:08:20]CommunicateWithHost lk.salyk.kg:30040 [10:08:20]ConnectInit lk.salyk.kg [10:08:20]Connected sock=9 [10:08:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F F1 07 01 DB 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 93 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 21 02 00 35 04 06 00 2E D4 FF 81 6A C8 DB 95 0F F3 94 71 BC DA [10:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 45 E2 47 00 66 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 21 02 00 F4 03 04 00 A8 11 C4 66 B6 04 01 00 00 97 F0 0F F3 A8 A8 A4 08 [10:08:20]CommunicateWithHost err = 0 [10:08:20]CheckOFDResponse [10:08:20]1017 (14) - 77093643461234 [10:08:20]1041 (16) - 0000000000871776 [10:08:20]1040 (4) - 139612 [10:08:20]1012 (4) - 20.08.2024 03:46 [10:08:20]1206 (1) - 0 [10:08:20]OFD Sender: Remove packet 139612 [10:08:20]ProducePacketName [10:08:20]name=ofd_packets/00139612 [10:08:20]NVStorageDeleteData [10:08:21]OFD Sender: Processing packet 139613 [packets to send 137, broken 136] [10:08:21]ProducePacketName [10:08:21]name=ofd_packets/00139613 [10:08:21]OFD Sender: To server: pG, [10:08:21]CommunicateWithHost lk.salyk.kg:30040 [10:08:21]ConnectInit lk.salyk.kg [10:08:21]Connected sock=9 [10:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8D D0 07 01 17 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D4 6A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 21 02 00 35 04 06 00 04 AA F6 81 84 7C B8 D5 3F 50 0C 12 FA D5 [10:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 23 0C 47 00 91 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 21 02 00 F4 03 04 00 A9 11 C4 66 B6 04 01 00 00 1C A7 81 A5 BD B2 18 44 [10:08:21]CommunicateWithHost err = 0 [10:08:21]CheckOFDResponse [10:08:21]1017 (14) - 77093643461234 [10:08:21]1041 (16) - 0000000000871776 [10:08:21]1040 (4) - 139613 [10:08:21]1012 (4) - 20.08.2024 03:46 [10:08:21]1206 (1) - 0 [10:08:21]OFD Sender: Remove packet 139613 [10:08:21]ProducePacketName [10:08:21]name=ofd_packets/00139613 [10:08:21]NVStorageDeleteData [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:41]accept exits with 7 [10:08:41]New connection [10:08:41]New thread 3067215204 created [10:08:41]Thread 3067071844 joined [10:08:41]Waiting for new connection... [10:08:41] Sock 7.Parse request [10:08:41]Sock 7.Check first char [10:08:41]Sock 7.First char is OK [10:08:41]request: POST /json_proto HTTP/1.0 [10:08:41]Method: POST [10:08:41]URL: /json_proto [10:08:41]Method is POST - this is cgi request [10:08:41]url: /json_proto [10:08:41]query_string will be loaded in cgi processing [10:08:41]execute_cgi json_proto POST (null) [10:08:41]execute_cgi path=json_proto method=POST [10:08:41]POST find Content-Length [10:08:41]Host: 172.17.45.67:8080 [10:08:41]Content-Length: 797 [10:08:41]Content-Type: application/json [10:08:41] [10:08:41]POST finish read [10:08:41]Found Content-Length = 797 [10:08:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:41]execute_script... [10:08: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)593460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:41]POST & json_proto [10:08:41]process_json_proto [10:08:41]json parsed OK: [10:08:41]protocol is kg_v1.0 [10:08:41]action value=close_receipt [10:08:41]process_action close_receipt [10:08:41]cmd_close_receipt [10:08:41]MH_GetDate [10:08:41]Write to MH i2c: F0 00 00 77 25 8B [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: F0 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: F0 09 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: F0 09 00 77 25 00 2C 6B C4 66 5F 7F 2B 66 C4 [10:08:41]GetLastDocTimeStamp 1724148436 [10:08:41]current date 1724148524 [10:08:41]FM_GetShiftState [10:08:41]SAM_PROTO_GetShiftState [10:08:41]wFMCommunicate request_size=4 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 13 01 00 [10:08:41]Write to MH i2c: E2 08 00 78 25 80 13 01 00 00 00 00 00 1A [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0E 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0E 00 78 25 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AB [10:08:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:08:41]wFMCommunicate OK [10:08:41]SAM_PROTO_GetShiftState done [10:08:41]FM_GetShiftState done [10:08:41]opened in 1724113785 [10:08:41]opened+sec_in_day 1724200185 [10:08:41]quantity*price = 0 [10:08:41]sum+1 = 1 [10:08:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 86 20.08.2024 10:08 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139614 ФПД: 67526108173812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100844&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139614&fm=67526108173812&tin=02508201610067®Number=0000000000092569&sum=0 [10:08:42]StoreToDocumentArchive [10:08:42]shift 453 fd 139614 [10:08:42]save to /storage/0453/doc_00139614 [10:08:42]save last doc name /storage/0453/doc_00139614 to /storage/kkm_last_doc_name [10:08:42]save OK [10:08:42]Clear old archive folders... [10:08:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:08:42]tlvbuf is 00D2E110 [10:08:42]SAM_PROTO_ClearQueue [10:08:42]wFMCommunicate request_size=4 [10:08:42]MH_SAM_APDU [10:08:42]CAPDU: 80 09 00 00 [10:08:42]Write to MH i2c: E2 08 00 85 25 80 09 00 00 00 00 00 00 1C [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:42]Read from MH i2c: E2 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 03 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 03 00 85 25 00 90 00 1E [10:08:42]RAPDU: 90 00 [10:08:42]wFMCommunicate OK [10:08:42]SAM_PROTO_ClearQueue done [10:08:42]KKMCreateOFDPacket [10:08:42]OFDProtocolAddRootSTLVToBuf [10:08:42]FM_MakeSignedData [10:08:42]FM_MakeSignedData [10:08:42]SAM_PROTO_SignData [10:08:42]wFMCommunicate request_size=4 [10:08:42]MH_SAM_APDU [10:08:42]CAPDU: 80 0D 01 02 [10:08:42]Write to MH i2c: E2 08 00 86 25 80 0D 01 02 00 00 00 00 24 [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:42]Read from MH i2c: E2 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 03 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 03 00 86 25 00 90 00 1F [10:08:42]RAPDU: 90 00 [10:08:42]wFMCommunicate OK [10:08:42]wFMCommunicate request_size=255 [10:08:42]MH_SAM_APDU [10:08:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 2C 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 21 02 00 35 04 06 00 [10:08:42]Write to MH i2c: E2 02 01 87 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 2C 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 21 02 00 35 04 06 00 00 00 9E [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:42]Read from MH i2c: E2 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 03 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 03 00 87 25 00 90 00 20 [10:08:42]RAPDU: 90 00 [10:08:42]wFMCommunicate OK [10:08:42]wFMCommunicate request_size=11 [10:08:42]MH_SAM_APDU [10:08:42]CAPDU: 80 0D 02 02 06 3D 6A 25 B0 D5 F4 [10:08:42]Write to MH i2c: E2 0E 00 88 25 80 0D 02 02 06 00 3D 6A 25 B0 D5 F4 00 00 78 [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:42]Read from MH i2c: E2 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 03 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 03 00 88 25 00 90 00 21 [10:08:42]RAPDU: 90 00 [10:08:42]wFMCommunicate OK [10:08:42]wFMCommunicate request_size=4 [10:08:42]MH_SAM_APDU [10:08:42]CAPDU: 80 0D 03 02 [10:08:42]Write to MH i2c: E2 08 00 89 25 80 0D 03 02 00 00 00 00 29 [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:42]Read from MH i2c: E2 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 0B 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 0B 00 89 25 00 A2 79 9E 21 3C EA B9 77 90 00 5A [10:08:42]RAPDU: A2 79 9E 21 3C EA B9 77 90 00 [10:08:42]wFMCommunicate OK [10:08:42]SAM_PROTO_SignData done [10:08:42]FM_MakeSignedData done [10:08:42]CreateOFDProtocolMessage [10:08:42]wFMCommunicate request_size=4 [10:08:42]MH_SAM_APDU [10:08:42]CAPDU: 80 11 00 00 [10:08:42]Write to MH i2c: E2 08 00 8A 25 80 11 00 00 00 00 00 00 29 [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:42]Read from MH i2c: E2 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 17 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 17 00 8A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [10:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:08:42]wFMCommunicate OK [10:08:42]CreateOFDProtocolMessage done [10:08:42]OFDSenderStorePacket 139614 [10:08:42]StoreOFDPacket docnum=139614 [10:08:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A3 2D 08 01 39 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 2C 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 21 02 00 35 04 06 00 3D 6A 25 B0 D5 F4 A2 79 9E 21 3C EA B9 77 [10:08:42]CheckFolder [10:08:42]dirname=/storage/ofd_packets [10:08:42]CheckFolder done [10:08:42]ProducePacketName [10:08:42]name=ofd_packets/00139614 [10:08:42]NVStorageSaveData ofd_packets/00139614 [10:08:42]File name is /storage/ofd_packets/00139614 [10:08:42]Write 302 bytes [10:08:42]NVStorageSaveData done [10:08:42]OFDSenderStorePacket done [10:08:42]KKMCreateOFDPacket done [10:08:42]NVStorageSaveData kkm_last_timestamp [10:08:42]File name is /storage/kkm_last_timestamp [10:08:42]Write 4 bytes [10:08:42]NVStorageSaveData done [10:08:42]ExternCall_PrintAddStr [10:08:42]wPrintStart [10:08:42]Write to MH i2c: 01 00 00 8B 25 B0 [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: 01 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: 01 07 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: 01 07 00 8B 25 00 00 00 00 00 FF 0F C5 [10:08:42]RasterBufferAndPrint [10:08:42]line Счет N : (1)593460 [10:08:42]line ИНН: 02508201610067 [10:08:42]line Контрольно-Кассовый Чек [10:08:42]line ПРОДАЖА [10:08:42]line ТРК (МРК, ГНК) : 21 [10:08:42]line Товар: 2710194210 [10:08:42]line ДТ(л)-К-5 [10:08:42]line 28.000 * 0.00 [10:08:42]line = 0.00 [10:08:42]line НДС 12% НСП 1% [10:08:42]line > о реализуемом товаре [10:08:42]line ИТОГО: 0.00 [10:08:42]line НСП 1% : 0.00 [10:08:42]line НДС 12% : 0.00 [10:08:42]line Наличными: 0.00 [10:08:42]line Безнал.: 0.00 [10:08:42]line Место: АЗС № 136 "Партнер Нефть" [10:08:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:08:42]line СНО: Общий режим [10:08:42]line Чек 86 20.08.2024 10:08 [10:08:42]line Смена: 453 ФФД: 1.0 [10:08:42]line ЗНМ: 0300000067 [10:08:42]line РНМ: 0000000000092569 [10:08:42]line Версия ККМ: 001 [10:08:42]line Талоны: Топливная Карта [10:08:42]line 99761 [10:08:42]line ФМ: 0000000000871776 [10:08:42]line ФД: 139614 [10:08:42]line ФПД: 67526108173812 [10:08:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100844&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139614&fm=67526108173812&tin=02508201610067®Number=0000000000092569&sum=0 [10:08:42]written 0, free lines is 4095 [10:08:42]OFD Sender: Processing packet 139614 [packets to send 137, broken 136] [10:08:42]ProducePacketName [10:08:42]name=ofd_packets/00139614 [10:08:42]OFD Sender: To server: pG, [10:08:42]CommunicateWithHost lk.salyk.kg:30040 [10:08:42]ConnectInit lk.salyk.kg [10:08:43]Connected sock=10 [10:08:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A3 2D 08 01 39 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 2C 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 21 02 00 35 04 06 00 3D 6A 25 B0 D5 F4 A2 79 9E 21 3C EA B9 77 [10:08:43]Write to MH i2c: 01 00 00 B5 25 DA [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: 01 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: 01 07 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: 01 07 00 B5 25 00 00 00 00 00 DC 0C C9 [10:08:43]RasterBufferAndPrint [10:08:43]line [10:08:43]line [10:08:43]line [10:08:43]line [10:08:43]line [10:08:43]written 0, free lines is 3300 [10:08:43]MH_Cut [10:08:43]Write to MH i2c: D1 01 00 BC 25 01 B3 [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: D1 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: D1 01 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: D1 01 00 BC 25 00 B2 [10:08:43]Write to MH i2c: 01 00 00 BD 25 E2 [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 84 5E 47 00 0A AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 21 02 00 F4 03 04 00 BF 11 C4 66 B6 04 01 00 00 8F 50 FE 5B 1B FB 56 43 [10:08:43]CommunicateWithHost err = 0 [10:08:43]CheckOFDResponse [10:08:43]1017 (14) - 77093643461234 [10:08:43]1041 (16) - 0000000000871776 [10:08:43]1040 (4) - 139614 [10:08:43]1012 (4) - 20.08.2024 03:47 [10:08:43]1206 (1) - 0 [10:08:43]OFD Sender: Remove packet 139614 [10:08:43]ProducePacketName [10:08:43]name=ofd_packets/00139614 [10:08:43]NVStorageDeleteData [10:08:43]OFD Sender: No OFD packet to send [10:08:44]*** Cut start [10:08:44]*** Partial cut [10:08:44]*** CUTSNS_PIN = 1 [10:08:44]*** CUTSNS_PIN = 0 [10:08:44]*** Brake cut motor [10:08:44]Read from MH i2c: 01 [10:08:44]MH_I2C_Read... [10:08:44]*** Stop cut motor [10:08:44]*** Cut end [10:08:44]Read from MH i2c: 01 07 00 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: 01 07 00 BD 25 00 00 00 00 00 FF 0F F7 [10:08:44]process_action close_receipt done [10:08:44]requested_data is exist [10:08:44]produce_requested_data [10:08:44]requested_item fm.sn is exist - process it [10:08:44]wFMCommunicate request_size=4 [10:08:44]MH_SAM_APDU [10:08:44]CAPDU: 80 11 00 00 [10:08:44]Write to MH i2c: E2 08 00 BE 25 80 11 00 00 00 00 00 00 5D [10:08:44]Write i2c OK [10:08:44]MH_I2C_Read... [10:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:44]Read from MH i2c: E2 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 17 00 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 17 00 BE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [10:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:08:44]wFMCommunicate OK [10:08:44]requested_item fd.num is exist - process it [10:08:44]SAM_PROTO_GetFieldsCounters [10:08:44]wFMCommunicate request_size=4 [10:08:44]MH_SAM_APDU [10:08:44]CAPDU: 80 13 00 00 [10:08:44]Write to MH i2c: E2 08 00 BF 25 80 13 00 00 00 00 00 00 60 [10:08:44]Write i2c OK [10:08:44]MH_I2C_Read... [10:08:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:44]Read from MH i2c: E2 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 62 00 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 62 00 BF 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [10:08:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:44]wFMCommunicate OK [10:08:44]SAM_PROTO_GetFieldsCounters done [10:08:44]requested_item shift.num is exist - process it [10:08:44]requested_item shift.opened is exist - process it [10:08:44]req_shift_opened [10:08:44]FM_GetShiftState [10:08:44]SAM_PROTO_GetShiftState [10:08:44]wFMCommunicate request_size=4 [10:08:44]MH_SAM_APDU [10:08:44]CAPDU: 80 13 01 00 [10:08:44]Write to MH i2c: E2 08 00 C0 25 80 13 01 00 00 00 00 00 62 [10:08:44]Write i2c OK [10:08:44]MH_I2C_Read... [10:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:44]Read from MH i2c: E2 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 0E 00 [10:08:44]MH_I2C_Read... [10:08:44]Read from MH i2c: E2 0E 00 C0 25 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F3 [10:08:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:08:44]wFMCommunicate OK [10:08:44]SAM_PROTO_GetShiftState done [10:08:44]FM_GetShiftState done [10:08:44]req_shift_opened done [10:08:44]requested_item shift.open_date is exist - process it [10:08:44]req_shift_open_date [10:08:44]req_shift_open_date done [10:08:44]produce_requested_data done [10:08:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139614,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:08:44]process_action_free close_receipt [10:08:44]json_value_free [10:08:44]json_value_free done [10:08:44]process_json_proto returns [10:08:44]Send response to host [10:08:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139614,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:08:44]free response buf [10:08:44]execute_script done [10:08:44]execute_script returns [10:08:44]free content buf [10:08:44]Sock 7.Close socket [10:08:44]Sock 7.Thread stoped [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:11]accept exits with 9 [10:09:11]New connection [10:09:11]New thread 3067071844 created [10:09:11]Thread 3067215204 joined [10:09:11]Waiting for new connection... [10:09:11] Sock 9.Parse request [10:09:11]Sock 9.Check first char [10:09:11]Sock 9.First char is OK [10:09:11]request: POST /json_proto HTTP/1.0 [10:09:11]Method: POST [10:09:11]URL: /json_proto [10:09:11]Method is POST - this is cgi request [10:09:11]url: /json_proto [10:09:11]query_string will be loaded in cgi processing [10:09:11]execute_cgi json_proto POST (null) [10:09:11]execute_cgi path=json_proto method=POST [10:09:11]POST find Content-Length [10:09:11]Host: 172.17.45.67:8080 [10:09:11]Content-Length: 677 [10:09:11]Content-Type: application/json [10:09:11] [10:09:11]POST finish read [10:09:11]Found Content-Length = 677 [10:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:11]execute_script... [10:09: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)593461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:11]POST & json_proto [10:09:11]process_json_proto [10:09:11]json parsed OK: [10:09:11]protocol is kg_v1.0 [10:09:11]action value=close_receipt [10:09:11]process_action close_receipt [10:09:11]cmd_close_receipt [10:09:11]MH_GetDate [10:09:11]Write to MH i2c: F0 00 00 C1 25 D5 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: F0 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: F0 09 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: F0 09 00 C1 25 00 4A 6B C4 66 5F 7F 2B 66 2C [10:09:11]GetLastDocTimeStamp 1724148524 [10:09:11]current date 1724148554 [10:09:11]FM_GetShiftState [10:09:11]SAM_PROTO_GetShiftState [10:09:11]wFMCommunicate request_size=4 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 13 01 00 [10:09:11]Write to MH i2c: E2 08 00 C2 25 80 13 01 00 00 00 00 00 64 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 0E 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 0E 00 C2 25 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F5 [10:09:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:09:11]wFMCommunicate OK [10:09:11]SAM_PROTO_GetShiftState done [10:09:11]FM_GetShiftState done [10:09:11]opened in 1724113785 [10:09:11]opened+sec_in_day 1724200185 [10:09:11]quantity*price = 30035 [10:09:11]sum+1 = 30036 [10:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 87 20.08.2024 10:09 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139615 ФПД: 94160460426617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100914&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139615&fm=94160460426617&tin=02508201610067®Number=0000000000092569&sum=30000 [10:09:13]StoreToDocumentArchive [10:09:13]shift 453 fd 139615 [10:09:13]save to /storage/0453/doc_00139615 [10:09:13]save last doc name /storage/0453/doc_00139615 to /storage/kkm_last_doc_name [10:09:13]save OK [10:09:13]Clear old archive folders... [10:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:13]tlvbuf is 00D2E170 [10:09:13]SAM_PROTO_ClearQueue [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 09 00 00 [10:09:13]Write to MH i2c: E2 08 00 CF 25 80 09 00 00 00 00 00 00 66 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 CF 25 00 90 00 68 [10:09:13]RAPDU: 90 00 [10:09:13]wFMCommunicate OK [10:09:13]SAM_PROTO_ClearQueue done [10:09:13]KKMCreateOFDPacket [10:09:13]OFDProtocolAddRootSTLVToBuf [10:09:13]FM_MakeSignedData [10:09:13]FM_MakeSignedData [10:09:13]SAM_PROTO_SignData [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 0D 01 02 [10:09:13]Write to MH i2c: E2 08 00 D0 25 80 0D 01 02 00 00 00 00 6E [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 D0 25 00 90 00 69 [10:09:13]RAPDU: 90 00 [10:09:13]wFMCommunicate OK [10:09:13]wFMCommunicate request_size=255 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4A 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 21 02 00 35 04 06 00 55 [10:09:13]Write to MH i2c: E2 02 01 D1 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4A 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 21 02 00 35 04 06 00 55 00 00 E9 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 D1 25 00 90 00 6A [10:09:13]RAPDU: 90 00 [10:09:13]wFMCommunicate OK [10:09:13]wFMCommunicate request_size=10 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 0D 02 02 05 A3 70 CB AD 79 [10:09:13]Write to MH i2c: E2 0D 00 D2 25 80 0D 02 02 05 00 A3 70 CB AD 79 00 00 7F [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 03 00 D2 25 00 90 00 6B [10:09:13]RAPDU: 90 00 [10:09:13]wFMCommunicate OK [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 0D 03 02 [10:09:13]Write to MH i2c: E2 08 00 D3 25 80 0D 03 02 00 00 00 00 73 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 0B 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 0B 00 D3 25 00 9F C2 F2 F0 C1 57 E2 9D 90 00 4E [10:09:13]RAPDU: 9F C2 F2 F0 C1 57 E2 9D 90 00 [10:09:13]wFMCommunicate OK [10:09:13]SAM_PROTO_SignData done [10:09:13]FM_MakeSignedData done [10:09:13]CreateOFDProtocolMessage [10:09:13]wFMCommunicate request_size=4 [10:09:13]MH_SAM_APDU [10:09:13]CAPDU: 80 11 00 00 [10:09:13]Write to MH i2c: E2 08 00 D4 25 80 11 00 00 00 00 00 00 73 [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:13]Read from MH i2c: E2 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 17 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: E2 17 00 D4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CA [10:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:09:13]wFMCommunicate OK [10:09:13]CreateOFDProtocolMessage done [10:09:13]OFDSenderStorePacket 139615 [10:09:13]StoreOFDPacket docnum=139615 [10:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 53 2C 07 01 DB 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4A 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 21 02 00 35 04 06 00 55 A3 70 CB AD 79 9F C2 F2 F0 C1 57 E2 9D [10:09:13]CheckFolder [10:09:13]dirname=/storage/ofd_packets [10:09:13]CheckFolder done [10:09:13]ProducePacketName [10:09:13]name=ofd_packets/00139615 [10:09:13]NVStorageSaveData ofd_packets/00139615 [10:09:13]File name is /storage/ofd_packets/00139615 [10:09:13]Write 301 bytes [10:09:13]NVStorageSaveData done [10:09:13]OFDSenderStorePacket done [10:09:13]KKMCreateOFDPacket done [10:09:13]NVStorageSaveData kkm_last_timestamp [10:09:13]File name is /storage/kkm_last_timestamp [10:09:13]Write 4 bytes [10:09:13]NVStorageSaveData done [10:09:13]ExternCall_PrintAddStr [10:09:13]wPrintStart [10:09:13]Write to MH i2c: 01 00 00 D5 25 FA [10:09:13]Write i2c OK [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: 01 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: 01 07 00 [10:09:13]MH_I2C_Read... [10:09:13]Read from MH i2c: 01 07 00 D5 25 00 00 00 00 00 FF 0F 0F [10:09:13]RasterBufferAndPrint [10:09:13]line Счет N : (1)593461 [10:09:13]line ИНН: 02508201610067 [10:09:13]line Контрольно-Кассовый Чек [10:09:13]line ПРОДАЖА [10:09:13]line ТРК (МРК, ГНК) : 52 [10:09:13]line Товар: 2710124130 [10:09:13]line Аи-92-К-5 [10:09:13]line 4.430 * 67.80 [10:09:13]line = 300.35 [10:09:13]line НДС 12% НСП 1% [10:09:13]line > о реализуемом товаре [10:09:13]line ОКРУГЛЕНИЕ: -0.35 [10:09:13]line ИТОГО: 300.00 [10:09:13]line Внесено: 300.00 [10:09:13]line СДАЧА: 0.00 [10:09:13]line НСП 1% : 2.66 [10:09:13]line НДС 12% : 31.90 [10:09:13]line Наличными: 300.00 [10:09:13]line Безнал.: 0.00 [10:09:13]line Место: АЗС № 136 "Партнер Нефть" [10:09:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:09:13]line СНО: Общий режим [10:09:13]line Чек 87 20.08.2024 10:09 [10:09:13]line Смена: 453 ФФД: 1.0 [10:09:13]line ЗНМ: 0300000067 [10:09:13]line РНМ: 0000000000092569 [10:09:13]line Версия ККМ: 001 [10:09:13]line ФМ: 0000000000871776 [10:09:13]line ФД: 139615 [10:09:13]line ФПД: 94160460426617 [10:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100914&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139615&fm=94160460426617&tin=02508201610067®Number=0000000000092569&sum=30000 [10:09:13]OFD Sender: Processing packet 139615 [packets to send 137, broken 136] [10:09:13]ProducePacketName [10:09:13]name=ofd_packets/00139615 [10:09:13]OFD Sender: To server: pG, [10:09:13]CommunicateWithHost lk.salyk.kg:30040 [10:09:13]ConnectInit lk.salyk.kg [10:09:13]written 0, free lines is 4095 [10:09:14]Connected sock=10 [10:09:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 53 2C 07 01 DB 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4A 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 21 02 00 35 04 06 00 55 A3 70 CB AD 79 9F C2 F2 F0 C1 57 E2 9D [10:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 10 AF 47 00 92 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 21 02 00 F4 03 04 00 DE 11 C4 66 B6 04 01 00 00 B4 D9 E1 AB E3 83 93 B5 [10:09:14]CommunicateWithHost err = 0 [10:09:14]CheckOFDResponse [10:09:14]1017 (14) - 77093643461234 [10:09:14]1041 (16) - 0000000000871776 [10:09:14]1040 (4) - 139615 [10:09:14]1012 (4) - 20.08.2024 03:47 [10:09:14]1206 (1) - 0 [10:09:14]OFD Sender: Remove packet 139615 [10:09:14]ProducePacketName [10:09:14]name=ofd_packets/00139615 [10:09:14]NVStorageDeleteData [10:09:14]Write to MH i2c: 01 00 00 00 26 26 [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: 01 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: 01 07 00 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: 01 07 00 00 26 00 00 00 00 00 D4 0C 0D [10:09:14]RasterBufferAndPrint [10:09:14]line [10:09:14]line [10:09:14]line [10:09:14]line [10:09:14]line [10:09:14]written 0, free lines is 3293 [10:09:14]MH_Cut [10:09:14]Write to MH i2c: D1 01 00 07 26 01 FF [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: D1 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: D1 01 00 [10:09:14]MH_I2C_Read... [10:09:14]Read from MH i2c: D1 01 00 07 26 00 FE [10:09:14]Write to MH i2c: 01 00 00 08 26 2E [10:09:14]Write i2c OK [10:09:14]MH_I2C_Read... [10:09:14]OFD Sender: No OFD packet to send [10:09:15]*** Cut start [10:09:15]*** Partial cut [10:09:15]*** CUTSNS_PIN = 1 [10:09:15]*** CUTSNS_PIN = 0 [10:09:15]*** Brake cut motor [10:09:15]Read from MH i2c: 01 [10:09:15]MH_I2C_Read... [10:09:15]*** Stop cut motor [10:09:15]*** Cut end [10:09:15]Read from MH i2c: 01 07 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: 01 07 00 08 26 00 00 00 00 00 FF 0F 43 [10:09:15]process_action close_receipt done [10:09:15]requested_data is exist [10:09:15]produce_requested_data [10:09:15]requested_item fm.sn is exist - process it [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 11 00 00 [10:09:15]Write to MH i2c: E2 08 00 09 26 80 11 00 00 00 00 00 00 A9 [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 17 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 17 00 09 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 00 [10:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:09:15]wFMCommunicate OK [10:09:15]requested_item fd.num is exist - process it [10:09:15]SAM_PROTO_GetFieldsCounters [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 13 00 00 [10:09:15]Write to MH i2c: E2 08 00 0A 26 80 13 00 00 00 00 00 00 AC [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 62 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 62 00 0A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [10:09:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:15]wFMCommunicate OK [10:09:15]SAM_PROTO_GetFieldsCounters done [10:09:15]requested_item shift.num is exist - process it [10:09:15]requested_item shift.opened is exist - process it [10:09:15]req_shift_opened [10:09:15]FM_GetShiftState [10:09:15]SAM_PROTO_GetShiftState [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 13 01 00 [10:09:15]Write to MH i2c: E2 08 00 0B 26 80 13 01 00 00 00 00 00 AE [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 0E 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 0E 00 0B 26 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3F [10:09:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:09:15]wFMCommunicate OK [10:09:15]SAM_PROTO_GetShiftState done [10:09:15]FM_GetShiftState done [10:09:15]req_shift_opened done [10:09:15]requested_item shift.open_date is exist - process it [10:09:15]req_shift_open_date [10:09:15]req_shift_open_date done [10:09:15]produce_requested_data done [10:09:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139615,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:09:15]process_action_free close_receipt [10:09:15]json_value_free [10:09:15]json_value_free done [10:09:15]process_json_proto returns [10:09:15]Send response to host [10:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139615,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:09:15]free response buf [10:09:15]execute_script done [10:09:15]execute_script returns [10:09:15]free content buf [10:09:15]Sock 9.Close socket [10:09:15]Sock 9.Thread stoped [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:52]accept exits with 7 [10:09:52]New connection [10:09:52]New thread 3067215204 created [10:09:52]Thread 3067071844 joined [10:09:52]Waiting for new connection... [10:09:52] Sock 7.Parse request [10:09:52]Sock 7.Check first char [10:09:52]Sock 7.First char is OK [10:09:52]request: POST /json_proto HTTP/1.0 [10:09:52]Method: POST [10:09:52]URL: /json_proto [10:09:52]Method is POST - this is cgi request [10:09:52]url: /json_proto [10:09:52]query_string will be loaded in cgi processing [10:09:52]execute_cgi json_proto POST (null) [10:09:52]execute_cgi path=json_proto method=POST [10:09:52]POST find Content-Length [10:09:52]Host: 172.17.45.67:8080 [10:09:52]Content-Length: 682 [10:09:52]Content-Type: application/json [10:09:52] [10:09:52]POST finish read [10:09:52]Found Content-Length = 682 [10:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:52]execute_script... [10:09: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)593462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:52]POST & json_proto [10:09:52]process_json_proto [10:09:52]json parsed OK: [10:09:52]protocol is kg_v1.0 [10:09:52]action value=close_receipt [10:09:52]process_action close_receipt [10:09:52]cmd_close_receipt [10:09:52]MH_GetDate [10:09:52]Write to MH i2c: F0 00 00 0C 26 21 [10:09:52]Write i2c OK [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: F0 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: F0 09 00 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: F0 09 00 0C 26 00 73 6B C4 66 5F 7F 2B 66 A1 [10:09:52]GetLastDocTimeStamp 1724148554 [10:09:52]current date 1724148595 [10:09:52]FM_GetShiftState [10:09:52]SAM_PROTO_GetShiftState [10:09:52]wFMCommunicate request_size=4 [10:09:52]MH_SAM_APDU [10:09:52]CAPDU: 80 13 01 00 [10:09:52]Write to MH i2c: E2 08 00 0D 26 80 13 01 00 00 00 00 00 B0 [10:09:52]Write i2c OK [10:09:52]MH_I2C_Read... [10:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:52]Read from MH i2c: E2 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: E2 0E 00 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: E2 0E 00 0D 26 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 41 [10:09:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:09:52]wFMCommunicate OK [10:09:52]SAM_PROTO_GetShiftState done [10:09:52]FM_GetShiftState done [10:09:52]opened in 1724113785 [10:09:52]opened+sec_in_day 1724200185 [10:09:52]quantity*price = 100005 [10:09:52]sum+1 = 100006 [10:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 88 20.08.2024 10:09 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139616 ФПД: 35376622430152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139616&fm=35376622430152&tin=02508201610067®Number=0000000000092569&sum=100000 [10:09:53]StoreToDocumentArchive [10:09:53]shift 453 fd 139616 [10:09:53]save to /storage/0453/doc_00139616 [10:09:53]save last doc name /storage/0453/doc_00139616 to /storage/kkm_last_doc_name [10:09:53]save OK [10:09:53]Clear old archive folders... [10:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:53]tlvbuf is 00D86B20 [10:09:53]SAM_PROTO_ClearQueue [10:09:53]wFMCommunicate request_size=4 [10:09:53]MH_SAM_APDU [10:09:53]CAPDU: 80 09 00 00 [10:09:53]Write to MH i2c: E2 08 00 1A 26 80 09 00 00 00 00 00 00 B2 [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:53]Read from MH i2c: E2 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 1A 26 00 90 00 B4 [10:09:53]RAPDU: 90 00 [10:09:53]wFMCommunicate OK [10:09:53]SAM_PROTO_ClearQueue done [10:09:53]KKMCreateOFDPacket [10:09:53]OFDProtocolAddRootSTLVToBuf [10:09:53]FM_MakeSignedData [10:09:53]FM_MakeSignedData [10:09:53]SAM_PROTO_SignData [10:09:53]wFMCommunicate request_size=4 [10:09:53]MH_SAM_APDU [10:09:53]CAPDU: 80 0D 01 02 [10:09:53]Write to MH i2c: E2 08 00 1B 26 80 0D 01 02 00 00 00 00 BA [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:53]Read from MH i2c: E2 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 1B 26 00 90 00 B5 [10:09:53]RAPDU: 90 00 [10:09:53]wFMCommunicate OK [10:09:53]wFMCommunicate request_size=255 [10:09:53]MH_SAM_APDU [10:09:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 73 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 21 02 00 35 04 06 00 20 [10:09:53]Write to MH i2c: E2 02 01 1C 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 73 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 21 02 00 35 04 06 00 20 00 00 9B [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:53]Read from MH i2c: E2 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 1C 26 00 90 00 B6 [10:09:53]RAPDU: 90 00 [10:09:53]wFMCommunicate OK [10:09:53]wFMCommunicate request_size=10 [10:09:53]MH_SAM_APDU [10:09:53]CAPDU: 80 0D 02 02 05 2C C3 03 67 C8 [10:09:53]Write to MH i2c: E2 0D 00 1D 26 80 0D 02 02 05 00 2C C3 03 67 C8 00 00 E8 [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:54]Read from MH i2c: E2 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 03 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 03 00 1D 26 00 90 00 B7 [10:09:54]RAPDU: 90 00 [10:09:54]wFMCommunicate OK [10:09:54]wFMCommunicate request_size=4 [10:09:54]MH_SAM_APDU [10:09:54]CAPDU: 80 0D 03 02 [10:09:54]Write to MH i2c: E2 08 00 1E 26 80 0D 03 02 00 00 00 00 BF [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:54]Read from MH i2c: E2 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0B 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0B 00 1E 26 00 1A ED 61 3E B3 CF CD 97 90 00 4C [10:09:54]RAPDU: 1A ED 61 3E B3 CF CD 97 90 00 [10:09:54]wFMCommunicate OK [10:09:54]SAM_PROTO_SignData done [10:09:54]FM_MakeSignedData done [10:09:54]CreateOFDProtocolMessage [10:09:54]wFMCommunicate request_size=4 [10:09:54]MH_SAM_APDU [10:09:54]CAPDU: 80 11 00 00 [10:09:54]Write to MH i2c: E2 08 00 1F 26 80 11 00 00 00 00 00 00 BF [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:54]Read from MH i2c: E2 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 17 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 17 00 1F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 16 [10:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:09:54]wFMCommunicate OK [10:09:54]CreateOFDProtocolMessage done [10:09:54]OFDSenderStorePacket 139616 [10:09:54]StoreOFDPacket docnum=139616 [10:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F2 35 07 01 B5 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 73 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 21 02 00 35 04 06 00 20 2C C3 03 67 C8 1A ED 61 3E B3 CF CD 97 [10:09:54]CheckFolder [10:09:54]dirname=/storage/ofd_packets [10:09:54]CheckFolder done [10:09:54]ProducePacketName [10:09:54]name=ofd_packets/00139616 [10:09:54]NVStorageSaveData ofd_packets/00139616 [10:09:54]File name is /storage/ofd_packets/00139616 [10:09:54]Write 301 bytes [10:09:54]NVStorageSaveData done [10:09:54]OFDSenderStorePacket done [10:09:54]KKMCreateOFDPacket done [10:09:54]NVStorageSaveData kkm_last_timestamp [10:09:54]File name is /storage/kkm_last_timestamp [10:09:54]Write 4 bytes [10:09:54]NVStorageSaveData done [10:09:54]ExternCall_PrintAddStr [10:09:54]wPrintStart [10:09:54]Write to MH i2c: 01 00 00 20 26 46 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: 01 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: 01 07 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: 01 07 00 20 26 00 00 00 00 00 FF 0F 5B [10:09:54]RasterBufferAndPrint [10:09:54]line Счет N : (1)593462 [10:09:54]line ИНН: 02508201610067 [10:09:54]line Контрольно-Кассовый Чек [10:09:54]line ПРОДАЖА [10:09:54]line ТРК (МРК, ГНК) : 42 [10:09:54]line Товар: 2710124130 [10:09:54]line Аи-92-К-5 [10:09:54]line 14.750 * 67.80 [10:09:54]line = 1000.05 [10:09:54]line НДС 12% НСП 1% [10:09:54]line > о реализуемом товаре [10:09:54]line ОКРУГЛЕНИЕ: -0.05 [10:09:54]line ИТОГО: 1000.00 [10:09:54]line Внесено: 1000.00 [10:09:54]line СДАЧА: 0.00 [10:09:54]line НСП 1% : 8.85 [10:09:54]line НДС 12% : 106.20 [10:09:54]line Наличными: 1000.00 [10:09:54]line Безнал.: 0.00 [10:09:54]line Место: АЗС № 136 "Партнер Нефть" [10:09:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:09:54]line СНО: Общий режим [10:09:54]line Чек 88 20.08.2024 10:09 [10:09:54]line Смена: 453 ФФД: 1.0 [10:09:54]line ЗНМ: 0300000067 [10:09:54]line РНМ: 0000000000092569 [10:09:54]line Версия ККМ: 001 [10:09:54]line ФМ: 0000000000871776 [10:09:54]line ФД: 139616 [10:09:54]line ФПД: 35376622430152 [10:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T100955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139616&fm=35376622430152&tin=02508201610067®Number=0000000000092569&sum=100000 [10:09:54]written 0, free lines is 4095 [10:09:54]OFD Sender: Processing packet 139616 [packets to send 137, broken 136] [10:09:54]ProducePacketName [10:09:54]name=ofd_packets/00139616 [10:09:54]OFD Sender: To server: pG, [10:09:54]CommunicateWithHost lk.salyk.kg:30040 [10:09:54]ConnectInit lk.salyk.kg [10:09:54]Connected sock=10 [10:09:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F2 35 07 01 B5 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 73 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 21 02 00 35 04 06 00 20 2C C3 03 67 C8 1A ED 61 3E B3 CF CD 97 [10:09:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6E 1D 47 00 23 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 21 02 00 F4 03 04 00 07 12 C4 66 B6 04 01 00 00 2B 71 D3 E1 E1 4B 5D 40 [10:09:54]CommunicateWithHost err = 0 [10:09:54]CheckOFDResponse [10:09:54]1017 (14) - 77093643461234 [10:09:54]1041 (16) - 0000000000871776 [10:09:54]1040 (4) - 139616 [10:09:54]1012 (4) - 20.08.2024 03:48 [10:09:54]1206 (1) - 0 [10:09:54]OFD Sender: Remove packet 139616 [10:09:54]ProducePacketName [10:09:54]name=ofd_packets/00139616 [10:09:54]NVStorageDeleteData [10:09:54]Write to MH i2c: 01 00 00 4B 26 71 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: 01 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: 01 07 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: 01 07 00 4B 26 00 00 00 00 00 CB 0C 4F [10:09:54]RasterBufferAndPrint [10:09:54]line [10:09:54]line [10:09:54]line [10:09:54]line [10:09:54]line [10:09:54]written 0, free lines is 3279 [10:09:54]MH_Cut [10:09:54]Write to MH i2c: D1 01 00 52 26 01 4A [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: D1 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: D1 01 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: D1 01 00 52 26 00 49 [10:09:54]Write to MH i2c: 01 00 00 53 26 79 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:55]OFD Sender: No OFD packet to send [10:09:55]*** Cut start [10:09:55]*** Partial cut [10:09:55]*** CUTSNS_PIN = 1 [10:09:55]*** CUTSNS_PIN = 0 [10:09:55]*** Brake cut motor [10:09:56]Read from MH i2c: 01 [10:09:56]MH_I2C_Read... [10:09:56]*** Stop cut motor [10:09:56]*** Cut end [10:09:56]Read from MH i2c: 01 07 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 53 26 00 00 00 00 00 FF 0F 8E [10:09:56]process_action close_receipt done [10:09:56]requested_data is exist [10:09:56]produce_requested_data [10:09:56]requested_item fm.sn is exist - process it [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 11 00 00 [10:09:56]Write to MH i2c: E2 08 00 54 26 80 11 00 00 00 00 00 00 F4 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:56]Read from MH i2c: E2 17 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 17 00 54 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [10:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:09:56]wFMCommunicate OK [10:09:56]requested_item fd.num is exist - process it [10:09:56]SAM_PROTO_GetFieldsCounters [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 13 00 00 [10:09:56]Write to MH i2c: E2 08 00 55 26 80 13 00 00 00 00 00 00 F7 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 62 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 62 00 55 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:09:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_GetFieldsCounters done [10:09:56]requested_item shift.num is exist - process it [10:09:56]requested_item shift.opened is exist - process it [10:09:56]req_shift_opened [10:09:56]FM_GetShiftState [10:09:56]SAM_PROTO_GetShiftState [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 13 01 00 [10:09:56]Write to MH i2c: E2 08 00 56 26 80 13 01 00 00 00 00 00 F9 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:56]int [10:09:56]*** FLAG_PRN_KEY set [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0E 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0E 00 56 26 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8A [10:09:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_GetShiftState done [10:09:56]FM_GetShiftState done [10:09:56]req_shift_opened done [10:09:56]requested_item shift.open_date is exist - process it [10:09:56]req_shift_open_date [10:09:56]req_shift_open_date done [10:09:56]produce_requested_data done [10:09:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139616,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:09:56]process_action_free close_receipt [10:09:56]json_value_free [10:09:56]json_value_free done [10:09:56]process_json_proto returns [10:09:56]Send response to host [10:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139616,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:09:56]free response buf [10:09:56]execute_script done [10:09:56]execute_script returns [10:09:56]free content buf [10:09:56]Sock 7.Close socket [10:09:56]Sock 7.Thread stoped [10:09:56]Write to MH i2c: 01 00 00 57 26 7D [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 57 26 00 08 00 00 00 FF 0F 9A [10:09:56]state=0 [10:09:56]Key pressed [10:09:56]Feed [10:09:56]Write to MH i2c: D8 00 00 58 26 55 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: D8 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: D8 01 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: D8 01 00 58 26 00 56 [10:09:56]int [10:09:56]Write to MH i2c: 01 00 00 59 26 7F [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 59 26 00 48 00 00 00 3C 00 0A [10:09:56]state=2 [10:09:56]Key pressed [10:09:56]int [10:09:56]Write to MH i2c: 01 00 00 5A 26 80 [10:09:56]*** FLAG_PRN_KEY reset [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 5A 26 00 00 00 00 00 FA 0F 90 [10:09:56]state=2 [10:09:56]Stop feed [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:22]accept exits with 9 [10:10:22]New connection [10:10:22]New thread 3067071844 created [10:10:22]Thread 3067215204 joined [10:10:22]Waiting for new connection... [10:10:22] Sock 9.Parse request [10:10:22]Sock 9.Check first char [10:10:22]Sock 9.First char is OK [10:10:22]request: POST /json_proto HTTP/1.0 [10:10:22]Method: POST [10:10:22]URL: /json_proto [10:10:22]Method is POST - this is cgi request [10:10:22]url: /json_proto [10:10:22]query_string will be loaded in cgi processing [10:10:22]execute_cgi json_proto POST (null) [10:10:22]execute_cgi path=json_proto method=POST [10:10:22]POST find Content-Length [10:10:22]Host: 172.17.45.67:8080 [10:10:22]Content-Length: 677 [10:10:22]Content-Type: application/json [10:10:22] [10:10:22]POST finish read [10:10:22]Found Content-Length = 677 [10:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:22]execute_script... [10:10: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)593463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:22]POST & json_proto [10:10:22]process_json_proto [10:10:22]json parsed OK: [10:10:22]protocol is kg_v1.0 [10:10:22]action value=close_receipt [10:10:22]process_action close_receipt [10:10:22]cmd_close_receipt [10:10:22]MH_GetDate [10:10:22]Write to MH i2c: F0 00 00 5B 26 70 [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: F0 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: F0 09 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: F0 09 00 5B 26 00 91 6B C4 66 5F 7F 2B 66 0E [10:10:22]GetLastDocTimeStamp 1724148595 [10:10:22]current date 1724148625 [10:10:22]FM_GetShiftState [10:10:22]SAM_PROTO_GetShiftState [10:10:22]wFMCommunicate request_size=4 [10:10:22]MH_SAM_APDU [10:10:22]CAPDU: 80 13 01 00 [10:10:22]Write to MH i2c: E2 08 00 5C 26 80 13 01 00 00 00 00 00 FF [10:10:22]Write i2c OK [10:10:22]MH_I2C_Read... [10:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:22]Read from MH i2c: E2 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 0E 00 [10:10:22]MH_I2C_Read... [10:10:22]Read from MH i2c: E2 0E 00 5C 26 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 90 [10:10:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:10:22]wFMCommunicate OK [10:10:22]SAM_PROTO_GetShiftState done [10:10:22]FM_GetShiftState done [10:10:22]opened in 1724113785 [10:10:22]opened+sec_in_day 1724200185 [10:10:22]quantity*price = 40002 [10:10:22]sum+1 = 40003 [10:10:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 89 20.08.2024 10:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139617 ФПД: 40915191500348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101025&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139617&fm=40915191500348&tin=02508201610067®Number=0000000000092569&sum=40000 [10:10:23]StoreToDocumentArchive [10:10:23]shift 453 fd 139617 [10:10:23]save to /storage/0453/doc_00139617 [10:10:23]save last doc name /storage/0453/doc_00139617 to /storage/kkm_last_doc_name [10:10:23]save OK [10:10:23]Clear old archive folders... [10:10:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:23]tlvbuf is 00D891E0 [10:10:23]SAM_PROTO_ClearQueue [10:10:23]wFMCommunicate request_size=4 [10:10:23]MH_SAM_APDU [10:10:23]CAPDU: 80 09 00 00 [10:10:23]Write to MH i2c: E2 08 00 69 26 80 09 00 00 00 00 00 00 01 [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:23]Read from MH i2c: E2 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 03 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 03 00 69 26 00 90 00 03 [10:10:23]RAPDU: 90 00 [10:10:23]wFMCommunicate OK [10:10:23]SAM_PROTO_ClearQueue done [10:10:23]KKMCreateOFDPacket [10:10:23]OFDProtocolAddRootSTLVToBuf [10:10:23]FM_MakeSignedData [10:10:23]FM_MakeSignedData [10:10:23]SAM_PROTO_SignData [10:10:23]wFMCommunicate request_size=4 [10:10:23]MH_SAM_APDU [10:10:23]CAPDU: 80 0D 01 02 [10:10:23]Write to MH i2c: E2 08 00 6A 26 80 0D 01 02 00 00 00 00 09 [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:23]Read from MH i2c: E2 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 03 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 03 00 6A 26 00 90 00 04 [10:10:23]RAPDU: 90 00 [10:10:23]wFMCommunicate OK [10:10:23]wFMCommunicate request_size=255 [10:10:23]MH_SAM_APDU [10:10:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 91 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 21 02 00 35 04 06 00 25 [10:10:23]Write to MH i2c: E2 02 01 6B 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 91 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 21 02 00 35 04 06 00 25 00 00 65 [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:23]Read from MH i2c: E2 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 03 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: E2 03 00 6B 26 00 90 00 05 [10:10:23]RAPDU: 90 00 [10:10:23]wFMCommunicate OK [10:10:23]wFMCommunicate request_size=10 [10:10:23]MH_SAM_APDU [10:10:23]CAPDU: 80 0D 02 02 05 36 4F 74 8E 3C [10:10:23]Write to MH i2c: E2 0D 00 6C 26 80 0D 02 02 05 00 36 4F 74 8E 3C 00 00 D9 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 03 00 6C 26 00 90 00 06 [10:10:24]RAPDU: 90 00 [10:10:24]wFMCommunicate OK [10:10:24]wFMCommunicate request_size=4 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 0D 03 02 [10:10:24]Write to MH i2c: E2 08 00 6D 26 80 0D 03 02 00 00 00 00 0E [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 0B 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 0B 00 6D 26 00 13 B9 8F 27 25 E5 30 B3 90 00 7E [10:10:24]RAPDU: 13 B9 8F 27 25 E5 30 B3 90 00 [10:10:24]wFMCommunicate OK [10:10:24]SAM_PROTO_SignData done [10:10:24]FM_MakeSignedData done [10:10:24]CreateOFDProtocolMessage [10:10:24]wFMCommunicate request_size=4 [10:10:24]MH_SAM_APDU [10:10:24]CAPDU: 80 11 00 00 [10:10:24]Write to MH i2c: E2 08 00 6E 26 80 11 00 00 00 00 00 00 0E [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:24]Read from MH i2c: E2 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 17 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: E2 17 00 6E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 65 [10:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:24]wFMCommunicate OK [10:10:24]CreateOFDProtocolMessage done [10:10:24]OFDSenderStorePacket 139617 [10:10:24]StoreOFDPacket docnum=139617 [10:10:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CF CE 07 01 98 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 91 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 21 02 00 35 04 06 00 25 36 4F 74 8E 3C 13 B9 8F 27 25 E5 30 B3 [10:10:24]CheckFolder [10:10:24]dirname=/storage/ofd_packets [10:10:24]CheckFolder done [10:10:24]ProducePacketName [10:10:24]name=ofd_packets/00139617 [10:10:24]NVStorageSaveData ofd_packets/00139617 [10:10:24]File name is /storage/ofd_packets/00139617 [10:10:24]Write 301 bytes [10:10:24]NVStorageSaveData done [10:10:24]OFDSenderStorePacket done [10:10:24]KKMCreateOFDPacket done [10:10:24]NVStorageSaveData kkm_last_timestamp [10:10:24]File name is /storage/kkm_last_timestamp [10:10:24]Write 4 bytes [10:10:24]NVStorageSaveData done [10:10:24]OFD Sender: Processing packet 139617 [packets to send 137, broken 136] [10:10:24]ProducePacketName [10:10:24]name=ofd_packets/00139617 [10:10:24]OFD Sender: To server: pG, [10:10:24]CommunicateWithHost lk.salyk.kg:30040 [10:10:24]ConnectInit lk.salyk.kg [10:10:24]ExternCall_PrintAddStr [10:10:24]wPrintStart [10:10:24]Write to MH i2c: 01 00 00 6F 26 95 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 07 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 07 00 6F 26 00 00 00 00 00 FF 0F AA [10:10:24]RasterBufferAndPrint [10:10:24]line Счет N : (1)593463 [10:10:24]line ИНН: 02508201610067 [10:10:24]line Контрольно-Кассовый Чек [10:10:24]line ПРОДАЖА [10:10:24]line ТРК (МРК, ГНК) : 62 [10:10:24]line Товар: 2710124130 [10:10:24]line Аи-92-К-5 [10:10:24]line 5.900 * 67.80 [10:10:24]line = 400.02 [10:10:24]line НДС 12% НСП 1% [10:10:24]line > о реализуемом товаре [10:10:24]line ОКРУГЛЕНИЕ: -0.02 [10:10:24]line ИТОГО: 400.00 [10:10:24]line Внесено: 400.00 [10:10:24]line СДАЧА: 0.00 [10:10:24]line НСП 1% : 3.54 [10:10:24]line НДС 12% : 42.48 [10:10:24]line Наличными: 400.00 [10:10:24]line Безнал.: 0.00 [10:10:24]line Место: АЗС № 136 "Партнер Нефть" [10:10:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:10:24]line СНО: Общий режим [10:10:24]line Чек 89 20.08.2024 10:10 [10:10:24]line Смена: 453 ФФД: 1.0 [10:10:24]line ЗНМ: 0300000067 [10:10:24]line РНМ: 0000000000092569 [10:10:24]line Версия ККМ: 001 [10:10:24]line ФМ: 0000000000871776 [10:10:24]line ФД: 139617 [10:10:24]line ФПД: 40915191500348 [10:10:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101025&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139617&fm=40915191500348&tin=02508201610067®Number=0000000000092569&sum=40000 [10:10:24]Connected sock=11 [10:10:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CF CE 07 01 98 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 91 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 21 02 00 35 04 06 00 25 36 4F 74 8E 3C 13 B9 8F 27 25 E5 30 B3 [10:10:24]written 0, free lines is 4095 [10:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F8 A9 47 00 B6 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 21 02 00 F4 03 04 00 24 12 C4 66 B6 04 01 00 00 78 2E 2F 67 91 68 3A B1 [10:10:24]CommunicateWithHost err = 0 [10:10:24]CheckOFDResponse [10:10:24]1017 (14) - 77093643461234 [10:10:24]1041 (16) - 0000000000871776 [10:10:24]1040 (4) - 139617 [10:10:24]1012 (4) - 20.08.2024 03:48 [10:10:24]1206 (1) - 0 [10:10:24]OFD Sender: Remove packet 139617 [10:10:24]ProducePacketName [10:10:24]name=ofd_packets/00139617 [10:10:24]NVStorageDeleteData [10:10:24]Write to MH i2c: 01 00 00 9A 26 C0 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 07 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: 01 07 00 9A 26 00 00 00 00 00 C6 0C 99 [10:10:24]RasterBufferAndPrint [10:10:24]line [10:10:24]line [10:10:24]line [10:10:24]line [10:10:24]line [10:10:24]written 0, free lines is 3276 [10:10:24]MH_Cut [10:10:24]Write to MH i2c: D1 01 00 A1 26 01 99 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: D1 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: D1 01 00 [10:10:24]MH_I2C_Read... [10:10:24]Read from MH i2c: D1 01 00 A1 26 00 98 [10:10:24]Write to MH i2c: 01 00 00 A2 26 C8 [10:10:24]Write i2c OK [10:10:24]MH_I2C_Read... [10:10:25]OFD Sender: No OFD packet to send [10:10:25]*** Cut start [10:10:25]*** Partial cut [10:10:25]*** CUTSNS_PIN = 1 [10:10:25]*** CUTSNS_PIN = 0 [10:10:25]*** Brake cut motor [10:10:26]Read from MH i2c: 01 [10:10:26]MH_I2C_Read... [10:10:26]*** Stop cut motor [10:10:26]*** Cut end [10:10:26]Read from MH i2c: 01 07 00 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: 01 07 00 A2 26 00 00 00 00 00 FF 0F DD [10:10:26]process_action close_receipt done [10:10:26]requested_data is exist [10:10:26]produce_requested_data [10:10:26]requested_item fm.sn is exist - process it [10:10:26]wFMCommunicate request_size=4 [10:10:26]MH_SAM_APDU [10:10:26]CAPDU: 80 11 00 00 [10:10:26]Write to MH i2c: E2 08 00 A3 26 80 11 00 00 00 00 00 00 43 [10:10:26]Write i2c OK [10:10:26]MH_I2C_Read... [10:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:26]Read from MH i2c: E2 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 17 00 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 17 00 A3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [10:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:26]wFMCommunicate OK [10:10:26]requested_item fd.num is exist - process it [10:10:26]SAM_PROTO_GetFieldsCounters [10:10:26]wFMCommunicate request_size=4 [10:10:26]MH_SAM_APDU [10:10:26]CAPDU: 80 13 00 00 [10:10:26]Write to MH i2c: E2 08 00 A4 26 80 13 00 00 00 00 00 00 46 [10:10:26]Write i2c OK [10:10:26]MH_I2C_Read... [10:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:26]Read from MH i2c: E2 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 62 00 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 62 00 A4 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [10:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:26]wFMCommunicate OK [10:10:26]SAM_PROTO_GetFieldsCounters done [10:10:26]requested_item shift.num is exist - process it [10:10:26]requested_item shift.opened is exist - process it [10:10:26]req_shift_opened [10:10:26]FM_GetShiftState [10:10:26]SAM_PROTO_GetShiftState [10:10:26]wFMCommunicate request_size=4 [10:10:26]MH_SAM_APDU [10:10:26]CAPDU: 80 13 01 00 [10:10:26]Write to MH i2c: E2 08 00 A5 26 80 13 01 00 00 00 00 00 48 [10:10:26]Write i2c OK [10:10:26]MH_I2C_Read... [10:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:26]Read from MH i2c: E2 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 0E 00 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 0E 00 A5 26 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D9 [10:10:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:10:26]wFMCommunicate OK [10:10:26]SAM_PROTO_GetShiftState done [10:10:26]FM_GetShiftState done [10:10:26]req_shift_opened done [10:10:26]requested_item shift.open_date is exist - process it [10:10:26]req_shift_open_date [10:10:26]req_shift_open_date done [10:10:26]produce_requested_data done [10:10:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139617,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:10:26]process_action_free close_receipt [10:10:26]json_value_free [10:10:26]json_value_free done [10:10:26]process_json_proto returns [10:10:26]Send response to host [10:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139617,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:10:26]free response buf [10:10:26]execute_script done [10:10:26]execute_script returns [10:10:26]free content buf [10:10:26]Sock 9.Close socket [10:10:26]Sock 9.Thread stoped [10:10:26]accept exits with 7 [10:10:26]New connection [10:10:26]New thread 3067215204 created [10:10:26]Thread 3067071844 joined [10:10:26]Waiting for new connection... [10:10:26] Sock 7.Parse request [10:10:26]Sock 7.Check first char [10:10:26]Sock 7.First char is OK [10:10:26]request: POST /json_proto HTTP/1.0 [10:10:26]Method: POST [10:10:26]URL: /json_proto [10:10:26]Method is POST - this is cgi request [10:10:26]url: /json_proto [10:10:26]query_string will be loaded in cgi processing [10:10:26]execute_cgi json_proto POST (null) [10:10:26]execute_cgi path=json_proto method=POST [10:10:26]POST find Content-Length [10:10:26]Host: 172.17.45.67:8080 [10:10:26]Content-Length: 791 [10:10:26]Content-Type: application/json [10:10:26] [10:10:26]POST finish read [10:10:26]Found Content-Length = 791 [10:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.210, "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\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:26]execute_script... [10:10: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)593464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.210, "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\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:26]POST & json_proto [10:10:26]process_json_proto [10:10:26]json parsed OK: [10:10:26]protocol is kg_v1.0 [10:10:26]action value=close_receipt [10:10:26]process_action close_receipt [10:10:26]cmd_close_receipt [10:10:26]MH_GetDate [10:10:26]Write to MH i2c: F0 00 00 A6 26 BB [10:10:26]Write i2c OK [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: F0 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: F0 09 00 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: F0 09 00 A6 26 00 95 6B C4 66 5F 7F 2B 66 5D [10:10:26]GetLastDocTimeStamp 1724148625 [10:10:26]current date 1724148629 [10:10:26]FM_GetShiftState [10:10:26]SAM_PROTO_GetShiftState [10:10:26]wFMCommunicate request_size=4 [10:10:26]MH_SAM_APDU [10:10:26]CAPDU: 80 13 01 00 [10:10:26]Write to MH i2c: E2 08 00 A7 26 80 13 01 00 00 00 00 00 4A [10:10:26]Write i2c OK [10:10:26]MH_I2C_Read... [10:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:26]Read from MH i2c: E2 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 0E 00 [10:10:26]MH_I2C_Read... [10:10:26]Read from MH i2c: E2 0E 00 A7 26 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DB [10:10:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:10:26]wFMCommunicate OK [10:10:26]SAM_PROTO_GetShiftState done [10:10:26]FM_GetShiftState done [10:10:26]opened in 1724113785 [10:10:26]opened+sec_in_day 1724200185 [10:10:26]quantity*price = 0 [10:10:26]sum+1 = 1 [10:10:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 90 20.08.2024 10:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 139618 ФПД: 187804698444648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101029&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139618&fm=187804698444648&tin=02508201610067®Number=0000000000092569&sum=0 [10:10:28]StoreToDocumentArchive [10:10:28]shift 453 fd 139618 [10:10:28]save to /storage/0453/doc_00139618 [10:10:28]save last doc name /storage/0453/doc_00139618 to /storage/kkm_last_doc_name [10:10:28]save OK [10:10:28]Clear old archive folders... [10:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:28]tlvbuf is 00E12BC0 [10:10:28]SAM_PROTO_ClearQueue [10:10:28]wFMCommunicate request_size=4 [10:10:28]MH_SAM_APDU [10:10:28]CAPDU: 80 09 00 00 [10:10:28]Write to MH i2c: E2 08 00 B4 26 80 09 00 00 00 00 00 00 4C [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:28]Read from MH i2c: E2 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 03 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 03 00 B4 26 00 90 00 4E [10:10:28]RAPDU: 90 00 [10:10:28]wFMCommunicate OK [10:10:28]SAM_PROTO_ClearQueue done [10:10:28]KKMCreateOFDPacket [10:10:28]OFDProtocolAddRootSTLVToBuf [10:10:28]FM_MakeSignedData [10:10:28]FM_MakeSignedData [10:10:28]SAM_PROTO_SignData [10:10:28]wFMCommunicate request_size=4 [10:10:28]MH_SAM_APDU [10:10:28]CAPDU: 80 0D 01 02 [10:10:28]Write to MH i2c: E2 08 00 B5 26 80 0D 01 02 00 00 00 00 54 [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:28]Read from MH i2c: E2 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 03 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 03 00 B5 26 00 90 00 4F [10:10:28]RAPDU: 90 00 [10:10:28]wFMCommunicate OK [10:10:28]wFMCommunicate request_size=255 [10:10:28]MH_SAM_APDU [10:10:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 95 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 21 02 00 35 04 06 00 AA [10:10:28]Write to MH i2c: E2 02 01 B6 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 95 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 21 02 00 35 04 06 00 AA 00 00 4F [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:28]Read from MH i2c: E2 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 03 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 03 00 B6 26 00 90 00 50 [10:10:28]RAPDU: 90 00 [10:10:28]wFMCommunicate OK [10:10:28]wFMCommunicate request_size=10 [10:10:28]MH_SAM_APDU [10:10:28]CAPDU: 80 0D 02 02 05 CE B0 56 83 68 [10:10:28]Write to MH i2c: E2 0D 00 B7 26 80 0D 02 02 05 00 CE B0 56 83 68 00 00 20 [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:28]Read from MH i2c: E2 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 03 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 03 00 B7 26 00 90 00 51 [10:10:28]RAPDU: 90 00 [10:10:28]wFMCommunicate OK [10:10:28]wFMCommunicate request_size=4 [10:10:28]MH_SAM_APDU [10:10:28]CAPDU: 80 0D 03 02 [10:10:28]Write to MH i2c: E2 08 00 B8 26 80 0D 03 02 00 00 00 00 59 [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:28]Read from MH i2c: E2 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 0B 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 0B 00 B8 26 00 36 D7 51 5B 48 DE D3 A2 90 00 AE [10:10:28]RAPDU: 36 D7 51 5B 48 DE D3 A2 90 00 [10:10:28]wFMCommunicate OK [10:10:28]SAM_PROTO_SignData done [10:10:28]FM_MakeSignedData done [10:10:28]CreateOFDProtocolMessage [10:10:28]wFMCommunicate request_size=4 [10:10:28]MH_SAM_APDU [10:10:28]CAPDU: 80 11 00 00 [10:10:28]Write to MH i2c: E2 08 00 B9 26 80 11 00 00 00 00 00 00 59 [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:28]Read from MH i2c: E2 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 17 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: E2 17 00 B9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B0 [10:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:28]wFMCommunicate OK [10:10:28]CreateOFDProtocolMessage done [10:10:28]OFDSenderStorePacket 139618 [10:10:28]StoreOFDPacket docnum=139618 [10:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6A D9 07 01 85 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 95 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 21 02 00 35 04 06 00 AA CE B0 56 83 68 36 D7 51 5B 48 DE D3 A2 [10:10:28]CheckFolder [10:10:28]dirname=/storage/ofd_packets [10:10:28]CheckFolder done [10:10:28]ProducePacketName [10:10:28]name=ofd_packets/00139618 [10:10:28]NVStorageSaveData ofd_packets/00139618 [10:10:28]File name is /storage/ofd_packets/00139618 [10:10:28]Write 301 bytes [10:10:28]NVStorageSaveData done [10:10:28]OFDSenderStorePacket done [10:10:28]KKMCreateOFDPacket done [10:10:28]NVStorageSaveData kkm_last_timestamp [10:10:28]File name is /storage/kkm_last_timestamp [10:10:28]Write 4 bytes [10:10:28]NVStorageSaveData done [10:10:28]ExternCall_PrintAddStr [10:10:28]wPrintStart [10:10:28]Write to MH i2c: 01 00 00 BA 26 E0 [10:10:28]Write i2c OK [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: 01 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: 01 07 00 [10:10:28]MH_I2C_Read... [10:10:28]Read from MH i2c: 01 07 00 BA 26 00 00 00 00 00 FF 0F F5 [10:10:28]RasterBufferAndPrint [10:10:28]line Счет N : (1)593464 [10:10:28]line ИНН: 02508201610067 [10:10:28]line Контрольно-Кассовый Чек [10:10:28]line ПРОДАЖА [10:10:28]line ТРК (МРК, ГНК) : 32 [10:10:28]line Товар: 2710124130 [10:10:28]line Аи-92-К-5 [10:10:28]line 5.210 * 0.00 [10:10:28]line = 0.00 [10:10:28]line НДС 12% НСП 1% [10:10:28]line > о реализуемом товаре [10:10:28]line ИТОГО: 0.00 [10:10:28]line НСП 1% : 0.00 [10:10:28]line НДС 12% : 0.00 [10:10:28]line Наличными: 0.00 [10:10:28]line Безнал.: 0.00 [10:10:28]line Место: АЗС № 136 "Партнер Нефть" [10:10:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:10:28]line СНО: Общий режим [10:10:28]line Чек 90 20.08.2024 10:10 [10:10:28]line Смена: 453 ФФД: 1.0 [10:10:28]line ЗНМ: 0300000067 [10:10:28]line РНМ: 0000000000092569 [10:10:28]line Версия ККМ: 001 [10:10:28]line Талоны: Топливная Карта [10:10:28]line 03824 [10:10:28]line ФМ: 0000000000871776 [10:10:28]line ФД: 139618 [10:10:28]line ФПД: 187804698444648 [10:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101029&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139618&fm=187804698444648&tin=02508201610067®Number=0000000000092569&sum=0 [10:10:29]OFD Sender: Processing packet 139618 [packets to send 137, broken 136] [10:10:29]ProducePacketName [10:10:29]name=ofd_packets/00139618 [10:10:29]written 0, free lines is 4095 [10:10:29]OFD Sender: To server: pG, [10:10:29]CommunicateWithHost lk.salyk.kg:30040 [10:10:29]ConnectInit lk.salyk.kg [10:10:29]Connected sock=10 [10:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6A D9 07 01 85 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 95 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 21 02 00 35 04 06 00 AA CE B0 56 83 68 36 D7 51 5B 48 DE D3 A2 [10:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 10 2D 47 00 53 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 21 02 00 F4 03 04 00 29 12 C4 66 B6 04 01 00 00 AA 96 AE CD 03 62 DD 39 [10:10:29]CommunicateWithHost err = 0 [10:10:29]CheckOFDResponse [10:10:29]1017 (14) - 77093643461234 [10:10:29]1041 (16) - 0000000000871776 [10:10:29]1040 (4) - 139618 [10:10:29]1012 (4) - 20.08.2024 03:48 [10:10:29]1206 (1) - 0 [10:10:29]OFD Sender: Remove packet 139618 [10:10:29]ProducePacketName [10:10:29]name=ofd_packets/00139618 [10:10:29]NVStorageDeleteData [10:10:29]Write to MH i2c: 01 00 00 E4 26 0A [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: 01 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: 01 07 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: 01 07 00 E4 26 00 00 00 00 00 0C 0D 2A [10:10:29]RasterBufferAndPrint [10:10:29]line [10:10:29]line [10:10:29]line [10:10:29]line [10:10:29]line [10:10:29]written 0, free lines is 3355 [10:10:29]MH_Cut [10:10:29]Write to MH i2c: D1 01 00 EB 26 01 E3 [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: D1 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: D1 01 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: D1 01 00 EB 26 00 E2 [10:10:29]Write to MH i2c: 01 00 00 EC 26 12 [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:30]OFD Sender: No OFD packet to send [10:10:30]*** Cut start [10:10:30]*** Partial cut [10:10:30]*** CUTSNS_PIN = 1 [10:10:30]*** CUTSNS_PIN = 0 [10:10:30]*** Brake cut motor [10:10:31]Read from MH i2c: 01 [10:10:31]MH_I2C_Read... [10:10:31]*** Stop cut motor [10:10:31]*** Cut end [10:10:31]Read from MH i2c: 01 07 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 EC 26 00 00 00 00 00 FF 0F 27 [10:10:31]process_action close_receipt done [10:10:31]requested_data is exist [10:10:31]produce_requested_data [10:10:31]requested_item fm.sn is exist - process it [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 11 00 00 [10:10:31]Write to MH i2c: E2 08 00 ED 26 80 11 00 00 00 00 00 00 8D [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 17 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 17 00 ED 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E4 [10:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:31]wFMCommunicate OK [10:10:31]requested_item fd.num is exist - process it [10:10:31]SAM_PROTO_GetFieldsCounters [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 13 00 00 [10:10:31]Write to MH i2c: E2 08 00 EE 26 80 13 00 00 00 00 00 00 90 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 62 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 62 00 EE 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [10:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:31]wFMCommunicate OK [10:10:31]SAM_PROTO_GetFieldsCounters done [10:10:31]requested_item shift.num is exist - process it [10:10:31]requested_item shift.opened is exist - process it [10:10:31]req_shift_opened [10:10:31]FM_GetShiftState [10:10:31]SAM_PROTO_GetShiftState [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 13 01 00 [10:10:31]Write to MH i2c: E2 08 00 EF 26 80 13 01 00 00 00 00 00 92 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0E 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0E 00 EF 26 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 23 [10:10:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:10:31]wFMCommunicate OK [10:10:31]SAM_PROTO_GetShiftState done [10:10:31]FM_GetShiftState done [10:10:31]req_shift_opened done [10:10:31]requested_item shift.open_date is exist - process it [10:10:31]req_shift_open_date [10:10:31]req_shift_open_date done [10:10:31]produce_requested_data done [10:10:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139618,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:10:31]process_action_free close_receipt [10:10:31]json_value_free [10:10:31]json_value_free done [10:10:31]process_json_proto returns [10:10:31]Send response to host [10:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139618,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:10:31]free response buf [10:10:31]execute_script done [10:10:31]execute_script returns [10:10:31]free content buf [10:10:31]Sock 7.Close socket [10:10:31]Sock 7.Thread stoped [10:10:31]int [10:10:31]Write to MH i2c: 01 00 00 F0 26 16 [10:10:31]*** FLAG_PRN_KEY set [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 F0 26 00 08 00 00 00 FF 0F 33 [10:10:31]state=0 [10:10:31]Key pressed [10:10:31]Feed [10:10:31]Write to MH i2c: D8 00 00 F1 26 EE [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: D8 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: D8 01 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: D8 01 00 F1 26 00 EF [10:10:31]int [10:10:31]Write to MH i2c: 01 00 00 F2 26 18 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 F2 26 00 48 00 00 00 3C 00 A3 [10:10:31]state=2 [10:10:31]Key pressed [10:10:31]int [10:10:31]Write to MH i2c: 01 00 00 F3 26 19 [10:10:31]*** FLAG_PRN_KEY reset [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 F3 26 00 00 00 00 00 F8 0F 27 [10:10:31]state=2 [10:10:31]Stop feed [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:14]accept exits with 9 [10:11:14]New connection [10:11:14]New thread 3067071844 created [10:11:14]Thread 3067215204 joined [10:11:14]Waiting for new connection... [10:11:14] Sock 9.Parse request [10:11:14]Sock 9.Check first char [10:11:14]Sock 9.First char is OK [10:11:14]request: POST /json_proto HTTP/1.0 [10:11:14]Method: POST [10:11:14]URL: /json_proto [10:11:14]Method is POST - this is cgi request [10:11:14]url: /json_proto [10:11:14]query_string will be loaded in cgi processing [10:11:14]execute_cgi json_proto POST (null) [10:11:14]execute_cgi path=json_proto method=POST [10:11:14]POST find Content-Length [10:11:14]Host: 172.17.45.67:8080 [10:11:14]Content-Length: 677 [10:11:14]Content-Type: application/json [10:11:14] [10:11:14]POST finish read [10:11:14]Found Content-Length = 677 [10:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:14]execute_script... [10:11: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)593465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:14]POST & json_proto [10:11:14]process_json_proto [10:11:14]json parsed OK: [10:11:14]protocol is kg_v1.0 [10:11:14]action value=close_receipt [10:11:14]process_action close_receipt [10:11:14]cmd_close_receipt [10:11:14]MH_GetDate [10:11:14]Write to MH i2c: F0 00 00 F4 26 09 [10:11:14]Write i2c OK [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: F0 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: F0 09 00 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: F0 09 00 F4 26 00 C5 6B C4 66 5F 7F 2B 66 DB [10:11:14]GetLastDocTimeStamp 1724148629 [10:11:14]current date 1724148677 [10:11:14]FM_GetShiftState [10:11:14]SAM_PROTO_GetShiftState [10:11:14]wFMCommunicate request_size=4 [10:11:14]MH_SAM_APDU [10:11:14]CAPDU: 80 13 01 00 [10:11:14]Write to MH i2c: E2 08 00 F5 26 80 13 01 00 00 00 00 00 98 [10:11:14]Write i2c OK [10:11:14]MH_I2C_Read... [10:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:14]Read from MH i2c: E2 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: E2 0E 00 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: E2 0E 00 F5 26 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 29 [10:11:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:11:14]wFMCommunicate OK [10:11:14]SAM_PROTO_GetShiftState done [10:11:14]FM_GetShiftState done [10:11:14]opened in 1724113785 [10:11:14]opened+sec_in_day 1724200185 [10:11:14]quantity*price = 50036 [10:11:14]sum+1 = 50037 [10:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 91 20.08.2024 10:11 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139619 ФПД: 253963372453887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101117&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139619&fm=253963372453887&tin=02508201610067®Number=0000000000092569&sum=50000 [10:11:15]StoreToDocumentArchive [10:11:15]shift 453 fd 139619 [10:11:15]save to /storage/0453/doc_00139619 [10:11:15]save last doc name /storage/0453/doc_00139619 to /storage/kkm_last_doc_name [10:11:15]save OK [10:11:15]Clear old archive folders... [10:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:15]tlvbuf is 00DC3E00 [10:11:15]SAM_PROTO_ClearQueue [10:11:15]wFMCommunicate request_size=4 [10:11:15]MH_SAM_APDU [10:11:15]CAPDU: 80 09 00 00 [10:11:15]Write to MH i2c: E2 08 00 02 27 80 09 00 00 00 00 00 00 9B [10:11:15]Write i2c OK [10:11:15]MH_I2C_Read... [10:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:15]Read from MH i2c: E2 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 03 00 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 03 00 02 27 00 90 00 9D [10:11:15]RAPDU: 90 00 [10:11:15]wFMCommunicate OK [10:11:15]SAM_PROTO_ClearQueue done [10:11:15]KKMCreateOFDPacket [10:11:15]OFDProtocolAddRootSTLVToBuf [10:11:15]FM_MakeSignedData [10:11:15]FM_MakeSignedData [10:11:15]SAM_PROTO_SignData [10:11:15]wFMCommunicate request_size=4 [10:11:15]MH_SAM_APDU [10:11:15]CAPDU: 80 0D 01 02 [10:11:15]Write to MH i2c: E2 08 00 03 27 80 0D 01 02 00 00 00 00 A3 [10:11:15]Write i2c OK [10:11:15]MH_I2C_Read... [10:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:15]Read from MH i2c: E2 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 03 00 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: E2 03 00 03 27 00 90 00 9E [10:11:15]RAPDU: 90 00 [10:11:15]wFMCommunicate OK [10:11:15]wFMCommunicate request_size=255 [10:11:15]MH_SAM_APDU [10:11:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C5 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 21 02 00 35 04 06 00 E6 [10:11:15]Write to MH i2c: E2 02 01 04 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C5 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 21 02 00 35 04 06 00 E6 00 00 13 [10:11:15]Write i2c OK [10:11:15]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 04 27 00 90 00 9F [10:11:16]RAPDU: 90 00 [10:11:16]wFMCommunicate OK [10:11:16]wFMCommunicate request_size=10 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 0D 02 02 05 FA 74 99 DF FF [10:11:16]Write to MH i2c: E2 0D 00 05 27 80 0D 02 02 05 00 FA 74 99 DF FF 00 00 95 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 03 00 05 27 00 90 00 A0 [10:11:16]RAPDU: 90 00 [10:11:16]wFMCommunicate OK [10:11:16]wFMCommunicate request_size=4 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 0D 03 02 [10:11:16]Write to MH i2c: E2 08 00 06 27 80 0D 03 02 00 00 00 00 A8 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 0B 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 0B 00 06 27 00 4C 06 E8 32 43 D7 99 AD 90 00 75 [10:11:16]RAPDU: 4C 06 E8 32 43 D7 99 AD 90 00 [10:11:16]wFMCommunicate OK [10:11:16]SAM_PROTO_SignData done [10:11:16]FM_MakeSignedData done [10:11:16]CreateOFDProtocolMessage [10:11:16]wFMCommunicate request_size=4 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 11 00 00 [10:11:16]Write to MH i2c: E2 08 00 07 27 80 11 00 00 00 00 00 00 A8 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 17 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 17 00 07 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FF [10:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:11:16]wFMCommunicate OK [10:11:16]CreateOFDProtocolMessage done [10:11:16]OFDSenderStorePacket 139619 [10:11:16]StoreOFDPacket docnum=139619 [10:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 1B 07 01 81 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C5 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 21 02 00 35 04 06 00 E6 FA 74 99 DF FF 4C 06 E8 32 43 D7 99 AD [10:11:16]CheckFolder [10:11:16]dirname=/storage/ofd_packets [10:11:16]CheckFolder done [10:11:16]ProducePacketName [10:11:16]name=ofd_packets/00139619 [10:11:16]NVStorageSaveData ofd_packets/00139619 [10:11:16]File name is /storage/ofd_packets/00139619 [10:11:16]Write 301 bytes [10:11:16]NVStorageSaveData done [10:11:16]OFDSenderStorePacket done [10:11:16]KKMCreateOFDPacket done [10:11:16]NVStorageSaveData kkm_last_timestamp [10:11:16]File name is /storage/kkm_last_timestamp [10:11:16]Write 4 bytes [10:11:16]NVStorageSaveData done [10:11:16]OFD Sender: Processing packet 139619 [packets to send 137, broken 136] [10:11:16]ProducePacketName [10:11:16]name=ofd_packets/00139619 [10:11:16]OFD Sender: To server: pG, [10:11:16]CommunicateWithHost lk.salyk.kg:30040 [10:11:16]ConnectInit lk.salyk.kg [10:11:16]ExternCall_PrintAddStr [10:11:16]wPrintStart [10:11:16]Write to MH i2c: 01 00 00 08 27 2F [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: 01 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: 01 07 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: 01 07 00 08 27 00 00 00 00 00 FF 0F 44 [10:11:16]RasterBufferAndPrint [10:11:16]line Счет N : (1)593465 [10:11:16]line ИНН: 02508201610067 [10:11:16]line Контрольно-Кассовый Чек [10:11:16]line ПРОДАЖА [10:11:16]line ТРК (МРК, ГНК) : 52 [10:11:16]line Товар: 2710124130 [10:11:16]line Аи-92-К-5 [10:11:16]line 7.380 * 67.80 [10:11:16]line = 500.36 [10:11:16]line НДС 12% НСП 1% [10:11:16]line > о реализуемом товаре [10:11:16]line ОКРУГЛЕНИЕ: -0.36 [10:11:16]line ИТОГО: 500.00 [10:11:16]line Внесено: 500.00 [10:11:16]line СДАЧА: 0.00 [10:11:16]line НСП 1% : 4.43 [10:11:16]line НДС 12% : 53.14 [10:11:16]line Наличными: 500.00 [10:11:16]line Безнал.: 0.00 [10:11:16]line Место: АЗС № 136 "Партнер Нефть" [10:11:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:11:16]line СНО: Общий режим [10:11:16]line Чек 91 20.08.2024 10:11 [10:11:16]line Смена: 453 ФФД: 1.0 [10:11:16]line ЗНМ: 0300000067 [10:11:16]line РНМ: 0000000000092569 [10:11:16]line Версия ККМ: 001 [10:11:16]line ФМ: 0000000000871776 [10:11:16]line ФД: 139619 [10:11:16]line ФПД: 253963372453887 [10:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101117&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139619&fm=253963372453887&tin=02508201610067®Number=0000000000092569&sum=50000 [10:11:16]Connected sock=11 [10:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 1B 07 01 81 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C5 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 21 02 00 35 04 06 00 E6 FA 74 99 DF FF 4C 06 E8 32 43 D7 99 AD [10:11:16]written 0, free lines is 4095 [10:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6E B8 47 00 57 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 21 02 00 F4 03 04 00 59 12 C4 66 B6 04 01 00 00 CC A4 02 BB 28 F5 6C 59 [10:11:16]CommunicateWithHost err = 0 [10:11:16]CheckOFDResponse [10:11:16]1017 (14) - 77093643461234 [10:11:16]1041 (16) - 0000000000871776 [10:11:16]1040 (4) - 139619 [10:11:16]1012 (4) - 20.08.2024 03:49 [10:11:16]1206 (1) - 0 [10:11:16]OFD Sender: Remove packet 139619 [10:11:16]ProducePacketName [10:11:16]name=ofd_packets/00139619 [10:11:16]NVStorageDeleteData [10:11:17]Write to MH i2c: 01 00 00 33 27 5A [10:11:17]Write i2c OK [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: 01 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: 01 07 00 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: 01 07 00 33 27 00 00 00 00 00 DA 0C 47 [10:11:17]RasterBufferAndPrint [10:11:17]line [10:11:17]line [10:11:17]line [10:11:17]line [10:11:17]line [10:11:17]written 0, free lines is 3297 [10:11:17]MH_Cut [10:11:17]Write to MH i2c: D1 01 00 3A 27 01 33 [10:11:17]Write i2c OK [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: D1 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: D1 01 00 [10:11:17]MH_I2C_Read... [10:11:17]Read from MH i2c: D1 01 00 3A 27 00 32 [10:11:17]Write to MH i2c: 01 00 00 3B 27 62 [10:11:17]Write i2c OK [10:11:17]MH_I2C_Read... [10:11:17]OFD Sender: No OFD packet to send [10:11:17]*** Cut start [10:11:17]*** Partial cut [10:11:17]*** CUTSNS_PIN = 1 [10:11:17]*** CUTSNS_PIN = 0 [10:11:18]*** Brake cut motor [10:11:18]Read from MH i2c: 01 [10:11:18]MH_I2C_Read... [10:11:18]*** Stop cut motor [10:11:18]*** Cut end [10:11:18]Read from MH i2c: 01 07 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: 01 07 00 3B 27 00 00 00 00 00 FF 0F 77 [10:11:18]process_action close_receipt done [10:11:18]requested_data is exist [10:11:18]produce_requested_data [10:11:18]requested_item fm.sn is exist - process it [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 11 00 00 [10:11:18]Write to MH i2c: E2 08 00 3C 27 80 11 00 00 00 00 00 00 DD [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 17 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 17 00 3C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 34 [10:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:11:18]wFMCommunicate OK [10:11:18]requested_item fd.num is exist - process it [10:11:18]SAM_PROTO_GetFieldsCounters [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 13 00 00 [10:11:18]Write to MH i2c: E2 08 00 3D 27 80 13 00 00 00 00 00 00 E0 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 62 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 62 00 3D 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [10:11:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:18]wFMCommunicate OK [10:11:18]SAM_PROTO_GetFieldsCounters done [10:11:18]requested_item shift.num is exist - process it [10:11:18]requested_item shift.opened is exist - process it [10:11:18]req_shift_opened [10:11:18]FM_GetShiftState [10:11:18]SAM_PROTO_GetShiftState [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 13 01 00 [10:11:18]Write to MH i2c: E2 08 00 3E 27 80 13 01 00 00 00 00 00 E2 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 3E 27 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 73 [10:11:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:11:18]wFMCommunicate OK [10:11:18]SAM_PROTO_GetShiftState done [10:11:18]FM_GetShiftState done [10:11:18]req_shift_opened done [10:11:18]requested_item shift.open_date is exist - process it [10:11:18]req_shift_open_date [10:11:18]req_shift_open_date done [10:11:18]produce_requested_data done [10:11:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139619,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:11:18]process_action_free close_receipt [10:11:18]json_value_free [10:11:18]json_value_free done [10:11:18]process_json_proto returns [10:11:18]Send response to host [10:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139619,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:11:18]free response buf [10:11:18]execute_script done [10:11:18]execute_script returns [10:11:18]free content buf [10:11:18]Sock 9.Close socket [10:11:18]Sock 9.Thread stoped [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:42]accept exits with 10 [10:11:42]New connection [10:11:42]New thread 3067215204 created [10:11:42]Thread 3067071844 joined [10:11:42]Waiting for new connection... [10:11:42] Sock 10.Parse request [10:11:42]Sock 10.Check first char [10:11:42]Sock 10.First char is OK [10:11:42]request: POST /json_proto HTTP/1.0 [10:11:42]Method: POST [10:11:42]URL: /json_proto [10:11:42]Method is POST - this is cgi request [10:11:42]url: /json_proto [10:11:42]query_string will be loaded in cgi processing [10:11:42]execute_cgi json_proto POST (null) [10:11:42]execute_cgi path=json_proto method=POST [10:11:42]POST find Content-Length [10:11:42]Host: 172.17.45.67:8080 [10:11:42]Content-Length: 677 [10:11:42]Content-Type: application/json [10:11:42] [10:11:42]POST finish read [10:11:42]Found Content-Length = 677 [10:11:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:42]execute_script... [10:11: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)593466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:42]POST & json_proto [10:11:42]process_json_proto [10:11:42]json parsed OK: [10:11:42]protocol is kg_v1.0 [10:11:42]action value=close_receipt [10:11:42]process_action close_receipt [10:11:42]cmd_close_receipt [10:11:42]MH_GetDate [10:11:42]Write to MH i2c: F0 00 00 3F 27 55 [10:11:42]Write i2c OK [10:11:42]MH_I2C_Read... [10:11:42]Read from MH i2c: F0 [10:11:42]MH_I2C_Read... [10:11:42]Read from MH i2c: F0 09 00 [10:11:42]MH_I2C_Read... [10:11:42]Read from MH i2c: F0 09 00 3F 27 00 E1 6B C4 66 5F 7F 2B 66 43 [10:11:42]GetLastDocTimeStamp 1724148677 [10:11:42]current date 1724148705 [10:11:42]FM_GetShiftState [10:11:42]SAM_PROTO_GetShiftState [10:11:42]wFMCommunicate request_size=4 [10:11:42]MH_SAM_APDU [10:11:42]CAPDU: 80 13 01 00 [10:11:42]Write to MH i2c: E2 08 00 40 27 80 13 01 00 00 00 00 00 E4 [10:11:42]Write i2c OK [10:11:42]MH_I2C_Read... [10:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:42]Read from MH i2c: E2 [10:11:42]MH_I2C_Read... [10:11:42]Read from MH i2c: E2 0E 00 [10:11:42]MH_I2C_Read... [10:11:42]Read from MH i2c: E2 0E 00 40 27 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 75 [10:11:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:11:42]wFMCommunicate OK [10:11:42]SAM_PROTO_GetShiftState done [10:11:42]FM_GetShiftState done [10:11:42]opened in 1724113785 [10:11:42]opened+sec_in_day 1724200185 [10:11:42]quantity*price = 10034 [10:11:42]sum+1 = 10035 [10:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 92 20.08.2024 10:11 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139620 ФПД: 50963755972617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101145&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139620&fm=50963755972617&tin=02508201610067®Number=0000000000092569&sum=10000 [10:11:43]StoreToDocumentArchive [10:11:43]shift 453 fd 139620 [10:11:43]save to /storage/0453/doc_00139620 [10:11:43]save last doc name /storage/0453/doc_00139620 to /storage/kkm_last_doc_name [10:11:43]save OK [10:11:43]Clear old archive folders... [10:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:43]tlvbuf is 00DE2660 [10:11:43]SAM_PROTO_ClearQueue [10:11:43]wFMCommunicate request_size=4 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 09 00 00 [10:11:43]Write to MH i2c: E2 08 00 4D 27 80 09 00 00 00 00 00 00 E6 [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 4D 27 00 90 00 E8 [10:11:43]RAPDU: 90 00 [10:11:43]wFMCommunicate OK [10:11:43]SAM_PROTO_ClearQueue done [10:11:43]KKMCreateOFDPacket [10:11:43]OFDProtocolAddRootSTLVToBuf [10:11:43]FM_MakeSignedData [10:11:43]FM_MakeSignedData [10:11:43]SAM_PROTO_SignData [10:11:43]wFMCommunicate request_size=4 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 0D 01 02 [10:11:43]Write to MH i2c: E2 08 00 4E 27 80 0D 01 02 00 00 00 00 EE [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:43]Read from MH i2c: E2 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 [10:11:43]MH_I2C_Read... [10:11:43]Read from MH i2c: E2 03 00 4E 27 00 90 00 E9 [10:11:43]RAPDU: 90 00 [10:11:43]wFMCommunicate OK [10:11:43]wFMCommunicate request_size=255 [10:11:43]MH_SAM_APDU [10:11:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E1 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 21 02 00 35 04 06 00 2E [10:11:43]Write to MH i2c: E2 02 01 4F 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E1 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 21 02 00 35 04 06 00 2E 00 00 00 [10:11:43]Write i2c OK [10:11:43]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 4F 27 00 90 00 EA [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]wFMCommunicate request_size=10 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 0D 02 02 05 59 EC 92 38 09 [10:11:44]Write to MH i2c: E2 0D 00 50 27 80 0D 02 02 05 00 59 EC 92 38 09 00 00 13 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 03 00 50 27 00 90 00 EB [10:11:44]RAPDU: 90 00 [10:11:44]wFMCommunicate OK [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 0D 03 02 [10:11:44]Write to MH i2c: E2 08 00 51 27 80 0D 03 02 00 00 00 00 F3 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 0B 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 0B 00 51 27 00 75 C7 5A EB 73 73 37 5F 90 00 F1 [10:11:44]RAPDU: 75 C7 5A EB 73 73 37 5F 90 00 [10:11:44]wFMCommunicate OK [10:11:44]SAM_PROTO_SignData done [10:11:44]FM_MakeSignedData done [10:11:44]CreateOFDProtocolMessage [10:11:44]wFMCommunicate request_size=4 [10:11:44]MH_SAM_APDU [10:11:44]CAPDU: 80 11 00 00 [10:11:44]Write to MH i2c: E2 08 00 52 27 80 11 00 00 00 00 00 00 F3 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:44]Read from MH i2c: E2 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 17 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: E2 17 00 52 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4A [10:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:11:44]wFMCommunicate OK [10:11:44]CreateOFDProtocolMessage done [10:11:44]OFDSenderStorePacket 139620 [10:11:44]StoreOFDPacket docnum=139620 [10:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F1 53 07 01 BA 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 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E1 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 21 02 00 35 04 06 00 2E 59 EC 92 38 09 75 C7 5A EB 73 73 37 5F [10:11:44]CheckFolder [10:11:44]dirname=/storage/ofd_packets [10:11:44]CheckFolder done [10:11:44]ProducePacketName [10:11:44]name=ofd_packets/00139620 [10:11:44]NVStorageSaveData ofd_packets/00139620 [10:11:44]File name is /storage/ofd_packets/00139620 [10:11:44]Write 301 bytes [10:11:44]NVStorageSaveData done [10:11:44]OFDSenderStorePacket done [10:11:44]KKMCreateOFDPacket done [10:11:44]NVStorageSaveData kkm_last_timestamp [10:11:44]File name is /storage/kkm_last_timestamp [10:11:44]Write 4 bytes [10:11:44]NVStorageSaveData done [10:11:44]ExternCall_PrintAddStr [10:11:44]wPrintStart [10:11:44]Write to MH i2c: 01 00 00 53 27 7A [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 53 27 00 00 00 00 00 FF 0F 8F [10:11:44]RasterBufferAndPrint [10:11:44]line Счет N : (1)593466 [10:11:44]line ИНН: 02508201610067 [10:11:44]line Контрольно-Кассовый Чек [10:11:44]line ПРОДАЖА [10:11:44]line ТРК (МРК, ГНК) : 62 [10:11:44]line Товар: 2710124130 [10:11:44]line Аи-92-К-5 [10:11:44]line 1.480 * 67.80 [10:11:44]line = 100.34 [10:11:44]line НДС 12% НСП 1% [10:11:44]line > о реализуемом товаре [10:11:44]line ОКРУГЛЕНИЕ: -0.34 [10:11:44]line ИТОГО: 100.00 [10:11:44]line Внесено: 100.00 [10:11:44]line СДАЧА: 0.00 [10:11:44]line НСП 1% : 0.89 [10:11:44]line НДС 12% : 10.66 [10:11:44]line Наличными: 100.00 [10:11:44]line Безнал.: 0.00 [10:11:44]line Место: АЗС № 136 "Партнер Нефть" [10:11:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:11:44]line СНО: Общий режим [10:11:44]line Чек 92 20.08.2024 10:11 [10:11:44]line Смена: 453 ФФД: 1.0 [10:11:44]line ЗНМ: 0300000067 [10:11:44]line РНМ: 0000000000092569 [10:11:44]line Версия ККМ: 001 [10:11:44]line ФМ: 0000000000871776 [10:11:44]line ФД: 139620 [10:11:44]line ФПД: 50963755972617 [10:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101145&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139620&fm=50963755972617&tin=02508201610067®Number=0000000000092569&sum=10000 [10:11:44]written 0, free lines is 4095 [10:11:44]OFD Sender: Processing packet 139620 [packets to send 137, broken 136] [10:11:44]ProducePacketName [10:11:44]name=ofd_packets/00139620 [10:11:44]OFD Sender: To server: pG, [10:11:44]CommunicateWithHost lk.salyk.kg:30040 [10:11:44]ConnectInit lk.salyk.kg [10:11:44]Connected sock=9 [10:11:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F1 53 07 01 BA 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 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 E1 6B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 21 02 00 35 04 06 00 2E 59 EC 92 38 09 75 C7 5A EB 73 73 37 5F [10:11:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 43 C3 47 00 73 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 21 02 00 F4 03 04 00 74 12 C4 66 B6 04 01 00 00 D2 94 13 67 A3 68 0B D7 [10:11:44]CommunicateWithHost err = 0 [10:11:44]CheckOFDResponse [10:11:44]1017 (14) - 77093643461234 [10:11:44]1041 (16) - 0000000000871776 [10:11:44]1040 (4) - 139620 [10:11:44]1012 (4) - 20.08.2024 03:50 [10:11:44]1206 (1) - 0 [10:11:44]OFD Sender: Remove packet 139620 [10:11:44]ProducePacketName [10:11:44]name=ofd_packets/00139620 [10:11:44]NVStorageDeleteData [10:11:44]Write to MH i2c: 01 00 00 7E 27 A5 [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: 01 07 00 7E 27 00 00 00 00 00 CD 0C 85 [10:11:44]RasterBufferAndPrint [10:11:44]line [10:11:44]line [10:11:44]line [10:11:44]line [10:11:44]line [10:11:44]written 0, free lines is 3284 [10:11:44]MH_Cut [10:11:44]Write to MH i2c: D1 01 00 85 27 01 7E [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: D1 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: D1 01 00 [10:11:44]MH_I2C_Read... [10:11:44]Read from MH i2c: D1 01 00 85 27 00 7D [10:11:44]Write to MH i2c: 01 00 00 86 27 AD [10:11:44]Write i2c OK [10:11:44]MH_I2C_Read... [10:11:45]OFD Sender: No OFD packet to send [10:11:45]*** Cut start [10:11:45]*** Partial cut [10:11:45]*** CUTSNS_PIN = 1 [10:11:45]*** CUTSNS_PIN = 0 [10:11:45]*** Brake cut motor [10:11:45]Read from MH i2c: 01 [10:11:45]MH_I2C_Read... [10:11:45]*** Stop cut motor [10:11:45]*** Cut end [10:11:45]Read from MH i2c: 01 07 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: 01 07 00 86 27 00 00 00 00 00 FF 0F C2 [10:11:45]process_action close_receipt done [10:11:45]requested_data is exist [10:11:45]produce_requested_data [10:11:45]requested_item fm.sn is exist - process it [10:11:45]wFMCommunicate request_size=4 [10:11:45]MH_SAM_APDU [10:11:45]CAPDU: 80 11 00 00 [10:11:45]Write to MH i2c: E2 08 00 87 27 80 11 00 00 00 00 00 00 28 [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 17 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 17 00 87 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [10:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:11:46]wFMCommunicate OK [10:11:46]requested_item fd.num is exist - process it [10:11:46]SAM_PROTO_GetFieldsCounters [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 13 00 00 [10:11:46]Write to MH i2c: E2 08 00 88 27 80 13 00 00 00 00 00 00 2B [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 62 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 62 00 88 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [10:11:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:46]wFMCommunicate OK [10:11:46]SAM_PROTO_GetFieldsCounters done [10:11:46]requested_item shift.num is exist - process it [10:11:46]requested_item shift.opened is exist - process it [10:11:46]req_shift_opened [10:11:46]FM_GetShiftState [10:11:46]SAM_PROTO_GetShiftState [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 13 01 00 [10:11:46]Write to MH i2c: E2 08 00 89 27 80 13 01 00 00 00 00 00 2D [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 0E 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 0E 00 89 27 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BE [10:11:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:11:46]wFMCommunicate OK [10:11:46]SAM_PROTO_GetShiftState done [10:11:46]FM_GetShiftState done [10:11:46]req_shift_opened done [10:11:46]requested_item shift.open_date is exist - process it [10:11:46]req_shift_open_date [10:11:46]req_shift_open_date done [10:11:46]produce_requested_data done [10:11:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139620,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:11:46]process_action_free close_receipt [10:11:46]json_value_free [10:11:46]json_value_free done [10:11:46]process_json_proto returns [10:11:46]Send response to host [10:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139620,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:11:46]free response buf [10:11:46]execute_script done [10:11:46]execute_script returns [10:11:46]free content buf [10:11:46]Sock 10.Close socket [10:11:46]Sock 10.Thread stoped [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:23]accept exits with 7 [10:12:23]New connection [10:12:23]New thread 3067071844 created [10:12:23]Thread 3067215204 joined [10:12:23]Waiting for new connection... [10:12:23] Sock 7.Parse request [10:12:23]Sock 7.Check first char [10:12:23]Sock 7.First char is OK [10:12:23]request: POST /json_proto HTTP/1.0 [10:12:23]Method: POST [10:12:23]URL: /json_proto [10:12:23]Method is POST - this is cgi request [10:12:23]url: /json_proto [10:12:23]query_string will be loaded in cgi processing [10:12:23]execute_cgi json_proto POST (null) [10:12:23]execute_cgi path=json_proto method=POST [10:12:23]POST find Content-Length [10:12:23]Host: 172.17.45.67:8080 [10:12:23]Content-Length: 682 [10:12:23]Content-Type: application/json [10:12:23] [10:12:23]POST finish read [10:12:23]Found Content-Length = 682 [10:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:23]execute_script... [10:12: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)593467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:23]POST & json_proto [10:12:23]process_json_proto [10:12:23]json parsed OK: [10:12:23]protocol is kg_v1.0 [10:12:23]action value=close_receipt [10:12:23]process_action close_receipt [10:12:23]cmd_close_receipt [10:12:23]MH_GetDate [10:12:23]Write to MH i2c: F0 00 00 8A 27 A0 [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: F0 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: F0 09 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: F0 09 00 8A 27 00 0A 6C C4 66 5F 7F 2B 66 B8 [10:12:23]GetLastDocTimeStamp 1724148705 [10:12:23]current date 1724148746 [10:12:23]FM_GetShiftState [10:12:23]SAM_PROTO_GetShiftState [10:12:23]wFMCommunicate request_size=4 [10:12:23]MH_SAM_APDU [10:12:23]CAPDU: 80 13 01 00 [10:12:23]Write to MH i2c: E2 08 00 8B 27 80 13 01 00 00 00 00 00 2F [10:12:23]Write i2c OK [10:12:23]MH_I2C_Read... [10:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:23]Read from MH i2c: E2 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 0E 00 [10:12:23]MH_I2C_Read... [10:12:23]Read from MH i2c: E2 0E 00 8B 27 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C0 [10:12:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:12:23]wFMCommunicate OK [10:12:23]SAM_PROTO_GetShiftState done [10:12:23]FM_GetShiftState done [10:12:23]opened in 1724113785 [10:12:23]opened+sec_in_day 1724200185 [10:12:23]quantity*price = 100021 [10:12:23]sum+1 = 100023 [10:12:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 93 20.08.2024 10:12 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139621 ФПД: 151409534349518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101226&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139621&fm=151409534349518&tin=02508201610067®Number=0000000000092569&sum=100000 [10:12:24]StoreToDocumentArchive [10:12:24]shift 453 fd 139621 [10:12:24]save to /storage/0453/doc_00139621 [10:12:24]save last doc name /storage/0453/doc_00139621 to /storage/kkm_last_doc_name [10:12:24]save OK [10:12:24]Clear old archive folders... [10:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:24]tlvbuf is 00DE5B70 [10:12:24]SAM_PROTO_ClearQueue [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 09 00 00 [10:12:24]Write to MH i2c: E2 08 00 98 27 80 09 00 00 00 00 00 00 31 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 98 27 00 90 00 33 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]SAM_PROTO_ClearQueue done [10:12:24]KKMCreateOFDPacket [10:12:24]OFDProtocolAddRootSTLVToBuf [10:12:24]FM_MakeSignedData [10:12:24]FM_MakeSignedData [10:12:24]SAM_PROTO_SignData [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 01 02 [10:12:24]Write to MH i2c: E2 08 00 99 27 80 0D 01 02 00 00 00 00 39 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 99 27 00 90 00 34 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]wFMCommunicate request_size=255 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 5D 00 00 00 F4 03 04 00 0A 6C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 21 02 00 35 04 06 00 89 [10:12:24]Write to MH i2c: E2 02 01 9A 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 0A 6C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 21 02 00 35 04 06 00 89 00 00 C3 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 9A 27 00 90 00 35 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]wFMCommunicate request_size=10 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 02 02 05 B4 C7 82 B0 CE [10:12:24]Write to MH i2c: E2 0D 00 9B 27 80 0D 02 02 05 00 B4 C7 82 B0 CE 00 00 C1 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 03 00 9B 27 00 90 00 36 [10:12:24]RAPDU: 90 00 [10:12:24]wFMCommunicate OK [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 0D 03 02 [10:12:24]Write to MH i2c: E2 08 00 9C 27 80 0D 03 02 00 00 00 00 3E [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0B 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 0B 00 9C 27 00 24 FE EC 64 C7 AA 89 10 90 00 BB [10:12:24]RAPDU: 24 FE EC 64 C7 AA 89 10 90 00 [10:12:24]wFMCommunicate OK [10:12:24]SAM_PROTO_SignData done [10:12:24]FM_MakeSignedData done [10:12:24]CreateOFDProtocolMessage [10:12:24]wFMCommunicate request_size=4 [10:12:24]MH_SAM_APDU [10:12:24]CAPDU: 80 11 00 00 [10:12:24]Write to MH i2c: E2 08 00 9D 27 80 11 00 00 00 00 00 00 3E [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:24]Read from MH i2c: E2 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 17 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: E2 17 00 9D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 95 [10:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:12:24]wFMCommunicate OK [10:12:24]CreateOFDProtocolMessage done [10:12:24]OFDSenderStorePacket 139621 [10:12:24]StoreOFDPacket docnum=139621 [10:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 71 FD 07 01 02 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 5D 00 00 00 F4 03 04 00 0A 6C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 21 02 00 35 04 06 00 89 B4 C7 82 B0 CE 24 FE EC 64 C7 AA 89 10 [10:12:24]CheckFolder [10:12:24]dirname=/storage/ofd_packets [10:12:24]CheckFolder done [10:12:24]ProducePacketName [10:12:24]name=ofd_packets/00139621 [10:12:24]NVStorageSaveData ofd_packets/00139621 [10:12:24]File name is /storage/ofd_packets/00139621 [10:12:24]Write 301 bytes [10:12:24]NVStorageSaveData done [10:12:24]OFDSenderStorePacket done [10:12:24]KKMCreateOFDPacket done [10:12:24]NVStorageSaveData kkm_last_timestamp [10:12:24]File name is /storage/kkm_last_timestamp [10:12:24]Write 4 bytes [10:12:24]NVStorageSaveData done [10:12:24]ExternCall_PrintAddStr [10:12:24]wPrintStart [10:12:24]Write to MH i2c: 01 00 00 9E 27 C5 [10:12:24]Write i2c OK [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 07 00 [10:12:24]MH_I2C_Read... [10:12:24]Read from MH i2c: 01 07 00 9E 27 00 00 00 00 00 FF 0F DA [10:12:24]RasterBufferAndPrint [10:12:24]line Счет N : (1)593467 [10:12:24]line ИНН: 02508201610067 [10:12:24]line Контрольно-Кассовый Чек [10:12:24]line ПРОДАЖА [10:12:24]line ТРК (МРК, ГНК) : 41 [10:12:24]line Товар: 2710124500 [10:12:24]line Аи-95-К-5 [10:12:24]line 13.480 * 74.20 [10:12:24]line = 1000.22 [10:12:24]line НДС 12% НСП 1% [10:12:24]line > о реализуемом товаре [10:12:24]line ОКРУГЛЕНИЕ: -0.22 [10:12:24]line ИТОГО: 1000.00 [10:12:24]line Внесено: 1000.00 [10:12:24]line СДАЧА: 0.00 [10:12:24]line НСП 1% : 8.85 [10:12:24]line НДС 12% : 106.22 [10:12:24]line Наличными: 1000.00 [10:12:24]line Безнал.: 0.00 [10:12:24]line Место: АЗС № 136 "Партнер Нефть" [10:12:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:12:24]line СНО: Общий режим [10:12:24]line Чек 93 20.08.2024 10:12 [10:12:24]line Смена: 453 ФФД: 1.0 [10:12:24]line ЗНМ: 0300000067 [10:12:24]line РНМ: 0000000000092569 [10:12:24]line Версия ККМ: 001 [10:12:24]line ФМ: 0000000000871776 [10:12:24]line ФД: 139621 [10:12:24]line ФПД: 151409534349518 [10:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101226&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139621&fm=151409534349518&tin=02508201610067®Number=0000000000092569&sum=100000 [10:12:24]OFD Sender: Processing packet 139621 [packets to send 137, broken 136] [10:12:24]ProducePacketName [10:12:24]name=ofd_packets/00139621 [10:12:24]OFD Sender: To server: pG, [10:12:24]CommunicateWithHost lk.salyk.kg:30040 [10:12:24]ConnectInit lk.salyk.kg [10:12:24]written 0, free lines is 4095 [10:12:25]Connected sock=11 [10:12:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 71 FD 07 01 02 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 5D 00 00 00 F4 03 04 00 0A 6C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 21 02 00 35 04 06 00 89 B4 C7 82 B0 CE 24 FE EC 64 C7 AA 89 10 [10:12:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E6 71 47 00 D7 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 21 02 00 F4 03 04 00 9D 12 C4 66 B6 04 01 00 00 84 72 18 10 FE D9 F4 20 [10:12:25]CommunicateWithHost err = 0 [10:12:25]CheckOFDResponse [10:12:25]1017 (14) - 77093643461234 [10:12:25]1041 (16) - 0000000000871776 [10:12:25]1040 (4) - 139621 [10:12:25]1012 (4) - 20.08.2024 03:50 [10:12:25]1206 (1) - 0 [10:12:25]OFD Sender: Remove packet 139621 [10:12:25]ProducePacketName [10:12:25]name=ofd_packets/00139621 [10:12:25]NVStorageDeleteData [10:12:25]Write to MH i2c: 01 00 00 C9 27 F0 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: 01 07 00 C9 27 00 00 00 00 00 DD 0C E0 [10:12:25]RasterBufferAndPrint [10:12:25]line [10:12:25]line [10:12:25]line [10:12:25]line [10:12:25]line [10:12:25]written 0, free lines is 3298 [10:12:25]MH_Cut [10:12:25]Write to MH i2c: D1 01 00 D0 27 01 C9 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: D1 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: D1 01 00 [10:12:25]MH_I2C_Read... [10:12:25]Read from MH i2c: D1 01 00 D0 27 00 C8 [10:12:25]Write to MH i2c: 01 00 00 D1 27 F8 [10:12:25]Write i2c OK [10:12:25]MH_I2C_Read... [10:12:25]OFD Sender: No OFD packet to send [10:12:26]*** Cut start [10:12:26]*** Partial cut [10:12:26]*** CUTSNS_PIN = 1 [10:12:26]*** CUTSNS_PIN = 0 [10:12:26]*** Brake cut motor [10:12:26]Read from MH i2c: 01 [10:12:26]MH_I2C_Read... [10:12:26]*** Stop cut motor [10:12:26]*** Cut end [10:12:26]Read from MH i2c: 01 07 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: 01 07 00 D1 27 00 00 00 00 00 FF 0F 0D [10:12:26]process_action close_receipt done [10:12:26]requested_data is exist [10:12:26]produce_requested_data [10:12:26]requested_item fm.sn is exist - process it [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 11 00 00 [10:12:26]Write to MH i2c: E2 08 00 D2 27 80 11 00 00 00 00 00 00 73 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 17 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 17 00 D2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CA [10:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:12:26]wFMCommunicate OK [10:12:26]requested_item fd.num is exist - process it [10:12:26]SAM_PROTO_GetFieldsCounters [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 13 00 00 [10:12:26]Write to MH i2c: E2 08 00 D3 27 80 13 00 00 00 00 00 00 76 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 62 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 62 00 D3 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [10:12:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:26]wFMCommunicate OK [10:12:26]SAM_PROTO_GetFieldsCounters done [10:12:26]requested_item shift.num is exist - process it [10:12:26]requested_item shift.opened is exist - process it [10:12:26]req_shift_opened [10:12:26]FM_GetShiftState [10:12:26]SAM_PROTO_GetShiftState [10:12:26]wFMCommunicate request_size=4 [10:12:26]MH_SAM_APDU [10:12:26]CAPDU: 80 13 01 00 [10:12:26]Write to MH i2c: E2 08 00 D4 27 80 13 01 00 00 00 00 00 78 [10:12:26]Write i2c OK [10:12:26]MH_I2C_Read... [10:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:26]Read from MH i2c: E2 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 0E 00 [10:12:26]MH_I2C_Read... [10:12:26]Read from MH i2c: E2 0E 00 D4 27 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 09 [10:12:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:12:26]wFMCommunicate OK [10:12:26]SAM_PROTO_GetShiftState done [10:12:26]FM_GetShiftState done [10:12:26]req_shift_opened done [10:12:26]requested_item shift.open_date is exist - process it [10:12:26]req_shift_open_date [10:12:26]req_shift_open_date done [10:12:26]produce_requested_data done [10:12:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139621,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:12:26]process_action_free close_receipt [10:12:26]json_value_free [10:12:26]json_value_free done [10:12:26]process_json_proto returns [10:12:26]Send response to host [10:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139621,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:12:26]free response buf [10:12:26]execute_script done [10:12:26]execute_script returns [10:12:26]free content buf [10:12:26]Sock 7.Close socket [10:12:26]Sock 7.Thread stoped [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:12:57]accept exits with 9 [10:12:57]New connection [10:12:57]New thread 3067215204 created [10:12:57]Thread 3067071844 joined [10:12:57]Waiting for new connection... [10:12:57] Sock 9.Parse request [10:12:57]Sock 9.Check first char [10:12:57]Sock 9.First char is OK [10:12:57]request: POST /json_proto HTTP/1.0 [10:12:57]Method: POST [10:12:57]URL: /json_proto [10:12:57]Method is POST - this is cgi request [10:12:57]url: /json_proto [10:12:57]query_string will be loaded in cgi processing [10:12:57]execute_cgi json_proto POST (null) [10:12:57]execute_cgi path=json_proto method=POST [10:12:57]POST find Content-Length [10:12:57]Host: 172.17.45.67:8080 [10:12:57]Content-Length: 658 [10:12:57]Content-Type: application/json [10:12:57] [10:12:57]POST finish read [10:12:57]Found Content-Length = 658 [10:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.000, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:57]execute_script... [10:12: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)593468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.000, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:57]POST & json_proto [10:12:57]process_json_proto [10:12:57]json parsed OK: [10:12:57]protocol is kg_v1.0 [10:12:57]action value=close_receipt [10:12:57]process_action close_receipt [10:12:57]cmd_close_receipt [10:12:57]MH_GetDate [10:12:57]Write to MH i2c: F0 00 00 D5 27 EB [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: F0 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: F0 09 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: F0 09 00 D5 27 00 2C 6C C4 66 5F 7F 2B 66 25 [10:12:57]GetLastDocTimeStamp 1724148746 [10:12:57]current date 1724148780 [10:12:57]FM_GetShiftState [10:12:57]SAM_PROTO_GetShiftState [10:12:57]wFMCommunicate request_size=4 [10:12:57]MH_SAM_APDU [10:12:57]CAPDU: 80 13 01 00 [10:12:57]Write to MH i2c: E2 08 00 D6 27 80 13 01 00 00 00 00 00 7A [10:12:57]Write i2c OK [10:12:57]MH_I2C_Read... [10:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:57]Read from MH i2c: E2 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 0E 00 [10:12:57]MH_I2C_Read... [10:12:57]Read from MH i2c: E2 0E 00 D6 27 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0B [10:12:57]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:12:57]wFMCommunicate OK [10:12:57]SAM_PROTO_GetShiftState done [10:12:57]FM_GetShiftState done [10:12:57]opened in 1724113785 [10:12:57]opened+sec_in_day 1724200185 [10:12:57]quantity*price = 55040 [10:12:57]sum+1 = 55041 [10:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 94 20.08.2024 10:13 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139622 ФПД: 169011967404517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139622&fm=169011967404517&tin=02508201610067®Number=0000000000092569&sum=55000 [10:12:58]StoreToDocumentArchive [10:12:58]shift 453 fd 139622 [10:12:58]save to /storage/0453/doc_00139622 [10:12:58]save last doc name /storage/0453/doc_00139622 to /storage/kkm_last_doc_name [10:12:58]save OK [10:12:58]Clear old archive folders... [10:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:12:58]tlvbuf is B6F1A350 [10:12:58]SAM_PROTO_ClearQueue [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 09 00 00 [10:12:58]Write to MH i2c: E2 08 00 E3 27 80 09 00 00 00 00 00 00 7C [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:58]Read from MH i2c: E2 03 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 03 00 E3 27 00 90 00 7E [10:12:58]RAPDU: 90 00 [10:12:58]wFMCommunicate OK [10:12:58]SAM_PROTO_ClearQueue done [10:12:58]KKMCreateOFDPacket [10:12:58]OFDProtocolAddRootSTLVToBuf [10:12:58]FM_MakeSignedData [10:12:58]FM_MakeSignedData [10:12:58]SAM_PROTO_SignData [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 0D 01 02 [10:12:58]Write to MH i2c: E2 08 00 E4 27 80 0D 01 02 00 00 00 00 84 [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 03 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 03 00 E4 27 00 90 00 7F [10:12:58]RAPDU: 90 00 [10:12:58]wFMCommunicate OK [10:12:58]wFMCommunicate request_size=253 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 2C 6C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 21 02 00 35 04 06 00 99 B7 2A 47 A9 E5 [10:12:58]Write to MH i2c: E2 00 01 E5 27 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 2C 6C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 21 02 00 35 04 06 00 99 B7 2A 47 A9 E5 00 00 63 [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 03 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 03 00 E5 27 00 90 00 80 [10:12:58]RAPDU: 90 00 [10:12:58]wFMCommunicate OK [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 0D 03 02 [10:12:58]Write to MH i2c: E2 08 00 E6 27 80 0D 03 02 00 00 00 00 88 [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:58]Read from MH i2c: E2 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 0B 00 [10:12:58]MH_I2C_Read... [10:12:58]Read from MH i2c: E2 0B 00 E6 27 00 D3 9A 53 A9 E5 7B C5 51 90 00 68 [10:12:58]RAPDU: D3 9A 53 A9 E5 7B C5 51 90 00 [10:12:58]wFMCommunicate OK [10:12:58]SAM_PROTO_SignData done [10:12:58]FM_MakeSignedData done [10:12:58]CreateOFDProtocolMessage [10:12:58]wFMCommunicate request_size=4 [10:12:58]MH_SAM_APDU [10:12:58]CAPDU: 80 11 00 00 [10:12:58]Write to MH i2c: E2 08 00 E7 27 80 11 00 00 00 00 00 00 88 [10:12:58]Write i2c OK [10:12:58]MH_I2C_Read... [10:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:59]Read from MH i2c: E2 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 17 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: E2 17 00 E7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [10:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:12:59]wFMCommunicate OK [10:12:59]CreateOFDProtocolMessage done [10:12:59]OFDSenderStorePacket 139622 [10:12:59]StoreOFDPacket docnum=139622 [10:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 65 E8 00 01 41 BE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 2C 6C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 21 02 00 35 04 06 00 99 B7 2A 47 A9 E5 D3 9A 53 A9 E5 7B C5 51 [10:12:59]CheckFolder [10:12:59]dirname=/storage/ofd_packets [10:12:59]CheckFolder done [10:12:59]ProducePacketName [10:12:59]name=ofd_packets/00139622 [10:12:59]NVStorageSaveData ofd_packets/00139622 [10:12:59]File name is /storage/ofd_packets/00139622 [10:12:59]Write 294 bytes [10:12:59]NVStorageSaveData done [10:12:59]OFDSenderStorePacket done [10:12:59]KKMCreateOFDPacket done [10:12:59]NVStorageSaveData kkm_last_timestamp [10:12:59]File name is /storage/kkm_last_timestamp [10:12:59]Write 4 bytes [10:12:59]NVStorageSaveData done [10:12:59]ExternCall_PrintAddStr [10:12:59]wPrintStart [10:12:59]Write to MH i2c: 01 00 00 E8 27 0F [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 E8 27 00 00 00 00 00 FF 0F 24 [10:12:59]RasterBufferAndPrint [10:12:59]line Счет N : (1)593468 [10:12:59]line ИНН: 02508201610067 [10:12:59]line Контрольно-Кассовый Чек [10:12:59]line ПРОДАЖА [10:12:59]line ТРК (МРК, ГНК) : 33 [10:12:59]line Товар: 2710124130 [10:12:59]line SU-92 [10:12:59]line 8.000 * 68.80 [10:12:59]line = 550.40 [10:12:59]line НДС 12% НСП 1% [10:12:59]line > о реализуемом товаре [10:12:59]line ОКРУГЛЕНИЕ: -0.40 [10:12:59]line ИТОГО: 550.00 [10:12:59]line Внесено: 550.00 [10:12:59]line СДАЧА: 0.00 [10:12:59]line НСП 1% : 4.87 [10:12:59]line НДС 12% : 58.45 [10:12:59]line Наличными: 550.00 [10:12:59]line Безнал.: 0.00 [10:12:59]line Место: АЗС № 136 "Партнер Нефть" [10:12:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:12:59]line СНО: Общий режим [10:12:59]line Чек 94 20.08.2024 10:13 [10:12:59]line Смена: 453 ФФД: 1.0 [10:12:59]line ЗНМ: 0300000067 [10:12:59]line РНМ: 0000000000092569 [10:12:59]line Версия ККМ: 001 [10:12:59]line ФМ: 0000000000871776 [10:12:59]line ФД: 139622 [10:12:59]line ФПД: 169011967404517 [10:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139622&fm=169011967404517&tin=02508201610067®Number=0000000000092569&sum=55000 [10:12:59]OFD Sender: Processing packet 139622 [packets to send 137, broken 136] [10:12:59]ProducePacketName [10:12:59]name=ofd_packets/00139622 [10:12:59]OFD Sender: To server: pG, [10:12:59]CommunicateWithHost lk.salyk.kg:30040 [10:12:59]ConnectInit lk.salyk.kg [10:12:59]written 0, free lines is 4095 [10:12:59]Connected sock=10 [10:12:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 65 E8 00 01 41 BE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 2C 6C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 21 02 00 35 04 06 00 99 B7 2A 47 A9 E5 D3 9A 53 A9 E5 7B C5 51 [10:12:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5F A7 47 00 C4 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 21 02 00 F4 03 04 00 C0 12 C4 66 B6 04 01 00 00 F5 A7 8E 1C DE 90 50 20 [10:12:59]CommunicateWithHost err = 0 [10:12:59]CheckOFDResponse [10:12:59]1017 (14) - 77093643461234 [10:12:59]1041 (16) - 0000000000871776 [10:12:59]1040 (4) - 139622 [10:12:59]1012 (4) - 20.08.2024 03:51 [10:12:59]1206 (1) - 0 [10:12:59]OFD Sender: Remove packet 139622 [10:12:59]ProducePacketName [10:12:59]name=ofd_packets/00139622 [10:12:59]NVStorageDeleteData [10:12:59]Write to MH i2c: 01 00 00 13 28 3B [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: 01 07 00 13 28 00 00 00 00 00 C8 0C 16 [10:12:59]RasterBufferAndPrint [10:12:59]line [10:12:59]line [10:12:59]line [10:12:59]line [10:12:59]line [10:12:59]written 0, free lines is 3278 [10:12:59]MH_Cut [10:12:59]Write to MH i2c: D1 01 00 1A 28 01 14 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: D1 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: D1 01 00 [10:12:59]MH_I2C_Read... [10:12:59]Read from MH i2c: D1 01 00 1A 28 00 13 [10:12:59]Write to MH i2c: 01 00 00 1B 28 43 [10:12:59]Write i2c OK [10:12:59]MH_I2C_Read... [10:13:00]OFD Sender: No OFD packet to send [10:13:00]*** Cut start [10:13:00]*** Partial cut [10:13:00]*** CUTSNS_PIN = 1 [10:13:00]*** CUTSNS_PIN = 0 [10:13:00]*** Brake cut motor [10:13:01]Read from MH i2c: 01 [10:13:01]MH_I2C_Read... [10:13:01]*** Stop cut motor [10:13:01]*** Cut end [10:13:01]Read from MH i2c: 01 07 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: 01 07 00 1B 28 00 00 00 00 00 FF 0F 58 [10:13:01]process_action close_receipt done [10:13:01]requested_data is exist [10:13:01]produce_requested_data [10:13:01]requested_item fm.sn is exist - process it [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 11 00 00 [10:13:01]Write to MH i2c: E2 08 00 1C 28 80 11 00 00 00 00 00 00 BE [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 17 00 1C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [10:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:13:01]wFMCommunicate OK [10:13:01]requested_item fd.num is exist - process it [10:13:01]SAM_PROTO_GetFieldsCounters [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 13 00 00 [10:13:01]Write to MH i2c: E2 08 00 1D 28 80 13 00 00 00 00 00 00 C1 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 62 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 62 00 1D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:01]wFMCommunicate OK [10:13:01]SAM_PROTO_GetFieldsCounters done [10:13:01]requested_item shift.num is exist - process it [10:13:01]requested_item shift.opened is exist - process it [10:13:01]req_shift_opened [10:13:01]FM_GetShiftState [10:13:01]SAM_PROTO_GetShiftState [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 13 01 00 [10:13:01]Write to MH i2c: E2 08 00 1E 28 80 13 01 00 00 00 00 00 C3 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0E 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 0E 00 1E 28 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 54 [10:13:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:13:01]wFMCommunicate OK [10:13:01]SAM_PROTO_GetShiftState done [10:13:01]FM_GetShiftState done [10:13:01]req_shift_opened done [10:13:01]requested_item shift.open_date is exist - process it [10:13:01]req_shift_open_date [10:13:01]req_shift_open_date done [10:13:01]produce_requested_data done [10:13:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139622,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:13:01]process_action_free close_receipt [10:13:01]json_value_free [10:13:01]json_value_free done [10:13:01]process_json_proto returns [10:13:01]Send response to host [10:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139622,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:13:01]free response buf [10:13:01]execute_script done [10:13:01]execute_script returns [10:13:01]free content buf [10:13:01]Sock 9.Close socket [10:13:01]Sock 9.Thread stoped [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]accept exits with 7 [10:18:00]New connection [10:18:00]New thread 3067071844 created [10:18:00]Thread 3067215204 joined [10:18:00]Waiting for new connection... [10:18:00] Sock 7.Parse request [10:18:00]Sock 7.Check first char [10:18:00]Sock 7.First char is OK [10:18:00]request: POST /json_proto HTTP/1.0 [10:18:00]Method: POST [10:18:00]URL: /json_proto [10:18:00]Method is POST - this is cgi request [10:18:00]url: /json_proto [10:18:00]query_string will be loaded in cgi processing [10:18:00]execute_cgi json_proto POST (null) [10:18:00]execute_cgi path=json_proto method=POST [10:18:00]POST find Content-Length [10:18:00]Host: 172.17.45.67:8080 [10:18:00]Content-Length: 677 [10:18:00]Content-Type: application/json [10:18:00] [10:18:00]POST finish read [10:18:00]Found Content-Length = 677 [10:18:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:00]execute_script... [10:18: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)593469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:00]POST & json_proto [10:18:00]process_json_proto [10:18:00]json parsed OK: [10:18:00]protocol is kg_v1.0 [10:18:00]action value=close_receipt [10:18:00]process_action close_receipt [10:18:00]cmd_close_receipt [10:18:00]MH_GetDate [10:18:00]Write to MH i2c: F0 00 00 1F 28 36 [10:18:00]Write i2c OK [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: F0 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: F0 09 00 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: F0 09 00 1F 28 00 5B 6D C4 66 5F 7F 2B 66 A0 [10:18:00]GetLastDocTimeStamp 1724148780 [10:18:00]current date 1724149083 [10:18:00]FM_GetShiftState [10:18:00]SAM_PROTO_GetShiftState [10:18:00]wFMCommunicate request_size=4 [10:18:00]MH_SAM_APDU [10:18:00]CAPDU: 80 13 01 00 [10:18:00]Write to MH i2c: E2 08 00 20 28 80 13 01 00 00 00 00 00 C5 [10:18:00]Write i2c OK [10:18:00]MH_I2C_Read... [10:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:00]Read from MH i2c: E2 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 0E 00 [10:18:00]MH_I2C_Read... [10:18:00]Read from MH i2c: E2 0E 00 20 28 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 56 [10:18:00]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:18:00]wFMCommunicate OK [10:18:00]SAM_PROTO_GetShiftState done [10:18:00]FM_GetShiftState done [10:18:00]opened in 1724113785 [10:18:00]opened+sec_in_day 1724200185 [10:18:00]quantity*price = 40002 [10:18:00]sum+1 = 40003 [10:18:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 95 20.08.2024 10:18 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139623 ФПД: 27086975537533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139623&fm=27086975537533&tin=02508201610067®Number=0000000000092569&sum=40000 [10:18:01]StoreToDocumentArchive [10:18:01]shift 453 fd 139623 [10:18:01]save to /storage/0453/doc_00139623 [10:18:01]save last doc name /storage/0453/doc_00139623 to /storage/kkm_last_doc_name [10:18:01]save OK [10:18:01]Clear old archive folders... [10:18:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:01]tlvbuf is 00D89440 [10:18:01]SAM_PROTO_ClearQueue [10:18:01]wFMCommunicate request_size=4 [10:18:01]MH_SAM_APDU [10:18:01]CAPDU: 80 09 00 00 [10:18:01]Write to MH i2c: E2 08 00 2D 28 80 09 00 00 00 00 00 00 C7 [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:01]Read from MH i2c: E2 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 03 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 03 00 2D 28 00 90 00 C9 [10:18:01]RAPDU: 90 00 [10:18:01]wFMCommunicate OK [10:18:01]SAM_PROTO_ClearQueue done [10:18:01]KKMCreateOFDPacket [10:18:01]OFDProtocolAddRootSTLVToBuf [10:18:01]FM_MakeSignedData [10:18:01]FM_MakeSignedData [10:18:01]SAM_PROTO_SignData [10:18:01]wFMCommunicate request_size=4 [10:18:01]MH_SAM_APDU [10:18:01]CAPDU: 80 0D 01 02 [10:18:01]Write to MH i2c: E2 08 00 2E 28 80 0D 01 02 00 00 00 00 CF [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:01]Read from MH i2c: E2 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 03 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 03 00 2E 28 00 90 00 CA [10:18:01]RAPDU: 90 00 [10:18:01]wFMCommunicate OK [10:18:01]wFMCommunicate request_size=255 [10:18:01]MH_SAM_APDU [10:18:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5B 6D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 21 02 00 35 04 06 00 18 [10:18:01]Write to MH i2c: E2 02 01 2F 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5B 6D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 21 02 00 35 04 06 00 18 00 00 F6 [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:01]Read from MH i2c: E2 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 03 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 03 00 2F 28 00 90 00 CB [10:18:01]RAPDU: 90 00 [10:18:01]wFMCommunicate OK [10:18:01]wFMCommunicate request_size=10 [10:18:01]MH_SAM_APDU [10:18:01]CAPDU: 80 0D 02 02 05 A2 AD 8E 11 7D [10:18:01]Write to MH i2c: E2 0D 00 30 28 80 0D 02 02 05 00 A2 AD 8E 11 7D 00 00 47 [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:01]Read from MH i2c: E2 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 03 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 03 00 30 28 00 90 00 CC [10:18:01]RAPDU: 90 00 [10:18:01]wFMCommunicate OK [10:18:01]wFMCommunicate request_size=4 [10:18:01]MH_SAM_APDU [10:18:01]CAPDU: 80 0D 03 02 [10:18:01]Write to MH i2c: E2 08 00 31 28 80 0D 03 02 00 00 00 00 D4 [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:01]Read from MH i2c: E2 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 0B 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 0B 00 31 28 00 93 37 75 C6 73 5A BB E5 90 00 47 [10:18:01]RAPDU: 93 37 75 C6 73 5A BB E5 90 00 [10:18:01]wFMCommunicate OK [10:18:01]SAM_PROTO_SignData done [10:18:01]FM_MakeSignedData done [10:18:01]CreateOFDProtocolMessage [10:18:01]wFMCommunicate request_size=4 [10:18:01]MH_SAM_APDU [10:18:01]CAPDU: 80 11 00 00 [10:18:01]Write to MH i2c: E2 08 00 32 28 80 11 00 00 00 00 00 00 D4 [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:01]Read from MH i2c: E2 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 17 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: E2 17 00 32 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2B [10:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:18:01]wFMCommunicate OK [10:18:01]CreateOFDProtocolMessage done [10:18:01]OFDSenderStorePacket 139623 [10:18:01]StoreOFDPacket docnum=139623 [10:18:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9A A1 07 01 71 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5B 6D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 21 02 00 35 04 06 00 18 A2 AD 8E 11 7D 93 37 75 C6 73 5A BB E5 [10:18:01]CheckFolder [10:18:01]dirname=/storage/ofd_packets [10:18:01]CheckFolder done [10:18:01]ProducePacketName [10:18:01]name=ofd_packets/00139623 [10:18:01]NVStorageSaveData ofd_packets/00139623 [10:18:01]File name is /storage/ofd_packets/00139623 [10:18:01]Write 301 bytes [10:18:01]NVStorageSaveData done [10:18:01]OFDSenderStorePacket done [10:18:01]KKMCreateOFDPacket done [10:18:01]NVStorageSaveData kkm_last_timestamp [10:18:01]File name is /storage/kkm_last_timestamp [10:18:01]Write 4 bytes [10:18:01]NVStorageSaveData done [10:18:01]ExternCall_PrintAddStr [10:18:01]wPrintStart [10:18:01]Write to MH i2c: 01 00 00 33 28 5B [10:18:01]Write i2c OK [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: 01 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: 01 07 00 [10:18:01]MH_I2C_Read... [10:18:01]Read from MH i2c: 01 07 00 33 28 00 00 00 00 00 FF 0F 70 [10:18:01]RasterBufferAndPrint [10:18:01]line Счет N : (1)593469 [10:18:01]line ИНН: 02508201610067 [10:18:01]line Контрольно-Кассовый Чек [10:18:01]line ПРОДАЖА [10:18:01]line ТРК (МРК, ГНК) : 32 [10:18:01]line Товар: 2710124130 [10:18:01]line Аи-92-К-5 [10:18:01]line 5.900 * 67.80 [10:18:01]line = 400.02 [10:18:01]line НДС 12% НСП 1% [10:18:01]line > о реализуемом товаре [10:18:01]line ОКРУГЛЕНИЕ: -0.02 [10:18:01]line ИТОГО: 400.00 [10:18:01]line Внесено: 400.00 [10:18:01]line СДАЧА: 0.00 [10:18:01]line НСП 1% : 3.54 [10:18:01]line НДС 12% : 42.48 [10:18:01]line Наличными: 400.00 [10:18:01]line Безнал.: 0.00 [10:18:01]line Место: АЗС № 136 "Партнер Нефть" [10:18:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:18:01]line СНО: Общий режим [10:18:01]line Чек 95 20.08.2024 10:18 [10:18:01]line Смена: 453 ФФД: 1.0 [10:18:01]line ЗНМ: 0300000067 [10:18:01]line РНМ: 0000000000092569 [10:18:01]line Версия ККМ: 001 [10:18:01]line ФМ: 0000000000871776 [10:18:01]line ФД: 139623 [10:18:01]line ФПД: 27086975537533 [10:18:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139623&fm=27086975537533&tin=02508201610067®Number=0000000000092569&sum=40000 [10:18:01]written 0, free lines is 4095 [10:18:02]OFD Sender: Processing packet 139623 [packets to send 137, broken 136] [10:18:02]ProducePacketName [10:18:02]name=ofd_packets/00139623 [10:18:02]OFD Sender: To server: pG, [10:18:02]CommunicateWithHost lk.salyk.kg:30040 [10:18:02]ConnectInit lk.salyk.kg [10:18:02]Connected sock=10 [10:18:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9A A1 07 01 71 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 5B 6D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 21 02 00 35 04 06 00 18 A2 AD 8E 11 7D 93 37 75 C6 73 5A BB E5 [10:18:02]Write to MH i2c: 01 00 00 5E 28 86 [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: 01 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: 01 07 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: 01 07 00 5E 28 00 00 00 00 00 C8 0C 61 [10:18:02]RasterBufferAndPrint [10:18:02]line [10:18:02]line [10:18:02]line [10:18:02]line [10:18:02]line [10:18:02]written 0, free lines is 3278 [10:18:02]MH_Cut [10:18:02]Write to MH i2c: D1 01 00 65 28 01 5F [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: D1 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: D1 01 00 [10:18:02]MH_I2C_Read... [10:18:02]Read from MH i2c: D1 01 00 65 28 00 5E [10:18:02]Write to MH i2c: 01 00 00 66 28 8E [10:18:02]Write i2c OK [10:18:02]MH_I2C_Read... [10:18:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5B 12 47 00 5D 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 21 02 00 F4 03 04 00 EE 13 C4 66 B6 04 01 00 00 D9 36 D7 B0 E1 C9 9A 16 [10:18:02]CommunicateWithHost err = 0 [10:18:02]CheckOFDResponse [10:18:02]1017 (14) - 77093643461234 [10:18:02]1041 (16) - 0000000000871776 [10:18:02]1040 (4) - 139623 [10:18:02]1012 (4) - 20.08.2024 03:56 [10:18:02]1206 (1) - 0 [10:18:02]OFD Sender: Remove packet 139623 [10:18:02]ProducePacketName [10:18:02]name=ofd_packets/00139623 [10:18:02]NVStorageDeleteData [10:18:02]OFD Sender: No OFD packet to send [10:18:03]*** Cut start [10:18:03]*** Partial cut [10:18:03]*** CUTSNS_PIN = 1 [10:18:03]*** CUTSNS_PIN = 0 [10:18:03]*** Brake cut motor [10:18:03]Read from MH i2c: 01 [10:18:03]MH_I2C_Read... [10:18:03]*** Stop cut motor [10:18:03]*** Cut end [10:18:03]Read from MH i2c: 01 07 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: 01 07 00 66 28 00 00 00 00 00 FF 0F A3 [10:18:03]process_action close_receipt done [10:18:03]requested_data is exist [10:18:03]produce_requested_data [10:18:03]requested_item fm.sn is exist - process it [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 11 00 00 [10:18:03]Write to MH i2c: E2 08 00 67 28 80 11 00 00 00 00 00 00 09 [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 17 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 17 00 67 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 60 [10:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:18:03]wFMCommunicate OK [10:18:03]requested_item fd.num is exist - process it [10:18:03]SAM_PROTO_GetFieldsCounters [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 13 00 00 [10:18:03]Write to MH i2c: E2 08 00 68 28 80 13 00 00 00 00 00 00 0C [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 62 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 62 00 68 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [10:18:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:03]wFMCommunicate OK [10:18:03]SAM_PROTO_GetFieldsCounters done [10:18:03]requested_item shift.num is exist - process it [10:18:03]requested_item shift.opened is exist - process it [10:18:03]req_shift_opened [10:18:03]FM_GetShiftState [10:18:03]SAM_PROTO_GetShiftState [10:18:03]wFMCommunicate request_size=4 [10:18:03]MH_SAM_APDU [10:18:03]CAPDU: 80 13 01 00 [10:18:03]Write to MH i2c: E2 08 00 69 28 80 13 01 00 00 00 00 00 0E [10:18:03]Write i2c OK [10:18:03]MH_I2C_Read... [10:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:03]Read from MH i2c: E2 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 0E 00 [10:18:03]MH_I2C_Read... [10:18:03]Read from MH i2c: E2 0E 00 69 28 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9F [10:18:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:18:03]wFMCommunicate OK [10:18:03]SAM_PROTO_GetShiftState done [10:18:03]FM_GetShiftState done [10:18:03]req_shift_opened done [10:18:03]requested_item shift.open_date is exist - process it [10:18:03]req_shift_open_date [10:18:03]req_shift_open_date done [10:18:03]produce_requested_data done [10:18:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139623,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:18:03]process_action_free close_receipt [10:18:03]json_value_free [10:18:03]json_value_free done [10:18:03]process_json_proto returns [10:18:03]Send response to host [10:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139623,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:18:03]free response buf [10:18:03]execute_script done [10:18:03]execute_script returns [10:18:03]free content buf [10:18:03]Sock 7.Close socket [10:18:03]Sock 7.Thread stoped [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:19]accept exits with 9 [10:19:19]New connection [10:19:19]New thread 3067215204 created [10:19:19]Thread 3067071844 joined [10:19:19]Waiting for new connection... [10:19:19] Sock 9.Parse request [10:19:19]Sock 9.Check first char [10:19:19]Sock 9.First char is OK [10:19:19]request: POST /json_proto HTTP/1.0 [10:19:19]Method: POST [10:19:19]URL: /json_proto [10:19:19]Method is POST - this is cgi request [10:19:19]url: /json_proto [10:19:19]query_string will be loaded in cgi processing [10:19:19]execute_cgi json_proto POST (null) [10:19:19]execute_cgi path=json_proto method=POST [10:19:19]POST find Content-Length [10:19:19]Host: 172.17.45.67:8080 [10:19:19]Content-Length: 683 [10:19:19]Content-Type: application/json [10:19:19] [10:19:19]POST finish read [10:19:19]Found Content-Length = 683 [10:19:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "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" ] } } [10:19:19]execute_script... [10:19:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "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" ] } } [10:19:19]POST & json_proto [10:19:19]process_json_proto [10:19:19]json parsed OK: [10:19:19]protocol is kg_v1.0 [10:19:19]action value=close_receipt [10:19:19]process_action close_receipt [10:19:19]cmd_close_receipt [10:19:19]MH_GetDate [10:19:19]Write to MH i2c: F0 00 00 6A 28 81 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: F0 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: F0 09 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: F0 09 00 6A 28 00 AA 6D C4 66 5F 7F 2B 66 3A [10:19:19]GetLastDocTimeStamp 1724149083 [10:19:19]current date 1724149162 [10:19:19]FM_GetShiftState [10:19:19]SAM_PROTO_GetShiftState [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 13 01 00 [10:19:19]Write to MH i2c: E2 08 00 6B 28 80 13 01 00 00 00 00 00 10 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:19]Read from MH i2c: E2 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 0E 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: E2 0E 00 6B 28 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A1 [10:19:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:19:19]wFMCommunicate OK [10:19:19]SAM_PROTO_GetShiftState done [10:19:19]FM_GetShiftState done [10:19:19]opened in 1724113785 [10:19:19]opened+sec_in_day 1724200185 [10:19:19]quantity*price = 90068 [10:19:19]sum+1 = 90069 [10:19:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 96 20.08.2024 10:19 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139624 ФПД: 249154629465719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101922&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139624&fm=249154629465719&tin=02508201610067®Number=0000000000092569&sum=90000 [10:19:20]StoreToDocumentArchive [10:19:20]shift 453 fd 139624 [10:19:20]save to /storage/0453/doc_00139624 [10:19:20]save last doc name /storage/0453/doc_00139624 to /storage/kkm_last_doc_name [10:19:20]save OK [10:19:20]Clear old archive folders... [10:19:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:19:20]tlvbuf is 00D44FF0 [10:19:20]SAM_PROTO_ClearQueue [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 09 00 00 [10:19:20]Write to MH i2c: E2 08 00 78 28 80 09 00 00 00 00 00 00 12 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 03 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 03 00 78 28 00 90 00 14 [10:19:20]RAPDU: 90 00 [10:19:20]wFMCommunicate OK [10:19:20]SAM_PROTO_ClearQueue done [10:19:20]KKMCreateOFDPacket [10:19:20]OFDProtocolAddRootSTLVToBuf [10:19:20]FM_MakeSignedData [10:19:20]FM_MakeSignedData [10:19:20]SAM_PROTO_SignData [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 0D 01 02 [10:19:20]Write to MH i2c: E2 08 00 79 28 80 0D 01 02 00 00 00 00 1A [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 03 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 03 00 79 28 00 90 00 15 [10:19:20]RAPDU: 90 00 [10:19:20]wFMCommunicate OK [10:19:20]wFMCommunicate request_size=255 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 60 00 00 00 F4 03 04 00 AA 6D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 21 02 00 35 04 06 00 [10:19:20]Write to MH i2c: E2 02 01 7A 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 60 00 00 00 F4 03 04 00 AA 6D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 21 02 00 35 04 06 00 00 00 4C [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 03 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 03 00 7A 28 00 90 00 16 [10:19:20]RAPDU: 90 00 [10:19:20]wFMCommunicate OK [10:19:20]wFMCommunicate request_size=11 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 0D 02 02 06 E2 9A D5 2E F6 77 [10:19:20]Write to MH i2c: E2 0E 00 7B 28 80 0D 02 02 06 00 E2 9A D5 2E F6 77 00 00 15 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 03 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 03 00 7B 28 00 90 00 17 [10:19:20]RAPDU: 90 00 [10:19:20]wFMCommunicate OK [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 0D 03 02 [10:19:20]Write to MH i2c: E2 08 00 7C 28 80 0D 03 02 00 00 00 00 1F [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:21]Read from MH i2c: E2 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 0B 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 0B 00 7C 28 00 3B 90 0E 45 0C 6C FA BE 90 00 6E [10:19:21]RAPDU: 3B 90 0E 45 0C 6C FA BE 90 00 [10:19:21]wFMCommunicate OK [10:19:21]SAM_PROTO_SignData done [10:19:21]FM_MakeSignedData done [10:19:21]CreateOFDProtocolMessage [10:19:21]wFMCommunicate request_size=4 [10:19:21]MH_SAM_APDU [10:19:21]CAPDU: 80 11 00 00 [10:19:21]Write to MH i2c: E2 08 00 7D 28 80 11 00 00 00 00 00 00 1F [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:21]Read from MH i2c: E2 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 17 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 17 00 7D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 76 [10:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:19:21]wFMCommunicate OK [10:19:21]CreateOFDProtocolMessage done [10:19:21]OFDSenderStorePacket 139624 [10:19:21]StoreOFDPacket docnum=139624 [10:19:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 53 F9 08 01 83 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 60 00 00 00 F4 03 04 00 AA 6D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 21 02 00 35 04 06 00 E2 9A D5 2E F6 77 3B 90 0E 45 0C 6C FA BE [10:19:21]CheckFolder [10:19:21]dirname=/storage/ofd_packets [10:19:21]CheckFolder done [10:19:21]ProducePacketName [10:19:21]name=ofd_packets/00139624 [10:19:21]NVStorageSaveData ofd_packets/00139624 [10:19:21]File name is /storage/ofd_packets/00139624 [10:19:21]Write 302 bytes [10:19:21]NVStorageSaveData done [10:19:21]OFDSenderStorePacket done [10:19:21]KKMCreateOFDPacket done [10:19:21]NVStorageSaveData kkm_last_timestamp [10:19:21]File name is /storage/kkm_last_timestamp [10:19:21]Write 4 bytes [10:19:21]NVStorageSaveData done [10:19:21]OFD Sender: Processing packet 139624 [packets to send 137, broken 136] [10:19:21]ProducePacketName [10:19:21]name=ofd_packets/00139624 [10:19:21]OFD Sender: To server: pG, [10:19:21]CommunicateWithHost lk.salyk.kg:30040 [10:19:21]ConnectInit lk.salyk.kg [10:19:21]ExternCall_PrintAddStr [10:19:21]wPrintStart [10:19:21]Write to MH i2c: 01 00 00 7E 28 A6 [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: 01 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: 01 07 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: 01 07 00 7E 28 00 00 00 00 00 FF 0F BB [10:19:21]RasterBufferAndPrint [10:19:21]line Счет N : (1)593470 [10:19:21]line ИНН: 02508201610067 [10:19:21]line Контрольно-Кассовый Чек [10:19:21]line ПРОДАЖА [10:19:21]line ТРК (МРК, ГНК) : 44 [10:19:21]line Товар: 2710194210 [10:19:21]line ДТ(л)-К-5 [10:19:21]line 11.820 * 76.20 [10:19:21]line = 900.68 [10:19:21]line НДС 12% НСП 1% [10:19:21]line > о реализуемом товаре [10:19:21]line ОКРУГЛЕНИЕ: -0.68 [10:19:21]line ИТОГО: 900.00 [10:19:21]line Внесено: 900.00 [10:19:21]line СДАЧА: 0.00 [10:19:21]line НСП 1% : 7.97 [10:19:21]line НДС 12% : 95.65 [10:19:21]line Наличными: 900.00 [10:19:21]line Безнал.: 0.00 [10:19:21]line Место: АЗС № 136 "Партнер Нефть" [10:19:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:19:21]line СНО: Общий режим [10:19:21]line Чек 96 20.08.2024 10:19 [10:19:21]line Смена: 453 ФФД: 1.0 [10:19:21]line ЗНМ: 0300000067 [10:19:21]line РНМ: 0000000000092569 [10:19:21]line Версия ККМ: 001 [10:19:21]line ФМ: 0000000000871776 [10:19:21]line ФД: 139624 [10:19:21]line ФПД: 249154629465719 [10:19:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T101922&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139624&fm=249154629465719&tin=02508201610067®Number=0000000000092569&sum=90000 [10:19:21]Connected sock=11 [10:19:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 53 F9 08 01 83 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 60 00 00 00 F4 03 04 00 AA 6D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 21 02 00 35 04 06 00 E2 9A D5 2E F6 77 3B 90 0E 45 0C 6C FA BE [10:19:21]written 0, free lines is 4095 [10:19:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BD 91 47 00 55 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 21 02 00 F4 03 04 00 3D 14 C4 66 B6 04 01 00 00 1C 72 6B 11 84 56 F4 AB [10:19:21]CommunicateWithHost err = 0 [10:19:21]CheckOFDResponse [10:19:21]1017 (14) - 77093643461234 [10:19:21]1041 (16) - 0000000000871776 [10:19:21]1040 (4) - 139624 [10:19:21]1012 (4) - 20.08.2024 03:57 [10:19:21]1206 (1) - 0 [10:19:21]OFD Sender: Remove packet 139624 [10:19:21]ProducePacketName [10:19:21]name=ofd_packets/00139624 [10:19:21]NVStorageDeleteData [10:19:21]Write to MH i2c: 01 00 00 A9 28 D1 [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: 01 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: 01 07 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: 01 07 00 A9 28 00 00 00 00 00 C8 0C AC [10:19:21]RasterBufferAndPrint [10:19:21]line [10:19:21]line [10:19:21]line [10:19:21]line [10:19:21]line [10:19:21]written 0, free lines is 3278 [10:19:21]MH_Cut [10:19:21]Write to MH i2c: D1 01 00 B0 28 01 AA [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: D1 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: D1 01 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: D1 01 00 B0 28 00 A9 [10:19:21]Write to MH i2c: 01 00 00 B1 28 D9 [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:22]OFD Sender: No OFD packet to send [10:19:22]*** Cut start [10:19:22]*** Partial cut [10:19:22]*** CUTSNS_PIN = 1 [10:19:22]*** CUTSNS_PIN = 0 [10:19:22]*** Brake cut motor [10:19:23]Read from MH i2c: 01 [10:19:23]MH_I2C_Read... [10:19:23]*** Stop cut motor [10:19:23]*** Cut end [10:19:23]Read from MH i2c: 01 07 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 07 00 B1 28 00 00 00 00 00 FF 0F EE [10:19:23]process_action close_receipt done [10:19:23]requested_data is exist [10:19:23]produce_requested_data [10:19:23]requested_item fm.sn is exist - process it [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 11 00 00 [10:19:23]Write to MH i2c: E2 08 00 B2 28 80 11 00 00 00 00 00 00 54 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 17 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 17 00 B2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AB [10:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:19:23]wFMCommunicate OK [10:19:23]requested_item fd.num is exist - process it [10:19:23]SAM_PROTO_GetFieldsCounters [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 13 00 00 [10:19:23]Write to MH i2c: E2 08 00 B3 28 80 13 00 00 00 00 00 00 57 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 62 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 62 00 B3 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [10:19:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:23]wFMCommunicate OK [10:19:23]SAM_PROTO_GetFieldsCounters done [10:19:23]requested_item shift.num is exist - process it [10:19:23]requested_item shift.opened is exist - process it [10:19:23]req_shift_opened [10:19:23]FM_GetShiftState [10:19:23]SAM_PROTO_GetShiftState [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 13 01 00 [10:19:23]Write to MH i2c: E2 08 00 B4 28 80 13 01 00 00 00 00 00 59 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0E 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0E 00 B4 28 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EA [10:19:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:19:23]wFMCommunicate OK [10:19:23]SAM_PROTO_GetShiftState done [10:19:23]FM_GetShiftState done [10:19:23]req_shift_opened done [10:19:23]requested_item shift.open_date is exist - process it [10:19:23]req_shift_open_date [10:19:23]req_shift_open_date done [10:19:23]produce_requested_data done [10:19:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139624,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:19:23]process_action_free close_receipt [10:19:23]json_value_free [10:19:23]json_value_free done [10:19:23]process_json_proto returns [10:19:23]Send response to host [10:19:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139624,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:19:23]free response buf [10:19:23]execute_script done [10:19:23]execute_script returns [10:19:23]free content buf [10:19:23]Sock 9.Close socket [10:19:23]Sock 9.Thread stoped [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:35]accept exits with 7 [10:23:35]New connection [10:23:35]New thread 3067071844 created [10:23:35]Thread 3067215204 joined [10:23:35]Waiting for new connection... [10:23:35] Sock 7.Parse request [10:23:35]Sock 7.Check first char [10:23:35]Sock 7.First char is OK [10:23:35]request: POST /json_proto HTTP/1.0 [10:23:35]Method: POST [10:23:35]URL: /json_proto [10:23:35]Method is POST - this is cgi request [10:23:35]url: /json_proto [10:23:35]query_string will be loaded in cgi processing [10:23:35]execute_cgi json_proto POST (null) [10:23:35]execute_cgi path=json_proto method=POST [10:23:35]POST find Content-Length [10:23:35]Host: 172.17.45.67:8080 [10:23:35]Content-Length: 677 [10:23:35]Content-Type: application/json [10:23:35] [10:23:35]POST finish read [10:23:35]Found Content-Length = 677 [10:23:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:35]execute_script... [10:23: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)593471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:35]POST & json_proto [10:23:35]process_json_proto [10:23:35]json parsed OK: [10:23:35]protocol is kg_v1.0 [10:23:35]action value=close_receipt [10:23:35]process_action close_receipt [10:23:35]cmd_close_receipt [10:23:35]MH_GetDate [10:23:35]Write to MH i2c: F0 00 00 B5 28 CC [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: F0 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: F0 09 00 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: F0 09 00 B5 28 00 AA 6E C4 66 5F 7F 2B 66 86 [10:23:35]GetLastDocTimeStamp 1724149162 [10:23:35]current date 1724149418 [10:23:35]FM_GetShiftState [10:23:35]SAM_PROTO_GetShiftState [10:23:35]wFMCommunicate request_size=4 [10:23:35]MH_SAM_APDU [10:23:35]CAPDU: 80 13 01 00 [10:23:35]Write to MH i2c: E2 08 00 B6 28 80 13 01 00 00 00 00 00 5B [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:35]Read from MH i2c: E2 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: E2 0E 00 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: E2 0E 00 B6 28 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EC [10:23:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:23:35]wFMCommunicate OK [10:23:35]SAM_PROTO_GetShiftState done [10:23:35]FM_GetShiftState done [10:23:35]opened in 1724113785 [10:23:35]opened+sec_in_day 1724200185 [10:23:35]quantity*price = 60003 [10:23:35]sum+1 = 60004 [10:23:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 97 20.08.2024 10:23 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139625 ФПД: 19421499045131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T102338&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139625&fm=19421499045131&tin=02508201610067®Number=0000000000092569&sum=60000 [10:23:36]StoreToDocumentArchive [10:23:36]shift 453 fd 139625 [10:23:36]save to /storage/0453/doc_00139625 [10:23:36]save last doc name /storage/0453/doc_00139625 to /storage/kkm_last_doc_name [10:23:36]save OK [10:23:36]Clear old archive folders... [10:23:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:36]tlvbuf is 00D1CF50 [10:23:36]SAM_PROTO_ClearQueue [10:23:36]wFMCommunicate request_size=4 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 09 00 00 [10:23:36]Write to MH i2c: E2 08 00 C3 28 80 09 00 00 00 00 00 00 5D [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 C3 28 00 90 00 5F [10:23:36]RAPDU: 90 00 [10:23:36]wFMCommunicate OK [10:23:36]SAM_PROTO_ClearQueue done [10:23:36]KKMCreateOFDPacket [10:23:36]OFDProtocolAddRootSTLVToBuf [10:23:36]FM_MakeSignedData [10:23:36]FM_MakeSignedData [10:23:36]SAM_PROTO_SignData [10:23:36]wFMCommunicate request_size=4 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 0D 01 02 [10:23:36]Write to MH i2c: E2 08 00 C4 28 80 0D 01 02 00 00 00 00 65 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 C4 28 00 90 00 60 [10:23:36]RAPDU: 90 00 [10:23:36]wFMCommunicate OK [10:23:36]wFMCommunicate request_size=255 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 AA 6E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 21 02 00 35 04 06 00 11 [10:23:36]Write to MH i2c: E2 02 01 C5 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 AA 6E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 21 02 00 35 04 06 00 11 00 00 BB [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 C5 28 00 90 00 61 [10:23:36]RAPDU: 90 00 [10:23:36]wFMCommunicate OK [10:23:36]wFMCommunicate request_size=10 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 0D 02 02 05 A9 EB 8D 35 0B [10:23:36]Write to MH i2c: E2 0D 00 C6 28 80 0D 02 02 05 00 A9 EB 8D 35 0B 00 00 D3 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 03 00 C6 28 00 90 00 62 [10:23:36]RAPDU: 90 00 [10:23:36]wFMCommunicate OK [10:23:36]wFMCommunicate request_size=4 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 0D 03 02 [10:23:36]Write to MH i2c: E2 08 00 C7 28 80 0D 03 02 00 00 00 00 6A [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 0B 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 0B 00 C7 28 00 71 5A B2 95 0B C5 E5 F1 90 00 23 [10:23:36]RAPDU: 71 5A B2 95 0B C5 E5 F1 90 00 [10:23:36]wFMCommunicate OK [10:23:36]SAM_PROTO_SignData done [10:23:36]FM_MakeSignedData done [10:23:36]CreateOFDProtocolMessage [10:23:36]wFMCommunicate request_size=4 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 11 00 00 [10:23:36]Write to MH i2c: E2 08 00 C8 28 80 11 00 00 00 00 00 00 6A [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:36]Read from MH i2c: E2 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 17 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: E2 17 00 C8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C1 [10:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:23:36]wFMCommunicate OK [10:23:36]CreateOFDProtocolMessage done [10:23:36]OFDSenderStorePacket 139625 [10:23:36]StoreOFDPacket docnum=139625 [10:23:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BE B3 07 01 FC 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 AA 6E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 21 02 00 35 04 06 00 11 A9 EB 8D 35 0B 71 5A B2 95 0B C5 E5 F1 [10:23:36]CheckFolder [10:23:36]dirname=/storage/ofd_packets [10:23:36]CheckFolder done [10:23:36]ProducePacketName [10:23:36]name=ofd_packets/00139625 [10:23:36]NVStorageSaveData ofd_packets/00139625 [10:23:36]File name is /storage/ofd_packets/00139625 [10:23:36]Write 301 bytes [10:23:36]NVStorageSaveData done [10:23:36]OFDSenderStorePacket done [10:23:36]KKMCreateOFDPacket done [10:23:36]NVStorageSaveData kkm_last_timestamp [10:23:36]File name is /storage/kkm_last_timestamp [10:23:36]Write 4 bytes [10:23:36]NVStorageSaveData done [10:23:36]ExternCall_PrintAddStr [10:23:36]wPrintStart [10:23:36]Write to MH i2c: 01 00 00 C9 28 F1 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: 01 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: 01 07 00 [10:23:36]MH_I2C_Read... [10:23:36]Read from MH i2c: 01 07 00 C9 28 00 00 00 00 00 FF 0F 06 [10:23:36]RasterBufferAndPrint [10:23:36]line Счет N : (1)593471 [10:23:36]line ИНН: 02508201610067 [10:23:36]line Контрольно-Кассовый Чек [10:23:36]line ПРОДАЖА [10:23:36]line ТРК (МРК, ГНК) : 62 [10:23:36]line Товар: 2710124130 [10:23:36]line Аи-92-К-5 [10:23:36]line 8.850 * 67.80 [10:23:36]line = 600.03 [10:23:36]line НДС 12% НСП 1% [10:23:36]line > о реализуемом товаре [10:23:36]line ОКРУГЛЕНИЕ: -0.03 [10:23:36]line ИТОГО: 600.00 [10:23:36]line Внесено: 600.00 [10:23:36]line СДАЧА: 0.00 [10:23:36]line НСП 1% : 5.31 [10:23:36]line НДС 12% : 63.72 [10:23:36]line Наличными: 600.00 [10:23:36]line Безнал.: 0.00 [10:23:36]line Место: АЗС № 136 "Партнер Нефть" [10:23:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:23:36]line СНО: Общий режим [10:23:36]line Чек 97 20.08.2024 10:23 [10:23:36]line Смена: 453 ФФД: 1.0 [10:23:36]line ЗНМ: 0300000067 [10:23:36]line РНМ: 0000000000092569 [10:23:36]line Версия ККМ: 001 [10:23:36]line ФМ: 0000000000871776 [10:23:36]line ФД: 139625 [10:23:36]line ФПД: 19421499045131 [10:23:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T102338&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139625&fm=19421499045131&tin=02508201610067®Number=0000000000092569&sum=60000 [10:23:37]OFD Sender: Processing packet 139625 [packets to send 137, broken 136] [10:23:37]ProducePacketName [10:23:37]name=ofd_packets/00139625 [10:23:37]OFD Sender: To server: pG, [10:23:37]CommunicateWithHost lk.salyk.kg:30040 [10:23:37]ConnectInit lk.salyk.kg [10:23:37]written 0, free lines is 4095 [10:23:37]Connected sock=10 [10:23:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BE B3 07 01 FC 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 AA 6E C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 21 02 00 35 04 06 00 11 A9 EB 8D 35 0B 71 5A B2 95 0B C5 E5 F1 [10:23:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 00 91 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 38 37 31 37 37 36 10 04 04 00 69 21 02 00 F4 03 04 00 3D 15 C4 66 B6 04 01 00 00 0E 8F 8F D0 0F 20 E0 D1 [10:23:37]CommunicateWithHost err = 0 [10:23:37]CheckOFDResponse [10:23:37]1017 (14) - 77093643461234 [10:23:37]1041 (16) - 0000000000871776 [10:23:37]1040 (4) - 139625 [10:23:37]1012 (4) - 20.08.2024 04:02 [10:23:37]1206 (1) - 0 [10:23:37]OFD Sender: Remove packet 139625 [10:23:37]ProducePacketName [10:23:37]name=ofd_packets/00139625 [10:23:37]NVStorageDeleteData [10:23:37]Write to MH i2c: 01 00 00 F4 28 1C [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 F4 28 00 00 00 00 00 CE 0C FD [10:23:37]RasterBufferAndPrint [10:23:37]line [10:23:37]line [10:23:37]line [10:23:37]line [10:23:37]line [10:23:37]written 0, free lines is 3282 [10:23:37]MH_Cut [10:23:37]Write to MH i2c: D1 01 00 FB 28 01 F5 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: D1 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: D1 01 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: D1 01 00 FB 28 00 F4 [10:23:37]Write to MH i2c: 01 00 00 FC 28 24 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:38]OFD Sender: No OFD packet to send [10:23:38]*** Cut start [10:23:38]*** Partial cut [10:23:38]*** CUTSNS_PIN = 1 [10:23:38]*** CUTSNS_PIN = 0 [10:23:38]*** Brake cut motor [10:23:38]Read from MH i2c: 01 [10:23:38]MH_I2C_Read... [10:23:38]*** Stop cut motor [10:23:38]*** Cut end [10:23:38]Read from MH i2c: 01 07 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 07 00 FC 28 00 00 00 00 00 FF 0F 39 [10:23:38]process_action close_receipt done [10:23:38]requested_data is exist [10:23:38]produce_requested_data [10:23:38]requested_item fm.sn is exist - process it [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 11 00 00 [10:23:38]Write to MH i2c: E2 08 00 FD 28 80 11 00 00 00 00 00 00 9F [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:38]Read from MH i2c: E2 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 17 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: E2 17 00 FD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [10:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:23:38]wFMCommunicate OK [10:23:38]requested_item fd.num is exist - process it [10:23:38]SAM_PROTO_GetFieldsCounters [10:23:38]wFMCommunicate request_size=4 [10:23:38]MH_SAM_APDU [10:23:38]CAPDU: 80 13 00 00 [10:23:38]Write to MH i2c: E2 08 00 FE 28 80 13 00 00 00 00 00 00 A2 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 62 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 62 00 FE 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:23:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:39]wFMCommunicate OK [10:23:39]SAM_PROTO_GetFieldsCounters done [10:23:39]requested_item shift.num is exist - process it [10:23:39]requested_item shift.opened is exist - process it [10:23:39]req_shift_opened [10:23:39]FM_GetShiftState [10:23:39]SAM_PROTO_GetShiftState [10:23:39]wFMCommunicate request_size=4 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 13 01 00 [10:23:39]Write to MH i2c: E2 08 00 FF 28 80 13 01 00 00 00 00 00 A4 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 0E 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 0E 00 FF 28 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 35 [10:23:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:23:39]wFMCommunicate OK [10:23:39]SAM_PROTO_GetShiftState done [10:23:39]FM_GetShiftState done [10:23:39]req_shift_opened done [10:23:39]requested_item shift.open_date is exist - process it [10:23:39]req_shift_open_date [10:23:39]req_shift_open_date done [10:23:39]produce_requested_data done [10:23:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139625,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:23:39]process_action_free close_receipt [10:23:39]json_value_free [10:23:39]json_value_free done [10:23:39]process_json_proto returns [10:23:39]Send response to host [10:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139625,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:23:39]free response buf [10:23:39]execute_script done [10:23:39]execute_script returns [10:23:39]free content buf [10:23:39]Sock 7.Close socket [10:23:39]Sock 7.Thread stoped [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:35]accept exits with 9 [10:26:35]New connection [10:26:35]New thread 3067215204 created [10:26:35]Thread 3067071844 joined [10:26:35]Waiting for new connection... [10:26:35] Sock 9.Parse request [10:26:35]Sock 9.Check first char [10:26:35]Sock 9.First char is OK [10:26:35]request: POST /json_proto HTTP/1.0 [10:26:35]Method: POST [10:26:35]URL: /json_proto [10:26:35]Method is POST - this is cgi request [10:26:35]url: /json_proto [10:26:35]query_string will be loaded in cgi processing [10:26:35]execute_cgi json_proto POST (null) [10:26:35]execute_cgi path=json_proto method=POST [10:26:35]POST find Content-Length [10:26:35]Host: 172.17.45.67:8080 [10:26:35]Content-Length: 677 [10:26:35]Content-Type: application/json [10:26:35] [10:26:35]POST finish read [10:26:35]Found Content-Length = 677 [10:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:35]execute_script... [10: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)593472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:35]POST & json_proto [10:26:35]process_json_proto [10:26:35]json parsed OK: [10:26:35]protocol is kg_v1.0 [10:26:35]action value=close_receipt [10:26:35]process_action close_receipt [10:26:35]cmd_close_receipt [10:26:35]MH_GetDate [10:26:35]Write to MH i2c: F0 00 00 00 29 18 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: F0 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: F0 09 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: F0 09 00 00 29 00 5E 6F C4 66 5F 7F 2B 66 87 [10:26:35]GetLastDocTimeStamp 1724149418 [10:26:35]current date 1724149598 [10:26:35]FM_GetShiftState [10:26:35]SAM_PROTO_GetShiftState [10:26:35]wFMCommunicate request_size=4 [10:26:35]MH_SAM_APDU [10:26:35]CAPDU: 80 13 01 00 [10:26:35]Write to MH i2c: E2 08 00 01 29 80 13 01 00 00 00 00 00 A7 [10:26:35]Write i2c OK [10:26:35]MH_I2C_Read... [10:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:35]Read from MH i2c: E2 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 0E 00 [10:26:35]MH_I2C_Read... [10:26:35]Read from MH i2c: E2 0E 00 01 29 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 38 [10:26:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:26:35]wFMCommunicate OK [10:26:35]SAM_PROTO_GetShiftState done [10:26:35]FM_GetShiftState done [10:26:35]opened in 1724113785 [10:26:35]opened+sec_in_day 1724200185 [10:26:35]quantity*price = 50036 [10:26:35]sum+1 = 50037 [10:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 98 20.08.2024 10:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139626 ФПД: 121113005779691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T102638&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139626&fm=121113005779691&tin=02508201610067®Number=0000000000092569&sum=50000 [10:26:36]StoreToDocumentArchive [10:26:36]shift 453 fd 139626 [10:26:36]save to /storage/0453/doc_00139626 [10:26:36]save last doc name /storage/0453/doc_00139626 to /storage/kkm_last_doc_name [10:26:36]save OK [10:26:36]Clear old archive folders... [10:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:36]tlvbuf is 00DDB350 [10:26:36]SAM_PROTO_ClearQueue [10:26:36]wFMCommunicate request_size=4 [10:26:36]MH_SAM_APDU [10:26:36]CAPDU: 80 09 00 00 [10:26:36]Write to MH i2c: E2 08 00 0E 29 80 09 00 00 00 00 00 00 A9 [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:36]Read from MH i2c: E2 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 03 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 03 00 0E 29 00 90 00 AB [10:26:36]RAPDU: 90 00 [10:26:36]wFMCommunicate OK [10:26:36]SAM_PROTO_ClearQueue done [10:26:36]KKMCreateOFDPacket [10:26:36]OFDProtocolAddRootSTLVToBuf [10:26:36]FM_MakeSignedData [10:26:36]FM_MakeSignedData [10:26:36]SAM_PROTO_SignData [10:26:36]wFMCommunicate request_size=4 [10:26:36]MH_SAM_APDU [10:26:36]CAPDU: 80 0D 01 02 [10:26:36]Write to MH i2c: E2 08 00 0F 29 80 0D 01 02 00 00 00 00 B1 [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:36]Read from MH i2c: E2 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 03 00 [10:26:36]MH_I2C_Read... [10:26:36]Read from MH i2c: E2 03 00 0F 29 00 90 00 AC [10:26:36]RAPDU: 90 00 [10:26:36]wFMCommunicate OK [10:26:36]wFMCommunicate request_size=255 [10:26:36]MH_SAM_APDU [10: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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 5E 6F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 21 02 00 35 04 06 00 6E [10:26:36]Write to MH i2c: E2 02 01 10 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 5E 6F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 21 02 00 35 04 06 00 6E 00 00 54 [10:26:36]Write i2c OK [10:26:36]MH_I2C_Read... [10:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:37]Read from MH i2c: E2 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 03 00 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 03 00 10 29 00 90 00 AD [10:26:37]RAPDU: 90 00 [10:26:37]wFMCommunicate OK [10:26:37]wFMCommunicate request_size=10 [10:26:37]MH_SAM_APDU [10:26:37]CAPDU: 80 0D 02 02 05 26 D1 AF EA EB [10:26:37]Write to MH i2c: E2 0D 00 11 29 80 0D 02 02 05 00 26 D1 AF EA EB 00 00 39 [10:26:37]Write i2c OK [10:26:37]MH_I2C_Read... [10:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:37]Read from MH i2c: E2 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 03 00 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 03 00 11 29 00 90 00 AE [10:26:37]RAPDU: 90 00 [10:26:37]wFMCommunicate OK [10:26:37]wFMCommunicate request_size=4 [10:26:37]MH_SAM_APDU [10:26:37]CAPDU: 80 0D 03 02 [10:26:37]Write to MH i2c: E2 08 00 12 29 80 0D 03 02 00 00 00 00 B6 [10:26:37]Write i2c OK [10:26:37]MH_I2C_Read... [10:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:37]Read from MH i2c: E2 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 0B 00 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 0B 00 12 29 00 4A 4C 74 2D DC B3 9D C8 90 00 E2 [10:26:37]RAPDU: 4A 4C 74 2D DC B3 9D C8 90 00 [10:26:37]wFMCommunicate OK [10:26:37]SAM_PROTO_SignData done [10:26:37]FM_MakeSignedData done [10:26:37]CreateOFDProtocolMessage [10:26:37]wFMCommunicate request_size=4 [10:26:37]MH_SAM_APDU [10:26:37]CAPDU: 80 11 00 00 [10:26:37]Write to MH i2c: E2 08 00 13 29 80 11 00 00 00 00 00 00 B6 [10:26:37]Write i2c OK [10:26:37]MH_I2C_Read... [10:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:37]Read from MH i2c: E2 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 17 00 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: E2 17 00 13 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0D [10:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:26:37]wFMCommunicate OK [10:26:37]CreateOFDProtocolMessage done [10:26:37]OFDSenderStorePacket 139626 [10:26:37]StoreOFDPacket docnum=139626 [10:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5A 8C 07 01 DB 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 5E 6F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 21 02 00 35 04 06 00 6E 26 D1 AF EA EB 4A 4C 74 2D DC B3 9D C8 [10:26:37]CheckFolder [10:26:37]dirname=/storage/ofd_packets [10:26:37]CheckFolder done [10:26:37]ProducePacketName [10:26:37]name=ofd_packets/00139626 [10:26:37]NVStorageSaveData ofd_packets/00139626 [10:26:37]File name is /storage/ofd_packets/00139626 [10:26:37]Write 301 bytes [10:26:37]NVStorageSaveData done [10:26:37]OFDSenderStorePacket done [10:26:37]KKMCreateOFDPacket done [10:26:37]NVStorageSaveData kkm_last_timestamp [10:26:37]File name is /storage/kkm_last_timestamp [10:26:37]Write 4 bytes [10:26:37]NVStorageSaveData done [10:26:37]ExternCall_PrintAddStr [10:26:37]wPrintStart [10:26:37]Write to MH i2c: 01 00 00 14 29 3D [10:26:37]Write i2c OK [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: 01 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: 01 07 00 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: 01 07 00 14 29 00 00 00 00 00 FF 0F 52 [10:26:37]RasterBufferAndPrint [10:26:37]line Счет N : (1)593472 [10:26:37]line ИНН: 02508201610067 [10:26:37]line Контрольно-Кассовый Чек [10:26:37]line ПРОДАЖА [10:26:37]line ТРК (МРК, ГНК) : 42 [10:26:37]line Товар: 2710124130 [10:26:37]line Аи-92-К-5 [10:26:37]line 7.380 * 67.80 [10:26:37]line = 500.36 [10:26:37]line НДС 12% НСП 1% [10:26:37]line > о реализуемом товаре [10:26:37]line ОКРУГЛЕНИЕ: -0.36 [10:26:37]line ИТОГО: 500.00 [10:26:37]line Внесено: 500.00 [10:26:37]line СДАЧА: 0.00 [10:26:37]line НСП 1% : 4.43 [10:26:37]line НДС 12% : 53.14 [10:26:37]line Наличными: 500.00 [10:26:37]line Безнал.: 0.00 [10:26:37]line Место: АЗС № 136 "Партнер Нефть" [10:26:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:26:37]line СНО: Общий режим [10:26:37]line Чек 98 20.08.2024 10:26 [10:26:37]line Смена: 453 ФФД: 1.0 [10:26:37]line ЗНМ: 0300000067 [10:26:37]line РНМ: 0000000000092569 [10:26:37]line Версия ККМ: 001 [10:26:37]line ФМ: 0000000000871776 [10:26:37]line ФД: 139626 [10:26:37]line ФПД: 121113005779691 [10:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T102638&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139626&fm=121113005779691&tin=02508201610067®Number=0000000000092569&sum=50000 [10:26:37]OFD Sender: Processing packet 139626 [packets to send 137, broken 136] [10:26:37]ProducePacketName [10:26:37]name=ofd_packets/00139626 [10:26:37]OFD Sender: To server: pG, [10:26:37]CommunicateWithHost lk.salyk.kg:30040 [10:26:37]ConnectInit lk.salyk.kg [10:26:37]written 0, free lines is 4095 [10:26:37]Connected sock=10 [10:26:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5A 8C 07 01 DB 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 5E 6F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 21 02 00 35 04 06 00 6E 26 D1 AF EA EB 4A 4C 74 2D DC B3 9D C8 [10:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B8 98 47 00 F8 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 21 02 00 F4 03 04 00 F2 15 C4 66 B6 04 01 00 00 83 6C 8A EF 64 06 3F 7D [10:26:37]CommunicateWithHost err = 0 [10:26:37]CheckOFDResponse [10:26:37]1017 (14) - 77093643461234 [10:26:37]1041 (16) - 0000000000871776 [10:26:37]1040 (4) - 139626 [10:26:37]1012 (4) - 20.08.2024 04:05 [10:26:37]1206 (1) - 0 [10:26:37]OFD Sender: Remove packet 139626 [10:26:37]ProducePacketName [10:26:37]name=ofd_packets/00139626 [10:26:37]NVStorageDeleteData [10:26:37]Write to MH i2c: 01 00 00 3F 29 68 [10:26:37]Write i2c OK [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: 01 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: 01 07 00 [10:26:37]MH_I2C_Read... [10:26:37]Read from MH i2c: 01 07 00 3F 29 00 00 00 00 00 CD 0C 48 [10:26:37]RasterBufferAndPrint [10:26:37]line [10:26:37]line [10:26:37]line [10:26:37]line [10:26:37]line [10:26:37]written 0, free lines is 3287 [10:26:38]MH_Cut [10:26:38]Write to MH i2c: D1 01 00 46 29 01 41 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: D1 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: D1 01 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: D1 01 00 46 29 00 40 [10:26:38]Write to MH i2c: 01 00 00 47 29 70 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]OFD Sender: No OFD packet to send [10:26:38]*** Cut start [10:26:38]*** Partial cut [10:26:38]*** CUTSNS_PIN = 1 [10:26:38]*** CUTSNS_PIN = 0 [10:26:38]*** Brake cut motor [10:26:39]Read from MH i2c: 01 [10:26:39]MH_I2C_Read... [10:26:39]*** Stop cut motor [10:26:39]*** Cut end [10:26:39]Read from MH i2c: 01 07 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: 01 07 00 47 29 00 00 00 00 00 FF 0F 85 [10:26:39]process_action close_receipt done [10:26:39]requested_data is exist [10:26:39]produce_requested_data [10:26:39]requested_item fm.sn is exist - process it [10:26:39]wFMCommunicate request_size=4 [10:26:39]MH_SAM_APDU [10:26:39]CAPDU: 80 11 00 00 [10:26:39]Write to MH i2c: E2 08 00 48 29 80 11 00 00 00 00 00 00 EB [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:39]Read from MH i2c: E2 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 17 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 17 00 48 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 42 [10:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:26:39]wFMCommunicate OK [10:26:39]requested_item fd.num is exist - process it [10:26:39]SAM_PROTO_GetFieldsCounters [10:26:39]wFMCommunicate request_size=4 [10:26:39]MH_SAM_APDU [10:26:39]CAPDU: 80 13 00 00 [10:26:39]Write to MH i2c: E2 08 00 49 29 80 13 00 00 00 00 00 00 EE [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:39]Read from MH i2c: E2 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 62 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 62 00 49 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [10:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:39]wFMCommunicate OK [10:26:39]SAM_PROTO_GetFieldsCounters done [10:26:39]requested_item shift.num is exist - process it [10:26:39]requested_item shift.opened is exist - process it [10:26:39]req_shift_opened [10:26:39]FM_GetShiftState [10:26:39]SAM_PROTO_GetShiftState [10:26:39]wFMCommunicate request_size=4 [10:26:39]MH_SAM_APDU [10:26:39]CAPDU: 80 13 01 00 [10:26:39]Write to MH i2c: E2 08 00 4A 29 80 13 01 00 00 00 00 00 F0 [10:26:39]Write i2c OK [10:26:39]MH_I2C_Read... [10:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:39]Read from MH i2c: E2 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 0E 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 0E 00 4A 29 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 81 [10:26:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:26:39]wFMCommunicate OK [10:26:39]SAM_PROTO_GetShiftState done [10:26:39]FM_GetShiftState done [10:26:39]req_shift_opened done [10:26:39]requested_item shift.open_date is exist - process it [10:26:39]req_shift_open_date [10:26:39]req_shift_open_date done [10:26:39]produce_requested_data done [10:26:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139626,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:26:39]process_action_free close_receipt [10:26:39]json_value_free [10:26:39]json_value_free done [10:26:39]process_json_proto returns [10:26:39]Send response to host [10:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139626,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:26:39]free response buf [10:26:39]execute_script done [10:26:39]execute_script returns [10:26:39]free content buf [10:26:39]Sock 9.Close socket [10:26:39]Sock 9.Thread stoped [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:08]accept exits with 7 [10:27:08]New connection [10:27:08]New thread 3067071844 created [10:27:08]Thread 3067215204 joined [10:27:08]Waiting for new connection... [10:27:08] Sock 7.Parse request [10:27:08]Sock 7.Check first char [10:27:08]Sock 7.First char is OK [10:27:08]request: POST /json_proto HTTP/1.0 [10:27:08]Method: POST [10:27:08]URL: /json_proto [10:27:08]Method is POST - this is cgi request [10:27:08]url: /json_proto [10:27:08]query_string will be loaded in cgi processing [10:27:08]execute_cgi json_proto POST (null) [10:27:08]execute_cgi path=json_proto method=POST [10:27:08]POST find Content-Length [10:27:08]Host: 172.17.45.67:8080 [10:27:08]Content-Length: 677 [10:27:08]Content-Type: application/json [10:27:08] [10:27:08]POST finish read [10:27:08]Found Content-Length = 677 [10:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:08]execute_script... [10:27: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)593473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:08]POST & json_proto [10:27:08]process_json_proto [10:27:08]json parsed OK: [10:27:08]protocol is kg_v1.0 [10:27:08]action value=close_receipt [10:27:08]process_action close_receipt [10:27:08]cmd_close_receipt [10:27:08]MH_GetDate [10:27:08]Write to MH i2c: F0 00 00 4B 29 63 [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: F0 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: F0 09 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: F0 09 00 4B 29 00 7F 6F C4 66 5F 7F 2B 66 F3 [10:27:08]GetLastDocTimeStamp 1724149598 [10:27:08]current date 1724149631 [10:27:08]FM_GetShiftState [10:27:08]SAM_PROTO_GetShiftState [10:27:08]wFMCommunicate request_size=4 [10:27:08]MH_SAM_APDU [10:27:08]CAPDU: 80 13 01 00 [10:27:08]Write to MH i2c: E2 08 00 4C 29 80 13 01 00 00 00 00 00 F2 [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:08]Read from MH i2c: E2 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 0E 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 0E 00 4C 29 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 83 [10:27:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:27:08]wFMCommunicate OK [10:27:08]SAM_PROTO_GetShiftState done [10:27:08]FM_GetShiftState done [10:27:08]opened in 1724113785 [10:27:08]opened+sec_in_day 1724200185 [10:27:08]quantity*price = 30035 [10:27:08]sum+1 = 30036 [10:27:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 99 20.08.2024 10:27 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139627 ФПД: 137138606295359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T102711&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139627&fm=137138606295359&tin=02508201610067®Number=0000000000092569&sum=30000 [10:27:09]StoreToDocumentArchive [10:27:09]shift 453 fd 139627 [10:27:09]save to /storage/0453/doc_00139627 [10:27:09]save last doc name /storage/0453/doc_00139627 to /storage/kkm_last_doc_name [10:27:09]save OK [10:27:09]Clear old archive folders... [10:27:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:09]tlvbuf is 00D3E880 [10:27:09]SAM_PROTO_ClearQueue [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 09 00 00 [10:27:09]Write to MH i2c: E2 08 00 59 29 80 09 00 00 00 00 00 00 F4 [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 59 29 00 90 00 F6 [10:27:09]RAPDU: 90 00 [10:27:09]wFMCommunicate OK [10:27:09]SAM_PROTO_ClearQueue done [10:27:09]KKMCreateOFDPacket [10:27:09]OFDProtocolAddRootSTLVToBuf [10:27:09]FM_MakeSignedData [10:27:09]FM_MakeSignedData [10:27:09]SAM_PROTO_SignData [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 0D 01 02 [10:27:09]Write to MH i2c: E2 08 00 5A 29 80 0D 01 02 00 00 00 00 FC [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 5A 29 00 90 00 F7 [10:27:09]RAPDU: 90 00 [10:27:09]wFMCommunicate OK [10:27:09]wFMCommunicate request_size=255 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7F 6F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 21 02 00 35 04 06 00 7C [10:27:09]Write to MH i2c: E2 02 01 5B 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7F 6F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 21 02 00 35 04 06 00 7C 00 00 EF [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 5B 29 00 90 00 F8 [10:27:10]RAPDU: 90 00 [10:27:10]wFMCommunicate OK [10:27:10]wFMCommunicate request_size=10 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 0D 02 02 05 BA 11 E9 C9 3F [10:27:10]Write to MH i2c: E2 0D 00 5C 29 80 0D 02 02 05 00 BA 11 E9 C9 3F 00 00 C5 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 03 00 5C 29 00 90 00 F9 [10:27:10]RAPDU: 90 00 [10:27:10]wFMCommunicate OK [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 0D 03 02 [10:27:10]Write to MH i2c: E2 08 00 5D 29 80 0D 03 02 00 00 00 00 01 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0B 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0B 00 5D 29 00 7B 1B 6B ED 31 DE 48 CB 90 00 12 [10:27:10]RAPDU: 7B 1B 6B ED 31 DE 48 CB 90 00 [10:27:10]wFMCommunicate OK [10:27:10]SAM_PROTO_SignData done [10:27:10]FM_MakeSignedData done [10:27:10]CreateOFDProtocolMessage [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 11 00 00 [10:27:10]Write to MH i2c: E2 08 00 5E 29 80 11 00 00 00 00 00 00 01 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 17 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 17 00 5E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [10:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:27:10]wFMCommunicate OK [10:27:10]CreateOFDProtocolMessage done [10:27:10]OFDSenderStorePacket 139627 [10:27:10]StoreOFDPacket docnum=139627 [10:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 4E 07 01 D4 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7F 6F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 21 02 00 35 04 06 00 7C BA 11 E9 C9 3F 7B 1B 6B ED 31 DE 48 CB [10:27:10]CheckFolder [10:27:10]dirname=/storage/ofd_packets [10:27:10]CheckFolder done [10:27:10]ProducePacketName [10:27:10]name=ofd_packets/00139627 [10:27:10]NVStorageSaveData ofd_packets/00139627 [10:27:10]File name is /storage/ofd_packets/00139627 [10:27:10]Write 301 bytes [10:27:10]NVStorageSaveData done [10:27:10]OFDSenderStorePacket done [10:27:10]KKMCreateOFDPacket done [10:27:10]NVStorageSaveData kkm_last_timestamp [10:27:10]File name is /storage/kkm_last_timestamp [10:27:10]Write 4 bytes [10:27:10]NVStorageSaveData done [10:27:10]ExternCall_PrintAddStr [10:27:10]wPrintStart [10:27:10]Write to MH i2c: 01 00 00 5F 29 88 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 07 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 07 00 5F 29 00 00 00 00 00 FF 0F 9D [10:27:10]RasterBufferAndPrint [10:27:10]line Счет N : (1)593473 [10:27:10]line ИНН: 02508201610067 [10:27:10]line Контрольно-Кассовый Чек [10:27:10]line ПРОДАЖА [10:27:10]line ТРК (МРК, ГНК) : 32 [10:27:10]line Товар: 2710124130 [10:27:10]line Аи-92-К-5 [10:27:10]line 4.430 * 67.80 [10:27:10]line = 300.35 [10:27:10]line НДС 12% НСП 1% [10:27:10]line > о реализуемом товаре [10:27:10]line ОКРУГЛЕНИЕ: -0.35 [10:27:10]line ИТОГО: 300.00 [10:27:10]line Внесено: 300.00 [10:27:10]line СДАЧА: 0.00 [10:27:10]line НСП 1% : 2.66 [10:27:10]line НДС 12% : 31.90 [10:27:10]line Наличными: 300.00 [10:27:10]line Безнал.: 0.00 [10:27:10]line Место: АЗС № 136 "Партнер Нефть" [10:27:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:27:10]line СНО: Общий режим [10:27:10]line Чек 99 20.08.2024 10:27 [10:27:10]line Смена: 453 ФФД: 1.0 [10:27:10]line ЗНМ: 0300000067 [10:27:10]line РНМ: 0000000000092569 [10:27:10]line Версия ККМ: 001 [10:27:10]line ФМ: 0000000000871776 [10:27:10]line ФД: 139627 [10:27:10]line ФПД: 137138606295359 [10:27:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T102711&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139627&fm=137138606295359&tin=02508201610067®Number=0000000000092569&sum=30000 [10:27:10]OFD Sender: Processing packet 139627 [packets to send 137, broken 136] [10:27:10]ProducePacketName [10:27:10]name=ofd_packets/00139627 [10:27:10]OFD Sender: To server: pG, [10:27:10]CommunicateWithHost lk.salyk.kg:30040 [10:27:10]ConnectInit lk.salyk.kg [10:27:10]written 0, free lines is 4095 [10:27:10]Connected sock=10 [10:27:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 4E 07 01 D4 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7F 6F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 21 02 00 35 04 06 00 7C BA 11 E9 C9 3F 7B 1B 6B ED 31 DE 48 CB [10:27:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B1 46 47 00 C8 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 21 02 00 F4 03 04 00 13 16 C4 66 B6 04 01 00 00 21 C7 8F 40 FE 6C 07 86 [10:27:11]CommunicateWithHost err = 0 [10:27:11]CheckOFDResponse [10:27:11]1017 (14) - 77093643461234 [10:27:11]1041 (16) - 0000000000871776 [10:27:11]1040 (4) - 139627 [10:27:11]1012 (4) - 20.08.2024 04:05 [10:27:11]1206 (1) - 0 [10:27:11]OFD Sender: Remove packet 139627 [10:27:11]ProducePacketName [10:27:11]name=ofd_packets/00139627 [10:27:11]NVStorageDeleteData [10:27:11]Write to MH i2c: 01 00 00 8A 29 B3 [10:27:11]Write i2c OK [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: 01 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: 01 07 00 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: 01 07 00 8A 29 00 00 00 00 00 C2 0C 88 [10:27:11]RasterBufferAndPrint [10:27:11]line [10:27:11]line [10:27:11]line [10:27:11]line [10:27:11]line [10:27:11]written 0, free lines is 3271 [10:27:11]MH_Cut [10:27:11]Write to MH i2c: D1 01 00 91 29 01 8C [10:27:11]Write i2c OK [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: D1 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: D1 01 00 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: D1 01 00 91 29 00 8B [10:27:11]Write to MH i2c: 01 00 00 92 29 BB [10:27:11]Write i2c OK [10:27:11]MH_I2C_Read... [10:27:11]OFD Sender: No OFD packet to send [10:27:11]*** Cut start [10:27:11]*** Partial cut [10:27:11]*** CUTSNS_PIN = 1 [10:27:11]*** CUTSNS_PIN = 0 [10:27:12]*** Brake cut motor [10:27:12]Read from MH i2c: 01 [10:27:12]MH_I2C_Read... [10:27:12]*** Stop cut motor [10:27:12]*** Cut end [10:27:12]Read from MH i2c: 01 07 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: 01 07 00 92 29 00 00 00 00 00 FF 0F D0 [10:27:12]process_action close_receipt done [10:27:12]requested_data is exist [10:27:12]produce_requested_data [10:27:12]requested_item fm.sn is exist - process it [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 11 00 00 [10:27:12]Write to MH i2c: E2 08 00 93 29 80 11 00 00 00 00 00 00 36 [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 17 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 17 00 93 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8D [10:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:27:12]wFMCommunicate OK [10:27:12]requested_item fd.num is exist - process it [10:27:12]SAM_PROTO_GetFieldsCounters [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 13 00 00 [10:27:12]Write to MH i2c: E2 08 00 94 29 80 13 00 00 00 00 00 00 39 [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 62 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 62 00 94 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:12]wFMCommunicate OK [10:27:12]SAM_PROTO_GetFieldsCounters done [10:27:12]requested_item shift.num is exist - process it [10:27:12]requested_item shift.opened is exist - process it [10:27:12]req_shift_opened [10:27:12]FM_GetShiftState [10:27:12]SAM_PROTO_GetShiftState [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 13 01 00 [10:27:12]Write to MH i2c: E2 08 00 95 29 80 13 01 00 00 00 00 00 3B [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 0E 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 0E 00 95 29 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CC [10:27:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:27:12]wFMCommunicate OK [10:27:12]SAM_PROTO_GetShiftState done [10:27:12]FM_GetShiftState done [10:27:12]req_shift_opened done [10:27:12]requested_item shift.open_date is exist - process it [10:27:12]req_shift_open_date [10:27:12]req_shift_open_date done [10:27:12]produce_requested_data done [10:27:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139627,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:27:12]process_action_free close_receipt [10:27:12]json_value_free [10:27:12]json_value_free done [10:27:12]process_json_proto returns [10:27:12]Send response to host [10:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139627,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:27:12]free response buf [10:27:12]execute_script done [10:27:12]execute_script returns [10:27:12]free content buf [10:27:12]Sock 7.Close socket [10:27:12]Sock 7.Thread stoped [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:25]accept exits with 9 [10:29:25]New connection [10:29:25]New thread 3067215204 created [10:29:25]Thread 3067071844 joined [10:29:25]Waiting for new connection... [10:29:25] Sock 9.Parse request [10:29:25]Sock 9.Check first char [10:29:25]Sock 9.First char is OK [10:29:25]request: POST /json_proto HTTP/1.0 [10:29:25]Method: POST [10:29:25]URL: /json_proto [10:29:25]Method is POST - this is cgi request [10:29:25]url: /json_proto [10:29:25]query_string will be loaded in cgi processing [10:29:25]execute_cgi json_proto POST (null) [10:29:25]execute_cgi path=json_proto method=POST [10:29:25]POST find Content-Length [10:29:25]Host: 172.17.45.67:8080 [10:29:25]Content-Length: 663 [10:29:25]Content-Type: application/json [10:29:25] [10:29:25]POST finish read [10:29:25]Found Content-Length = 663 [10:29:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:25]execute_script... [10:29: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)593474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:25]POST & json_proto [10:29:25]process_json_proto [10:29:25]json parsed OK: [10:29:25]protocol is kg_v1.0 [10:29:25]action value=close_receipt [10:29:25]process_action close_receipt [10:29:25]cmd_close_receipt [10:29:25]MH_GetDate [10:29:25]Write to MH i2c: F0 00 00 96 29 AE [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: F0 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: F0 09 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: F0 09 00 96 29 00 08 70 C4 66 5F 7F 2B 66 C8 [10:29:25]GetLastDocTimeStamp 1724149631 [10:29:25]current date 1724149768 [10:29:25]FM_GetShiftState [10:29:25]SAM_PROTO_GetShiftState [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 13 01 00 [10:29:25]Write to MH i2c: E2 08 00 97 29 80 13 01 00 00 00 00 00 3D [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0E 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0E 00 97 29 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CE [10:29:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_GetShiftState done [10:29:25]FM_GetShiftState done [10:29:25]opened in 1724113785 [10:29:25]opened+sec_in_day 1724200185 [10:29:25]quantity*price = 100035 [10:29:25]sum+1 = 100036 [10:29:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 100 20.08.2024 10:29 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139628 ФПД: 93031913734129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T102928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139628&fm=93031913734129&tin=02508201610067®Number=0000000000092569&sum=100000 [10:29:26]StoreToDocumentArchive [10:29:26]shift 453 fd 139628 [10:29:26]save to /storage/0453/doc_00139628 [10:29:26]save last doc name /storage/0453/doc_00139628 to /storage/kkm_last_doc_name [10:29:26]save OK [10:29:26]Clear old archive folders... [10:29:26]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:29:26]tlvbuf is 00D86C20 [10:29:26]SAM_PROTO_ClearQueue [10:29:26]wFMCommunicate request_size=4 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 09 00 00 [10:29:26]Write to MH i2c: E2 08 00 A4 29 80 09 00 00 00 00 00 00 3F [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:26]Read from MH i2c: E2 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 A4 29 00 90 00 41 [10:29:26]RAPDU: 90 00 [10:29:26]wFMCommunicate OK [10:29:26]SAM_PROTO_ClearQueue done [10:29:26]KKMCreateOFDPacket [10:29:26]OFDProtocolAddRootSTLVToBuf [10:29:26]FM_MakeSignedData [10:29:26]FM_MakeSignedData [10:29:26]SAM_PROTO_SignData [10:29:26]wFMCommunicate request_size=4 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 0D 01 02 [10:29:26]Write to MH i2c: E2 08 00 A5 29 80 0D 01 02 00 00 00 00 47 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]OFD Sender: No OFD packet to send [10:29:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:26]Read from MH i2c: E2 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: E2 03 00 A5 29 00 90 00 42 [10:29:26]RAPDU: 90 00 [10:29:26]wFMCommunicate OK [10:29:26]wFMCommunicate request_size=253 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 08 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 21 02 00 35 04 06 00 54 9C AE 2B BF F1 [10:29:26]Write to MH i2c: E2 00 01 A6 29 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 08 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 21 02 00 35 04 06 00 54 9C AE 2B BF F1 00 00 93 [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 03 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 03 00 A6 29 00 90 00 43 [10:29:27]RAPDU: 90 00 [10:29:27]wFMCommunicate OK [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 0D 03 02 [10:29:27]Write to MH i2c: E2 08 00 A7 29 80 0D 03 02 00 00 00 00 4B [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0B 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0B 00 A7 29 00 CB 39 9E 3F F6 62 46 E0 90 00 AB [10:29:27]RAPDU: CB 39 9E 3F F6 62 46 E0 90 00 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_SignData done [10:29:27]FM_MakeSignedData done [10:29:27]CreateOFDProtocolMessage [10:29:27]wFMCommunicate request_size=4 [10:29:27]MH_SAM_APDU [10:29:27]CAPDU: 80 11 00 00 [10:29:27]Write to MH i2c: E2 08 00 A8 29 80 11 00 00 00 00 00 00 4B [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 17 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 17 00 A8 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [10:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:29:27]wFMCommunicate OK [10:29:27]CreateOFDProtocolMessage done [10:29:27]OFDSenderStorePacket 139628 [10:29:27]StoreOFDPacket docnum=139628 [10:29:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 5E 08 00 01 69 77 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 08 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 21 02 00 35 04 06 00 54 9C AE 2B BF F1 CB 39 9E 3F F6 62 46 E0 [10:29:27]CheckFolder [10:29:27]dirname=/storage/ofd_packets [10:29:27]CheckFolder done [10:29:27]ProducePacketName [10:29:27]name=ofd_packets/00139628 [10:29:27]NVStorageSaveData ofd_packets/00139628 [10:29:27]File name is /storage/ofd_packets/00139628 [10:29:27]Write 294 bytes [10:29:27]NVStorageSaveData done [10:29:27]OFDSenderStorePacket done [10:29:27]KKMCreateOFDPacket done [10:29:27]NVStorageSaveData kkm_last_timestamp [10:29:27]File name is /storage/kkm_last_timestamp [10:29:27]Write 4 bytes [10:29:27]NVStorageSaveData done [10:29:27]ExternCall_PrintAddStr [10:29:27]wPrintStart [10:29:27]Write to MH i2c: 01 00 00 A9 29 D2 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 A9 29 00 00 00 00 00 FF 0F E7 [10:29:27]RasterBufferAndPrint [10:29:27]line Счет N : (1)593474 [10:29:27]line ИНН: 02508201610067 [10:29:27]line Контрольно-Кассовый Чек [10:29:27]line ПРОДАЖА [10:29:27]line ТРК (МРК, ГНК) : 63 [10:29:27]line Товар: 2710124130 [10:29:27]line SU-92 [10:29:27]line 14.540 * 68.80 [10:29:27]line = 1000.35 [10:29:27]line НДС 12% НСП 1% [10:29:27]line > о реализуемом товаре [10:29:27]line ОКРУГЛЕНИЕ: -0.35 [10:29:27]line ИТОГО: 1000.00 [10:29:27]line Внесено: 1000.00 [10:29:27]line СДАЧА: 0.00 [10:29:27]line НСП 1% : 8.85 [10:29:27]line НДС 12% : 106.23 [10:29:27]line Наличными: 1000.00 [10:29:27]line Безнал.: 0.00 [10:29:27]line Место: АЗС № 136 "Партнер Нефть" [10:29:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:29:27]line СНО: Общий режим [10:29:27]line Чек 100 20.08.2024 10:29 [10:29:27]line Смена: 453 ФФД: 1.0 [10:29:27]line ЗНМ: 0300000067 [10:29:27]line РНМ: 0000000000092569 [10:29:27]line Версия ККМ: 001 [10:29:27]line ФМ: 0000000000871776 [10:29:27]line ФД: 139628 [10:29:27]line ФПД: 93031913734129 [10:29:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T102928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139628&fm=93031913734129&tin=02508201610067®Number=0000000000092569&sum=100000 [10:29:27]OFD Sender: Processing packet 139628 [packets to send 137, broken 136] [10:29:27]ProducePacketName [10:29:27]name=ofd_packets/00139628 [10:29:27]OFD Sender: To server: pG, [10:29:27]CommunicateWithHost lk.salyk.kg:30040 [10:29:27]ConnectInit lk.salyk.kg [10:29:27]written 0, free lines is 4095 [10:29:27]Connected sock=7 [10:29:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 5E 08 00 01 69 77 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 08 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 21 02 00 35 04 06 00 54 9C AE 2B BF F1 CB 39 9E 3F F6 62 46 E0 [10:29:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 80 B7 47 00 1F 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 21 02 00 F4 03 04 00 9C 16 C4 66 B6 04 01 00 00 DF 84 46 4C BC 7F 93 CD [10:29:27]CommunicateWithHost err = 0 [10:29:27]CheckOFDResponse [10:29:27]1017 (14) - 77093643461234 [10:29:27]1041 (16) - 0000000000871776 [10:29:27]1040 (4) - 139628 [10:29:27]1012 (4) - 20.08.2024 04:07 [10:29:27]1206 (1) - 0 [10:29:27]OFD Sender: Remove packet 139628 [10:29:27]ProducePacketName [10:29:27]name=ofd_packets/00139628 [10:29:27]NVStorageDeleteData [10:29:28]Write to MH i2c: 01 00 00 D4 29 FD [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: 01 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: 01 07 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: 01 07 00 D4 29 00 00 00 00 00 D8 0C E8 [10:29:28]RasterBufferAndPrint [10:29:28]line [10:29:28]line [10:29:28]line [10:29:28]line [10:29:28]line [10:29:28]written 0, free lines is 3295 [10:29:28]MH_Cut [10:29:28]Write to MH i2c: D1 01 00 DB 29 01 D6 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: D1 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: D1 01 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: D1 01 00 DB 29 00 D5 [10:29:28]Write to MH i2c: 01 00 00 DC 29 05 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]OFD Sender: No OFD packet to send [10:29:28]*** Cut start [10:29:28]*** Partial cut [10:29:28]*** CUTSNS_PIN = 1 [10:29:28]*** CUTSNS_PIN = 0 [10:29:28]*** Brake cut motor [10:29:29]Read from MH i2c: 01 [10:29:29]MH_I2C_Read... [10:29:29]*** Stop cut motor [10:29:29]*** Cut end [10:29:29]Read from MH i2c: 01 07 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: 01 07 00 DC 29 00 00 00 00 00 FF 0F 1A [10:29:29]process_action close_receipt done [10:29:29]requested_data is exist [10:29:29]produce_requested_data [10:29:29]requested_item fm.sn is exist - process it [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 11 00 00 [10:29:29]Write to MH i2c: E2 08 00 DD 29 80 11 00 00 00 00 00 00 80 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 17 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 17 00 DD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D7 [10:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:29:29]wFMCommunicate OK [10:29:29]requested_item fd.num is exist - process it [10:29:29]SAM_PROTO_GetFieldsCounters [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 13 00 00 [10:29:29]Write to MH i2c: E2 08 00 DE 29 80 13 00 00 00 00 00 00 83 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 62 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 62 00 DE 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [10:29:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:29]wFMCommunicate OK [10:29:29]SAM_PROTO_GetFieldsCounters done [10:29:29]requested_item shift.num is exist - process it [10:29:29]requested_item shift.opened is exist - process it [10:29:29]req_shift_opened [10:29:29]FM_GetShiftState [10:29:29]SAM_PROTO_GetShiftState [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 13 01 00 [10:29:29]Write to MH i2c: E2 08 00 DF 29 80 13 01 00 00 00 00 00 85 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 0E 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 0E 00 DF 29 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 16 [10:29:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:29:29]wFMCommunicate OK [10:29:29]SAM_PROTO_GetShiftState done [10:29:29]FM_GetShiftState done [10:29:29]req_shift_opened done [10:29:29]requested_item shift.open_date is exist - process it [10:29:29]req_shift_open_date [10:29:29]req_shift_open_date done [10:29:29]produce_requested_data done [10:29:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139628,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:29:29]process_action_free close_receipt [10:29:29]json_value_free [10:29:29]json_value_free done [10:29:29]process_json_proto returns [10:29:29]Send response to host [10:29:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139628,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:29:29]free response buf [10:29:29]execute_script done [10:29:29]execute_script returns [10:29:29]free content buf [10:29:29]Sock 9.Close socket [10:29:29]Sock 9.Thread stoped [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:41]int [10:29:41]Write to MH i2c: 01 00 00 E0 29 09 [10:29:41]*** FLAG_PRN_KEY set [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 07 00 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 07 00 E0 29 00 08 00 00 00 FF 0F 26 [10:29:41]state=0 [10:29:41]Key pressed [10:29:41]Feed [10:29:41]Write to MH i2c: D8 00 00 E1 29 E1 [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: D8 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: D8 01 00 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: D8 01 00 E1 29 00 E2 [10:29:41]int [10:29:41]Write to MH i2c: 01 00 00 E2 29 0B [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 07 00 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 07 00 E2 29 00 48 00 00 00 3C 00 96 [10:29:41]state=2 [10:29:41]Key pressed [10:29:41]int [10:29:41]Write to MH i2c: 01 00 00 E3 29 0C [10:29:41]*** FLAG_PRN_KEY reset [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 07 00 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: 01 07 00 E3 29 00 00 00 00 00 FC 0F 1E [10:29:41]state=2 [10:29:41]Stop feed [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:31]accept exits with 10 [10:30:31]New connection [10:30:31]New thread 3067071844 created [10:30:31]Thread 3067215204 joined [10:30:31]Waiting for new connection... [10:30:31] Sock 10.Parse request [10:30:31]Sock 10.Check first char [10:30:31]Sock 10.First char is OK [10:30:31]request: POST /json_proto HTTP/1.0 [10:30:31]Method: POST [10:30:31]URL: /json_proto [10:30:31]Method is POST - this is cgi request [10:30:31]url: /json_proto [10:30:31]query_string will be loaded in cgi processing [10:30:31]execute_cgi json_proto POST (null) [10:30:31]execute_cgi path=json_proto method=POST [10:30:31]POST find Content-Length [10:30:31]Host: 172.17.45.67:8080 [10:30:31]Content-Length: 682 [10:30:31]Content-Type: application/json [10:30:31] [10:30:31]POST finish read [10:30:31]Found Content-Length = 682 [10:30:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:31]execute_script... [10:30: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)593475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:31]POST & json_proto [10:30:31]process_json_proto [10:30:31]json parsed OK: [10:30:31]protocol is kg_v1.0 [10:30:31]action value=close_receipt [10:30:31]process_action close_receipt [10:30:31]cmd_close_receipt [10:30:31]MH_GetDate [10:30:31]Write to MH i2c: F0 00 00 E4 29 FC [10:30:31]Write i2c OK [10:30:31]MH_I2C_Read... [10:30:31]Read from MH i2c: F0 [10:30:31]MH_I2C_Read... [10:30:31]Read from MH i2c: F0 09 00 [10:30:31]MH_I2C_Read... [10:30:31]Read from MH i2c: F0 09 00 E4 29 00 4B 70 C4 66 5F 7F 2B 66 59 [10:30:31]GetLastDocTimeStamp 1724149768 [10:30:31]current date 1724149835 [10:30:31]FM_GetShiftState [10:30:31]SAM_PROTO_GetShiftState [10:30:31]wFMCommunicate request_size=4 [10:30:31]MH_SAM_APDU [10:30:31]CAPDU: 80 13 01 00 [10:30:31]Write to MH i2c: E2 08 00 E5 29 80 13 01 00 00 00 00 00 8B [10:30:31]Write i2c OK [10:30:31]MH_I2C_Read... [10:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:31]Read from MH i2c: E2 [10:30:31]MH_I2C_Read... [10:30:31]Read from MH i2c: E2 0E 00 [10:30:31]MH_I2C_Read... [10:30:31]Read from MH i2c: E2 0E 00 E5 29 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1C [10:30:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:30:31]wFMCommunicate OK [10:30:31]SAM_PROTO_GetShiftState done [10:30:31]FM_GetShiftState done [10:30:31]opened in 1724113785 [10:30:31]opened+sec_in_day 1724200185 [10:30:31]quantity*price = 100005 [10:30:31]sum+1 = 100006 [10:30:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 101 20.08.2024 10:30 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139629 ФПД: 18847156573198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103035&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139629&fm=18847156573198&tin=02508201610067®Number=0000000000092569&sum=100000 [10:30:33]StoreToDocumentArchive [10:30:33]shift 453 fd 139629 [10:30:33]save to /storage/0453/doc_00139629 [10:30:33]save last doc name /storage/0453/doc_00139629 to /storage/kkm_last_doc_name [10:30:33]save OK [10:30:33]Clear old archive folders... [10:30:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:33]tlvbuf is 00DDAF10 [10:30:33]SAM_PROTO_ClearQueue [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 09 00 00 [10:30:33]Write to MH i2c: E2 08 00 F2 29 80 09 00 00 00 00 00 00 8D [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 F2 29 00 90 00 8F [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]SAM_PROTO_ClearQueue done [10:30:33]KKMCreateOFDPacket [10:30:33]OFDProtocolAddRootSTLVToBuf [10:30:33]FM_MakeSignedData [10:30:33]FM_MakeSignedData [10:30:33]SAM_PROTO_SignData [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 01 02 [10:30:33]Write to MH i2c: E2 08 00 F3 29 80 0D 01 02 00 00 00 00 95 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 F3 29 00 90 00 90 [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]wFMCommunicate request_size=255 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 4B 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 21 02 00 35 04 06 00 11 [10:30:33]Write to MH i2c: E2 02 01 F4 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 4B 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 21 02 00 35 04 06 00 11 00 00 5E [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 F4 29 00 90 00 91 [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]wFMCommunicate request_size=10 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 02 02 05 24 32 12 94 0E [10:30:33]Write to MH i2c: E2 0D 00 F5 29 80 0D 02 02 05 00 24 32 12 94 0E 00 00 AC [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 F5 29 00 90 00 92 [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 03 02 [10:30:33]Write to MH i2c: E2 08 00 F6 29 80 0D 03 02 00 00 00 00 9A [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:33]OFD Sender: No OFD packet to send [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 0B 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 0B 00 F6 29 00 10 3D 50 C6 8C 8D 6A 0D 90 00 8E [10:30:33]RAPDU: 10 3D 50 C6 8C 8D 6A 0D 90 00 [10:30:33]wFMCommunicate OK [10:30:33]SAM_PROTO_SignData done [10:30:33]FM_MakeSignedData done [10:30:33]CreateOFDProtocolMessage [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 11 00 00 [10:30:33]Write to MH i2c: E2 08 00 F7 29 80 11 00 00 00 00 00 00 9A [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 17 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 17 00 F7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [10:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:30:33]wFMCommunicate OK [10:30:33]CreateOFDProtocolMessage done [10:30:33]OFDSenderStorePacket 139629 [10:30:33]StoreOFDPacket docnum=139629 [10:30:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9F 80 07 01 59 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 4B 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 21 02 00 35 04 06 00 11 24 32 12 94 0E 10 3D 50 C6 8C 8D 6A 0D [10:30:33]CheckFolder [10:30:33]dirname=/storage/ofd_packets [10:30:33]CheckFolder done [10:30:33]ProducePacketName [10:30:33]name=ofd_packets/00139629 [10:30:33]NVStorageSaveData ofd_packets/00139629 [10:30:33]File name is /storage/ofd_packets/00139629 [10:30:33]Write 301 bytes [10:30:33]NVStorageSaveData done [10:30:33]OFDSenderStorePacket done [10:30:33]KKMCreateOFDPacket done [10:30:33]NVStorageSaveData kkm_last_timestamp [10:30:33]File name is /storage/kkm_last_timestamp [10:30:33]Write 4 bytes [10:30:33]NVStorageSaveData done [10:30:33]ExternCall_PrintAddStr [10:30:33]wPrintStart [10:30:33]Write to MH i2c: 01 00 00 F8 29 21 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: 01 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: 01 07 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: 01 07 00 F8 29 00 00 00 00 00 FF 0F 36 [10:30:33]RasterBufferAndPrint [10:30:33]line Счет N : (1)593475 [10:30:33]line ИНН: 02508201610067 [10:30:33]line Контрольно-Кассовый Чек [10:30:33]line ПРОДАЖА [10:30:33]line ТРК (МРК, ГНК) : 32 [10:30:33]line Товар: 2710124130 [10:30:33]line Аи-92-К-5 [10:30:33]line 14.750 * 67.80 [10:30:33]line = 1000.05 [10:30:33]line НДС 12% НСП 1% [10:30:33]line > о реализуемом товаре [10:30:33]line ОКРУГЛЕНИЕ: -0.05 [10:30:33]line ИТОГО: 1000.00 [10:30:33]line Внесено: 1000.00 [10:30:33]line СДАЧА: 0.00 [10:30:33]line НСП 1% : 8.85 [10:30:33]line НДС 12% : 106.20 [10:30:33]line Наличными: 1000.00 [10:30:33]line Безнал.: 0.00 [10:30:33]line Место: АЗС № 136 "Партнер Нефть" [10:30:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:30:33]line СНО: Общий режим [10:30:33]line Чек 101 20.08.2024 10:30 [10:30:33]line Смена: 453 ФФД: 1.0 [10:30:33]line ЗНМ: 0300000067 [10:30:33]line РНМ: 0000000000092569 [10:30:33]line Версия ККМ: 001 [10:30:33]line ФМ: 0000000000871776 [10:30:33]line ФД: 139629 [10:30:33]line ФПД: 18847156573198 [10:30:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103035&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139629&fm=18847156573198&tin=02508201610067®Number=0000000000092569&sum=100000 [10:30:33]OFD Sender: Processing packet 139629 [packets to send 137, broken 136] [10:30:33]ProducePacketName [10:30:33]name=ofd_packets/00139629 [10:30:33]OFD Sender: To server: pG, [10:30:33]CommunicateWithHost lk.salyk.kg:30040 [10:30:33]ConnectInit lk.salyk.kg [10:30:33]written 0, free lines is 4095 [10:30:34]Connected sock=9 [10:30:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9F 80 07 01 59 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 4B 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 21 02 00 35 04 06 00 11 24 32 12 94 0E 10 3D 50 C6 8C 8D 6A 0D [10:30:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 75 65 47 00 A3 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 21 02 00 F4 03 04 00 DE 16 C4 66 B6 04 01 00 00 58 26 8A 66 3E 5B 70 64 [10:30:34]CommunicateWithHost err = 0 [10:30:34]CheckOFDResponse [10:30:34]1017 (14) - 77093643461234 [10:30:34]1041 (16) - 0000000000871776 [10:30:34]1040 (4) - 139629 [10:30:34]1012 (4) - 20.08.2024 04:09 [10:30:34]1206 (1) - 0 [10:30:34]OFD Sender: Remove packet 139629 [10:30:34]ProducePacketName [10:30:34]name=ofd_packets/00139629 [10:30:34]NVStorageDeleteData [10:30:34]Write to MH i2c: 01 00 00 23 2A 4D [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 07 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 07 00 23 2A 00 00 00 00 00 DE 0C 3E [10:30:34]RasterBufferAndPrint [10:30:34]line [10:30:34]line [10:30:34]line [10:30:34]line [10:30:34]line [10:30:34]written 0, free lines is 3300 [10:30:34]MH_Cut [10:30:34]Write to MH i2c: D1 01 00 2A 2A 01 26 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: D1 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: D1 01 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: D1 01 00 2A 2A 00 25 [10:30:34]Write to MH i2c: 01 00 00 2B 2A 55 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]OFD Sender: No OFD packet to send [10:30:35]*** Cut start [10:30:35]*** Partial cut [10:30:35]*** CUTSNS_PIN = 1 [10:30:35]*** CUTSNS_PIN = 0 [10:30:35]*** Brake cut motor [10:30:35]Read from MH i2c: 01 [10:30:35]MH_I2C_Read... [10:30:35]*** Stop cut motor [10:30:35]*** Cut end [10:30:35]Read from MH i2c: 01 07 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: 01 07 00 2B 2A 00 00 00 00 00 FF 0F 6A [10:30:35]process_action close_receipt done [10:30:35]requested_data is exist [10:30:35]produce_requested_data [10:30:35]requested_item fm.sn is exist - process it [10:30:35]wFMCommunicate request_size=4 [10:30:35]MH_SAM_APDU [10:30:35]CAPDU: 80 11 00 00 [10:30:35]Write to MH i2c: E2 08 00 2C 2A 80 11 00 00 00 00 00 00 D0 [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:35]Read from MH i2c: E2 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 17 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 17 00 2C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [10:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:30:35]wFMCommunicate OK [10:30:35]requested_item fd.num is exist - process it [10:30:35]SAM_PROTO_GetFieldsCounters [10:30:35]wFMCommunicate request_size=4 [10:30:35]MH_SAM_APDU [10:30:35]CAPDU: 80 13 00 00 [10:30:35]Write to MH i2c: E2 08 00 2D 2A 80 13 00 00 00 00 00 00 D3 [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:35]Read from MH i2c: E2 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 62 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: E2 62 00 2D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [10:30:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:35]wFMCommunicate OK [10:30:35]SAM_PROTO_GetFieldsCounters done [10:30:35]requested_item shift.num is exist - process it [10:30:35]requested_item shift.opened is exist - process it [10:30:35]req_shift_opened [10:30:35]FM_GetShiftState [10:30:35]SAM_PROTO_GetShiftState [10:30:35]wFMCommunicate request_size=4 [10:30:35]MH_SAM_APDU [10:30:35]CAPDU: 80 13 01 00 [10:30:35]Write to MH i2c: E2 08 00 2E 2A 80 13 01 00 00 00 00 00 D5 [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:36]Read from MH i2c: E2 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 0E 00 [10:30:36]MH_I2C_Read... [10:30:36]Read from MH i2c: E2 0E 00 2E 2A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 66 [10:30:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:30:36]wFMCommunicate OK [10:30:36]SAM_PROTO_GetShiftState done [10:30:36]FM_GetShiftState done [10:30:36]req_shift_opened done [10:30:36]requested_item shift.open_date is exist - process it [10:30:36]req_shift_open_date [10:30:36]req_shift_open_date done [10:30:36]produce_requested_data done [10:30:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139629,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:30:36]process_action_free close_receipt [10:30:36]json_value_free [10:30:36]json_value_free done [10:30:36]process_json_proto returns [10:30:36]Send response to host [10:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139629,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:30:36]free response buf [10:30:36]execute_script done [10:30:36]execute_script returns [10:30:36]free content buf [10:30:36]Sock 10.Close socket [10:30:36]Sock 10.Thread stoped [10:30:39]OFD Sender: No OFD packet to send [10:30:41]accept exits with 7 [10:30:41]New connection [10:30:41]New thread 3067215204 created [10:30:41]Thread 3067071844 joined [10:30:41]Waiting for new connection... [10:30:41] Sock 7.Parse request [10:30:41]Sock 7.Check first char [10:30:41]Sock 7.First char is OK [10:30:41]request: POST /json_proto HTTP/1.0 [10:30:41]Method: POST [10:30:41]URL: /json_proto [10:30:41]Method is POST - this is cgi request [10:30:41]url: /json_proto [10:30:41]query_string will be loaded in cgi processing [10:30:41]execute_cgi json_proto POST (null) [10:30:41]execute_cgi path=json_proto method=POST [10:30:41]POST find Content-Length [10:30:41]Host: 172.17.45.67:8080 [10:30:41]Content-Length: 678 [10:30:41]Content-Type: application/json [10:30:41] [10:30:41]POST finish read [10:30:41]Found Content-Length = 678 [10:30:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:41]execute_script... [10:30: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)593476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:41]POST & json_proto [10:30:41]process_json_proto [10:30:41]json parsed OK: [10:30:41]protocol is kg_v1.0 [10:30:41]action value=close_receipt [10:30:41]process_action close_receipt [10:30:41]cmd_close_receipt [10:30:41]MH_GetDate [10:30:41]Write to MH i2c: F0 00 00 2F 2A 48 [10:30:41]Write i2c OK [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: F0 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: F0 09 00 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: F0 09 00 2F 2A 00 54 70 C4 66 5F 7F 2B 66 AE [10:30:41]GetLastDocTimeStamp 1724149835 [10:30:41]current date 1724149844 [10:30:41]FM_GetShiftState [10:30:41]SAM_PROTO_GetShiftState [10:30:41]wFMCommunicate request_size=4 [10:30:41]MH_SAM_APDU [10:30:41]CAPDU: 80 13 01 00 [10:30:41]Write to MH i2c: E2 08 00 30 2A 80 13 01 00 00 00 00 00 D7 [10:30:41]Write i2c OK [10:30:41]MH_I2C_Read... [10:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:41]Read from MH i2c: E2 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 0E 00 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 0E 00 30 2A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 68 [10:30:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:30:41]wFMCommunicate OK [10:30:41]SAM_PROTO_GetShiftState done [10:30:41]FM_GetShiftState done [10:30:41]opened in 1724113785 [10:30:41]opened+sec_in_day 1724200185 [10:30:41]quantity*price = 70037 [10:30:41]sum+1 = 70038 [10:30:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 102 20.08.2024 10:30 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139630 ФПД: 253567499235471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139630&fm=253567499235471&tin=02508201610067®Number=0000000000092569&sum=70000 [10:30:42]StoreToDocumentArchive [10:30:42]shift 453 fd 139630 [10:30:42]save to /storage/0453/doc_00139630 [10:30:42]save last doc name /storage/0453/doc_00139630 to /storage/kkm_last_doc_name [10:30:42]save OK [10:30:42]Clear old archive folders... [10:30:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:42]tlvbuf is B6F1A350 [10:30:42]SAM_PROTO_ClearQueue [10:30:42]wFMCommunicate request_size=4 [10:30:42]MH_SAM_APDU [10:30:42]CAPDU: 80 09 00 00 [10:30:42]Write to MH i2c: E2 08 00 3D 2A 80 09 00 00 00 00 00 00 D9 [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:42]Read from MH i2c: E2 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 03 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 03 00 3D 2A 00 90 00 DB [10:30:42]RAPDU: 90 00 [10:30:42]wFMCommunicate OK [10:30:42]SAM_PROTO_ClearQueue done [10:30:42]KKMCreateOFDPacket [10:30:42]OFDProtocolAddRootSTLVToBuf [10:30:42]FM_MakeSignedData [10:30:42]FM_MakeSignedData [10:30:42]SAM_PROTO_SignData [10:30:42]wFMCommunicate request_size=4 [10:30:42]MH_SAM_APDU [10:30:42]CAPDU: 80 0D 01 02 [10:30:42]Write to MH i2c: E2 08 00 3E 2A 80 0D 01 02 00 00 00 00 E1 [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:42]Read from MH i2c: E2 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 03 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: E2 03 00 3E 2A 00 90 00 DC [10:30:42]RAPDU: 90 00 [10:30:42]wFMCommunicate OK [10:30:42]wFMCommunicate request_size=255 [10:30:42]MH_SAM_APDU [10:30:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 54 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 21 02 00 35 04 06 00 E6 [10:30:42]Write to MH i2c: E2 02 01 3F 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 54 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 21 02 00 35 04 06 00 E6 00 00 E2 [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:43]Read from MH i2c: E2 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 03 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 03 00 3F 2A 00 90 00 DD [10:30:43]RAPDU: 90 00 [10:30:43]wFMCommunicate OK [10:30:43]wFMCommunicate request_size=10 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 0D 02 02 05 9E 48 B7 F0 8F [10:30:43]Write to MH i2c: E2 0D 00 40 2A 80 0D 02 02 05 00 9E 48 B7 F0 8F 00 00 0A [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:43]Read from MH i2c: E2 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 03 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 03 00 40 2A 00 90 00 DE [10:30:43]RAPDU: 90 00 [10:30:43]wFMCommunicate OK [10:30:43]wFMCommunicate request_size=4 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 0D 03 02 [10:30:43]Write to MH i2c: E2 08 00 41 2A 80 0D 03 02 00 00 00 00 E6 [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:43]Read from MH i2c: E2 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 0B 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 0B 00 41 2A 00 60 4D DB EB 53 78 19 F8 90 00 36 [10:30:43]RAPDU: 60 4D DB EB 53 78 19 F8 90 00 [10:30:43]wFMCommunicate OK [10:30:43]SAM_PROTO_SignData done [10:30:43]FM_MakeSignedData done [10:30:43]CreateOFDProtocolMessage [10:30:43]wFMCommunicate request_size=4 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 11 00 00 [10:30:43]Write to MH i2c: E2 08 00 42 2A 80 11 00 00 00 00 00 00 E6 [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:43]Read from MH i2c: E2 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 17 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: E2 17 00 42 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3D [10:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:30:43]wFMCommunicate OK [10:30:43]CreateOFDProtocolMessage done [10:30:43]OFDSenderStorePacket 139630 [10:30:43]StoreOFDPacket docnum=139630 [10:30:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 41 40 07 01 34 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 54 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 21 02 00 35 04 06 00 E6 9E 48 B7 F0 8F 60 4D DB EB 53 78 19 F8 [10:30:43]CheckFolder [10:30:43]dirname=/storage/ofd_packets [10:30:43]CheckFolder done [10:30:43]ProducePacketName [10:30:43]name=ofd_packets/00139630 [10:30:43]NVStorageSaveData ofd_packets/00139630 [10:30:43]File name is /storage/ofd_packets/00139630 [10:30:43]Write 301 bytes [10:30:43]NVStorageSaveData done [10:30:43]OFDSenderStorePacket done [10:30:43]KKMCreateOFDPacket done [10:30:43]NVStorageSaveData kkm_last_timestamp [10:30:43]File name is /storage/kkm_last_timestamp [10:30:43]Write 4 bytes [10:30:43]NVStorageSaveData done [10:30:43]ExternCall_PrintAddStr [10:30:43]wPrintStart [10:30:43]Write to MH i2c: 01 00 00 43 2A 6D [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: 01 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: 01 07 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: 01 07 00 43 2A 00 00 00 00 00 FF 0F 82 [10:30:43]RasterBufferAndPrint [10:30:43]line Счет N : (1)593476 [10:30:43]line ИНН: 02508201610067 [10:30:43]line Контрольно-Кассовый Чек [10:30:43]line ПРОДАЖА [10:30:43]line ТРК (МРК, ГНК) : 42 [10:30:43]line Товар: 2710124130 [10:30:43]line Аи-92-К-5 [10:30:43]line 10.330 * 67.80 [10:30:43]line = 700.37 [10:30:43]line НДС 12% НСП 1% [10:30:43]line > о реализуемом товаре [10:30:43]line ОКРУГЛЕНИЕ: -0.37 [10:30:43]line ИТОГО: 700.00 [10:30:43]line Внесено: 700.00 [10:30:43]line СДАЧА: 0.00 [10:30:43]line НСП 1% : 6.20 [10:30:43]line НДС 12% : 74.38 [10:30:43]line Наличными: 700.00 [10:30:43]line Безнал.: 0.00 [10:30:43]line Место: АЗС № 136 "Партнер Нефть" [10:30:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:30:43]line СНО: Общий режим [10:30:43]line Чек 102 20.08.2024 10:30 [10:30:43]line Смена: 453 ФФД: 1.0 [10:30:43]line ЗНМ: 0300000067 [10:30:43]line РНМ: 0000000000092569 [10:30:43]line Версия ККМ: 001 [10:30:43]line ФМ: 0000000000871776 [10:30:43]line ФД: 139630 [10:30:43]line ФПД: 253567499235471 [10:30:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139630&fm=253567499235471&tin=02508201610067®Number=0000000000092569&sum=70000 [10:30:43]written 0, free lines is 4095 [10:30:43]OFD Sender: Processing packet 139630 [packets to send 137, broken 136] [10:30:43]ProducePacketName [10:30:43]name=ofd_packets/00139630 [10:30:43]OFD Sender: To server: pG, [10:30:43]CommunicateWithHost lk.salyk.kg:30040 [10:30:43]ConnectInit lk.salyk.kg [10:30:43]Connected sock=10 [10:30:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 41 40 07 01 34 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 54 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 21 02 00 35 04 06 00 E6 9E 48 B7 F0 8F 60 4D DB EB 53 78 19 F8 [10:30:43]Write to MH i2c: 01 00 00 6E 2A 98 [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: 01 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: 01 07 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: 01 07 00 6E 2A 00 00 00 00 00 DD 0C 88 [10:30:43]RasterBufferAndPrint [10:30:43]line [10:30:43]line [10:30:43]line [10:30:43]line [10:30:43]line [10:30:43]written 0, free lines is 3302 [10:30:43]MH_Cut [10:30:43]Write to MH i2c: D1 01 00 75 2A 01 71 [10:30:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 30 0D 47 00 F4 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 21 02 00 F4 03 04 00 E8 16 C4 66 B6 04 01 00 00 AA AD DD 6C 0C 19 F9 A6 [10:30:43]CommunicateWithHost err = 0 [10:30:43]CheckOFDResponse [10:30:43]1017 (14) - 77093643461234 [10:30:43]1041 (16) - 0000000000871776 [10:30:43]1040 (4) - 139630 [10:30:43]1012 (4) - 20.08.2024 04:09 [10:30:43]1206 (1) - 0 [10:30:43]OFD Sender: Remove packet 139630 [10:30:43]ProducePacketName [10:30:43]name=ofd_packets/00139630 [10:30:43]NVStorageDeleteData [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: D1 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: D1 01 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: D1 01 00 75 2A 00 70 [10:30:43]Write to MH i2c: 01 00 00 76 2A A0 [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:44]OFD Sender: No OFD packet to send [10:30:44]*** Cut start [10:30:44]*** Partial cut [10:30:44]*** CUTSNS_PIN = 1 [10:30:44]*** CUTSNS_PIN = 0 [10:30:44]*** Brake cut motor [10:30:45]Read from MH i2c: 01 [10:30:45]MH_I2C_Read... [10:30:45]*** Stop cut motor [10:30:45]*** Cut end [10:30:45]Read from MH i2c: 01 07 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: 01 07 00 76 2A 00 00 00 00 00 FF 0F B5 [10:30:45]process_action close_receipt done [10:30:45]requested_data is exist [10:30:45]produce_requested_data [10:30:45]requested_item fm.sn is exist - process it [10:30:45]wFMCommunicate request_size=4 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 11 00 00 [10:30:45]Write to MH i2c: E2 08 00 77 2A 80 11 00 00 00 00 00 00 1B [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 17 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 17 00 77 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [10:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:30:45]wFMCommunicate OK [10:30:45]requested_item fd.num is exist - process it [10:30:45]SAM_PROTO_GetFieldsCounters [10:30:45]wFMCommunicate request_size=4 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 13 00 00 [10:30:45]Write to MH i2c: E2 08 00 78 2A 80 13 00 00 00 00 00 00 1E [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 62 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 62 00 78 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [10:30:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:45]wFMCommunicate OK [10:30:45]SAM_PROTO_GetFieldsCounters done [10:30:45]requested_item shift.num is exist - process it [10:30:45]requested_item shift.opened is exist - process it [10:30:45]req_shift_opened [10:30:45]FM_GetShiftState [10:30:45]SAM_PROTO_GetShiftState [10:30:45]wFMCommunicate request_size=4 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 13 01 00 [10:30:45]Write to MH i2c: E2 08 00 79 2A 80 13 01 00 00 00 00 00 20 [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 0E 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 0E 00 79 2A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B1 [10:30:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:30:45]wFMCommunicate OK [10:30:45]SAM_PROTO_GetShiftState done [10:30:45]FM_GetShiftState done [10:30:45]req_shift_opened done [10:30:45]requested_item shift.open_date is exist - process it [10:30:45]req_shift_open_date [10:30:45]req_shift_open_date done [10:30:45]produce_requested_data done [10:30:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139630,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:30:45]process_action_free close_receipt [10:30:45]json_value_free [10:30:45]json_value_free done [10:30:45]process_json_proto returns [10:30:45]Send response to host [10:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139630,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:30:45]free response buf [10:30:45]execute_script done [10:30:45]execute_script returns [10:30:45]free content buf [10:30:45]Sock 7.Close socket [10:30:45]Sock 7.Thread stoped [10:30:45]accept exits with 9 [10:30:45]New connection [10:30:45]New thread 3067071844 created [10:30:45]Thread 3067215204 joined [10:30:45]Waiting for new connection... [10:30:45] Sock 9.Parse request [10:30:45]Sock 9.Check first char [10:30:45]Sock 9.First char is OK [10:30:45]request: POST /json_proto HTTP/1.0 [10:30:45]Method: POST [10:30:45]URL: /json_proto [10:30:45]Method is POST - this is cgi request [10:30:45]url: /json_proto [10:30:45]query_string will be loaded in cgi processing [10:30:45]execute_cgi json_proto POST (null) [10:30:45]execute_cgi path=json_proto method=POST [10:30:45]POST find Content-Length [10:30:45]Host: 172.17.45.67:8080 [10:30:45]Content-Length: 677 [10:30:45]Content-Type: application/json [10:30:45] [10:30:45]POST finish read [10:30:45]Found Content-Length = 677 [10:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:45]execute_script... [10: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)593477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:45]POST & json_proto [10:30:45]process_json_proto [10:30:45]json parsed OK: [10:30:45]protocol is kg_v1.0 [10:30:45]action value=close_receipt [10:30:45]process_action close_receipt [10:30:45]cmd_close_receipt [10:30:45]MH_GetDate [10:30:45]Write to MH i2c: F0 00 00 7A 2A 93 [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: F0 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: F0 09 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: F0 09 00 7A 2A 00 58 70 C4 66 5F 7F 2B 66 FD [10:30:45]GetLastDocTimeStamp 1724149844 [10:30:45]current date 1724149848 [10:30:45]FM_GetShiftState [10:30:45]SAM_PROTO_GetShiftState [10:30:45]wFMCommunicate request_size=4 [10:30:45]MH_SAM_APDU [10:30:45]CAPDU: 80 13 01 00 [10:30:45]Write to MH i2c: E2 08 00 7B 2A 80 13 01 00 00 00 00 00 22 [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:45]Read from MH i2c: E2 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 0E 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: E2 0E 00 7B 2A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B3 [10:30:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:30:45]wFMCommunicate OK [10:30:45]SAM_PROTO_GetShiftState done [10:30:45]FM_GetShiftState done [10:30:45]opened in 1724113785 [10:30:45]opened+sec_in_day 1724200185 [10:30:45]quantity*price = 20001 [10:30:45]sum+1 = 20002 [10:30:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 103 20.08.2024 10:30 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139631 ФПД: 23215420574925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103048&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139631&fm=23215420574925&tin=02508201610067®Number=0000000000092569&sum=20000 [10:30:47]StoreToDocumentArchive [10:30:47]shift 453 fd 139631 [10:30:47]save to /storage/0453/doc_00139631 [10:30:47]save last doc name /storage/0453/doc_00139631 to /storage/kkm_last_doc_name [10:30:47]save OK [10:30:47]Clear old archive folders... [10:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:47]tlvbuf is 00E18A70 [10:30:47]SAM_PROTO_ClearQueue [10:30:47]wFMCommunicate request_size=4 [10:30:47]MH_SAM_APDU [10:30:47]CAPDU: 80 09 00 00 [10:30:47]Write to MH i2c: E2 08 00 88 2A 80 09 00 00 00 00 00 00 24 [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:47]Read from MH i2c: E2 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 03 00 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 03 00 88 2A 00 90 00 26 [10:30:47]RAPDU: 90 00 [10:30:47]wFMCommunicate OK [10:30:47]SAM_PROTO_ClearQueue done [10:30:47]KKMCreateOFDPacket [10:30:47]OFDProtocolAddRootSTLVToBuf [10:30:47]FM_MakeSignedData [10:30:47]FM_MakeSignedData [10:30:47]SAM_PROTO_SignData [10:30:47]wFMCommunicate request_size=4 [10:30:47]MH_SAM_APDU [10:30:47]CAPDU: 80 0D 01 02 [10:30:47]Write to MH i2c: E2 08 00 89 2A 80 0D 01 02 00 00 00 00 2C [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:47]Read from MH i2c: E2 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 03 00 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 03 00 89 2A 00 90 00 27 [10:30:47]RAPDU: 90 00 [10:30:47]wFMCommunicate OK [10:30:47]wFMCommunicate request_size=255 [10:30:47]MH_SAM_APDU [10:30:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 58 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 21 02 00 35 04 06 00 15 [10:30:47]Write to MH i2c: E2 02 01 8A 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 58 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 21 02 00 35 04 06 00 15 00 00 7D [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:47]Read from MH i2c: E2 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 03 00 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 03 00 8A 2A 00 90 00 28 [10:30:47]RAPDU: 90 00 [10:30:47]wFMCommunicate OK [10:30:47]wFMCommunicate request_size=10 [10:30:47]MH_SAM_APDU [10:30:47]CAPDU: 80 0D 02 02 05 1D 42 E5 8C CD [10:30:47]Write to MH i2c: E2 0D 00 8B 2A 80 0D 02 02 05 00 1D 42 E5 8C CD 00 00 D6 [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 [10:30:47]MH_I2C_Read... [10:30:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:47]Read from MH i2c: E2 03 00 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 03 00 8B 2A 00 90 00 29 [10:30:47]RAPDU: 90 00 [10:30:47]wFMCommunicate OK [10:30:47]wFMCommunicate request_size=4 [10:30:47]MH_SAM_APDU [10:30:47]CAPDU: 80 0D 03 02 [10:30:47]Write to MH i2c: E2 08 00 8C 2A 80 0D 03 02 00 00 00 00 31 [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:47]Read from MH i2c: E2 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 0B 00 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 0B 00 8C 2A 00 06 00 FC 22 4B F0 C7 14 90 00 6C [10:30:47]RAPDU: 06 00 FC 22 4B F0 C7 14 90 00 [10:30:47]wFMCommunicate OK [10:30:47]SAM_PROTO_SignData done [10:30:47]FM_MakeSignedData done [10:30:47]CreateOFDProtocolMessage [10:30:47]wFMCommunicate request_size=4 [10:30:47]MH_SAM_APDU [10:30:47]CAPDU: 80 11 00 00 [10:30:47]Write to MH i2c: E2 08 00 8D 2A 80 11 00 00 00 00 00 00 31 [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:47]Read from MH i2c: E2 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 17 00 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: E2 17 00 8D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [10:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:30:47]wFMCommunicate OK [10:30:47]CreateOFDProtocolMessage done [10:30:47]OFDSenderStorePacket 139631 [10:30:47]StoreOFDPacket docnum=139631 [10:30:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9A C2 07 01 A7 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 58 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 21 02 00 35 04 06 00 15 1D 42 E5 8C CD 06 00 FC 22 4B F0 C7 14 [10:30:47]CheckFolder [10:30:47]dirname=/storage/ofd_packets [10:30:47]CheckFolder done [10:30:47]ProducePacketName [10:30:47]name=ofd_packets/00139631 [10:30:47]NVStorageSaveData ofd_packets/00139631 [10:30:47]File name is /storage/ofd_packets/00139631 [10:30:47]Write 301 bytes [10:30:47]NVStorageSaveData done [10:30:47]OFDSenderStorePacket done [10:30:47]KKMCreateOFDPacket done [10:30:47]NVStorageSaveData kkm_last_timestamp [10:30:47]File name is /storage/kkm_last_timestamp [10:30:47]Write 4 bytes [10:30:47]NVStorageSaveData done [10:30:47]ExternCall_PrintAddStr [10:30:47]wPrintStart [10:30:47]Write to MH i2c: 01 00 00 8E 2A B8 [10:30:47]Write i2c OK [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: 01 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: 01 07 00 [10:30:47]MH_I2C_Read... [10:30:47]Read from MH i2c: 01 07 00 8E 2A 00 00 00 00 00 FF 0F CD [10:30:47]RasterBufferAndPrint [10:30:47]line Счет N : (1)593477 [10:30:47]line ИНН: 02508201610067 [10:30:47]line Контрольно-Кассовый Чек [10:30:47]line ПРОДАЖА [10:30:47]line ТРК (МРК, ГНК) : 52 [10:30:47]line Товар: 2710124130 [10:30:47]line Аи-92-К-5 [10:30:47]line 2.950 * 67.80 [10:30:47]line = 200.01 [10:30:47]line НДС 12% НСП 1% [10:30:47]line > о реализуемом товаре [10:30:47]line ОКРУГЛЕНИЕ: -0.01 [10:30:47]line ИТОГО: 200.00 [10:30:47]line Внесено: 200.00 [10:30:47]line СДАЧА: 0.00 [10:30:47]line НСП 1% : 1.77 [10:30:47]line НДС 12% : 21.24 [10:30:47]line Наличными: 200.00 [10:30:47]line Безнал.: 0.00 [10:30:47]line Место: АЗС № 136 "Партнер Нефть" [10:30:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:30:47]line СНО: Общий режим [10:30:47]line Чек 103 20.08.2024 10:30 [10:30:47]line Смена: 453 ФФД: 1.0 [10:30:47]line ЗНМ: 0300000067 [10:30:47]line РНМ: 0000000000092569 [10:30:47]line Версия ККМ: 001 [10:30:47]line ФМ: 0000000000871776 [10:30:47]line ФД: 139631 [10:30:47]line ФПД: 23215420574925 [10:30:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103048&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139631&fm=23215420574925&tin=02508201610067®Number=0000000000092569&sum=20000 [10:30:47]written 0, free lines is 4095 [10:30:47]OFD Sender: Processing packet 139631 [packets to send 137, broken 136] [10:30:47]ProducePacketName [10:30:47]name=ofd_packets/00139631 [10:30:47]OFD Sender: To server: pG, [10:30:47]CommunicateWithHost lk.salyk.kg:30040 [10:30:47]ConnectInit lk.salyk.kg [10:30:48]Connected sock=7 [10:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9A C2 07 01 A7 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 58 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 21 02 00 35 04 06 00 15 1D 42 E5 8C CD 06 00 FC 22 4B F0 C7 14 [10:30:48]Write to MH i2c: 01 00 00 B9 2A E3 [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: 01 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: 01 07 00 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: 01 07 00 B9 2A 00 00 00 00 00 CA 0C C0 [10:30:48]RasterBufferAndPrint [10:30:48]line [10:30:48]line [10:30:48]line [10:30:48]line [10:30:48]line [10:30:48]written 0, free lines is 3289 [10:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 14 DF 47 00 E1 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 21 02 00 F4 03 04 00 EC 16 C4 66 B6 04 01 00 00 D7 2E 97 79 E3 84 2B 22 [10:30:48]CommunicateWithHost err = 0 [10:30:48]CheckOFDResponse [10:30:48]1017 (14) - 77093643461234 [10:30:48]1041 (16) - 0000000000871776 [10:30:48]1040 (4) - 139631 [10:30:48]1012 (4) - 20.08.2024 04:09 [10:30:48]1206 (1) - 0 [10:30:48]OFD Sender: Remove packet 139631 [10:30:48]ProducePacketName [10:30:48]name=ofd_packets/00139631 [10:30:48]NVStorageDeleteData [10:30:48]MH_Cut [10:30:48]Write to MH i2c: D1 01 00 C0 2A 01 BC [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: D1 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: D1 01 00 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: D1 01 00 C0 2A 00 BB [10:30:48]Write to MH i2c: 01 00 00 C1 2A EB [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:48]OFD Sender: No OFD packet to send [10:30:49]*** Cut start [10:30:49]*** Partial cut [10:30:49]*** CUTSNS_PIN = 1 [10:30:49]*** CUTSNS_PIN = 0 [10:30:49]*** Brake cut motor [10:30:49]Read from MH i2c: 01 [10:30:49]MH_I2C_Read... [10:30:49]*** Stop cut motor [10:30:49]*** Cut end [10:30:49]Read from MH i2c: 01 07 00 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: 01 07 00 C1 2A 00 00 00 00 00 FF 0F 00 [10:30:49]process_action close_receipt done [10:30:49]requested_data is exist [10:30:49]produce_requested_data [10:30:49]requested_item fm.sn is exist - process it [10:30:49]wFMCommunicate request_size=4 [10:30:49]MH_SAM_APDU [10:30:49]CAPDU: 80 11 00 00 [10:30:49]Write to MH i2c: E2 08 00 C2 2A 80 11 00 00 00 00 00 00 66 [10:30:49]Write i2c OK [10:30:49]MH_I2C_Read... [10:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:49]Read from MH i2c: E2 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: E2 17 00 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: E2 17 00 C2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [10:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:30:49]wFMCommunicate OK [10:30:49]requested_item fd.num is exist - process it [10:30:49]SAM_PROTO_GetFieldsCounters [10:30:49]wFMCommunicate request_size=4 [10:30:49]MH_SAM_APDU [10:30:49]CAPDU: 80 13 00 00 [10:30:49]Write to MH i2c: E2 08 00 C3 2A 80 13 00 00 00 00 00 00 69 [10:30:49]Write i2c OK [10:30:49]MH_I2C_Read... [10:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:49]Read from MH i2c: E2 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: E2 62 00 [10:30:49]MH_I2C_Read... [10:30:49]Read from MH i2c: E2 62 00 C3 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [10:30:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:49]wFMCommunicate OK [10:30:49]SAM_PROTO_GetFieldsCounters done [10:30:49]requested_item shift.num is exist - process it [10:30:49]requested_item shift.opened is exist - process it [10:30:49]req_shift_opened [10:30:49]FM_GetShiftState [10:30:49]SAM_PROTO_GetShiftState [10:30:49]wFMCommunicate request_size=4 [10:30:49]MH_SAM_APDU [10:30:49]CAPDU: 80 13 01 00 [10:30:49]Write to MH i2c: E2 08 00 C4 2A 80 13 01 00 00 00 00 00 6B [10:30:49]Write i2c OK [10:30:49]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 0E 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 0E 00 C4 2A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FC [10:30:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:30:50]wFMCommunicate OK [10:30:50]SAM_PROTO_GetShiftState done [10:30:50]FM_GetShiftState done [10:30:50]req_shift_opened done [10:30:50]requested_item shift.open_date is exist - process it [10:30:50]req_shift_open_date [10:30:50]req_shift_open_date done [10:30:50]produce_requested_data done [10:30:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139631,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:30:50]process_action_free close_receipt [10:30:50]json_value_free [10:30:50]json_value_free done [10:30:50]process_json_proto returns [10:30:50]Send response to host [10:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139631,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:30:50]free response buf [10:30:50]execute_script done [10:30:50]execute_script returns [10:30:50]free content buf [10:30:50]Sock 9.Close socket [10:30:50]Sock 9.Thread stoped [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:36]accept exits with 10 [10:31:36]New connection [10:31:36]New thread 3067215204 created [10:31:36]Thread 3067071844 joined [10:31:36]Waiting for new connection... [10:31:36] Sock 10.Parse request [10:31:36]Sock 10.Check first char [10:31:36]Sock 10.First char is OK [10:31:36]request: POST /json_proto HTTP/1.0 [10:31:36]Method: POST [10:31:36]URL: /json_proto [10:31:36]Method is POST - this is cgi request [10:31:36]url: /json_proto [10:31:36]query_string will be loaded in cgi processing [10:31:36]execute_cgi json_proto POST (null) [10:31:36]execute_cgi path=json_proto method=POST [10:31:36]POST find Content-Length [10:31:36]Host: 172.17.45.67:8080 [10:31:36]Content-Length: 677 [10:31:36]Content-Type: application/json [10:31:36] [10:31:36]POST finish read [10:31:36]Found Content-Length = 677 [10:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:36]execute_script... [10:31:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:36]POST & json_proto [10:31:36]process_json_proto [10:31:36]json parsed OK: [10:31:36]protocol is kg_v1.0 [10:31:36]action value=close_receipt [10:31:36]process_action close_receipt [10:31:36]cmd_close_receipt [10:31:36]MH_GetDate [10:31:36]Write to MH i2c: F0 00 00 C5 2A DE [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: F0 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: F0 09 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: F0 09 00 C5 2A 00 8B 70 C4 66 5F 7F 2B 66 7B [10:31:36]GetLastDocTimeStamp 1724149848 [10:31:36]current date 1724149899 [10:31:36]FM_GetShiftState [10:31:36]SAM_PROTO_GetShiftState [10:31:36]wFMCommunicate request_size=4 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 13 01 00 [10:31:36]Write to MH i2c: E2 08 00 C6 2A 80 13 01 00 00 00 00 00 6D [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 0E 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 0E 00 C6 2A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FE [10:31:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:31:36]wFMCommunicate OK [10:31:36]SAM_PROTO_GetShiftState done [10:31:36]FM_GetShiftState done [10:31:36]opened in 1724113785 [10:31:36]opened+sec_in_day 1724200185 [10:31:36]quantity*price = 50036 [10:31:36]sum+1 = 50037 [10:31:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 104 20.08.2024 10:31 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139632 ФПД: 261358710651982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103139&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139632&fm=261358710651982&tin=02508201610067®Number=0000000000092569&sum=50000 [10:31:37]StoreToDocumentArchive [10:31:37]shift 453 fd 139632 [10:31:37]save to /storage/0453/doc_00139632 [10:31:37]save last doc name /storage/0453/doc_00139632 to /storage/kkm_last_doc_name [10:31:37]save OK [10:31:37]Clear old archive folders... [10:31:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:37]tlvbuf is 00D24D70 [10:31:37]SAM_PROTO_ClearQueue [10:31:37]wFMCommunicate request_size=4 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 09 00 00 [10:31:37]Write to MH i2c: E2 08 00 D3 2A 80 09 00 00 00 00 00 00 6F [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 D3 2A 00 90 00 71 [10:31:37]RAPDU: 90 00 [10:31:37]wFMCommunicate OK [10:31:37]SAM_PROTO_ClearQueue done [10:31:37]KKMCreateOFDPacket [10:31:37]OFDProtocolAddRootSTLVToBuf [10:31:37]FM_MakeSignedData [10:31:37]FM_MakeSignedData [10:31:37]SAM_PROTO_SignData [10:31:37]wFMCommunicate request_size=4 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 0D 01 02 [10:31:37]Write to MH i2c: E2 08 00 D4 2A 80 0D 01 02 00 00 00 00 77 [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 D4 2A 00 90 00 72 [10:31:37]RAPDU: 90 00 [10:31:37]wFMCommunicate OK [10:31:37]wFMCommunicate request_size=255 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 8B 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 21 02 00 35 04 06 00 ED [10:31:37]Write to MH i2c: E2 02 01 D5 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 8B 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 21 02 00 35 04 06 00 ED 00 00 D3 [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 D5 2A 00 90 00 73 [10:31:37]RAPDU: 90 00 [10:31:37]wFMCommunicate OK [10:31:37]wFMCommunicate request_size=10 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 0D 02 02 05 B4 51 1B 7C 4E [10:31:37]Write to MH i2c: E2 0D 00 D6 2A 80 0D 02 02 05 00 B4 51 1B 7C 4E 00 00 6E [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 D6 2A 00 90 00 74 [10:31:37]RAPDU: 90 00 [10:31:37]wFMCommunicate OK [10:31:37]wFMCommunicate request_size=4 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 0D 03 02 [10:31:37]Write to MH i2c: E2 08 00 D7 2A 80 0D 03 02 00 00 00 00 7C [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0B 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 0B 00 D7 2A 00 71 4E 46 F8 9E 60 CD 8D 90 00 D2 [10:31:38]RAPDU: 71 4E 46 F8 9E 60 CD 8D 90 00 [10:31:38]wFMCommunicate OK [10:31:38]SAM_PROTO_SignData done [10:31:38]FM_MakeSignedData done [10:31:38]CreateOFDProtocolMessage [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 11 00 00 [10:31:38]Write to MH i2c: E2 08 00 D8 2A 80 11 00 00 00 00 00 00 7C [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:38]Read from MH i2c: E2 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 17 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: E2 17 00 D8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [10:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:31:38]wFMCommunicate OK [10:31:38]CreateOFDProtocolMessage done [10:31:38]OFDSenderStorePacket 139632 [10:31:38]StoreOFDPacket docnum=139632 [10:31:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5E 69 07 01 DE 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 8B 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 21 02 00 35 04 06 00 ED B4 51 1B 7C 4E 71 4E 46 F8 9E 60 CD 8D [10:31:38]CheckFolder [10:31:38]dirname=/storage/ofd_packets [10:31:38]CheckFolder done [10:31:38]ProducePacketName [10:31:38]name=ofd_packets/00139632 [10:31:38]NVStorageSaveData ofd_packets/00139632 [10:31:38]File name is /storage/ofd_packets/00139632 [10:31:38]Write 301 bytes [10:31:38]NVStorageSaveData done [10:31:38]OFDSenderStorePacket done [10:31:38]KKMCreateOFDPacket done [10:31:38]NVStorageSaveData kkm_last_timestamp [10:31:38]File name is /storage/kkm_last_timestamp [10:31:38]Write 4 bytes [10:31:38]NVStorageSaveData done [10:31:38]ExternCall_PrintAddStr [10:31:38]wPrintStart [10:31:38]Write to MH i2c: 01 00 00 D9 2A 03 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 07 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 07 00 D9 2A 00 00 00 00 00 FF 0F 18 [10:31:38]RasterBufferAndPrint [10:31:38]line Счет N : (1)593478 [10:31:38]line ИНН: 02508201610067 [10:31:38]line Контрольно-Кассовый Чек [10:31:38]line ПРОДАЖА [10:31:38]line ТРК (МРК, ГНК) : 62 [10:31:38]line Товар: 2710124130 [10:31:38]line Аи-92-К-5 [10:31:38]line 7.380 * 67.80 [10:31:38]line = 500.36 [10:31:38]line НДС 12% НСП 1% [10:31:38]line > о реализуемом товаре [10:31:38]line ОКРУГЛЕНИЕ: -0.36 [10:31:38]line ИТОГО: 500.00 [10:31:38]line Внесено: 500.00 [10:31:38]line СДАЧА: 0.00 [10:31:38]line НСП 1% : 4.43 [10:31:38]line НДС 12% : 53.14 [10:31:38]line Наличными: 500.00 [10:31:38]line Безнал.: 0.00 [10:31:38]line Место: АЗС № 136 "Партнер Нефть" [10:31:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:31:38]line СНО: Общий режим [10:31:38]line Чек 104 20.08.2024 10:31 [10:31:38]line Смена: 453 ФФД: 1.0 [10:31:38]line ЗНМ: 0300000067 [10:31:38]line РНМ: 0000000000092569 [10:31:38]line Версия ККМ: 001 [10:31:38]line ФМ: 0000000000871776 [10:31:38]line ФД: 139632 [10:31:38]line ФПД: 261358710651982 [10:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103139&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139632&fm=261358710651982&tin=02508201610067®Number=0000000000092569&sum=50000 [10:31:38]written 0, free lines is 4095 [10:31:38]OFD Sender: Processing packet 139632 [packets to send 137, broken 136] [10:31:38]ProducePacketName [10:31:38]name=ofd_packets/00139632 [10:31:38]OFD Sender: To server: pG, [10:31:38]CommunicateWithHost lk.salyk.kg:30040 [10:31:38]ConnectInit lk.salyk.kg [10:31:38]Connected sock=9 [10:31:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5E 69 07 01 DE 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 8B 70 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 21 02 00 35 04 06 00 ED B4 51 1B 7C 4E 71 4E 46 F8 9E 60 CD 8D [10:31:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7D F2 47 00 21 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 21 02 00 F4 03 04 00 1F 17 C4 66 B6 04 01 00 00 43 C3 99 C3 2C 7D 36 8A [10:31:38]CommunicateWithHost err = 0 [10:31:38]CheckOFDResponse [10:31:38]1017 (14) - 77093643461234 [10:31:38]1041 (16) - 0000000000871776 [10:31:38]1040 (4) - 139632 [10:31:38]1012 (4) - 20.08.2024 04:10 [10:31:38]1206 (1) - 0 [10:31:38]OFD Sender: Remove packet 139632 [10:31:38]ProducePacketName [10:31:38]name=ofd_packets/00139632 [10:31:38]NVStorageDeleteData [10:31:38]Write to MH i2c: 01 00 00 04 2B 2F [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 07 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 07 00 04 2B 00 00 00 00 00 C6 0C 08 [10:31:38]RasterBufferAndPrint [10:31:38]line [10:31:38]line [10:31:38]line [10:31:38]line [10:31:38]line [10:31:38]written 0, free lines is 3276 [10:31:38]MH_Cut [10:31:38]Write to MH i2c: D1 01 00 0B 2B 01 08 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: D1 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: D1 01 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: D1 01 00 0B 2B 00 07 [10:31:38]Write to MH i2c: 01 00 00 0C 2B 37 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:39]OFD Sender: No OFD packet to send [10:31:39]*** Cut start [10:31:39]*** Partial cut [10:31:39]*** CUTSNS_PIN = 1 [10:31:39]*** CUTSNS_PIN = 0 [10:31:39]*** Brake cut motor [10:31:40]Read from MH i2c: 01 [10:31:40]MH_I2C_Read... [10:31:40]*** Stop cut motor [10:31:40]*** Cut end [10:31:40]Read from MH i2c: 01 07 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 07 00 0C 2B 00 00 00 00 00 FF 0F 4C [10:31:40]process_action close_receipt done [10:31:40]requested_data is exist [10:31:40]produce_requested_data [10:31:40]requested_item fm.sn is exist - process it [10:31:40]wFMCommunicate request_size=4 [10:31:40]MH_SAM_APDU [10:31:40]CAPDU: 80 11 00 00 [10:31:40]Write to MH i2c: E2 08 00 0D 2B 80 11 00 00 00 00 00 00 B2 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:40]Read from MH i2c: E2 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 17 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 17 00 0D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [10:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:31:40]wFMCommunicate OK [10:31:40]requested_item fd.num is exist - process it [10:31:40]SAM_PROTO_GetFieldsCounters [10:31:40]wFMCommunicate request_size=4 [10:31:40]MH_SAM_APDU [10:31:40]CAPDU: 80 13 00 00 [10:31:40]Write to MH i2c: E2 08 00 0E 2B 80 13 00 00 00 00 00 00 B5 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:40]Read from MH i2c: E2 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 62 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 62 00 0E 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [10:31:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:40]wFMCommunicate OK [10:31:40]SAM_PROTO_GetFieldsCounters done [10:31:40]requested_item shift.num is exist - process it [10:31:40]requested_item shift.opened is exist - process it [10:31:40]req_shift_opened [10:31:40]FM_GetShiftState [10:31:40]SAM_PROTO_GetShiftState [10:31:40]wFMCommunicate request_size=4 [10:31:40]MH_SAM_APDU [10:31:40]CAPDU: 80 13 01 00 [10:31:40]Write to MH i2c: E2 08 00 0F 2B 80 13 01 00 00 00 00 00 B7 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:40]Read from MH i2c: E2 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 0E 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 0E 00 0F 2B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 48 [10:31:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:31:40]wFMCommunicate OK [10:31:40]SAM_PROTO_GetShiftState done [10:31:40]FM_GetShiftState done [10:31:40]req_shift_opened done [10:31:40]requested_item shift.open_date is exist - process it [10:31:40]req_shift_open_date [10:31:40]req_shift_open_date done [10:31:40]produce_requested_data done [10:31:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139632,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:31:40]process_action_free close_receipt [10:31:40]json_value_free [10:31:40]json_value_free done [10:31:40]process_json_proto returns [10:31:40]Send response to host [10:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139632,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:31:40]free response buf [10:31:40]execute_script done [10:31:40]execute_script returns [10:31:40]free content buf [10:31:40]Sock 10.Close socket [10:31:40]Sock 10.Thread stoped [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]accept exits with 7 [10:37:34]New connection [10:37:34]New thread 3067071844 created [10:37:34]Thread 3067215204 joined [10:37:34]Waiting for new connection... [10:37:34] Sock 7.Parse request [10:37:34]Sock 7.Check first char [10:37:34]Sock 7.First char is OK [10:37:34]request: POST /json_proto HTTP/1.0 [10:37:34]Method: POST [10:37:34]URL: /json_proto [10:37:34]Method is POST - this is cgi request [10:37:34]url: /json_proto [10:37:34]query_string will be loaded in cgi processing [10:37:34]execute_cgi json_proto POST (null) [10:37:34]execute_cgi path=json_proto method=POST [10:37:34]POST find Content-Length [10:37:34]Host: 172.17.45.67:8080 [10:37:34]Content-Length: 677 [10:37:34]Content-Type: application/json [10:37:34] [10:37:34]POST finish read [10:37:34]Found Content-Length = 677 [10:37:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:34]execute_script... [10:37: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)593479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:34]POST & json_proto [10:37:34]process_json_proto [10:37:34]json parsed OK: [10:37:34]protocol is kg_v1.0 [10:37:34]action value=close_receipt [10:37:34]process_action close_receipt [10:37:34]cmd_close_receipt [10:37:34]MH_GetDate [10:37:34]Write to MH i2c: F0 00 00 10 2B 2A [10:37:34]Write i2c OK [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: F0 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: F0 09 00 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: F0 09 00 10 2B 00 F1 71 C4 66 5F 7F 2B 66 2E [10:37:34]GetLastDocTimeStamp 1724149899 [10:37:34]current date 1724150257 [10:37:34]FM_GetShiftState [10:37:34]SAM_PROTO_GetShiftState [10:37:34]wFMCommunicate request_size=4 [10:37:34]MH_SAM_APDU [10:37:34]CAPDU: 80 13 01 00 [10:37:34]Write to MH i2c: E2 08 00 11 2B 80 13 01 00 00 00 00 00 B9 [10:37:34]Write i2c OK [10:37:34]MH_I2C_Read... [10:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:34]Read from MH i2c: E2 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: E2 0E 00 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: E2 0E 00 11 2B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4A [10:37:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:37:34]wFMCommunicate OK [10:37:34]SAM_PROTO_GetShiftState done [10:37:34]FM_GetShiftState done [10:37:34]opened in 1724113785 [10:37:34]opened+sec_in_day 1724200185 [10:37:34]quantity*price = 60003 [10:37:34]sum+1 = 60004 [10:37:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 105 20.08.2024 10:37 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139633 ФПД: 270323814600017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103737&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139633&fm=270323814600017&tin=02508201610067®Number=0000000000092569&sum=60000 [10:37:35]StoreToDocumentArchive [10:37:35]shift 453 fd 139633 [10:37:35]save to /storage/0453/doc_00139633 [10:37:35]save last doc name /storage/0453/doc_00139633 to /storage/kkm_last_doc_name [10:37:35]save OK [10:37:35]Clear old archive folders... [10:37:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:35]tlvbuf is 00D2E690 [10:37:35]SAM_PROTO_ClearQueue [10:37:35]wFMCommunicate request_size=4 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 09 00 00 [10:37:35]Write to MH i2c: E2 08 00 1E 2B 80 09 00 00 00 00 00 00 BB [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 1E 2B 00 90 00 BD [10:37:35]RAPDU: 90 00 [10:37:35]wFMCommunicate OK [10:37:35]SAM_PROTO_ClearQueue done [10:37:35]KKMCreateOFDPacket [10:37:35]OFDProtocolAddRootSTLVToBuf [10:37:35]FM_MakeSignedData [10:37:35]FM_MakeSignedData [10:37:35]SAM_PROTO_SignData [10:37:35]wFMCommunicate request_size=4 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 0D 01 02 [10:37:35]Write to MH i2c: E2 08 00 1F 2B 80 0D 01 02 00 00 00 00 C3 [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:35]Read from MH i2c: E2 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: E2 03 00 1F 2B 00 90 00 BE [10:37:35]RAPDU: 90 00 [10:37:35]wFMCommunicate OK [10:37:35]wFMCommunicate request_size=255 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F1 71 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 21 02 00 35 04 06 00 F5 [10:37:35]Write to MH i2c: E2 02 01 20 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F1 71 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 21 02 00 35 04 06 00 F5 00 00 57 [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 20 2B 00 90 00 BF [10:37:36]RAPDU: 90 00 [10:37:36]wFMCommunicate OK [10:37:36]wFMCommunicate request_size=10 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 0D 02 02 05 DB AA F1 8D 51 [10:37:36]Write to MH i2c: E2 0D 00 21 2B 80 0D 02 02 05 00 DB AA F1 8D 51 00 00 24 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 03 00 21 2B 00 90 00 C0 [10:37:36]RAPDU: 90 00 [10:37:36]wFMCommunicate OK [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 0D 03 02 [10:37:36]Write to MH i2c: E2 08 00 22 2B 80 0D 03 02 00 00 00 00 C8 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 0B 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 0B 00 22 2B 00 C9 F1 F7 E4 61 45 62 83 90 00 E9 [10:37:36]RAPDU: C9 F1 F7 E4 61 45 62 83 90 00 [10:37:36]wFMCommunicate OK [10:37:36]SAM_PROTO_SignData done [10:37:36]FM_MakeSignedData done [10:37:36]CreateOFDProtocolMessage [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 11 00 00 [10:37:36]Write to MH i2c: E2 08 00 23 2B 80 11 00 00 00 00 00 00 C8 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 17 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 17 00 23 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [10:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:37:36]wFMCommunicate OK [10:37:36]CreateOFDProtocolMessage done [10:37:36]OFDSenderStorePacket 139633 [10:37:36]StoreOFDPacket docnum=139633 [10:37:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 15 A5 07 01 DE 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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F1 71 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 21 02 00 35 04 06 00 F5 DB AA F1 8D 51 C9 F1 F7 E4 61 45 62 83 [10:37:36]CheckFolder [10:37:36]dirname=/storage/ofd_packets [10:37:36]CheckFolder done [10:37:36]ProducePacketName [10:37:36]name=ofd_packets/00139633 [10:37:36]NVStorageSaveData ofd_packets/00139633 [10:37:36]File name is /storage/ofd_packets/00139633 [10:37:36]Write 301 bytes [10:37:36]NVStorageSaveData done [10:37:36]OFDSenderStorePacket done [10:37:36]KKMCreateOFDPacket done [10:37:36]NVStorageSaveData kkm_last_timestamp [10:37:36]File name is /storage/kkm_last_timestamp [10:37:36]Write 4 bytes [10:37:36]NVStorageSaveData done [10:37:36]ExternCall_PrintAddStr [10:37:36]wPrintStart [10:37:36]Write to MH i2c: 01 00 00 24 2B 4F [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: 01 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: 01 07 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: 01 07 00 24 2B 00 00 00 00 00 FF 0F 64 [10:37:36]RasterBufferAndPrint [10:37:36]line Счет N : (1)593479 [10:37:36]line ИНН: 02508201610067 [10:37:36]line Контрольно-Кассовый Чек [10:37:36]line ПРОДАЖА [10:37:36]line ТРК (МРК, ГНК) : 32 [10:37:36]line Товар: 2710124130 [10:37:36]line Аи-92-К-5 [10:37:36]line 8.850 * 67.80 [10:37:36]line = 600.03 [10:37:36]line НДС 12% НСП 1% [10:37:36]line > о реализуемом товаре [10:37:36]line ОКРУГЛЕНИЕ: -0.03 [10:37:36]line ИТОГО: 600.00 [10:37:36]line Внесено: 600.00 [10:37:36]line СДАЧА: 0.00 [10:37:36]line НСП 1% : 5.31 [10:37:36]line НДС 12% : 63.72 [10:37:36]line Наличными: 600.00 [10:37:36]line Безнал.: 0.00 [10:37:36]line Место: АЗС № 136 "Партнер Нефть" [10:37:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:37:36]line СНО: Общий режим [10:37:36]line Чек 105 20.08.2024 10:37 [10:37:36]line Смена: 453 ФФД: 1.0 [10:37:36]line ЗНМ: 0300000067 [10:37:36]line РНМ: 0000000000092569 [10:37:36]line Версия ККМ: 001 [10:37:36]line ФМ: 0000000000871776 [10:37:36]line ФД: 139633 [10:37:36]line ФПД: 270323814600017 [10:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103737&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139633&fm=270323814600017&tin=02508201610067®Number=0000000000092569&sum=60000 [10:37:36]OFD Sender: Processing packet 139633 [packets to send 137, broken 136] [10:37:36]ProducePacketName [10:37:36]name=ofd_packets/00139633 [10:37:36]OFD Sender: To server: pG, [10:37:36]CommunicateWithHost lk.salyk.kg:30040 [10:37:36]ConnectInit lk.salyk.kg [10:37:36]written 0, free lines is 4095 [10:37:36]Connected sock=10 [10:37:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 15 A5 07 01 DE 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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F1 71 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 21 02 00 35 04 06 00 F5 DB AA F1 8D 51 C9 F1 F7 E4 61 45 62 83 [10:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 64 36 47 00 31 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 21 02 00 F4 03 04 00 85 18 C4 66 B6 04 01 00 00 F3 6A 60 92 DF D8 7E D7 [10:37:37]CommunicateWithHost err = 0 [10:37:37]CheckOFDResponse [10:37:37]1017 (14) - 77093643461234 [10:37:37]1041 (16) - 0000000000871776 [10:37:37]1040 (4) - 139633 [10:37:37]1012 (4) - 20.08.2024 04:16 [10:37:37]1206 (1) - 0 [10:37:37]OFD Sender: Remove packet 139633 [10:37:37]ProducePacketName [10:37:37]name=ofd_packets/00139633 [10:37:37]NVStorageDeleteData [10:37:37]Write to MH i2c: 01 00 00 4F 2B 7A [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: 01 07 00 4F 2B 00 00 00 00 00 CD 0C 5A [10:37:37]RasterBufferAndPrint [10:37:37]line [10:37:37]line [10:37:37]line [10:37:37]line [10:37:37]line [10:37:37]written 0, free lines is 3284 [10:37:37]MH_Cut [10:37:37]Write to MH i2c: D1 01 00 56 2B 01 53 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: D1 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: D1 01 00 [10:37:37]MH_I2C_Read... [10:37:37]Read from MH i2c: D1 01 00 56 2B 00 52 [10:37:37]Write to MH i2c: 01 00 00 57 2B 82 [10:37:37]Write i2c OK [10:37:37]MH_I2C_Read... [10:37:37]OFD Sender: No OFD packet to send [10:37:37]*** Cut start [10:37:37]*** Partial cut [10:37:37]*** CUTSNS_PIN = 1 [10:37:37]*** CUTSNS_PIN = 0 [10:37:38]*** Brake cut motor [10:37:38]Read from MH i2c: 01 [10:37:38]MH_I2C_Read... [10:37:38]*** Stop cut motor [10:37:38]*** Cut end [10:37:38]Read from MH i2c: 01 07 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: 01 07 00 57 2B 00 00 00 00 00 FF 0F 97 [10:37:38]process_action close_receipt done [10:37:38]requested_data is exist [10:37:38]produce_requested_data [10:37:38]requested_item fm.sn is exist - process it [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 11 00 00 [10:37:38]Write to MH i2c: E2 08 00 58 2B 80 11 00 00 00 00 00 00 FD [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 17 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 17 00 58 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [10:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:37:38]wFMCommunicate OK [10:37:38]requested_item fd.num is exist - process it [10:37:38]SAM_PROTO_GetFieldsCounters [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 13 00 00 [10:37:38]Write to MH i2c: E2 08 00 59 2B 80 13 00 00 00 00 00 00 00 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 62 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 62 00 59 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [10:37:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:38]wFMCommunicate OK [10:37:38]SAM_PROTO_GetFieldsCounters done [10:37:38]requested_item shift.num is exist - process it [10:37:38]requested_item shift.opened is exist - process it [10:37:38]req_shift_opened [10:37:38]FM_GetShiftState [10:37:38]SAM_PROTO_GetShiftState [10:37:38]wFMCommunicate request_size=4 [10:37:38]MH_SAM_APDU [10:37:38]CAPDU: 80 13 01 00 [10:37:38]Write to MH i2c: E2 08 00 5A 2B 80 13 01 00 00 00 00 00 02 [10:37:38]Write i2c OK [10:37:38]MH_I2C_Read... [10:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:38]Read from MH i2c: E2 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 0E 00 [10:37:38]MH_I2C_Read... [10:37:38]Read from MH i2c: E2 0E 00 5A 2B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 93 [10:37:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:37:38]wFMCommunicate OK [10:37:38]SAM_PROTO_GetShiftState done [10:37:38]FM_GetShiftState done [10:37:38]req_shift_opened done [10:37:38]requested_item shift.open_date is exist - process it [10:37:38]req_shift_open_date [10:37:38]req_shift_open_date done [10:37:38]produce_requested_data done [10:37:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139633,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:37:38]process_action_free close_receipt [10:37:38]json_value_free [10:37:38]json_value_free done [10:37:38]process_json_proto returns [10:37:38]Send response to host [10:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139633,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:37:38]free response buf [10:37:38]execute_script done [10:37:38]execute_script returns [10:37:38]free content buf [10:37:38]Sock 7.Close socket [10:37:38]Sock 7.Thread stoped [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:02]int [10:38:02]Write to MH i2c: 01 00 00 5B 2B 86 [10:38:02]*** FLAG_PRN_KEY set [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 5B 2B 00 08 00 00 00 FF 0F A3 [10:38:02]state=0 [10:38:02]Key pressed [10:38:02]Feed [10:38:02]Write to MH i2c: D8 00 00 5C 2B 5E [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: D8 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: D8 01 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: D8 01 00 5C 2B 00 5F [10:38:02]int [10:38:02]Write to MH i2c: 01 00 00 5D 2B 88 [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 5D 2B 00 48 00 00 00 3C 00 13 [10:38:02]state=2 [10:38:02]Key pressed [10:38:02]int [10:38:02]Write to MH i2c: 01 00 00 5E 2B 89 [10:38:02]*** FLAG_PRN_KEY reset [10:38:02]Write i2c OK [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 [10:38:02]MH_I2C_Read... [10:38:02]Read from MH i2c: 01 07 00 5E 2B 00 00 00 00 00 F6 0F 95 [10:38:02]state=2 [10:38:02]Stop feed [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]accept exits with 9 [10:38:17]New connection [10:38:17]New thread 3067215204 created [10:38:17]Thread 3067071844 joined [10:38:17]Waiting for new connection... [10:38:17] Sock 9.Parse request [10:38:17]Sock 9.Check first char [10:38:17]Sock 9.First char is OK [10:38:17]request: POST /json_proto HTTP/1.0 [10:38:17]Method: POST [10:38:17]URL: /json_proto [10:38:17]Method is POST - this is cgi request [10:38:17]url: /json_proto [10:38:17]query_string will be loaded in cgi processing [10:38:17]execute_cgi json_proto POST (null) [10:38:17]execute_cgi path=json_proto method=POST [10:38:17]POST find Content-Length [10:38:17]Host: 172.17.45.67:8080 [10:38:17]Content-Length: 659 [10:38:17]Content-Type: application/json [10:38:17] [10:38:17]POST finish read [10:38:17]Found Content-Length = 659 [10:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:17]execute_script... [10:38: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)593480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:17]POST & json_proto [10:38:17]process_json_proto [10:38:17]json parsed OK: [10:38:17]protocol is kg_v1.0 [10:38:17]action value=close_receipt [10:38:17]process_action close_receipt [10:38:17]cmd_close_receipt [10:38:17]MH_GetDate [10:38:17]Write to MH i2c: F0 00 00 5F 2B 79 [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: F0 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: F0 09 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: F0 09 00 5F 2B 00 1C 72 C4 66 5F 7F 2B 66 A9 [10:38:17]GetLastDocTimeStamp 1724150257 [10:38:17]current date 1724150300 [10:38:17]FM_GetShiftState [10:38:17]SAM_PROTO_GetShiftState [10:38:17]wFMCommunicate request_size=4 [10:38:17]MH_SAM_APDU [10:38:17]CAPDU: 80 13 01 00 [10:38:17]Write to MH i2c: E2 08 00 60 2B 80 13 01 00 00 00 00 00 08 [10:38:17]Write i2c OK [10:38:17]MH_I2C_Read... [10:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:17]Read from MH i2c: E2 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0E 00 [10:38:17]MH_I2C_Read... [10:38:17]Read from MH i2c: E2 0E 00 60 2B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 99 [10:38:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:38:17]wFMCommunicate OK [10:38:17]SAM_PROTO_GetShiftState done [10:38:17]FM_GetShiftState done [10:38:17]opened in 1724113785 [10:38:17]opened+sec_in_day 1724200185 [10:38:17]quantity*price = 70038 [10:38:17]sum+1 = 70039 [10:38:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 106 20.08.2024 10:38 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139634 ФПД: 222575544007727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103820&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139634&fm=222575544007727&tin=02508201610067®Number=0000000000092569&sum=70000 [10:38:18]StoreToDocumentArchive [10:38:18]shift 453 fd 139634 [10:38:18]save to /storage/0453/doc_00139634 [10:38:18]save last doc name /storage/0453/doc_00139634 to /storage/kkm_last_doc_name [10:38:18]save OK [10:38:18]Clear old archive folders... [10:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:38:18]tlvbuf is 00D5B380 [10:38:18]SAM_PROTO_ClearQueue [10:38:18]wFMCommunicate request_size=4 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 09 00 00 [10:38:18]Write to MH i2c: E2 08 00 6D 2B 80 09 00 00 00 00 00 00 0A [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:18]Read from MH i2c: E2 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 6D 2B 00 90 00 0C [10:38:18]RAPDU: 90 00 [10:38:18]wFMCommunicate OK [10:38:18]SAM_PROTO_ClearQueue done [10:38:18]KKMCreateOFDPacket [10:38:18]OFDProtocolAddRootSTLVToBuf [10:38:18]FM_MakeSignedData [10:38:18]FM_MakeSignedData [10:38:18]SAM_PROTO_SignData [10:38:18]wFMCommunicate request_size=4 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 0D 01 02 [10:38:18]Write to MH i2c: E2 08 00 6E 2B 80 0D 01 02 00 00 00 00 12 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:18]Read from MH i2c: E2 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 6E 2B 00 90 00 0D [10:38:18]RAPDU: 90 00 [10:38:18]wFMCommunicate OK [10:38:18]wFMCommunicate request_size=253 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 6A 00 00 00 F4 03 04 00 1C 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 21 02 00 35 04 06 00 CA 6E 68 3C 7C 2F [10:38:18]Write to MH i2c: E2 00 01 6F 2B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 6A 00 00 00 F4 03 04 00 1C 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 21 02 00 35 04 06 00 CA 6E 68 3C 7C 2F 00 00 02 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:18]Read from MH i2c: E2 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 03 00 6F 2B 00 90 00 0E [10:38:18]RAPDU: 90 00 [10:38:18]wFMCommunicate OK [10:38:18]wFMCommunicate request_size=4 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 0D 03 02 [10:38:18]Write to MH i2c: E2 08 00 70 2B 80 0D 03 02 00 00 00 00 16 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:18]Read from MH i2c: E2 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 0B 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 0B 00 70 2B 00 18 02 19 2A 9F 02 9C 0D 90 00 BE [10:38:18]RAPDU: 18 02 19 2A 9F 02 9C 0D 90 00 [10:38:18]wFMCommunicate OK [10:38:18]SAM_PROTO_SignData done [10:38:18]FM_MakeSignedData done [10:38:18]CreateOFDProtocolMessage [10:38:18]wFMCommunicate request_size=4 [10:38:18]MH_SAM_APDU [10:38:18]CAPDU: 80 11 00 00 [10:38:18]Write to MH i2c: E2 08 00 71 2B 80 11 00 00 00 00 00 00 16 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:18]Read from MH i2c: E2 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 17 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: E2 17 00 71 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [10:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:38:18]wFMCommunicate OK [10:38:18]CreateOFDProtocolMessage done [10:38:18]OFDSenderStorePacket 139634 [10:38:18]StoreOFDPacket docnum=139634 [10:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 33 21 00 01 49 FB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 6A 00 00 00 F4 03 04 00 1C 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 21 02 00 35 04 06 00 CA 6E 68 3C 7C 2F 18 02 19 2A 9F 02 9C 0D [10:38:18]CheckFolder [10:38:18]dirname=/storage/ofd_packets [10:38:18]CheckFolder done [10:38:18]ProducePacketName [10:38:18]name=ofd_packets/00139634 [10:38:18]NVStorageSaveData ofd_packets/00139634 [10:38:18]File name is /storage/ofd_packets/00139634 [10:38:18]Write 294 bytes [10:38:18]NVStorageSaveData done [10:38:18]OFDSenderStorePacket done [10:38:18]KKMCreateOFDPacket done [10:38:18]NVStorageSaveData kkm_last_timestamp [10:38:18]File name is /storage/kkm_last_timestamp [10:38:18]Write 4 bytes [10:38:18]NVStorageSaveData done [10:38:18]ExternCall_PrintAddStr [10:38:18]wPrintStart [10:38:18]Write to MH i2c: 01 00 00 72 2B 9D [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: 01 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: 01 07 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: 01 07 00 72 2B 00 00 00 00 00 FF 0F B2 [10:38:18]RasterBufferAndPrint [10:38:18]line Счет N : (1)593480 [10:38:18]line ИНН: 02508201610067 [10:38:18]line Контрольно-Кассовый Чек [10:38:18]line ПРОДАЖА [10:38:18]line ТРК (МРК, ГНК) : 43 [10:38:18]line Товар: 2710124130 [10:38:18]line SU-92 [10:38:18]line 10.180 * 68.80 [10:38:18]line = 700.38 [10:38:18]line НДС 12% НСП 1% [10:38:18]line > о реализуемом товаре [10:38:18]line ОКРУГЛЕНИЕ: -0.38 [10:38:18]line ИТОГО: 700.00 [10:38:18]line Внесено: 700.00 [10:38:18]line СДАЧА: 0.00 [10:38:18]line НСП 1% : 6.20 [10:38:18]line НДС 12% : 74.38 [10:38:18]line Наличными: 700.00 [10:38:18]line Безнал.: 0.00 [10:38:18]line Место: АЗС № 136 "Партнер Нефть" [10:38:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:38:18]line СНО: Общий режим [10:38:18]line Чек 106 20.08.2024 10:38 [10:38:18]line Смена: 453 ФФД: 1.0 [10:38:18]line ЗНМ: 0300000067 [10:38:18]line РНМ: 0000000000092569 [10:38:18]line Версия ККМ: 001 [10:38:18]line ФМ: 0000000000871776 [10:38:18]line ФД: 139634 [10:38:18]line ФПД: 222575544007727 [10:38:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103820&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139634&fm=222575544007727&tin=02508201610067®Number=0000000000092569&sum=70000 [10:38:19]OFD Sender: Processing packet 139634 [packets to send 137, broken 136] [10:38:19]ProducePacketName [10:38:19]name=ofd_packets/00139634 [10:38:19]OFD Sender: To server: pG, [10:38:19]CommunicateWithHost lk.salyk.kg:30040 [10:38:19]ConnectInit lk.salyk.kg [10:38:19]written 0, free lines is 4095 [10:38:19]Connected sock=10 [10:38:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 33 21 00 01 49 FB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 6A 00 00 00 F4 03 04 00 1C 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 21 02 00 35 04 06 00 CA 6E 68 3C 7C 2F 18 02 19 2A 9F 02 9C 0D [10:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EB EC 47 00 69 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 21 02 00 F4 03 04 00 AF 18 C4 66 B6 04 01 00 00 67 CE E4 51 6C 3D 7D 85 [10:38:19]CommunicateWithHost err = 0 [10:38:19]CheckOFDResponse [10:38:19]1017 (14) - 77093643461234 [10:38:19]1041 (16) - 0000000000871776 [10:38:19]1040 (4) - 139634 [10:38:19]1012 (4) - 20.08.2024 04:16 [10:38:19]1206 (1) - 0 [10:38:19]OFD Sender: Remove packet 139634 [10:38:19]ProducePacketName [10:38:19]name=ofd_packets/00139634 [10:38:19]NVStorageDeleteData [10:38:19]Write to MH i2c: 01 00 00 9D 2B C8 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 9D 2B 00 00 00 00 00 C6 0C A1 [10:38:19]RasterBufferAndPrint [10:38:19]line [10:38:19]line [10:38:19]line [10:38:19]line [10:38:19]line [10:38:19]written 0, free lines is 3276 [10:38:19]MH_Cut [10:38:19]Write to MH i2c: D1 01 00 A4 2B 01 A1 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D1 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D1 01 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D1 01 00 A4 2B 00 A0 [10:38:19]Write to MH i2c: 01 00 00 A5 2B D0 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:20]OFD Sender: No OFD packet to send [10:38:20]*** Cut start [10:38:20]*** Partial cut [10:38:20]*** CUTSNS_PIN = 1 [10:38:20]*** CUTSNS_PIN = 0 [10:38:20]*** Brake cut motor [10:38:21]Read from MH i2c: 01 [10:38:21]MH_I2C_Read... [10:38:21]*** Stop cut motor [10:38:21]*** Cut end [10:38:21]Read from MH i2c: 01 07 00 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: 01 07 00 A5 2B 00 00 00 00 00 FF 0F E5 [10:38:21]process_action close_receipt done [10:38:21]requested_data is exist [10:38:21]produce_requested_data [10:38:21]requested_item fm.sn is exist - process it [10:38:21]wFMCommunicate request_size=4 [10:38:21]MH_SAM_APDU [10:38:21]CAPDU: 80 11 00 00 [10:38:21]Write to MH i2c: E2 08 00 A6 2B 80 11 00 00 00 00 00 00 4B [10:38:21]Write i2c OK [10:38:21]MH_I2C_Read... [10:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:21]Read from MH i2c: E2 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 17 00 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 17 00 A6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [10:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:38:21]wFMCommunicate OK [10:38:21]requested_item fd.num is exist - process it [10:38:21]SAM_PROTO_GetFieldsCounters [10:38:21]wFMCommunicate request_size=4 [10:38:21]MH_SAM_APDU [10:38:21]CAPDU: 80 13 00 00 [10:38:21]Write to MH i2c: E2 08 00 A7 2B 80 13 00 00 00 00 00 00 4E [10:38:21]Write i2c OK [10:38:21]MH_I2C_Read... [10:38:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:21]Read from MH i2c: E2 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 62 00 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 62 00 A7 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [10:38:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:21]wFMCommunicate OK [10:38:21]SAM_PROTO_GetFieldsCounters done [10:38:21]requested_item shift.num is exist - process it [10:38:21]requested_item shift.opened is exist - process it [10:38:21]req_shift_opened [10:38:21]FM_GetShiftState [10:38:21]SAM_PROTO_GetShiftState [10:38:21]wFMCommunicate request_size=4 [10:38:21]MH_SAM_APDU [10:38:21]CAPDU: 80 13 01 00 [10:38:21]Write to MH i2c: E2 08 00 A8 2B 80 13 01 00 00 00 00 00 50 [10:38:21]Write i2c OK [10:38:21]MH_I2C_Read... [10:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:21]Read from MH i2c: E2 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 0E 00 [10:38:21]MH_I2C_Read... [10:38:21]Read from MH i2c: E2 0E 00 A8 2B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E1 [10:38:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:38:21]wFMCommunicate OK [10:38:21]SAM_PROTO_GetShiftState done [10:38:21]FM_GetShiftState done [10:38:21]req_shift_opened done [10:38:21]requested_item shift.open_date is exist - process it [10:38:21]req_shift_open_date [10:38:21]req_shift_open_date done [10:38:21]produce_requested_data done [10:38:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139634,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:38:21]process_action_free close_receipt [10:38:21]json_value_free [10:38:21]json_value_free done [10:38:21]process_json_proto returns [10:38:21]Send response to host [10:38:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139634,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:38:21]free response buf [10:38:21]execute_script done [10:38:21]execute_script returns [10:38:21]free content buf [10:38:21]Sock 9.Close socket [10:38:21]Sock 9.Thread stoped [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:07]accept exits with 7 [10:39:07]New connection [10:39:07]New thread 3067071844 created [10:39:07]Thread 3067215204 joined [10:39:07]Waiting for new connection... [10:39:07] Sock 7.Parse request [10:39:07]Sock 7.Check first char [10:39:07]Sock 7.First char is OK [10:39:07]request: POST /json_proto HTTP/1.0 [10:39:07]Method: POST [10:39:07]URL: /json_proto [10:39:07]Method is POST - this is cgi request [10:39:07]url: /json_proto [10:39:07]query_string will be loaded in cgi processing [10:39:07]execute_cgi json_proto POST (null) [10:39:07]execute_cgi path=json_proto method=POST [10:39:07]POST find Content-Length [10:39:07]Host: 172.17.45.67:8080 [10:39:07]Content-Length: 677 [10:39:07]Content-Type: application/json [10:39:07] [10:39:07]POST finish read [10:39:07]Found Content-Length = 677 [10:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:07]execute_script... [10:39: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)593481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:07]POST & json_proto [10:39:07]process_json_proto [10:39:07]json parsed OK: [10:39:07]protocol is kg_v1.0 [10:39:07]action value=close_receipt [10:39:07]process_action close_receipt [10:39:07]cmd_close_receipt [10:39:07]MH_GetDate [10:39:07]Write to MH i2c: F0 00 00 A9 2B C3 [10:39:07]Write i2c OK [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: F0 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: F0 09 00 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: F0 09 00 A9 2B 00 4E 72 C4 66 5F 7F 2B 66 25 [10:39:07]GetLastDocTimeStamp 1724150300 [10:39:07]current date 1724150350 [10:39:07]FM_GetShiftState [10:39:07]SAM_PROTO_GetShiftState [10:39:07]wFMCommunicate request_size=4 [10:39:07]MH_SAM_APDU [10:39:07]CAPDU: 80 13 01 00 [10:39:07]Write to MH i2c: E2 08 00 AA 2B 80 13 01 00 00 00 00 00 52 [10:39:07]Write i2c OK [10:39:07]MH_I2C_Read... [10:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:07]Read from MH i2c: E2 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 0E 00 [10:39:07]MH_I2C_Read... [10:39:07]Read from MH i2c: E2 0E 00 AA 2B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E3 [10:39:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:39:07]wFMCommunicate OK [10:39:07]SAM_PROTO_GetShiftState done [10:39:07]FM_GetShiftState done [10:39:07]opened in 1724113785 [10:39:07]opened+sec_in_day 1724200185 [10:39:07]quantity*price = 22037 [10:39:07]sum+1 = 22038 [10:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 107 20.08.2024 10:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139635 ФПД: 73884594427748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103910&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139635&fm=73884594427748&tin=02508201610067®Number=0000000000092569&sum=22000 [10:39:08]StoreToDocumentArchive [10:39:08]shift 453 fd 139635 [10:39:08]save to /storage/0453/doc_00139635 [10:39:08]save last doc name /storage/0453/doc_00139635 to /storage/kkm_last_doc_name [10:39:08]save OK [10:39:08]Clear old archive folders... [10:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:08]tlvbuf is 00D2E490 [10:39:08]SAM_PROTO_ClearQueue [10:39:08]wFMCommunicate request_size=4 [10:39:08]MH_SAM_APDU [10:39:08]CAPDU: 80 09 00 00 [10:39:08]Write to MH i2c: E2 08 00 B7 2B 80 09 00 00 00 00 00 00 54 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 B7 2B 00 90 00 56 [10:39:08]RAPDU: 90 00 [10:39:08]wFMCommunicate OK [10:39:08]SAM_PROTO_ClearQueue done [10:39:08]KKMCreateOFDPacket [10:39:08]OFDProtocolAddRootSTLVToBuf [10:39:08]FM_MakeSignedData [10:39:08]FM_MakeSignedData [10:39:08]SAM_PROTO_SignData [10:39:08]wFMCommunicate request_size=4 [10:39:08]MH_SAM_APDU [10:39:08]CAPDU: 80 0D 01 02 [10:39:08]Write to MH i2c: E2 08 00 B8 2B 80 0D 01 02 00 00 00 00 5C [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 B8 2B 00 90 00 57 [10:39:08]RAPDU: 90 00 [10:39:08]wFMCommunicate OK [10:39:08]wFMCommunicate request_size=255 [10:39:08]MH_SAM_APDU [10:39:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4E 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 21 02 00 35 04 06 00 43 [10:39:08]Write to MH i2c: E2 02 01 B9 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4E 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 21 02 00 35 04 06 00 43 00 00 0A [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 B9 2B 00 90 00 58 [10:39:08]RAPDU: 90 00 [10:39:08]wFMCommunicate OK [10:39:08]wFMCommunicate request_size=10 [10:39:08]MH_SAM_APDU [10:39:08]CAPDU: 80 0D 02 02 05 32 99 01 57 64 [10:39:08]Write to MH i2c: E2 0D 00 BA 2B 80 0D 02 02 05 00 32 99 01 57 64 00 00 F0 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 03 00 BA 2B 00 90 00 59 [10:39:08]RAPDU: 90 00 [10:39:08]wFMCommunicate OK [10:39:08]wFMCommunicate request_size=4 [10:39:08]MH_SAM_APDU [10:39:08]CAPDU: 80 0D 03 02 [10:39:08]Write to MH i2c: E2 08 00 BB 2B 80 0D 03 02 00 00 00 00 61 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 0B 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 0B 00 BB 2B 00 6F 05 2F E0 CA 0D 6C D2 90 00 FA [10:39:08]RAPDU: 6F 05 2F E0 CA 0D 6C D2 90 00 [10:39:08]wFMCommunicate OK [10:39:08]SAM_PROTO_SignData done [10:39:08]FM_MakeSignedData done [10:39:08]CreateOFDProtocolMessage [10:39:08]wFMCommunicate request_size=4 [10:39:08]MH_SAM_APDU [10:39:08]CAPDU: 80 11 00 00 [10:39:08]Write to MH i2c: E2 08 00 BC 2B 80 11 00 00 00 00 00 00 61 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:08]Read from MH i2c: E2 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 17 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: E2 17 00 BC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [10:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:39:08]wFMCommunicate OK [10:39:08]CreateOFDProtocolMessage done [10:39:08]OFDSenderStorePacket 139635 [10:39:08]StoreOFDPacket docnum=139635 [10:39:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BC 59 07 01 4B 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4E 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 21 02 00 35 04 06 00 43 32 99 01 57 64 6F 05 2F E0 CA 0D 6C D2 [10:39:08]CheckFolder [10:39:08]dirname=/storage/ofd_packets [10:39:08]CheckFolder done [10:39:08]ProducePacketName [10:39:08]name=ofd_packets/00139635 [10:39:08]NVStorageSaveData ofd_packets/00139635 [10:39:08]File name is /storage/ofd_packets/00139635 [10:39:08]Write 301 bytes [10:39:08]NVStorageSaveData done [10:39:08]OFDSenderStorePacket done [10:39:08]KKMCreateOFDPacket done [10:39:08]NVStorageSaveData kkm_last_timestamp [10:39:08]File name is /storage/kkm_last_timestamp [10:39:08]Write 4 bytes [10:39:08]NVStorageSaveData done [10:39:08]ExternCall_PrintAddStr [10:39:08]wPrintStart [10:39:08]Write to MH i2c: 01 00 00 BD 2B E8 [10:39:08]Write i2c OK [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 [10:39:08]MH_I2C_Read... [10:39:08]Read from MH i2c: 01 07 00 BD 2B 00 00 00 00 00 FF 0F FD [10:39:08]RasterBufferAndPrint [10:39:08]line Счет N : (1)593481 [10:39:08]line ИНН: 02508201610067 [10:39:08]line Контрольно-Кассовый Чек [10:39:08]line ПРОДАЖА [10:39:08]line ТРК (МРК, ГНК) : 51 [10:39:08]line Товар: 2710124500 [10:39:08]line Аи-95-К-5 [10:39:08]line 2.970 * 74.20 [10:39:08]line = 220.37 [10:39:08]line НДС 12% НСП 1% [10:39:08]line > о реализуемом товаре [10:39:08]line ОКРУГЛЕНИЕ: -0.37 [10:39:08]line ИТОГО: 220.00 [10:39:08]line Внесено: 220.00 [10:39:08]line СДАЧА: 0.00 [10:39:08]line НСП 1% : 1.95 [10:39:08]line НДС 12% : 23.40 [10:39:08]line Наличными: 220.00 [10:39:08]line Безнал.: 0.00 [10:39:08]line Место: АЗС № 136 "Партнер Нефть" [10:39:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:39:08]line СНО: Общий режим [10:39:08]line Чек 107 20.08.2024 10:39 [10:39:08]line Смена: 453 ФФД: 1.0 [10:39:08]line ЗНМ: 0300000067 [10:39:08]line РНМ: 0000000000092569 [10:39:08]line Версия ККМ: 001 [10:39:08]line ФМ: 0000000000871776 [10:39:08]line ФД: 139635 [10:39:08]line ФПД: 73884594427748 [10:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T103910&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139635&fm=73884594427748&tin=02508201610067®Number=0000000000092569&sum=22000 [10:39:09]OFD Sender: Processing packet 139635 [packets to send 137, broken 136] [10:39:09]ProducePacketName [10:39:09]name=ofd_packets/00139635 [10:39:09]OFD Sender: To server: pG, [10:39:09]CommunicateWithHost lk.salyk.kg:30040 [10:39:09]ConnectInit lk.salyk.kg [10:39:09]written 0, free lines is 4095 [10:39:09]Connected sock=10 [10:39:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BC 59 07 01 4B 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 4E 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 21 02 00 35 04 06 00 43 32 99 01 57 64 6F 05 2F E0 CA 0D 6C D2 [10:39:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D9 69 47 00 8A 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 21 02 00 F4 03 04 00 E1 18 C4 66 B6 04 01 00 00 6A F6 54 26 60 0C F9 03 [10:39:09]CommunicateWithHost err = 0 [10:39:09]CheckOFDResponse [10:39:09]1017 (14) - 77093643461234 [10:39:09]1041 (16) - 0000000000871776 [10:39:09]1040 (4) - 139635 [10:39:09]1012 (4) - 20.08.2024 04:17 [10:39:09]1206 (1) - 0 [10:39:09]OFD Sender: Remove packet 139635 [10:39:09]ProducePacketName [10:39:09]name=ofd_packets/00139635 [10:39:09]NVStorageDeleteData [10:39:09]Write to MH i2c: 01 00 00 E8 2B 13 [10:39:09]Write i2c OK [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 07 00 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: 01 07 00 E8 2B 00 00 00 00 00 C2 0C E8 [10:39:09]RasterBufferAndPrint [10:39:09]line [10:39:09]line [10:39:09]line [10:39:09]line [10:39:09]line [10:39:09]written 0, free lines is 3272 [10:39:09]MH_Cut [10:39:09]Write to MH i2c: D1 01 00 EF 2B 01 EC [10:39:09]Write i2c OK [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: D1 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: D1 01 00 [10:39:09]MH_I2C_Read... [10:39:09]Read from MH i2c: D1 01 00 EF 2B 00 EB [10:39:09]Write to MH i2c: 01 00 00 F0 2B 1B [10:39:09]Write i2c OK [10:39:09]MH_I2C_Read... [10:39:10]OFD Sender: No OFD packet to send [10:39:10]*** Cut start [10:39:10]*** Partial cut [10:39:10]*** CUTSNS_PIN = 1 [10:39:10]*** CUTSNS_PIN = 0 [10:39:10]*** Brake cut motor [10:39:11]Read from MH i2c: 01 [10:39:11]MH_I2C_Read... [10:39:11]*** Stop cut motor [10:39:11]*** Cut end [10:39:11]Read from MH i2c: 01 07 00 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: 01 07 00 F0 2B 00 00 00 00 00 FF 0F 30 [10:39:11]process_action close_receipt done [10:39:11]requested_data is exist [10:39:11]produce_requested_data [10:39:11]requested_item fm.sn is exist - process it [10:39:11]wFMCommunicate request_size=4 [10:39:11]MH_SAM_APDU [10:39:11]CAPDU: 80 11 00 00 [10:39:11]Write to MH i2c: E2 08 00 F1 2B 80 11 00 00 00 00 00 00 96 [10:39:11]Write i2c OK [10:39:11]MH_I2C_Read... [10:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:11]Read from MH i2c: E2 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: E2 17 00 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: E2 17 00 F1 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [10:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:39:11]wFMCommunicate OK [10:39:11]requested_item fd.num is exist - process it [10:39:11]SAM_PROTO_GetFieldsCounters [10:39:11]wFMCommunicate request_size=4 [10:39:11]MH_SAM_APDU [10:39:11]CAPDU: 80 13 00 00 [10:39:11]Write to MH i2c: E2 08 00 F2 2B 80 13 00 00 00 00 00 00 99 [10:39:11]Write i2c OK [10:39:11]MH_I2C_Read... [10:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:11]Read from MH i2c: E2 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: E2 62 00 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: E2 62 00 F2 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [10:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:11]wFMCommunicate OK [10:39:11]SAM_PROTO_GetFieldsCounters done [10:39:11]requested_item shift.num is exist - process it [10:39:11]requested_item shift.opened is exist - process it [10:39:11]req_shift_opened [10:39:11]FM_GetShiftState [10:39:11]SAM_PROTO_GetShiftState [10:39:11]wFMCommunicate request_size=4 [10:39:11]MH_SAM_APDU [10:39:11]CAPDU: 80 13 01 00 [10:39:11]Write to MH i2c: E2 08 00 F3 2B 80 13 01 00 00 00 00 00 9B [10:39:11]Write i2c OK [10:39:11]MH_I2C_Read... [10:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:11]Read from MH i2c: E2 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: E2 0E 00 [10:39:11]MH_I2C_Read... [10:39:11]Read from MH i2c: E2 0E 00 F3 2B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2C [10:39:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:39:11]wFMCommunicate OK [10:39:11]SAM_PROTO_GetShiftState done [10:39:11]FM_GetShiftState done [10:39:11]req_shift_opened done [10:39:11]requested_item shift.open_date is exist - process it [10:39:11]req_shift_open_date [10:39:11]req_shift_open_date done [10:39:11]produce_requested_data done [10:39:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139635,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:39:11]process_action_free close_receipt [10:39:11]json_value_free [10:39:11]json_value_free done [10:39:11]process_json_proto returns [10:39:11]Send response to host [10:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139635,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:39:11]free response buf [10:39:11]execute_script done [10:39:11]execute_script returns [10:39:11]free content buf [10:39:11]Sock 7.Close socket [10:39:11]Sock 7.Thread stoped [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:39:58]accept exits with 9 [10:39:58]New connection [10:39:58]New thread 3067215204 created [10:39:58]Thread 3067071844 joined [10:39:58]Waiting for new connection... [10:39:58] Sock 9.Parse request [10:39:58]Sock 9.Check first char [10:39:58]Sock 9.First char is OK [10:39:58]request: POST /json_proto HTTP/1.0 [10:39:58]Method: POST [10:39:58]URL: /json_proto [10:39:58]Method is POST - this is cgi request [10:39:58]url: /json_proto [10:39:58]query_string will be loaded in cgi processing [10:39:58]execute_cgi json_proto POST (null) [10:39:58]execute_cgi path=json_proto method=POST [10:39:58]POST find Content-Length [10:39:58]Host: 172.17.45.67:8080 [10:39:58]Content-Length: 677 [10:39:58]Content-Type: application/json [10:39:58] [10:39:58]POST finish read [10:39:58]Found Content-Length = 677 [10:39:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:58]execute_script... [10:39: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)593482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:58]POST & json_proto [10:39:58]process_json_proto [10:39:58]json parsed OK: [10:39:58]protocol is kg_v1.0 [10:39:58]action value=close_receipt [10:39:58]process_action close_receipt [10:39:58]cmd_close_receipt [10:39:58]MH_GetDate [10:39:58]Write to MH i2c: F0 00 00 F4 2B 0E [10:39:58]Write i2c OK [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: F0 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: F0 09 00 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: F0 09 00 F4 2B 00 81 72 C4 66 5F 7F 2B 66 A3 [10:39:58]GetLastDocTimeStamp 1724150350 [10:39:58]current date 1724150401 [10:39:58]FM_GetShiftState [10:39:58]SAM_PROTO_GetShiftState [10:39:58]wFMCommunicate request_size=4 [10:39:58]MH_SAM_APDU [10:39:58]CAPDU: 80 13 01 00 [10:39:58]Write to MH i2c: E2 08 00 F5 2B 80 13 01 00 00 00 00 00 9D [10:39:58]Write i2c OK [10:39:58]MH_I2C_Read... [10:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:58]Read from MH i2c: E2 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: E2 0E 00 [10:39:58]MH_I2C_Read... [10:39:58]Read from MH i2c: E2 0E 00 F5 2B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2E [10:39:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:39:58]wFMCommunicate OK [10:39:58]SAM_PROTO_GetShiftState done [10:39:58]FM_GetShiftState done [10:39:58]opened in 1724113785 [10:39:58]opened+sec_in_day 1724200185 [10:39:58]quantity*price = 30035 [10:39:58]sum+1 = 30036 [10:39:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 108 20.08.2024 10:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139636 ФПД: 108158726414517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104001&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139636&fm=108158726414517&tin=02508201610067®Number=0000000000092569&sum=30000 [10:39:59]StoreToDocumentArchive [10:39:59]shift 453 fd 139636 [10:39:59]save to /storage/0453/doc_00139636 [10:39:59]save last doc name /storage/0453/doc_00139636 to /storage/kkm_last_doc_name [10:39:59]save OK [10:39:59]Clear old archive folders... [10:39:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:59]tlvbuf is 00D75C90 [10:39:59]SAM_PROTO_ClearQueue [10:39:59]wFMCommunicate request_size=4 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 09 00 00 [10:39:59]Write to MH i2c: E2 08 00 02 2C 80 09 00 00 00 00 00 00 A0 [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 03 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 03 00 02 2C 00 90 00 A2 [10:39:59]RAPDU: 90 00 [10:39:59]wFMCommunicate OK [10:39:59]SAM_PROTO_ClearQueue done [10:39:59]KKMCreateOFDPacket [10:39:59]OFDProtocolAddRootSTLVToBuf [10:39:59]FM_MakeSignedData [10:39:59]FM_MakeSignedData [10:39:59]SAM_PROTO_SignData [10:39:59]wFMCommunicate request_size=4 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 0D 01 02 [10:39:59]Write to MH i2c: E2 08 00 03 2C 80 0D 01 02 00 00 00 00 A8 [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 03 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 03 00 03 2C 00 90 00 A3 [10:39:59]RAPDU: 90 00 [10:39:59]wFMCommunicate OK [10:39:59]wFMCommunicate request_size=255 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 81 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 21 02 00 35 04 06 00 62 [10:39:59]Write to MH i2c: E2 02 01 04 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 81 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 21 02 00 35 04 06 00 62 00 00 98 [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 03 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 03 00 04 2C 00 90 00 A4 [10:39:59]RAPDU: 90 00 [10:39:59]wFMCommunicate OK [10:39:59]wFMCommunicate request_size=10 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 0D 02 02 05 5E AA 77 A0 B5 [10:39:59]Write to MH i2c: E2 0D 00 05 2C 80 0D 02 02 05 00 5E AA 77 A0 B5 00 00 89 [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 03 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 03 00 05 2C 00 90 00 A5 [10:39:59]RAPDU: 90 00 [10:39:59]wFMCommunicate OK [10:39:59]wFMCommunicate request_size=4 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 0D 03 02 [10:39:59]Write to MH i2c: E2 08 00 06 2C 80 0D 03 02 00 00 00 00 AD [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 0B 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 0B 00 06 2C 00 C1 5B E1 9D C8 83 2D FB 90 00 BB [10:39:59]RAPDU: C1 5B E1 9D C8 83 2D FB 90 00 [10:39:59]wFMCommunicate OK [10:39:59]SAM_PROTO_SignData done [10:39:59]FM_MakeSignedData done [10:39:59]CreateOFDProtocolMessage [10:39:59]wFMCommunicate request_size=4 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 11 00 00 [10:39:59]Write to MH i2c: E2 08 00 07 2C 80 11 00 00 00 00 00 00 AD [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 17 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 17 00 07 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [10:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:39:59]wFMCommunicate OK [10:39:59]CreateOFDProtocolMessage done [10:39:59]OFDSenderStorePacket 139636 [10:39:59]StoreOFDPacket docnum=139636 [10:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 4A 07 01 4F F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 81 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 21 02 00 35 04 06 00 62 5E AA 77 A0 B5 C1 5B E1 9D C8 83 2D FB [10:39:59]CheckFolder [10:39:59]dirname=/storage/ofd_packets [10:39:59]CheckFolder done [10:39:59]ProducePacketName [10:39:59]name=ofd_packets/00139636 [10:39:59]NVStorageSaveData ofd_packets/00139636 [10:39:59]File name is /storage/ofd_packets/00139636 [10:39:59]Write 301 bytes [10:39:59]NVStorageSaveData done [10:39:59]OFDSenderStorePacket done [10:39:59]KKMCreateOFDPacket done [10:39:59]NVStorageSaveData kkm_last_timestamp [10:39:59]File name is /storage/kkm_last_timestamp [10:39:59]Write 4 bytes [10:39:59]NVStorageSaveData done [10:39:59]ExternCall_PrintAddStr [10:39:59]wPrintStart [10:39:59]Write to MH i2c: 01 00 00 08 2C 34 [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: 01 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: 01 07 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: 01 07 00 08 2C 00 00 00 00 00 FF 0F 49 [10:39:59]RasterBufferAndPrint [10:39:59]line Счет N : (1)593482 [10:39:59]line ИНН: 02508201610067 [10:39:59]line Контрольно-Кассовый Чек [10:39:59]line ПРОДАЖА [10:39:59]line ТРК (МРК, ГНК) : 32 [10:39:59]line Товар: 2710124130 [10:39:59]line Аи-92-К-5 [10:39:59]line 4.430 * 67.80 [10:39:59]line = 300.35 [10:39:59]line НДС 12% НСП 1% [10:39:59]line > о реализуемом товаре [10:39:59]line ОКРУГЛЕНИЕ: -0.35 [10:39:59]line ИТОГО: 300.00 [10:39:59]line Внесено: 300.00 [10:39:59]line СДАЧА: 0.00 [10:39:59]line НСП 1% : 2.66 [10:39:59]line НДС 12% : 31.90 [10:39:59]line Наличными: 300.00 [10:39:59]line Безнал.: 0.00 [10:39:59]line Место: АЗС № 136 "Партнер Нефть" [10:39:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:39:59]line СНО: Общий режим [10:39:59]line Чек 108 20.08.2024 10:40 [10:39:59]line Смена: 453 ФФД: 1.0 [10:39:59]line ЗНМ: 0300000067 [10:39:59]line РНМ: 0000000000092569 [10:39:59]line Версия ККМ: 001 [10:39:59]line ФМ: 0000000000871776 [10:39:59]line ФД: 139636 [10:39:59]line ФПД: 108158726414517 [10:40:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104001&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139636&fm=108158726414517&tin=02508201610067®Number=0000000000092569&sum=30000 [10:40:00]OFD Sender: Processing packet 139636 [packets to send 137, broken 136] [10:40:00]ProducePacketName [10:40:00]name=ofd_packets/00139636 [10:40:00]OFD Sender: To server: pG, [10:40:00]CommunicateWithHost lk.salyk.kg:30040 [10:40:00]ConnectInit lk.salyk.kg [10:40:00]written 0, free lines is 4095 [10:40:00]Connected sock=10 [10:40:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 4A 07 01 4F F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 81 72 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 21 02 00 35 04 06 00 62 5E AA 77 A0 B5 C1 5B E1 9D C8 83 2D FB [10:40:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5A 40 47 00 0E 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 21 02 00 F4 03 04 00 14 19 C4 66 B6 04 01 00 00 9C 0E 1F 77 68 05 B0 C3 [10:40:00]CommunicateWithHost err = 0 [10:40:00]CheckOFDResponse [10:40:00]1017 (14) - 77093643461234 [10:40:00]1041 (16) - 0000000000871776 [10:40:00]1040 (4) - 139636 [10:40:00]1012 (4) - 20.08.2024 04:18 [10:40:00]1206 (1) - 0 [10:40:00]OFD Sender: Remove packet 139636 [10:40:00]ProducePacketName [10:40:00]name=ofd_packets/00139636 [10:40:00]NVStorageDeleteData [10:40:00]Write to MH i2c: 01 00 00 33 2C 5F [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: 01 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: 01 07 00 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: 01 07 00 33 2C 00 00 00 00 00 E4 0C 56 [10:40:00]RasterBufferAndPrint [10:40:00]line [10:40:00]line [10:40:00]line [10:40:00]line [10:40:00]line [10:40:00]written 0, free lines is 3306 [10:40:00]MH_Cut [10:40:00]Write to MH i2c: D1 01 00 3A 2C 01 38 [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: D1 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: D1 01 00 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: D1 01 00 3A 2C 00 37 [10:40:00]Write to MH i2c: 01 00 00 3B 2C 67 [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:01]OFD Sender: No OFD packet to send [10:40:01]*** Cut start [10:40:01]*** Partial cut [10:40:01]*** CUTSNS_PIN = 1 [10:40:01]*** CUTSNS_PIN = 0 [10:40:01]*** Brake cut motor [10:40:02]Read from MH i2c: 01 [10:40:02]MH_I2C_Read... [10:40:02]*** Stop cut motor [10:40:02]*** Cut end [10:40:02]Read from MH i2c: 01 07 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 3B 2C 00 00 00 00 00 FF 0F 7C [10:40:02]process_action close_receipt done [10:40:02]requested_data is exist [10:40:02]produce_requested_data [10:40:02]requested_item fm.sn is exist - process it [10:40:02]wFMCommunicate request_size=4 [10:40:02]MH_SAM_APDU [10:40:02]CAPDU: 80 11 00 00 [10:40:02]Write to MH i2c: E2 08 00 3C 2C 80 11 00 00 00 00 00 00 E2 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 17 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 17 00 3C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [10:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:40:02]wFMCommunicate OK [10:40:02]requested_item fd.num is exist - process it [10:40:02]SAM_PROTO_GetFieldsCounters [10:40:02]wFMCommunicate request_size=4 [10:40:02]MH_SAM_APDU [10:40:02]CAPDU: 80 13 00 00 [10:40:02]Write to MH i2c: E2 08 00 3D 2C 80 13 00 00 00 00 00 00 E5 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 62 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 62 00 3D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [10:40:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:02]wFMCommunicate OK [10:40:02]SAM_PROTO_GetFieldsCounters done [10:40:02]requested_item shift.num is exist - process it [10:40:02]requested_item shift.opened is exist - process it [10:40:02]req_shift_opened [10:40:02]FM_GetShiftState [10:40:02]SAM_PROTO_GetShiftState [10:40:02]wFMCommunicate request_size=4 [10:40:02]MH_SAM_APDU [10:40:02]CAPDU: 80 13 01 00 [10:40:02]Write to MH i2c: E2 08 00 3E 2C 80 13 01 00 00 00 00 00 E7 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 0E 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 0E 00 3E 2C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 78 [10:40:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:40:02]wFMCommunicate OK [10:40:02]SAM_PROTO_GetShiftState done [10:40:02]FM_GetShiftState done [10:40:02]req_shift_opened done [10:40:02]requested_item shift.open_date is exist - process it [10:40:02]req_shift_open_date [10:40:02]req_shift_open_date done [10:40:02]produce_requested_data done [10:40:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139636,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:40:02]process_action_free close_receipt [10:40:02]json_value_free [10:40:02]json_value_free done [10:40:02]process_json_proto returns [10:40:02]Send response to host [10:40:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139636,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:40:02]free response buf [10:40:02]execute_script done [10:40:02]execute_script returns [10:40:02]free content buf [10:40:02]Sock 9.Close socket [10:40:02]Sock 9.Thread stoped [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:53]int [10:42:53]Write to MH i2c: 01 00 00 3F 2C 6B [10:42:53]*** FLAG_PRN_KEY set [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 07 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 07 00 3F 2C 00 08 00 00 00 FF 0F 88 [10:42:53]state=0 [10:42:53]Key pressed [10:42:53]Feed [10:42:53]Write to MH i2c: D8 00 00 40 2C 43 [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: D8 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: D8 01 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: D8 01 00 40 2C 00 44 [10:42:53]int [10:42:53]Write to MH i2c: 01 00 00 41 2C 6D [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 07 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 07 00 41 2C 00 48 00 00 00 3C 00 F8 [10:42:53]state=2 [10:42:53]Key pressed [10:42:53]int [10:42:53]Write to MH i2c: 01 00 00 42 2C 6E [10:42:53]*** FLAG_PRN_KEY reset [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 07 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 07 00 42 2C 00 00 00 00 00 F6 0F 7A [10:42:53]state=2 [10:42:53]Stop feed [10:42:56]OFD Sender: No OFD packet to send [10:42:59]accept exits with 7 [10:42:59]New connection [10:42:59]New thread 3067071844 created [10:42:59]Thread 3067215204 joined [10:42:59]Waiting for new connection... [10:42:59] Sock 7.Parse request [10:42:59]Sock 7.Check first char [10:42:59]Sock 7.First char is OK [10:42:59]request: POST /json_proto HTTP/1.0 [10:42:59]Method: POST [10:42:59]URL: /json_proto [10:42:59]Method is POST - this is cgi request [10:42:59]url: /json_proto [10:42:59]query_string will be loaded in cgi processing [10:42:59]execute_cgi json_proto POST (null) [10:42:59]execute_cgi path=json_proto method=POST [10:42:59]POST find Content-Length [10:42:59]Host: 172.17.45.67:8080 [10:42:59]Content-Length: 687 [10:42:59]Content-Type: application/json [10:42:59] [10:42:59]POST finish read [10:42:59]Found Content-Length = 687 [10:42:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:42:59]execute_script... [10:42: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)593483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:42:59]POST & json_proto [10:42:59]process_json_proto [10:42:59]json parsed OK: [10:42:59]protocol is kg_v1.0 [10:42:59]action value=close_receipt [10:42:59]process_action close_receipt [10:42:59]cmd_close_receipt [10:42:59]MH_GetDate [10:42:59]Write to MH i2c: F0 00 00 43 2C 5E [10:42:59]Write i2c OK [10:42:59]MH_I2C_Read... [10:42:59]Read from MH i2c: F0 [10:42:59]MH_I2C_Read... [10:42:59]Read from MH i2c: F0 09 00 [10:42:59]MH_I2C_Read... [10:42:59]Read from MH i2c: F0 09 00 43 2C 00 36 73 C4 66 5F 7F 2B 66 A9 [10:42:59]GetLastDocTimeStamp 1724150401 [10:42:59]current date 1724150582 [10:42:59]FM_GetShiftState [10:42:59]SAM_PROTO_GetShiftState [10:42:59]wFMCommunicate request_size=4 [10:42:59]MH_SAM_APDU [10:42:59]CAPDU: 80 13 01 00 [10:42:59]Write to MH i2c: E2 08 00 44 2C 80 13 01 00 00 00 00 00 ED [10:42:59]Write i2c OK [10:42:59]MH_I2C_Read... [10:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:59]Read from MH i2c: E2 [10:42:59]MH_I2C_Read... [10:42:59]Read from MH i2c: E2 0E 00 [10:42:59]MH_I2C_Read... [10:42:59]Read from MH i2c: E2 0E 00 44 2C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7E [10:42:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:42:59]wFMCommunicate OK [10:42:59]SAM_PROTO_GetShiftState done [10:42:59]FM_GetShiftState done [10:42:59]opened in 1724113785 [10:42:59]opened+sec_in_day 1724200185 [10:42:59]quantity*price = 100050 [10:42:59]sum+1 = 100052 [10:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 109 20.08.2024 10:43 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139637 ФПД: 231701352793700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139637&fm=231701352793700&tin=02508201610067®Number=0000000000092569&sum=100000 [10:43:00]StoreToDocumentArchive [10:43:00]shift 453 fd 139637 [10:43:00]save to /storage/0453/doc_00139637 [10:43:00]save last doc name /storage/0453/doc_00139637 to /storage/kkm_last_doc_name [10:43:00]save OK [10:43:00]Clear old archive folders... [10:43:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:43:00]tlvbuf is 00D75570 [10:43:00]SAM_PROTO_ClearQueue [10:43:00]wFMCommunicate request_size=4 [10:43:00]MH_SAM_APDU [10:43:00]CAPDU: 80 09 00 00 [10:43:00]Write to MH i2c: E2 08 00 51 2C 80 09 00 00 00 00 00 00 EF [10:43:00]Write i2c OK [10:43:00]MH_I2C_Read... [10:43:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:00]Read from MH i2c: E2 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 03 00 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 03 00 51 2C 00 90 00 F1 [10:43:00]RAPDU: 90 00 [10:43:00]wFMCommunicate OK [10:43:00]SAM_PROTO_ClearQueue done [10:43:00]KKMCreateOFDPacket [10:43:00]OFDProtocolAddRootSTLVToBuf [10:43:00]FM_MakeSignedData [10:43:00]FM_MakeSignedData [10:43:00]SAM_PROTO_SignData [10:43:00]wFMCommunicate request_size=4 [10:43:00]MH_SAM_APDU [10:43:00]CAPDU: 80 0D 01 02 [10:43:00]Write to MH i2c: E2 08 00 52 2C 80 0D 01 02 00 00 00 00 F7 [10:43:00]Write i2c OK [10:43:00]MH_I2C_Read... [10:43:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:00]Read from MH i2c: E2 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 03 00 [10:43:00]MH_I2C_Read... [10:43:00]Read from MH i2c: E2 03 00 52 2C 00 90 00 F2 [10:43:00]RAPDU: 90 00 [10:43:00]wFMCommunicate OK [10:43:00]wFMCommunicate request_size=255 [10:43:00]MH_SAM_APDU [10:43:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 36 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 21 02 00 35 04 06 00 [10:43:00]Write to MH i2c: E2 02 01 53 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 36 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 21 02 00 35 04 06 00 00 00 0C [10:43:00]Write i2c OK [10:43:00]MH_I2C_Read... [10:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:01]Read from MH i2c: E2 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 03 00 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 03 00 53 2C 00 90 00 F3 [10:43:01]RAPDU: 90 00 [10:43:01]wFMCommunicate OK [10:43:01]wFMCommunicate request_size=11 [10:43:01]MH_SAM_APDU [10:43:01]CAPDU: 80 0D 02 02 06 D2 BB 2C D3 C6 64 [10:43:01]Write to MH i2c: E2 0E 00 54 2C 80 0D 02 02 06 00 D2 BB 2C D3 C6 64 00 00 BC [10:43:01]Write i2c OK [10:43:01]MH_I2C_Read... [10:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:01]Read from MH i2c: E2 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 03 00 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 03 00 54 2C 00 90 00 F4 [10:43:01]RAPDU: 90 00 [10:43:01]wFMCommunicate OK [10:43:01]wFMCommunicate request_size=4 [10:43:01]MH_SAM_APDU [10:43:01]CAPDU: 80 0D 03 02 [10:43:01]Write to MH i2c: E2 08 00 55 2C 80 0D 03 02 00 00 00 00 FC [10:43:01]Write i2c OK [10:43:01]MH_I2C_Read... [10:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:01]Read from MH i2c: E2 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 0B 00 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 0B 00 55 2C 00 B1 E2 7A FF AC 6D 6B 90 90 00 1D [10:43:01]RAPDU: B1 E2 7A FF AC 6D 6B 90 90 00 [10:43:01]wFMCommunicate OK [10:43:01]SAM_PROTO_SignData done [10:43:01]FM_MakeSignedData done [10:43:01]CreateOFDProtocolMessage [10:43:01]wFMCommunicate request_size=4 [10:43:01]MH_SAM_APDU [10:43:01]CAPDU: 80 11 00 00 [10:43:01]Write to MH i2c: E2 08 00 56 2C 80 11 00 00 00 00 00 00 FC [10:43:01]Write i2c OK [10:43:01]MH_I2C_Read... [10:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:01]Read from MH i2c: E2 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 17 00 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: E2 17 00 56 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [10:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:43:01]wFMCommunicate OK [10:43:01]CreateOFDProtocolMessage done [10:43:01]OFDSenderStorePacket 139637 [10:43:01]StoreOFDPacket docnum=139637 [10:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 65 9C 08 01 EE 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 36 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 21 02 00 35 04 06 00 D2 BB 2C D3 C6 64 B1 E2 7A FF AC 6D 6B 90 [10:43:01]CheckFolder [10:43:01]dirname=/storage/ofd_packets [10:43:01]CheckFolder done [10:43:01]ProducePacketName [10:43:01]name=ofd_packets/00139637 [10:43:01]NVStorageSaveData ofd_packets/00139637 [10:43:01]File name is /storage/ofd_packets/00139637 [10:43:01]Write 302 bytes [10:43:01]NVStorageSaveData done [10:43:01]OFDSenderStorePacket done [10:43:01]KKMCreateOFDPacket done [10:43:01]NVStorageSaveData kkm_last_timestamp [10:43:01]File name is /storage/kkm_last_timestamp [10:43:01]Write 4 bytes [10:43:01]NVStorageSaveData done [10:43:01]ExternCall_PrintAddStr [10:43:01]wPrintStart [10:43:01]Write to MH i2c: 01 00 00 57 2C 83 [10:43:01]Write i2c OK [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: 01 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: 01 07 00 [10:43:01]MH_I2C_Read... [10:43:01]Read from MH i2c: 01 07 00 57 2C 00 00 00 00 00 FF 0F 98 [10:43:01]RasterBufferAndPrint [10:43:01]line Счет N : (1)593483 [10:43:01]line ИНН: 02508201610067 [10:43:01]line Контрольно-Кассовый Чек [10:43:01]line ПРОДАЖА [10:43:01]line ТРК (МРК, ГНК) : 34 [10:43:01]line Товар: 2710194210 [10:43:01]line ДТ(л)-К-5 [10:43:01]line 13.130 * 76.20 [10:43:01]line = 1000.51 [10:43:01]line НДС 12% НСП 1% [10:43:01]line > о реализуемом товаре [10:43:01]line ОКРУГЛЕНИЕ: -0.51 [10:43:01]line ИТОГО: 1000.00 [10:43:01]line Внесено: 1000.00 [10:43:01]line СДАЧА: 0.00 [10:43:01]line НСП 1% : 8.85 [10:43:01]line НДС 12% : 106.25 [10:43:01]line Наличными: 1000.00 [10:43:01]line Безнал.: 0.00 [10:43:01]line Место: АЗС № 136 "Партнер Нефть" [10:43:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:43:01]line СНО: Общий режим [10:43:01]line Чек 109 20.08.2024 10:43 [10:43:01]line Смена: 453 ФФД: 1.0 [10:43:01]line ЗНМ: 0300000067 [10:43:01]line РНМ: 0000000000092569 [10:43:01]line Версия ККМ: 001 [10:43:01]line ФМ: 0000000000871776 [10:43:01]line ФД: 139637 [10:43:01]line ФПД: 231701352793700 [10:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139637&fm=231701352793700&tin=02508201610067®Number=0000000000092569&sum=100000 [10:43:01]OFD Sender: Processing packet 139637 [packets to send 137, broken 136] [10:43:01]ProducePacketName [10:43:01]name=ofd_packets/00139637 [10:43:01]OFD Sender: To server: pG, [10:43:01]CommunicateWithHost lk.salyk.kg:30040 [10:43:01]ConnectInit lk.salyk.kg [10:43:01]written 0, free lines is 4095 [10:43:01]Connected sock=10 [10:43:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 65 9C 08 01 EE 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 36 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 21 02 00 35 04 06 00 D2 BB 2C D3 C6 64 B1 E2 7A FF AC 6D 6B 90 [10:43:02]Write to MH i2c: 01 00 00 82 2C AE [10:43:02]Write i2c OK [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: 01 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: 01 07 00 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: 01 07 00 82 2C 00 00 00 00 00 CD 0C 8E [10:43:02]RasterBufferAndPrint [10:43:02]line [10:43:02]line [10:43:02]line [10:43:02]line [10:43:02]line [10:43:02]written 0, free lines is 3281 [10:43:02]MH_Cut [10:43:02]Write to MH i2c: D1 01 00 89 2C 01 87 [10:43:02]Write i2c OK [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: D1 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: D1 01 00 [10:43:02]MH_I2C_Read... [10:43:02]Read from MH i2c: D1 01 00 89 2C 00 86 [10:43:02]Write to MH i2c: 01 00 00 8A 2C B6 [10:43:02]Write i2c OK [10:43:02]MH_I2C_Read... [10:43:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 94 50 47 00 41 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 21 02 00 F4 03 04 00 CA 19 C4 66 B6 04 01 00 00 90 75 B4 36 87 51 E1 29 [10:43:02]CommunicateWithHost err = 0 [10:43:02]CheckOFDResponse [10:43:02]1017 (14) - 77093643461234 [10:43:02]1041 (16) - 0000000000871776 [10:43:02]1040 (4) - 139637 [10:43:02]1012 (4) - 20.08.2024 04:21 [10:43:02]1206 (1) - 0 [10:43:02]OFD Sender: Remove packet 139637 [10:43:02]ProducePacketName [10:43:02]name=ofd_packets/00139637 [10:43:02]NVStorageDeleteData [10:43:02]OFD Sender: No OFD packet to send [10:43:02]*** Cut start [10:43:02]*** Partial cut [10:43:02]*** CUTSNS_PIN = 1 [10:43:02]*** CUTSNS_PIN = 0 [10:43:03]*** Brake cut motor [10:43:03]Read from MH i2c: 01 [10:43:03]MH_I2C_Read... [10:43:03]*** Stop cut motor [10:43:03]*** Cut end [10:43:03]Read from MH i2c: 01 07 00 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: 01 07 00 8A 2C 00 00 00 00 00 FF 0F CB [10:43:03]process_action close_receipt done [10:43:03]requested_data is exist [10:43:03]produce_requested_data [10:43:03]requested_item fm.sn is exist - process it [10:43:03]wFMCommunicate request_size=4 [10:43:03]MH_SAM_APDU [10:43:03]CAPDU: 80 11 00 00 [10:43:03]Write to MH i2c: E2 08 00 8B 2C 80 11 00 00 00 00 00 00 31 [10:43:03]Write i2c OK [10:43:03]MH_I2C_Read... [10:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:03]Read from MH i2c: E2 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 17 00 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 17 00 8B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [10:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:43:03]wFMCommunicate OK [10:43:03]requested_item fd.num is exist - process it [10:43:03]SAM_PROTO_GetFieldsCounters [10:43:03]wFMCommunicate request_size=4 [10:43:03]MH_SAM_APDU [10:43:03]CAPDU: 80 13 00 00 [10:43:03]Write to MH i2c: E2 08 00 8C 2C 80 13 00 00 00 00 00 00 34 [10:43:03]Write i2c OK [10:43:03]MH_I2C_Read... [10:43:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:03]Read from MH i2c: E2 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 62 00 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 62 00 8C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [10:43:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:03]wFMCommunicate OK [10:43:03]SAM_PROTO_GetFieldsCounters done [10:43:03]requested_item shift.num is exist - process it [10:43:03]requested_item shift.opened is exist - process it [10:43:03]req_shift_opened [10:43:03]FM_GetShiftState [10:43:03]SAM_PROTO_GetShiftState [10:43:03]wFMCommunicate request_size=4 [10:43:03]MH_SAM_APDU [10:43:03]CAPDU: 80 13 01 00 [10:43:03]Write to MH i2c: E2 08 00 8D 2C 80 13 01 00 00 00 00 00 36 [10:43:03]Write i2c OK [10:43:03]MH_I2C_Read... [10:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:03]Read from MH i2c: E2 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 0E 00 [10:43:03]MH_I2C_Read... [10:43:03]Read from MH i2c: E2 0E 00 8D 2C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C7 [10:43:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:43:03]wFMCommunicate OK [10:43:03]SAM_PROTO_GetShiftState done [10:43:03]FM_GetShiftState done [10:43:03]req_shift_opened done [10:43:03]requested_item shift.open_date is exist - process it [10:43:03]req_shift_open_date [10:43:03]req_shift_open_date done [10:43:03]produce_requested_data done [10:43:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139637,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:43:03]process_action_free close_receipt [10:43:03]json_value_free [10:43:03]json_value_free done [10:43:03]process_json_proto returns [10:43:03]Send response to host [10:43:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139637,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:43:03]free response buf [10:43:03]execute_script done [10:43:03]execute_script returns [10:43:03]free content buf [10:43:03]Sock 7.Close socket [10:43:03]Sock 7.Thread stoped [10:43:05]int [10:43:05]Write to MH i2c: 01 00 00 8E 2C BA [10:43:05]*** FLAG_PRN_KEY set [10:43:05]Write i2c OK [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 07 00 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 07 00 8E 2C 00 08 00 00 00 FF 0F D7 [10:43:05]state=0 [10:43:05]Key pressed [10:43:05]Feed [10:43:05]Write to MH i2c: D8 00 00 8F 2C 92 [10:43:05]Write i2c OK [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: D8 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: D8 01 00 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: D8 01 00 8F 2C 00 93 [10:43:05]int [10:43:05]Write to MH i2c: 01 00 00 90 2C BC [10:43:05]Write i2c OK [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 07 00 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 07 00 90 2C 00 48 00 00 00 3C 00 47 [10:43:05]state=2 [10:43:05]Key pressed [10:43:05]int [10:43:05]Write to MH i2c: 01 00 00 91 2C BD [10:43:05]*** FLAG_PRN_KEY reset [10:43:05]Write i2c OK [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 07 00 [10:43:05]MH_I2C_Read... [10:43:05]Read from MH i2c: 01 07 00 91 2C 00 00 00 00 00 FD 0F D0 [10:43:05]state=2 [10:43:05]Stop feed [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:11]accept exits with 9 [10:45:11]New connection [10:45:11]New thread 3067215204 created [10:45:11]Thread 3067071844 joined [10:45:11]Waiting for new connection... [10:45:11] Sock 9.Parse request [10:45:11]Sock 9.Check first char [10:45:11]Sock 9.First char is OK [10:45:11]request: POST /json_proto HTTP/1.0 [10:45:11]Method: POST [10:45:11]URL: /json_proto [10:45:11]Method is POST - this is cgi request [10:45:11]url: /json_proto [10:45:11]query_string will be loaded in cgi processing [10:45:11]execute_cgi json_proto POST (null) [10:45:11]execute_cgi path=json_proto method=POST [10:45:11]POST find Content-Length [10:45:11]Host: 172.17.45.67:8080 [10:45:11]Content-Length: 818 [10:45:11]Content-Type: application/json [10:45:11] [10:45:11]POST finish read [10:45:11]Found Content-Length = 818 [10:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:11]execute_script... [10:45:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:11]POST & json_proto [10:45:11]process_json_proto [10:45:11]json parsed OK: [10:45:11]protocol is kg_v1.0 [10:45:11]action value=close_receipt [10:45:11]process_action close_receipt [10:45:11]cmd_close_receipt [10:45:11]MH_GetDate [10:45:11]Write to MH i2c: F0 00 00 92 2C AD [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: F0 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: F0 09 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: F0 09 00 92 2C 00 BA 73 C4 66 5F 7F 2B 66 7C [10:45:11]GetLastDocTimeStamp 1724150582 [10:45:11]current date 1724150714 [10:45:11]FM_GetShiftState [10:45:11]SAM_PROTO_GetShiftState [10:45:11]wFMCommunicate request_size=4 [10:45:11]MH_SAM_APDU [10:45:11]CAPDU: 80 13 01 00 [10:45:11]Write to MH i2c: E2 08 00 93 2C 80 13 01 00 00 00 00 00 3C [10:45:11]Write i2c OK [10:45:11]MH_I2C_Read... [10:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:11]Read from MH i2c: E2 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 0E 00 [10:45:11]MH_I2C_Read... [10:45:11]Read from MH i2c: E2 0E 00 93 2C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CD [10:45:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:45:11]wFMCommunicate OK [10:45:11]SAM_PROTO_GetShiftState done [10:45:11]FM_GetShiftState done [10:45:11]opened in 1724113785 [10:45:11]opened+sec_in_day 1724200185 [10:45:11]quantity*price = 50036 [10:45:11]sum+1 = 50037 [10:45:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 110 20.08.2024 10:45 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139638 ФПД: 234287241071605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104514&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139638&fm=234287241071605&tin=02508201610067®Number=0000000000092569&sum=50000 [10:45:12]StoreToDocumentArchive [10:45:12]shift 453 fd 139638 [10:45:12]save to /storage/0453/doc_00139638 [10:45:12]save last doc name /storage/0453/doc_00139638 to /storage/kkm_last_doc_name [10:45:12]save OK [10:45:12]Clear old archive folders... [10:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:12]tlvbuf is 00DA9B00 [10:45:12]SAM_PROTO_ClearQueue [10:45:12]wFMCommunicate request_size=4 [10:45:12]MH_SAM_APDU [10:45:12]CAPDU: 80 09 00 00 [10:45:12]Write to MH i2c: E2 08 00 A0 2C 80 09 00 00 00 00 00 00 3E [10:45:12]Write i2c OK [10:45:12]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 03 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 03 00 A0 2C 00 90 00 40 [10:45:13]RAPDU: 90 00 [10:45:13]wFMCommunicate OK [10:45:13]SAM_PROTO_ClearQueue done [10:45:13]KKMCreateOFDPacket [10:45:13]OFDProtocolAddRootSTLVToBuf [10:45:13]FM_MakeSignedData [10:45:13]FM_MakeSignedData [10:45:13]SAM_PROTO_SignData [10:45:13]wFMCommunicate request_size=4 [10:45:13]MH_SAM_APDU [10:45:13]CAPDU: 80 0D 01 02 [10:45:13]Write to MH i2c: E2 08 00 A1 2C 80 0D 01 02 00 00 00 00 46 [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 03 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 03 00 A1 2C 00 90 00 41 [10:45:13]RAPDU: 90 00 [10:45:13]wFMCommunicate OK [10:45:13]wFMCommunicate request_size=255 [10:45:13]MH_SAM_APDU [10:45:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 BA 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 21 02 00 35 04 06 00 D5 [10:45:13]Write to MH i2c: E2 02 01 A2 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 BA 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 21 02 00 35 04 06 00 D5 00 00 C8 [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 03 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 03 00 A2 2C 00 90 00 42 [10:45:13]RAPDU: 90 00 [10:45:13]wFMCommunicate OK [10:45:13]wFMCommunicate request_size=10 [10:45:13]MH_SAM_APDU [10:45:13]CAPDU: 80 0D 02 02 05 15 3F C7 8B F5 [10:45:13]Write to MH i2c: E2 0D 00 A3 2C 80 0D 02 02 05 00 15 3F C7 8B F5 00 00 EE [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 03 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 03 00 A3 2C 00 90 00 43 [10:45:13]RAPDU: 90 00 [10:45:13]wFMCommunicate OK [10:45:13]wFMCommunicate request_size=4 [10:45:13]MH_SAM_APDU [10:45:13]CAPDU: 80 0D 03 02 [10:45:13]Write to MH i2c: E2 08 00 A4 2C 80 0D 03 02 00 00 00 00 4B [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 0B 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 0B 00 A4 2C 00 93 77 E3 F0 69 C4 CC 25 90 00 47 [10:45:13]RAPDU: 93 77 E3 F0 69 C4 CC 25 90 00 [10:45:13]wFMCommunicate OK [10:45:13]SAM_PROTO_SignData done [10:45:13]FM_MakeSignedData done [10:45:13]CreateOFDProtocolMessage [10:45:13]wFMCommunicate request_size=4 [10:45:13]MH_SAM_APDU [10:45:13]CAPDU: 80 11 00 00 [10:45:13]Write to MH i2c: E2 08 00 A5 2C 80 11 00 00 00 00 00 00 4B [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:13]Read from MH i2c: E2 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 17 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: E2 17 00 A5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [10:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:45:13]wFMCommunicate OK [10:45:13]CreateOFDProtocolMessage done [10:45:13]OFDSenderStorePacket 139638 [10:45:13]StoreOFDPacket docnum=139638 [10:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 56 EA 07 01 D1 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 BA 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 21 02 00 35 04 06 00 D5 15 3F C7 8B F5 93 77 E3 F0 69 C4 CC 25 [10:45:13]CheckFolder [10:45:13]dirname=/storage/ofd_packets [10:45:13]CheckFolder done [10:45:13]ProducePacketName [10:45:13]name=ofd_packets/00139638 [10:45:13]NVStorageSaveData ofd_packets/00139638 [10:45:13]File name is /storage/ofd_packets/00139638 [10:45:13]Write 301 bytes [10:45:13]NVStorageSaveData done [10:45:13]OFDSenderStorePacket done [10:45:13]KKMCreateOFDPacket done [10:45:13]NVStorageSaveData kkm_last_timestamp [10:45:13]File name is /storage/kkm_last_timestamp [10:45:13]Write 4 bytes [10:45:13]NVStorageSaveData done [10:45:13]ExternCall_PrintAddStr [10:45:13]wPrintStart [10:45:13]Write to MH i2c: 01 00 00 A6 2C D2 [10:45:13]Write i2c OK [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: 01 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: 01 07 00 [10:45:13]MH_I2C_Read... [10:45:13]Read from MH i2c: 01 07 00 A6 2C 00 00 00 00 00 FF 0F E7 [10:45:13]RasterBufferAndPrint [10:45:13]line Счет N : (1)593485 [10:45:13]line ИНН: 02508201610067 [10:45:13]line Контрольно-Кассовый Чек [10:45:13]line ПРОДАЖА [10:45:13]line ТРК (МРК, ГНК) : 52 [10:45:13]line Товар: 2710124130 [10:45:13]line Аи-92-К-5 [10:45:13]line 7.380 * 67.80 [10:45:13]line = 500.36 [10:45:13]line НДС 12% НСП 1% [10:45:13]line > о реализуемом товаре [10:45:13]line ОКРУГЛЕНИЕ: -0.36 [10:45:13]line ИТОГО: 500.00 [10:45:13]line НСП 1% : 4.43 [10:45:13]line НДС 12% : 53.14 [10:45:13]line Наличными: 0.00 [10:45:13]line Безнал.: 500.00 [10:45:13]line Место: АЗС № 136 "Партнер Нефть" [10:45:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:45:13]line СНО: Общий режим [10:45:13]line Чек 110 20.08.2024 10:45 [10:45:13]line Смена: 453 ФФД: 1.0 [10:45:13]line ЗНМ: 0300000067 [10:45:13]line РНМ: 0000000000092569 [10:45:13]line Версия ККМ: 001 [10:45:13]line Платежная система: O! деньги [10:45:13]line ФМ: 0000000000871776 [10:45:13]line ФД: 139638 [10:45:13]line ФПД: 234287241071605 [10:45:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104514&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139638&fm=234287241071605&tin=02508201610067®Number=0000000000092569&sum=50000 [10:45:13]OFD Sender: Processing packet 139638 [packets to send 137, broken 136] [10:45:13]ProducePacketName [10:45:13]name=ofd_packets/00139638 [10:45:13]OFD Sender: To server: pG, [10:45:13]CommunicateWithHost lk.salyk.kg:30040 [10:45:13]ConnectInit lk.salyk.kg [10:45:13]written 0, free lines is 4095 [10:45:13]Connected sock=10 [10:45:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 56 EA 07 01 D1 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 BA 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 21 02 00 35 04 06 00 D5 15 3F C7 8B F5 93 77 E3 F0 69 C4 CC 25 [10:45:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E0 24 47 00 71 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 21 02 00 F4 03 04 00 4E 1A C4 66 B6 04 01 00 00 A2 23 DD 84 D6 1E 15 9A [10:45:14]CommunicateWithHost err = 0 [10:45:14]CheckOFDResponse [10:45:14]1017 (14) - 77093643461234 [10:45:14]1041 (16) - 0000000000871776 [10:45:14]1040 (4) - 139638 [10:45:14]1012 (4) - 20.08.2024 04:23 [10:45:14]1206 (1) - 0 [10:45:14]OFD Sender: Remove packet 139638 [10:45:14]ProducePacketName [10:45:14]name=ofd_packets/00139638 [10:45:14]NVStorageDeleteData [10:45:14]Write to MH i2c: 01 00 00 D1 2C FD [10:45:14]Write i2c OK [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: 01 [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: 01 07 00 [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: 01 07 00 D1 2C 00 00 00 00 00 E2 0C F2 [10:45:14]RasterBufferAndPrint [10:45:14]line [10:45:14]line [10:45:14]line [10:45:14]line [10:45:14]line [10:45:14]written 0, free lines is 3304 [10:45:14]MH_Cut [10:45:14]Write to MH i2c: D1 01 00 D8 2C 01 D6 [10:45:14]Write i2c OK [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: D1 [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: D1 01 00 [10:45:14]MH_I2C_Read... [10:45:14]Read from MH i2c: D1 01 00 D8 2C 00 D5 [10:45:14]Write to MH i2c: 01 00 00 D9 2C 05 [10:45:14]Write i2c OK [10:45:14]MH_I2C_Read... [10:45:14]OFD Sender: No OFD packet to send [10:45:15]*** Cut start [10:45:15]*** Partial cut [10:45:15]*** CUTSNS_PIN = 1 [10:45:15]*** CUTSNS_PIN = 0 [10:45:15]*** Brake cut motor [10:45:15]Read from MH i2c: 01 [10:45:15]MH_I2C_Read... [10:45:15]*** Stop cut motor [10:45:15]*** Cut end [10:45:15]Read from MH i2c: 01 07 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: 01 07 00 D9 2C 00 00 00 00 00 FF 0F 1A [10:45:15]process_action close_receipt done [10:45:15]requested_data is exist [10:45:15]produce_requested_data [10:45:15]requested_item fm.sn is exist - process it [10:45:15]wFMCommunicate request_size=4 [10:45:15]MH_SAM_APDU [10:45:15]CAPDU: 80 11 00 00 [10:45:15]Write to MH i2c: E2 08 00 DA 2C 80 11 00 00 00 00 00 00 80 [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:15]Read from MH i2c: E2 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 17 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 17 00 DA 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D7 [10:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:45:15]wFMCommunicate OK [10:45:15]requested_item fd.num is exist - process it [10:45:15]SAM_PROTO_GetFieldsCounters [10:45:15]wFMCommunicate request_size=4 [10:45:15]MH_SAM_APDU [10:45:15]CAPDU: 80 13 00 00 [10:45:15]Write to MH i2c: E2 08 00 DB 2C 80 13 00 00 00 00 00 00 83 [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:15]Read from MH i2c: E2 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 62 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 62 00 DB 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [10:45:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:15]wFMCommunicate OK [10:45:15]SAM_PROTO_GetFieldsCounters done [10:45:15]requested_item shift.num is exist - process it [10:45:15]requested_item shift.opened is exist - process it [10:45:15]req_shift_opened [10:45:15]FM_GetShiftState [10:45:15]SAM_PROTO_GetShiftState [10:45:15]wFMCommunicate request_size=4 [10:45:15]MH_SAM_APDU [10:45:15]CAPDU: 80 13 01 00 [10:45:15]Write to MH i2c: E2 08 00 DC 2C 80 13 01 00 00 00 00 00 85 [10:45:15]Write i2c OK [10:45:15]MH_I2C_Read... [10:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:15]Read from MH i2c: E2 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 0E 00 [10:45:15]MH_I2C_Read... [10:45:15]Read from MH i2c: E2 0E 00 DC 2C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 16 [10:45:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:45:15]wFMCommunicate OK [10:45:15]SAM_PROTO_GetShiftState done [10:45:15]FM_GetShiftState done [10:45:15]req_shift_opened done [10:45:15]requested_item shift.open_date is exist - process it [10:45:15]req_shift_open_date [10:45:15]req_shift_open_date done [10:45:15]produce_requested_data done [10:45:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139638,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:45:15]process_action_free close_receipt [10:45:15]json_value_free [10:45:15]json_value_free done [10:45:15]process_json_proto returns [10:45:15]Send response to host [10:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139638,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:45:15]free response buf [10:45:15]execute_script done [10:45:15]execute_script returns [10:45:15]free content buf [10:45:15]Sock 9.Close socket [10:45:15]Sock 9.Thread stoped [10:45:16]accept exits with 7 [10:45:16]New connection [10:45:16]New thread 3067071844 created [10:45:16]Thread 3067215204 joined [10:45:16]Waiting for new connection... [10:45:16] Sock 7.Parse request [10:45:16]Sock 7.Check first char [10:45:16]Sock 7.First char is OK [10:45:16]request: POST /json_proto HTTP/1.0 [10:45:16]Method: POST [10:45:16]URL: /json_proto [10:45:16]Method is POST - this is cgi request [10:45:16]url: /json_proto [10:45:16]query_string will be loaded in cgi processing [10:45:16]execute_cgi json_proto POST (null) [10:45:16]execute_cgi path=json_proto method=POST [10:45:16]POST find Content-Length [10:45:16]Host: 172.17.45.67:8080 [10:45:16]Content-Length: 677 [10:45:16]Content-Type: application/json [10:45:16] [10:45:16]POST finish read [10:45:16]Found Content-Length = 677 [10:45:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:16]execute_script... [10:45: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)593484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:16]POST & json_proto [10:45:16]process_json_proto [10:45:16]json parsed OK: [10:45:16]protocol is kg_v1.0 [10:45:16]action value=close_receipt [10:45:16]process_action close_receipt [10:45:16]cmd_close_receipt [10:45:16]MH_GetDate [10:45:16]Write to MH i2c: F0 00 00 DD 2C F8 [10:45:16]Write i2c OK [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: F0 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: F0 09 00 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: F0 09 00 DD 2C 00 BF 73 C4 66 5F 7F 2B 66 CC [10:45:16]GetLastDocTimeStamp 1724150714 [10:45:16]current date 1724150719 [10:45:16]FM_GetShiftState [10:45:16]SAM_PROTO_GetShiftState [10:45:16]wFMCommunicate request_size=4 [10:45:16]MH_SAM_APDU [10:45:16]CAPDU: 80 13 01 00 [10:45:16]Write to MH i2c: E2 08 00 DE 2C 80 13 01 00 00 00 00 00 87 [10:45:16]Write i2c OK [10:45:16]MH_I2C_Read... [10:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:16]Read from MH i2c: E2 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: E2 0E 00 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: E2 0E 00 DE 2C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 18 [10:45:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:45:16]wFMCommunicate OK [10:45:16]SAM_PROTO_GetShiftState done [10:45:16]FM_GetShiftState done [10:45:16]opened in 1724113785 [10:45:16]opened+sec_in_day 1724200185 [10:45:16]quantity*price = 50010 [10:45:16]sum+1 = 50012 [10:45:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 111 20.08.2024 10:45 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139639 ФПД: 163542839923095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104519&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139639&fm=163542839923095&tin=02508201610067®Number=0000000000092569&sum=50000 [10:45:17]StoreToDocumentArchive [10:45:17]shift 453 fd 139639 [10:45:17]save to /storage/0453/doc_00139639 [10:45:17]save last doc name /storage/0453/doc_00139639 to /storage/kkm_last_doc_name [10:45:17]save OK [10:45:17]Clear old archive folders... [10:45:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:17]tlvbuf is 00E1DE80 [10:45:17]SAM_PROTO_ClearQueue [10:45:17]wFMCommunicate request_size=4 [10:45:17]MH_SAM_APDU [10:45:17]CAPDU: 80 09 00 00 [10:45:17]Write to MH i2c: E2 08 00 EB 2C 80 09 00 00 00 00 00 00 89 [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:17]Read from MH i2c: E2 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 03 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 03 00 EB 2C 00 90 00 8B [10:45:17]RAPDU: 90 00 [10:45:17]wFMCommunicate OK [10:45:17]SAM_PROTO_ClearQueue done [10:45:18]KKMCreateOFDPacket [10:45:18]OFDProtocolAddRootSTLVToBuf [10:45:18]FM_MakeSignedData [10:45:18]FM_MakeSignedData [10:45:18]SAM_PROTO_SignData [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 01 02 [10:45:18]Write to MH i2c: E2 08 00 EC 2C 80 0D 01 02 00 00 00 00 91 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 EC 2C 00 90 00 8C [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=255 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 00 00 00 F4 03 04 00 BF 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 21 02 00 35 04 06 00 94 [10:45:18]Write to MH i2c: E2 02 01 ED 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 BF 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 21 02 00 35 04 06 00 94 00 00 C1 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 ED 2C 00 90 00 8D [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=10 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 02 02 05 BD C8 E1 11 97 [10:45:18]Write to MH i2c: E2 0D 00 EE 2C 80 0D 02 02 05 00 BD C8 E1 11 97 00 00 AC [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 EE 2C 00 90 00 8E [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 03 02 [10:45:18]Write to MH i2c: E2 08 00 EF 2C 80 0D 03 02 00 00 00 00 96 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0B 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0B 00 EF 2C 00 A9 D3 B5 4B 16 0A 5B 92 90 00 20 [10:45:18]RAPDU: A9 D3 B5 4B 16 0A 5B 92 90 00 [10:45:18]wFMCommunicate OK [10:45:18]SAM_PROTO_SignData done [10:45:18]FM_MakeSignedData done [10:45:18]CreateOFDProtocolMessage [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 11 00 00 [10:45:18]Write to MH i2c: E2 08 00 F0 2C 80 11 00 00 00 00 00 00 96 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 17 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 17 00 F0 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [10:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:45:18]wFMCommunicate OK [10:45:18]CreateOFDProtocolMessage done [10:45:18]OFDSenderStorePacket 139639 [10:45:18]StoreOFDPacket docnum=139639 [10:45:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BC C6 07 01 09 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 00 00 00 F4 03 04 00 BF 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 21 02 00 35 04 06 00 94 BD C8 E1 11 97 A9 D3 B5 4B 16 0A 5B 92 [10:45:18]CheckFolder [10:45:18]dirname=/storage/ofd_packets [10:45:18]CheckFolder done [10:45:18]ProducePacketName [10:45:18]name=ofd_packets/00139639 [10:45:18]NVStorageSaveData ofd_packets/00139639 [10:45:18]File name is /storage/ofd_packets/00139639 [10:45:18]Write 301 bytes [10:45:18]NVStorageSaveData done [10:45:18]OFDSenderStorePacket done [10:45:18]KKMCreateOFDPacket done [10:45:18]NVStorageSaveData kkm_last_timestamp [10:45:18]File name is /storage/kkm_last_timestamp [10:45:18]Write 4 bytes [10:45:18]NVStorageSaveData done [10:45:18]ExternCall_PrintAddStr [10:45:18]wPrintStart [10:45:18]Write to MH i2c: 01 00 00 F1 2C 1D [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 07 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 FF 0F 32 [10:45:18]RasterBufferAndPrint [10:45:18]line Счет N : (1)593484 [10:45:18]line ИНН: 02508201610067 [10:45:18]line Контрольно-Кассовый Чек [10:45:18]line ПРОДАЖА [10:45:18]line ТРК (МРК, ГНК) : 41 [10:45:18]line Товар: 2710124500 [10:45:18]line Аи-95-К-5 [10:45:18]line 6.740 * 74.20 [10:45:18]line = 500.11 [10:45:18]line НДС 12% НСП 1% [10:45:18]line > о реализуемом товаре [10:45:18]line ОКРУГЛЕНИЕ: -0.11 [10:45:18]line ИТОГО: 500.00 [10:45:18]line Внесено: 500.00 [10:45:18]line СДАЧА: 0.00 [10:45:18]line НСП 1% : 4.43 [10:45:18]line НДС 12% : 53.11 [10:45:18]line Наличными: 500.00 [10:45:18]line Безнал.: 0.00 [10:45:18]line Место: АЗС № 136 "Партнер Нефть" [10:45:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:45:18]line СНО: Общий режим [10:45:18]line Чек 111 20.08.2024 10:45 [10:45:18]line Смена: 453 ФФД: 1.0 [10:45:18]line ЗНМ: 0300000067 [10:45:18]line РНМ: 0000000000092569 [10:45:18]line Версия ККМ: 001 [10:45:18]line ФМ: 0000000000871776 [10:45:18]line ФД: 139639 [10:45:18]line ФПД: 163542839923095 [10:45:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104519&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139639&fm=163542839923095&tin=02508201610067®Number=0000000000092569&sum=50000 [10:45:18]written 0, free lines is 4095 [10:45:18]OFD Sender: Processing packet 139639 [packets to send 137, broken 136] [10:45:18]ProducePacketName [10:45:18]name=ofd_packets/00139639 [10:45:18]OFD Sender: To server: pG, [10:45:18]CommunicateWithHost lk.salyk.kg:30040 [10:45:18]ConnectInit lk.salyk.kg [10:45:18]Connected sock=10 [10:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BC C6 07 01 09 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6F 00 00 00 F4 03 04 00 BF 73 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 21 02 00 35 04 06 00 94 BD C8 E1 11 97 A9 D3 B5 4B 16 0A 5B 92 [10:45:19]Write to MH i2c: 01 00 00 1C 2D 49 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 1C 2D 00 00 00 00 00 D6 0C 32 [10:45:19]RasterBufferAndPrint [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]written 0, free lines is 3302 [10:45:19]MH_Cut [10:45:19]Write to MH i2c: D1 01 00 23 2D 01 22 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 01 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 01 00 23 2D 00 21 [10:45:19]Write to MH i2c: 01 00 00 24 2D 51 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 68 F9 47 00 B9 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 21 02 00 F4 03 04 00 53 1A C4 66 B6 04 01 00 00 0B DF 13 DB 21 9B 22 9E [10:45:19]CommunicateWithHost err = 0 [10:45:19]CheckOFDResponse [10:45:19]1017 (14) - 77093643461234 [10:45:19]1041 (16) - 0000000000871776 [10:45:19]1040 (4) - 139639 [10:45:19]1012 (4) - 20.08.2024 04:23 [10:45:19]1206 (1) - 0 [10:45:19]OFD Sender: Remove packet 139639 [10:45:19]ProducePacketName [10:45:19]name=ofd_packets/00139639 [10:45:19]NVStorageDeleteData [10:45:19]OFD Sender: No OFD packet to send [10:45:19]*** Cut start [10:45:19]*** Partial cut [10:45:19]*** CUTSNS_PIN = 1 [10:45:19]*** CUTSNS_PIN = 0 [10:45:19]*** Brake cut motor [10:45:20]Read from MH i2c: 01 [10:45:20]MH_I2C_Read... [10:45:20]*** Stop cut motor [10:45:20]*** Cut end [10:45:20]Read from MH i2c: 01 07 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 07 00 24 2D 00 00 00 00 00 FF 0F 66 [10:45:20]process_action close_receipt done [10:45:20]requested_data is exist [10:45:20]produce_requested_data [10:45:20]requested_item fm.sn is exist - process it [10:45:20]wFMCommunicate request_size=4 [10:45:20]MH_SAM_APDU [10:45:20]CAPDU: 80 11 00 00 [10:45:20]Write to MH i2c: E2 08 00 25 2D 80 11 00 00 00 00 00 00 CC [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:20]Read from MH i2c: E2 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 17 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 17 00 25 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [10:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:45:20]wFMCommunicate OK [10:45:20]requested_item fd.num is exist - process it [10:45:20]SAM_PROTO_GetFieldsCounters [10:45:20]wFMCommunicate request_size=4 [10:45:20]MH_SAM_APDU [10:45:20]CAPDU: 80 13 00 00 [10:45:20]Write to MH i2c: E2 08 00 26 2D 80 13 00 00 00 00 00 00 CF [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:20]Read from MH i2c: E2 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 62 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 62 00 26 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [10:45:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:20]wFMCommunicate OK [10:45:20]SAM_PROTO_GetFieldsCounters done [10:45:20]requested_item shift.num is exist - process it [10:45:20]requested_item shift.opened is exist - process it [10:45:20]req_shift_opened [10:45:20]FM_GetShiftState [10:45:20]SAM_PROTO_GetShiftState [10:45:20]wFMCommunicate request_size=4 [10:45:20]MH_SAM_APDU [10:45:20]CAPDU: 80 13 01 00 [10:45:20]Write to MH i2c: E2 08 00 27 2D 80 13 01 00 00 00 00 00 D1 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:20]Read from MH i2c: E2 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 0E 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: E2 0E 00 27 2D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 62 [10:45:20]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:45:20]wFMCommunicate OK [10:45:20]SAM_PROTO_GetShiftState done [10:45:20]FM_GetShiftState done [10:45:20]req_shift_opened done [10:45:20]requested_item shift.open_date is exist - process it [10:45:20]req_shift_open_date [10:45:20]req_shift_open_date done [10:45:20]produce_requested_data done [10:45:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139639,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:45:20]process_action_free close_receipt [10:45:20]json_value_free [10:45:20]json_value_free done [10:45:20]process_json_proto returns [10:45:20]Send response to host [10:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139639,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:45:20]free response buf [10:45:20]execute_script done [10:45:20]execute_script returns [10:45:20]free content buf [10:45:20]Sock 7.Close socket [10:45:20]Sock 7.Thread stoped [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:58]accept exits with 9 [10:46:58]New connection [10:46:58]New thread 3067215204 created [10:46:58]Thread 3067071844 joined [10:46:58]Waiting for new connection... [10:46:58] Sock 9.Parse request [10:46:58]Sock 9.Check first char [10:46:58]Sock 9.First char is OK [10:46:58]request: POST /json_proto HTTP/1.0 [10:46:58]Method: POST [10:46:58]URL: /json_proto [10:46:58]Method is POST - this is cgi request [10:46:58]url: /json_proto [10:46:58]query_string will be loaded in cgi processing [10:46:58]execute_cgi json_proto POST (null) [10:46:58]execute_cgi path=json_proto method=POST [10:46:58]POST find Content-Length [10:46:58]Host: 172.17.45.67:8080 [10:46:58]Content-Length: 797 [10:46:58]Content-Type: application/json [10:46:58] [10:46:58]POST finish read [10:46:58]Found Content-Length = 797 [10:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 42.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:58]execute_script... [10:46: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)593486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 42.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:58]POST & json_proto [10:46:58]process_json_proto [10:46:58]json parsed OK: [10:46:58]protocol is kg_v1.0 [10:46:58]action value=close_receipt [10:46:58]process_action close_receipt [10:46:58]cmd_close_receipt [10:46:58]MH_GetDate [10:46:58]Write to MH i2c: F0 00 00 28 2D 44 [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: F0 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: F0 09 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: F0 09 00 28 2D 00 25 74 C4 66 5F 7F 2B 66 7F [10:46:58]GetLastDocTimeStamp 1724150719 [10:46:58]current date 1724150821 [10:46:58]FM_GetShiftState [10:46:58]SAM_PROTO_GetShiftState [10:46:58]wFMCommunicate request_size=4 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 13 01 00 [10:46:58]Write to MH i2c: E2 08 00 29 2D 80 13 01 00 00 00 00 00 D3 [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:58]Read from MH i2c: E2 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 0E 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 0E 00 29 2D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 64 [10:46:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:46:58]wFMCommunicate OK [10:46:58]SAM_PROTO_GetShiftState done [10:46:58]FM_GetShiftState done [10:46:58]opened in 1724113785 [10:46:58]opened+sec_in_day 1724200185 [10:46:58]quantity*price = 0 [10:46:58]sum+1 = 1 [10:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 112 20.08.2024 10:47 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139640 ФПД: 211102465844689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139640&fm=211102465844689&tin=02508201610067®Number=0000000000092569&sum=0 [10:46:59]StoreToDocumentArchive [10:46:59]shift 453 fd 139640 [10:46:59]save to /storage/0453/doc_00139640 [10:46:59]save last doc name /storage/0453/doc_00139640 to /storage/kkm_last_doc_name [10:46:59]save OK [10:46:59]Clear old archive folders... [10:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:46:59]tlvbuf is 00D756E0 [10:46:59]SAM_PROTO_ClearQueue [10:46:59]wFMCommunicate request_size=4 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 09 00 00 [10:46:59]Write to MH i2c: E2 08 00 36 2D 80 09 00 00 00 00 00 00 D5 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 36 2D 00 90 00 D7 [10:46:59]RAPDU: 90 00 [10:46:59]wFMCommunicate OK [10:46:59]SAM_PROTO_ClearQueue done [10:46:59]KKMCreateOFDPacket [10:46:59]OFDProtocolAddRootSTLVToBuf [10:46:59]FM_MakeSignedData [10:46:59]FM_MakeSignedData [10:46:59]SAM_PROTO_SignData [10:46:59]wFMCommunicate request_size=4 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 0D 01 02 [10:46:59]Write to MH i2c: E2 08 00 37 2D 80 0D 01 02 00 00 00 00 DD [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 37 2D 00 90 00 D8 [10:46:59]RAPDU: 90 00 [10:46:59]wFMCommunicate OK [10:46:59]wFMCommunicate request_size=255 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 25 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 21 02 00 35 04 06 00 [10:46:59]Write to MH i2c: E2 02 01 38 2D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 25 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 21 02 00 35 04 06 00 00 00 74 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]OFD Sender: No OFD packet to send [10:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 38 2D 00 90 00 D9 [10:46:59]RAPDU: 90 00 [10:46:59]wFMCommunicate OK [10:46:59]wFMCommunicate request_size=11 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 0D 02 02 06 BF FF 1F 7C E5 D1 [10:46:59]Write to MH i2c: E2 0E 00 39 2D 80 0D 02 02 06 00 BF FF 1F 7C E5 D1 00 00 FB [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 39 2D 00 90 00 DA [10:46:59]RAPDU: 90 00 [10:46:59]wFMCommunicate OK [10:46:59]wFMCommunicate request_size=4 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 0D 03 02 [10:46:59]Write to MH i2c: E2 08 00 3A 2D 80 0D 03 02 00 00 00 00 E2 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 0B 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 0B 00 3A 2D 00 A6 30 28 0D 03 F1 D7 7E 90 00 37 [10:46:59]RAPDU: A6 30 28 0D 03 F1 D7 7E 90 00 [10:46:59]wFMCommunicate OK [10:46:59]SAM_PROTO_SignData done [10:46:59]FM_MakeSignedData done [10:46:59]CreateOFDProtocolMessage [10:46:59]wFMCommunicate request_size=4 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 11 00 00 [10:46:59]Write to MH i2c: E2 08 00 3B 2D 80 11 00 00 00 00 00 00 E2 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 17 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 17 00 3B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [10:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:46:59]wFMCommunicate OK [10:46:59]CreateOFDProtocolMessage done [10:46:59]OFDSenderStorePacket 139640 [10:46:59]StoreOFDPacket docnum=139640 [10:46:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 69 F6 08 01 5C 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 25 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 21 02 00 35 04 06 00 BF FF 1F 7C E5 D1 A6 30 28 0D 03 F1 D7 7E [10:46:59]CheckFolder [10:46:59]dirname=/storage/ofd_packets [10:46:59]CheckFolder done [10:46:59]ProducePacketName [10:46:59]name=ofd_packets/00139640 [10:46:59]NVStorageSaveData ofd_packets/00139640 [10:46:59]File name is /storage/ofd_packets/00139640 [10:46:59]Write 302 bytes [10:46:59]NVStorageSaveData done [10:46:59]OFDSenderStorePacket done [10:46:59]KKMCreateOFDPacket done [10:46:59]NVStorageSaveData kkm_last_timestamp [10:46:59]File name is /storage/kkm_last_timestamp [10:46:59]Write 4 bytes [10:46:59]NVStorageSaveData done [10:46:59]ExternCall_PrintAddStr [10:46:59]wPrintStart [10:46:59]Write to MH i2c: 01 00 00 3C 2D 69 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: 01 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: 01 07 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: 01 07 00 3C 2D 00 00 00 00 00 FF 0F 7E [10:46:59]RasterBufferAndPrint [10:46:59]line Счет N : (1)593486 [10:46:59]line ИНН: 02508201610067 [10:46:59]line Контрольно-Кассовый Чек [10:46:59]line ПРОДАЖА [10:46:59]line ТРК (МРК, ГНК) : 64 [10:46:59]line Товар: 2710194210 [10:46:59]line ДТ(л)-К-5 [10:46:59]line 42.000 * 0.00 [10:46:59]line = 0.00 [10:46:59]line НДС 12% НСП 1% [10:46:59]line > о реализуемом товаре [10:46:59]line ИТОГО: 0.00 [10:46:59]line НСП 1% : 0.00 [10:46:59]line НДС 12% : 0.00 [10:46:59]line Наличными: 0.00 [10:46:59]line Безнал.: 0.00 [10:46:59]line Место: АЗС № 136 "Партнер Нефть" [10:46:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:46:59]line СНО: Общий режим [10:46:59]line Чек 112 20.08.2024 10:47 [10:46:59]line Смена: 453 ФФД: 1.0 [10:46:59]line ЗНМ: 0300000067 [10:46:59]line РНМ: 0000000000092569 [10:46:59]line Версия ККМ: 001 [10:46:59]line Талоны: Топливная Карта [10:46:59]line 99761 [10:46:59]line ФМ: 0000000000871776 [10:46:59]line ФД: 139640 [10:46:59]line ФПД: 211102465844689 [10:46:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139640&fm=211102465844689&tin=02508201610067®Number=0000000000092569&sum=0 [10:47:00]OFD Sender: Processing packet 139640 [packets to send 137, broken 136] [10:47:00]ProducePacketName [10:47:00]name=ofd_packets/00139640 [10:47:00]OFD Sender: To server: pG, [10:47:00]CommunicateWithHost lk.salyk.kg:30040 [10:47:00]ConnectInit lk.salyk.kg [10:47:00]written 0, free lines is 4095 [10:47:00]Connected sock=10 [10:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 69 F6 08 01 5C 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 25 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 21 02 00 35 04 06 00 BF FF 1F 7C E5 D1 A6 30 28 0D 03 F1 D7 7E [10:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 90 AE 47 00 E8 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 21 02 00 F4 03 04 00 B8 1A C4 66 B6 04 01 00 00 5A 3E 92 35 3A D9 70 6E [10:47:00]CommunicateWithHost err = 0 [10:47:00]CheckOFDResponse [10:47:00]1017 (14) - 77093643461234 [10:47:00]1041 (16) - 0000000000871776 [10:47:00]1040 (4) - 139640 [10:47:00]1012 (4) - 20.08.2024 04:25 [10:47:00]1206 (1) - 0 [10:47:00]OFD Sender: Remove packet 139640 [10:47:00]ProducePacketName [10:47:00]name=ofd_packets/00139640 [10:47:00]NVStorageDeleteData [10:47:00]Write to MH i2c: 01 00 00 66 2D 93 [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 07 00 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 07 00 66 2D 00 00 00 00 00 EC 0C 92 [10:47:00]RasterBufferAndPrint [10:47:00]line [10:47:00]line [10:47:00]line [10:47:00]line [10:47:00]line [10:47:00]written 0, free lines is 3313 [10:47:00]MH_Cut [10:47:00]Write to MH i2c: D1 01 00 6D 2D 01 6C [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: D1 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: D1 01 00 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: D1 01 00 6D 2D 00 6B [10:47:00]Write to MH i2c: 01 00 00 6E 2D 9B [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:01]OFD Sender: No OFD packet to send [10:47:01]*** Cut start [10:47:01]*** Partial cut [10:47:01]*** CUTSNS_PIN = 1 [10:47:01]*** CUTSNS_PIN = 0 [10:47:01]*** Brake cut motor [10:47:02]Read from MH i2c: 01 [10:47:02]MH_I2C_Read... [10:47:02]*** Stop cut motor [10:47:02]*** Cut end [10:47:02]Read from MH i2c: 01 07 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: 01 07 00 6E 2D 00 00 00 00 00 FF 0F B0 [10:47:02]process_action close_receipt done [10:47:02]requested_data is exist [10:47:02]produce_requested_data [10:47:02]requested_item fm.sn is exist - process it [10:47:02]wFMCommunicate request_size=4 [10:47:02]MH_SAM_APDU [10:47:02]CAPDU: 80 11 00 00 [10:47:02]Write to MH i2c: E2 08 00 6F 2D 80 11 00 00 00 00 00 00 16 [10:47:02]Write i2c OK [10:47:02]MH_I2C_Read... [10:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:02]Read from MH i2c: E2 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 17 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 17 00 6F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [10:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:47:02]wFMCommunicate OK [10:47:02]requested_item fd.num is exist - process it [10:47:02]SAM_PROTO_GetFieldsCounters [10:47:02]wFMCommunicate request_size=4 [10:47:02]MH_SAM_APDU [10:47:02]CAPDU: 80 13 00 00 [10:47:02]Write to MH i2c: E2 08 00 70 2D 80 13 00 00 00 00 00 00 19 [10:47:02]Write i2c OK [10:47:02]MH_I2C_Read... [10:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:02]Read from MH i2c: E2 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 62 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 62 00 70 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [10:47:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:02]wFMCommunicate OK [10:47:02]SAM_PROTO_GetFieldsCounters done [10:47:02]requested_item shift.num is exist - process it [10:47:02]requested_item shift.opened is exist - process it [10:47:02]req_shift_opened [10:47:02]FM_GetShiftState [10:47:02]SAM_PROTO_GetShiftState [10:47:02]wFMCommunicate request_size=4 [10:47:02]MH_SAM_APDU [10:47:02]CAPDU: 80 13 01 00 [10:47:02]Write to MH i2c: E2 08 00 71 2D 80 13 01 00 00 00 00 00 1B [10:47:02]Write i2c OK [10:47:02]MH_I2C_Read... [10:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:02]Read from MH i2c: E2 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 0E 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 0E 00 71 2D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AC [10:47:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:47:02]wFMCommunicate OK [10:47:02]SAM_PROTO_GetShiftState done [10:47:02]FM_GetShiftState done [10:47:02]req_shift_opened done [10:47:02]requested_item shift.open_date is exist - process it [10:47:02]req_shift_open_date [10:47:02]req_shift_open_date done [10:47:02]produce_requested_data done [10:47:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139640,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:47:02]process_action_free close_receipt [10:47:02]json_value_free [10:47:02]json_value_free done [10:47:02]process_json_proto returns [10:47:02]Send response to host [10:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139640,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:47:02]free response buf [10:47:02]execute_script done [10:47:02]execute_script returns [10:47:02]free content buf [10:47:02]Sock 9.Close socket [10:47:02]Sock 9.Thread stoped [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:15]int [10:47:15]Write to MH i2c: 01 00 00 72 2D 9F [10:47:15]*** FLAG_PRN_KEY set [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 07 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 07 00 72 2D 00 08 00 00 00 FF 0F BC [10:47:15]state=0 [10:47:15]Key pressed [10:47:15]Feed [10:47:15]Write to MH i2c: D8 00 00 73 2D 77 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: D8 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: D8 01 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: D8 01 00 73 2D 00 78 [10:47:15]int [10:47:15]Write to MH i2c: 01 00 00 74 2D A1 [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 07 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 07 00 74 2D 00 48 00 00 00 3C 00 2C [10:47:15]state=2 [10:47:15]Key pressed [10:47:15]int [10:47:15]Write to MH i2c: 01 00 00 75 2D A2 [10:47:15]*** FLAG_PRN_KEY reset [10:47:15]Write i2c OK [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 07 00 [10:47:15]MH_I2C_Read... [10:47:15]Read from MH i2c: 01 07 00 75 2D 00 00 00 00 00 FB 0F B3 [10:47:15]state=2 [10:47:15]Stop feed [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]accept exits with 7 [10:47:46]New connection [10:47:46]New thread 3067071844 created [10:47:46]Thread 3067215204 joined [10:47:46]Waiting for new connection... [10:47:46] Sock 7.Parse request [10:47:46]Sock 7.Check first char [10:47:46]Sock 7.First char is OK [10:47:46]request: POST /json_proto HTTP/1.0 [10:47:46]Method: POST [10:47:46]URL: /json_proto [10:47:46]Method is POST - this is cgi request [10:47:46]url: /json_proto [10:47:46]query_string will be loaded in cgi processing [10:47:46]execute_cgi json_proto POST (null) [10:47:46]execute_cgi path=json_proto method=POST [10:47:46]POST find Content-Length [10:47:46]Host: 172.17.45.67:8080 [10:47:46]Content-Length: 682 [10:47:46]Content-Type: application/json [10:47:46] [10:47:46]POST finish read [10:47:46]Found Content-Length = 682 [10:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:46]execute_script... [10:47: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)593487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:46]POST & json_proto [10:47:46]process_json_proto [10:47:46]json parsed OK: [10:47:46]protocol is kg_v1.0 [10:47:46]action value=close_receipt [10:47:46]process_action close_receipt [10:47:46]cmd_close_receipt [10:47:46]MH_GetDate [10:47:46]Write to MH i2c: F0 00 00 76 2D 92 [10:47:46]Write i2c OK [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: F0 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: F0 09 00 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: F0 09 00 76 2D 00 55 74 C4 66 5F 7F 2B 66 FD [10:47:46]GetLastDocTimeStamp 1724150821 [10:47:46]current date 1724150869 [10:47:46]FM_GetShiftState [10:47:46]SAM_PROTO_GetShiftState [10:47:46]wFMCommunicate request_size=4 [10:47:46]MH_SAM_APDU [10:47:46]CAPDU: 80 13 01 00 [10:47:46]Write to MH i2c: E2 08 00 77 2D 80 13 01 00 00 00 00 00 21 [10:47:46]Write i2c OK [10:47:46]MH_I2C_Read... [10:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:46]Read from MH i2c: E2 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 0E 00 [10:47:46]MH_I2C_Read... [10:47:46]Read from MH i2c: E2 0E 00 77 2D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B2 [10:47:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:47:46]wFMCommunicate OK [10:47:46]SAM_PROTO_GetShiftState done [10:47:46]FM_GetShiftState done [10:47:46]opened in 1724113785 [10:47:46]opened+sec_in_day 1724200185 [10:47:46]quantity*price = 40005 [10:47:46]sum+1 = 40006 [10:47:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 113 20.08.2024 10:47 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139641 ФПД: 169052327367277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139641&fm=169052327367277&tin=02508201610067®Number=0000000000092569&sum=40000 [10:47:47]StoreToDocumentArchive [10:47:47]shift 453 fd 139641 [10:47:47]save to /storage/0453/doc_00139641 [10:47:47]save last doc name /storage/0453/doc_00139641 to /storage/kkm_last_doc_name [10:47:47]save OK [10:47:47]Clear old archive folders... [10:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:47:47]tlvbuf is 00DB9970 [10:47:47]SAM_PROTO_ClearQueue [10:47:47]wFMCommunicate request_size=4 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 09 00 00 [10:47:47]Write to MH i2c: E2 08 00 84 2D 80 09 00 00 00 00 00 00 23 [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 84 2D 00 90 00 25 [10:47:47]RAPDU: 90 00 [10:47:47]wFMCommunicate OK [10:47:47]SAM_PROTO_ClearQueue done [10:47:47]KKMCreateOFDPacket [10:47:47]OFDProtocolAddRootSTLVToBuf [10:47:47]FM_MakeSignedData [10:47:47]FM_MakeSignedData [10:47:47]SAM_PROTO_SignData [10:47:47]wFMCommunicate request_size=4 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 0D 01 02 [10:47:47]Write to MH i2c: E2 08 00 85 2D 80 0D 01 02 00 00 00 00 2B [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 85 2D 00 90 00 26 [10:47:47]RAPDU: 90 00 [10:47:47]wFMCommunicate OK [10:47:47]wFMCommunicate request_size=255 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 55 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 21 02 00 35 04 06 00 [10:47:47]Write to MH i2c: E2 02 01 86 2D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 55 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 21 02 00 35 04 06 00 00 00 5B [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 86 2D 00 90 00 27 [10:47:47]RAPDU: 90 00 [10:47:47]wFMCommunicate OK [10:47:47]wFMCommunicate request_size=11 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 0D 02 02 06 99 C0 8F EB D2 6D [10:47:47]Write to MH i2c: E2 0E 00 87 2D 80 0D 02 02 06 00 99 C0 8F EB D2 6D 00 00 4C [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 03 00 87 2D 00 90 00 28 [10:47:47]RAPDU: 90 00 [10:47:47]wFMCommunicate OK [10:47:47]wFMCommunicate request_size=4 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 0D 03 02 [10:47:47]Write to MH i2c: E2 08 00 88 2D 80 0D 03 02 00 00 00 00 30 [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 0B 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 0B 00 88 2D 00 90 37 8E C3 57 96 CB BB 90 00 BC [10:47:47]RAPDU: 90 37 8E C3 57 96 CB BB 90 00 [10:47:47]wFMCommunicate OK [10:47:47]SAM_PROTO_SignData done [10:47:47]FM_MakeSignedData done [10:47:47]CreateOFDProtocolMessage [10:47:47]wFMCommunicate request_size=4 [10:47:47]MH_SAM_APDU [10:47:47]CAPDU: 80 11 00 00 [10:47:47]Write to MH i2c: E2 08 00 89 2D 80 11 00 00 00 00 00 00 30 [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:47]Read from MH i2c: E2 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 17 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: E2 17 00 89 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 87 [10:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:47:47]wFMCommunicate OK [10:47:47]CreateOFDProtocolMessage done [10:47:47]OFDSenderStorePacket 139641 [10:47:47]StoreOFDPacket docnum=139641 [10:47:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B9 9B 08 01 42 BB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 55 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 21 02 00 35 04 06 00 99 C0 8F EB D2 6D 90 37 8E C3 57 96 CB BB [10:47:47]CheckFolder [10:47:47]dirname=/storage/ofd_packets [10:47:47]CheckFolder done [10:47:47]ProducePacketName [10:47:47]name=ofd_packets/00139641 [10:47:47]NVStorageSaveData ofd_packets/00139641 [10:47:47]File name is /storage/ofd_packets/00139641 [10:47:47]Write 302 bytes [10:47:47]NVStorageSaveData done [10:47:47]OFDSenderStorePacket done [10:47:47]KKMCreateOFDPacket done [10:47:47]NVStorageSaveData kkm_last_timestamp [10:47:47]File name is /storage/kkm_last_timestamp [10:47:47]Write 4 bytes [10:47:47]NVStorageSaveData done [10:47:47]OFD Sender: Processing packet 139641 [packets to send 137, broken 136] [10:47:47]ProducePacketName [10:47:47]name=ofd_packets/00139641 [10:47:47]OFD Sender: To server: pG, [10:47:47]CommunicateWithHost lk.salyk.kg:30040 [10:47:47]ConnectInit lk.salyk.kg [10:47:47]ExternCall_PrintAddStr [10:47:47]wPrintStart [10:47:47]Write to MH i2c: 01 00 00 8A 2D B7 [10:47:47]Write i2c OK [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: 01 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: 01 07 00 [10:47:47]MH_I2C_Read... [10:47:47]Read from MH i2c: 01 07 00 8A 2D 00 00 00 00 00 FF 0F CC [10:47:47]RasterBufferAndPrint [10:47:47]line Счет N : (1)593487 [10:47:47]line ИНН: 02508201610067 [10:47:47]line Контрольно-Кассовый Чек [10:47:47]line ПРОДАЖА [10:47:47]line ТРК (МРК, ГНК) : 64 [10:47:47]line Товар: 2710194210 [10:47:47]line ДТ(л)-К-5 [10:47:47]line 5.250 * 76.20 [10:47:47]line = 400.05 [10:47:47]line НДС 12% НСП 1% [10:47:47]line > о реализуемом товаре [10:47:47]line ОКРУГЛЕНИЕ: -0.05 [10:47:47]line ИТОГО: 400.00 [10:47:47]line Внесено: 400.00 [10:47:47]line СДАЧА: 0.00 [10:47:47]line НСП 1% : 3.54 [10:47:47]line НДС 12% : 42.48 [10:47:47]line Наличными: 400.00 [10:47:47]line Безнал.: 0.00 [10:47:47]line Место: АЗС № 136 "Партнер Нефть" [10:47:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:47:47]line СНО: Общий режим [10:47:47]line Чек 113 20.08.2024 10:47 [10:47:47]line Смена: 453 ФФД: 1.0 [10:47:47]line ЗНМ: 0300000067 [10:47:47]line РНМ: 0000000000092569 [10:47:47]line Версия ККМ: 001 [10:47:47]line ФМ: 0000000000871776 [10:47:47]line ФД: 139641 [10:47:47]line ФПД: 169052327367277 [10:47:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T104749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139641&fm=169052327367277&tin=02508201610067®Number=0000000000092569&sum=40000 [10:47:47]written 0, free lines is 4095 [10:47:47]Connected sock=11 [10:47:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B9 9B 08 01 42 BB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 55 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 21 02 00 35 04 06 00 99 C0 8F EB D2 6D 90 37 8E C3 57 96 CB BB [10:47:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7F 41 47 00 7D 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 21 02 00 F4 03 04 00 E8 1A C4 66 B6 04 01 00 00 43 B7 FD 34 A2 17 B4 37 [10:47:48]CommunicateWithHost err = 0 [10:47:48]CheckOFDResponse [10:47:48]1017 (14) - 77093643461234 [10:47:48]1041 (16) - 0000000000871776 [10:47:48]1040 (4) - 139641 [10:47:48]1012 (4) - 20.08.2024 04:26 [10:47:48]1206 (1) - 0 [10:47:48]OFD Sender: Remove packet 139641 [10:47:48]ProducePacketName [10:47:48]name=ofd_packets/00139641 [10:47:48]NVStorageDeleteData [10:47:48]Write to MH i2c: 01 00 00 B5 2D E2 [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: 01 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: 01 07 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: 01 07 00 B5 2D 00 00 00 00 00 DE 0C D3 [10:47:48]RasterBufferAndPrint [10:47:48]line [10:47:48]line [10:47:48]line [10:47:48]line [10:47:48]line [10:47:48]written 0, free lines is 3303 [10:47:48]MH_Cut [10:47:48]Write to MH i2c: D1 01 00 BC 2D 01 BB [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: D1 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: D1 01 00 [10:47:48]MH_I2C_Read... [10:47:48]Read from MH i2c: D1 01 00 BC 2D 00 BA [10:47:48]Write to MH i2c: 01 00 00 BD 2D EA [10:47:48]Write i2c OK [10:47:48]MH_I2C_Read... [10:47:48]OFD Sender: No OFD packet to send [10:47:49]*** Cut start [10:47:49]*** Partial cut [10:47:49]*** CUTSNS_PIN = 1 [10:47:49]*** CUTSNS_PIN = 0 [10:47:49]*** Brake cut motor [10:47:49]Read from MH i2c: 01 [10:47:49]MH_I2C_Read... [10:47:49]*** Stop cut motor [10:47:49]*** Cut end [10:47:49]Read from MH i2c: 01 07 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: 01 07 00 BD 2D 00 00 00 00 00 FF 0F FF [10:47:49]process_action close_receipt done [10:47:49]requested_data is exist [10:47:49]produce_requested_data [10:47:49]requested_item fm.sn is exist - process it [10:47:49]wFMCommunicate request_size=4 [10:47:49]MH_SAM_APDU [10:47:49]CAPDU: 80 11 00 00 [10:47:49]Write to MH i2c: E2 08 00 BE 2D 80 11 00 00 00 00 00 00 65 [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:49]Read from MH i2c: E2 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 17 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 17 00 BE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BC [10:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:47:49]wFMCommunicate OK [10:47:49]requested_item fd.num is exist - process it [10:47:49]SAM_PROTO_GetFieldsCounters [10:47:49]wFMCommunicate request_size=4 [10:47:49]MH_SAM_APDU [10:47:49]CAPDU: 80 13 00 00 [10:47:49]Write to MH i2c: E2 08 00 BF 2D 80 13 00 00 00 00 00 00 68 [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:49]Read from MH i2c: E2 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 62 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 62 00 BF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [10:47:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:49]wFMCommunicate OK [10:47:49]SAM_PROTO_GetFieldsCounters done [10:47:49]requested_item shift.num is exist - process it [10:47:49]requested_item shift.opened is exist - process it [10:47:49]req_shift_opened [10:47:49]FM_GetShiftState [10:47:49]SAM_PROTO_GetShiftState [10:47:49]wFMCommunicate request_size=4 [10:47:49]MH_SAM_APDU [10:47:49]CAPDU: 80 13 01 00 [10:47:49]Write to MH i2c: E2 08 00 C0 2D 80 13 01 00 00 00 00 00 6A [10:47:49]Write i2c OK [10:47:49]MH_I2C_Read... [10:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:49]Read from MH i2c: E2 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 0E 00 [10:47:49]MH_I2C_Read... [10:47:49]Read from MH i2c: E2 0E 00 C0 2D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FB [10:47:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:47:49]wFMCommunicate OK [10:47:49]SAM_PROTO_GetShiftState done [10:47:49]FM_GetShiftState done [10:47:49]req_shift_opened done [10:47:49]requested_item shift.open_date is exist - process it [10:47:49]req_shift_open_date [10:47:49]req_shift_open_date done [10:47:49]produce_requested_data done [10:47:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139641,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:47:49]process_action_free close_receipt [10:47:49]json_value_free [10:47:49]json_value_free done [10:47:49]process_json_proto returns [10:47:49]Send response to host [10:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139641,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:47:49]free response buf [10:47:49]execute_script done [10:47:49]execute_script returns [10:47:49]free content buf [10:47:49]Sock 7.Close socket [10:47:49]Sock 7.Thread stoped [10:47:50]int [10:47:50]Write to MH i2c: 01 00 00 C1 2D EE [10:47:50]*** FLAG_PRN_KEY set [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 C1 2D 00 08 00 00 00 FF 0F 0B [10:47:50]state=0 [10:47:50]Key pressed [10:47:50]Feed [10:47:50]Write to MH i2c: D8 00 00 C2 2D C6 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: D8 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: D8 01 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: D8 01 00 C2 2D 00 C7 [10:47:50]int [10:47:50]Write to MH i2c: 01 00 00 C3 2D F0 [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 C3 2D 00 48 00 00 00 3C 00 7B [10:47:50]state=2 [10:47:50]Key pressed [10:47:50]int [10:47:50]Write to MH i2c: 01 00 00 C4 2D F1 [10:47:50]*** FLAG_PRN_KEY reset [10:47:50]Write i2c OK [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 [10:47:50]MH_I2C_Read... [10:47:50]Read from MH i2c: 01 07 00 C4 2D 00 00 00 00 00 FF 0F 06 [10:47:50]state=2 [10:47:50]Stop feed [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:27]accept exits with 9 [10:50:27]New connection [10:50:27]New thread 3067215204 created [10:50:27]Thread 3067071844 joined [10:50:27]Waiting for new connection... [10:50:27] Sock 9.Parse request [10:50:27]Sock 9.Check first char [10:50:27]Sock 9.First char is OK [10:50:27]request: POST /json_proto HTTP/1.0 [10:50:27]Method: POST [10:50:27]URL: /json_proto [10:50:27]Method is POST - this is cgi request [10:50:27]url: /json_proto [10:50:27]query_string will be loaded in cgi processing [10:50:27]execute_cgi json_proto POST (null) [10:50:27]execute_cgi path=json_proto method=POST [10:50:27]POST find Content-Length [10:50:27]Host: 172.17.45.67:8080 [10:50:27]Content-Length: 687 [10:50:27]Content-Type: application/json [10:50:27] [10:50:27]POST finish read [10:50:27]Found Content-Length = 687 [10:50:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:50:27]execute_script... [10:50: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)593488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:50:27]POST & json_proto [10:50:27]process_json_proto [10:50:27]json parsed OK: [10:50:27]protocol is kg_v1.0 [10:50:27]action value=close_receipt [10:50:27]process_action close_receipt [10:50:27]cmd_close_receipt [10:50:27]MH_GetDate [10:50:27]Write to MH i2c: F0 00 00 C5 2D E1 [10:50:27]Write i2c OK [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: F0 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: F0 09 00 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: F0 09 00 C5 2D 00 F6 74 C4 66 5F 7F 2B 66 ED [10:50:27]GetLastDocTimeStamp 1724150869 [10:50:27]current date 1724151030 [10:50:27]FM_GetShiftState [10:50:27]SAM_PROTO_GetShiftState [10:50:27]wFMCommunicate request_size=4 [10:50:27]MH_SAM_APDU [10:50:27]CAPDU: 80 13 01 00 [10:50:27]Write to MH i2c: E2 08 00 C6 2D 80 13 01 00 00 00 00 00 70 [10:50:27]Write i2c OK [10:50:27]MH_I2C_Read... [10:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:27]Read from MH i2c: E2 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 0E 00 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 0E 00 C6 2D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 01 [10:50:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:50:27]wFMCommunicate OK [10:50:27]SAM_PROTO_GetShiftState done [10:50:27]FM_GetShiftState done [10:50:27]opened in 1724113785 [10:50:27]opened+sec_in_day 1724200185 [10:50:27]quantity*price = 200025 [10:50:27]sum+1 = 200026 [10:50:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 114 20.08.2024 10:50 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139642 ФПД: 250072502440958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139642&fm=250072502440958&tin=02508201610067®Number=0000000000092569&sum=200000 [10:50:28]StoreToDocumentArchive [10:50:28]shift 453 fd 139642 [10:50:28]save to /storage/0453/doc_00139642 [10:50:28]save last doc name /storage/0453/doc_00139642 to /storage/kkm_last_doc_name [10:50:28]save OK [10:50:28]Clear old archive folders... [10:50:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:50:28]tlvbuf is 00D87060 [10:50:28]SAM_PROTO_ClearQueue [10:50:28]wFMCommunicate request_size=4 [10:50:28]MH_SAM_APDU [10:50:28]CAPDU: 80 09 00 00 [10:50:28]Write to MH i2c: E2 08 00 D3 2D 80 09 00 00 00 00 00 00 72 [10:50:28]Write i2c OK [10:50:28]MH_I2C_Read... [10:50:28]OFD Sender: No OFD packet to send [10:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:28]Read from MH i2c: E2 [10:50:28]MH_I2C_Read... [10:50:28]Read from MH i2c: E2 03 00 [10:50:28]MH_I2C_Read... [10:50:28]Read from MH i2c: E2 03 00 D3 2D 00 90 00 74 [10:50:29]RAPDU: 90 00 [10:50:29]wFMCommunicate OK [10:50:29]SAM_PROTO_ClearQueue done [10:50:29]KKMCreateOFDPacket [10:50:29]OFDProtocolAddRootSTLVToBuf [10:50:29]FM_MakeSignedData [10:50:29]FM_MakeSignedData [10:50:29]SAM_PROTO_SignData [10:50:29]wFMCommunicate request_size=4 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 0D 01 02 [10:50:29]Write to MH i2c: E2 08 00 D4 2D 80 0D 01 02 00 00 00 00 7A [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 D4 2D 00 90 00 75 [10:50:29]RAPDU: 90 00 [10:50:29]wFMCommunicate OK [10:50:29]wFMCommunicate request_size=255 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 72 00 00 00 F4 03 04 00 F7 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 21 02 00 35 04 06 00 [10:50:29]Write to MH i2c: E2 02 01 D5 2D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 72 00 00 00 F4 03 04 00 F7 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 21 02 00 35 04 06 00 00 00 49 [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 D5 2D 00 90 00 76 [10:50:29]RAPDU: 90 00 [10:50:29]wFMCommunicate OK [10:50:29]wFMCommunicate request_size=11 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 0D 02 02 06 E3 70 8A AD 13 FE [10:50:29]Write to MH i2c: E2 0E 00 D6 2D 80 0D 02 02 06 00 E3 70 8A AD 13 FE 00 00 24 [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 D6 2D 00 90 00 77 [10:50:29]RAPDU: 90 00 [10:50:29]wFMCommunicate OK [10:50:29]wFMCommunicate request_size=4 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 0D 03 02 [10:50:29]Write to MH i2c: E2 08 00 D7 2D 80 0D 03 02 00 00 00 00 7F [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 0B 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 0B 00 D7 2D 00 05 63 FC D5 61 31 4A DC 90 00 71 [10:50:29]RAPDU: 05 63 FC D5 61 31 4A DC 90 00 [10:50:29]wFMCommunicate OK [10:50:29]SAM_PROTO_SignData done [10:50:29]FM_MakeSignedData done [10:50:29]CreateOFDProtocolMessage [10:50:29]wFMCommunicate request_size=4 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 11 00 00 [10:50:29]Write to MH i2c: E2 08 00 D8 2D 80 11 00 00 00 00 00 00 7F [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 17 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 17 00 D8 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [10:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:50:29]wFMCommunicate OK [10:50:29]CreateOFDProtocolMessage done [10:50:29]OFDSenderStorePacket 139642 [10:50:29]StoreOFDPacket docnum=139642 [10:50:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 29 1C 08 01 D6 13 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 72 00 00 00 F4 03 04 00 F7 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 21 02 00 35 04 06 00 E3 70 8A AD 13 FE 05 63 FC D5 61 31 4A DC [10:50:29]CheckFolder [10:50:29]dirname=/storage/ofd_packets [10:50:29]CheckFolder done [10:50:29]ProducePacketName [10:50:29]name=ofd_packets/00139642 [10:50:29]NVStorageSaveData ofd_packets/00139642 [10:50:29]File name is /storage/ofd_packets/00139642 [10:50:29]Write 302 bytes [10:50:29]NVStorageSaveData done [10:50:29]OFDSenderStorePacket done [10:50:29]KKMCreateOFDPacket done [10:50:29]NVStorageSaveData kkm_last_timestamp [10:50:29]File name is /storage/kkm_last_timestamp [10:50:29]Write 4 bytes [10:50:29]NVStorageSaveData done [10:50:29]ExternCall_PrintAddStr [10:50:29]wPrintStart [10:50:29]Write to MH i2c: 01 00 00 D9 2D 06 [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: 01 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: 01 07 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: 01 07 00 D9 2D 00 00 00 00 00 FF 0F 1B [10:50:29]RasterBufferAndPrint [10:50:29]line Счет N : (1)593488 [10:50:29]line ИНН: 02508201610067 [10:50:29]line Контрольно-Кассовый Чек [10:50:29]line ПРОДАЖА [10:50:29]line ТРК (МРК, ГНК) : 44 [10:50:29]line Товар: 2710194210 [10:50:29]line ДТ(л)-К-5 [10:50:29]line 26.250 * 76.20 [10:50:29]line = 2000.25 [10:50:29]line НДС 12% НСП 1% [10:50:29]line > о реализуемом товаре [10:50:29]line ОКРУГЛЕНИЕ: -0.25 [10:50:29]line ИТОГО: 2000.00 [10:50:29]line Внесено: 2000.00 [10:50:29]line СДАЧА: 0.00 [10:50:29]line НСП 1% : 17.70 [10:50:29]line НДС 12% : 212.42 [10:50:29]line Наличными: 2000.00 [10:50:29]line Безнал.: 0.00 [10:50:29]line Место: АЗС № 136 "Партнер Нефть" [10:50:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:50:29]line СНО: Общий режим [10:50:29]line Чек 114 20.08.2024 10:50 [10:50:29]line Смена: 453 ФФД: 1.0 [10:50:29]line ЗНМ: 0300000067 [10:50:29]line РНМ: 0000000000092569 [10:50:29]line Версия ККМ: 001 [10:50:29]line ФМ: 0000000000871776 [10:50:29]line ФД: 139642 [10:50:29]line ФПД: 250072502440958 [10:50:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139642&fm=250072502440958&tin=02508201610067®Number=0000000000092569&sum=200000 [10:50:29]OFD Sender: Processing packet 139642 [packets to send 137, broken 136] [10:50:29]ProducePacketName [10:50:29]name=ofd_packets/00139642 [10:50:29]OFD Sender: To server: pG, [10:50:29]CommunicateWithHost lk.salyk.kg:30040 [10:50:29]ConnectInit lk.salyk.kg [10:50:29]written 0, free lines is 4095 [10:50:29]Connected sock=10 [10:50:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 29 1C 08 01 D6 13 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 72 00 00 00 F4 03 04 00 F7 74 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 21 02 00 35 04 06 00 E3 70 8A AD 13 FE 05 63 FC D5 61 31 4A DC [10:50:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 78 83 47 00 62 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 21 02 00 F4 03 04 00 8A 1B C4 66 B6 04 01 00 00 D4 48 CA 6B D3 86 82 33 [10:50:30]CommunicateWithHost err = 0 [10:50:30]CheckOFDResponse [10:50:30]1017 (14) - 77093643461234 [10:50:30]1041 (16) - 0000000000871776 [10:50:30]1040 (4) - 139642 [10:50:30]1012 (4) - 20.08.2024 04:28 [10:50:30]1206 (1) - 0 [10:50:30]OFD Sender: Remove packet 139642 [10:50:30]ProducePacketName [10:50:30]name=ofd_packets/00139642 [10:50:30]NVStorageDeleteData [10:50:30]Write to MH i2c: 01 00 00 04 2E 32 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: 01 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: 01 07 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: 01 07 00 04 2E 00 00 00 00 00 E3 0C 28 [10:50:30]RasterBufferAndPrint [10:50:30]line [10:50:30]line [10:50:30]line [10:50:30]line [10:50:30]line [10:50:30]written 0, free lines is 3305 [10:50:30]MH_Cut [10:50:30]Write to MH i2c: D1 01 00 0B 2E 01 0B [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: D1 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: D1 01 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: D1 01 00 0B 2E 00 0A [10:50:30]Write to MH i2c: 01 00 00 0C 2E 3A [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]OFD Sender: No OFD packet to send [10:50:31]*** Cut start [10:50:31]*** Partial cut [10:50:31]*** CUTSNS_PIN = 1 [10:50:31]*** CUTSNS_PIN = 0 [10:50:31]*** Brake cut motor [10:50:31]Read from MH i2c: 01 [10:50:31]MH_I2C_Read... [10:50:31]*** Stop cut motor [10:50:31]*** Cut end [10:50:31]Read from MH i2c: 01 07 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 0C 2E 00 00 00 00 00 FF 0F 4F [10:50:31]process_action close_receipt done [10:50:31]requested_data is exist [10:50:31]produce_requested_data [10:50:31]requested_item fm.sn is exist - process it [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 11 00 00 [10:50:31]Write to MH i2c: E2 08 00 0D 2E 80 11 00 00 00 00 00 00 B5 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 17 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 17 00 0D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [10:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:50:31]wFMCommunicate OK [10:50:31]requested_item fd.num is exist - process it [10:50:31]SAM_PROTO_GetFieldsCounters [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 13 00 00 [10:50:31]Write to MH i2c: E2 08 00 0E 2E 80 13 00 00 00 00 00 00 B8 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 62 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 62 00 0E 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [10:50:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:31]wFMCommunicate OK [10:50:31]SAM_PROTO_GetFieldsCounters done [10:50:31]requested_item shift.num is exist - process it [10:50:31]requested_item shift.opened is exist - process it [10:50:31]req_shift_opened [10:50:31]FM_GetShiftState [10:50:31]SAM_PROTO_GetShiftState [10:50:31]wFMCommunicate request_size=4 [10:50:31]MH_SAM_APDU [10:50:31]CAPDU: 80 13 01 00 [10:50:31]Write to MH i2c: E2 08 00 0F 2E 80 13 01 00 00 00 00 00 BA [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:31]Read from MH i2c: E2 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0E 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: E2 0E 00 0F 2E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4B [10:50:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:50:31]wFMCommunicate OK [10:50:31]SAM_PROTO_GetShiftState done [10:50:31]FM_GetShiftState done [10:50:31]req_shift_opened done [10:50:31]requested_item shift.open_date is exist - process it [10:50:31]req_shift_open_date [10:50:31]req_shift_open_date done [10:50:31]produce_requested_data done [10:50:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139642,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:50:31]process_action_free close_receipt [10:50:31]json_value_free [10:50:31]json_value_free done [10:50:31]process_json_proto returns [10:50:31]Send response to host [10:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139642,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:50:31]free response buf [10:50:31]execute_script done [10:50:31]execute_script returns [10:50:31]free content buf [10:50:31]Sock 9.Close socket [10:50:31]Sock 9.Thread stoped [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:33]accept exits with 7 [10:51:33]New connection [10:51:33]New thread 3067071844 created [10:51:33]Thread 3067215204 joined [10:51:33]Waiting for new connection... [10:51:33] Sock 7.Parse request [10:51:33]Sock 7.Check first char [10:51:33]Sock 7.First char is OK [10:51:33]request: POST /json_proto HTTP/1.0 [10:51:33]Method: POST [10:51:33]URL: /json_proto [10:51:33]Method is POST - this is cgi request [10:51:33]url: /json_proto [10:51:33]query_string will be loaded in cgi processing [10:51:33]execute_cgi json_proto POST (null) [10:51:33]execute_cgi path=json_proto method=POST [10:51:33]POST find Content-Length [10:51:33]Host: 172.17.45.67:8080 [10:51:33]Content-Length: 677 [10:51:33]Content-Type: application/json [10:51:33] [10:51:33]POST finish read [10:51:33]Found Content-Length = 677 [10:51:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:33]execute_script... [10:51: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)593490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:33]POST & json_proto [10:51:33]process_json_proto [10:51:33]json parsed OK: [10:51:33]protocol is kg_v1.0 [10:51:33]action value=close_receipt [10:51:33]process_action close_receipt [10:51:33]cmd_close_receipt [10:51:33]MH_GetDate [10:51:33]Write to MH i2c: F0 00 00 10 2E 2D [10:51:33]Write i2c OK [10:51:33]MH_I2C_Read... [10:51:33]Read from MH i2c: F0 [10:51:33]MH_I2C_Read... [10:51:33]Read from MH i2c: F0 09 00 [10:51:33]MH_I2C_Read... [10:51:33]Read from MH i2c: F0 09 00 10 2E 00 38 75 C4 66 5F 7F 2B 66 7C [10:51:33]GetLastDocTimeStamp 1724151031 [10:51:33]current date 1724151096 [10:51:33]FM_GetShiftState [10:51:33]SAM_PROTO_GetShiftState [10:51:33]wFMCommunicate request_size=4 [10:51:33]MH_SAM_APDU [10:51:33]CAPDU: 80 13 01 00 [10:51:33]Write to MH i2c: E2 08 00 11 2E 80 13 01 00 00 00 00 00 BC [10:51:33]Write i2c OK [10:51:33]MH_I2C_Read... [10:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:33]Read from MH i2c: E2 [10:51:33]MH_I2C_Read... [10:51:33]Read from MH i2c: E2 0E 00 [10:51:33]MH_I2C_Read... [10:51:33]Read from MH i2c: E2 0E 00 11 2E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4D [10:51:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:51:33]wFMCommunicate OK [10:51:33]SAM_PROTO_GetShiftState done [10:51:33]FM_GetShiftState done [10:51:33]opened in 1724113785 [10:51:33]opened+sec_in_day 1724200185 [10:51:33]quantity*price = 40002 [10:51:33]sum+1 = 40003 [10:51:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 115 20.08.2024 10:51 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139643 ФПД: 10783855716731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105136&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139643&fm=10783855716731&tin=02508201610067®Number=0000000000092569&sum=40000 [10:51:34]StoreToDocumentArchive [10:51:34]shift 453 fd 139643 [10:51:34]save to /storage/0453/doc_00139643 [10:51:34]save last doc name /storage/0453/doc_00139643 to /storage/kkm_last_doc_name [10:51:34]save OK [10:51:34]Clear old archive folders... [10:51:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:34]tlvbuf is 00DC43C0 [10:51:34]SAM_PROTO_ClearQueue [10:51:34]wFMCommunicate request_size=4 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 09 00 00 [10:51:34]Write to MH i2c: E2 08 00 1E 2E 80 09 00 00 00 00 00 00 BE [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 1E 2E 00 90 00 C0 [10:51:34]RAPDU: 90 00 [10:51:34]wFMCommunicate OK [10:51:34]SAM_PROTO_ClearQueue done [10:51:34]KKMCreateOFDPacket [10:51:34]OFDProtocolAddRootSTLVToBuf [10:51:34]FM_MakeSignedData [10:51:34]FM_MakeSignedData [10:51:34]SAM_PROTO_SignData [10:51:34]wFMCommunicate request_size=4 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 0D 01 02 [10:51:34]Write to MH i2c: E2 08 00 1F 2E 80 0D 01 02 00 00 00 00 C6 [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 1F 2E 00 90 00 C1 [10:51:34]RAPDU: 90 00 [10:51:34]wFMCommunicate OK [10:51:34]wFMCommunicate request_size=255 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 38 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 21 02 00 35 04 06 00 09 [10:51:34]Write to MH i2c: E2 02 01 20 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 38 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 21 02 00 35 04 06 00 09 00 00 EB [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 20 2E 00 90 00 C2 [10:51:34]RAPDU: 90 00 [10:51:34]wFMCommunicate OK [10:51:34]wFMCommunicate request_size=10 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 0D 02 02 05 CE CF E3 A9 7B [10:51:34]Write to MH i2c: E2 0D 00 21 2E 80 0D 02 02 05 00 CE CF E3 A9 7B 00 00 77 [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [10:51:34]RAPDU: 90 00 [10:51:34]wFMCommunicate OK [10:51:34]wFMCommunicate request_size=4 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 0D 03 02 [10:51:34]Write to MH i2c: E2 08 00 22 2E 80 0D 03 02 00 00 00 00 CB [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 0B 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 0B 00 22 2E 00 81 9E B6 C4 70 00 DB 5D 90 00 0D [10:51:34]RAPDU: 81 9E B6 C4 70 00 DB 5D 90 00 [10:51:34]wFMCommunicate OK [10:51:34]SAM_PROTO_SignData done [10:51:34]FM_MakeSignedData done [10:51:34]CreateOFDProtocolMessage [10:51:34]wFMCommunicate request_size=4 [10:51:34]MH_SAM_APDU [10:51:34]CAPDU: 80 11 00 00 [10:51:34]Write to MH i2c: E2 08 00 23 2E 80 11 00 00 00 00 00 00 CB [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:34]Read from MH i2c: E2 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 17 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: E2 17 00 23 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 22 [10:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:51:34]wFMCommunicate OK [10:51:34]CreateOFDProtocolMessage done [10:51:34]OFDSenderStorePacket 139643 [10:51:34]StoreOFDPacket docnum=139643 [10:51:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 70 12 07 01 6C 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 73 00 00 00 F4 03 04 00 38 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 21 02 00 35 04 06 00 09 CE CF E3 A9 7B 81 9E B6 C4 70 00 DB 5D [10:51:34]CheckFolder [10:51:34]dirname=/storage/ofd_packets [10:51:34]CheckFolder done [10:51:34]ProducePacketName [10:51:34]name=ofd_packets/00139643 [10:51:34]NVStorageSaveData ofd_packets/00139643 [10:51:34]File name is /storage/ofd_packets/00139643 [10:51:34]Write 301 bytes [10:51:34]NVStorageSaveData done [10:51:34]OFDSenderStorePacket done [10:51:34]KKMCreateOFDPacket done [10:51:34]NVStorageSaveData kkm_last_timestamp [10:51:34]File name is /storage/kkm_last_timestamp [10:51:34]Write 4 bytes [10:51:34]NVStorageSaveData done [10:51:34]ExternCall_PrintAddStr [10:51:34]wPrintStart [10:51:34]Write to MH i2c: 01 00 00 24 2E 52 [10:51:34]Write i2c OK [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: 01 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: 01 07 00 [10:51:34]MH_I2C_Read... [10:51:34]Read from MH i2c: 01 07 00 24 2E 00 00 00 00 00 FF 0F 67 [10:51:34]RasterBufferAndPrint [10:51:34]line Счет N : (1)593490 [10:51:34]line ИНН: 02508201610067 [10:51:34]line Контрольно-Кассовый Чек [10:51:34]line ПРОДАЖА [10:51:34]line ТРК (МРК, ГНК) : 52 [10:51:34]line Товар: 2710124130 [10:51:34]line Аи-92-К-5 [10:51:34]line 5.900 * 67.80 [10:51:34]line = 400.02 [10:51:34]line НДС 12% НСП 1% [10:51:34]line > о реализуемом товаре [10:51:34]line ОКРУГЛЕНИЕ: -0.02 [10:51:34]line ИТОГО: 400.00 [10:51:34]line Внесено: 400.00 [10:51:34]line СДАЧА: 0.00 [10:51:34]line НСП 1% : 3.54 [10:51:34]line НДС 12% : 42.48 [10:51:34]line Наличными: 400.00 [10:51:34]line Безнал.: 0.00 [10:51:34]line Место: АЗС № 136 "Партнер Нефть" [10:51:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:51:34]line СНО: Общий режим [10:51:34]line Чек 115 20.08.2024 10:51 [10:51:34]line Смена: 453 ФФД: 1.0 [10:51:34]line ЗНМ: 0300000067 [10:51:34]line РНМ: 0000000000092569 [10:51:34]line Версия ККМ: 001 [10:51:34]line ФМ: 0000000000871776 [10:51:34]line ФД: 139643 [10:51:34]line ФПД: 10783855716731 [10:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105136&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139643&fm=10783855716731&tin=02508201610067®Number=0000000000092569&sum=40000 [10:51:35]OFD Sender: Processing packet 139643 [packets to send 137, broken 136] [10:51:35]ProducePacketName [10:51:35]name=ofd_packets/00139643 [10:51:35]OFD Sender: To server: pG, [10:51:35]CommunicateWithHost lk.salyk.kg:30040 [10:51:35]ConnectInit lk.salyk.kg [10:51:35]written 0, free lines is 4095 [10:51:35]Connected sock=10 [10:51:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 70 12 07 01 6C 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 73 00 00 00 F4 03 04 00 38 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 21 02 00 35 04 06 00 09 CE CF E3 A9 7B 81 9E B6 C4 70 00 DB 5D [10:51:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F6 70 47 00 35 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 21 02 00 F4 03 04 00 CB 1B C4 66 B6 04 01 00 00 AE 8A 7C 52 A7 69 49 8E [10:51:35]CommunicateWithHost err = 0 [10:51:35]CheckOFDResponse [10:51:35]1017 (14) - 77093643461234 [10:51:35]1041 (16) - 0000000000871776 [10:51:35]1040 (4) - 139643 [10:51:35]1012 (4) - 20.08.2024 04:30 [10:51:35]1206 (1) - 0 [10:51:35]OFD Sender: Remove packet 139643 [10:51:35]ProducePacketName [10:51:35]name=ofd_packets/00139643 [10:51:35]NVStorageDeleteData [10:51:35]Write to MH i2c: 01 00 00 4F 2E 7D [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: 01 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: 01 07 00 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: 01 07 00 4F 2E 00 00 00 00 00 D1 0C 61 [10:51:35]RasterBufferAndPrint [10:51:35]line [10:51:35]line [10:51:35]line [10:51:35]line [10:51:35]line [10:51:35]written 0, free lines is 3287 [10:51:35]MH_Cut [10:51:35]Write to MH i2c: D1 01 00 56 2E 01 56 [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: D1 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: D1 01 00 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: D1 01 00 56 2E 00 55 [10:51:35]Write to MH i2c: 01 00 00 57 2E 85 [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:36]OFD Sender: No OFD packet to send [10:51:36]*** Cut start [10:51:36]*** Partial cut [10:51:36]*** CUTSNS_PIN = 1 [10:51:36]*** CUTSNS_PIN = 0 [10:51:36]*** Brake cut motor [10:51:36]*** Stop cut motor [10:51:36]*** Cut end [10:51:36]Read from MH i2c: 01 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 07 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 07 00 57 2E 00 00 00 00 00 FF 0F 9A [10:51:36]process_action close_receipt done [10:51:36]requested_data is exist [10:51:36]produce_requested_data [10:51:36]requested_item fm.sn is exist - process it [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 11 00 00 [10:51:36]Write to MH i2c: E2 08 00 58 2E 80 11 00 00 00 00 00 00 00 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 17 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 17 00 58 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 57 [10:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:51:36]wFMCommunicate OK [10:51:36]requested_item fd.num is exist - process it [10:51:36]SAM_PROTO_GetFieldsCounters [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 13 00 00 [10:51:36]Write to MH i2c: E2 08 00 59 2E 80 13 00 00 00 00 00 00 03 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:37]Read from MH i2c: E2 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 62 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 62 00 59 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [10:51:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:37]wFMCommunicate OK [10:51:37]SAM_PROTO_GetFieldsCounters done [10:51:37]requested_item shift.num is exist - process it [10:51:37]requested_item shift.opened is exist - process it [10:51:37]req_shift_opened [10:51:37]FM_GetShiftState [10:51:37]SAM_PROTO_GetShiftState [10:51:37]wFMCommunicate request_size=4 [10:51:37]MH_SAM_APDU [10:51:37]CAPDU: 80 13 01 00 [10:51:37]Write to MH i2c: E2 08 00 5A 2E 80 13 01 00 00 00 00 00 05 [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:37]Read from MH i2c: E2 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 0E 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: E2 0E 00 5A 2E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 96 [10:51:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:51:37]wFMCommunicate OK [10:51:37]SAM_PROTO_GetShiftState done [10:51:37]FM_GetShiftState done [10:51:37]req_shift_opened done [10:51:37]requested_item shift.open_date is exist - process it [10:51:37]req_shift_open_date [10:51:37]req_shift_open_date done [10:51:37]produce_requested_data done [10:51:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139643,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:51:37]process_action_free close_receipt [10:51:37]json_value_free [10:51:37]json_value_free done [10:51:37]process_json_proto returns [10:51:37]Send response to host [10:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139643,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:51:37]free response buf [10:51:37]execute_script done [10:51:37]execute_script returns [10:51:37]free content buf [10:51:37]Sock 7.Close socket [10:51:37]Sock 7.Thread stoped [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:07]accept exits with 9 [10:52:07]New connection [10:52:07]New thread 3067215204 created [10:52:07]Thread 3067071844 joined [10:52:07]Waiting for new connection... [10:52:07] Sock 9.Parse request [10:52:07]Sock 9.Check first char [10:52:07]Sock 9.First char is OK [10:52:07]request: POST /json_proto HTTP/1.0 [10:52:07]Method: POST [10:52:07]URL: /json_proto [10:52:07]Method is POST - this is cgi request [10:52:07]url: /json_proto [10:52:07]query_string will be loaded in cgi processing [10:52:07]execute_cgi json_proto POST (null) [10:52:07]execute_cgi path=json_proto method=POST [10:52:07]POST find Content-Length [10:52:07]Host: 172.17.45.67:8080 [10:52:07]Content-Length: 677 [10:52:07]Content-Type: application/json [10:52:07] [10:52:07]POST finish read [10:52:07]Found Content-Length = 677 [10:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:07]execute_script... [10:52: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)593491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:07]POST & json_proto [10:52:07]process_json_proto [10:52:07]json parsed OK: [10:52:07]protocol is kg_v1.0 [10:52:07]action value=close_receipt [10:52:07]process_action close_receipt [10:52:07]cmd_close_receipt [10:52:07]MH_GetDate [10:52:07]Write to MH i2c: F0 00 00 5B 2E 78 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: F0 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: F0 09 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: F0 09 00 5B 2E 00 5A 75 C4 66 5F 7F 2B 66 E9 [10:52:07]GetLastDocTimeStamp 1724151096 [10:52:07]current date 1724151130 [10:52:07]FM_GetShiftState [10:52:07]SAM_PROTO_GetShiftState [10:52:07]wFMCommunicate request_size=4 [10:52:07]MH_SAM_APDU [10:52:07]CAPDU: 80 13 01 00 [10:52:07]Write to MH i2c: E2 08 00 5C 2E 80 13 01 00 00 00 00 00 07 [10:52:07]Write i2c OK [10:52:07]MH_I2C_Read... [10:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:07]Read from MH i2c: E2 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 0E 00 [10:52:07]MH_I2C_Read... [10:52:07]Read from MH i2c: E2 0E 00 5C 2E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 98 [10:52:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:52:07]wFMCommunicate OK [10:52:07]SAM_PROTO_GetShiftState done [10:52:07]FM_GetShiftState done [10:52:07]opened in 1724113785 [10:52:07]opened+sec_in_day 1724200185 [10:52:07]quantity*price = 50036 [10:52:07]sum+1 = 50037 [10:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 116 20.08.2024 10:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139644 ФПД: 95199538186290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105210&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139644&fm=95199538186290&tin=02508201610067®Number=0000000000092569&sum=50000 [10:52:08]StoreToDocumentArchive [10:52:08]shift 453 fd 139644 [10:52:08]save to /storage/0453/doc_00139644 [10:52:08]save last doc name /storage/0453/doc_00139644 to /storage/kkm_last_doc_name [10:52:08]save OK [10:52:08]Clear old archive folders... [10:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:08]tlvbuf is 00D89640 [10:52:08]SAM_PROTO_ClearQueue [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 09 00 00 [10:52:08]Write to MH i2c: E2 08 00 69 2E 80 09 00 00 00 00 00 00 09 [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 03 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 03 00 69 2E 00 90 00 0B [10:52:08]RAPDU: 90 00 [10:52:08]wFMCommunicate OK [10:52:08]SAM_PROTO_ClearQueue done [10:52:08]KKMCreateOFDPacket [10:52:08]OFDProtocolAddRootSTLVToBuf [10:52:08]FM_MakeSignedData [10:52:08]FM_MakeSignedData [10:52:08]SAM_PROTO_SignData [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 0D 01 02 [10:52:08]Write to MH i2c: E2 08 00 6A 2E 80 0D 01 02 00 00 00 00 11 [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 03 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 03 00 6A 2E 00 90 00 0C [10:52:08]RAPDU: 90 00 [10:52:08]wFMCommunicate OK [10:52:08]wFMCommunicate request_size=255 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 5A 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 21 02 00 35 04 06 00 56 [10:52:08]Write to MH i2c: E2 02 01 6B 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 5A 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 21 02 00 35 04 06 00 56 00 00 C2 [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:09]Read from MH i2c: E2 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 03 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 03 00 6B 2E 00 90 00 0D [10:52:09]RAPDU: 90 00 [10:52:09]wFMCommunicate OK [10:52:09]wFMCommunicate request_size=10 [10:52:09]MH_SAM_APDU [10:52:09]CAPDU: 80 0D 02 02 05 95 5E A8 08 32 [10:52:09]Write to MH i2c: E2 0D 00 6C 2E 80 0D 02 02 05 00 95 5E A8 08 32 00 00 F3 [10:52:09]Write i2c OK [10:52:09]MH_I2C_Read... [10:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:09]Read from MH i2c: E2 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 03 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 03 00 6C 2E 00 90 00 0E [10:52:09]RAPDU: 90 00 [10:52:09]wFMCommunicate OK [10:52:09]wFMCommunicate request_size=4 [10:52:09]MH_SAM_APDU [10:52:09]CAPDU: 80 0D 03 02 [10:52:09]Write to MH i2c: E2 08 00 6D 2E 80 0D 03 02 00 00 00 00 16 [10:52:09]Write i2c OK [10:52:09]MH_I2C_Read... [10:52:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:09]Read from MH i2c: E2 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 0B 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 0B 00 6D 2E 00 FD 1A 0F 30 8B 3D 3A AF 90 00 1E [10:52:09]RAPDU: FD 1A 0F 30 8B 3D 3A AF 90 00 [10:52:09]wFMCommunicate OK [10:52:09]SAM_PROTO_SignData done [10:52:09]FM_MakeSignedData done [10:52:09]CreateOFDProtocolMessage [10:52:09]wFMCommunicate request_size=4 [10:52:09]MH_SAM_APDU [10:52:09]CAPDU: 80 11 00 00 [10:52:09]Write to MH i2c: E2 08 00 6E 2E 80 11 00 00 00 00 00 00 16 [10:52:09]Write i2c OK [10:52:09]MH_I2C_Read... [10:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:09]Read from MH i2c: E2 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 17 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: E2 17 00 6E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [10:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:52:09]wFMCommunicate OK [10:52:09]CreateOFDProtocolMessage done [10:52:09]OFDSenderStorePacket 139644 [10:52:09]StoreOFDPacket docnum=139644 [10:52:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 DA 07 01 69 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 5A 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 21 02 00 35 04 06 00 56 95 5E A8 08 32 FD 1A 0F 30 8B 3D 3A AF [10:52:09]CheckFolder [10:52:09]dirname=/storage/ofd_packets [10:52:09]CheckFolder done [10:52:09]ProducePacketName [10:52:09]name=ofd_packets/00139644 [10:52:09]NVStorageSaveData ofd_packets/00139644 [10:52:09]File name is /storage/ofd_packets/00139644 [10:52:09]Write 301 bytes [10:52:09]NVStorageSaveData done [10:52:09]OFDSenderStorePacket done [10:52:09]KKMCreateOFDPacket done [10:52:09]NVStorageSaveData kkm_last_timestamp [10:52:09]File name is /storage/kkm_last_timestamp [10:52:09]Write 4 bytes [10:52:09]NVStorageSaveData done [10:52:09]ExternCall_PrintAddStr [10:52:09]wPrintStart [10:52:09]Write to MH i2c: 01 00 00 6F 2E 9D [10:52:09]Write i2c OK [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: 01 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: 01 07 00 [10:52:09]MH_I2C_Read... [10:52:09]Read from MH i2c: 01 07 00 6F 2E 00 00 00 00 00 FF 0F B2 [10:52:09]RasterBufferAndPrint [10:52:09]line Счет N : (1)593491 [10:52:09]line ИНН: 02508201610067 [10:52:09]line Контрольно-Кассовый Чек [10:52:09]line ПРОДАЖА [10:52:09]line ТРК (МРК, ГНК) : 62 [10:52:09]line Товар: 2710124130 [10:52:09]line Аи-92-К-5 [10:52:09]line 7.380 * 67.80 [10:52:09]line = 500.36 [10:52:09]line НДС 12% НСП 1% [10:52:09]line > о реализуемом товаре [10:52:09]line ОКРУГЛЕНИЕ: -0.36 [10:52:09]line ИТОГО: 500.00 [10:52:09]line Внесено: 500.00 [10:52:09]line СДАЧА: 0.00 [10:52:09]line НСП 1% : 4.43 [10:52:09]line НДС 12% : 53.14 [10:52:09]line Наличными: 500.00 [10:52:09]line Безнал.: 0.00 [10:52:09]line Место: АЗС № 136 "Партнер Нефть" [10:52:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:52:09]line СНО: Общий режим [10:52:09]line Чек 116 20.08.2024 10:52 [10:52:09]line Смена: 453 ФФД: 1.0 [10:52:09]line ЗНМ: 0300000067 [10:52:09]line РНМ: 0000000000092569 [10:52:09]line Версия ККМ: 001 [10:52:09]line ФМ: 0000000000871776 [10:52:09]line ФД: 139644 [10:52:09]line ФПД: 95199538186290 [10:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105210&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139644&fm=95199538186290&tin=02508201610067®Number=0000000000092569&sum=50000 [10:52:09]written 0, free lines is 4095 [10:52:09]OFD Sender: Processing packet 139644 [packets to send 137, broken 136] [10:52:09]ProducePacketName [10:52:09]name=ofd_packets/00139644 [10:52:09]OFD Sender: To server: pG, [10:52:09]CommunicateWithHost lk.salyk.kg:30040 [10:52:09]ConnectInit lk.salyk.kg [10:52:09]Connected sock=10 [10:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 DA 07 01 69 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 5A 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 21 02 00 35 04 06 00 56 95 5E A8 08 32 FD 1A 0F 30 8B 3D 3A AF [10:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 79 14 47 00 DB 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 21 02 00 F4 03 04 00 EE 1B C4 66 B6 04 01 00 00 03 BB 96 B5 6A 4E CA FE [10:52:09]CommunicateWithHost err = 0 [10:52:09]CheckOFDResponse [10:52:09]1017 (14) - 77093643461234 [10:52:09]1041 (16) - 0000000000871776 [10:52:09]1040 (4) - 139644 [10:52:09]1012 (4) - 20.08.2024 04:30 [10:52:09]1206 (1) - 0 [10:52:09]OFD Sender: Remove packet 139644 [10:52:09]ProducePacketName [10:52:09]name=ofd_packets/00139644 [10:52:09]NVStorageDeleteData [10:52:10]Write to MH i2c: 01 00 00 9A 2E C8 [10:52:10]Write i2c OK [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: 01 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: 01 07 00 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: 01 07 00 9A 2E 00 00 00 00 00 D9 0C B4 [10:52:10]RasterBufferAndPrint [10:52:10]line [10:52:10]line [10:52:10]line [10:52:10]line [10:52:10]line [10:52:10]written 0, free lines is 3294 [10:52:10]MH_Cut [10:52:10]Write to MH i2c: D1 01 00 A1 2E 01 A1 [10:52:10]Write i2c OK [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: D1 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: D1 01 00 [10:52:10]MH_I2C_Read... [10:52:10]Read from MH i2c: D1 01 00 A1 2E 00 A0 [10:52:10]Write to MH i2c: 01 00 00 A2 2E D0 [10:52:10]Write i2c OK [10:52:10]MH_I2C_Read... [10:52:10]OFD Sender: No OFD packet to send [10:52:10]*** Cut start [10:52:10]*** Partial cut [10:52:10]*** CUTSNS_PIN = 1 [10:52:10]*** CUTSNS_PIN = 0 [10:52:11]*** Brake cut motor [10:52:11]Read from MH i2c: 01 [10:52:11]MH_I2C_Read... [10:52:11]*** Stop cut motor [10:52:11]*** Cut end [10:52:11]Read from MH i2c: 01 07 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: 01 07 00 A2 2E 00 00 00 00 00 FF 0F E5 [10:52:11]process_action close_receipt done [10:52:11]requested_data is exist [10:52:11]produce_requested_data [10:52:11]requested_item fm.sn is exist - process it [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 11 00 00 [10:52:11]Write to MH i2c: E2 08 00 A3 2E 80 11 00 00 00 00 00 00 4B [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 17 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 17 00 A3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [10:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:52:11]wFMCommunicate OK [10:52:11]requested_item fd.num is exist - process it [10:52:11]SAM_PROTO_GetFieldsCounters [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 13 00 00 [10:52:11]Write to MH i2c: E2 08 00 A4 2E 80 13 00 00 00 00 00 00 4E [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 62 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 62 00 A4 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [10:52:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:11]wFMCommunicate OK [10:52:11]SAM_PROTO_GetFieldsCounters done [10:52:11]requested_item shift.num is exist - process it [10:52:11]requested_item shift.opened is exist - process it [10:52:11]req_shift_opened [10:52:11]FM_GetShiftState [10:52:11]SAM_PROTO_GetShiftState [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 13 01 00 [10:52:11]Write to MH i2c: E2 08 00 A5 2E 80 13 01 00 00 00 00 00 50 [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 0E 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 0E 00 A5 2E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E1 [10:52:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:52:11]wFMCommunicate OK [10:52:11]SAM_PROTO_GetShiftState done [10:52:11]FM_GetShiftState done [10:52:11]req_shift_opened done [10:52:11]requested_item shift.open_date is exist - process it [10:52:11]req_shift_open_date [10:52:11]req_shift_open_date done [10:52:11]produce_requested_data done [10:52:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139644,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:52:11]process_action_free close_receipt [10:52:11]json_value_free [10:52:11]json_value_free done [10:52:11]process_json_proto returns [10:52:11]Send response to host [10:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139644,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:52:11]free response buf [10:52:11]execute_script done [10:52:11]execute_script returns [10:52:11]free content buf [10:52:11]Sock 9.Close socket [10:52:11]Sock 9.Thread stoped [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:41]accept exits with 7 [10:52:41]New connection [10:52:41]New thread 3067071844 created [10:52:41]Thread 3067215204 joined [10:52:41]Waiting for new connection... [10:52:41] Sock 7.Parse request [10:52:41]Sock 7.Check first char [10:52:41]Sock 7.First char is OK [10:52:41]request: POST /json_proto HTTP/1.0 [10:52:41]Method: POST [10:52:41]URL: /json_proto [10:52:41]Method is POST - this is cgi request [10:52:41]url: /json_proto [10:52:41]query_string will be loaded in cgi processing [10:52:41]execute_cgi json_proto POST (null) [10:52:41]execute_cgi path=json_proto method=POST [10:52:41]POST find Content-Length [10:52:41]Host: 172.17.45.67:8080 [10:52:41]Content-Length: 687 [10:52:41]Content-Type: application/json [10:52:41] [10:52:41]POST finish read [10:52:41]Found Content-Length = 687 [10:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:52:41]execute_script... [10:52: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)593489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:52:41]POST & json_proto [10:52:41]process_json_proto [10:52:41]json parsed OK: [10:52:41]protocol is kg_v1.0 [10:52:41]action value=close_receipt [10:52:41]process_action close_receipt [10:52:41]cmd_close_receipt [10:52:41]MH_GetDate [10:52:41]Write to MH i2c: F0 00 00 A6 2E C3 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: F0 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: F0 09 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: F0 09 00 A6 2E 00 7C 75 C4 66 5F 7F 2B 66 56 [10:52:41]GetLastDocTimeStamp 1724151130 [10:52:41]current date 1724151164 [10:52:41]FM_GetShiftState [10:52:41]SAM_PROTO_GetShiftState [10:52:41]wFMCommunicate request_size=4 [10:52:41]MH_SAM_APDU [10:52:41]CAPDU: 80 13 01 00 [10:52:41]Write to MH i2c: E2 08 00 A7 2E 80 13 01 00 00 00 00 00 52 [10:52:41]Write i2c OK [10:52:41]MH_I2C_Read... [10:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:41]Read from MH i2c: E2 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 0E 00 [10:52:41]MH_I2C_Read... [10:52:41]Read from MH i2c: E2 0E 00 A7 2E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E3 [10:52:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:52:41]wFMCommunicate OK [10:52:41]SAM_PROTO_GetShiftState done [10:52:41]FM_GetShiftState done [10:52:41]opened in 1724113785 [10:52:41]opened+sec_in_day 1724200185 [10:52:41]quantity*price = 100050 [10:52:41]sum+1 = 100052 [10:52: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 117 20.08.2024 10:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139645 ФПД: 13437161919502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139645&fm=13437161919502&tin=02508201610067®Number=0000000000092569&sum=100000 [10:52:42]StoreToDocumentArchive [10:52:42]shift 453 fd 139645 [10:52:42]save to /storage/0453/doc_00139645 [10:52:42]save last doc name /storage/0453/doc_00139645 to /storage/kkm_last_doc_name [10:52:42]save OK [10:52:42]Clear old archive folders... [10:52:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:52:42]tlvbuf is B6F95550 [10:52:42]SAM_PROTO_ClearQueue [10:52:42]wFMCommunicate request_size=4 [10:52:42]MH_SAM_APDU [10:52:42]CAPDU: 80 09 00 00 [10:52:42]Write to MH i2c: E2 08 00 B4 2E 80 09 00 00 00 00 00 00 54 [10:52:42]Write i2c OK [10:52:42]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 03 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 03 00 B4 2E 00 90 00 56 [10:52:43]RAPDU: 90 00 [10:52:43]wFMCommunicate OK [10:52:43]SAM_PROTO_ClearQueue done [10:52:43]KKMCreateOFDPacket [10:52:43]OFDProtocolAddRootSTLVToBuf [10:52:43]FM_MakeSignedData [10:52:43]FM_MakeSignedData [10:52:43]SAM_PROTO_SignData [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 0D 01 02 [10:52:43]Write to MH i2c: E2 08 00 B5 2E 80 0D 01 02 00 00 00 00 5C [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 03 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 03 00 B5 2E 00 90 00 57 [10:52:43]RAPDU: 90 00 [10:52:43]wFMCommunicate OK [10:52:43]wFMCommunicate request_size=255 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 75 00 00 00 F4 03 04 00 7C 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 21 02 00 35 04 06 00 [10:52:43]Write to MH i2c: E2 02 01 B6 2E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 75 00 00 00 F4 03 04 00 7C 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 21 02 00 35 04 06 00 00 00 C9 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 03 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 03 00 B6 2E 00 90 00 58 [10:52:43]RAPDU: 90 00 [10:52:43]wFMCommunicate OK [10:52:43]wFMCommunicate request_size=11 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 0D 02 02 06 0C 38 95 43 54 0E [10:52:43]Write to MH i2c: E2 0E 00 B7 2E 80 0D 02 02 06 00 0C 38 95 43 54 0E 00 00 E9 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 03 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 03 00 B7 2E 00 90 00 59 [10:52:43]RAPDU: 90 00 [10:52:43]wFMCommunicate OK [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 0D 03 02 [10:52:43]Write to MH i2c: E2 08 00 B8 2E 80 0D 03 02 00 00 00 00 61 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 0B 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 0B 00 B8 2E 00 76 A7 CA A7 B5 DA 9C 7E 90 00 99 [10:52:43]RAPDU: 76 A7 CA A7 B5 DA 9C 7E 90 00 [10:52:43]wFMCommunicate OK [10:52:43]SAM_PROTO_SignData done [10:52:43]FM_MakeSignedData done [10:52:43]CreateOFDProtocolMessage [10:52:43]wFMCommunicate request_size=4 [10:52:43]MH_SAM_APDU [10:52:43]CAPDU: 80 11 00 00 [10:52:43]Write to MH i2c: E2 08 00 B9 2E 80 11 00 00 00 00 00 00 61 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:43]Read from MH i2c: E2 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 17 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: E2 17 00 B9 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [10:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:52:43]wFMCommunicate OK [10:52:43]CreateOFDProtocolMessage done [10:52:43]OFDSenderStorePacket 139645 [10:52:43]StoreOFDPacket docnum=139645 [10:52:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 E3 98 08 01 64 D2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 75 00 00 00 F4 03 04 00 7C 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 21 02 00 35 04 06 00 0C 38 95 43 54 0E 76 A7 CA A7 B5 DA 9C 7E [10:52:43]CheckFolder [10:52:43]dirname=/storage/ofd_packets [10:52:43]CheckFolder done [10:52:43]ProducePacketName [10:52:43]name=ofd_packets/00139645 [10:52:43]NVStorageSaveData ofd_packets/00139645 [10:52:43]File name is /storage/ofd_packets/00139645 [10:52:43]Write 302 bytes [10:52:43]NVStorageSaveData done [10:52:43]OFDSenderStorePacket done [10:52:43]KKMCreateOFDPacket done [10:52:43]NVStorageSaveData kkm_last_timestamp [10:52:43]File name is /storage/kkm_last_timestamp [10:52:43]Write 4 bytes [10:52:43]NVStorageSaveData done [10:52:43]ExternCall_PrintAddStr [10:52:43]wPrintStart [10:52:43]Write to MH i2c: 01 00 00 BA 2E E8 [10:52:43]Write i2c OK [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 [10:52:43]MH_I2C_Read... [10:52:43]Read from MH i2c: 01 07 00 BA 2E 00 00 00 00 00 FF 0F FD [10:52:43]RasterBufferAndPrint [10:52:43]line Счет N : (1)593489 [10:52:43]line ИНН: 02508201610067 [10:52:43]line Контрольно-Кассовый Чек [10:52:43]line ПРОДАЖА [10:52:43]line ТРК (МРК, ГНК) : 34 [10:52:43]line Товар: 2710194210 [10:52:43]line ДТ(л)-К-5 [10:52:43]line 13.130 * 76.20 [10:52:43]line = 1000.51 [10:52:43]line НДС 12% НСП 1% [10:52:43]line > о реализуемом товаре [10:52:43]line ОКРУГЛЕНИЕ: -0.51 [10:52:43]line ИТОГО: 1000.00 [10:52:43]line Внесено: 1000.00 [10:52:43]line СДАЧА: 0.00 [10:52:43]line НСП 1% : 8.85 [10:52:43]line НДС 12% : 106.25 [10:52:43]line Наличными: 1000.00 [10:52:43]line Безнал.: 0.00 [10:52:43]line Место: АЗС № 136 "Партнер Нефть" [10:52:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:52:43]line СНО: Общий режим [10:52:43]line Чек 117 20.08.2024 10:52 [10:52:43]line Смена: 453 ФФД: 1.0 [10:52:43]line ЗНМ: 0300000067 [10:52:43]line РНМ: 0000000000092569 [10:52:43]line Версия ККМ: 001 [10:52:43]line ФМ: 0000000000871776 [10:52:43]line ФД: 139645 [10:52:43]line ФПД: 13437161919502 [10:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139645&fm=13437161919502&tin=02508201610067®Number=0000000000092569&sum=100000 [10:52:43]OFD Sender: Processing packet 139645 [packets to send 137, broken 136] [10:52:43]ProducePacketName [10:52:43]name=ofd_packets/00139645 [10:52:43]OFD Sender: To server: pG, [10:52:43]CommunicateWithHost lk.salyk.kg:30040 [10:52:43]ConnectInit lk.salyk.kg [10:52:43]written 0, free lines is 4095 [10:52:43]Connected sock=10 [10:52:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 E3 98 08 01 64 D2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 75 00 00 00 F4 03 04 00 7C 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 21 02 00 35 04 06 00 0C 38 95 43 54 0E 76 A7 CA A7 B5 DA 9C 7E [10:52:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 47 A7 47 00 6B F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 21 02 00 F4 03 04 00 10 1C C4 66 B6 04 01 00 00 5F BD A0 B3 89 57 86 20 [10:52:44]CommunicateWithHost err = 0 [10:52:44]CheckOFDResponse [10:52:44]1017 (14) - 77093643461234 [10:52:44]1041 (16) - 0000000000871776 [10:52:44]1040 (4) - 139645 [10:52:44]1012 (4) - 20.08.2024 04:31 [10:52:44]1206 (1) - 0 [10:52:44]OFD Sender: Remove packet 139645 [10:52:44]ProducePacketName [10:52:44]name=ofd_packets/00139645 [10:52:44]NVStorageDeleteData [10:52:44]Write to MH i2c: 01 00 00 E5 2E 13 [10:52:44]Write i2c OK [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: 01 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: 01 07 00 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: 01 07 00 E5 2E 00 00 00 00 00 DC 0C 02 [10:52:44]RasterBufferAndPrint [10:52:44]line [10:52:44]line [10:52:44]line [10:52:44]line [10:52:44]line [10:52:44]written 0, free lines is 3300 [10:52:44]MH_Cut [10:52:44]Write to MH i2c: D1 01 00 EC 2E 01 EC [10:52:44]Write i2c OK [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: D1 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: D1 01 00 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: D1 01 00 EC 2E 00 EB [10:52:44]Write to MH i2c: 01 00 00 ED 2E 1B [10:52:44]Write i2c OK [10:52:44]MH_I2C_Read... [10:52:44]OFD Sender: No OFD packet to send [10:52:45]*** Cut start [10:52:45]*** Partial cut [10:52:45]*** CUTSNS_PIN = 1 [10:52:45]*** CUTSNS_PIN = 0 [10:52:45]*** Brake cut motor [10:52:45]Read from MH i2c: 01 [10:52:45]MH_I2C_Read... [10:52:45]*** Stop cut motor [10:52:45]*** Cut end [10:52:45]Read from MH i2c: 01 07 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: 01 07 00 ED 2E 00 00 00 00 00 FF 0F 30 [10:52:45]process_action close_receipt done [10:52:45]requested_data is exist [10:52:45]produce_requested_data [10:52:45]requested_item fm.sn is exist - process it [10:52:45]wFMCommunicate request_size=4 [10:52:45]MH_SAM_APDU [10:52:45]CAPDU: 80 11 00 00 [10:52:45]Write to MH i2c: E2 08 00 EE 2E 80 11 00 00 00 00 00 00 96 [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:45]Read from MH i2c: E2 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 17 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 17 00 EE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [10:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:52:45]wFMCommunicate OK [10:52:45]requested_item fd.num is exist - process it [10:52:45]SAM_PROTO_GetFieldsCounters [10:52:45]wFMCommunicate request_size=4 [10:52:45]MH_SAM_APDU [10:52:45]CAPDU: 80 13 00 00 [10:52:45]Write to MH i2c: E2 08 00 EF 2E 80 13 00 00 00 00 00 00 99 [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:45]Read from MH i2c: E2 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 62 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 62 00 EF 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [10:52:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:45]wFMCommunicate OK [10:52:45]SAM_PROTO_GetFieldsCounters done [10:52:45]requested_item shift.num is exist - process it [10:52:45]requested_item shift.opened is exist - process it [10:52:45]req_shift_opened [10:52:45]FM_GetShiftState [10:52:45]SAM_PROTO_GetShiftState [10:52:45]wFMCommunicate request_size=4 [10:52:45]MH_SAM_APDU [10:52:45]CAPDU: 80 13 01 00 [10:52:45]Write to MH i2c: E2 08 00 F0 2E 80 13 01 00 00 00 00 00 9B [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:45]Read from MH i2c: E2 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 0E 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 0E 00 F0 2E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2C [10:52:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:52:45]wFMCommunicate OK [10:52:45]SAM_PROTO_GetShiftState done [10:52:45]FM_GetShiftState done [10:52:45]req_shift_opened done [10:52:45]requested_item shift.open_date is exist - process it [10:52:45]req_shift_open_date [10:52:45]req_shift_open_date done [10:52:45]produce_requested_data done [10:52:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139645,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:52:45]process_action_free close_receipt [10:52:45]json_value_free [10:52:45]json_value_free done [10:52:45]process_json_proto returns [10:52:45]Send response to host [10:52:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139645,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:52:45]free response buf [10:52:45]execute_script done [10:52:45]execute_script returns [10:52:45]free content buf [10:52:45]Sock 7.Close socket [10:52:45]Sock 7.Thread stoped [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:57]accept exits with 9 [10:53:57]New connection [10:53:57]New thread 3067215204 created [10:53:57]Thread 3067071844 joined [10:53:57]Waiting for new connection... [10:53:57] Sock 9.Parse request [10:53:57]Sock 9.Check first char [10:53:57]Sock 9.First char is OK [10:53:57]request: POST /json_proto HTTP/1.0 [10:53:57]Method: POST [10:53:57]URL: /json_proto [10:53:57]Method is POST - this is cgi request [10:53:57]url: /json_proto [10:53:57]query_string will be loaded in cgi processing [10:53:57]execute_cgi json_proto POST (null) [10:53:57]execute_cgi path=json_proto method=POST [10:53:57]POST find Content-Length [10:53:57]Host: 172.17.45.67:8080 [10:53:57]Content-Length: 677 [10:53:57]Content-Type: application/json [10:53:57] [10:53:57]POST finish read [10:53:57]Found Content-Length = 677 [10:53:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:57]execute_script... [10:53: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)593492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:57]POST & json_proto [10:53:57]process_json_proto [10:53:57]json parsed OK: [10:53:57]protocol is kg_v1.0 [10:53:57]action value=close_receipt [10:53:57]process_action close_receipt [10:53:57]cmd_close_receipt [10:53:57]MH_GetDate [10:53:57]Write to MH i2c: F0 00 00 F1 2E 0E [10:53:57]Write i2c OK [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: F0 [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: F0 09 00 [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: F0 09 00 F1 2E 00 C8 75 C4 66 5F 7F 2B 66 ED [10:53:57]GetLastDocTimeStamp 1724151164 [10:53:57]current date 1724151240 [10:53:57]FM_GetShiftState [10:53:57]SAM_PROTO_GetShiftState [10:53:57]wFMCommunicate request_size=4 [10:53:57]MH_SAM_APDU [10:53:57]CAPDU: 80 13 01 00 [10:53:57]Write to MH i2c: E2 08 00 F2 2E 80 13 01 00 00 00 00 00 9D [10:53:57]Write i2c OK [10:53:57]MH_I2C_Read... [10:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:57]Read from MH i2c: E2 [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: E2 0E 00 [10:53:57]MH_I2C_Read... [10:53:57]Read from MH i2c: E2 0E 00 F2 2E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2E [10:53:57]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:53:57]wFMCommunicate OK [10:53:57]SAM_PROTO_GetShiftState done [10:53:57]FM_GetShiftState done [10:53:57]opened in 1724113785 [10:53:57]opened+sec_in_day 1724200185 [10:53:57]quantity*price = 60003 [10:53:57]sum+1 = 60004 [10:53:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 118 20.08.2024 10:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139646 ФПД: 237124216967902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105401&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139646&fm=237124216967902&tin=02508201610067®Number=0000000000092569&sum=60000 [10:53:58]StoreToDocumentArchive [10:53:58]shift 453 fd 139646 [10:53:58]save to /storage/0453/doc_00139646 [10:53:58]save last doc name /storage/0453/doc_00139646 to /storage/kkm_last_doc_name [10:53:58]save OK [10:53:58]Clear old archive folders... [10:53:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:58]tlvbuf is 00DDB280 [10:53:58]SAM_PROTO_ClearQueue [10:53:58]wFMCommunicate request_size=4 [10:53:58]MH_SAM_APDU [10:53:58]CAPDU: 80 09 00 00 [10:53:58]Write to MH i2c: E2 08 00 FF 2E 80 09 00 00 00 00 00 00 9F [10:53:58]Write i2c OK [10:53:58]MH_I2C_Read... [10:53:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:58]Read from MH i2c: E2 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 03 00 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 03 00 FF 2E 00 90 00 A1 [10:53:58]RAPDU: 90 00 [10:53:58]wFMCommunicate OK [10:53:58]SAM_PROTO_ClearQueue done [10:53:58]KKMCreateOFDPacket [10:53:58]OFDProtocolAddRootSTLVToBuf [10:53:58]FM_MakeSignedData [10:53:58]FM_MakeSignedData [10:53:58]SAM_PROTO_SignData [10:53:58]wFMCommunicate request_size=4 [10:53:58]MH_SAM_APDU [10:53:58]CAPDU: 80 0D 01 02 [10:53:58]Write to MH i2c: E2 08 00 00 2F 80 0D 01 02 00 00 00 00 A8 [10:53:58]Write i2c OK [10:53:58]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 00 2F 00 90 00 A3 [10:53:59]RAPDU: 90 00 [10:53:59]wFMCommunicate OK [10:53:59]wFMCommunicate request_size=255 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C9 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 21 02 00 35 04 06 00 D7 [10:53:59]Write to MH i2c: E2 02 01 01 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C9 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 21 02 00 35 04 06 00 D7 00 00 14 [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 01 2F 00 90 00 A4 [10:53:59]RAPDU: 90 00 [10:53:59]wFMCommunicate OK [10:53:59]wFMCommunicate request_size=10 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 0D 02 02 05 A9 C8 B8 52 DE [10:53:59]Write to MH i2c: E2 0D 00 02 2F 80 0D 02 02 05 00 A9 C8 B8 52 DE 00 00 0E [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 02 2F 00 90 00 A5 [10:53:59]RAPDU: 90 00 [10:53:59]wFMCommunicate OK [10:53:59]wFMCommunicate request_size=4 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 0D 03 02 [10:53:59]Write to MH i2c: E2 08 00 03 2F 80 0D 03 02 00 00 00 00 AD [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 0B 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 0B 00 03 2F 00 89 61 A0 EA C7 ED 19 CC 90 00 BB [10:53:59]RAPDU: 89 61 A0 EA C7 ED 19 CC 90 00 [10:53:59]wFMCommunicate OK [10:53:59]SAM_PROTO_SignData done [10:53:59]FM_MakeSignedData done [10:53:59]CreateOFDProtocolMessage [10:53:59]wFMCommunicate request_size=4 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 11 00 00 [10:53:59]Write to MH i2c: E2 08 00 04 2F 80 11 00 00 00 00 00 00 AD [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 17 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 17 00 04 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [10:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:53:59]wFMCommunicate OK [10:53:59]CreateOFDProtocolMessage done [10:53:59]OFDSenderStorePacket 139646 [10:53:59]StoreOFDPacket docnum=139646 [10:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E5 BE 07 01 FC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C9 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 21 02 00 35 04 06 00 D7 A9 C8 B8 52 DE 89 61 A0 EA C7 ED 19 CC [10:53:59]CheckFolder [10:53:59]dirname=/storage/ofd_packets [10:53:59]CheckFolder done [10:53:59]ProducePacketName [10:53:59]name=ofd_packets/00139646 [10:53:59]NVStorageSaveData ofd_packets/00139646 [10:53:59]File name is /storage/ofd_packets/00139646 [10:53:59]Write 301 bytes [10:53:59]NVStorageSaveData done [10:53:59]OFDSenderStorePacket done [10:53:59]KKMCreateOFDPacket done [10:53:59]NVStorageSaveData kkm_last_timestamp [10:53:59]File name is /storage/kkm_last_timestamp [10:53:59]Write 4 bytes [10:53:59]NVStorageSaveData done [10:53:59]ExternCall_PrintAddStr [10:53:59]wPrintStart [10:53:59]Write to MH i2c: 01 00 00 05 2F 34 [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: 01 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: 01 07 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: 01 07 00 05 2F 00 00 00 00 00 FF 0F 49 [10:53:59]RasterBufferAndPrint [10:53:59]line Счет N : (1)593492 [10:53:59]line ИНН: 02508201610067 [10:53:59]line Контрольно-Кассовый Чек [10:53:59]line ПРОДАЖА [10:53:59]line ТРК (МРК, ГНК) : 42 [10:53:59]line Товар: 2710124130 [10:53:59]line Аи-92-К-5 [10:53:59]line 8.850 * 67.80 [10:53:59]line = 600.03 [10:53:59]line НДС 12% НСП 1% [10:53:59]line > о реализуемом товаре [10:53:59]line ОКРУГЛЕНИЕ: -0.03 [10:53:59]line ИТОГО: 600.00 [10:53:59]line Внесено: 600.00 [10:53:59]line СДАЧА: 0.00 [10:53:59]line НСП 1% : 5.31 [10:53:59]line НДС 12% : 63.72 [10:53:59]line Наличными: 600.00 [10:53:59]line Безнал.: 0.00 [10:53:59]line Место: АЗС № 136 "Партнер Нефть" [10:53:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:53:59]line СНО: Общий режим [10:53:59]line Чек 118 20.08.2024 10:54 [10:53:59]line Смена: 453 ФФД: 1.0 [10:53:59]line ЗНМ: 0300000067 [10:53:59]line РНМ: 0000000000092569 [10:53:59]line Версия ККМ: 001 [10:53:59]line ФМ: 0000000000871776 [10:53:59]line ФД: 139646 [10:53:59]line ФПД: 237124216967902 [10:53:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T105401&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139646&fm=237124216967902&tin=02508201610067®Number=0000000000092569&sum=60000 [10:53:59]OFD Sender: Processing packet 139646 [packets to send 137, broken 136] [10:53:59]ProducePacketName [10:53:59]name=ofd_packets/00139646 [10:53:59]OFD Sender: To server: pG, [10:53:59]CommunicateWithHost lk.salyk.kg:30040 [10:53:59]ConnectInit lk.salyk.kg [10:53:59]written 0, free lines is 4095 [10:53:59]Connected sock=10 [10:53:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E5 BE 07 01 FC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C9 75 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 21 02 00 35 04 06 00 D7 A9 C8 B8 52 DE 89 61 A0 EA C7 ED 19 CC [10:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3C 20 47 00 46 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 21 02 00 F4 03 04 00 5C 1C C4 66 B6 04 01 00 00 49 68 95 3F E3 F9 A5 5B [10:54:00]CommunicateWithHost err = 0 [10:54:00]CheckOFDResponse [10:54:00]1017 (14) - 77093643461234 [10:54:00]1041 (16) - 0000000000871776 [10:54:00]1040 (4) - 139646 [10:54:00]1012 (4) - 20.08.2024 04:32 [10:54:00]1206 (1) - 0 [10:54:00]OFD Sender: Remove packet 139646 [10:54:00]ProducePacketName [10:54:00]name=ofd_packets/00139646 [10:54:00]NVStorageDeleteData [10:54:00]Write to MH i2c: 01 00 00 30 2F 5F [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: 01 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: 01 07 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: 01 07 00 30 2F 00 00 00 00 00 CF 0C 41 [10:54:00]RasterBufferAndPrint [10:54:00]line [10:54:00]line [10:54:00]line [10:54:00]line [10:54:00]line [10:54:00]written 0, free lines is 3285 [10:54:00]MH_Cut [10:54:00]Write to MH i2c: D1 01 00 37 2F 01 38 [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: D1 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: D1 01 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: D1 01 00 37 2F 00 37 [10:54:00]Write to MH i2c: 01 00 00 38 2F 67 [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]OFD Sender: No OFD packet to send [10:54:01]*** Cut start [10:54:01]*** Partial cut [10:54:01]*** CUTSNS_PIN = 1 [10:54:01]*** CUTSNS_PIN = 0 [10:54:01]*** Brake cut motor [10:54:01]Read from MH i2c: 01 [10:54:01]MH_I2C_Read... [10:54:01]*** Stop cut motor [10:54:01]*** Cut end [10:54:01]Read from MH i2c: 01 07 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 07 00 38 2F 00 00 00 00 00 FF 0F 7C [10:54:01]process_action close_receipt done [10:54:01]requested_data is exist [10:54:01]produce_requested_data [10:54:01]requested_item fm.sn is exist - process it [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 11 00 00 [10:54:01]Write to MH i2c: E2 08 00 39 2F 80 11 00 00 00 00 00 00 E2 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 17 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 17 00 39 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [10:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:54:01]wFMCommunicate OK [10:54:01]requested_item fd.num is exist - process it [10:54:01]SAM_PROTO_GetFieldsCounters [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 13 00 00 [10:54:01]Write to MH i2c: E2 08 00 3A 2F 80 13 00 00 00 00 00 00 E5 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 62 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 62 00 3A 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [10:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:01]wFMCommunicate OK [10:54:01]SAM_PROTO_GetFieldsCounters done [10:54:01]requested_item shift.num is exist - process it [10:54:01]requested_item shift.opened is exist - process it [10:54:01]req_shift_opened [10:54:01]FM_GetShiftState [10:54:01]SAM_PROTO_GetShiftState [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 13 01 00 [10:54:01]Write to MH i2c: E2 08 00 3B 2F 80 13 01 00 00 00 00 00 E7 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0E 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0E 00 3B 2F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 78 [10:54:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [10:54:01]wFMCommunicate OK [10:54:01]SAM_PROTO_GetShiftState done [10:54:01]FM_GetShiftState done [10:54:01]req_shift_opened done [10:54:01]requested_item shift.open_date is exist - process it [10:54:01]req_shift_open_date [10:54:01]req_shift_open_date done [10:54:01]produce_requested_data done [10:54:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139646,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [10:54:01]process_action_free close_receipt [10:54:01]json_value_free [10:54:01]json_value_free done [10:54:01]process_json_proto returns [10:54:01]Send response to host [10:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139646,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [10:54:01]free response buf [10:54:01]execute_script done [10:54:01]execute_script returns [10:54:01]free content buf [10:54:01]Sock 9.Close socket [10:54:01]Sock 9.Thread stoped [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:55]accept exits with 7 [11:01:55]New connection [11:01:55]New thread 3067071844 created [11:01:55]Thread 3067215204 joined [11:01:55]Waiting for new connection... [11:01:55] Sock 7.Parse request [11:01:55]Sock 7.Check first char [11:01:55]Sock 7.First char is OK [11:01:55]request: POST /json_proto HTTP/1.0 [11:01:55]Method: POST [11:01:55]URL: /json_proto [11:01:55]Method is POST - this is cgi request [11:01:55]url: /json_proto [11:01:55]query_string will be loaded in cgi processing [11:01:55]execute_cgi json_proto POST (null) [11:01:55]execute_cgi path=json_proto method=POST [11:01:55]POST find Content-Length [11:01:55]Host: 172.17.45.67:8080 [11:01:55]Content-Length: 682 [11:01:55]Content-Type: application/json [11:01:55] [11:01:55]POST finish read [11:01:55]Found Content-Length = 682 [11:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:55]execute_script... [11:01: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)593493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:55]POST & json_proto [11:01:55]process_json_proto [11:01:55]json parsed OK: [11:01:55]protocol is kg_v1.0 [11:01:55]action value=close_receipt [11:01:55]process_action close_receipt [11:01:55]cmd_close_receipt [11:01:55]MH_GetDate [11:01:55]Write to MH i2c: F0 00 00 3C 2F 5A [11:01:55]Write i2c OK [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: F0 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: F0 09 00 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: F0 09 00 3C 2F 00 A6 77 C4 66 5F 7F 2B 66 19 [11:01:55]GetLastDocTimeStamp 1724151241 [11:01:55]current date 1724151718 [11:01:55]FM_GetShiftState [11:01:55]SAM_PROTO_GetShiftState [11:01:55]wFMCommunicate request_size=4 [11:01:55]MH_SAM_APDU [11:01:55]CAPDU: 80 13 01 00 [11:01:55]Write to MH i2c: E2 08 00 3D 2F 80 13 01 00 00 00 00 00 E9 [11:01:55]Write i2c OK [11:01:55]MH_I2C_Read... [11:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:55]Read from MH i2c: E2 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: E2 0E 00 [11:01:55]MH_I2C_Read... [11:01:55]Read from MH i2c: E2 0E 00 3D 2F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7A [11:01:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:01:55]wFMCommunicate OK [11:01:55]SAM_PROTO_GetShiftState done [11:01:55]FM_GetShiftState done [11:01:55]opened in 1724113785 [11:01:55]opened+sec_in_day 1724200185 [11:01:55]quantity*price = 30022 [11:01:55]sum+1 = 30024 [11:01:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 119 20.08.2024 11:01 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139647 ФПД: 136297548097208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T110158&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139647&fm=136297548097208&tin=02508201610067®Number=0000000000092569&sum=30000 [11:01:56]StoreToDocumentArchive [11:01:56]shift 453 fd 139647 [11:01:56]save to /storage/0453/doc_00139647 [11:01:56]save last doc name /storage/0453/doc_00139647 to /storage/kkm_last_doc_name [11:01:56]save OK [11:01:56]Clear old archive folders... [11:01:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:01:56]tlvbuf is 00D824D0 [11:01:56]SAM_PROTO_ClearQueue [11:01:56]wFMCommunicate request_size=4 [11:01:56]MH_SAM_APDU [11:01:56]CAPDU: 80 09 00 00 [11:01:56]Write to MH i2c: E2 08 00 4A 2F 80 09 00 00 00 00 00 00 EB [11:01:56]Write i2c OK [11:01:56]MH_I2C_Read... [11:01:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:56]Read from MH i2c: E2 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 03 00 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 03 00 4A 2F 00 90 00 ED [11:01:56]RAPDU: 90 00 [11:01:56]wFMCommunicate OK [11:01:56]SAM_PROTO_ClearQueue done [11:01:56]KKMCreateOFDPacket [11:01:56]OFDProtocolAddRootSTLVToBuf [11:01:56]FM_MakeSignedData [11:01:56]FM_MakeSignedData [11:01:56]SAM_PROTO_SignData [11:01:56]wFMCommunicate request_size=4 [11:01:56]MH_SAM_APDU [11:01:56]CAPDU: 80 0D 01 02 [11:01:56]Write to MH i2c: E2 08 00 4B 2F 80 0D 01 02 00 00 00 00 F3 [11:01:56]Write i2c OK [11:01:56]MH_I2C_Read... [11:01:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:56]Read from MH i2c: E2 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 03 00 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 03 00 4B 2F 00 90 00 EE [11:01:56]RAPDU: 90 00 [11:01:56]wFMCommunicate OK [11:01:56]wFMCommunicate request_size=255 [11:01:56]MH_SAM_APDU [11:01:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 77 00 00 00 F4 03 04 00 A6 77 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 21 02 00 35 04 06 00 [11:01:56]Write to MH i2c: E2 02 01 4C 2F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 77 00 00 00 F4 03 04 00 A6 77 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 21 02 00 35 04 06 00 00 00 4D [11:01:56]Write i2c OK [11:01:56]MH_I2C_Read... [11:01:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:56]Read from MH i2c: E2 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 03 00 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 03 00 4C 2F 00 90 00 EF [11:01:56]RAPDU: 90 00 [11:01:56]wFMCommunicate OK [11:01:56]wFMCommunicate request_size=11 [11:01:56]MH_SAM_APDU [11:01:56]CAPDU: 80 0D 02 02 06 7B F6 3E F0 26 B8 [11:01:56]Write to MH i2c: E2 0E 00 4D 2F 80 0D 02 02 06 00 7B F6 3E F0 26 B8 00 00 7F [11:01:56]Write i2c OK [11:01:56]MH_I2C_Read... [11:01:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:56]Read from MH i2c: E2 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 03 00 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 03 00 4D 2F 00 90 00 F0 [11:01:56]RAPDU: 90 00 [11:01:56]wFMCommunicate OK [11:01:56]wFMCommunicate request_size=4 [11:01:56]MH_SAM_APDU [11:01:56]CAPDU: 80 0D 03 02 [11:01:56]Write to MH i2c: E2 08 00 4E 2F 80 0D 03 02 00 00 00 00 F8 [11:01:56]Write i2c OK [11:01:56]MH_I2C_Read... [11:01:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:56]Read from MH i2c: E2 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 0B 00 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 0B 00 4E 2F 00 34 02 25 03 6F 24 A4 6A 90 00 F8 [11:01:56]RAPDU: 34 02 25 03 6F 24 A4 6A 90 00 [11:01:56]wFMCommunicate OK [11:01:56]SAM_PROTO_SignData done [11:01:56]FM_MakeSignedData done [11:01:56]CreateOFDProtocolMessage [11:01:56]wFMCommunicate request_size=4 [11:01:56]MH_SAM_APDU [11:01:56]CAPDU: 80 11 00 00 [11:01:56]Write to MH i2c: E2 08 00 4F 2F 80 11 00 00 00 00 00 00 F8 [11:01:56]Write i2c OK [11:01:56]MH_I2C_Read... [11:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:56]Read from MH i2c: E2 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 17 00 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 17 00 4F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [11:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:01:56]wFMCommunicate OK [11:01:56]CreateOFDProtocolMessage done [11:01:56]OFDSenderStorePacket 139647 [11:01:56]StoreOFDPacket docnum=139647 [11:01:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 8C 1F 08 01 D5 35 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 77 00 00 00 F4 03 04 00 A6 77 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 21 02 00 35 04 06 00 7B F6 3E F0 26 B8 34 02 25 03 6F 24 A4 6A [11:01:56]CheckFolder [11:01:56]dirname=/storage/ofd_packets [11:01:56]CheckFolder done [11:01:56]ProducePacketName [11:01:56]name=ofd_packets/00139647 [11:01:56]NVStorageSaveData ofd_packets/00139647 [11:01:56]File name is /storage/ofd_packets/00139647 [11:01:56]Write 302 bytes [11:01:56]NVStorageSaveData done [11:01:56]OFDSenderStorePacket done [11:01:56]KKMCreateOFDPacket done [11:01:56]NVStorageSaveData kkm_last_timestamp [11:01:56]File name is /storage/kkm_last_timestamp [11:01:56]Write 4 bytes [11:01:56]NVStorageSaveData done [11:01:56]OFD Sender: Processing packet 139647 [packets to send 137, broken 136] [11:01:56]ProducePacketName [11:01:56]name=ofd_packets/00139647 [11:01:56]OFD Sender: To server: pG, [11:01:56]CommunicateWithHost lk.salyk.kg:30040 [11:01:56]ConnectInit lk.salyk.kg [11:01:56]ExternCall_PrintAddStr [11:01:56]wPrintStart [11:01:56]Write to MH i2c: 01 00 00 50 2F 7F [11:01:56]Write i2c OK [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: 01 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: 01 07 00 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: 01 07 00 50 2F 00 00 00 00 00 FF 0F 94 [11:01:56]RasterBufferAndPrint [11:01:56]line Счет N : (1)593493 [11:01:56]line ИНН: 02508201610067 [11:01:56]line Контрольно-Кассовый Чек [11:01:56]line ПРОДАЖА [11:01:56]line ТРК (МРК, ГНК) : 54 [11:01:56]line Товар: 2710194210 [11:01:56]line ДТ(л)-К-5 [11:01:56]line 3.940 * 76.20 [11:01:56]line = 300.23 [11:01:56]line НДС 12% НСП 1% [11:01:56]line > о реализуемом товаре [11:01:56]line ОКРУГЛЕНИЕ: -0.23 [11:01:56]line ИТОГО: 300.00 [11:01:56]line Внесено: 300.00 [11:01:56]line СДАЧА: 0.00 [11:01:56]line НСП 1% : 2.66 [11:01:56]line НДС 12% : 31.88 [11:01:56]line Наличными: 300.00 [11:01:56]line Безнал.: 0.00 [11:01:56]line Место: АЗС № 136 "Партнер Нефть" [11:01:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:01:56]line СНО: Общий режим [11:01:56]line Чек 119 20.08.2024 11:01 [11:01:56]line Смена: 453 ФФД: 1.0 [11:01:56]line ЗНМ: 0300000067 [11:01:56]line РНМ: 0000000000092569 [11:01:56]line Версия ККМ: 001 [11:01:56]line ФМ: 0000000000871776 [11:01:56]line ФД: 139647 [11:01:56]line ФПД: 136297548097208 [11:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T110158&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139647&fm=136297548097208&tin=02508201610067®Number=0000000000092569&sum=30000 [11:01:57]Connected sock=11 [11:01:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 8C 1F 08 01 D5 35 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 77 00 00 00 F4 03 04 00 A6 77 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 21 02 00 35 04 06 00 7B F6 3E F0 26 B8 34 02 25 03 6F 24 A4 6A [11:01:57]written 0, free lines is 4095 [11:01:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 94 0C 47 00 CD 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 21 02 00 F4 03 04 00 39 1E C4 66 B6 04 01 00 00 A7 C5 B8 3B 4A 6D BC 34 [11:01:57]CommunicateWithHost err = 0 [11:01:57]CheckOFDResponse [11:01:57]1017 (14) - 77093643461234 [11:01:57]1041 (16) - 0000000000871776 [11:01:57]1040 (4) - 139647 [11:01:57]1012 (4) - 20.08.2024 04:40 [11:01:57]1206 (1) - 0 [11:01:57]OFD Sender: Remove packet 139647 [11:01:57]ProducePacketName [11:01:57]name=ofd_packets/00139647 [11:01:57]NVStorageDeleteData [11:01:57]Write to MH i2c: 01 00 00 7B 2F AA [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 07 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 07 00 7B 2F 00 00 00 00 00 C2 0C 7F [11:01:57]RasterBufferAndPrint [11:01:57]line [11:01:57]line [11:01:57]line [11:01:57]line [11:01:57]line [11:01:57]written 0, free lines is 3275 [11:01:57]MH_Cut [11:01:57]Write to MH i2c: D1 01 00 82 2F 01 83 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: D1 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: D1 01 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: D1 01 00 82 2F 00 82 [11:01:57]Write to MH i2c: 01 00 00 83 2F B2 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:58]OFD Sender: No OFD packet to send [11:01:58]*** Cut start [11:01:58]*** Partial cut [11:01:58]*** CUTSNS_PIN = 1 [11:01:58]*** CUTSNS_PIN = 0 [11:01:58]*** Brake cut motor [11:01:59]Read from MH i2c: 01 [11:01:59]MH_I2C_Read... [11:01:59]*** Stop cut motor [11:01:59]*** Cut end [11:01:59]Read from MH i2c: 01 07 00 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: 01 07 00 83 2F 00 00 00 00 00 FF 0F C7 [11:01:59]process_action close_receipt done [11:01:59]requested_data is exist [11:01:59]produce_requested_data [11:01:59]requested_item fm.sn is exist - process it [11:01:59]wFMCommunicate request_size=4 [11:01:59]MH_SAM_APDU [11:01:59]CAPDU: 80 11 00 00 [11:01:59]Write to MH i2c: E2 08 00 84 2F 80 11 00 00 00 00 00 00 2D [11:01:59]Write i2c OK [11:01:59]MH_I2C_Read... [11:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:59]Read from MH i2c: E2 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 17 00 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 17 00 84 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [11:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:01:59]wFMCommunicate OK [11:01:59]requested_item fd.num is exist - process it [11:01:59]SAM_PROTO_GetFieldsCounters [11:01:59]wFMCommunicate request_size=4 [11:01:59]MH_SAM_APDU [11:01:59]CAPDU: 80 13 00 00 [11:01:59]Write to MH i2c: E2 08 00 85 2F 80 13 00 00 00 00 00 00 30 [11:01:59]Write i2c OK [11:01:59]MH_I2C_Read... [11:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:59]Read from MH i2c: E2 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 62 00 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 62 00 85 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [11:01:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:59]wFMCommunicate OK [11:01:59]SAM_PROTO_GetFieldsCounters done [11:01:59]requested_item shift.num is exist - process it [11:01:59]requested_item shift.opened is exist - process it [11:01:59]req_shift_opened [11:01:59]FM_GetShiftState [11:01:59]SAM_PROTO_GetShiftState [11:01:59]wFMCommunicate request_size=4 [11:01:59]MH_SAM_APDU [11:01:59]CAPDU: 80 13 01 00 [11:01:59]Write to MH i2c: E2 08 00 86 2F 80 13 01 00 00 00 00 00 32 [11:01:59]Write i2c OK [11:01:59]MH_I2C_Read... [11:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:59]Read from MH i2c: E2 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 0E 00 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 0E 00 86 2F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C3 [11:01:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:01:59]wFMCommunicate OK [11:01:59]SAM_PROTO_GetShiftState done [11:01:59]FM_GetShiftState done [11:01:59]req_shift_opened done [11:01:59]requested_item shift.open_date is exist - process it [11:01:59]req_shift_open_date [11:01:59]req_shift_open_date done [11:01:59]produce_requested_data done [11:01:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139647,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:01:59]process_action_free close_receipt [11:01:59]json_value_free [11:01:59]json_value_free done [11:01:59]process_json_proto returns [11:01:59]Send response to host [11:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139647,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:01:59]free response buf [11:01:59]execute_script done [11:01:59]execute_script returns [11:01:59]free content buf [11:01:59]Sock 7.Close socket [11:01:59]Sock 7.Thread stoped [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:35]int [11:03:35]Write to MH i2c: 01 00 00 87 2F B6 [11:03:35]*** FLAG_PRN_KEY set [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 87 2F 00 08 00 00 00 FF 0F D3 [11:03:35]state=0 [11:03:35]Key pressed [11:03:35]Feed [11:03:35]Write to MH i2c: D8 00 00 88 2F 8E [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: D8 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: D8 01 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: D8 01 00 88 2F 00 8F [11:03:35]int [11:03:35]Write to MH i2c: 01 00 00 89 2F B8 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 89 2F 00 48 00 00 00 3C 00 43 [11:03:35]state=2 [11:03:35]Key pressed [11:03:35]int [11:03:35]Write to MH i2c: 01 00 00 8A 2F B9 [11:03:35]*** FLAG_PRN_KEY reset [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 8A 2F 00 00 00 00 00 F5 0F C4 [11:03:35]state=2 [11:03:35]Stop feed [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]accept exits with 9 [11:04:13]New connection [11:04:13]New thread 3067215204 created [11:04:13]Thread 3067071844 joined [11:04:13]Waiting for new connection... [11:04:13] Sock 9.Parse request [11:04:13]Sock 9.Check first char [11:04:13]Sock 9.First char is OK [11:04:13]request: POST /json_proto HTTP/1.0 [11:04:13]Method: POST [11:04:13]URL: /json_proto [11:04:13]Method is POST - this is cgi request [11:04:13]url: /json_proto [11:04:13]query_string will be loaded in cgi processing [11:04:13]execute_cgi json_proto POST (null) [11:04:13]execute_cgi path=json_proto method=POST [11:04:13]POST find Content-Length [11:04:13]Host: 172.17.45.67:8080 [11:04:13]Content-Length: 759 [11:04:13]Content-Type: application/json [11:04:13] [11:04:13]POST finish read [11:04:13]Found Content-Length = 759 [11:04:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:13]execute_script... [11:04: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)593494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:13]POST & json_proto [11:04:13]process_json_proto [11:04:13]json parsed OK: [11:04:13]protocol is kg_v1.0 [11:04:13]action value=close_receipt [11:04:13]process_action close_receipt [11:04:13]cmd_close_receipt [11:04:13]MH_GetDate [11:04:13]Write to MH i2c: F0 00 00 8B 2F A9 [11:04:13]Write i2c OK [11:04:13]MH_I2C_Read... [11:04:13]Read from MH i2c: F0 [11:04:13]MH_I2C_Read... [11:04:13]Read from MH i2c: F0 09 00 [11:04:13]MH_I2C_Read... [11:04:13]Read from MH i2c: F0 09 00 8B 2F 00 30 78 C4 66 5F 7F 2B 66 F3 [11:04:13]GetLastDocTimeStamp 1724151718 [11:04:13]current date 1724151856 [11:04:13]FM_GetShiftState [11:04:13]SAM_PROTO_GetShiftState [11:04:13]wFMCommunicate request_size=4 [11:04:13]MH_SAM_APDU [11:04:13]CAPDU: 80 13 01 00 [11:04:13]Write to MH i2c: E2 08 00 8C 2F 80 13 01 00 00 00 00 00 38 [11:04:13]OFD Sender: No OFD packet to send [11:04:13]Write i2c OK [11:04:13]MH_I2C_Read... [11:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:13]Read from MH i2c: E2 [11:04:13]MH_I2C_Read... [11:04:13]Read from MH i2c: E2 0E 00 [11:04:13]MH_I2C_Read... [11:04:13]Read from MH i2c: E2 0E 00 8C 2F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C9 [11:04:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:04:13]wFMCommunicate OK [11:04:13]SAM_PROTO_GetShiftState done [11:04:13]FM_GetShiftState done [11:04:13]opened in 1724113785 [11:04:13]opened+sec_in_day 1724200185 [11:04:13]quantity*price = 0 [11:04:13]sum+1 = 1 [11:04:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 120 20.08.2024 11:04 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104832 ФМ: 0000000000871776 ФД: 139648 ФПД: 263454277377191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T110416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139648&fm=263454277377191&tin=02508201610067®Number=0000000000092569&sum=0 [11:04:14]StoreToDocumentArchive [11:04:14]shift 453 fd 139648 [11:04:14]save to /storage/0453/doc_00139648 [11:04:14]save last doc name /storage/0453/doc_00139648 to /storage/kkm_last_doc_name [11:04:14]save OK [11:04:14]Clear old archive folders... [11:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:04:14]tlvbuf is 00D24590 [11:04:14]SAM_PROTO_ClearQueue [11:04:14]wFMCommunicate request_size=4 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 09 00 00 [11:04:14]Write to MH i2c: E2 08 00 99 2F 80 09 00 00 00 00 00 00 3A [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 99 2F 00 90 00 3C [11:04:14]RAPDU: 90 00 [11:04:14]wFMCommunicate OK [11:04:14]SAM_PROTO_ClearQueue done [11:04:14]KKMCreateOFDPacket [11:04:14]OFDProtocolAddRootSTLVToBuf [11:04:14]FM_MakeSignedData [11:04:14]FM_MakeSignedData [11:04:14]SAM_PROTO_SignData [11:04:14]wFMCommunicate request_size=4 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 0D 01 02 [11:04:14]Write to MH i2c: E2 08 00 9A 2F 80 0D 01 02 00 00 00 00 42 [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 9A 2F 00 90 00 3D [11:04:14]RAPDU: 90 00 [11:04:14]wFMCommunicate OK [11:04:14]wFMCommunicate request_size=255 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 30 78 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 21 02 00 35 04 06 00 [11:04:14]Write to MH i2c: E2 02 01 9B 2F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 30 78 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 21 02 00 35 04 06 00 00 00 8E [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 9B 2F 00 90 00 3E [11:04:14]RAPDU: 90 00 [11:04:14]wFMCommunicate OK [11:04:14]wFMCommunicate request_size=11 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 0D 02 02 06 EF 9C 3A 9E 1C A7 [11:04:14]Write to MH i2c: E2 0E 00 9C 2F 80 0D 02 02 06 00 EF 9C 3A 9E 1C A7 00 00 77 [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 03 00 9C 2F 00 90 00 3F [11:04:14]RAPDU: 90 00 [11:04:14]wFMCommunicate OK [11:04:14]wFMCommunicate request_size=4 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 0D 03 02 [11:04:14]Write to MH i2c: E2 08 00 9D 2F 80 0D 03 02 00 00 00 00 47 [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 0B 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 0B 00 9D 2F 00 54 A6 F1 F2 09 18 1A 20 90 00 80 [11:04:14]RAPDU: 54 A6 F1 F2 09 18 1A 20 90 00 [11:04:14]wFMCommunicate OK [11:04:14]SAM_PROTO_SignData done [11:04:14]FM_MakeSignedData done [11:04:14]CreateOFDProtocolMessage [11:04:14]wFMCommunicate request_size=4 [11:04:14]MH_SAM_APDU [11:04:14]CAPDU: 80 11 00 00 [11:04:14]Write to MH i2c: E2 08 00 9E 2F 80 11 00 00 00 00 00 00 47 [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:14]Read from MH i2c: E2 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 17 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: E2 17 00 9E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [11:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:04:14]wFMCommunicate OK [11:04:14]CreateOFDProtocolMessage done [11:04:14]OFDSenderStorePacket 139648 [11:04:14]StoreOFDPacket docnum=139648 [11:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 4F 76 08 01 52 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 30 78 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 21 02 00 35 04 06 00 EF 9C 3A 9E 1C A7 54 A6 F1 F2 09 18 1A 20 [11:04:14]CheckFolder [11:04:14]dirname=/storage/ofd_packets [11:04:14]CheckFolder done [11:04:14]ProducePacketName [11:04:14]name=ofd_packets/00139648 [11:04:14]NVStorageSaveData ofd_packets/00139648 [11:04:14]File name is /storage/ofd_packets/00139648 [11:04:14]Write 302 bytes [11:04:14]NVStorageSaveData done [11:04:14]OFDSenderStorePacket done [11:04:14]KKMCreateOFDPacket done [11:04:14]NVStorageSaveData kkm_last_timestamp [11:04:14]File name is /storage/kkm_last_timestamp [11:04:14]Write 4 bytes [11:04:14]NVStorageSaveData done [11:04:14]ExternCall_PrintAddStr [11:04:14]wPrintStart [11:04:14]Write to MH i2c: 01 00 00 9F 2F CE [11:04:14]Write i2c OK [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: 01 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: 01 07 00 [11:04:14]MH_I2C_Read... [11:04:14]Read from MH i2c: 01 07 00 9F 2F 00 00 00 00 00 FF 0F E3 [11:04:14]RasterBufferAndPrint [11:04:14]line Счет N : (1)593494 [11:04:14]line ИНН: 02508201610067 [11:04:14]line Контрольно-Кассовый Чек [11:04:14]line ПРОДАЖА [11:04:14]line ТРК (МРК, ГНК) : 21 [11:04:14]line Товар: 2710194210 [11:04:14]line ДТ(л)-К-5 [11:04:14]line 60.000 * 0.00 [11:04:14]line = 0.00 [11:04:14]line НДС 12% НСП 1% [11:04:14]line > о реализуемом товаре [11:04:14]line ИТОГО: 0.00 [11:04:14]line НСП 1% : 0.00 [11:04:14]line НДС 12% : 0.00 [11:04:14]line Наличными: 0.00 [11:04:14]line Безнал.: 0.00 [11:04:14]line Место: АЗС № 136 "Партнер Нефть" [11:04:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:04:14]line СНО: Общий режим [11:04:14]line Чек 120 20.08.2024 11:04 [11:04:14]line Смена: 453 ФФД: 1.0 [11:04:14]line ЗНМ: 0300000067 [11:04:14]line РНМ: 0000000000092569 [11:04:14]line Версия ККМ: 001 [11:04:14]line Талоны: ТК ГПНА Online [11:04:14]line 30104832 [11:04:14]line ФМ: 0000000000871776 [11:04:14]line ФД: 139648 [11:04:14]line ФПД: 263454277377191 [11:04:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T110416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139648&fm=263454277377191&tin=02508201610067®Number=0000000000092569&sum=0 [11:04:15]OFD Sender: Processing packet 139648 [packets to send 137, broken 136] [11:04:15]ProducePacketName [11:04:15]name=ofd_packets/00139648 [11:04:15]OFD Sender: To server: pG, [11:04:15]CommunicateWithHost lk.salyk.kg:30040 [11:04:15]ConnectInit lk.salyk.kg [11:04:15]written 0, free lines is 4095 [11:04:15]Connected sock=7 [11:04:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 4F 76 08 01 52 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 30 78 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 21 02 00 35 04 06 00 EF 9C 3A 9E 1C A7 54 A6 F1 F2 09 18 1A 20 [11:04:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B8 A4 47 00 AC 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 21 02 00 F4 03 04 00 C3 1E C4 66 B6 04 01 00 00 17 E1 1B 1A D8 79 FD DA [11:04:15]CommunicateWithHost err = 0 [11:04:15]CheckOFDResponse [11:04:15]1017 (14) - 77093643461234 [11:04:15]1041 (16) - 0000000000871776 [11:04:15]1040 (4) - 139648 [11:04:15]1012 (4) - 20.08.2024 04:42 [11:04:15]1206 (1) - 0 [11:04:15]OFD Sender: Remove packet 139648 [11:04:15]ProducePacketName [11:04:15]name=ofd_packets/00139648 [11:04:15]NVStorageDeleteData [11:04:15]Write to MH i2c: 01 00 00 C9 2F F8 [11:04:15]Write i2c OK [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: 01 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: 01 07 00 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: 01 07 00 C9 2F 00 00 00 00 00 D3 0C DE [11:04:15]RasterBufferAndPrint [11:04:15]line [11:04:15]line [11:04:15]line [11:04:15]line [11:04:15]line [11:04:15]written 0, free lines is 3289 [11:04:15]MH_Cut [11:04:15]Write to MH i2c: D1 01 00 D0 2F 01 D1 [11:04:15]Write i2c OK [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: D1 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: D1 01 00 [11:04:15]MH_I2C_Read... [11:04:15]Read from MH i2c: D1 01 00 D0 2F 00 D0 [11:04:15]Write to MH i2c: 01 00 00 D1 2F 00 [11:04:15]Write i2c OK [11:04:15]MH_I2C_Read... [11:04:16]OFD Sender: No OFD packet to send [11:04:16]*** Cut start [11:04:16]*** Partial cut [11:04:16]*** CUTSNS_PIN = 1 [11:04:16]*** CUTSNS_PIN = 0 [11:04:16]*** Brake cut motor [11:04:16]Read from MH i2c: 01 [11:04:17]MH_I2C_Read... [11:04:17]*** Stop cut motor [11:04:17]*** Cut end [11:04:17]Read from MH i2c: 01 07 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: 01 07 00 D1 2F 00 00 00 00 00 FF 0F 15 [11:04:17]process_action close_receipt done [11:04:17]requested_data is exist [11:04:17]produce_requested_data [11:04:17]requested_item fm.sn is exist - process it [11:04:17]wFMCommunicate request_size=4 [11:04:17]MH_SAM_APDU [11:04:17]CAPDU: 80 11 00 00 [11:04:17]Write to MH i2c: E2 08 00 D2 2F 80 11 00 00 00 00 00 00 7B [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:17]Read from MH i2c: E2 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 17 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 17 00 D2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [11:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:04:17]wFMCommunicate OK [11:04:17]requested_item fd.num is exist - process it [11:04:17]SAM_PROTO_GetFieldsCounters [11:04:17]wFMCommunicate request_size=4 [11:04:17]MH_SAM_APDU [11:04:17]CAPDU: 80 13 00 00 [11:04:17]Write to MH i2c: E2 08 00 D3 2F 80 13 00 00 00 00 00 00 7E [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:17]Read from MH i2c: E2 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 62 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 62 00 D3 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:04:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:17]wFMCommunicate OK [11:04:17]SAM_PROTO_GetFieldsCounters done [11:04:17]requested_item shift.num is exist - process it [11:04:17]requested_item shift.opened is exist - process it [11:04:17]req_shift_opened [11:04:17]FM_GetShiftState [11:04:17]SAM_PROTO_GetShiftState [11:04:17]wFMCommunicate request_size=4 [11:04:17]MH_SAM_APDU [11:04:17]CAPDU: 80 13 01 00 [11:04:17]Write to MH i2c: E2 08 00 D4 2F 80 13 01 00 00 00 00 00 80 [11:04:17]Write i2c OK [11:04:17]MH_I2C_Read... [11:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:17]Read from MH i2c: E2 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 0E 00 [11:04:17]MH_I2C_Read... [11:04:17]Read from MH i2c: E2 0E 00 D4 2F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 11 [11:04:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:04:17]wFMCommunicate OK [11:04:17]SAM_PROTO_GetShiftState done [11:04:17]FM_GetShiftState done [11:04:17]req_shift_opened done [11:04:17]requested_item shift.open_date is exist - process it [11:04:17]req_shift_open_date [11:04:17]req_shift_open_date done [11:04:17]produce_requested_data done [11:04:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139648,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:04:17]process_action_free close_receipt [11:04:17]json_value_free [11:04:17]json_value_free done [11:04:17]process_json_proto returns [11:04:17]Send response to host [11:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139648,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:04:17]free response buf [11:04:17]execute_script done [11:04:17]execute_script returns [11:04:17]free content buf [11:04:17]Sock 9.Close socket [11:04:17]Sock 9.Thread stoped [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:42]accept exits with 10 [11:05:42]New connection [11:05:42]New thread 3067071844 created [11:05:42]Thread 3067215204 joined [11:05:42]Waiting for new connection... [11:05:42] Sock 10.Parse request [11:05:42]Sock 10.Check first char [11:05:42]Sock 10.First char is OK [11:05:42]request: POST /json_proto HTTP/1.0 [11:05:42]Method: POST [11:05:42]URL: /json_proto [11:05:42]Method is POST - this is cgi request [11:05:42]url: /json_proto [11:05:42]query_string will be loaded in cgi processing [11:05:42]execute_cgi json_proto POST (null) [11:05:42]execute_cgi path=json_proto method=POST [11:05:42]POST find Content-Length [11:05:42]Host: 172.17.45.67:8080 [11:05:42]Content-Length: 834 [11:05:42]Content-Type: application/json [11:05:42] [11:05:42]POST finish read [11:05:42]Found Content-Length = 834 [11:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:42]execute_script... [11:05:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:42]POST & json_proto [11:05:42]process_json_proto [11:05:42]json parsed OK: [11:05:42]protocol is kg_v1.0 [11:05:42]action value=close_receipt [11:05:42]process_action close_receipt [11:05:42]cmd_close_receipt [11:05:42]MH_GetDate [11:05:42]Write to MH i2c: F0 00 00 D5 2F F3 [11:05:42]Write i2c OK [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: F0 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: F0 09 00 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: F0 09 00 D5 2F 00 8A 78 C4 66 5F 7F 2B 66 97 [11:05:42]GetLastDocTimeStamp 1724151856 [11:05:42]current date 1724151946 [11:05:42]FM_GetShiftState [11:05:42]SAM_PROTO_GetShiftState [11:05:42]wFMCommunicate request_size=4 [11:05:42]MH_SAM_APDU [11:05:42]CAPDU: 80 13 01 00 [11:05:42]Write to MH i2c: E2 08 00 D6 2F 80 13 01 00 00 00 00 00 82 [11:05:42]Write i2c OK [11:05:42]MH_I2C_Read... [11:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:42]Read from MH i2c: E2 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: E2 0E 00 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: E2 0E 00 D6 2F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 13 [11:05:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:05:42]wFMCommunicate OK [11:05:42]SAM_PROTO_GetShiftState done [11:05:42]FM_GetShiftState done [11:05:42]opened in 1724113785 [11:05:42]opened+sec_in_day 1724200185 [11:05:42]quantity*price = 50036 [11:05:42]sum+1 = 50037 [11:05:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 121 20.08.2024 11:05 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139649 ФПД: 107368869752799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T110546&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139649&fm=107368869752799&tin=02508201610067®Number=0000000000092569&sum=50000 [11:05:44]StoreToDocumentArchive [11:05:44]shift 453 fd 139649 [11:05:44]save to /storage/0453/doc_00139649 [11:05:44]save last doc name /storage/0453/doc_00139649 to /storage/kkm_last_doc_name [11:05:44]save OK [11:05:44]Clear old archive folders... [11:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:44]tlvbuf is B6F984F0 [11:05:44]SAM_PROTO_ClearQueue [11:05:44]wFMCommunicate request_size=4 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 09 00 00 [11:05:44]Write to MH i2c: E2 08 00 E3 2F 80 09 00 00 00 00 00 00 84 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 E3 2F 00 90 00 86 [11:05:44]RAPDU: 90 00 [11:05:44]wFMCommunicate OK [11:05:44]SAM_PROTO_ClearQueue done [11:05:44]KKMCreateOFDPacket [11:05:44]OFDProtocolAddRootSTLVToBuf [11:05:44]FM_MakeSignedData [11:05:44]FM_MakeSignedData [11:05:44]SAM_PROTO_SignData [11:05:44]wFMCommunicate request_size=4 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 0D 01 02 [11:05:44]Write to MH i2c: E2 08 00 E4 2F 80 0D 01 02 00 00 00 00 8C [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 E4 2F 00 90 00 87 [11:05:44]RAPDU: 90 00 [11:05:44]wFMCommunicate OK [11:05:44]wFMCommunicate request_size=255 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8A 78 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 21 02 00 35 04 06 00 61 [11:05:44]Write to MH i2c: E2 02 01 E5 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8A 78 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 21 02 00 35 04 06 00 61 00 00 85 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 E5 2F 00 90 00 88 [11:05:44]RAPDU: 90 00 [11:05:44]wFMCommunicate OK [11:05:44]wFMCommunicate request_size=10 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 0D 02 02 05 A6 C3 57 6F DF [11:05:44]Write to MH i2c: E2 0D 00 E6 2F 80 0D 02 02 05 00 A6 C3 57 6F DF 00 00 A7 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 E6 2F 00 90 00 89 [11:05:44]RAPDU: 90 00 [11:05:44]wFMCommunicate OK [11:05:44]wFMCommunicate request_size=4 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 0D 03 02 [11:05:44]Write to MH i2c: E2 08 00 E7 2F 80 0D 03 02 00 00 00 00 91 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 0B 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 0B 00 E7 2F 00 23 47 AB E6 27 E8 00 53 90 00 EF [11:05:44]RAPDU: 23 47 AB E6 27 E8 00 53 90 00 [11:05:44]wFMCommunicate OK [11:05:44]SAM_PROTO_SignData done [11:05:44]FM_MakeSignedData done [11:05:44]CreateOFDProtocolMessage [11:05:44]wFMCommunicate request_size=4 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 11 00 00 [11:05:44]Write to MH i2c: E2 08 00 E8 2F 80 11 00 00 00 00 00 00 91 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 17 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 17 00 E8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [11:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:05:44]wFMCommunicate OK [11:05:44]CreateOFDProtocolMessage done [11:05:44]OFDSenderStorePacket 139649 [11:05:44]StoreOFDPacket docnum=139649 [11:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 22 07 01 69 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8A 78 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 21 02 00 35 04 06 00 61 A6 C3 57 6F DF 23 47 AB E6 27 E8 00 53 [11:05:44]CheckFolder [11:05:44]dirname=/storage/ofd_packets [11:05:44]CheckFolder done [11:05:44]ProducePacketName [11:05:44]name=ofd_packets/00139649 [11:05:44]NVStorageSaveData ofd_packets/00139649 [11:05:44]File name is /storage/ofd_packets/00139649 [11:05:44]Write 301 bytes [11:05:44]NVStorageSaveData done [11:05:44]OFDSenderStorePacket done [11:05:44]KKMCreateOFDPacket done [11:05:44]NVStorageSaveData kkm_last_timestamp [11:05:44]File name is /storage/kkm_last_timestamp [11:05:44]Write 4 bytes [11:05:44]NVStorageSaveData done [11:05:44]ExternCall_PrintAddStr [11:05:44]wPrintStart [11:05:44]Write to MH i2c: 01 00 00 E9 2F 18 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: 01 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: 01 07 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: 01 07 00 E9 2F 00 00 00 00 00 FF 0F 2D [11:05:44]RasterBufferAndPrint [11:05:44]line Счет N : (1)593495 [11:05:44]line ИНН: 02508201610067 [11:05:44]line Контрольно-Кассовый Чек [11:05:44]line ПРОДАЖА [11:05:44]line ТРК (МРК, ГНК) : 52 [11:05:44]line Товар: 2710124130 [11:05:44]line Аи-92-К-5 [11:05:44]line 7.380 * 67.80 [11:05:44]line = 500.36 [11:05:44]line НДС 12% НСП 1% [11:05:44]line > о реализуемом товаре [11:05:44]line ОКРУГЛЕНИЕ: -0.36 [11:05:44]line ИТОГО: 500.00 [11:05:44]line НСП 1% : 4.43 [11:05:44]line НДС 12% : 53.14 [11:05:44]line Наличными: 0.00 [11:05:44]line Безнал.: 500.00 [11:05:44]line Место: АЗС № 136 "Партнер Нефть" [11:05:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:05:44]line СНО: Общий режим [11:05:44]line Чек 121 20.08.2024 11:05 [11:05:44]line Смена: 453 ФФД: 1.0 [11:05:44]line ЗНМ: 0300000067 [11:05:44]line РНМ: 0000000000092569 [11:05:44]line Версия ККМ: 001 [11:05:44]line Платежная система: Бакай Банк [11:05:44]line ФМ: 0000000000871776 [11:05:44]line ФД: 139649 [11:05:44]line ФПД: 107368869752799 [11:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T110546&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139649&fm=107368869752799&tin=02508201610067®Number=0000000000092569&sum=50000 [11:05:44]OFD Sender: Processing packet 139649 [packets to send 137, broken 136] [11:05:44]ProducePacketName [11:05:44]name=ofd_packets/00139649 [11:05:44]OFD Sender: To server: pG, [11:05:44]CommunicateWithHost lk.salyk.kg:30040 [11:05:44]ConnectInit lk.salyk.kg [11:05:44]written 0, free lines is 4095 [11:05:44]Connected sock=11 [11:05:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 22 07 01 69 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8A 78 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 21 02 00 35 04 06 00 61 A6 C3 57 6F DF 23 47 AB E6 27 E8 00 53 [11:05:45]Write to MH i2c: 01 00 00 14 30 44 [11:05:45]Write i2c OK [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: 01 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: 01 07 00 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: 01 07 00 14 30 00 00 00 00 00 D2 0C 29 [11:05:45]RasterBufferAndPrint [11:05:45]line [11:05:45]line [11:05:45]line [11:05:45]line [11:05:45]line [11:05:45]written 0, free lines is 3288 [11:05:45]MH_Cut [11:05:45]Write to MH i2c: D1 01 00 1B 30 01 1D [11:05:45]Write i2c OK [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: D1 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: D1 01 00 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: D1 01 00 1B 30 00 1C [11:05:45]Write to MH i2c: 01 00 00 1C 30 4C [11:05:45]Write i2c OK [11:05:45]MH_I2C_Read... [11:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 49 93 47 00 3D EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 21 02 00 F4 03 04 00 1D 1F C4 66 B6 04 01 00 00 32 6F 59 1F 1A 4C 28 0C [11:05:45]CommunicateWithHost err = 0 [11:05:45]CheckOFDResponse [11:05:45]1017 (14) - 77093643461234 [11:05:45]1041 (16) - 0000000000871776 [11:05:45]1040 (4) - 139649 [11:05:45]1012 (4) - 20.08.2024 04:44 [11:05:45]1206 (1) - 0 [11:05:45]OFD Sender: Remove packet 139649 [11:05:45]ProducePacketName [11:05:45]name=ofd_packets/00139649 [11:05:45]NVStorageDeleteData [11:05:45]OFD Sender: No OFD packet to send [11:05:45]*** Cut start [11:05:45]*** Partial cut [11:05:45]*** CUTSNS_PIN = 1 [11:05:45]*** CUTSNS_PIN = 0 [11:05:46]*** Brake cut motor [11:05:46]Read from MH i2c: 01 [11:05:46]MH_I2C_Read... [11:05:46]*** Stop cut motor [11:05:46]*** Cut end [11:05:46]Read from MH i2c: 01 07 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: 01 07 00 1C 30 00 00 00 00 00 FF 0F 61 [11:05:46]process_action close_receipt done [11:05:46]requested_data is exist [11:05:46]produce_requested_data [11:05:46]requested_item fm.sn is exist - process it [11:05:46]wFMCommunicate request_size=4 [11:05:46]MH_SAM_APDU [11:05:46]CAPDU: 80 11 00 00 [11:05:46]Write to MH i2c: E2 08 00 1D 30 80 11 00 00 00 00 00 00 C7 [11:05:46]Write i2c OK [11:05:46]MH_I2C_Read... [11:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:46]Read from MH i2c: E2 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 17 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 17 00 1D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [11:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:05:46]wFMCommunicate OK [11:05:46]requested_item fd.num is exist - process it [11:05:46]SAM_PROTO_GetFieldsCounters [11:05:46]wFMCommunicate request_size=4 [11:05:46]MH_SAM_APDU [11:05:46]CAPDU: 80 13 00 00 [11:05:46]Write to MH i2c: E2 08 00 1E 30 80 13 00 00 00 00 00 00 CA [11:05:46]Write i2c OK [11:05:46]MH_I2C_Read... [11:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:46]Read from MH i2c: E2 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 62 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 62 00 1E 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [11:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:46]wFMCommunicate OK [11:05:46]SAM_PROTO_GetFieldsCounters done [11:05:46]requested_item shift.num is exist - process it [11:05:46]requested_item shift.opened is exist - process it [11:05:46]req_shift_opened [11:05:46]FM_GetShiftState [11:05:46]SAM_PROTO_GetShiftState [11:05:46]wFMCommunicate request_size=4 [11:05:46]MH_SAM_APDU [11:05:46]CAPDU: 80 13 01 00 [11:05:46]Write to MH i2c: E2 08 00 1F 30 80 13 01 00 00 00 00 00 CC [11:05:46]Write i2c OK [11:05:46]MH_I2C_Read... [11:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:46]Read from MH i2c: E2 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 0E 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: E2 0E 00 1F 30 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5D [11:05:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:05:46]wFMCommunicate OK [11:05:46]SAM_PROTO_GetShiftState done [11:05:46]FM_GetShiftState done [11:05:46]req_shift_opened done [11:05:46]requested_item shift.open_date is exist - process it [11:05:46]req_shift_open_date [11:05:46]req_shift_open_date done [11:05:46]produce_requested_data done [11:05:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139649,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:05:46]process_action_free close_receipt [11:05:46]json_value_free [11:05:46]json_value_free done [11:05:46]process_json_proto returns [11:05:46]Send response to host [11:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139649,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:05:46]free response buf [11:05:46]execute_script done [11:05:46]execute_script returns [11:05:46]free content buf [11:05:46]Sock 10.Close socket [11:05:46]Sock 10.Thread stoped [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:39]accept exits with 7 [11:10:39]New connection [11:10:39]New thread 3067215204 created [11:10:39]Thread 3067071844 joined [11:10:39]Waiting for new connection... [11:10:39] Sock 7.Parse request [11:10:39]Sock 7.Check first char [11:10:39]Sock 7.First char is OK [11:10:39]request: POST /json_proto HTTP/1.0 [11:10:39]Method: POST [11:10:39]URL: /json_proto [11:10:39]Method is POST - this is cgi request [11:10:39]url: /json_proto [11:10:39]query_string will be loaded in cgi processing [11:10:39]execute_cgi json_proto POST (null) [11:10:39]execute_cgi path=json_proto method=POST [11:10:39]POST find Content-Length [11:10:39]Host: 172.17.45.67:8080 [11:10:39]Content-Length: 687 [11:10:39]Content-Type: application/json [11:10:39] [11:10:39]POST finish read [11:10:39]Found Content-Length = 687 [11:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [11:10:39]execute_script... [11:10: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)593496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [11:10:39]POST & json_proto [11:10:39]process_json_proto [11:10:39]json parsed OK: [11:10:39]protocol is kg_v1.0 [11:10:39]action value=close_receipt [11:10:39]process_action close_receipt [11:10:39]cmd_close_receipt [11:10:39]MH_GetDate [11:10:39]Write to MH i2c: F0 00 00 20 30 3F [11:10:39]Write i2c OK [11:10:39]MH_I2C_Read... [11:10:39]Read from MH i2c: F0 [11:10:39]MH_I2C_Read... [11:10:39]Read from MH i2c: F0 09 00 [11:10:39]MH_I2C_Read... [11:10:39]Read from MH i2c: F0 09 00 20 30 00 B2 79 C4 66 5F 7F 2B 66 0C [11:10:39]GetLastDocTimeStamp 1724151946 [11:10:39]current date 1724152242 [11:10:39]FM_GetShiftState [11:10:39]SAM_PROTO_GetShiftState [11:10:39]wFMCommunicate request_size=4 [11:10:39]MH_SAM_APDU [11:10:39]CAPDU: 80 13 01 00 [11:10:39]Write to MH i2c: E2 08 00 21 30 80 13 01 00 00 00 00 00 CE [11:10:39]Write i2c OK [11:10:39]MH_I2C_Read... [11:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:39]Read from MH i2c: E2 [11:10:39]MH_I2C_Read... [11:10:39]Read from MH i2c: E2 0E 00 [11:10:39]MH_I2C_Read... [11:10:39]Read from MH i2c: E2 0E 00 21 30 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5F [11:10:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:10:39]wFMCommunicate OK [11:10:39]SAM_PROTO_GetShiftState done [11:10:39]FM_GetShiftState done [11:10:39]opened in 1724113785 [11:10:39]opened+sec_in_day 1724200185 [11:10:39]quantity*price = 200025 [11:10:39]sum+1 = 200026 [11:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 122 20.08.2024 11:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139650 ФПД: 38708159648494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T111042&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139650&fm=38708159648494&tin=02508201610067®Number=0000000000092569&sum=200000 [11:10:40]StoreToDocumentArchive [11:10:40]shift 453 fd 139650 [11:10:40]save to /storage/0453/doc_00139650 [11:10:40]save last doc name /storage/0453/doc_00139650 to /storage/kkm_last_doc_name [11:10:40]save OK [11:10:40]Clear old archive folders... [11:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:10:40]tlvbuf is 00D49500 [11:10:40]SAM_PROTO_ClearQueue [11:10:40]wFMCommunicate request_size=4 [11:10:40]MH_SAM_APDU [11:10:40]CAPDU: 80 09 00 00 [11:10:40]Write to MH i2c: E2 08 00 2E 30 80 09 00 00 00 00 00 00 D0 [11:10:40]Write i2c OK [11:10:40]MH_I2C_Read... [11:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:40]Read from MH i2c: E2 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 03 00 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 03 00 2E 30 00 90 00 D2 [11:10:40]RAPDU: 90 00 [11:10:40]wFMCommunicate OK [11:10:40]SAM_PROTO_ClearQueue done [11:10:40]KKMCreateOFDPacket [11:10:40]OFDProtocolAddRootSTLVToBuf [11:10:40]FM_MakeSignedData [11:10:40]FM_MakeSignedData [11:10:40]SAM_PROTO_SignData [11:10:40]wFMCommunicate request_size=4 [11:10:40]MH_SAM_APDU [11:10:40]CAPDU: 80 0D 01 02 [11:10:40]Write to MH i2c: E2 08 00 2F 30 80 0D 01 02 00 00 00 00 D8 [11:10:40]Write i2c OK [11:10:40]MH_I2C_Read... [11:10:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:40]Read from MH i2c: E2 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 03 00 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 03 00 2F 30 00 90 00 D3 [11:10:40]RAPDU: 90 00 [11:10:40]wFMCommunicate OK [11:10:40]wFMCommunicate request_size=255 [11:10:40]MH_SAM_APDU [11:10:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 B2 79 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 21 02 00 35 04 06 00 [11:10:40]Write to MH i2c: E2 02 01 30 30 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 B2 79 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 21 02 00 35 04 06 00 00 00 77 [11:10:40]Write i2c OK [11:10:40]MH_I2C_Read... [11:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:40]Read from MH i2c: E2 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 03 00 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 03 00 30 30 00 90 00 D4 [11:10:40]RAPDU: 90 00 [11:10:40]wFMCommunicate OK [11:10:40]wFMCommunicate request_size=11 [11:10:40]MH_SAM_APDU [11:10:40]CAPDU: 80 0D 02 02 06 23 34 72 1B 12 EE [11:10:40]Write to MH i2c: E2 0E 00 31 30 80 0D 02 02 06 00 23 34 72 1B 12 EE 00 00 CB [11:10:40]Write i2c OK [11:10:40]MH_I2C_Read... [11:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:40]Read from MH i2c: E2 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 03 00 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 03 00 31 30 00 90 00 D5 [11:10:40]RAPDU: 90 00 [11:10:40]wFMCommunicate OK [11:10:40]wFMCommunicate request_size=4 [11:10:40]MH_SAM_APDU [11:10:40]CAPDU: 80 0D 03 02 [11:10:40]Write to MH i2c: E2 08 00 32 30 80 0D 03 02 00 00 00 00 DD [11:10:40]Write i2c OK [11:10:40]MH_I2C_Read... [11:10:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:41]OFD Sender: No OFD packet to send [11:10:41]Read from MH i2c: E2 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: E2 0B 00 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: E2 0B 00 32 30 00 4E EB 25 4D B7 F2 D8 68 90 00 72 [11:10:41]RAPDU: 4E EB 25 4D B7 F2 D8 68 90 00 [11:10:41]wFMCommunicate OK [11:10:41]SAM_PROTO_SignData done [11:10:41]FM_MakeSignedData done [11:10:41]CreateOFDProtocolMessage [11:10:41]wFMCommunicate request_size=4 [11:10:41]MH_SAM_APDU [11:10:41]CAPDU: 80 11 00 00 [11:10:41]Write to MH i2c: E2 08 00 33 30 80 11 00 00 00 00 00 00 DD [11:10:41]Write i2c OK [11:10:41]MH_I2C_Read... [11:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:41]Read from MH i2c: E2 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: E2 17 00 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: E2 17 00 33 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 34 [11:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:10:41]wFMCommunicate OK [11:10:41]CreateOFDProtocolMessage done [11:10:41]OFDSenderStorePacket 139650 [11:10:41]StoreOFDPacket docnum=139650 [11:10:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 BE 35 08 01 0E 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 B2 79 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 21 02 00 35 04 06 00 23 34 72 1B 12 EE 4E EB 25 4D B7 F2 D8 68 [11:10:41]CheckFolder [11:10:41]dirname=/storage/ofd_packets [11:10:41]CheckFolder done [11:10:41]ProducePacketName [11:10:41]name=ofd_packets/00139650 [11:10:41]NVStorageSaveData ofd_packets/00139650 [11:10:41]File name is /storage/ofd_packets/00139650 [11:10:41]Write 302 bytes [11:10:41]NVStorageSaveData done [11:10:41]OFDSenderStorePacket done [11:10:41]KKMCreateOFDPacket done [11:10:41]NVStorageSaveData kkm_last_timestamp [11:10:41]File name is /storage/kkm_last_timestamp [11:10:41]Write 4 bytes [11:10:41]NVStorageSaveData done [11:10:41]ExternCall_PrintAddStr [11:10:41]wPrintStart [11:10:41]Write to MH i2c: 01 00 00 34 30 64 [11:10:41]Write i2c OK [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: 01 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: 01 07 00 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: 01 07 00 34 30 00 00 00 00 00 FF 0F 79 [11:10:41]RasterBufferAndPrint [11:10:41]line Счет N : (1)593496 [11:10:41]line ИНН: 02508201610067 [11:10:41]line Контрольно-Кассовый Чек [11:10:41]line ПРОДАЖА [11:10:41]line ТРК (МРК, ГНК) : 44 [11:10:41]line Товар: 2710194210 [11:10:41]line ДТ(л)-К-5 [11:10:41]line 26.250 * 76.20 [11:10:41]line = 2000.25 [11:10:41]line НДС 12% НСП 1% [11:10:41]line > о реализуемом товаре [11:10:41]line ОКРУГЛЕНИЕ: -0.25 [11:10:41]line ИТОГО: 2000.00 [11:10:41]line Внесено: 2000.00 [11:10:41]line СДАЧА: 0.00 [11:10:41]line НСП 1% : 17.70 [11:10:41]line НДС 12% : 212.42 [11:10:41]line Наличными: 2000.00 [11:10:41]line Безнал.: 0.00 [11:10:41]line Место: АЗС № 136 "Партнер Нефть" [11:10:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:10:41]line СНО: Общий режим [11:10:41]line Чек 122 20.08.2024 11:10 [11:10:41]line Смена: 453 ФФД: 1.0 [11:10:41]line ЗНМ: 0300000067 [11:10:41]line РНМ: 0000000000092569 [11:10:41]line Версия ККМ: 001 [11:10:41]line ФМ: 0000000000871776 [11:10:41]line ФД: 139650 [11:10:41]line ФПД: 38708159648494 [11:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T111042&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139650&fm=38708159648494&tin=02508201610067®Number=0000000000092569&sum=200000 [11:10:41]OFD Sender: Processing packet 139650 [packets to send 137, broken 136] [11:10:41]ProducePacketName [11:10:41]name=ofd_packets/00139650 [11:10:41]OFD Sender: To server: pG, [11:10:41]CommunicateWithHost lk.salyk.kg:30040 [11:10:41]ConnectInit lk.salyk.kg [11:10:41]written 0, free lines is 4095 [11:10:41]Connected sock=10 [11:10:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 BE 35 08 01 0E 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 B2 79 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 21 02 00 35 04 06 00 23 34 72 1B 12 EE 4E EB 25 4D B7 F2 D8 68 [11:10:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 39 9B 47 00 00 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 21 02 00 F4 03 04 00 46 20 C4 66 B6 04 01 00 00 0D 62 00 18 BD 6C E3 3C [11:10:41]CommunicateWithHost err = 0 [11:10:41]CheckOFDResponse [11:10:41]1017 (14) - 77093643461234 [11:10:41]1041 (16) - 0000000000871776 [11:10:41]1040 (4) - 139650 [11:10:41]1012 (4) - 20.08.2024 04:49 [11:10:41]1206 (1) - 0 [11:10:41]OFD Sender: Remove packet 139650 [11:10:41]ProducePacketName [11:10:41]name=ofd_packets/00139650 [11:10:41]NVStorageDeleteData [11:10:41]Write to MH i2c: 01 00 00 5F 30 8F [11:10:41]Write i2c OK [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: 01 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: 01 07 00 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: 01 07 00 5F 30 00 00 00 00 00 CB 0C 6D [11:10:41]RasterBufferAndPrint [11:10:41]line [11:10:41]line [11:10:41]line [11:10:41]line [11:10:41]line [11:10:41]written 0, free lines is 3281 [11:10:41]MH_Cut [11:10:41]Write to MH i2c: D1 01 00 66 30 01 68 [11:10:41]Write i2c OK [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: D1 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: D1 01 00 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: D1 01 00 66 30 00 67 [11:10:41]Write to MH i2c: 01 00 00 67 30 97 [11:10:41]Write i2c OK [11:10:41]MH_I2C_Read... [11:10:42]OFD Sender: No OFD packet to send [11:10:42]*** Cut start [11:10:42]*** Partial cut [11:10:42]*** CUTSNS_PIN = 1 [11:10:42]*** CUTSNS_PIN = 0 [11:10:42]*** Brake cut motor [11:10:43]Read from MH i2c: 01 [11:10:43]MH_I2C_Read... [11:10:43]*** Stop cut motor [11:10:43]*** Cut end [11:10:43]Read from MH i2c: 01 07 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: 01 07 00 67 30 00 00 00 00 00 FF 0F AC [11:10:43]process_action close_receipt done [11:10:43]requested_data is exist [11:10:43]produce_requested_data [11:10:43]requested_item fm.sn is exist - process it [11:10:43]wFMCommunicate request_size=4 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 11 00 00 [11:10:43]Write to MH i2c: E2 08 00 68 30 80 11 00 00 00 00 00 00 12 [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:43]Read from MH i2c: E2 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 17 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 17 00 68 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [11:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:10:43]wFMCommunicate OK [11:10:43]requested_item fd.num is exist - process it [11:10:43]SAM_PROTO_GetFieldsCounters [11:10:43]wFMCommunicate request_size=4 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 13 00 00 [11:10:43]Write to MH i2c: E2 08 00 69 30 80 13 00 00 00 00 00 00 15 [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:43]Read from MH i2c: E2 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 62 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 62 00 69 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [11:10:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:43]wFMCommunicate OK [11:10:43]SAM_PROTO_GetFieldsCounters done [11:10:43]requested_item shift.num is exist - process it [11:10:43]requested_item shift.opened is exist - process it [11:10:43]req_shift_opened [11:10:43]FM_GetShiftState [11:10:43]SAM_PROTO_GetShiftState [11:10:43]wFMCommunicate request_size=4 [11:10:43]MH_SAM_APDU [11:10:43]CAPDU: 80 13 01 00 [11:10:43]Write to MH i2c: E2 08 00 6A 30 80 13 01 00 00 00 00 00 17 [11:10:43]Write i2c OK [11:10:43]MH_I2C_Read... [11:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:43]Read from MH i2c: E2 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 0E 00 [11:10:43]MH_I2C_Read... [11:10:43]Read from MH i2c: E2 0E 00 6A 30 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A8 [11:10:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:10:43]wFMCommunicate OK [11:10:43]SAM_PROTO_GetShiftState done [11:10:43]FM_GetShiftState done [11:10:43]req_shift_opened done [11:10:43]requested_item shift.open_date is exist - process it [11:10:43]req_shift_open_date [11:10:43]req_shift_open_date done [11:10:43]produce_requested_data done [11:10:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139650,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:10:43]process_action_free close_receipt [11:10:43]json_value_free [11:10:43]json_value_free done [11:10:43]process_json_proto returns [11:10:43]Send response to host [11:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139650,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:10:43]free response buf [11:10:43]execute_script done [11:10:43]execute_script returns [11:10:43]free content buf [11:10:43]Sock 7.Close socket [11:10:43]Sock 7.Thread stoped [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:11]accept exits with 9 [11:11:11]New connection [11:11:11]New thread 3067071844 created [11:11:11]Thread 3067215204 joined [11:11:11]Waiting for new connection... [11:11:11] Sock 9.Parse request [11:11:11]Sock 9.Check first char [11:11:11]Sock 9.First char is OK [11:11:11]request: POST /json_proto HTTP/1.0 [11:11:11]Method: POST [11:11:11]URL: /json_proto [11:11:11]Method is POST - this is cgi request [11:11:11]url: /json_proto [11:11:11]query_string will be loaded in cgi processing [11:11:11]execute_cgi json_proto POST (null) [11:11:11]execute_cgi path=json_proto method=POST [11:11:11]POST find Content-Length [11:11:11]Host: 172.17.45.67:8080 [11:11:11]Content-Length: 682 [11:11:11]Content-Type: application/json [11:11:11] [11:11:11]POST finish read [11:11:11]Found Content-Length = 682 [11:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:11]execute_script... [11: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)593497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:11]POST & json_proto [11:11:11]process_json_proto [11:11:11]json parsed OK: [11:11:11]protocol is kg_v1.0 [11:11:11]action value=close_receipt [11:11:11]process_action close_receipt [11:11:11]cmd_close_receipt [11:11:11]MH_GetDate [11:11:11]Write to MH i2c: F0 00 00 6B 30 8A [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: F0 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: F0 09 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: F0 09 00 6B 30 00 D3 79 C4 66 5F 7F 2B 66 78 [11:11:11]GetLastDocTimeStamp 1724152242 [11:11:11]current date 1724152275 [11:11:11]FM_GetShiftState [11:11:11]SAM_PROTO_GetShiftState [11:11:11]wFMCommunicate request_size=4 [11:11:11]MH_SAM_APDU [11:11:11]CAPDU: 80 13 01 00 [11:11:11]Write to MH i2c: E2 08 00 6C 30 80 13 01 00 00 00 00 00 19 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:11]Read from MH i2c: E2 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 0E 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 0E 00 6C 30 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AA [11:11:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:11:11]wFMCommunicate OK [11:11:11]SAM_PROTO_GetShiftState done [11:11:11]FM_GetShiftState done [11:11:11]opened in 1724113785 [11:11:11]opened+sec_in_day 1724200185 [11:11:11]quantity*price = 100005 [11:11:11]sum+1 = 100006 [11:11:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 123 20.08.2024 11:11 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139651 ФПД: 246158278290805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T111115&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139651&fm=246158278290805&tin=02508201610067®Number=0000000000092569&sum=100000 [11:11:13]StoreToDocumentArchive [11:11:13]shift 453 fd 139651 [11:11:13]save to /storage/0453/doc_00139651 [11:11:13]save last doc name /storage/0453/doc_00139651 to /storage/kkm_last_doc_name [11:11:13]save OK [11:11:13]Clear old archive folders... [11:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:13]tlvbuf is 00DDB210 [11:11:13]SAM_PROTO_ClearQueue [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 09 00 00 [11:11:13]Write to MH i2c: E2 08 00 79 30 80 09 00 00 00 00 00 00 1B [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 79 30 00 90 00 1D [11:11:13]RAPDU: 90 00 [11:11:13]wFMCommunicate OK [11:11:13]SAM_PROTO_ClearQueue done [11:11:13]KKMCreateOFDPacket [11:11:13]OFDProtocolAddRootSTLVToBuf [11:11:13]FM_MakeSignedData [11:11:13]FM_MakeSignedData [11:11:13]SAM_PROTO_SignData [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 0D 01 02 [11:11:13]Write to MH i2c: E2 08 00 7A 30 80 0D 01 02 00 00 00 00 23 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 7A 30 00 90 00 1E [11:11:13]RAPDU: 90 00 [11:11:13]wFMCommunicate OK [11:11:13]wFMCommunicate request_size=255 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D3 79 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 21 02 00 35 04 06 00 DF [11:11:13]Write to MH i2c: E2 02 01 7B 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D3 79 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 21 02 00 35 04 06 00 DF 00 00 77 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 7B 30 00 90 00 1F [11:11:13]RAPDU: 90 00 [11:11:13]wFMCommunicate OK [11:11:13]wFMCommunicate request_size=10 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 0D 02 02 05 E1 30 BC 6D 75 [11:11:13]Write to MH i2c: E2 0D 00 7C 30 80 0D 02 02 05 00 E1 30 BC 6D 75 00 00 DF [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 03 00 7C 30 00 90 00 20 [11:11:13]RAPDU: 90 00 [11:11:13]wFMCommunicate OK [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 0D 03 02 [11:11:13]Write to MH i2c: E2 08 00 7D 30 80 0D 03 02 00 00 00 00 28 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 0B 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 0B 00 7D 30 00 6D D2 CB AF 89 D0 BC 42 90 00 39 [11:11:13]RAPDU: 6D D2 CB AF 89 D0 BC 42 90 00 [11:11:13]wFMCommunicate OK [11:11:13]SAM_PROTO_SignData done [11:11:13]FM_MakeSignedData done [11:11:13]CreateOFDProtocolMessage [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 11 00 00 [11:11:13]Write to MH i2c: E2 08 00 7E 30 80 11 00 00 00 00 00 00 28 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 17 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 17 00 7E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [11:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:11:13]wFMCommunicate OK [11:11:13]CreateOFDProtocolMessage done [11:11:13]OFDSenderStorePacket 139651 [11:11:13]StoreOFDPacket docnum=139651 [11:11:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 61 6A 07 01 84 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D3 79 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 21 02 00 35 04 06 00 DF E1 30 BC 6D 75 6D D2 CB AF 89 D0 BC 42 [11:11:13]CheckFolder [11:11:13]dirname=/storage/ofd_packets [11:11:13]CheckFolder done [11:11:13]ProducePacketName [11:11:13]name=ofd_packets/00139651 [11:11:13]NVStorageSaveData ofd_packets/00139651 [11:11:13]File name is /storage/ofd_packets/00139651 [11:11:13]Write 301 bytes [11:11:13]NVStorageSaveData done [11:11:13]OFDSenderStorePacket done [11:11:13]KKMCreateOFDPacket done [11:11:13]NVStorageSaveData kkm_last_timestamp [11:11:13]File name is /storage/kkm_last_timestamp [11:11:13]Write 4 bytes [11:11:13]NVStorageSaveData done [11:11:13]OFD Sender: Processing packet 139651 [packets to send 137, broken 136] [11:11:13]ProducePacketName [11:11:13]name=ofd_packets/00139651 [11:11:13]OFD Sender: To server: pG, [11:11:13]CommunicateWithHost lk.salyk.kg:30040 [11:11:13]ConnectInit lk.salyk.kg [11:11:13]ExternCall_PrintAddStr [11:11:13]wPrintStart [11:11:13]Write to MH i2c: 01 00 00 7F 30 AF [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: 01 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: 01 07 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: 01 07 00 7F 30 00 00 00 00 00 FF 0F C4 [11:11:13]RasterBufferAndPrint [11:11:13]line Счет N : (1)593497 [11:11:13]line ИНН: 02508201610067 [11:11:13]line Контрольно-Кассовый Чек [11:11:13]line ПРОДАЖА [11:11:13]line ТРК (МРК, ГНК) : 52 [11:11:13]line Товар: 2710124130 [11:11:13]line Аи-92-К-5 [11:11:13]line 14.750 * 67.80 [11:11:13]line = 1000.05 [11:11:13]line НДС 12% НСП 1% [11:11:13]line > о реализуемом товаре [11:11:13]line ОКРУГЛЕНИЕ: -0.05 [11:11:13]line ИТОГО: 1000.00 [11:11:13]line Внесено: 1000.00 [11:11:13]line СДАЧА: 0.00 [11:11:13]line НСП 1% : 8.85 [11:11:13]line НДС 12% : 106.20 [11:11:13]line Наличными: 1000.00 [11:11:13]line Безнал.: 0.00 [11:11:13]line Место: АЗС № 136 "Партнер Нефть" [11:11:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:11:13]line СНО: Общий режим [11:11:13]line Чек 123 20.08.2024 11:11 [11:11:13]line Смена: 453 ФФД: 1.0 [11:11:13]line ЗНМ: 0300000067 [11:11:13]line РНМ: 0000000000092569 [11:11:13]line Версия ККМ: 001 [11:11:13]line ФМ: 0000000000871776 [11:11:13]line ФД: 139651 [11:11:13]line ФПД: 246158278290805 [11:11:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T111115&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139651&fm=246158278290805&tin=02508201610067®Number=0000000000092569&sum=100000 [11:11:13]Connected sock=11 [11:11:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 61 6A 07 01 84 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D3 79 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 21 02 00 35 04 06 00 DF E1 30 BC 6D 75 6D D2 CB AF 89 D0 BC 42 [11:11:13]written 0, free lines is 4095 [11:11:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5A C2 47 00 CF AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 21 02 00 F4 03 04 00 66 20 C4 66 B6 04 01 00 00 87 B6 43 3C EB 86 14 14 [11:11:14]CommunicateWithHost err = 0 [11:11:14]CheckOFDResponse [11:11:14]1017 (14) - 77093643461234 [11:11:14]1041 (16) - 0000000000871776 [11:11:14]1040 (4) - 139651 [11:11:14]1012 (4) - 20.08.2024 04:49 [11:11:14]1206 (1) - 0 [11:11:14]OFD Sender: Remove packet 139651 [11:11:14]ProducePacketName [11:11:14]name=ofd_packets/00139651 [11:11:14]NVStorageDeleteData [11:11:14]Write to MH i2c: 01 00 00 AA 30 DA [11:11:14]Write i2c OK [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: 01 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: 01 07 00 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: 01 07 00 AA 30 00 00 00 00 00 C5 0C B2 [11:11:14]RasterBufferAndPrint [11:11:14]line [11:11:14]line [11:11:14]line [11:11:14]line [11:11:14]line [11:11:14]written 0, free lines is 3275 [11:11:14]MH_Cut [11:11:14]Write to MH i2c: D1 01 00 B1 30 01 B3 [11:11:14]Write i2c OK [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: D1 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: D1 01 00 [11:11:14]MH_I2C_Read... [11:11:14]Read from MH i2c: D1 01 00 B1 30 00 B2 [11:11:14]Write to MH i2c: 01 00 00 B2 30 E2 [11:11:14]Write i2c OK [11:11:14]MH_I2C_Read... [11:11:14]OFD Sender: No OFD packet to send [11:11:15]*** Cut start [11:11:15]*** Partial cut [11:11:15]*** CUTSNS_PIN = 1 [11:11:15]*** CUTSNS_PIN = 0 [11:11:15]*** Brake cut motor [11:11:15]Read from MH i2c: 01 [11:11:15]MH_I2C_Read... [11:11:15]*** Stop cut motor [11:11:15]*** Cut end [11:11:15]Read from MH i2c: 01 07 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: 01 07 00 B2 30 00 00 00 00 00 FF 0F F7 [11:11:15]process_action close_receipt done [11:11:15]requested_data is exist [11:11:15]produce_requested_data [11:11:15]requested_item fm.sn is exist - process it [11:11:15]wFMCommunicate request_size=4 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 11 00 00 [11:11:15]Write to MH i2c: E2 08 00 B3 30 80 11 00 00 00 00 00 00 5D [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 17 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 17 00 B3 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [11:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:11:15]wFMCommunicate OK [11:11:15]requested_item fd.num is exist - process it [11:11:15]SAM_PROTO_GetFieldsCounters [11:11:15]wFMCommunicate request_size=4 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 13 00 00 [11:11:15]Write to MH i2c: E2 08 00 B4 30 80 13 00 00 00 00 00 00 60 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 62 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 62 00 B4 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [11:11:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:15]wFMCommunicate OK [11:11:15]SAM_PROTO_GetFieldsCounters done [11:11:15]requested_item shift.num is exist - process it [11:11:15]requested_item shift.opened is exist - process it [11:11:15]req_shift_opened [11:11:15]FM_GetShiftState [11:11:15]SAM_PROTO_GetShiftState [11:11:15]wFMCommunicate request_size=4 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 13 01 00 [11:11:15]Write to MH i2c: E2 08 00 B5 30 80 13 01 00 00 00 00 00 62 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:16]Read from MH i2c: E2 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 0E 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: E2 0E 00 B5 30 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F3 [11:11:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:11:16]wFMCommunicate OK [11:11:16]SAM_PROTO_GetShiftState done [11:11:16]FM_GetShiftState done [11:11:16]req_shift_opened done [11:11:16]requested_item shift.open_date is exist - process it [11:11:16]req_shift_open_date [11:11:16]req_shift_open_date done [11:11:16]produce_requested_data done [11:11:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139651,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:11:16]process_action_free close_receipt [11:11:16]json_value_free [11:11:16]json_value_free done [11:11:16]process_json_proto returns [11:11:16]Send response to host [11:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139651,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:11:16]free response buf [11:11:16]execute_script done [11:11:16]execute_script returns [11:11:16]free content buf [11:11:16]Sock 9.Close socket [11:11:16]Sock 9.Thread stoped [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:36]int [11:13:36]Write to MH i2c: 01 00 00 B6 30 E6 [11:13:36]*** FLAG_PRN_KEY set [11:13:36]Write i2c OK [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: 01 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: 01 07 00 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: 01 07 00 B6 30 00 08 00 00 00 FF 0F 03 [11:13:36]state=0 [11:13:36]Key pressed [11:13:36]Feed [11:13:36]Write to MH i2c: D8 00 00 B7 30 BE [11:13:36]Write i2c OK [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: D8 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: D8 01 00 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: D8 01 00 B7 30 00 BF [11:13:36]int [11:13:36]Write to MH i2c: 01 00 00 B8 30 E8 [11:13:36]Write i2c OK [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: 01 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: 01 07 00 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: 01 07 00 B8 30 00 48 00 00 00 3C 00 73 [11:13:36]state=2 [11:13:36]Key pressed [11:13:36]int [11:13:36]Write to MH i2c: 01 00 00 B9 30 E9 [11:13:36]*** FLAG_PRN_KEY reset [11:13:36]Write i2c OK [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: 01 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: 01 07 00 [11:13:36]MH_I2C_Read... [11:13:36]Read from MH i2c: 01 07 00 B9 30 00 00 00 00 00 F5 0F F4 [11:13:36]state=2 [11:13:36]Stop feed [11:13:37]int [11:13:37]Write to MH i2c: 01 00 00 BA 30 EA [11:13:37]*** FLAG_PRN_KEY set [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 07 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 07 00 BA 30 00 08 00 00 00 FF 0F 07 [11:13:37]state=0 [11:13:37]Key pressed [11:13:37]Feed [11:13:37]Write to MH i2c: D8 00 00 BB 30 C2 [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: D8 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: D8 01 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: D8 01 00 BB 30 00 C3 [11:13:37]int [11:13:37]Write to MH i2c: 01 00 00 BC 30 EC [11:13:37]Write i2c OK [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 07 00 [11:13:37]MH_I2C_Read... [11:13:37]Read from MH i2c: 01 07 00 BC 30 00 48 00 00 00 3C 00 77 [11:13:37]state=2 [11:13:37]Key pressed [11:13:38]int [11:13:38]Write to MH i2c: 01 00 00 BD 30 ED [11:13:38]*** FLAG_PRN_KEY reset [11:13:38]Write i2c OK [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: 01 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: 01 07 00 [11:13:38]MH_I2C_Read... [11:13:38]Read from MH i2c: 01 07 00 BD 30 00 00 00 00 00 F6 0F F9 [11:13:38]state=2 [11:13:38]Stop feed [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:31]accept exits with 7 [11:19:31]New connection [11:19:31]New thread 3067215204 created [11:19:31]Thread 3067071844 joined [11:19:31]Waiting for new connection... [11:19:31] Sock 7.Parse request [11:19:31]Sock 7.Check first char [11:19:31]Sock 7.First char is OK [11:19:31]request: POST /json_proto HTTP/1.0 [11:19:31]Method: POST [11:19:31]URL: /json_proto [11:19:31]Method is POST - this is cgi request [11:19:31]url: /json_proto [11:19:31]query_string will be loaded in cgi processing [11:19:31]execute_cgi json_proto POST (null) [11:19:31]execute_cgi path=json_proto method=POST [11:19:31]POST find Content-Length [11:19:31]Host: 172.17.45.67:8080 [11:19:31]Content-Length: 677 [11:19:31]Content-Type: application/json [11:19:31] [11:19:31]POST finish read [11:19:31]Found Content-Length = 677 [11:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:31]execute_script... [11:19: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)593498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:31]POST & json_proto [11:19:31]process_json_proto [11:19:31]json parsed OK: [11:19:31]protocol is kg_v1.0 [11:19:31]action value=close_receipt [11:19:31]process_action close_receipt [11:19:31]cmd_close_receipt [11:19:31]MH_GetDate [11:19:31]Write to MH i2c: F0 00 00 BE 30 DD [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: F0 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: F0 09 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: F0 09 00 BE 30 00 C6 7B C4 66 5F 7F 2B 66 C0 [11:19:31]GetLastDocTimeStamp 1724152275 [11:19:31]current date 1724152774 [11:19:31]FM_GetShiftState [11:19:31]SAM_PROTO_GetShiftState [11:19:31]wFMCommunicate request_size=4 [11:19:31]MH_SAM_APDU [11:19:31]CAPDU: 80 13 01 00 [11:19:31]Write to MH i2c: E2 08 00 BF 30 80 13 01 00 00 00 00 00 6C [11:19:31]Write i2c OK [11:19:31]MH_I2C_Read... [11:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:31]Read from MH i2c: E2 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 0E 00 [11:19:31]MH_I2C_Read... [11:19:31]Read from MH i2c: E2 0E 00 BF 30 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FD [11:19:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:19:31]wFMCommunicate OK [11:19:31]SAM_PROTO_GetShiftState done [11:19:31]FM_GetShiftState done [11:19:31]opened in 1724113785 [11:19:31]opened+sec_in_day 1724200185 [11:19:31]quantity*price = 60027 [11:19:31]sum+1 = 60029 [11:19:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 124 20.08.2024 11:19 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139652 ФПД: 236930288572658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T111934&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139652&fm=236930288572658&tin=02508201610067®Number=0000000000092569&sum=60000 [11:19:32]StoreToDocumentArchive [11:19:32]shift 453 fd 139652 [11:19:32]save to /storage/0453/doc_00139652 [11:19:32]save last doc name /storage/0453/doc_00139652 to /storage/kkm_last_doc_name [11:19:32]save OK [11:19:32]Clear old archive folders... [11:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:32]tlvbuf is 00D75B00 [11:19:32]SAM_PROTO_ClearQueue [11:19:32]wFMCommunicate request_size=4 [11:19:32]MH_SAM_APDU [11:19:32]CAPDU: 80 09 00 00 [11:19:32]Write to MH i2c: E2 08 00 CC 30 80 09 00 00 00 00 00 00 6E [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 03 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 03 00 CC 30 00 90 00 70 [11:19:32]RAPDU: 90 00 [11:19:32]wFMCommunicate OK [11:19:32]SAM_PROTO_ClearQueue done [11:19:32]KKMCreateOFDPacket [11:19:32]OFDProtocolAddRootSTLVToBuf [11:19:32]FM_MakeSignedData [11:19:32]FM_MakeSignedData [11:19:32]SAM_PROTO_SignData [11:19:32]wFMCommunicate request_size=4 [11:19:32]MH_SAM_APDU [11:19:32]CAPDU: 80 0D 01 02 [11:19:32]Write to MH i2c: E2 08 00 CD 30 80 0D 01 02 00 00 00 00 76 [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 03 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 03 00 CD 30 00 90 00 71 [11:19:32]RAPDU: 90 00 [11:19:32]wFMCommunicate OK [11:19:32]wFMCommunicate request_size=255 [11:19:32]MH_SAM_APDU [11:19:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 C6 7B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 21 02 00 35 04 06 00 D7 [11:19:32]Write to MH i2c: E2 02 01 CE 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C6 7B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 21 02 00 35 04 06 00 D7 00 00 98 [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 03 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 03 00 CE 30 00 90 00 72 [11:19:32]RAPDU: 90 00 [11:19:32]wFMCommunicate OK [11:19:32]wFMCommunicate request_size=10 [11:19:32]MH_SAM_APDU [11:19:32]CAPDU: 80 0D 02 02 05 7C A1 AF D8 F2 [11:19:32]Write to MH i2c: E2 0D 00 CF 30 80 0D 02 02 05 00 7C A1 AF D8 F2 00 00 19 [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 03 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 03 00 CF 30 00 90 00 73 [11:19:32]RAPDU: 90 00 [11:19:32]wFMCommunicate OK [11:19:32]wFMCommunicate request_size=4 [11:19:32]MH_SAM_APDU [11:19:32]CAPDU: 80 0D 03 02 [11:19:32]Write to MH i2c: E2 08 00 D0 30 80 0D 03 02 00 00 00 00 7B [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 0B 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 0B 00 D0 30 00 93 F7 36 B5 01 F4 3D A7 90 00 CA [11:19:32]RAPDU: 93 F7 36 B5 01 F4 3D A7 90 00 [11:19:32]wFMCommunicate OK [11:19:32]SAM_PROTO_SignData done [11:19:32]FM_MakeSignedData done [11:19:32]CreateOFDProtocolMessage [11:19:32]wFMCommunicate request_size=4 [11:19:32]MH_SAM_APDU [11:19:32]CAPDU: 80 11 00 00 [11:19:32]Write to MH i2c: E2 08 00 D1 30 80 11 00 00 00 00 00 00 7B [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:32]Read from MH i2c: E2 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 17 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: E2 17 00 D1 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [11:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:19:32]wFMCommunicate OK [11:19:32]CreateOFDProtocolMessage done [11:19:32]OFDSenderStorePacket 139652 [11:19:32]StoreOFDPacket docnum=139652 [11:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AC D6 07 01 E2 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 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C6 7B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 21 02 00 35 04 06 00 D7 7C A1 AF D8 F2 93 F7 36 B5 01 F4 3D A7 [11:19:32]CheckFolder [11:19:32]dirname=/storage/ofd_packets [11:19:32]CheckFolder done [11:19:32]ProducePacketName [11:19:32]name=ofd_packets/00139652 [11:19:32]NVStorageSaveData ofd_packets/00139652 [11:19:32]File name is /storage/ofd_packets/00139652 [11:19:32]Write 301 bytes [11:19:32]NVStorageSaveData done [11:19:32]OFDSenderStorePacket done [11:19:32]KKMCreateOFDPacket done [11:19:32]NVStorageSaveData kkm_last_timestamp [11:19:32]File name is /storage/kkm_last_timestamp [11:19:32]Write 4 bytes [11:19:32]NVStorageSaveData done [11:19:32]OFD Sender: Processing packet 139652 [packets to send 137, broken 136] [11:19:32]ProducePacketName [11:19:32]name=ofd_packets/00139652 [11:19:32]OFD Sender: To server: pG, [11:19:32]CommunicateWithHost lk.salyk.kg:30040 [11:19:32]ConnectInit lk.salyk.kg [11:19:32]ExternCall_PrintAddStr [11:19:32]wPrintStart [11:19:32]Write to MH i2c: 01 00 00 D2 30 02 [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: 01 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: 01 07 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: 01 07 00 D2 30 00 00 00 00 00 FF 0F 17 [11:19:32]RasterBufferAndPrint [11:19:32]line Счет N : (1)593498 [11:19:32]line ИНН: 02508201610067 [11:19:32]line Контрольно-Кассовый Чек [11:19:32]line ПРОДАЖА [11:19:32]line ТРК (МРК, ГНК) : 41 [11:19:32]line Товар: 2710124500 [11:19:32]line Аи-95-К-5 [11:19:32]line 8.090 * 74.20 [11:19:32]line = 600.28 [11:19:32]line НДС 12% НСП 1% [11:19:32]line > о реализуемом товаре [11:19:32]line ОКРУГЛЕНИЕ: -0.28 [11:19:32]line ИТОГО: 600.00 [11:19:32]line Внесено: 600.00 [11:19:32]line СДАЧА: 0.00 [11:19:32]line НСП 1% : 5.31 [11:19:32]line НДС 12% : 63.75 [11:19:32]line Наличными: 600.00 [11:19:32]line Безнал.: 0.00 [11:19:32]line Место: АЗС № 136 "Партнер Нефть" [11:19:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:19:32]line СНО: Общий режим [11:19:32]line Чек 124 20.08.2024 11:19 [11:19:32]line Смена: 453 ФФД: 1.0 [11:19:32]line ЗНМ: 0300000067 [11:19:32]line РНМ: 0000000000092569 [11:19:32]line Версия ККМ: 001 [11:19:32]line ФМ: 0000000000871776 [11:19:32]line ФД: 139652 [11:19:32]line ФПД: 236930288572658 [11:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T111934&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139652&fm=236930288572658&tin=02508201610067®Number=0000000000092569&sum=60000 [11:19:33]Connected sock=11 [11:19:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AC D6 07 01 E2 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 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 C6 7B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 21 02 00 35 04 06 00 D7 7C A1 AF D8 F2 93 F7 36 B5 01 F4 3D A7 [11:19:33]written 0, free lines is 4095 [11:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7E 9D 47 00 B2 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 21 02 00 F4 03 04 00 59 22 C4 66 B6 04 01 00 00 58 FF 55 99 17 C6 60 C3 [11:19:33]CommunicateWithHost err = 0 [11:19:33]CheckOFDResponse [11:19:33]1017 (14) - 77093643461234 [11:19:33]1041 (16) - 0000000000871776 [11:19:33]1040 (4) - 139652 [11:19:33]1012 (4) - 20.08.2024 04:58 [11:19:33]1206 (1) - 0 [11:19:33]OFD Sender: Remove packet 139652 [11:19:33]ProducePacketName [11:19:33]name=ofd_packets/00139652 [11:19:33]NVStorageDeleteData [11:19:33]Write to MH i2c: 01 00 00 FD 30 2D [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: 01 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: 01 07 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: 01 07 00 FD 30 00 00 00 00 00 CD 0C 0D [11:19:33]RasterBufferAndPrint [11:19:33]line [11:19:33]line [11:19:33]line [11:19:33]line [11:19:33]line [11:19:33]written 0, free lines is 3283 [11:19:33]MH_Cut [11:19:33]Write to MH i2c: D1 01 00 04 31 01 07 [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: D1 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: D1 01 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: D1 01 00 04 31 00 06 [11:19:33]Write to MH i2c: 01 00 00 05 31 36 [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:34]OFD Sender: No OFD packet to send [11:19:34]*** Cut start [11:19:34]*** Partial cut [11:19:34]*** CUTSNS_PIN = 1 [11:19:34]*** CUTSNS_PIN = 0 [11:19:34]*** Brake cut motor [11:19:35]Read from MH i2c: 01 [11:19:35]MH_I2C_Read... [11:19:35]*** Stop cut motor [11:19:35]*** Cut end [11:19:35]Read from MH i2c: 01 07 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 07 00 05 31 00 00 00 00 00 FF 0F 4B [11:19:35]process_action close_receipt done [11:19:35]requested_data is exist [11:19:35]produce_requested_data [11:19:35]requested_item fm.sn is exist - process it [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 11 00 00 [11:19:35]Write to MH i2c: E2 08 00 06 31 80 11 00 00 00 00 00 00 B1 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 17 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 17 00 06 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 08 [11:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:19:35]wFMCommunicate OK [11:19:35]requested_item fd.num is exist - process it [11:19:35]SAM_PROTO_GetFieldsCounters [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 13 00 00 [11:19:35]Write to MH i2c: E2 08 00 07 31 80 13 00 00 00 00 00 00 B4 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 62 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 62 00 07 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [11:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_GetFieldsCounters done [11:19:35]requested_item shift.num is exist - process it [11:19:35]requested_item shift.opened is exist - process it [11:19:35]req_shift_opened [11:19:35]FM_GetShiftState [11:19:35]SAM_PROTO_GetShiftState [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 13 01 00 [11:19:35]Write to MH i2c: E2 08 00 08 31 80 13 01 00 00 00 00 00 B6 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0E 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0E 00 08 31 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 47 [11:19:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_GetShiftState done [11:19:35]FM_GetShiftState done [11:19:35]req_shift_opened done [11:19:35]requested_item shift.open_date is exist - process it [11:19:35]req_shift_open_date [11:19:35]req_shift_open_date done [11:19:35]produce_requested_data done [11:19:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139652,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:19:35]process_action_free close_receipt [11:19:35]json_value_free [11:19:35]json_value_free done [11:19:35]process_json_proto returns [11:19:35]Send response to host [11:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139652,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:19:35]free response buf [11:19:35]execute_script done [11:19:35]execute_script returns [11:19:35]free content buf [11:19:35]Sock 7.Close socket [11:19:35]Sock 7.Thread stoped [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:56]accept exits with 9 [11:21:56]New connection [11:21:56]New thread 3067071844 created [11:21:56]Thread 3067215204 joined [11:21:56]Waiting for new connection... [11:21:56] Sock 9.Parse request [11:21:56]Sock 9.Check first char [11:21:56]Sock 9.First char is OK [11:21:56]request: POST /json_proto HTTP/1.0 [11:21:56]Method: POST [11:21:56]URL: /json_proto [11:21:56]Method is POST - this is cgi request [11:21:56]url: /json_proto [11:21:56]query_string will be loaded in cgi processing [11:21:56]execute_cgi json_proto POST (null) [11:21:56]execute_cgi path=json_proto method=POST [11:21:56]POST find Content-Length [11:21:56]Host: 172.17.45.67:8080 [11:21:56]Content-Length: 682 [11:21:56]Content-Type: application/json [11:21:56] [11:21:56]POST finish read [11:21:56]Found Content-Length = 682 [11:21:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:56]execute_script... [11:21: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)593500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:56]POST & json_proto [11:21:56]process_json_proto [11:21:56]json parsed OK: [11:21:56]protocol is kg_v1.0 [11:21:56]action value=close_receipt [11:21:56]process_action close_receipt [11:21:56]cmd_close_receipt [11:21:56]MH_GetDate [11:21:56]Write to MH i2c: F0 00 00 09 31 29 [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: F0 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: F0 09 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: F0 09 00 09 31 00 57 7C C4 66 5F 7F 2B 66 9E [11:21:56]GetLastDocTimeStamp 1724152774 [11:21:56]current date 1724152919 [11:21:56]FM_GetShiftState [11:21:56]SAM_PROTO_GetShiftState [11:21:56]wFMCommunicate request_size=4 [11:21:56]MH_SAM_APDU [11:21:56]CAPDU: 80 13 01 00 [11:21:56]Write to MH i2c: E2 08 00 0A 31 80 13 01 00 00 00 00 00 B8 [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:56]Read from MH i2c: E2 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: E2 0E 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: E2 0E 00 0A 31 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 49 [11:21:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:21:56]wFMCommunicate OK [11:21:56]SAM_PROTO_GetShiftState done [11:21:56]FM_GetShiftState done [11:21:56]opened in 1724113785 [11:21:56]opened+sec_in_day 1724200185 [11:21:56]quantity*price = 100005 [11:21:56]sum+1 = 100006 [11:21:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 125 20.08.2024 11:21 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139653 ФПД: 79915592431777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112159&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139653&fm=79915592431777&tin=02508201610067®Number=0000000000092569&sum=100000 [11:21:57]StoreToDocumentArchive [11:21:57]shift 453 fd 139653 [11:21:57]save to /storage/0453/doc_00139653 [11:21:57]save last doc name /storage/0453/doc_00139653 to /storage/kkm_last_doc_name [11:21:57]save OK [11:21:57]Clear old archive folders... [11:21:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:57]tlvbuf is B6F95010 [11:21:57]SAM_PROTO_ClearQueue [11:21:57]wFMCommunicate request_size=4 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 09 00 00 [11:21:57]Write to MH i2c: E2 08 00 17 31 80 09 00 00 00 00 00 00 BA [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 03 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 03 00 17 31 00 90 00 BC [11:21:57]RAPDU: 90 00 [11:21:57]wFMCommunicate OK [11:21:57]SAM_PROTO_ClearQueue done [11:21:57]KKMCreateOFDPacket [11:21:57]OFDProtocolAddRootSTLVToBuf [11:21:57]FM_MakeSignedData [11:21:57]FM_MakeSignedData [11:21:57]SAM_PROTO_SignData [11:21:57]wFMCommunicate request_size=4 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 0D 01 02 [11:21:57]Write to MH i2c: E2 08 00 18 31 80 0D 01 02 00 00 00 00 C2 [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 03 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 03 00 18 31 00 90 00 BD [11:21:57]RAPDU: 90 00 [11:21:57]wFMCommunicate OK [11:21:57]wFMCommunicate request_size=255 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 57 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 21 02 00 35 04 06 00 48 [11:21:57]Write to MH i2c: E2 02 01 19 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 57 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 21 02 00 35 04 06 00 48 00 00 0A [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 19 31 00 90 00 BE [11:21:58]RAPDU: 90 00 [11:21:58]wFMCommunicate OK [11:21:58]wFMCommunicate request_size=10 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 0D 02 02 05 AE CC 7F B8 A1 [11:21:58]Write to MH i2c: E2 0D 00 1A 31 80 0D 02 02 05 00 AE CC 7F B8 A1 00 00 21 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 03 00 1A 31 00 90 00 BF [11:21:58]RAPDU: 90 00 [11:21:58]wFMCommunicate OK [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 0D 03 02 [11:21:58]Write to MH i2c: E2 08 00 1B 31 80 0D 03 02 00 00 00 00 C7 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0B 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 0B 00 1B 31 00 F4 6F 2B 89 24 3E F9 8C 90 00 C6 [11:21:58]RAPDU: F4 6F 2B 89 24 3E F9 8C 90 00 [11:21:58]wFMCommunicate OK [11:21:58]SAM_PROTO_SignData done [11:21:58]FM_MakeSignedData done [11:21:58]CreateOFDProtocolMessage [11:21:58]wFMCommunicate request_size=4 [11:21:58]MH_SAM_APDU [11:21:58]CAPDU: 80 11 00 00 [11:21:58]Write to MH i2c: E2 08 00 1C 31 80 11 00 00 00 00 00 00 C7 [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:58]Read from MH i2c: E2 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 17 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: E2 17 00 1C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [11:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:21:58]wFMCommunicate OK [11:21:58]CreateOFDProtocolMessage done [11:21:58]OFDSenderStorePacket 139653 [11:21:58]StoreOFDPacket docnum=139653 [11:21:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 33 52 07 01 29 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 57 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 21 02 00 35 04 06 00 48 AE CC 7F B8 A1 F4 6F 2B 89 24 3E F9 8C [11:21:58]CheckFolder [11:21:58]dirname=/storage/ofd_packets [11:21:58]CheckFolder done [11:21:58]ProducePacketName [11:21:58]name=ofd_packets/00139653 [11:21:58]NVStorageSaveData ofd_packets/00139653 [11:21:58]File name is /storage/ofd_packets/00139653 [11:21:58]Write 301 bytes [11:21:58]NVStorageSaveData done [11:21:58]OFDSenderStorePacket done [11:21:58]KKMCreateOFDPacket done [11:21:58]NVStorageSaveData kkm_last_timestamp [11:21:58]File name is /storage/kkm_last_timestamp [11:21:58]Write 4 bytes [11:21:58]NVStorageSaveData done [11:21:58]OFD Sender: Processing packet 139653 [packets to send 137, broken 136] [11:21:58]ProducePacketName [11:21:58]name=ofd_packets/00139653 [11:21:58]OFD Sender: To server: pG, [11:21:58]CommunicateWithHost lk.salyk.kg:30040 [11:21:58]ConnectInit lk.salyk.kg [11:21:58]ExternCall_PrintAddStr [11:21:58]wPrintStart [11:21:58]Write to MH i2c: 01 00 00 1D 31 4E [11:21:58]Write i2c OK [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 07 00 [11:21:58]MH_I2C_Read... [11:21:58]Read from MH i2c: 01 07 00 1D 31 00 00 00 00 00 FF 0F 63 [11:21:58]RasterBufferAndPrint [11:21:58]line Счет N : (1)593500 [11:21:58]line ИНН: 02508201610067 [11:21:58]line Контрольно-Кассовый Чек [11:21:58]line ПРОДАЖА [11:21:58]line ТРК (МРК, ГНК) : 32 [11:21:58]line Товар: 2710124130 [11:21:58]line Аи-92-К-5 [11:21:58]line 14.750 * 67.80 [11:21:58]line = 1000.05 [11:21:58]line НДС 12% НСП 1% [11:21:58]line > о реализуемом товаре [11:21:58]line ОКРУГЛЕНИЕ: -0.05 [11:21:58]line ИТОГО: 1000.00 [11:21:58]line Внесено: 1000.00 [11:21:58]line СДАЧА: 0.00 [11:21:58]line НСП 1% : 8.85 [11:21:58]line НДС 12% : 106.20 [11:21:58]line Наличными: 1000.00 [11:21:58]line Безнал.: 0.00 [11:21:58]line Место: АЗС № 136 "Партнер Нефть" [11:21:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:21:58]line СНО: Общий режим [11:21:58]line Чек 125 20.08.2024 11:21 [11:21:58]line Смена: 453 ФФД: 1.0 [11:21:58]line ЗНМ: 0300000067 [11:21:58]line РНМ: 0000000000092569 [11:21:58]line Версия ККМ: 001 [11:21:58]line ФМ: 0000000000871776 [11:21:58]line ФД: 139653 [11:21:58]line ФПД: 79915592431777 [11:21:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112159&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139653&fm=79915592431777&tin=02508201610067®Number=0000000000092569&sum=100000 [11:21:58]Connected sock=11 [11:21:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 33 52 07 01 29 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 57 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 21 02 00 35 04 06 00 48 AE CC 7F B8 A1 F4 6F 2B 89 24 3E F9 8C [11:21:58]written 0, free lines is 4095 [11:21:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2B 75 47 00 11 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 21 02 00 F4 03 04 00 EB 22 C4 66 B6 04 01 00 00 B9 E4 6F 70 47 0D 96 49 [11:21:58]CommunicateWithHost err = 0 [11:21:58]CheckOFDResponse [11:21:58]1017 (14) - 77093643461234 [11:21:58]1041 (16) - 0000000000871776 [11:21:58]1040 (4) - 139653 [11:21:58]1012 (4) - 20.08.2024 05:00 [11:21:58]1206 (1) - 0 [11:21:58]OFD Sender: Remove packet 139653 [11:21:58]ProducePacketName [11:21:58]name=ofd_packets/00139653 [11:21:58]NVStorageDeleteData [11:21:59]Write to MH i2c: 01 00 00 48 31 79 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 07 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: 01 07 00 48 31 00 00 00 00 00 C1 0C 4D [11:21:59]RasterBufferAndPrint [11:21:59]line [11:21:59]line [11:21:59]line [11:21:59]line [11:21:59]line [11:21:59]written 0, free lines is 3272 [11:21:59]MH_Cut [11:21:59]Write to MH i2c: D1 01 00 4F 31 01 52 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: D1 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: D1 01 00 [11:21:59]MH_I2C_Read... [11:21:59]Read from MH i2c: D1 01 00 4F 31 00 51 [11:21:59]Write to MH i2c: 01 00 00 50 31 81 [11:21:59]Write i2c OK [11:21:59]MH_I2C_Read... [11:21:59]OFD Sender: No OFD packet to send [11:21:59]*** Cut start [11:21:59]*** Partial cut [11:21:59]*** CUTSNS_PIN = 1 [11:21:59]*** CUTSNS_PIN = 0 [11:22:00]*** Brake cut motor [11:22:00]Read from MH i2c: 01 [11:22:00]MH_I2C_Read... [11:22:00]*** Stop cut motor [11:22:00]*** Cut end [11:22:00]Read from MH i2c: 01 07 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: 01 07 00 50 31 00 00 00 00 00 FF 0F 96 [11:22:00]process_action close_receipt done [11:22:00]requested_data is exist [11:22:00]produce_requested_data [11:22:00]requested_item fm.sn is exist - process it [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 11 00 00 [11:22:00]Write to MH i2c: E2 08 00 51 31 80 11 00 00 00 00 00 00 FC [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 17 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 17 00 51 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [11:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:22:00]wFMCommunicate OK [11:22:00]requested_item fd.num is exist - process it [11:22:00]SAM_PROTO_GetFieldsCounters [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 13 00 00 [11:22:00]Write to MH i2c: E2 08 00 52 31 80 13 00 00 00 00 00 00 FF [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 62 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 62 00 52 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [11:22:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:00]wFMCommunicate OK [11:22:00]SAM_PROTO_GetFieldsCounters done [11:22:00]requested_item shift.num is exist - process it [11:22:00]requested_item shift.opened is exist - process it [11:22:00]req_shift_opened [11:22:00]FM_GetShiftState [11:22:00]SAM_PROTO_GetShiftState [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 13 01 00 [11:22:00]Write to MH i2c: E2 08 00 53 31 80 13 01 00 00 00 00 00 01 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0E 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0E 00 53 31 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 92 [11:22:00]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:22:00]wFMCommunicate OK [11:22:00]SAM_PROTO_GetShiftState done [11:22:00]FM_GetShiftState done [11:22:00]req_shift_opened done [11:22:00]requested_item shift.open_date is exist - process it [11:22:00]req_shift_open_date [11:22:00]req_shift_open_date done [11:22:00]produce_requested_data done [11:22:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139653,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:22:00]process_action_free close_receipt [11:22:00]json_value_free [11:22:00]json_value_free done [11:22:00]process_json_proto returns [11:22:00]Send response to host [11:22:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139653,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:22:00]free response buf [11:22:00]execute_script done [11:22:00]execute_script returns [11:22:00]free content buf [11:22:00]Sock 9.Close socket [11:22:00]Sock 9.Thread stoped [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:37]accept exits with 7 [11:22:37]New connection [11:22:37]New thread 3067215204 created [11:22:37]Thread 3067071844 joined [11:22:37]Waiting for new connection... [11:22:37] Sock 7.Parse request [11:22:37]Sock 7.Check first char [11:22:37]Sock 7.First char is OK [11:22:37]request: POST /json_proto HTTP/1.0 [11:22:37]Method: POST [11:22:37]URL: /json_proto [11:22:37]Method is POST - this is cgi request [11:22:37]url: /json_proto [11:22:37]query_string will be loaded in cgi processing [11:22:37]execute_cgi json_proto POST (null) [11:22:37]execute_cgi path=json_proto method=POST [11:22:37]POST find Content-Length [11:22:37]Host: 172.17.45.67:8080 [11:22:37]Content-Length: 677 [11:22:37]Content-Type: application/json [11:22:37] [11:22:37]POST finish read [11:22:37]Found Content-Length = 677 [11:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:37]execute_script... [11:22: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)593499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:37]POST & json_proto [11:22:37]process_json_proto [11:22:37]json parsed OK: [11:22:37]protocol is kg_v1.0 [11:22:37]action value=close_receipt [11:22:37]process_action close_receipt [11:22:37]cmd_close_receipt [11:22:37]MH_GetDate [11:22:37]Write to MH i2c: F0 00 00 54 31 74 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: F0 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: F0 09 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: F0 09 00 54 31 00 80 7C C4 66 5F 7F 2B 66 12 [11:22:37]GetLastDocTimeStamp 1724152919 [11:22:37]current date 1724152960 [11:22:37]FM_GetShiftState [11:22:37]SAM_PROTO_GetShiftState [11:22:37]wFMCommunicate request_size=4 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 13 01 00 [11:22:37]Write to MH i2c: E2 08 00 55 31 80 13 01 00 00 00 00 00 03 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 0E 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 0E 00 55 31 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 94 [11:22:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:22:37]wFMCommunicate OK [11:22:37]SAM_PROTO_GetShiftState done [11:22:37]FM_GetShiftState done [11:22:37]opened in 1724113785 [11:22:37]opened+sec_in_day 1724200185 [11:22:37]quantity*price = 50036 [11:22:37]sum+1 = 50037 [11:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 126 20.08.2024 11:22 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139654 ФПД: 168037625045996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112240&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139654&fm=168037625045996&tin=02508201610067®Number=0000000000092569&sum=50000 [11:22:38]StoreToDocumentArchive [11:22:38]shift 453 fd 139654 [11:22:38]save to /storage/0453/doc_00139654 [11:22:38]save last doc name /storage/0453/doc_00139654 to /storage/kkm_last_doc_name [11:22:38]save OK [11:22:38]Clear old archive folders... [11:22:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:38]tlvbuf is 00E22730 [11:22:38]SAM_PROTO_ClearQueue [11:22:38]wFMCommunicate request_size=4 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 09 00 00 [11:22:38]Write to MH i2c: E2 08 00 62 31 80 09 00 00 00 00 00 00 05 [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 03 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 03 00 62 31 00 90 00 07 [11:22:38]RAPDU: 90 00 [11:22:38]wFMCommunicate OK [11:22:38]SAM_PROTO_ClearQueue done [11:22:38]KKMCreateOFDPacket [11:22:38]OFDProtocolAddRootSTLVToBuf [11:22:38]FM_MakeSignedData [11:22:38]FM_MakeSignedData [11:22:38]SAM_PROTO_SignData [11:22:38]wFMCommunicate request_size=4 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 0D 01 02 [11:22:38]Write to MH i2c: E2 08 00 63 31 80 0D 01 02 00 00 00 00 0D [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 03 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 03 00 63 31 00 90 00 08 [11:22:38]RAPDU: 90 00 [11:22:38]wFMCommunicate OK [11:22:38]wFMCommunicate request_size=255 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 80 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 21 02 00 35 04 06 00 98 [11:22:38]Write to MH i2c: E2 02 01 64 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 80 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 21 02 00 35 04 06 00 98 00 00 41 [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 03 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 03 00 64 31 00 90 00 09 [11:22:38]RAPDU: 90 00 [11:22:38]wFMCommunicate OK [11:22:38]wFMCommunicate request_size=10 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 0D 02 02 05 D4 4E F3 23 EC [11:22:38]Write to MH i2c: E2 0D 00 65 31 80 0D 02 02 05 00 D4 4E F3 23 EC 00 00 3E [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 03 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 03 00 65 31 00 90 00 0A [11:22:38]RAPDU: 90 00 [11:22:38]wFMCommunicate OK [11:22:38]wFMCommunicate request_size=4 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 0D 03 02 [11:22:38]Write to MH i2c: E2 08 00 66 31 80 0D 03 02 00 00 00 00 12 [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 0B 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 0B 00 66 31 00 09 54 F8 20 4F 50 23 6D 90 00 B7 [11:22:38]RAPDU: 09 54 F8 20 4F 50 23 6D 90 00 [11:22:38]wFMCommunicate OK [11:22:38]SAM_PROTO_SignData done [11:22:38]FM_MakeSignedData done [11:22:38]CreateOFDProtocolMessage [11:22:38]wFMCommunicate request_size=4 [11:22:38]MH_SAM_APDU [11:22:38]CAPDU: 80 11 00 00 [11:22:38]Write to MH i2c: E2 08 00 67 31 80 11 00 00 00 00 00 00 12 [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:38]Read from MH i2c: E2 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 17 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: E2 17 00 67 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [11:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:22:38]wFMCommunicate OK [11:22:38]CreateOFDProtocolMessage done [11:22:38]OFDSenderStorePacket 139654 [11:22:38]StoreOFDPacket docnum=139654 [11:22:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4D 54 07 01 36 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 80 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 21 02 00 35 04 06 00 98 D4 4E F3 23 EC 09 54 F8 20 4F 50 23 6D [11:22:38]CheckFolder [11:22:38]dirname=/storage/ofd_packets [11:22:38]CheckFolder done [11:22:38]ProducePacketName [11:22:38]name=ofd_packets/00139654 [11:22:38]NVStorageSaveData ofd_packets/00139654 [11:22:38]File name is /storage/ofd_packets/00139654 [11:22:38]Write 301 bytes [11:22:38]NVStorageSaveData done [11:22:38]OFDSenderStorePacket done [11:22:38]KKMCreateOFDPacket done [11:22:38]NVStorageSaveData kkm_last_timestamp [11:22:38]File name is /storage/kkm_last_timestamp [11:22:38]Write 4 bytes [11:22:38]NVStorageSaveData done [11:22:38]ExternCall_PrintAddStr [11:22:38]wPrintStart [11:22:38]Write to MH i2c: 01 00 00 68 31 99 [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: 01 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: 01 07 00 [11:22:38]MH_I2C_Read... [11:22:39]Read from MH i2c: 01 07 00 68 31 00 00 00 00 00 FF 0F AE [11:22:39]RasterBufferAndPrint [11:22:39]line Счет N : (1)593499 [11:22:39]line ИНН: 02508201610067 [11:22:39]line Контрольно-Кассовый Чек [11:22:39]line ПРОДАЖА [11:22:39]line ТРК (МРК, ГНК) : 42 [11:22:39]line Товар: 2710124130 [11:22:39]line Аи-92-К-5 [11:22:39]line 7.380 * 67.80 [11:22:39]line = 500.36 [11:22:39]line НДС 12% НСП 1% [11:22:39]line > о реализуемом товаре [11:22:39]line ОКРУГЛЕНИЕ: -0.36 [11:22:39]line ИТОГО: 500.00 [11:22:39]line Внесено: 500.00 [11:22:39]line СДАЧА: 0.00 [11:22:39]line НСП 1% : 4.43 [11:22:39]line НДС 12% : 53.14 [11:22:39]line Наличными: 500.00 [11:22:39]line Безнал.: 0.00 [11:22:39]line Место: АЗС № 136 "Партнер Нефть" [11:22:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:22:39]line СНО: Общий режим [11:22:39]line Чек 126 20.08.2024 11:22 [11:22:39]line Смена: 453 ФФД: 1.0 [11:22:39]line ЗНМ: 0300000067 [11:22:39]line РНМ: 0000000000092569 [11:22:39]line Версия ККМ: 001 [11:22:39]line ФМ: 0000000000871776 [11:22:39]line ФД: 139654 [11:22:39]line ФПД: 168037625045996 [11:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112240&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139654&fm=168037625045996&tin=02508201610067®Number=0000000000092569&sum=50000 [11:22:39]written 0, free lines is 4095 [11:22:39]OFD Sender: Processing packet 139654 [packets to send 137, broken 136] [11:22:39]ProducePacketName [11:22:39]name=ofd_packets/00139654 [11:22:39]OFD Sender: To server: pG, [11:22:39]CommunicateWithHost lk.salyk.kg:30040 [11:22:39]ConnectInit lk.salyk.kg [11:22:39]Connected sock=10 [11:22:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4D 54 07 01 36 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 80 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 21 02 00 35 04 06 00 98 D4 4E F3 23 EC 09 54 F8 20 4F 50 23 6D [11:22:39]Write to MH i2c: 01 00 00 93 31 C4 [11:22:39]Write i2c OK [11:22:39]MH_I2C_Read... [11:22:39]Read from MH i2c: 01 [11:22:39]MH_I2C_Read... [11:22:39]Read from MH i2c: 01 07 00 [11:22:39]MH_I2C_Read... [11:22:39]Read from MH i2c: 01 07 00 93 31 00 00 00 00 00 BE 0C 95 [11:22:39]RasterBufferAndPrint [11:22:39]line [11:22:39]line [11:22:39]line [11:22:39]line [11:22:39]line [11:22:39]written 0, free lines is 3268 [11:22:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4E 76 47 00 B4 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 21 02 00 F4 03 04 00 14 23 C4 66 B6 04 01 00 00 5F 6A 0E F0 EC FF B5 8C [11:22:39]CommunicateWithHost err = 0 [11:22:39]CheckOFDResponse [11:22:39]1017 (14) - 77093643461234 [11:22:39]1041 (16) - 0000000000871776 [11:22:39]1040 (4) - 139654 [11:22:39]1012 (4) - 20.08.2024 05:01 [11:22:39]1206 (1) - 0 [11:22:39]OFD Sender: Remove packet 139654 [11:22:39]ProducePacketName [11:22:39]name=ofd_packets/00139654 [11:22:39]NVStorageDeleteData [11:22:39]MH_Cut [11:22:39]Write to MH i2c: D1 01 00 9A 31 01 9D [11:22:39]Write i2c OK [11:22:39]MH_I2C_Read... [11:22:39]Read from MH i2c: D1 [11:22:39]MH_I2C_Read... [11:22:39]Read from MH i2c: D1 01 00 [11:22:39]MH_I2C_Read... [11:22:39]Read from MH i2c: D1 01 00 9A 31 00 9C [11:22:39]Write to MH i2c: 01 00 00 9B 31 CC [11:22:39]Write i2c OK [11:22:39]MH_I2C_Read... [11:22:40]OFD Sender: No OFD packet to send [11:22:40]*** Cut start [11:22:40]*** Partial cut [11:22:40]*** CUTSNS_PIN = 1 [11:22:40]*** CUTSNS_PIN = 0 [11:22:40]*** Brake cut motor [11:22:41]Read from MH i2c: 01 [11:22:41]MH_I2C_Read... [11:22:41]*** Stop cut motor [11:22:41]*** Cut end [11:22:41]Read from MH i2c: 01 07 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: 01 07 00 9B 31 00 00 00 00 00 FF 0F E1 [11:22:41]process_action close_receipt done [11:22:41]requested_data is exist [11:22:41]produce_requested_data [11:22:41]requested_item fm.sn is exist - process it [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 11 00 00 [11:22:41]Write to MH i2c: E2 08 00 9C 31 80 11 00 00 00 00 00 00 47 [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 17 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 17 00 9C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [11:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:22:41]wFMCommunicate OK [11:22:41]requested_item fd.num is exist - process it [11:22:41]SAM_PROTO_GetFieldsCounters [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 13 00 00 [11:22:41]Write to MH i2c: E2 08 00 9D 31 80 13 00 00 00 00 00 00 4A [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 62 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 62 00 9D 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [11:22:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:41]wFMCommunicate OK [11:22:41]SAM_PROTO_GetFieldsCounters done [11:22:41]requested_item shift.num is exist - process it [11:22:41]requested_item shift.opened is exist - process it [11:22:41]req_shift_opened [11:22:41]FM_GetShiftState [11:22:41]SAM_PROTO_GetShiftState [11:22:41]wFMCommunicate request_size=4 [11:22:41]MH_SAM_APDU [11:22:41]CAPDU: 80 13 01 00 [11:22:41]Write to MH i2c: E2 08 00 9E 31 80 13 01 00 00 00 00 00 4C [11:22:41]Write i2c OK [11:22:41]MH_I2C_Read... [11:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:41]Read from MH i2c: E2 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 0E 00 [11:22:41]MH_I2C_Read... [11:22:41]Read from MH i2c: E2 0E 00 9E 31 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DD [11:22:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:22:41]wFMCommunicate OK [11:22:41]SAM_PROTO_GetShiftState done [11:22:41]FM_GetShiftState done [11:22:41]req_shift_opened done [11:22:41]requested_item shift.open_date is exist - process it [11:22:41]req_shift_open_date [11:22:41]req_shift_open_date done [11:22:41]produce_requested_data done [11:22:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139654,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:22:41]process_action_free close_receipt [11:22:41]json_value_free [11:22:41]json_value_free done [11:22:41]process_json_proto returns [11:22:41]Send response to host [11:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139654,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:22:41]free response buf [11:22:41]execute_script done [11:22:41]execute_script returns [11:22:41]free content buf [11:22:41]Sock 7.Close socket [11:22:41]Sock 7.Thread stoped [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:44]accept exits with 9 [11:24:44]New connection [11:24:44]New thread 3067071844 created [11:24:44]Thread 3067215204 joined [11:24:44]Waiting for new connection... [11:24:44] Sock 9.Parse request [11:24:44]Sock 9.Check first char [11:24:44]Sock 9.First char is OK [11:24:44]request: POST /json_proto HTTP/1.0 [11:24:44]Method: POST [11:24:44]URL: /json_proto [11:24:44]Method is POST - this is cgi request [11:24:44]url: /json_proto [11:24:44]query_string will be loaded in cgi processing [11:24:44]execute_cgi json_proto POST (null) [11:24:44]execute_cgi path=json_proto method=POST [11:24:44]POST find Content-Length [11:24:44]Host: 172.17.45.67:8080 [11:24:44]Content-Length: 663 [11:24:44]Content-Type: application/json [11:24:44] [11:24:44]POST finish read [11:24:44]Found Content-Length = 663 [11:24:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:44]execute_script... [11:24: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)593501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:44]POST & json_proto [11:24:44]process_json_proto [11:24:44]json parsed OK: [11:24:44]protocol is kg_v1.0 [11:24:44]action value=close_receipt [11:24:44]process_action close_receipt [11:24:44]cmd_close_receipt [11:24:44]MH_GetDate [11:24:44]Write to MH i2c: F0 00 00 9F 31 BF [11:24:44]Write i2c OK [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: F0 [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: F0 09 00 [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: F0 09 00 9F 31 00 FF 7C C4 66 5F 7F 2B 66 DC [11:24:44]GetLastDocTimeStamp 1724152960 [11:24:44]current date 1724153087 [11:24:44]FM_GetShiftState [11:24:44]SAM_PROTO_GetShiftState [11:24:44]wFMCommunicate request_size=4 [11:24:44]MH_SAM_APDU [11:24:44]CAPDU: 80 13 01 00 [11:24:44]Write to MH i2c: E2 08 00 A0 31 80 13 01 00 00 00 00 00 4E [11:24:44]Write i2c OK [11:24:44]MH_I2C_Read... [11:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:44]Read from MH i2c: E2 [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: E2 0E 00 [11:24:44]MH_I2C_Read... [11:24:44]Read from MH i2c: E2 0E 00 A0 31 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DF [11:24:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:24:44]wFMCommunicate OK [11:24:44]SAM_PROTO_GetShiftState done [11:24:44]FM_GetShiftState done [11:24:44]opened in 1724113785 [11:24:44]opened+sec_in_day 1724200185 [11:24:44]quantity*price = 100035 [11:24:44]sum+1 = 100036 [11:24:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 127 20.08.2024 11:24 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139655 ФПД: 229963118140333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112447&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139655&fm=229963118140333&tin=02508201610067®Number=0000000000092569&sum=100000 [11:24:45]StoreToDocumentArchive [11:24:45]shift 453 fd 139655 [11:24:45]save to /storage/0453/doc_00139655 [11:24:45]save last doc name /storage/0453/doc_00139655 to /storage/kkm_last_doc_name [11:24:45]save OK [11:24:45]Clear old archive folders... [11:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:24:45]tlvbuf is 00D44AA0 [11:24:45]SAM_PROTO_ClearQueue [11:24:45]wFMCommunicate request_size=4 [11:24:45]MH_SAM_APDU [11:24:45]CAPDU: 80 09 00 00 [11:24:45]Write to MH i2c: E2 08 00 AD 31 80 09 00 00 00 00 00 00 50 [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:45]Read from MH i2c: E2 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 AD 31 00 90 00 52 [11:24:45]RAPDU: 90 00 [11:24:45]wFMCommunicate OK [11:24:45]SAM_PROTO_ClearQueue done [11:24:45]KKMCreateOFDPacket [11:24:45]OFDProtocolAddRootSTLVToBuf [11:24:45]FM_MakeSignedData [11:24:45]FM_MakeSignedData [11:24:45]SAM_PROTO_SignData [11:24:45]wFMCommunicate request_size=4 [11:24:45]MH_SAM_APDU [11:24:45]CAPDU: 80 0D 01 02 [11:24:45]Write to MH i2c: E2 08 00 AE 31 80 0D 01 02 00 00 00 00 58 [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:45]Read from MH i2c: E2 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 AE 31 00 90 00 53 [11:24:45]RAPDU: 90 00 [11:24:45]wFMCommunicate OK [11:24:45]wFMCommunicate request_size=253 [11:24:45]MH_SAM_APDU [11:24:45]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FF 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 21 02 00 35 04 06 00 D1 26 75 F7 DB AD [11:24:45]Write to MH i2c: E2 00 01 AF 31 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FF 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 21 02 00 35 04 06 00 D1 26 75 F7 DB AD 00 00 4F [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:45]Read from MH i2c: E2 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 03 00 AF 31 00 90 00 54 [11:24:45]RAPDU: 90 00 [11:24:45]wFMCommunicate OK [11:24:45]wFMCommunicate request_size=4 [11:24:45]MH_SAM_APDU [11:24:45]CAPDU: 80 0D 03 02 [11:24:45]Write to MH i2c: E2 08 00 B0 31 80 0D 03 02 00 00 00 00 5C [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:45]Read from MH i2c: E2 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 0B 00 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 0B 00 B0 31 00 73 C2 5A DA 19 BA 8A 23 90 00 46 [11:24:45]RAPDU: 73 C2 5A DA 19 BA 8A 23 90 00 [11:24:45]wFMCommunicate OK [11:24:45]SAM_PROTO_SignData done [11:24:45]FM_MakeSignedData done [11:24:45]CreateOFDProtocolMessage [11:24:45]wFMCommunicate request_size=4 [11:24:45]MH_SAM_APDU [11:24:45]CAPDU: 80 11 00 00 [11:24:45]Write to MH i2c: E2 08 00 B1 31 80 11 00 00 00 00 00 00 5C [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:45]Read from MH i2c: E2 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 17 00 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: E2 17 00 B1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B3 [11:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:24:45]wFMCommunicate OK [11:24:45]CreateOFDProtocolMessage done [11:24:45]OFDSenderStorePacket 139655 [11:24:45]StoreOFDPacket docnum=139655 [11:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 3D C4 00 01 86 A0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FF 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 21 02 00 35 04 06 00 D1 26 75 F7 DB AD 73 C2 5A DA 19 BA 8A 23 [11:24:45]CheckFolder [11:24:45]dirname=/storage/ofd_packets [11:24:45]CheckFolder done [11:24:45]ProducePacketName [11:24:45]name=ofd_packets/00139655 [11:24:45]NVStorageSaveData ofd_packets/00139655 [11:24:45]File name is /storage/ofd_packets/00139655 [11:24:45]Write 294 bytes [11:24:45]NVStorageSaveData done [11:24:45]OFDSenderStorePacket done [11:24:45]KKMCreateOFDPacket done [11:24:45]NVStorageSaveData kkm_last_timestamp [11:24:45]File name is /storage/kkm_last_timestamp [11:24:45]Write 4 bytes [11:24:45]NVStorageSaveData done [11:24:45]ExternCall_PrintAddStr [11:24:45]wPrintStart [11:24:45]Write to MH i2c: 01 00 00 B2 31 E3 [11:24:45]Write i2c OK [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: 01 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: 01 07 00 [11:24:45]MH_I2C_Read... [11:24:45]Read from MH i2c: 01 07 00 B2 31 00 00 00 00 00 FF 0F F8 [11:24:45]RasterBufferAndPrint [11:24:45]line Счет N : (1)593501 [11:24:45]line ИНН: 02508201610067 [11:24:45]line Контрольно-Кассовый Чек [11:24:45]line ПРОДАЖА [11:24:45]line ТРК (МРК, ГНК) : 33 [11:24:45]line Товар: 2710124130 [11:24:45]line SU-92 [11:24:45]line 14.540 * 68.80 [11:24:45]line = 1000.35 [11:24:45]line НДС 12% НСП 1% [11:24:45]line > о реализуемом товаре [11:24:45]line ОКРУГЛЕНИЕ: -0.35 [11:24:45]line ИТОГО: 1000.00 [11:24:45]line Внесено: 1000.00 [11:24:45]line СДАЧА: 0.00 [11:24:45]line НСП 1% : 8.85 [11:24:45]line НДС 12% : 106.23 [11:24:45]line Наличными: 1000.00 [11:24:45]line Безнал.: 0.00 [11:24:45]line Место: АЗС № 136 "Партнер Нефть" [11:24:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:24:45]line СНО: Общий режим [11:24:45]line Чек 127 20.08.2024 11:24 [11:24:45]line Смена: 453 ФФД: 1.0 [11:24:45]line ЗНМ: 0300000067 [11:24:45]line РНМ: 0000000000092569 [11:24:45]line Версия ККМ: 001 [11:24:45]line ФМ: 0000000000871776 [11:24:45]line ФД: 139655 [11:24:45]line ФПД: 229963118140333 [11:24:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112447&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139655&fm=229963118140333&tin=02508201610067®Number=0000000000092569&sum=100000 [11:24:46]OFD Sender: Processing packet 139655 [packets to send 137, broken 136] [11:24:46]ProducePacketName [11:24:46]name=ofd_packets/00139655 [11:24:46]OFD Sender: To server: pG, [11:24:46]CommunicateWithHost lk.salyk.kg:30040 [11:24:46]ConnectInit lk.salyk.kg [11:24:46]written 0, free lines is 4095 [11:24:46]Connected sock=10 [11:24:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 3D C4 00 01 86 A0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FF 7C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 21 02 00 35 04 06 00 D1 26 75 F7 DB AD 73 C2 5A DA 19 BA 8A 23 [11:24:46]Write to MH i2c: 01 00 00 DD 31 0E [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: 01 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: 01 07 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: 01 07 00 DD 31 00 00 00 00 00 C4 0C E5 [11:24:46]RasterBufferAndPrint [11:24:46]line [11:24:46]line [11:24:46]line [11:24:46]line [11:24:46]line [11:24:46]written 0, free lines is 3274 [11:24:46]MH_Cut [11:24:46]Write to MH i2c: D1 01 00 E4 31 01 E7 [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: D1 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: D1 01 00 [11:24:46]MH_I2C_Read... [11:24:46]Read from MH i2c: D1 01 00 E4 31 00 E6 [11:24:46]Write to MH i2c: 01 00 00 E5 31 16 [11:24:46]Write i2c OK [11:24:46]MH_I2C_Read... [11:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3E 21 47 00 D2 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 21 02 00 F4 03 04 00 93 23 C4 66 B6 04 01 00 00 EB 36 84 A6 AC EF 90 63 [11:24:46]CommunicateWithHost err = 0 [11:24:46]CheckOFDResponse [11:24:46]1017 (14) - 77093643461234 [11:24:46]1041 (16) - 0000000000871776 [11:24:46]1040 (4) - 139655 [11:24:46]1012 (4) - 20.08.2024 05:03 [11:24:46]1206 (1) - 0 [11:24:46]OFD Sender: Remove packet 139655 [11:24:46]ProducePacketName [11:24:46]name=ofd_packets/00139655 [11:24:46]NVStorageDeleteData [11:24:47]OFD Sender: No OFD packet to send [11:24:47]*** Cut start [11:24:47]*** Partial cut [11:24:47]*** CUTSNS_PIN = 1 [11:24:47]*** CUTSNS_PIN = 0 [11:24:47]*** Brake cut motor [11:24:48]Read from MH i2c: 01 [11:24:48]MH_I2C_Read... [11:24:48]*** Stop cut motor [11:24:48]*** Cut end [11:24:48]Read from MH i2c: 01 07 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: 01 07 00 E5 31 00 00 00 00 00 FF 0F 2B [11:24:48]process_action close_receipt done [11:24:48]requested_data is exist [11:24:48]produce_requested_data [11:24:48]requested_item fm.sn is exist - process it [11:24:48]wFMCommunicate request_size=4 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 11 00 00 [11:24:48]Write to MH i2c: E2 08 00 E6 31 80 11 00 00 00 00 00 00 91 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 17 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 17 00 E6 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [11:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:24:48]wFMCommunicate OK [11:24:48]requested_item fd.num is exist - process it [11:24:48]SAM_PROTO_GetFieldsCounters [11:24:48]wFMCommunicate request_size=4 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 13 00 00 [11:24:48]Write to MH i2c: E2 08 00 E7 31 80 13 00 00 00 00 00 00 94 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 62 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 62 00 E7 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [11:24:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:48]wFMCommunicate OK [11:24:48]SAM_PROTO_GetFieldsCounters done [11:24:48]requested_item shift.num is exist - process it [11:24:48]requested_item shift.opened is exist - process it [11:24:48]req_shift_opened [11:24:48]FM_GetShiftState [11:24:48]SAM_PROTO_GetShiftState [11:24:48]wFMCommunicate request_size=4 [11:24:48]MH_SAM_APDU [11:24:48]CAPDU: 80 13 01 00 [11:24:48]Write to MH i2c: E2 08 00 E8 31 80 13 01 00 00 00 00 00 96 [11:24:48]Write i2c OK [11:24:48]MH_I2C_Read... [11:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:48]Read from MH i2c: E2 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 0E 00 [11:24:48]MH_I2C_Read... [11:24:48]Read from MH i2c: E2 0E 00 E8 31 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 27 [11:24:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:24:48]wFMCommunicate OK [11:24:48]SAM_PROTO_GetShiftState done [11:24:48]FM_GetShiftState done [11:24:48]req_shift_opened done [11:24:48]requested_item shift.open_date is exist - process it [11:24:48]req_shift_open_date [11:24:48]req_shift_open_date done [11:24:48]produce_requested_data done [11:24:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139655,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:24:48]process_action_free close_receipt [11:24:48]json_value_free [11:24:48]json_value_free done [11:24:48]process_json_proto returns [11:24:48]Send response to host [11:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139655,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:24:48]free response buf [11:24:48]execute_script done [11:24:48]execute_script returns [11:24:48]free content buf [11:24:48]Sock 9.Close socket [11:24:48]Sock 9.Thread stoped [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:28]accept exits with 7 [11:25:28]New connection [11:25:28]New thread 3067215204 created [11:25:28]Thread 3067071844 joined [11:25:28]Waiting for new connection... [11:25:28] Sock 7.Parse request [11:25:28]Sock 7.Check first char [11:25:28]Sock 7.First char is OK [11:25:28]request: POST /json_proto HTTP/1.0 [11:25:28]Method: POST [11:25:28]URL: /json_proto [11:25:28]Method is POST - this is cgi request [11:25:28]url: /json_proto [11:25:28]query_string will be loaded in cgi processing [11:25:28]execute_cgi json_proto POST (null) [11:25:28]execute_cgi path=json_proto method=POST [11:25:28]POST find Content-Length [11:25:28]Host: 172.17.45.67:8080 [11:25:28]Content-Length: 677 [11:25:28]Content-Type: application/json [11:25:28] [11:25:28]POST finish read [11:25:28]Found Content-Length = 677 [11:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:28]execute_script... [11:25: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)593502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:28]POST & json_proto [11:25:28]process_json_proto [11:25:28]json parsed OK: [11:25:28]protocol is kg_v1.0 [11:25:28]action value=close_receipt [11:25:28]process_action close_receipt [11:25:28]cmd_close_receipt [11:25:28]MH_GetDate [11:25:28]Write to MH i2c: F0 00 00 E9 31 09 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: F0 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: F0 09 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: F0 09 00 E9 31 00 2B 7D C4 66 5F 7F 2B 66 53 [11:25:28]GetLastDocTimeStamp 1724153087 [11:25:28]current date 1724153131 [11:25:28]FM_GetShiftState [11:25:28]SAM_PROTO_GetShiftState [11:25:28]wFMCommunicate request_size=4 [11:25:28]MH_SAM_APDU [11:25:28]CAPDU: 80 13 01 00 [11:25:28]Write to MH i2c: E2 08 00 EA 31 80 13 01 00 00 00 00 00 98 [11:25:28]Write i2c OK [11:25:28]MH_I2C_Read... [11:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:28]Read from MH i2c: E2 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 0E 00 [11:25:28]MH_I2C_Read... [11:25:28]Read from MH i2c: E2 0E 00 EA 31 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 29 [11:25:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:25:28]wFMCommunicate OK [11:25:28]SAM_PROTO_GetShiftState done [11:25:28]FM_GetShiftState done [11:25:28]opened in 1724113785 [11:25:28]opened+sec_in_day 1724200185 [11:25:28]quantity*price = 50036 [11:25:28]sum+1 = 50037 [11:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 128 20.08.2024 11:25 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139656 ФПД: 149162575823224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112531&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139656&fm=149162575823224&tin=02508201610067®Number=0000000000092569&sum=50000 [11:25:29]StoreToDocumentArchive [11:25:29]shift 453 fd 139656 [11:25:29]save to /storage/0453/doc_00139656 [11:25:29]save last doc name /storage/0453/doc_00139656 to /storage/kkm_last_doc_name [11:25:29]save OK [11:25:29]Clear old archive folders... [11:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:29]tlvbuf is 00D3E8B0 [11:25:29]SAM_PROTO_ClearQueue [11:25:29]wFMCommunicate request_size=4 [11:25:29]MH_SAM_APDU [11:25:29]CAPDU: 80 09 00 00 [11:25:29]Write to MH i2c: E2 08 00 F7 31 80 09 00 00 00 00 00 00 9A [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:29]Read from MH i2c: E2 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 F7 31 00 90 00 9C [11:25:29]RAPDU: 90 00 [11:25:29]wFMCommunicate OK [11:25:29]SAM_PROTO_ClearQueue done [11:25:29]KKMCreateOFDPacket [11:25:29]OFDProtocolAddRootSTLVToBuf [11:25:29]FM_MakeSignedData [11:25:29]FM_MakeSignedData [11:25:29]SAM_PROTO_SignData [11:25:29]wFMCommunicate request_size=4 [11:25:29]MH_SAM_APDU [11:25:29]CAPDU: 80 0D 01 02 [11:25:29]Write to MH i2c: E2 08 00 F8 31 80 0D 01 02 00 00 00 00 A2 [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:29]Read from MH i2c: E2 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 F8 31 00 90 00 9D [11:25:29]RAPDU: 90 00 [11:25:29]wFMCommunicate OK [11:25:29]wFMCommunicate request_size=255 [11:25:29]MH_SAM_APDU [11:25:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 2B 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 21 02 00 35 04 06 00 87 [11:25:29]Write to MH i2c: E2 02 01 F9 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 2B 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 21 02 00 35 04 06 00 87 00 00 75 [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:29]Read from MH i2c: E2 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 F9 31 00 90 00 9E [11:25:29]RAPDU: 90 00 [11:25:29]wFMCommunicate OK [11:25:29]wFMCommunicate request_size=10 [11:25:29]MH_SAM_APDU [11:25:29]CAPDU: 80 0D 02 02 05 A9 9E 58 81 78 [11:25:29]Write to MH i2c: E2 0D 00 FA 31 80 0D 02 02 05 00 A9 9E 58 81 78 00 00 47 [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:29]Read from MH i2c: E2 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 03 00 FA 31 00 90 00 9F [11:25:29]RAPDU: 90 00 [11:25:29]wFMCommunicate OK [11:25:29]wFMCommunicate request_size=4 [11:25:29]MH_SAM_APDU [11:25:29]CAPDU: 80 0D 03 02 [11:25:29]Write to MH i2c: E2 08 00 FB 31 80 0D 03 02 00 00 00 00 A7 [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:29]Read from MH i2c: E2 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 0B 00 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 0B 00 FB 31 00 05 FD E6 B4 66 36 41 57 90 00 78 [11:25:29]RAPDU: 05 FD E6 B4 66 36 41 57 90 00 [11:25:29]wFMCommunicate OK [11:25:29]SAM_PROTO_SignData done [11:25:29]FM_MakeSignedData done [11:25:29]CreateOFDProtocolMessage [11:25:29]wFMCommunicate request_size=4 [11:25:29]MH_SAM_APDU [11:25:29]CAPDU: 80 11 00 00 [11:25:29]Write to MH i2c: E2 08 00 FC 31 80 11 00 00 00 00 00 00 A7 [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:29]Read from MH i2c: E2 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 17 00 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: E2 17 00 FC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [11:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:25:29]wFMCommunicate OK [11:25:29]CreateOFDProtocolMessage done [11:25:29]OFDSenderStorePacket 139656 [11:25:29]StoreOFDPacket docnum=139656 [11:25:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 42 34 07 01 FB 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 2B 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 21 02 00 35 04 06 00 87 A9 9E 58 81 78 05 FD E6 B4 66 36 41 57 [11:25:29]CheckFolder [11:25:29]dirname=/storage/ofd_packets [11:25:29]CheckFolder done [11:25:29]ProducePacketName [11:25:29]name=ofd_packets/00139656 [11:25:29]NVStorageSaveData ofd_packets/00139656 [11:25:29]File name is /storage/ofd_packets/00139656 [11:25:29]Write 301 bytes [11:25:29]NVStorageSaveData done [11:25:29]OFDSenderStorePacket done [11:25:29]KKMCreateOFDPacket done [11:25:29]NVStorageSaveData kkm_last_timestamp [11:25:29]File name is /storage/kkm_last_timestamp [11:25:29]Write 4 bytes [11:25:29]NVStorageSaveData done [11:25:29]OFD Sender: Processing packet 139656 [packets to send 137, broken 136] [11:25:29]ProducePacketName [11:25:29]name=ofd_packets/00139656 [11:25:29]OFD Sender: To server: pG, [11:25:29]CommunicateWithHost lk.salyk.kg:30040 [11:25:29]ConnectInit lk.salyk.kg [11:25:29]ExternCall_PrintAddStr [11:25:29]wPrintStart [11:25:29]Write to MH i2c: 01 00 00 FD 31 2E [11:25:29]Write i2c OK [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: 01 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: 01 07 00 [11:25:29]MH_I2C_Read... [11:25:29]Read from MH i2c: 01 07 00 FD 31 00 00 00 00 00 FF 0F 43 [11:25:29]RasterBufferAndPrint [11:25:29]line Счет N : (1)593502 [11:25:29]line ИНН: 02508201610067 [11:25:29]line Контрольно-Кассовый Чек [11:25:29]line ПРОДАЖА [11:25:29]line ТРК (МРК, ГНК) : 42 [11:25:29]line Товар: 2710124130 [11:25:29]line Аи-92-К-5 [11:25:29]line 7.380 * 67.80 [11:25:29]line = 500.36 [11:25:29]line НДС 12% НСП 1% [11:25:29]line > о реализуемом товаре [11:25:29]line ОКРУГЛЕНИЕ: -0.36 [11:25:29]line ИТОГО: 500.00 [11:25:29]line Внесено: 500.00 [11:25:29]line СДАЧА: 0.00 [11:25:29]line НСП 1% : 4.43 [11:25:29]line НДС 12% : 53.14 [11:25:29]line Наличными: 500.00 [11:25:29]line Безнал.: 0.00 [11:25:29]line Место: АЗС № 136 "Партнер Нефть" [11:25:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:25:29]line СНО: Общий режим [11:25:29]line Чек 128 20.08.2024 11:25 [11:25:29]line Смена: 453 ФФД: 1.0 [11:25:29]line ЗНМ: 0300000067 [11:25:29]line РНМ: 0000000000092569 [11:25:29]line Версия ККМ: 001 [11:25:29]line ФМ: 0000000000871776 [11:25:29]line ФД: 139656 [11:25:29]line ФПД: 149162575823224 [11:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112531&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139656&fm=149162575823224&tin=02508201610067®Number=0000000000092569&sum=50000 [11:25:30]Connected sock=11 [11:25:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 42 34 07 01 FB 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 2B 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 21 02 00 35 04 06 00 87 A9 9E 58 81 78 05 FD E6 B4 66 36 41 57 [11:25:30]written 0, free lines is 4095 [11:25:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D0 35 47 00 1E 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 21 02 00 F4 03 04 00 BE 23 C4 66 B6 04 01 00 00 F8 53 41 F7 AD C1 AF 4C [11:25:30]CommunicateWithHost err = 0 [11:25:30]CheckOFDResponse [11:25:30]1017 (14) - 77093643461234 [11:25:30]1041 (16) - 0000000000871776 [11:25:30]1040 (4) - 139656 [11:25:30]1012 (4) - 20.08.2024 05:03 [11:25:30]1206 (1) - 0 [11:25:30]OFD Sender: Remove packet 139656 [11:25:30]ProducePacketName [11:25:30]name=ofd_packets/00139656 [11:25:30]NVStorageDeleteData [11:25:30]Write to MH i2c: 01 00 00 28 32 5A [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: 01 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: 01 07 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: 01 07 00 28 32 00 00 00 00 00 C0 0C 2D [11:25:30]RasterBufferAndPrint [11:25:30]line [11:25:30]line [11:25:30]line [11:25:30]line [11:25:30]line [11:25:30]written 0, free lines is 3270 [11:25:30]MH_Cut [11:25:30]Write to MH i2c: D1 01 00 2F 32 01 33 [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: D1 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: D1 01 00 [11:25:30]MH_I2C_Read... [11:25:30]Read from MH i2c: D1 01 00 2F 32 00 32 [11:25:30]Write to MH i2c: 01 00 00 30 32 62 [11:25:30]Write i2c OK [11:25:30]MH_I2C_Read... [11:25:30]OFD Sender: No OFD packet to send [11:25:31]*** Cut start [11:25:31]*** Partial cut [11:25:31]*** CUTSNS_PIN = 1 [11:25:31]*** CUTSNS_PIN = 0 [11:25:31]*** Brake cut motor [11:25:31]Read from MH i2c: 01 [11:25:31]MH_I2C_Read... [11:25:31]*** Stop cut motor [11:25:31]*** Cut end [11:25:31]Read from MH i2c: 01 07 00 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: 01 07 00 30 32 00 00 00 00 00 FF 0F 77 [11:25:31]process_action close_receipt done [11:25:31]requested_data is exist [11:25:31]produce_requested_data [11:25:31]requested_item fm.sn is exist - process it [11:25:31]wFMCommunicate request_size=4 [11:25:31]MH_SAM_APDU [11:25:31]CAPDU: 80 11 00 00 [11:25:31]Write to MH i2c: E2 08 00 31 32 80 11 00 00 00 00 00 00 DD [11:25:31]Write i2c OK [11:25:31]MH_I2C_Read... [11:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:31]Read from MH i2c: E2 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: E2 17 00 [11:25:31]MH_I2C_Read... [11:25:31]Read from MH i2c: E2 17 00 31 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 34 [11:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:25:31]wFMCommunicate OK [11:25:31]requested_item fd.num is exist - process it [11:25:31]SAM_PROTO_GetFieldsCounters [11:25:31]wFMCommunicate request_size=4 [11:25:31]MH_SAM_APDU [11:25:31]CAPDU: 80 13 00 00 [11:25:31]Write to MH i2c: E2 08 00 32 32 80 13 00 00 00 00 00 00 E0 [11:25:31]Write i2c OK [11:25:31]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 62 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 62 00 32 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [11:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:32]wFMCommunicate OK [11:25:32]SAM_PROTO_GetFieldsCounters done [11:25:32]requested_item shift.num is exist - process it [11:25:32]requested_item shift.opened is exist - process it [11:25:32]req_shift_opened [11:25:32]FM_GetShiftState [11:25:32]SAM_PROTO_GetShiftState [11:25:32]wFMCommunicate request_size=4 [11:25:32]MH_SAM_APDU [11:25:32]CAPDU: 80 13 01 00 [11:25:32]Write to MH i2c: E2 08 00 33 32 80 13 01 00 00 00 00 00 E2 [11:25:32]Write i2c OK [11:25:32]MH_I2C_Read... [11:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:32]Read from MH i2c: E2 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 0E 00 [11:25:32]MH_I2C_Read... [11:25:32]Read from MH i2c: E2 0E 00 33 32 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 73 [11:25:32]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:25:32]wFMCommunicate OK [11:25:32]SAM_PROTO_GetShiftState done [11:25:32]FM_GetShiftState done [11:25:32]req_shift_opened done [11:25:32]requested_item shift.open_date is exist - process it [11:25:32]req_shift_open_date [11:25:32]req_shift_open_date done [11:25:32]produce_requested_data done [11:25:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139656,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:25:32]process_action_free close_receipt [11:25:32]json_value_free [11:25:32]json_value_free done [11:25:32]process_json_proto returns [11:25:32]Send response to host [11:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139656,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:25:32]free response buf [11:25:32]execute_script done [11:25:32]execute_script returns [11:25:32]free content buf [11:25:32]Sock 7.Close socket [11:25:32]Sock 7.Thread stoped [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:27]accept exits with 9 [11:26:27]New connection [11:26:27]New thread 3067071844 created [11:26:27]Thread 3067215204 joined [11:26:27]Waiting for new connection... [11:26:27] Sock 9.Parse request [11:26:27]Sock 9.Check first char [11:26:27]Sock 9.First char is OK [11:26:27]request: POST /json_proto HTTP/1.0 [11:26:27]Method: POST [11:26:27]URL: /json_proto [11:26:27]Method is POST - this is cgi request [11:26:27]url: /json_proto [11:26:27]query_string will be loaded in cgi processing [11:26:27]execute_cgi json_proto POST (null) [11:26:27]execute_cgi path=json_proto method=POST [11:26:27]POST find Content-Length [11:26:27]Host: 172.17.45.67:8080 [11:26:27]Content-Length: 682 [11:26:27]Content-Type: application/json [11:26:27] [11:26:27]POST finish read [11:26:27]Found Content-Length = 682 [11:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:27]execute_script... [11:26: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)593503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:27]POST & json_proto [11:26:27]process_json_proto [11:26:27]json parsed OK: [11:26:27]protocol is kg_v1.0 [11:26:27]action value=close_receipt [11:26:27]process_action close_receipt [11:26:27]cmd_close_receipt [11:26:27]MH_GetDate [11:26:27]Write to MH i2c: F0 00 00 34 32 55 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: F0 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: F0 09 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: F0 09 00 34 32 00 66 7D C4 66 5F 7F 2B 66 DA [11:26:27]GetLastDocTimeStamp 1724153131 [11:26:27]current date 1724153190 [11:26:27]FM_GetShiftState [11:26:27]SAM_PROTO_GetShiftState [11:26:27]wFMCommunicate request_size=4 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 13 01 00 [11:26:27]Write to MH i2c: E2 08 00 35 32 80 13 01 00 00 00 00 00 E4 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 0E 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 0E 00 35 32 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 75 [11:26:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:26:27]wFMCommunicate OK [11:26:27]SAM_PROTO_GetShiftState done [11:26:27]FM_GetShiftState done [11:26:27]opened in 1724113785 [11:26:27]opened+sec_in_day 1724200185 [11:26:27]quantity*price = 100005 [11:26:27]sum+1 = 100006 [11:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 129 20.08.2024 11:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139657 ФПД: 155945723297841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112630&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139657&fm=155945723297841&tin=02508201610067®Number=0000000000092569&sum=100000 [11:26:28]StoreToDocumentArchive [11:26:28]shift 453 fd 139657 [11:26:28]save to /storage/0453/doc_00139657 [11:26:28]save last doc name /storage/0453/doc_00139657 to /storage/kkm_last_doc_name [11:26:28]save OK [11:26:28]Clear old archive folders... [11:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:28]tlvbuf is 00DDAE20 [11:26:28]SAM_PROTO_ClearQueue [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 09 00 00 [11:26:28]Write to MH i2c: E2 08 00 42 32 80 09 00 00 00 00 00 00 E6 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 03 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 03 00 42 32 00 90 00 E8 [11:26:28]RAPDU: 90 00 [11:26:28]wFMCommunicate OK [11:26:28]SAM_PROTO_ClearQueue done [11:26:28]KKMCreateOFDPacket [11:26:28]OFDProtocolAddRootSTLVToBuf [11:26:28]FM_MakeSignedData [11:26:28]FM_MakeSignedData [11:26:28]SAM_PROTO_SignData [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 0D 01 02 [11:26:28]Write to MH i2c: E2 08 00 43 32 80 0D 01 02 00 00 00 00 EE [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 03 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 03 00 43 32 00 90 00 E9 [11:26:28]RAPDU: 90 00 [11:26:28]wFMCommunicate OK [11:26:28]wFMCommunicate request_size=255 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 66 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 21 02 00 35 04 06 00 8D [11:26:28]Write to MH i2c: E2 02 01 44 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 66 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 21 02 00 35 04 06 00 8D 00 00 93 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 03 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 03 00 44 32 00 90 00 EA [11:26:28]RAPDU: 90 00 [11:26:28]wFMCommunicate OK [11:26:28]wFMCommunicate request_size=10 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 0D 02 02 05 D4 F1 71 00 31 [11:26:28]Write to MH i2c: E2 0D 00 45 32 80 0D 02 02 05 00 D4 F1 71 00 31 00 00 62 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 03 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 03 00 45 32 00 90 00 EB [11:26:28]RAPDU: 90 00 [11:26:28]wFMCommunicate OK [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 0D 03 02 [11:26:28]Write to MH i2c: E2 08 00 46 32 80 0D 03 02 00 00 00 00 F3 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0B 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0B 00 46 32 00 E2 01 C0 71 8F 53 82 F2 90 00 5E [11:26:28]RAPDU: E2 01 C0 71 8F 53 82 F2 90 00 [11:26:28]wFMCommunicate OK [11:26:28]SAM_PROTO_SignData done [11:26:28]FM_MakeSignedData done [11:26:28]CreateOFDProtocolMessage [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 11 00 00 [11:26:28]Write to MH i2c: E2 08 00 47 32 80 11 00 00 00 00 00 00 F3 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 17 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 17 00 47 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4A [11:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:26:28]wFMCommunicate OK [11:26:28]CreateOFDProtocolMessage done [11:26:28]OFDSenderStorePacket 139657 [11:26:28]StoreOFDPacket docnum=139657 [11:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 C9 07 01 7A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 66 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 21 02 00 35 04 06 00 8D D4 F1 71 00 31 E2 01 C0 71 8F 53 82 F2 [11:26:28]CheckFolder [11:26:28]dirname=/storage/ofd_packets [11:26:28]CheckFolder done [11:26:28]ProducePacketName [11:26:28]name=ofd_packets/00139657 [11:26:28]NVStorageSaveData ofd_packets/00139657 [11:26:28]File name is /storage/ofd_packets/00139657 [11:26:28]Write 301 bytes [11:26:28]NVStorageSaveData done [11:26:28]OFDSenderStorePacket done [11:26:28]KKMCreateOFDPacket done [11:26:28]NVStorageSaveData kkm_last_timestamp [11:26:28]File name is /storage/kkm_last_timestamp [11:26:28]Write 4 bytes [11:26:28]NVStorageSaveData done [11:26:28]ExternCall_PrintAddStr [11:26:28]wPrintStart [11:26:28]Write to MH i2c: 01 00 00 48 32 7A [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 07 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 07 00 48 32 00 00 00 00 00 FF 0F 8F [11:26:28]RasterBufferAndPrint [11:26:28]line Счет N : (1)593503 [11:26:28]line ИНН: 02508201610067 [11:26:28]line Контрольно-Кассовый Чек [11:26:28]line ПРОДАЖА [11:26:28]line ТРК (МРК, ГНК) : 52 [11:26:28]line Товар: 2710124130 [11:26:28]line Аи-92-К-5 [11:26:28]line 14.750 * 67.80 [11:26:28]line = 1000.05 [11:26:28]line НДС 12% НСП 1% [11:26:28]line > о реализуемом товаре [11:26:28]line ОКРУГЛЕНИЕ: -0.05 [11:26:28]line ИТОГО: 1000.00 [11:26:28]line Внесено: 1000.00 [11:26:28]line СДАЧА: 0.00 [11:26:28]line НСП 1% : 8.85 [11:26:28]line НДС 12% : 106.20 [11:26:28]line Наличными: 1000.00 [11:26:28]line Безнал.: 0.00 [11:26:28]line Место: АЗС № 136 "Партнер Нефть" [11:26:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:26:28]line СНО: Общий режим [11:26:28]line Чек 129 20.08.2024 11:26 [11:26:28]line Смена: 453 ФФД: 1.0 [11:26:28]line ЗНМ: 0300000067 [11:26:28]line РНМ: 0000000000092569 [11:26:28]line Версия ККМ: 001 [11:26:28]line ФМ: 0000000000871776 [11:26:28]line ФД: 139657 [11:26:28]line ФПД: 155945723297841 [11:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112630&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139657&fm=155945723297841&tin=02508201610067®Number=0000000000092569&sum=100000 [11:26:29]OFD Sender: Processing packet 139657 [packets to send 137, broken 136] [11:26:29]ProducePacketName [11:26:29]name=ofd_packets/00139657 [11:26:29]OFD Sender: To server: pG, [11:26:29]CommunicateWithHost lk.salyk.kg:30040 [11:26:29]ConnectInit lk.salyk.kg [11:26:29]written 0, free lines is 4095 [11:26:29]Connected sock=10 [11:26:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 C9 07 01 7A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 66 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 21 02 00 35 04 06 00 8D D4 F1 71 00 31 E2 01 C0 71 8F 53 82 F2 [11:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 74 64 47 00 F6 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 21 02 00 F4 03 04 00 FA 23 C4 66 B6 04 01 00 00 E0 9D D9 BB 12 4B 7D C3 [11:26:29]CommunicateWithHost err = 0 [11:26:29]CheckOFDResponse [11:26:29]1017 (14) - 77093643461234 [11:26:29]1041 (16) - 0000000000871776 [11:26:29]1040 (4) - 139657 [11:26:29]1012 (4) - 20.08.2024 05:04 [11:26:29]1206 (1) - 0 [11:26:29]OFD Sender: Remove packet 139657 [11:26:29]ProducePacketName [11:26:29]name=ofd_packets/00139657 [11:26:29]NVStorageDeleteData [11:26:29]Write to MH i2c: 01 00 00 73 32 A5 [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: 01 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: 01 07 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: 01 07 00 73 32 00 00 00 00 00 BE 0C 76 [11:26:29]RasterBufferAndPrint [11:26:29]line [11:26:29]line [11:26:29]line [11:26:29]line [11:26:29]line [11:26:29]written 0, free lines is 3266 [11:26:29]MH_Cut [11:26:29]Write to MH i2c: D1 01 00 7A 32 01 7E [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: D1 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: D1 01 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: D1 01 00 7A 32 00 7D [11:26:29]Write to MH i2c: 01 00 00 7B 32 AD [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:30]OFD Sender: No OFD packet to send [11:26:30]*** Cut start [11:26:30]*** Partial cut [11:26:30]*** CUTSNS_PIN = 1 [11:26:30]*** CUTSNS_PIN = 0 [11:26:30]*** Brake cut motor [11:26:31]Read from MH i2c: 01 [11:26:31]MH_I2C_Read... [11:26:31]*** Stop cut motor [11:26:31]*** Cut end [11:26:31]Read from MH i2c: 01 07 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 7B 32 00 00 00 00 00 FF 0F C2 [11:26:31]process_action close_receipt done [11:26:31]requested_data is exist [11:26:31]produce_requested_data [11:26:31]requested_item fm.sn is exist - process it [11:26:31]wFMCommunicate request_size=4 [11:26:31]MH_SAM_APDU [11:26:31]CAPDU: 80 11 00 00 [11:26:31]Write to MH i2c: E2 08 00 7C 32 80 11 00 00 00 00 00 00 28 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 17 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 17 00 7C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [11:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:26:31]wFMCommunicate OK [11:26:31]requested_item fd.num is exist - process it [11:26:31]SAM_PROTO_GetFieldsCounters [11:26:31]wFMCommunicate request_size=4 [11:26:31]MH_SAM_APDU [11:26:31]CAPDU: 80 13 00 00 [11:26:31]Write to MH i2c: E2 08 00 7D 32 80 13 00 00 00 00 00 00 2B [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 62 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 62 00 7D 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [11:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:31]wFMCommunicate OK [11:26:31]SAM_PROTO_GetFieldsCounters done [11:26:31]requested_item shift.num is exist - process it [11:26:31]requested_item shift.opened is exist - process it [11:26:31]req_shift_opened [11:26:31]FM_GetShiftState [11:26:31]SAM_PROTO_GetShiftState [11:26:31]wFMCommunicate request_size=4 [11:26:31]MH_SAM_APDU [11:26:31]CAPDU: 80 13 01 00 [11:26:31]Write to MH i2c: E2 08 00 7E 32 80 13 01 00 00 00 00 00 2D [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 0E 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 0E 00 7E 32 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BE [11:26:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:26:31]wFMCommunicate OK [11:26:31]SAM_PROTO_GetShiftState done [11:26:31]FM_GetShiftState done [11:26:31]req_shift_opened done [11:26:31]requested_item shift.open_date is exist - process it [11:26:31]req_shift_open_date [11:26:31]req_shift_open_date done [11:26:31]produce_requested_data done [11:26:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139657,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:26:31]process_action_free close_receipt [11:26:31]json_value_free [11:26:31]json_value_free done [11:26:31]process_json_proto returns [11:26:31]Send response to host [11:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139657,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:26:31]free response buf [11:26:31]execute_script done [11:26:31]execute_script returns [11:26:31]free content buf [11:26:31]Sock 9.Close socket [11:26:31]Sock 9.Thread stoped [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:37]accept exits with 7 [11:28:37]New connection [11:28:37]New thread 3067215204 created [11:28:37]Thread 3067071844 joined [11:28:37]Waiting for new connection... [11:28:37] Sock 7.Parse request [11:28:37]Sock 7.Check first char [11:28:37]Sock 7.First char is OK [11:28:37]request: POST /json_proto HTTP/1.0 [11:28:37]Method: POST [11:28:37]URL: /json_proto [11:28:37]Method is POST - this is cgi request [11:28:37]url: /json_proto [11:28:37]query_string will be loaded in cgi processing [11:28:37]execute_cgi json_proto POST (null) [11:28:37]execute_cgi path=json_proto method=POST [11:28:37]POST find Content-Length [11:28:37]Host: 172.17.45.67:8080 [11:28:37]Content-Length: 682 [11:28:37]Content-Type: application/json [11:28:37] [11:28:37]POST finish read [11:28:37]Found Content-Length = 682 [11:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:37]execute_script... [11:28:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:37]POST & json_proto [11:28:37]process_json_proto [11:28:37]json parsed OK: [11:28:37]protocol is kg_v1.0 [11:28:37]action value=close_receipt [11:28:37]process_action close_receipt [11:28:37]cmd_close_receipt [11:28:37]MH_GetDate [11:28:37]Write to MH i2c: F0 00 00 7F 32 A0 [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: F0 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: F0 09 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: F0 09 00 7F 32 00 E8 7D C4 66 5F 7F 2B 66 A7 [11:28:37]GetLastDocTimeStamp 1724153190 [11:28:37]current date 1724153320 [11:28:37]FM_GetShiftState [11:28:37]SAM_PROTO_GetShiftState [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 13 01 00 [11:28:37]Write to MH i2c: E2 08 00 80 32 80 13 01 00 00 00 00 00 2F [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:37]Read from MH i2c: E2 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 0E 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 0E 00 80 32 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C0 [11:28:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:28:37]wFMCommunicate OK [11:28:37]SAM_PROTO_GetShiftState done [11:28:37]FM_GetShiftState done [11:28:37]opened in 1724113785 [11:28:37]opened+sec_in_day 1724200185 [11:28:37]quantity*price = 100005 [11:28:37]sum+1 = 100006 [11:28:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 130 20.08.2024 11:28 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139658 ФПД: 237224738349090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112840&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139658&fm=237224738349090&tin=02508201610067®Number=0000000000092569&sum=100000 [11:28:38]StoreToDocumentArchive [11:28:38]shift 453 fd 139658 [11:28:38]save to /storage/0453/doc_00139658 [11:28:38]save last doc name /storage/0453/doc_00139658 to /storage/kkm_last_doc_name [11:28:38]save OK [11:28:38]Clear old archive folders... [11:28:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:38]tlvbuf is 00D6CC80 [11:28:38]SAM_PROTO_ClearQueue [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 09 00 00 [11:28:38]Write to MH i2c: E2 08 00 8D 32 80 09 00 00 00 00 00 00 31 [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 8D 32 00 90 00 33 [11:28:38]RAPDU: 90 00 [11:28:38]wFMCommunicate OK [11:28:38]SAM_PROTO_ClearQueue done [11:28:38]KKMCreateOFDPacket [11:28:38]OFDProtocolAddRootSTLVToBuf [11:28:38]FM_MakeSignedData [11:28:38]FM_MakeSignedData [11:28:38]SAM_PROTO_SignData [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 0D 01 02 [11:28:38]Write to MH i2c: E2 08 00 8E 32 80 0D 01 02 00 00 00 00 39 [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 8E 32 00 90 00 34 [11:28:38]RAPDU: 90 00 [11:28:38]wFMCommunicate OK [11:28:38]wFMCommunicate request_size=255 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E8 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 21 02 00 35 04 06 00 D7 [11:28:38]Write to MH i2c: E2 02 01 8F 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E8 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 21 02 00 35 04 06 00 D7 00 00 AC [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 8F 32 00 90 00 35 [11:28:38]RAPDU: 90 00 [11:28:38]wFMCommunicate OK [11:28:38]wFMCommunicate request_size=10 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 0D 02 02 05 C1 30 42 E0 22 [11:28:38]Write to MH i2c: E2 0D 00 90 32 80 0D 02 02 05 00 C1 30 42 E0 22 00 00 7B [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 03 00 90 32 00 90 00 36 [11:28:38]RAPDU: 90 00 [11:28:38]wFMCommunicate OK [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 0D 03 02 [11:28:38]Write to MH i2c: E2 08 00 91 32 80 0D 03 02 00 00 00 00 3E [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 0B 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 0B 00 91 32 00 82 98 4B E8 B3 B9 71 0B 90 00 74 [11:28:38]RAPDU: 82 98 4B E8 B3 B9 71 0B 90 00 [11:28:38]wFMCommunicate OK [11:28:38]SAM_PROTO_SignData done [11:28:38]FM_MakeSignedData done [11:28:38]CreateOFDProtocolMessage [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 11 00 00 [11:28:38]Write to MH i2c: E2 08 00 92 32 80 11 00 00 00 00 00 00 3E [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 17 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 17 00 92 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 95 [11:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:28:38]wFMCommunicate OK [11:28:38]CreateOFDProtocolMessage done [11:28:38]OFDSenderStorePacket 139658 [11:28:38]StoreOFDPacket docnum=139658 [11:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 67 48 07 01 49 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E8 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 21 02 00 35 04 06 00 D7 C1 30 42 E0 22 82 98 4B E8 B3 B9 71 0B [11:28:38]CheckFolder [11:28:38]dirname=/storage/ofd_packets [11:28:38]CheckFolder done [11:28:38]ProducePacketName [11:28:38]name=ofd_packets/00139658 [11:28:38]NVStorageSaveData ofd_packets/00139658 [11:28:38]File name is /storage/ofd_packets/00139658 [11:28:38]Write 301 bytes [11:28:38]NVStorageSaveData done [11:28:38]OFDSenderStorePacket done [11:28:38]KKMCreateOFDPacket done [11:28:38]NVStorageSaveData kkm_last_timestamp [11:28:38]File name is /storage/kkm_last_timestamp [11:28:38]Write 4 bytes [11:28:38]NVStorageSaveData done [11:28:38]ExternCall_PrintAddStr [11:28:38]wPrintStart [11:28:38]Write to MH i2c: 01 00 00 93 32 C5 [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: 01 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: 01 07 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: 01 07 00 93 32 00 00 00 00 00 FF 0F DA [11:28:38]RasterBufferAndPrint [11:28:38]line Счет N : (1)593504 [11:28:38]line ИНН: 02508201610067 [11:28:38]line Контрольно-Кассовый Чек [11:28:38]line ПРОДАЖА [11:28:38]line ТРК (МРК, ГНК) : 32 [11:28:38]line Товар: 2710124130 [11:28:38]line Аи-92-К-5 [11:28:38]line 14.750 * 67.80 [11:28:38]line = 1000.05 [11:28:38]line НДС 12% НСП 1% [11:28:38]line > о реализуемом товаре [11:28:38]line ОКРУГЛЕНИЕ: -0.05 [11:28:38]line ИТОГО: 1000.00 [11:28:38]line Внесено: 1000.00 [11:28:38]line СДАЧА: 0.00 [11:28:38]line НСП 1% : 8.85 [11:28:38]line НДС 12% : 106.20 [11:28:38]line Наличными: 1000.00 [11:28:38]line Безнал.: 0.00 [11:28:38]line Место: АЗС № 136 "Партнер Нефть" [11:28:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:28:38]line СНО: Общий режим [11:28:38]line Чек 130 20.08.2024 11:28 [11:28:38]line Смена: 453 ФФД: 1.0 [11:28:38]line ЗНМ: 0300000067 [11:28:38]line РНМ: 0000000000092569 [11:28:38]line Версия ККМ: 001 [11:28:38]line ФМ: 0000000000871776 [11:28:38]line ФД: 139658 [11:28:38]line ФПД: 237224738349090 [11:28:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T112840&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139658&fm=237224738349090&tin=02508201610067®Number=0000000000092569&sum=100000 [11:28:39]OFD Sender: Processing packet 139658 [packets to send 137, broken 136] [11:28:39]ProducePacketName [11:28:39]name=ofd_packets/00139658 [11:28:39]OFD Sender: To server: pG, [11:28:39]CommunicateWithHost lk.salyk.kg:30040 [11:28:39]ConnectInit lk.salyk.kg [11:28:39]written 0, free lines is 4095 [11:28:39]Connected sock=10 [11:28:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 67 48 07 01 49 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E8 7D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 21 02 00 35 04 06 00 D7 C1 30 42 E0 22 82 98 4B E8 B3 B9 71 0B [11:28:39]Write to MH i2c: 01 00 00 BE 32 F0 [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: 01 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: 01 07 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: 01 07 00 BE 32 00 00 00 00 00 CF 0C D2 [11:28:39]RasterBufferAndPrint [11:28:39]line [11:28:39]line [11:28:39]line [11:28:39]line [11:28:39]line [11:28:39]written 0, free lines is 3284 [11:28:39]MH_Cut [11:28:39]Write to MH i2c: D1 01 00 C5 32 01 C9 [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: D1 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: D1 01 00 [11:28:39]MH_I2C_Read... [11:28:39]Read from MH i2c: D1 01 00 C5 32 00 C8 [11:28:39]Write to MH i2c: 01 00 00 C6 32 F8 [11:28:39]Write i2c OK [11:28:39]MH_I2C_Read... [11:28:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 44 A4 47 00 3B E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 21 02 00 F4 03 04 00 7C 24 C4 66 B6 04 01 00 00 C1 B2 5A 63 AD 72 21 70 [11:28:39]CommunicateWithHost err = 0 [11:28:39]CheckOFDResponse [11:28:39]1017 (14) - 77093643461234 [11:28:39]1041 (16) - 0000000000871776 [11:28:39]1040 (4) - 139658 [11:28:39]1012 (4) - 20.08.2024 05:07 [11:28:39]1206 (1) - 0 [11:28:39]OFD Sender: Remove packet 139658 [11:28:39]ProducePacketName [11:28:39]name=ofd_packets/00139658 [11:28:39]NVStorageDeleteData [11:28:40]OFD Sender: No OFD packet to send [11:28:40]*** Cut start [11:28:40]*** Partial cut [11:28:40]*** CUTSNS_PIN = 1 [11:28:40]*** CUTSNS_PIN = 0 [11:28:40]*** Brake cut motor [11:28:40]Read from MH i2c: 01 [11:28:40]MH_I2C_Read... [11:28:40]*** Stop cut motor [11:28:41]*** Cut end [11:28:41]Read from MH i2c: 01 07 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 C6 32 00 00 00 00 00 FF 0F 0D [11:28:41]process_action close_receipt done [11:28:41]requested_data is exist [11:28:41]produce_requested_data [11:28:41]requested_item fm.sn is exist - process it [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 11 00 00 [11:28:41]Write to MH i2c: E2 08 00 C7 32 80 11 00 00 00 00 00 00 73 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 17 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 17 00 C7 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CA [11:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:28:41]wFMCommunicate OK [11:28:41]requested_item fd.num is exist - process it [11:28:41]SAM_PROTO_GetFieldsCounters [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 13 00 00 [11:28:41]Write to MH i2c: E2 08 00 C8 32 80 13 00 00 00 00 00 00 76 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 62 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 62 00 C8 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [11:28:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:41]wFMCommunicate OK [11:28:41]SAM_PROTO_GetFieldsCounters done [11:28:41]requested_item shift.num is exist - process it [11:28:41]requested_item shift.opened is exist - process it [11:28:41]req_shift_opened [11:28:41]FM_GetShiftState [11:28:41]SAM_PROTO_GetShiftState [11:28:41]wFMCommunicate request_size=4 [11:28:41]MH_SAM_APDU [11:28:41]CAPDU: 80 13 01 00 [11:28:41]Write to MH i2c: E2 08 00 C9 32 80 13 01 00 00 00 00 00 78 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:41]Read from MH i2c: E2 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0E 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: E2 0E 00 C9 32 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 09 [11:28:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:28:41]wFMCommunicate OK [11:28:41]SAM_PROTO_GetShiftState done [11:28:41]FM_GetShiftState done [11:28:41]req_shift_opened done [11:28:41]requested_item shift.open_date is exist - process it [11:28:41]req_shift_open_date [11:28:41]req_shift_open_date done [11:28:41]produce_requested_data done [11:28:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139658,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:28:41]process_action_free close_receipt [11:28:41]json_value_free [11:28:41]json_value_free done [11:28:41]process_json_proto returns [11:28:41]Send response to host [11:28:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139658,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:28:41]free response buf [11:28:41]execute_script done [11:28:41]execute_script returns [11:28:41]free content buf [11:28:41]Sock 7.Close socket [11:28:41]Sock 7.Thread stoped [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:06]int [11:36:06]Write to MH i2c: 01 00 00 CA 32 FC [11:36:06]*** FLAG_PRN_KEY set [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 07 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 07 00 CA 32 00 08 00 00 00 FF 0F 19 [11:36:06]state=0 [11:36:06]Key pressed [11:36:06]Feed [11:36:06]Write to MH i2c: D8 00 00 CB 32 D4 [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: D8 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: D8 01 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: D8 01 00 CB 32 00 D5 [11:36:06]int [11:36:06]Write to MH i2c: 01 00 00 CC 32 FE [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 07 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 07 00 CC 32 00 48 00 00 00 3C 00 89 [11:36:06]state=2 [11:36:06]Key pressed [11:36:06]int [11:36:06]Write to MH i2c: 01 00 00 CD 32 FF [11:36:06]*** FLAG_PRN_KEY reset [11:36:06]Write i2c OK [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 07 00 [11:36:06]MH_I2C_Read... [11:36:06]Read from MH i2c: 01 07 00 CD 32 00 00 00 00 00 F5 0F 0A [11:36:06]state=2 [11:36:06]Stop feed [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:32]accept exits with 9 [11:36:32]New connection [11:36:32]New thread 3067071844 created [11:36:32]Thread 3067215204 joined [11:36:32]Waiting for new connection... [11:36:32] Sock 9.Parse request [11:36:32]Sock 9.Check first char [11:36:32]Sock 9.First char is OK [11:36:32]request: POST /json_proto HTTP/1.0 [11:36:32]Method: POST [11:36:32]URL: /json_proto [11:36:32]Method is POST - this is cgi request [11:36:32]url: /json_proto [11:36:32]query_string will be loaded in cgi processing [11:36:32]execute_cgi json_proto POST (null) [11:36:32]execute_cgi path=json_proto method=POST [11:36:32]POST find Content-Length [11:36:32]Host: 172.17.45.67:8080 [11:36:32]Content-Length: 678 [11:36:32]Content-Type: application/json [11:36:32] [11:36:32]POST finish read [11:36:32]Found Content-Length = 678 [11:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:32]execute_script... [11:36: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)593505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:32]POST & json_proto [11:36:32]process_json_proto [11:36:32]json parsed OK: [11:36:32]protocol is kg_v1.0 [11:36:32]action value=close_receipt [11:36:32]process_action close_receipt [11:36:32]cmd_close_receipt [11:36:32]MH_GetDate [11:36:32]Write to MH i2c: F0 00 00 CE 32 EF [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: F0 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: F0 09 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: F0 09 00 CE 32 00 C3 7F C4 66 5F 7F 2B 66 D3 [11:36:32]GetLastDocTimeStamp 1724153320 [11:36:32]current date 1724153795 [11:36:32]FM_GetShiftState [11:36:32]SAM_PROTO_GetShiftState [11:36:32]wFMCommunicate request_size=4 [11:36:32]MH_SAM_APDU [11:36:32]CAPDU: 80 13 01 00 [11:36:32]Write to MH i2c: E2 08 00 CF 32 80 13 01 00 00 00 00 00 7E [11:36:32]Write i2c OK [11:36:32]MH_I2C_Read... [11:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:32]Read from MH i2c: E2 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 0E 00 [11:36:32]MH_I2C_Read... [11:36:32]Read from MH i2c: E2 0E 00 CF 32 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0F [11:36:32]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:36:32]wFMCommunicate OK [11:36:32]SAM_PROTO_GetShiftState done [11:36:32]FM_GetShiftState done [11:36:32]opened in 1724113785 [11:36:32]opened+sec_in_day 1724200185 [11:36:32]quantity*price = 80061 [11:36:32]sum+1 = 80063 [11:36:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 131 20.08.2024 11:36 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139659 ФПД: 74620123766611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T113635&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139659&fm=74620123766611&tin=02508201610067®Number=0000000000092569&sum=80000 [11:36:33]StoreToDocumentArchive [11:36:33]shift 453 fd 139659 [11:36:33]save to /storage/0453/doc_00139659 [11:36:33]save last doc name /storage/0453/doc_00139659 to /storage/kkm_last_doc_name [11:36:33]save OK [11:36:33]Clear old archive folders... [11:36:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:33]tlvbuf is 00D759A0 [11:36:33]SAM_PROTO_ClearQueue [11:36:33]wFMCommunicate request_size=4 [11:36:33]MH_SAM_APDU [11:36:33]CAPDU: 80 09 00 00 [11:36:33]Write to MH i2c: E2 08 00 DC 32 80 09 00 00 00 00 00 00 80 [11:36:33]Write i2c OK [11:36:33]MH_I2C_Read... [11:36:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:33]Read from MH i2c: E2 [11:36:33]MH_I2C_Read... [11:36:33]Read from MH i2c: E2 03 00 [11:36:33]MH_I2C_Read... [11:36:33]Read from MH i2c: E2 03 00 DC 32 00 90 00 82 [11:36:33]RAPDU: 90 00 [11:36:33]wFMCommunicate OK [11:36:33]SAM_PROTO_ClearQueue done [11:36:33]KKMCreateOFDPacket [11:36:33]OFDProtocolAddRootSTLVToBuf [11:36:33]FM_MakeSignedData [11:36:33]FM_MakeSignedData [11:36:33]SAM_PROTO_SignData [11:36:33]wFMCommunicate request_size=4 [11:36:33]MH_SAM_APDU [11:36:33]CAPDU: 80 0D 01 02 [11:36:33]Write to MH i2c: E2 08 00 DD 32 80 0D 01 02 00 00 00 00 88 [11:36:33]Write i2c OK [11:36:33]MH_I2C_Read... [11:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:33]Read from MH i2c: E2 [11:36:33]MH_I2C_Read... [11:36:33]Read from MH i2c: E2 03 00 [11:36:33]MH_I2C_Read... [11:36:33]Read from MH i2c: E2 03 00 DD 32 00 90 00 83 [11:36:33]RAPDU: 90 00 [11:36:33]wFMCommunicate OK [11:36:33]wFMCommunicate request_size=255 [11:36:33]MH_SAM_APDU [11:36:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 83 00 00 00 F4 03 04 00 C3 7F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 21 02 00 35 04 06 00 43 [11:36:33]Write to MH i2c: E2 02 01 DE 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C3 7F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 21 02 00 35 04 06 00 43 00 00 34 [11:36:33]Write i2c OK [11:36:33]MH_I2C_Read... [11:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:34]Read from MH i2c: E2 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 03 00 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 03 00 DE 32 00 90 00 84 [11:36:34]RAPDU: 90 00 [11:36:34]wFMCommunicate OK [11:36:34]wFMCommunicate request_size=10 [11:36:34]MH_SAM_APDU [11:36:34]CAPDU: 80 0D 02 02 05 DD D9 F8 5F 53 [11:36:34]Write to MH i2c: E2 0D 00 DF 32 80 0D 02 02 05 00 DD D9 F8 5F 53 00 00 F5 [11:36:34]Write i2c OK [11:36:34]MH_I2C_Read... [11:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:34]Read from MH i2c: E2 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 03 00 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 03 00 DF 32 00 90 00 85 [11:36:34]RAPDU: 90 00 [11:36:34]wFMCommunicate OK [11:36:34]wFMCommunicate request_size=4 [11:36:34]MH_SAM_APDU [11:36:34]CAPDU: 80 0D 03 02 [11:36:34]Write to MH i2c: E2 08 00 E0 32 80 0D 03 02 00 00 00 00 8D [11:36:34]Write i2c OK [11:36:34]MH_I2C_Read... [11:36:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:34]Read from MH i2c: E2 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 0B 00 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 0B 00 E0 32 00 EE EE 1D 69 A0 50 19 65 90 00 5E [11:36:34]RAPDU: EE EE 1D 69 A0 50 19 65 90 00 [11:36:34]wFMCommunicate OK [11:36:34]SAM_PROTO_SignData done [11:36:34]FM_MakeSignedData done [11:36:34]CreateOFDProtocolMessage [11:36:34]wFMCommunicate request_size=4 [11:36:34]MH_SAM_APDU [11:36:34]CAPDU: 80 11 00 00 [11:36:34]Write to MH i2c: E2 08 00 E1 32 80 11 00 00 00 00 00 00 8D [11:36:34]Write i2c OK [11:36:34]MH_I2C_Read... [11:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:34]Read from MH i2c: E2 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 17 00 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: E2 17 00 E1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E4 [11:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:36:34]wFMCommunicate OK [11:36:34]CreateOFDProtocolMessage done [11:36:34]OFDSenderStorePacket 139659 [11:36:34]StoreOFDPacket docnum=139659 [11:36:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E2 A2 07 01 B4 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 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C3 7F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 21 02 00 35 04 06 00 43 DD D9 F8 5F 53 EE EE 1D 69 A0 50 19 65 [11:36:34]CheckFolder [11:36:34]dirname=/storage/ofd_packets [11:36:34]CheckFolder done [11:36:34]ProducePacketName [11:36:34]name=ofd_packets/00139659 [11:36:34]NVStorageSaveData ofd_packets/00139659 [11:36:34]File name is /storage/ofd_packets/00139659 [11:36:34]Write 301 bytes [11:36:34]NVStorageSaveData done [11:36:34]OFDSenderStorePacket done [11:36:34]KKMCreateOFDPacket done [11:36:34]NVStorageSaveData kkm_last_timestamp [11:36:34]File name is /storage/kkm_last_timestamp [11:36:34]Write 4 bytes [11:36:34]NVStorageSaveData done [11:36:34]ExternCall_PrintAddStr [11:36:34]wPrintStart [11:36:34]Write to MH i2c: 01 00 00 E2 32 14 [11:36:34]Write i2c OK [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: 01 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: 01 07 00 [11:36:34]MH_I2C_Read... [11:36:34]Read from MH i2c: 01 07 00 E2 32 00 00 00 00 00 FF 0F 29 [11:36:34]RasterBufferAndPrint [11:36:34]line Счет N : (1)593505 [11:36:34]line ИНН: 02508201610067 [11:36:34]line Контрольно-Кассовый Чек [11:36:34]line ПРОДАЖА [11:36:34]line ТРК (МРК, ГНК) : 51 [11:36:34]line Товар: 2710124500 [11:36:34]line Аи-95-К-5 [11:36:34]line 10.790 * 74.20 [11:36:34]line = 800.62 [11:36:34]line НДС 12% НСП 1% [11:36:34]line > о реализуемом товаре [11:36:34]line ОКРУГЛЕНИЕ: -0.62 [11:36:34]line ИТОГО: 800.00 [11:36:34]line Внесено: 800.00 [11:36:34]line СДАЧА: 0.00 [11:36:34]line НСП 1% : 7.08 [11:36:34]line НДС 12% : 85.02 [11:36:34]line Наличными: 800.00 [11:36:34]line Безнал.: 0.00 [11:36:34]line Место: АЗС № 136 "Партнер Нефть" [11:36:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:36:34]line СНО: Общий режим [11:36:34]line Чек 131 20.08.2024 11:36 [11:36:34]line Смена: 453 ФФД: 1.0 [11:36:34]line ЗНМ: 0300000067 [11:36:34]line РНМ: 0000000000092569 [11:36:34]line Версия ККМ: 001 [11:36:34]line ФМ: 0000000000871776 [11:36:34]line ФД: 139659 [11:36:34]line ФПД: 74620123766611 [11:36:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T113635&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139659&fm=74620123766611&tin=02508201610067®Number=0000000000092569&sum=80000 [11:36:34]OFD Sender: Processing packet 139659 [packets to send 137, broken 136] [11:36:34]ProducePacketName [11:36:34]name=ofd_packets/00139659 [11:36:34]OFD Sender: To server: pG, [11:36:34]CommunicateWithHost lk.salyk.kg:30040 [11:36:34]ConnectInit lk.salyk.kg [11:36:34]written 0, free lines is 4095 [11:36:34]Connected sock=10 [11:36:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E2 A2 07 01 B4 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 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C3 7F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 21 02 00 35 04 06 00 43 DD D9 F8 5F 53 EE EE 1D 69 A0 50 19 65 [11:36:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 71 E3 47 00 E4 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 21 02 00 F4 03 04 00 57 26 C4 66 B6 04 01 00 00 61 EC ED 6D 44 2F F7 BA [11:36:35]CommunicateWithHost err = 0 [11:36:35]CheckOFDResponse [11:36:35]1017 (14) - 77093643461234 [11:36:35]1041 (16) - 0000000000871776 [11:36:35]1040 (4) - 139659 [11:36:35]1012 (4) - 20.08.2024 05:15 [11:36:35]1206 (1) - 0 [11:36:35]OFD Sender: Remove packet 139659 [11:36:35]ProducePacketName [11:36:35]name=ofd_packets/00139659 [11:36:35]NVStorageDeleteData [11:36:35]Write to MH i2c: 01 00 00 0D 33 40 [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: 01 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: 01 07 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: 01 07 00 0D 33 00 00 00 00 00 D4 0C 27 [11:36:35]RasterBufferAndPrint [11:36:35]line [11:36:35]line [11:36:35]line [11:36:35]line [11:36:35]line [11:36:35]written 0, free lines is 3292 [11:36:35]MH_Cut [11:36:35]Write to MH i2c: D1 01 00 14 33 01 19 [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: D1 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: D1 01 00 [11:36:35]MH_I2C_Read... [11:36:35]Read from MH i2c: D1 01 00 14 33 00 18 [11:36:35]Write to MH i2c: 01 00 00 15 33 48 [11:36:35]Write i2c OK [11:36:35]MH_I2C_Read... [11:36:35]OFD Sender: No OFD packet to send [11:36:35]*** Cut start [11:36:35]*** Partial cut [11:36:35]*** CUTSNS_PIN = 1 [11:36:35]*** CUTSNS_PIN = 0 [11:36:36]*** Brake cut motor [11:36:36]Read from MH i2c: 01 [11:36:36]MH_I2C_Read... [11:36:36]*** Stop cut motor [11:36:36]*** Cut end [11:36:36]Read from MH i2c: 01 07 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 15 33 00 00 00 00 00 FF 0F 5D [11:36:36]process_action close_receipt done [11:36:36]requested_data is exist [11:36:36]produce_requested_data [11:36:36]requested_item fm.sn is exist - process it [11:36:36]wFMCommunicate request_size=4 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 11 00 00 [11:36:36]Write to MH i2c: E2 08 00 16 33 80 11 00 00 00 00 00 00 C3 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 17 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 17 00 16 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1A [11:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:36:36]wFMCommunicate OK [11:36:36]requested_item fd.num is exist - process it [11:36:36]SAM_PROTO_GetFieldsCounters [11:36:36]wFMCommunicate request_size=4 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 13 00 00 [11:36:36]Write to MH i2c: E2 08 00 17 33 80 13 00 00 00 00 00 00 C6 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 62 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 62 00 17 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [11:36:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:36]wFMCommunicate OK [11:36:36]SAM_PROTO_GetFieldsCounters done [11:36:36]requested_item shift.num is exist - process it [11:36:36]requested_item shift.opened is exist - process it [11:36:36]req_shift_opened [11:36:36]FM_GetShiftState [11:36:36]SAM_PROTO_GetShiftState [11:36:36]wFMCommunicate request_size=4 [11:36:36]MH_SAM_APDU [11:36:36]CAPDU: 80 13 01 00 [11:36:36]Write to MH i2c: E2 08 00 18 33 80 13 01 00 00 00 00 00 C8 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]int [11:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:36]*** FLAG_PRN_KEY set [11:36:36]Read from MH i2c: E2 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 0E 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: E2 0E 00 18 33 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 59 [11:36:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:36:36]wFMCommunicate OK [11:36:36]SAM_PROTO_GetShiftState done [11:36:36]FM_GetShiftState done [11:36:36]req_shift_opened done [11:36:36]requested_item shift.open_date is exist - process it [11:36:36]req_shift_open_date [11:36:36]req_shift_open_date done [11:36:36]produce_requested_data done [11:36:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139659,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:36:36]process_action_free close_receipt [11:36:36]json_value_free [11:36:36]json_value_free done [11:36:36]process_json_proto returns [11:36:36]Send response to host [11:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139659,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:36:36]free response buf [11:36:36]execute_script done [11:36:36]execute_script returns [11:36:36]free content buf [11:36:36]Sock 9.Close socket [11:36:36]Write to MH i2c: 01 00 00 19 33 4C [11:36:36]Sock 9.Thread stoped [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 19 33 00 08 00 00 00 FF 0F 69 [11:36:36]state=0 [11:36:36]Key pressed [11:36:36]Feed [11:36:36]Write to MH i2c: D8 00 00 1A 33 24 [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: D8 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: D8 01 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: D8 01 00 1A 33 00 25 [11:36:36]int [11:36:36]Write to MH i2c: 01 00 00 1B 33 4E [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 1B 33 00 48 00 00 00 3C 00 D9 [11:36:36]state=2 [11:36:36]Key pressed [11:36:36]int [11:36:36]Write to MH i2c: 01 00 00 1C 33 4F [11:36:36]*** FLAG_PRN_KEY reset [11:36:36]Write i2c OK [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 [11:36:36]MH_I2C_Read... [11:36:36]Read from MH i2c: 01 07 00 1C 33 00 00 00 00 00 FA 0F 5F [11:36:36]state=2 [11:36:36]Stop feed [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:36:59]accept exits with 7 [11:36:59]New connection [11:36:59]New thread 3067215204 created [11:36:59]Thread 3067071844 joined [11:36:59]Waiting for new connection... [11:36:59] Sock 7.Parse request [11:36:59]Sock 7.Check first char [11:36:59]Sock 7.First char is OK [11:36:59]request: POST /json_proto HTTP/1.0 [11:36:59]Method: POST [11:36:59]URL: /json_proto [11:36:59]Method is POST - this is cgi request [11:36:59]url: /json_proto [11:36:59]query_string will be loaded in cgi processing [11:36:59]execute_cgi json_proto POST (null) [11:36:59]execute_cgi path=json_proto method=POST [11:36:59]POST find Content-Length [11:36:59]Host: 172.17.45.67:8080 [11:36:59]Content-Length: 677 [11:36:59]Content-Type: application/json [11:36:59] [11:36:59]POST finish read [11:36:59]Found Content-Length = 677 [11:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.100, "sum" : 210.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:59]execute_script... [11:36: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)593506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.100, "sum" : 210.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:59]POST & json_proto [11:36:59]process_json_proto [11:36:59]json parsed OK: [11:36:59]protocol is kg_v1.0 [11:36:59]action value=close_receipt [11:36:59]process_action close_receipt [11:36:59]cmd_close_receipt [11:36:59]MH_GetDate [11:36:59]Write to MH i2c: F0 00 00 1D 33 3F [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: F0 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: F0 09 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: F0 09 00 1D 33 00 DE 7F C4 66 5F 7F 2B 66 3E [11:36:59]GetLastDocTimeStamp 1724153795 [11:36:59]current date 1724153822 [11:36:59]FM_GetShiftState [11:36:59]SAM_PROTO_GetShiftState [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 13 01 00 [11:36:59]Write to MH i2c: E2 08 00 1E 33 80 13 01 00 00 00 00 00 CE [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 0E 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 0E 00 1E 33 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5F [11:36:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:36:59]wFMCommunicate OK [11:36:59]SAM_PROTO_GetShiftState done [11:36:59]FM_GetShiftState done [11:36:59]opened in 1724113785 [11:36:59]opened+sec_in_day 1724200185 [11:36:59]quantity*price = 21018 [11:36:59]sum+1 = 21019 [11:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.32 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 132 20.08.2024 11:37 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139660 ФПД: 161867378472612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T113702&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139660&fm=161867378472612&tin=02508201610067®Number=0000000000092569&sum=21000 [11:37:00]StoreToDocumentArchive [11:37:00]shift 453 fd 139660 [11:37:00]save to /storage/0453/doc_00139660 [11:37:00]save last doc name /storage/0453/doc_00139660 to /storage/kkm_last_doc_name [11:37:00]save OK [11:37:00]Clear old archive folders... [11:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:00]tlvbuf is 00E29060 [11:37:00]SAM_PROTO_ClearQueue [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 09 00 00 [11:37:00]Write to MH i2c: E2 08 00 2B 33 80 09 00 00 00 00 00 00 D0 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 2B 33 00 90 00 D2 [11:37:00]RAPDU: 90 00 [11:37:00]wFMCommunicate OK [11:37:00]SAM_PROTO_ClearQueue done [11:37:00]KKMCreateOFDPacket [11:37:00]OFDProtocolAddRootSTLVToBuf [11:37:00]FM_MakeSignedData [11:37:00]FM_MakeSignedData [11:37:00]SAM_PROTO_SignData [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 0D 01 02 [11:37:00]Write to MH i2c: E2 08 00 2C 33 80 0D 01 02 00 00 00 00 D8 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 2C 33 00 90 00 D3 [11:37:00]RAPDU: 90 00 [11:37:00]wFMCommunicate OK [11:37:00]wFMCommunicate request_size=255 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 DE 7F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 21 02 00 35 04 06 00 93 [11:37:00]Write to MH i2c: E2 02 01 2D 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 DE 7F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 21 02 00 35 04 06 00 93 00 00 57 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]OFD Sender: No OFD packet to send [11:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 2D 33 00 90 00 D4 [11:37:00]RAPDU: 90 00 [11:37:00]wFMCommunicate OK [11:37:00]wFMCommunicate request_size=10 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 0D 02 02 05 37 AF 98 36 A4 [11:37:00]Write to MH i2c: E2 0D 00 2E 33 80 0D 02 02 05 00 37 AF 98 36 A4 00 00 3D [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 2E 33 00 90 00 D5 [11:37:00]RAPDU: 90 00 [11:37:00]wFMCommunicate OK [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 0D 03 02 [11:37:00]Write to MH i2c: E2 08 00 2F 33 80 0D 03 02 00 00 00 00 DD [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 0B 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 0B 00 2F 33 00 B0 87 83 23 41 CF 22 1E 90 00 0B [11:37:00]RAPDU: B0 87 83 23 41 CF 22 1E 90 00 [11:37:00]wFMCommunicate OK [11:37:00]SAM_PROTO_SignData done [11:37:00]FM_MakeSignedData done [11:37:00]CreateOFDProtocolMessage [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 11 00 00 [11:37:00]Write to MH i2c: E2 08 00 30 33 80 11 00 00 00 00 00 00 DD [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 17 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 17 00 30 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 34 [11:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:37:00]wFMCommunicate OK [11:37:00]CreateOFDProtocolMessage done [11:37:00]OFDSenderStorePacket 139660 [11:37:00]StoreOFDPacket docnum=139660 [11:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8A 72 07 01 36 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 DE 7F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 21 02 00 35 04 06 00 93 37 AF 98 36 A4 B0 87 83 23 41 CF 22 1E [11:37:00]CheckFolder [11:37:00]dirname=/storage/ofd_packets [11:37:00]CheckFolder done [11:37:00]ProducePacketName [11:37:00]name=ofd_packets/00139660 [11:37:00]NVStorageSaveData ofd_packets/00139660 [11:37:00]File name is /storage/ofd_packets/00139660 [11:37:00]Write 301 bytes [11:37:00]NVStorageSaveData done [11:37:00]OFDSenderStorePacket done [11:37:00]KKMCreateOFDPacket done [11:37:00]NVStorageSaveData kkm_last_timestamp [11:37:00]File name is /storage/kkm_last_timestamp [11:37:00]Write 4 bytes [11:37:00]NVStorageSaveData done [11:37:00]ExternCall_PrintAddStr [11:37:00]wPrintStart [11:37:00]Write to MH i2c: 01 00 00 31 33 64 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 07 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 07 00 31 33 00 00 00 00 00 FF 0F 79 [11:37:00]RasterBufferAndPrint [11:37:00]line Счет N : (1)593506 [11:37:00]line ИНН: 02508201610067 [11:37:00]line Контрольно-Кассовый Чек [11:37:00]line ПРОДАЖА [11:37:00]line ТРК (МРК, ГНК) : 42 [11:37:00]line Товар: 2710124130 [11:37:00]line Аи-92-К-5 [11:37:00]line 3.100 * 67.80 [11:37:00]line = 210.18 [11:37:00]line НДС 12% НСП 1% [11:37:00]line > о реализуемом товаре [11:37:00]line ОКРУГЛЕНИЕ: -0.18 [11:37:00]line ИТОГО: 210.00 [11:37:00]line Внесено: 210.00 [11:37:00]line СДАЧА: 0.00 [11:37:00]line НСП 1% : 1.86 [11:37:00]line НДС 12% : 22.32 [11:37:00]line Наличными: 210.00 [11:37:00]line Безнал.: 0.00 [11:37:00]line Место: АЗС № 136 "Партнер Нефть" [11:37:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:37:00]line СНО: Общий режим [11:37:00]line Чек 132 20.08.2024 11:37 [11:37:00]line Смена: 453 ФФД: 1.0 [11:37:00]line ЗНМ: 0300000067 [11:37:00]line РНМ: 0000000000092569 [11:37:00]line Версия ККМ: 001 [11:37:00]line ФМ: 0000000000871776 [11:37:00]line ФД: 139660 [11:37:00]line ФПД: 161867378472612 [11:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T113702&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139660&fm=161867378472612&tin=02508201610067®Number=0000000000092569&sum=21000 [11:37:01]OFD Sender: Processing packet 139660 [packets to send 137, broken 136] [11:37:01]ProducePacketName [11:37:01]name=ofd_packets/00139660 [11:37:01]OFD Sender: To server: pG, [11:37:01]CommunicateWithHost lk.salyk.kg:30040 [11:37:01]ConnectInit lk.salyk.kg [11:37:01]written 0, free lines is 4095 [11:37:01]Connected sock=10 [11:37:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8A 72 07 01 36 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 DE 7F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 21 02 00 35 04 06 00 93 37 AF 98 36 A4 B0 87 83 23 41 CF 22 1E [11:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8C C6 47 00 44 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 21 02 00 F4 03 04 00 72 26 C4 66 B6 04 01 00 00 BC 25 68 96 F4 17 41 93 [11:37:01]CommunicateWithHost err = 0 [11:37:01]CheckOFDResponse [11:37:01]1017 (14) - 77093643461234 [11:37:01]1041 (16) - 0000000000871776 [11:37:01]1040 (4) - 139660 [11:37:01]1012 (4) - 20.08.2024 05:15 [11:37:01]1206 (1) - 0 [11:37:01]OFD Sender: Remove packet 139660 [11:37:01]ProducePacketName [11:37:01]name=ofd_packets/00139660 [11:37:01]NVStorageDeleteData [11:37:01]Write to MH i2c: 01 00 00 5C 33 8F [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: 01 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: 01 07 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: 01 07 00 5C 33 00 00 00 00 00 C5 0C 67 [11:37:01]RasterBufferAndPrint [11:37:01]line [11:37:01]line [11:37:01]line [11:37:01]line [11:37:01]line [11:37:01]written 0, free lines is 3276 [11:37:01]MH_Cut [11:37:01]Write to MH i2c: D1 01 00 63 33 01 68 [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: D1 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: D1 01 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: D1 01 00 63 33 00 67 [11:37:01]Write to MH i2c: 01 00 00 64 33 97 [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:02]OFD Sender: No OFD packet to send [11:37:02]*** Cut start [11:37:02]*** Partial cut [11:37:02]*** CUTSNS_PIN = 1 [11:37:02]*** CUTSNS_PIN = 0 [11:37:02]*** Brake cut motor [11:37:03]Read from MH i2c: 01 [11:37:03]MH_I2C_Read... [11:37:03]*** Stop cut motor [11:37:03]*** Cut end [11:37:03]Read from MH i2c: 01 07 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: 01 07 00 64 33 00 00 00 00 00 FF 0F AC [11:37:03]process_action close_receipt done [11:37:03]requested_data is exist [11:37:03]produce_requested_data [11:37:03]requested_item fm.sn is exist - process it [11:37:03]wFMCommunicate request_size=4 [11:37:03]MH_SAM_APDU [11:37:03]CAPDU: 80 11 00 00 [11:37:03]Write to MH i2c: E2 08 00 65 33 80 11 00 00 00 00 00 00 12 [11:37:03]Write i2c OK [11:37:03]MH_I2C_Read... [11:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:03]Read from MH i2c: E2 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 17 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 17 00 65 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [11:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:37:03]wFMCommunicate OK [11:37:03]requested_item fd.num is exist - process it [11:37:03]SAM_PROTO_GetFieldsCounters [11:37:03]wFMCommunicate request_size=4 [11:37:03]MH_SAM_APDU [11:37:03]CAPDU: 80 13 00 00 [11:37:03]Write to MH i2c: E2 08 00 66 33 80 13 00 00 00 00 00 00 15 [11:37:03]Write i2c OK [11:37:03]MH_I2C_Read... [11:37:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:03]Read from MH i2c: E2 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 62 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 62 00 66 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [11:37:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:03]wFMCommunicate OK [11:37:03]SAM_PROTO_GetFieldsCounters done [11:37:03]requested_item shift.num is exist - process it [11:37:03]requested_item shift.opened is exist - process it [11:37:03]req_shift_opened [11:37:03]FM_GetShiftState [11:37:03]SAM_PROTO_GetShiftState [11:37:03]wFMCommunicate request_size=4 [11:37:03]MH_SAM_APDU [11:37:03]CAPDU: 80 13 01 00 [11:37:03]Write to MH i2c: E2 08 00 67 33 80 13 01 00 00 00 00 00 17 [11:37:03]Write i2c OK [11:37:03]MH_I2C_Read... [11:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:03]Read from MH i2c: E2 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 0E 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 0E 00 67 33 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A8 [11:37:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:37:03]wFMCommunicate OK [11:37:03]SAM_PROTO_GetShiftState done [11:37:03]FM_GetShiftState done [11:37:03]req_shift_opened done [11:37:03]requested_item shift.open_date is exist - process it [11:37:03]req_shift_open_date [11:37:03]req_shift_open_date done [11:37:03]produce_requested_data done [11:37:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139660,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:37:03]process_action_free close_receipt [11:37:03]json_value_free [11:37:03]json_value_free done [11:37:03]process_json_proto returns [11:37:03]Send response to host [11:37:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139660,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:37:03]free response buf [11:37:03]execute_script done [11:37:03]execute_script returns [11:37:03]free content buf [11:37:03]Sock 7.Close socket [11:37:03]Sock 7.Thread stoped [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:54]accept exits with 9 [11:38:54]New connection [11:38:54]New thread 3067071844 created [11:38:54]Thread 3067215204 joined [11:38:54]Waiting for new connection... [11:38:54] Sock 9.Parse request [11:38:54]Sock 9.Check first char [11:38:54]Sock 9.First char is OK [11:38:54]request: POST /json_proto HTTP/1.0 [11:38:54]Method: POST [11:38:54]URL: /json_proto [11:38:54]Method is POST - this is cgi request [11:38:54]url: /json_proto [11:38:54]query_string will be loaded in cgi processing [11:38:54]execute_cgi json_proto POST (null) [11:38:54]execute_cgi path=json_proto method=POST [11:38:54]POST find Content-Length [11:38:54]Host: 172.17.45.67:8080 [11:38:54]Content-Length: 678 [11:38:54]Content-Type: application/json [11:38:54] [11:38:54]POST finish read [11:38:54]Found Content-Length = 678 [11:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.500, "sum" : 915.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 915.00, "total" : 915.00, "payments": [ { "type": 0, "sum" : 915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:54]execute_script... [11:38:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.500, "sum" : 915.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 915.00, "total" : 915.00, "payments": [ { "type": 0, "sum" : 915.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:54]POST & json_proto [11:38:54]process_json_proto [11:38:54]json parsed OK: [11:38:54]protocol is kg_v1.0 [11:38:54]action value=close_receipt [11:38:54]process_action close_receipt [11:38:54]cmd_close_receipt [11:38:54]MH_GetDate [11:38:54]Write to MH i2c: F0 00 00 68 33 8A [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: F0 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: F0 09 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: F0 09 00 68 33 00 52 80 C4 66 5F 7F 2B 66 FE [11:38:54]GetLastDocTimeStamp 1724153822 [11:38:54]current date 1724153938 [11:38:54]FM_GetShiftState [11:38:54]SAM_PROTO_GetShiftState [11:38:54]wFMCommunicate request_size=4 [11:38:54]MH_SAM_APDU [11:38:54]CAPDU: 80 13 01 00 [11:38:54]Write to MH i2c: E2 08 00 69 33 80 13 01 00 00 00 00 00 19 [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:54]Read from MH i2c: E2 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0E 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0E 00 69 33 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AA [11:38:54]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:38:54]wFMCommunicate OK [11:38:54]SAM_PROTO_GetShiftState done [11:38:54]FM_GetShiftState done [11:38:54]opened in 1724113785 [11:38:54]opened+sec_in_day 1724200185 [11:38:54]quantity*price = 91530 [11:38:54]sum+1 = 91531 [11:38:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 915.00 Внесено: 915.00 СДАЧА: 0.00 НСП 1% : 8.10 НДС 12% : 97.20 Наличными: 915.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 133 20.08.2024 11:38 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139661 ФПД: 278146732206679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T113858&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139661&fm=278146732206679&tin=02508201610067®Number=0000000000092569&sum=91500 [11:38:55]StoreToDocumentArchive [11:38:55]shift 453 fd 139661 [11:38:55]save to /storage/0453/doc_00139661 [11:38:55]save last doc name /storage/0453/doc_00139661 to /storage/kkm_last_doc_name [11:38:55]save OK [11:38:55]Clear old archive folders... [11:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:55]tlvbuf is 00D29060 [11:38:55]SAM_PROTO_ClearQueue [11:38:55]wFMCommunicate request_size=4 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 09 00 00 [11:38:55]Write to MH i2c: E2 08 00 76 33 80 09 00 00 00 00 00 00 1B [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 03 00 76 33 00 90 00 1D [11:38:55]RAPDU: 90 00 [11:38:55]wFMCommunicate OK [11:38:55]SAM_PROTO_ClearQueue done [11:38:55]KKMCreateOFDPacket [11:38:55]OFDProtocolAddRootSTLVToBuf [11:38:55]FM_MakeSignedData [11:38:55]FM_MakeSignedData [11:38:55]SAM_PROTO_SignData [11:38:55]wFMCommunicate request_size=4 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 0D 01 02 [11:38:55]Write to MH i2c: E2 08 00 77 33 80 0D 01 02 00 00 00 00 23 [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 77 33 00 90 00 1E [11:38:56]RAPDU: 90 00 [11:38:56]wFMCommunicate OK [11:38:56]wFMCommunicate request_size=255 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8A 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 25 00 00 00 00 07 04 06 00 6C 65 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 52 80 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 21 02 00 35 04 06 00 FC [11:38:56]Write to MH i2c: E2 02 01 78 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8A 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 25 00 00 00 00 07 04 06 00 6C 65 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 52 80 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 21 02 00 35 04 06 00 FC 00 00 8E [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 78 33 00 90 00 1F [11:38:56]RAPDU: 90 00 [11:38:56]wFMCommunicate OK [11:38:56]wFMCommunicate request_size=10 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 0D 02 02 05 F9 15 2B 2A 57 [11:38:56]Write to MH i2c: E2 0D 00 79 33 80 0D 02 02 05 00 F9 15 2B 2A 57 00 00 EA [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 79 33 00 90 00 20 [11:38:56]RAPDU: 90 00 [11:38:56]wFMCommunicate OK [11:38:56]wFMCommunicate request_size=4 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 0D 03 02 [11:38:56]Write to MH i2c: E2 08 00 7A 33 80 0D 03 02 00 00 00 00 28 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 0B 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 0B 00 7A 33 00 25 B1 45 68 6F 40 B7 13 90 00 25 [11:38:56]RAPDU: 25 B1 45 68 6F 40 B7 13 90 00 [11:38:56]wFMCommunicate OK [11:38:56]SAM_PROTO_SignData done [11:38:56]FM_MakeSignedData done [11:38:56]CreateOFDProtocolMessage [11:38:56]wFMCommunicate request_size=4 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 11 00 00 [11:38:56]Write to MH i2c: E2 08 00 7B 33 80 11 00 00 00 00 00 00 28 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 17 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 17 00 7B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [11:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:38:56]wFMCommunicate OK [11:38:56]CreateOFDProtocolMessage done [11:38:56]OFDSenderStorePacket 139661 [11:38:56]StoreOFDPacket docnum=139661 [11:38:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 A3 07 01 D4 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8A 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 25 00 00 00 00 07 04 06 00 6C 65 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 52 80 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 21 02 00 35 04 06 00 FC F9 15 2B 2A 57 25 B1 45 68 6F 40 B7 13 [11:38:56]CheckFolder [11:38:56]dirname=/storage/ofd_packets [11:38:56]CheckFolder done [11:38:56]ProducePacketName [11:38:56]name=ofd_packets/00139661 [11:38:56]NVStorageSaveData ofd_packets/00139661 [11:38:56]File name is /storage/ofd_packets/00139661 [11:38:56]Write 301 bytes [11:38:56]NVStorageSaveData done [11:38:56]OFDSenderStorePacket done [11:38:56]KKMCreateOFDPacket done [11:38:56]NVStorageSaveData kkm_last_timestamp [11:38:56]File name is /storage/kkm_last_timestamp [11:38:56]Write 4 bytes [11:38:56]NVStorageSaveData done [11:38:56]ExternCall_PrintAddStr [11:38:56]wPrintStart [11:38:56]Write to MH i2c: 01 00 00 7C 33 AF [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 07 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: 01 07 00 7C 33 00 00 00 00 00 FF 0F C4 [11:38:56]RasterBufferAndPrint [11:38:56]line Счет N : (1)593507 [11:38:56]line ИНН: 02508201610067 [11:38:56]line Контрольно-Кассовый Чек [11:38:56]line ПРОДАЖА [11:38:56]line ТРК (МРК, ГНК) : 62 [11:38:56]line Товар: 2710124130 [11:38:56]line Аи-92-К-5 [11:38:56]line 13.500 * 67.80 [11:38:56]line = 915.30 [11:38:56]line НДС 12% НСП 1% [11:38:56]line > о реализуемом товаре [11:38:56]line ОКРУГЛЕНИЕ: -0.30 [11:38:56]line ИТОГО: 915.00 [11:38:56]line Внесено: 915.00 [11:38:56]line СДАЧА: 0.00 [11:38:56]line НСП 1% : 8.10 [11:38:56]line НДС 12% : 97.20 [11:38:56]line Наличными: 915.00 [11:38:56]line Безнал.: 0.00 [11:38:56]line Место: АЗС № 136 "Партнер Нефть" [11:38:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:38:56]line СНО: Общий режим [11:38:56]line Чек 133 20.08.2024 11:38 [11:38:56]line Смена: 453 ФФД: 1.0 [11:38:56]line ЗНМ: 0300000067 [11:38:56]line РНМ: 0000000000092569 [11:38:56]line Версия ККМ: 001 [11:38:56]line ФМ: 0000000000871776 [11:38:56]line ФД: 139661 [11:38:56]line ФПД: 278146732206679 [11:38:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T113858&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139661&fm=278146732206679&tin=02508201610067®Number=0000000000092569&sum=91500 [11:38:56]OFD Sender: Processing packet 139661 [packets to send 137, broken 136] [11:38:56]ProducePacketName [11:38:56]name=ofd_packets/00139661 [11:38:56]OFD Sender: To server: pG, [11:38:56]CommunicateWithHost lk.salyk.kg:30040 [11:38:56]ConnectInit lk.salyk.kg [11:38:56]written 0, free lines is 4095 [11:38:56]Connected sock=10 [11:38:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 A3 07 01 D4 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 34 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 8A 65 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 25 00 00 00 00 07 04 06 00 6C 65 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 52 80 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 21 02 00 35 04 06 00 FC F9 15 2B 2A 57 25 B1 45 68 6F 40 B7 13 [11:38:57]Write to MH i2c: 01 00 00 A7 33 DA [11:38:57]Write i2c OK [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: 01 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: 01 07 00 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: 01 07 00 A7 33 00 00 00 00 00 CD 0C BA [11:38:57]RasterBufferAndPrint [11:38:57]line [11:38:57]line [11:38:57]line [11:38:57]line [11:38:57]line [11:38:57]written 0, free lines is 3282 [11:38:57]MH_Cut [11:38:57]Write to MH i2c: D1 01 00 AE 33 01 B3 [11:38:57]Write i2c OK [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: D1 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: D1 01 00 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: D1 01 00 AE 33 00 B2 [11:38:57]Write to MH i2c: 01 00 00 AF 33 E2 [11:38:57]Write i2c OK [11:38:57]MH_I2C_Read... [11:38:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E9 30 47 00 21 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 21 02 00 F4 03 04 00 E5 26 C4 66 B6 04 01 00 00 B3 EA DE D6 E0 FA BA F5 [11:38:57]CommunicateWithHost err = 0 [11:38:57]CheckOFDResponse [11:38:57]1017 (14) - 77093643461234 [11:38:57]1041 (16) - 0000000000871776 [11:38:57]1040 (4) - 139661 [11:38:57]1012 (4) - 20.08.2024 05:17 [11:38:57]1206 (1) - 0 [11:38:57]OFD Sender: Remove packet 139661 [11:38:57]ProducePacketName [11:38:57]name=ofd_packets/00139661 [11:38:57]NVStorageDeleteData [11:38:57]OFD Sender: No OFD packet to send [11:38:57]*** Cut start [11:38:57]*** Partial cut [11:38:57]*** CUTSNS_PIN = 1 [11:38:58]*** CUTSNS_PIN = 0 [11:38:58]*** Brake cut motor [11:38:58]Read from MH i2c: 01 [11:38:58]MH_I2C_Read... [11:38:58]*** Stop cut motor [11:38:58]*** Cut end [11:38:58]Read from MH i2c: 01 07 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: 01 07 00 AF 33 00 00 00 00 00 FF 0F F7 [11:38:58]process_action close_receipt done [11:38:58]requested_data is exist [11:38:58]produce_requested_data [11:38:58]requested_item fm.sn is exist - process it [11:38:58]wFMCommunicate request_size=4 [11:38:58]MH_SAM_APDU [11:38:58]CAPDU: 80 11 00 00 [11:38:58]Write to MH i2c: E2 08 00 B0 33 80 11 00 00 00 00 00 00 5D [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:58]Read from MH i2c: E2 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 17 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 17 00 B0 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [11:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:38:58]wFMCommunicate OK [11:38:58]requested_item fd.num is exist - process it [11:38:58]SAM_PROTO_GetFieldsCounters [11:38:58]wFMCommunicate request_size=4 [11:38:58]MH_SAM_APDU [11:38:58]CAPDU: 80 13 00 00 [11:38:58]Write to MH i2c: E2 08 00 B1 33 80 13 00 00 00 00 00 00 60 [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:58]Read from MH i2c: E2 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 62 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 62 00 B1 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [11:38:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:58]wFMCommunicate OK [11:38:58]SAM_PROTO_GetFieldsCounters done [11:38:58]requested_item shift.num is exist - process it [11:38:58]requested_item shift.opened is exist - process it [11:38:58]req_shift_opened [11:38:58]FM_GetShiftState [11:38:58]SAM_PROTO_GetShiftState [11:38:58]wFMCommunicate request_size=4 [11:38:58]MH_SAM_APDU [11:38:58]CAPDU: 80 13 01 00 [11:38:58]Write to MH i2c: E2 08 00 B2 33 80 13 01 00 00 00 00 00 62 [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:58]Read from MH i2c: E2 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 0E 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: E2 0E 00 B2 33 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F3 [11:38:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:38:58]wFMCommunicate OK [11:38:58]SAM_PROTO_GetShiftState done [11:38:58]FM_GetShiftState done [11:38:58]req_shift_opened done [11:38:58]requested_item shift.open_date is exist - process it [11:38:58]req_shift_open_date [11:38:58]req_shift_open_date done [11:38:58]produce_requested_data done [11:38:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139661,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:38:58]process_action_free close_receipt [11:38:58]json_value_free [11:38:58]json_value_free done [11:38:58]process_json_proto returns [11:38:58]Send response to host [11:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139661,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:38:58]free response buf [11:38:58]execute_script done [11:38:58]execute_script returns [11:38:58]free content buf [11:38:58]Sock 9.Close socket [11:38:58]Sock 9.Thread stoped [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:46]accept exits with 7 [11:39:46]New connection [11:39:46]New thread 3067215204 created [11:39:46]Thread 3067071844 joined [11:39:46]Waiting for new connection... [11:39:46] Sock 7.Parse request [11:39:46]Sock 7.Check first char [11:39:46]Sock 7.First char is OK [11:39:46]request: POST /json_proto HTTP/1.0 [11:39:46]Method: POST [11:39:46]URL: /json_proto [11:39:46]Method is POST - this is cgi request [11:39:46]url: /json_proto [11:39:46]query_string will be loaded in cgi processing [11:39:46]execute_cgi json_proto POST (null) [11:39:46]execute_cgi path=json_proto method=POST [11:39:46]POST find Content-Length [11:39:46]Host: 172.17.45.67:8080 [11:39:46]Content-Length: 677 [11:39:46]Content-Type: application/json [11:39:46] [11:39:46]POST finish read [11:39:46]Found Content-Length = 677 [11:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.010, "sum" : 520.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:46]execute_script... [11:39: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)593508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 7.010, "sum" : 520.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:46]POST & json_proto [11:39:46]process_json_proto [11:39:46]json parsed OK: [11:39:46]protocol is kg_v1.0 [11:39:46]action value=close_receipt [11:39:46]process_action close_receipt [11:39:46]cmd_close_receipt [11:39:46]MH_GetDate [11:39:46]Write to MH i2c: F0 00 00 B3 33 D5 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: F0 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: F0 09 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: F0 09 00 B3 33 00 86 80 C4 66 5F 7F 2B 66 7D [11:39:46]GetLastDocTimeStamp 1724153938 [11:39:46]current date 1724153990 [11:39:46]FM_GetShiftState [11:39:46]SAM_PROTO_GetShiftState [11:39:46]wFMCommunicate request_size=4 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 13 01 00 [11:39:46]Write to MH i2c: E2 08 00 B4 33 80 13 01 00 00 00 00 00 64 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:46]Read from MH i2c: E2 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 0E 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 0E 00 B4 33 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F5 [11:39:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:39:46]wFMCommunicate OK [11:39:46]SAM_PROTO_GetShiftState done [11:39:46]FM_GetShiftState done [11:39:46]opened in 1724113785 [11:39:46]opened+sec_in_day 1724200185 [11:39:46]quantity*price = 52014 [11:39:46]sum+1 = 52015 [11:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.24 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 134 20.08.2024 11:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139662 ФПД: 146222035418835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T113950&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139662&fm=146222035418835&tin=02508201610067®Number=0000000000092569&sum=52000 [11:39:48]StoreToDocumentArchive [11:39:48]shift 453 fd 139662 [11:39:48]save to /storage/0453/doc_00139662 [11:39:48]save last doc name /storage/0453/doc_00139662 to /storage/kkm_last_doc_name [11:39:48]save OK [11:39:48]Clear old archive folders... [11:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:48]tlvbuf is 00E29190 [11:39:48]SAM_PROTO_ClearQueue [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 09 00 00 [11:39:48]Write to MH i2c: E2 08 00 C1 33 80 09 00 00 00 00 00 00 66 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 C1 33 00 90 00 68 [11:39:48]RAPDU: 90 00 [11:39:48]wFMCommunicate OK [11:39:48]SAM_PROTO_ClearQueue done [11:39:48]KKMCreateOFDPacket [11:39:48]OFDProtocolAddRootSTLVToBuf [11:39:48]FM_MakeSignedData [11:39:48]FM_MakeSignedData [11:39:48]SAM_PROTO_SignData [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 0D 01 02 [11:39:48]Write to MH i2c: E2 08 00 C2 33 80 0D 01 02 00 00 00 00 6E [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 C2 33 00 90 00 69 [11:39:48]RAPDU: 90 00 [11:39:48]wFMCommunicate OK [11:39:48]wFMCommunicate request_size=255 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 86 80 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 21 02 00 35 04 06 00 84 [11:39:48]Write to MH i2c: E2 02 01 C3 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 86 80 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 21 02 00 35 04 06 00 84 00 00 11 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 C3 33 00 90 00 6A [11:39:48]RAPDU: 90 00 [11:39:48]wFMCommunicate OK [11:39:48]wFMCommunicate request_size=10 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 0D 02 02 05 FC F8 7A BE D3 [11:39:48]Write to MH i2c: E2 0D 00 C4 33 80 0D 02 02 05 00 FC F8 7A BE D3 00 00 7A [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 C4 33 00 90 00 6B [11:39:48]RAPDU: 90 00 [11:39:48]wFMCommunicate OK [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 0D 03 02 [11:39:48]Write to MH i2c: E2 08 00 C5 33 80 0D 03 02 00 00 00 00 73 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 0B 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 0B 00 C5 33 00 A7 D4 A4 0A E9 7D E8 D8 90 00 C3 [11:39:48]RAPDU: A7 D4 A4 0A E9 7D E8 D8 90 00 [11:39:48]wFMCommunicate OK [11:39:48]SAM_PROTO_SignData done [11:39:48]FM_MakeSignedData done [11:39:48]CreateOFDProtocolMessage [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 11 00 00 [11:39:48]Write to MH i2c: E2 08 00 C6 33 80 11 00 00 00 00 00 00 73 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 17 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 17 00 C6 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CA [11:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:39:48]wFMCommunicate OK [11:39:48]CreateOFDProtocolMessage done [11:39:48]OFDSenderStorePacket 139662 [11:39:48]StoreOFDPacket docnum=139662 [11:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1B 58 07 01 75 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 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 86 80 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 21 02 00 35 04 06 00 84 FC F8 7A BE D3 A7 D4 A4 0A E9 7D E8 D8 [11:39:48]CheckFolder [11:39:48]dirname=/storage/ofd_packets [11:39:48]CheckFolder done [11:39:48]ProducePacketName [11:39:48]name=ofd_packets/00139662 [11:39:48]NVStorageSaveData ofd_packets/00139662 [11:39:48]File name is /storage/ofd_packets/00139662 [11:39:48]Write 301 bytes [11:39:48]NVStorageSaveData done [11:39:48]OFDSenderStorePacket done [11:39:48]KKMCreateOFDPacket done [11:39:48]NVStorageSaveData kkm_last_timestamp [11:39:48]File name is /storage/kkm_last_timestamp [11:39:48]Write 4 bytes [11:39:48]NVStorageSaveData done [11:39:48]ExternCall_PrintAddStr [11:39:48]wPrintStart [11:39:48]Write to MH i2c: 01 00 00 C7 33 FA [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: 01 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: 01 07 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: 01 07 00 C7 33 00 00 00 00 00 FF 0F 0F [11:39:48]RasterBufferAndPrint [11:39:48]line Счет N : (1)593508 [11:39:48]line ИНН: 02508201610067 [11:39:48]line Контрольно-Кассовый Чек [11:39:48]line ПРОДАЖА [11:39:48]line ТРК (МРК, ГНК) : 31 [11:39:48]line Товар: 2710124500 [11:39:48]line Аи-95-К-5 [11:39:48]line 7.010 * 74.20 [11:39:48]line = 520.14 [11:39:48]line НДС 12% НСП 1% [11:39:48]line > о реализуемом товаре [11:39:48]line ОКРУГЛЕНИЕ: -0.14 [11:39:48]line ИТОГО: 520.00 [11:39:48]line Внесено: 520.00 [11:39:48]line СДАЧА: 0.00 [11:39:48]line НСП 1% : 4.60 [11:39:48]line НДС 12% : 55.24 [11:39:48]line Наличными: 520.00 [11:39:48]line Безнал.: 0.00 [11:39:48]line Место: АЗС № 136 "Партнер Нефть" [11:39:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:39:48]line СНО: Общий режим [11:39:48]line Чек 134 20.08.2024 11:39 [11:39:48]line Смена: 453 ФФД: 1.0 [11:39:48]line ЗНМ: 0300000067 [11:39:48]line РНМ: 0000000000092569 [11:39:48]line Версия ККМ: 001 [11:39:48]line ФМ: 0000000000871776 [11:39:48]line ФД: 139662 [11:39:48]line ФПД: 146222035418835 [11:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T113950&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139662&fm=146222035418835&tin=02508201610067®Number=0000000000092569&sum=52000 [11:39:48]written 0, free lines is 4095 [11:39:48]OFD Sender: Processing packet 139662 [packets to send 137, broken 136] [11:39:48]ProducePacketName [11:39:48]name=ofd_packets/00139662 [11:39:48]OFD Sender: To server: pG, [11:39:48]CommunicateWithHost lk.salyk.kg:30040 [11:39:48]ConnectInit lk.salyk.kg [11:39:49]Connected sock=10 [11:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1B 58 07 01 75 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 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 86 80 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 21 02 00 35 04 06 00 84 FC F8 7A BE D3 A7 D4 A4 0A E9 7D E8 D8 [11:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 79 A9 47 00 99 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 21 02 00 F4 03 04 00 19 27 C4 66 B6 04 01 00 00 14 97 56 AD 9D 62 9B 55 [11:39:49]CommunicateWithHost err = 0 [11:39:49]CheckOFDResponse [11:39:49]1017 (14) - 77093643461234 [11:39:49]1041 (16) - 0000000000871776 [11:39:49]1040 (4) - 139662 [11:39:49]1012 (4) - 20.08.2024 05:18 [11:39:49]1206 (1) - 0 [11:39:49]OFD Sender: Remove packet 139662 [11:39:49]ProducePacketName [11:39:49]name=ofd_packets/00139662 [11:39:49]NVStorageDeleteData [11:39:49]Write to MH i2c: 01 00 00 F2 33 25 [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 07 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 07 00 F2 33 00 00 00 00 00 C3 0C FB [11:39:49]RasterBufferAndPrint [11:39:49]line [11:39:49]line [11:39:49]line [11:39:49]line [11:39:49]line [11:39:49]written 0, free lines is 3273 [11:39:49]MH_Cut [11:39:49]Write to MH i2c: D1 01 00 F9 33 01 FE [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: D1 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: D1 01 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: D1 01 00 F9 33 00 FD [11:39:49]Write to MH i2c: 01 00 00 FA 33 2D [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]OFD Sender: No OFD packet to send [11:39:50]*** Cut start [11:39:50]*** Partial cut [11:39:50]*** CUTSNS_PIN = 1 [11:39:50]*** CUTSNS_PIN = 0 [11:39:50]*** Brake cut motor [11:39:50]Read from MH i2c: 01 [11:39:50]MH_I2C_Read... [11:39:50]*** Stop cut motor [11:39:50]*** Cut end [11:39:50]Read from MH i2c: 01 07 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: 01 07 00 FA 33 00 00 00 00 00 FF 0F 42 [11:39:50]process_action close_receipt done [11:39:50]requested_data is exist [11:39:50]produce_requested_data [11:39:50]requested_item fm.sn is exist - process it [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 11 00 00 [11:39:50]Write to MH i2c: E2 08 00 FB 33 80 11 00 00 00 00 00 00 A8 [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 17 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 17 00 FB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FF [11:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:39:50]wFMCommunicate OK [11:39:50]requested_item fd.num is exist - process it [11:39:50]SAM_PROTO_GetFieldsCounters [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 13 00 00 [11:39:50]Write to MH i2c: E2 08 00 FC 33 80 13 00 00 00 00 00 00 AB [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 62 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 62 00 FC 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:50]wFMCommunicate OK [11:39:50]SAM_PROTO_GetFieldsCounters done [11:39:50]requested_item shift.num is exist - process it [11:39:50]requested_item shift.opened is exist - process it [11:39:50]req_shift_opened [11:39:50]FM_GetShiftState [11:39:50]SAM_PROTO_GetShiftState [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 13 01 00 [11:39:50]Write to MH i2c: E2 08 00 FD 33 80 13 01 00 00 00 00 00 AD [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0E 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0E 00 FD 33 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3E [11:39:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:39:50]wFMCommunicate OK [11:39:50]SAM_PROTO_GetShiftState done [11:39:50]FM_GetShiftState done [11:39:50]req_shift_opened done [11:39:50]requested_item shift.open_date is exist - process it [11:39:50]req_shift_open_date [11:39:50]req_shift_open_date done [11:39:50]produce_requested_data done [11:39:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139662,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:39:50]process_action_free close_receipt [11:39:50]json_value_free [11:39:50]json_value_free done [11:39:50]process_json_proto returns [11:39:50]Send response to host [11:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139662,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:39:50]free response buf [11:39:50]execute_script done [11:39:50]execute_script returns [11:39:50]free content buf [11:39:50]Sock 7.Close socket [11:39:50]Sock 7.Thread stoped [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:20]accept exits with 9 [11:42:20]New connection [11:42:20]New thread 3067071844 created [11:42:20]Thread 3067215204 joined [11:42:20]Waiting for new connection... [11:42:20] Sock 9.Parse request [11:42:20]Sock 9.Check first char [11:42:20]Sock 9.First char is OK [11:42:20]request: POST /json_proto HTTP/1.0 [11:42:20]Method: POST [11:42:20]URL: /json_proto [11:42:20]Method is POST - this is cgi request [11:42:20]url: /json_proto [11:42:20]query_string will be loaded in cgi processing [11:42:20]execute_cgi json_proto POST (null) [11:42:20]execute_cgi path=json_proto method=POST [11:42:20]POST find Content-Length [11:42:20]Host: 172.17.45.67:8080 [11:42:20]Content-Length: 682 [11:42:20]Content-Type: application/json [11:42:20] [11:42:20]POST finish read [11:42:20]Found Content-Length = 682 [11:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:20]execute_script... [11:42: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)593510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:20]POST & json_proto [11:42:20]process_json_proto [11:42:20]json parsed OK: [11:42:20]protocol is kg_v1.0 [11:42:20]action value=close_receipt [11:42:20]process_action close_receipt [11:42:20]cmd_close_receipt [11:42:20]MH_GetDate [11:42:20]Write to MH i2c: F0 00 00 FE 33 20 [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: F0 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: F0 09 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: F0 09 00 FE 33 00 1F 81 C4 66 5F 7F 2B 66 62 [11:42:20]GetLastDocTimeStamp 1724153990 [11:42:20]current date 1724154143 [11:42:20]FM_GetShiftState [11:42:20]SAM_PROTO_GetShiftState [11:42:20]wFMCommunicate request_size=4 [11:42:20]MH_SAM_APDU [11:42:20]CAPDU: 80 13 01 00 [11:42:20]Write to MH i2c: E2 08 00 FF 33 80 13 01 00 00 00 00 00 AF [11:42:20]Write i2c OK [11:42:20]MH_I2C_Read... [11:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:20]Read from MH i2c: E2 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 0E 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 0E 00 FF 33 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 40 [11:42:20]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:42:20]wFMCommunicate OK [11:42:20]SAM_PROTO_GetShiftState done [11:42:20]FM_GetShiftState done [11:42:20]opened in 1724113785 [11:42:20]opened+sec_in_day 1724200185 [11:42:20]quantity*price = 100005 [11:42:20]sum+1 = 100006 [11:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 135 20.08.2024 11:42 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139663 ФПД: 9847001282944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114224&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139663&fm=9847001282944&tin=02508201610067®Number=0000000000092569&sum=100000 [11:42:21]StoreToDocumentArchive [11:42:21]shift 453 fd 139663 [11:42:21]save to /storage/0453/doc_00139663 [11:42:21]save last doc name /storage/0453/doc_00139663 to /storage/kkm_last_doc_name [11:42:21]save OK [11:42:21]Clear old archive folders... [11:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:21]tlvbuf is 00E51C10 [11:42:21]SAM_PROTO_ClearQueue [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 09 00 00 [11:42:21]Write to MH i2c: E2 08 00 0C 34 80 09 00 00 00 00 00 00 B2 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 0C 34 00 90 00 B4 [11:42:21]RAPDU: 90 00 [11:42:21]wFMCommunicate OK [11:42:21]SAM_PROTO_ClearQueue done [11:42:21]KKMCreateOFDPacket [11:42:21]OFDProtocolAddRootSTLVToBuf [11:42:21]FM_MakeSignedData [11:42:21]FM_MakeSignedData [11:42:21]SAM_PROTO_SignData [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 0D 01 02 [11:42:21]Write to MH i2c: E2 08 00 0D 34 80 0D 01 02 00 00 00 00 BA [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 0D 34 00 90 00 B5 [11:42:21]RAPDU: 90 00 [11:42:21]wFMCommunicate OK [11:42:21]wFMCommunicate request_size=255 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 20 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 21 02 00 35 04 06 00 08 [11:42:21]Write to MH i2c: E2 02 01 0E 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 20 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 21 02 00 35 04 06 00 08 00 00 A4 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:22]Read from MH i2c: E2 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 03 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 03 00 0E 34 00 90 00 B6 [11:42:22]RAPDU: 90 00 [11:42:22]wFMCommunicate OK [11:42:22]wFMCommunicate request_size=10 [11:42:22]MH_SAM_APDU [11:42:22]CAPDU: 80 0D 02 02 05 F4 AF 03 79 80 [11:42:22]Write to MH i2c: E2 0D 00 0F 34 80 0D 02 02 05 00 F4 AF 03 79 80 00 00 66 [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:22]Read from MH i2c: E2 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 03 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 03 00 0F 34 00 90 00 B7 [11:42:22]RAPDU: 90 00 [11:42:22]wFMCommunicate OK [11:42:22]wFMCommunicate request_size=4 [11:42:22]MH_SAM_APDU [11:42:22]CAPDU: 80 0D 03 02 [11:42:22]Write to MH i2c: E2 08 00 10 34 80 0D 03 02 00 00 00 00 BF [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:22]Read from MH i2c: E2 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 0B 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 0B 00 10 34 00 4A AB 49 C3 4A BB C9 1F 90 00 AE [11:42:22]RAPDU: 4A AB 49 C3 4A BB C9 1F 90 00 [11:42:22]wFMCommunicate OK [11:42:22]SAM_PROTO_SignData done [11:42:22]FM_MakeSignedData done [11:42:22]CreateOFDProtocolMessage [11:42:22]wFMCommunicate request_size=4 [11:42:22]MH_SAM_APDU [11:42:22]CAPDU: 80 11 00 00 [11:42:22]Write to MH i2c: E2 08 00 11 34 80 11 00 00 00 00 00 00 BF [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:22]Read from MH i2c: E2 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 17 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: E2 17 00 11 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 16 [11:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:22]wFMCommunicate OK [11:42:22]CreateOFDProtocolMessage done [11:42:22]OFDSenderStorePacket 139663 [11:42:22]StoreOFDPacket docnum=139663 [11:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3B 1B 07 01 7B 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 20 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 21 02 00 35 04 06 00 08 F4 AF 03 79 80 4A AB 49 C3 4A BB C9 1F [11:42:22]CheckFolder [11:42:22]dirname=/storage/ofd_packets [11:42:22]CheckFolder done [11:42:22]ProducePacketName [11:42:22]name=ofd_packets/00139663 [11:42:22]NVStorageSaveData ofd_packets/00139663 [11:42:22]File name is /storage/ofd_packets/00139663 [11:42:22]Write 301 bytes [11:42:22]NVStorageSaveData done [11:42:22]OFDSenderStorePacket done [11:42:22]KKMCreateOFDPacket done [11:42:22]NVStorageSaveData kkm_last_timestamp [11:42:22]File name is /storage/kkm_last_timestamp [11:42:22]Write 4 bytes [11:42:22]NVStorageSaveData done [11:42:22]ExternCall_PrintAddStr [11:42:22]wPrintStart [11:42:22]Write to MH i2c: 01 00 00 12 34 46 [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: 01 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: 01 07 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: 01 07 00 12 34 00 00 00 00 00 FF 0F 5B [11:42:22]RasterBufferAndPrint [11:42:22]line Счет N : (1)593510 [11:42:22]line ИНН: 02508201610067 [11:42:22]line Контрольно-Кассовый Чек [11:42:22]line ПРОДАЖА [11:42:22]line ТРК (МРК, ГНК) : 32 [11:42:22]line Товар: 2710124130 [11:42:22]line Аи-92-К-5 [11:42:22]line 14.750 * 67.80 [11:42:22]line = 1000.05 [11:42:22]line НДС 12% НСП 1% [11:42:22]line > о реализуемом товаре [11:42:22]line ОКРУГЛЕНИЕ: -0.05 [11:42:22]line ИТОГО: 1000.00 [11:42:22]line Внесено: 1000.00 [11:42:22]line СДАЧА: 0.00 [11:42:22]line НСП 1% : 8.85 [11:42:22]line НДС 12% : 106.20 [11:42:22]line Наличными: 1000.00 [11:42:22]line Безнал.: 0.00 [11:42:22]line Место: АЗС № 136 "Партнер Нефть" [11:42:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:42:22]line СНО: Общий режим [11:42:22]line Чек 135 20.08.2024 11:42 [11:42:22]line Смена: 453 ФФД: 1.0 [11:42:22]line ЗНМ: 0300000067 [11:42:22]line РНМ: 0000000000092569 [11:42:22]line Версия ККМ: 001 [11:42:22]line ФМ: 0000000000871776 [11:42:22]line ФД: 139663 [11:42:22]line ФПД: 9847001282944 [11:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114224&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139663&fm=9847001282944&tin=02508201610067®Number=0000000000092569&sum=100000 [11:42:22]OFD Sender: Processing packet 139663 [packets to send 137, broken 136] [11:42:22]ProducePacketName [11:42:22]name=ofd_packets/00139663 [11:42:22]OFD Sender: To server: pG, [11:42:22]CommunicateWithHost lk.salyk.kg:30040 [11:42:22]ConnectInit lk.salyk.kg [11:42:22]written 0, free lines is 4095 [11:42:22]Connected sock=10 [11:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3B 1B 07 01 7B 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 20 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 21 02 00 35 04 06 00 08 F4 AF 03 79 80 4A AB 49 C3 4A BB C9 1F [11:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 84 94 47 00 6A 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 21 02 00 F4 03 04 00 B3 27 C4 66 B6 04 01 00 00 32 1A 65 4D 9F CB 96 CC [11:42:23]CommunicateWithHost err = 0 [11:42:23]CheckOFDResponse [11:42:23]1017 (14) - 77093643461234 [11:42:23]1041 (16) - 0000000000871776 [11:42:23]1040 (4) - 139663 [11:42:23]1012 (4) - 20.08.2024 05:20 [11:42:23]1206 (1) - 0 [11:42:23]OFD Sender: Remove packet 139663 [11:42:23]ProducePacketName [11:42:23]name=ofd_packets/00139663 [11:42:23]NVStorageDeleteData [11:42:23]Write to MH i2c: 01 00 00 3D 34 71 [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: 01 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: 01 07 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: 01 07 00 3D 34 00 00 00 00 00 C5 0C 49 [11:42:23]RasterBufferAndPrint [11:42:23]line [11:42:23]line [11:42:23]line [11:42:23]line [11:42:23]line [11:42:23]written 0, free lines is 3275 [11:42:23]MH_Cut [11:42:23]Write to MH i2c: D1 01 00 44 34 01 4A [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: D1 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: D1 01 00 [11:42:23]MH_I2C_Read... [11:42:23]Read from MH i2c: D1 01 00 44 34 00 49 [11:42:23]Write to MH i2c: 01 00 00 45 34 79 [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:23]OFD Sender: No OFD packet to send [11:42:23]*** Cut start [11:42:23]*** Partial cut [11:42:23]*** CUTSNS_PIN = 1 [11:42:23]*** CUTSNS_PIN = 0 [11:42:24]*** Brake cut motor [11:42:24]Read from MH i2c: 01 [11:42:24]MH_I2C_Read... [11:42:24]*** Stop cut motor [11:42:24]*** Cut end [11:42:24]Read from MH i2c: 01 07 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: 01 07 00 45 34 00 00 00 00 00 FF 0F 8E [11:42:24]process_action close_receipt done [11:42:24]requested_data is exist [11:42:24]produce_requested_data [11:42:24]requested_item fm.sn is exist - process it [11:42:24]wFMCommunicate request_size=4 [11:42:24]MH_SAM_APDU [11:42:24]CAPDU: 80 11 00 00 [11:42:24]Write to MH i2c: E2 08 00 46 34 80 11 00 00 00 00 00 00 F4 [11:42:24]Write i2c OK [11:42:24]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 17 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 17 00 46 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [11:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:24]wFMCommunicate OK [11:42:24]requested_item fd.num is exist - process it [11:42:24]SAM_PROTO_GetFieldsCounters [11:42:24]wFMCommunicate request_size=4 [11:42:24]MH_SAM_APDU [11:42:24]CAPDU: 80 13 00 00 [11:42:24]Write to MH i2c: E2 08 00 47 34 80 13 00 00 00 00 00 00 F7 [11:42:24]Write i2c OK [11:42:24]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 62 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 62 00 47 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [11:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:24]wFMCommunicate OK [11:42:24]SAM_PROTO_GetFieldsCounters done [11:42:24]requested_item shift.num is exist - process it [11:42:24]requested_item shift.opened is exist - process it [11:42:24]req_shift_opened [11:42:24]FM_GetShiftState [11:42:24]SAM_PROTO_GetShiftState [11:42:24]wFMCommunicate request_size=4 [11:42:24]MH_SAM_APDU [11:42:24]CAPDU: 80 13 01 00 [11:42:24]Write to MH i2c: E2 08 00 48 34 80 13 01 00 00 00 00 00 F9 [11:42:24]Write i2c OK [11:42:24]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 0E 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 0E 00 48 34 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8A [11:42:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:42:24]wFMCommunicate OK [11:42:24]SAM_PROTO_GetShiftState done [11:42:24]FM_GetShiftState done [11:42:24]req_shift_opened done [11:42:24]requested_item shift.open_date is exist - process it [11:42:24]req_shift_open_date [11:42:24]req_shift_open_date done [11:42:24]produce_requested_data done [11:42:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139663,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:42:24]process_action_free close_receipt [11:42:24]json_value_free [11:42:24]json_value_free done [11:42:24]process_json_proto returns [11:42:24]Send response to host [11:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139663,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:42:24]free response buf [11:42:24]execute_script done [11:42:24]execute_script returns [11:42:24]free content buf [11:42:24]Sock 9.Close socket [11:42:24]Sock 9.Thread stoped [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:34]accept exits with 7 [11:42:34]New connection [11:42:34]New thread 3067215204 created [11:42:34]Thread 3067071844 joined [11:42:34]Waiting for new connection... [11:42:34] Sock 7.Parse request [11:42:34]Sock 7.Check first char [11:42:34]Sock 7.First char is OK [11:42:34]request: POST /json_proto HTTP/1.0 [11:42:34]Method: POST [11:42:34]URL: /json_proto [11:42:34]Method is POST - this is cgi request [11:42:34]url: /json_proto [11:42:34]query_string will be loaded in cgi processing [11:42:34]execute_cgi json_proto POST (null) [11:42:34]execute_cgi path=json_proto method=POST [11:42:34]POST find Content-Length [11:42:34]Host: 172.17.45.67:8080 [11:42:34]Content-Length: 682 [11:42:34]Content-Type: application/json [11:42:34] [11:42:34]POST finish read [11:42:34]Found Content-Length = 682 [11:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:34]execute_script... [11:42:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:34]POST & json_proto [11:42:34]process_json_proto [11:42:34]json parsed OK: [11:42:34]protocol is kg_v1.0 [11:42:34]action value=close_receipt [11:42:34]process_action close_receipt [11:42:34]cmd_close_receipt [11:42:34]MH_GetDate [11:42:34]Write to MH i2c: F0 00 00 49 34 6C [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: F0 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: F0 09 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: F0 09 00 49 34 00 2E 81 C4 66 5F 7F 2B 66 BD [11:42:34]GetLastDocTimeStamp 1724154144 [11:42:34]current date 1724154158 [11:42:34]FM_GetShiftState [11:42:34]SAM_PROTO_GetShiftState [11:42:34]wFMCommunicate request_size=4 [11:42:34]MH_SAM_APDU [11:42:34]CAPDU: 80 13 01 00 [11:42:34]Write to MH i2c: E2 08 00 4A 34 80 13 01 00 00 00 00 00 FB [11:42:34]Write i2c OK [11:42:34]MH_I2C_Read... [11:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:34]Read from MH i2c: E2 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0E 00 [11:42:34]MH_I2C_Read... [11:42:34]Read from MH i2c: E2 0E 00 4A 34 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8C [11:42:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:42:34]wFMCommunicate OK [11:42:34]SAM_PROTO_GetShiftState done [11:42:34]FM_GetShiftState done [11:42:34]opened in 1724113785 [11:42:34]opened+sec_in_day 1724200185 [11:42:34]quantity*price = 100005 [11:42:34]sum+1 = 100006 [11:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 136 20.08.2024 11:42 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139664 ФПД: 165339176092390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114238&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139664&fm=165339176092390&tin=02508201610067®Number=0000000000092569&sum=100000 [11:42:35]StoreToDocumentArchive [11:42:35]shift 453 fd 139664 [11:42:35]save to /storage/0453/doc_00139664 [11:42:35]save last doc name /storage/0453/doc_00139664 to /storage/kkm_last_doc_name [11:42:35]save OK [11:42:35]Clear old archive folders... [11:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:35]tlvbuf is 00D871E0 [11:42:35]SAM_PROTO_ClearQueue [11:42:35]wFMCommunicate request_size=4 [11:42:35]MH_SAM_APDU [11:42:35]CAPDU: 80 09 00 00 [11:42:35]Write to MH i2c: E2 08 00 57 34 80 09 00 00 00 00 00 00 FD [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:35]Read from MH i2c: E2 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 03 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 03 00 57 34 00 90 00 FF [11:42:35]RAPDU: 90 00 [11:42:35]wFMCommunicate OK [11:42:35]SAM_PROTO_ClearQueue done [11:42:35]KKMCreateOFDPacket [11:42:35]OFDProtocolAddRootSTLVToBuf [11:42:35]FM_MakeSignedData [11:42:35]FM_MakeSignedData [11:42:35]SAM_PROTO_SignData [11:42:35]wFMCommunicate request_size=4 [11:42:35]MH_SAM_APDU [11:42:35]CAPDU: 80 0D 01 02 [11:42:35]Write to MH i2c: E2 08 00 58 34 80 0D 01 02 00 00 00 00 05 [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:35]Read from MH i2c: E2 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 03 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 03 00 58 34 00 90 00 00 [11:42:35]RAPDU: 90 00 [11:42:35]wFMCommunicate OK [11:42:35]wFMCommunicate request_size=255 [11:42:35]MH_SAM_APDU [11:42:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2E 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 21 02 00 35 04 06 00 96 [11:42:35]Write to MH i2c: E2 02 01 59 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2E 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 21 02 00 35 04 06 00 96 00 00 8D [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 59 34 00 90 00 01 [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]wFMCommunicate request_size=10 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 02 02 05 60 06 DB C2 E6 [11:42:36]Write to MH i2c: E2 0D 00 5A 34 80 0D 02 02 05 00 60 06 DB C2 E6 00 00 FB [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 5A 34 00 90 00 02 [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 03 02 [11:42:36]Write to MH i2c: E2 08 00 5B 34 80 0D 03 02 00 00 00 00 0A [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 0B 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 0B 00 5B 34 00 B5 29 6F D1 C5 2A 8D 50 90 00 F5 [11:42:36]RAPDU: B5 29 6F D1 C5 2A 8D 50 90 00 [11:42:36]wFMCommunicate OK [11:42:36]SAM_PROTO_SignData done [11:42:36]FM_MakeSignedData done [11:42:36]CreateOFDProtocolMessage [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 11 00 00 [11:42:36]Write to MH i2c: E2 08 00 5C 34 80 11 00 00 00 00 00 00 0A [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 17 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 17 00 5C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 61 [11:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:36]wFMCommunicate OK [11:42:36]CreateOFDProtocolMessage done [11:42:36]OFDSenderStorePacket 139664 [11:42:36]StoreOFDPacket docnum=139664 [11:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 88 0B 07 01 10 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2E 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 21 02 00 35 04 06 00 96 60 06 DB C2 E6 B5 29 6F D1 C5 2A 8D 50 [11:42:36]CheckFolder [11:42:36]dirname=/storage/ofd_packets [11:42:36]CheckFolder done [11:42:36]ProducePacketName [11:42:36]name=ofd_packets/00139664 [11:42:36]NVStorageSaveData ofd_packets/00139664 [11:42:36]File name is /storage/ofd_packets/00139664 [11:42:36]Write 301 bytes [11:42:36]NVStorageSaveData done [11:42:36]OFDSenderStorePacket done [11:42:36]KKMCreateOFDPacket done [11:42:36]NVStorageSaveData kkm_last_timestamp [11:42:36]File name is /storage/kkm_last_timestamp [11:42:36]Write 4 bytes [11:42:36]NVStorageSaveData done [11:42:36]ExternCall_PrintAddStr [11:42:36]wPrintStart [11:42:36]Write to MH i2c: 01 00 00 5D 34 91 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 5D 34 00 00 00 00 00 FF 0F A6 [11:42:36]RasterBufferAndPrint [11:42:36]line Счет N : (1)593511 [11:42:36]line ИНН: 02508201610067 [11:42:36]line Контрольно-Кассовый Чек [11:42:36]line ПРОДАЖА [11:42:36]line ТРК (МРК, ГНК) : 62 [11:42:36]line Товар: 2710124130 [11:42:36]line Аи-92-К-5 [11:42:36]line 14.750 * 67.80 [11:42:36]line = 1000.05 [11:42:36]line НДС 12% НСП 1% [11:42:36]line > о реализуемом товаре [11:42:36]line ОКРУГЛЕНИЕ: -0.05 [11:42:36]line ИТОГО: 1000.00 [11:42:36]line Внесено: 1000.00 [11:42:36]line СДАЧА: 0.00 [11:42:36]line НСП 1% : 8.85 [11:42:36]line НДС 12% : 106.20 [11:42:36]line Наличными: 1000.00 [11:42:36]line Безнал.: 0.00 [11:42:36]line Место: АЗС № 136 "Партнер Нефть" [11:42:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:42:36]line СНО: Общий режим [11:42:36]line Чек 136 20.08.2024 11:42 [11:42:36]line Смена: 453 ФФД: 1.0 [11:42:36]line ЗНМ: 0300000067 [11:42:36]line РНМ: 0000000000092569 [11:42:36]line Версия ККМ: 001 [11:42:36]line ФМ: 0000000000871776 [11:42:36]line ФД: 139664 [11:42:36]line ФПД: 165339176092390 [11:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114238&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139664&fm=165339176092390&tin=02508201610067®Number=0000000000092569&sum=100000 [11:42:36]written 0, free lines is 4095 [11:42:36]OFD Sender: Processing packet 139664 [packets to send 137, broken 136] [11:42:36]ProducePacketName [11:42:36]name=ofd_packets/00139664 [11:42:36]OFD Sender: To server: pG, [11:42:36]CommunicateWithHost lk.salyk.kg:30040 [11:42:36]ConnectInit lk.salyk.kg [11:42:36]Connected sock=10 [11:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 88 0B 07 01 10 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 2E 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 21 02 00 35 04 06 00 96 60 06 DB C2 E6 B5 29 6F D1 C5 2A 8D 50 [11:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 10 AC 47 00 20 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 21 02 00 F4 03 04 00 C1 27 C4 66 B6 04 01 00 00 4E B0 D6 5C 84 8A E7 FD [11:42:37]CommunicateWithHost err = 0 [11:42:37]CheckOFDResponse [11:42:37]1017 (14) - 77093643461234 [11:42:37]1041 (16) - 0000000000871776 [11:42:37]1040 (4) - 139664 [11:42:37]1012 (4) - 20.08.2024 05:21 [11:42:37]1206 (1) - 0 [11:42:37]OFD Sender: Remove packet 139664 [11:42:37]ProducePacketName [11:42:37]name=ofd_packets/00139664 [11:42:37]NVStorageDeleteData [11:42:37]Write to MH i2c: 01 00 00 88 34 BC [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 88 34 00 00 00 00 00 CF 0C 9E [11:42:37]RasterBufferAndPrint [11:42:37]line [11:42:37]line [11:42:37]line [11:42:37]line [11:42:37]line [11:42:37]written 0, free lines is 3286 [11:42:37]MH_Cut [11:42:37]Write to MH i2c: D1 01 00 8F 34 01 95 [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: D1 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: D1 01 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: D1 01 00 8F 34 00 94 [11:42:37]Write to MH i2c: 01 00 00 90 34 C4 [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]OFD Sender: No OFD packet to send [11:42:37]*** Cut start [11:42:37]*** Partial cut [11:42:37]*** CUTSNS_PIN = 1 [11:42:37]*** CUTSNS_PIN = 0 [11:42:38]*** Brake cut motor [11:42:38]Read from MH i2c: 01 [11:42:38]MH_I2C_Read... [11:42:38]*** Stop cut motor [11:42:38]*** Cut end [11:42:38]Read from MH i2c: 01 07 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: 01 07 00 90 34 00 00 00 00 00 FF 0F D9 [11:42:38]process_action close_receipt done [11:42:38]requested_data is exist [11:42:38]produce_requested_data [11:42:38]requested_item fm.sn is exist - process it [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 11 00 00 [11:42:38]Write to MH i2c: E2 08 00 91 34 80 11 00 00 00 00 00 00 3F [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 17 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 17 00 91 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 96 [11:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:38]wFMCommunicate OK [11:42:38]requested_item fd.num is exist - process it [11:42:38]SAM_PROTO_GetFieldsCounters [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 13 00 00 [11:42:38]Write to MH i2c: E2 08 00 92 34 80 13 00 00 00 00 00 00 42 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 62 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 62 00 92 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [11:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:38]wFMCommunicate OK [11:42:38]SAM_PROTO_GetFieldsCounters done [11:42:38]requested_item shift.num is exist - process it [11:42:38]requested_item shift.opened is exist - process it [11:42:38]req_shift_opened [11:42:38]FM_GetShiftState [11:42:38]SAM_PROTO_GetShiftState [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 13 01 00 [11:42:38]Write to MH i2c: E2 08 00 93 34 80 13 01 00 00 00 00 00 44 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 0E 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 0E 00 93 34 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D5 [11:42:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:42:38]wFMCommunicate OK [11:42:38]SAM_PROTO_GetShiftState done [11:42:38]FM_GetShiftState done [11:42:38]req_shift_opened done [11:42:38]requested_item shift.open_date is exist - process it [11:42:38]req_shift_open_date [11:42:38]req_shift_open_date done [11:42:38]produce_requested_data done [11:42:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139664,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:42:38]process_action_free close_receipt [11:42:38]json_value_free [11:42:38]json_value_free done [11:42:38]process_json_proto returns [11:42:38]Send response to host [11:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139664,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:42:38]free response buf [11:42:38]execute_script done [11:42:38]execute_script returns [11:42:38]free content buf [11:42:38]Sock 7.Close socket [11:42:38]Sock 7.Thread stoped [11:42:42]accept exits with 9 [11:42:42]New connection [11:42:42]New thread 3067071844 created [11:42:42]Thread 3067215204 joined [11:42:42]Waiting for new connection... [11:42:42] Sock 9.Parse request [11:42:42]Sock 9.Check first char [11:42:42]Sock 9.First char is OK [11:42:42]request: POST /json_proto HTTP/1.0 [11:42:42]Method: POST [11:42:42]URL: /json_proto [11:42:42]Method is POST - this is cgi request [11:42:42]url: /json_proto [11:42:42]query_string will be loaded in cgi processing [11:42:42]execute_cgi json_proto POST (null) [11:42:42]execute_cgi path=json_proto method=POST [11:42:42]POST find Content-Length [11:42:42]Host: 172.17.45.67:8080 [11:42:42]Content-Length: 677 [11:42:42]Content-Type: application/json [11:42:42] [11:42:42]POST finish read [11:42:42]Found Content-Length = 677 [11:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:42]execute_script... [11:42:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:42]POST & json_proto [11:42:42]process_json_proto [11:42:42]json parsed OK: [11:42:42]protocol is kg_v1.0 [11:42:42]action value=close_receipt [11:42:42]process_action close_receipt [11:42:42]cmd_close_receipt [11:42:42]MH_GetDate [11:42:42]Write to MH i2c: F0 00 00 94 34 B7 [11:42:42]Write i2c OK [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: F0 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: F0 09 00 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: F0 09 00 94 34 00 35 81 C4 66 5F 7F 2B 66 0F [11:42:42]GetLastDocTimeStamp 1724154158 [11:42:42]current date 1724154165 [11:42:42]FM_GetShiftState [11:42:42]SAM_PROTO_GetShiftState [11:42:42]wFMCommunicate request_size=4 [11:42:42]MH_SAM_APDU [11:42:42]CAPDU: 80 13 01 00 [11:42:42]Write to MH i2c: E2 08 00 95 34 80 13 01 00 00 00 00 00 46 [11:42:42]Write i2c OK [11:42:42]MH_I2C_Read... [11:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:42]Read from MH i2c: E2 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 0E 00 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 0E 00 95 34 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D7 [11:42:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:42:42]wFMCommunicate OK [11:42:42]SAM_PROTO_GetShiftState done [11:42:42]FM_GetShiftState done [11:42:42]opened in 1724113785 [11:42:42]opened+sec_in_day 1724200185 [11:42:42]quantity*price = 50036 [11:42:42]sum+1 = 50037 [11:42:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 137 20.08.2024 11:42 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139665 ФПД: 125292189875336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114245&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139665&fm=125292189875336&tin=02508201610067®Number=0000000000092569&sum=50000 [11:42:43]StoreToDocumentArchive [11:42:43]shift 453 fd 139665 [11:42:43]save to /storage/0453/doc_00139665 [11:42:43]save last doc name /storage/0453/doc_00139665 to /storage/kkm_last_doc_name [11:42:43]save OK [11:42:43]Clear old archive folders... [11:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:43]tlvbuf is 00E12640 [11:42:43]SAM_PROTO_ClearQueue [11:42:43]wFMCommunicate request_size=4 [11:42:43]MH_SAM_APDU [11:42:43]CAPDU: 80 09 00 00 [11:42:43]Write to MH i2c: E2 08 00 A2 34 80 09 00 00 00 00 00 00 48 [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 03 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 03 00 A2 34 00 90 00 4A [11:42:43]RAPDU: 90 00 [11:42:43]wFMCommunicate OK [11:42:43]SAM_PROTO_ClearQueue done [11:42:43]KKMCreateOFDPacket [11:42:43]OFDProtocolAddRootSTLVToBuf [11:42:43]FM_MakeSignedData [11:42:43]FM_MakeSignedData [11:42:43]SAM_PROTO_SignData [11:42:43]wFMCommunicate request_size=4 [11:42:43]MH_SAM_APDU [11:42:43]CAPDU: 80 0D 01 02 [11:42:43]Write to MH i2c: E2 08 00 A3 34 80 0D 01 02 00 00 00 00 50 [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 03 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 03 00 A3 34 00 90 00 4B [11:42:43]RAPDU: 90 00 [11:42:43]wFMCommunicate OK [11:42:43]wFMCommunicate request_size=255 [11:42:43]MH_SAM_APDU [11:42:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 35 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 21 02 00 35 04 06 00 71 [11:42:43]Write to MH i2c: E2 02 01 A4 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 35 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 21 02 00 35 04 06 00 71 00 00 2D [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 03 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 03 00 A4 34 00 90 00 4C [11:42:43]RAPDU: 90 00 [11:42:43]wFMCommunicate OK [11:42:43]wFMCommunicate request_size=10 [11:42:43]MH_SAM_APDU [11:42:43]CAPDU: 80 0D 02 02 05 F3 DC 78 7C 88 [11:42:43]Write to MH i2c: E2 0D 00 A5 34 80 0D 02 02 05 00 F3 DC 78 7C 88 00 00 A8 [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 03 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 03 00 A5 34 00 90 00 4D [11:42:43]RAPDU: 90 00 [11:42:43]wFMCommunicate OK [11:42:43]wFMCommunicate request_size=4 [11:42:43]MH_SAM_APDU [11:42:43]CAPDU: 80 0D 03 02 [11:42:43]Write to MH i2c: E2 08 00 A6 34 80 0D 03 02 00 00 00 00 55 [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 0B 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 0B 00 A6 34 00 93 52 4E DB 95 87 93 49 90 00 5C [11:42:43]RAPDU: 93 52 4E DB 95 87 93 49 90 00 [11:42:43]wFMCommunicate OK [11:42:43]SAM_PROTO_SignData done [11:42:43]FM_MakeSignedData done [11:42:43]CreateOFDProtocolMessage [11:42:43]wFMCommunicate request_size=4 [11:42:43]MH_SAM_APDU [11:42:43]CAPDU: 80 11 00 00 [11:42:43]Write to MH i2c: E2 08 00 A7 34 80 11 00 00 00 00 00 00 55 [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 17 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 17 00 A7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [11:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:43]wFMCommunicate OK [11:42:43]CreateOFDProtocolMessage done [11:42:43]OFDSenderStorePacket 139665 [11:42:43]StoreOFDPacket docnum=139665 [11:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 71 9D 07 01 CA 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 35 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 21 02 00 35 04 06 00 71 F3 DC 78 7C 88 93 52 4E DB 95 87 93 49 [11:42:43]CheckFolder [11:42:43]dirname=/storage/ofd_packets [11:42:43]CheckFolder done [11:42:43]ProducePacketName [11:42:43]name=ofd_packets/00139665 [11:42:43]NVStorageSaveData ofd_packets/00139665 [11:42:43]File name is /storage/ofd_packets/00139665 [11:42:43]Write 301 bytes [11:42:43]NVStorageSaveData done [11:42:43]OFDSenderStorePacket done [11:42:43]KKMCreateOFDPacket done [11:42:43]NVStorageSaveData kkm_last_timestamp [11:42:43]File name is /storage/kkm_last_timestamp [11:42:43]Write 4 bytes [11:42:43]NVStorageSaveData done [11:42:43]ExternCall_PrintAddStr [11:42:43]wPrintStart [11:42:43]Write to MH i2c: 01 00 00 A8 34 DC [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: 01 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: 01 07 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: 01 07 00 A8 34 00 00 00 00 00 FF 0F F1 [11:42:43]RasterBufferAndPrint [11:42:43]line Счет N : (1)593512 [11:42:43]line ИНН: 02508201610067 [11:42:43]line Контрольно-Кассовый Чек [11:42:43]line ПРОДАЖА [11:42:43]line ТРК (МРК, ГНК) : 42 [11:42:43]line Товар: 2710124130 [11:42:43]line Аи-92-К-5 [11:42:43]line 7.380 * 67.80 [11:42:43]line = 500.36 [11:42:43]line НДС 12% НСП 1% [11:42:43]line > о реализуемом товаре [11:42:43]line ОКРУГЛЕНИЕ: -0.36 [11:42:43]line ИТОГО: 500.00 [11:42:43]line Внесено: 500.00 [11:42:43]line СДАЧА: 0.00 [11:42:43]line НСП 1% : 4.43 [11:42:43]line НДС 12% : 53.14 [11:42:43]line Наличными: 500.00 [11:42:43]line Безнал.: 0.00 [11:42:43]line Место: АЗС № 136 "Партнер Нефть" [11:42:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:42:43]line СНО: Общий режим [11:42:43]line Чек 137 20.08.2024 11:42 [11:42:43]line Смена: 453 ФФД: 1.0 [11:42:43]line ЗНМ: 0300000067 [11:42:43]line РНМ: 0000000000092569 [11:42:43]line Версия ККМ: 001 [11:42:43]line ФМ: 0000000000871776 [11:42:43]line ФД: 139665 [11:42:43]line ФПД: 125292189875336 [11:42:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114245&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139665&fm=125292189875336&tin=02508201610067®Number=0000000000092569&sum=50000 [11:42:43]written 0, free lines is 4095 [11:42:43]OFD Sender: Processing packet 139665 [packets to send 137, broken 136] [11:42:43]ProducePacketName [11:42:43]name=ofd_packets/00139665 [11:42:43]OFD Sender: To server: pG, [11:42:43]CommunicateWithHost lk.salyk.kg:30040 [11:42:43]ConnectInit lk.salyk.kg [11:42:44]Connected sock=10 [11:42:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 71 9D 07 01 CA 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 35 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 21 02 00 35 04 06 00 71 F3 DC 78 7C 88 93 52 4E DB 95 87 93 49 [11:42:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EA FA 47 00 A3 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 21 02 00 F4 03 04 00 C8 27 C4 66 B6 04 01 00 00 0E B1 6D B4 39 28 AC FB [11:42:44]CommunicateWithHost err = 0 [11:42:44]CheckOFDResponse [11:42:44]1017 (14) - 77093643461234 [11:42:44]1041 (16) - 0000000000871776 [11:42:44]1040 (4) - 139665 [11:42:44]1012 (4) - 20.08.2024 05:21 [11:42:44]1206 (1) - 0 [11:42:44]OFD Sender: Remove packet 139665 [11:42:44]ProducePacketName [11:42:44]name=ofd_packets/00139665 [11:42:44]NVStorageDeleteData [11:42:44]Write to MH i2c: 01 00 00 D3 34 07 [11:42:44]Write i2c OK [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: 01 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: 01 07 00 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: 01 07 00 D3 34 00 00 00 00 00 EF 0C 09 [11:42:44]RasterBufferAndPrint [11:42:44]line [11:42:44]line [11:42:44]line [11:42:44]line [11:42:44]line [11:42:44]written 0, free lines is 3328 [11:42:44]MH_Cut [11:42:44]Write to MH i2c: D1 01 00 DA 34 01 E0 [11:42:44]Write i2c OK [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: D1 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: D1 01 00 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: D1 01 00 DA 34 00 DF [11:42:44]Write to MH i2c: 01 00 00 DB 34 0F [11:42:44]Write i2c OK [11:42:44]MH_I2C_Read... [11:42:44]OFD Sender: No OFD packet to send [11:42:45]*** Cut start [11:42:45]*** Partial cut [11:42:45]*** CUTSNS_PIN = 1 [11:42:45]*** CUTSNS_PIN = 0 [11:42:45]*** Brake cut motor [11:42:45]Read from MH i2c: 01 [11:42:45]MH_I2C_Read... [11:42:45]*** Stop cut motor [11:42:45]*** Cut end [11:42:45]Read from MH i2c: 01 07 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: 01 07 00 DB 34 00 00 00 00 00 FF 0F 24 [11:42:45]process_action close_receipt done [11:42:45]requested_data is exist [11:42:45]produce_requested_data [11:42:45]requested_item fm.sn is exist - process it [11:42:45]wFMCommunicate request_size=4 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 11 00 00 [11:42:45]Write to MH i2c: E2 08 00 DC 34 80 11 00 00 00 00 00 00 8A [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:45]Read from MH i2c: E2 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 17 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 17 00 DC 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [11:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:45]wFMCommunicate OK [11:42:45]requested_item fd.num is exist - process it [11:42:45]SAM_PROTO_GetFieldsCounters [11:42:45]wFMCommunicate request_size=4 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 13 00 00 [11:42:45]Write to MH i2c: E2 08 00 DD 34 80 13 00 00 00 00 00 00 8D [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:45]Read from MH i2c: E2 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 62 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 62 00 DD 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [11:42:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:45]wFMCommunicate OK [11:42:45]SAM_PROTO_GetFieldsCounters done [11:42:45]requested_item shift.num is exist - process it [11:42:45]requested_item shift.opened is exist - process it [11:42:45]req_shift_opened [11:42:45]FM_GetShiftState [11:42:45]SAM_PROTO_GetShiftState [11:42:45]wFMCommunicate request_size=4 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 13 01 00 [11:42:45]Write to MH i2c: E2 08 00 DE 34 80 13 01 00 00 00 00 00 8F [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:45]Read from MH i2c: E2 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 0E 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 0E 00 DE 34 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 20 [11:42:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:42:45]wFMCommunicate OK [11:42:45]SAM_PROTO_GetShiftState done [11:42:45]FM_GetShiftState done [11:42:45]req_shift_opened done [11:42:45]requested_item shift.open_date is exist - process it [11:42:45]req_shift_open_date [11:42:45]req_shift_open_date done [11:42:45]produce_requested_data done [11:42:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139665,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:42:45]process_action_free close_receipt [11:42:45]json_value_free [11:42:45]json_value_free done [11:42:45]process_json_proto returns [11:42:45]Send response to host [11:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139665,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:42:45]free response buf [11:42:45]execute_script done [11:42:45]execute_script returns [11:42:45]free content buf [11:42:45]Sock 9.Close socket [11:42:45]Sock 9.Thread stoped [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:37]accept exits with 7 [11:43:37]New connection [11:43:37]New thread 3067215204 created [11:43:37]Thread 3067071844 joined [11:43:37]Waiting for new connection... [11:43:37] Sock 7.Parse request [11:43:37]Sock 7.Check first char [11:43:37]Sock 7.First char is OK [11:43:37]request: POST /json_proto HTTP/1.0 [11:43:37]Method: POST [11:43:37]URL: /json_proto [11:43:37]Method is POST - this is cgi request [11:43:37]url: /json_proto [11:43:37]query_string will be loaded in cgi processing [11:43:37]execute_cgi json_proto POST (null) [11:43:37]execute_cgi path=json_proto method=POST [11:43:37]POST find Content-Length [11:43:37]Host: 172.17.45.67:8080 [11:43:37]Content-Length: 986 [11:43:37]Content-Type: application/json [11:43:37] [11:43:37]POST finish read [11:43:37]Found Content-Length = 986 [11:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 69.950, "sum" : 5260.24, "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 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.95 \u0441\u043E\u043C", "deposit" : 5300.00, "total" : 5260.00, "payments": [ { "type": 0, "sum" : 5260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:37]execute_script... [11:43: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)593509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 75.20, "quantity" : 69.950, "sum" : 5260.24, "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 136\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 69.95 \u0441\u043E\u043C", "deposit" : 5300.00, "total" : 5260.00, "payments": [ { "type": 0, "sum" : 5260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:37]POST & json_proto [11:43:37]process_json_proto [11:43:37]json parsed OK: [11:43:37]protocol is kg_v1.0 [11:43:37]action value=close_receipt [11:43:37]process_action close_receipt [11:43:37]cmd_close_receipt [11:43:37]MH_GetDate [11:43:37]Write to MH i2c: F0 00 00 DF 34 02 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: F0 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: F0 09 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: F0 09 00 DF 34 00 6C 81 C4 66 5F 7F 2B 66 91 [11:43:37]GetLastDocTimeStamp 1724154165 [11:43:37]current date 1724154220 [11:43:37]FM_GetShiftState [11:43:37]SAM_PROTO_GetShiftState [11:43:37]wFMCommunicate request_size=4 [11:43:37]MH_SAM_APDU [11:43:37]CAPDU: 80 13 01 00 [11:43:37]Write to MH i2c: E2 08 00 E0 34 80 13 01 00 00 00 00 00 91 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:37]Read from MH i2c: E2 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 0E 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 0E 00 E0 34 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 22 [11:43:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:43:37]wFMCommunicate OK [11:43:37]SAM_PROTO_GetShiftState done [11:43:37]FM_GetShiftState done [11:43:37]opened in 1724113785 [11:43:37]opened+sec_in_day 1724200185 [11:43:37]quantity*price = 526024 [11:43:37]sum+1 = 526025 [11:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5260.00 Внесено: 5300.00 СДАЧА: 40.00 НСП 1% : 46.55 НДС 12% : 558.61 Наличными: 5260.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 138 20.08.2024 11:43 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Дисконтная программа ДТ номер 136 сэкономлено 69.95 сом ФМ: 0000000000871776 ФД: 139666 ФПД: 182422480301973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114340&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139666&fm=182422480301973&tin=02508201610067®Number=0000000000092569&sum=526000 [11:43:38]StoreToDocumentArchive [11:43:38]shift 453 fd 139666 [11:43:38]save to /storage/0453/doc_00139666 [11:43:38]save last doc name /storage/0453/doc_00139666 to /storage/kkm_last_doc_name [11:43:38]save OK [11:43:38]Clear old archive folders... [11:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:43:38]tlvbuf is 00D5B1B0 [11:43:38]SAM_PROTO_ClearQueue [11:43:38]wFMCommunicate request_size=4 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 09 00 00 [11:43:38]Write to MH i2c: E2 08 00 ED 34 80 09 00 00 00 00 00 00 93 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 ED 34 00 90 00 95 [11:43:38]RAPDU: 90 00 [11:43:38]wFMCommunicate OK [11:43:38]SAM_PROTO_ClearQueue done [11:43:38]KKMCreateOFDPacket [11:43:38]OFDProtocolAddRootSTLVToBuf [11:43:38]FM_MakeSignedData [11:43:38]FM_MakeSignedData [11:43:38]SAM_PROTO_SignData [11:43:38]wFMCommunicate request_size=4 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 0D 01 02 [11:43:38]Write to MH i2c: E2 08 00 EE 34 80 0D 01 02 00 00 00 00 9B [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:38]Read from MH i2c: E2 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: E2 03 00 EE 34 00 90 00 96 [11:43:38]RAPDU: 90 00 [11:43:38]wFMCommunicate OK [11:43:38]wFMCommunicate request_size=255 [11:43:38]MH_SAM_APDU [11:43:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 11 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C8 06 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 06 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 DA 00 00 00 00 07 04 06 00 B0 06 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 6C 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 21 02 00 35 04 06 00 [11:43:38]Write to MH i2c: E2 02 01 EF 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 11 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C8 06 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 06 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 DA 00 00 00 00 07 04 06 00 B0 06 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 6C 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 21 02 00 35 04 06 00 00 00 75 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 03 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 03 00 EF 34 00 90 00 97 [11:43:39]RAPDU: 90 00 [11:43:39]wFMCommunicate OK [11:43:39]wFMCommunicate request_size=11 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 0D 02 02 06 A5 E9 8B 23 2F 95 [11:43:39]Write to MH i2c: E2 0E 00 F0 34 80 0D 02 02 06 00 A5 E9 8B 23 2F 95 00 00 AA [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 03 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 03 00 F0 34 00 90 00 98 [11:43:39]RAPDU: 90 00 [11:43:39]wFMCommunicate OK [11:43:39]wFMCommunicate request_size=4 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 0D 03 02 [11:43:39]Write to MH i2c: E2 08 00 F1 34 80 0D 03 02 00 00 00 00 A0 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 0B 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 0B 00 F1 34 00 3A B3 6F 74 E3 2E 91 DF 90 00 F2 [11:43:39]RAPDU: 3A B3 6F 74 E3 2E 91 DF 90 00 [11:43:39]wFMCommunicate OK [11:43:39]SAM_PROTO_SignData done [11:43:39]FM_MakeSignedData done [11:43:39]CreateOFDProtocolMessage [11:43:39]wFMCommunicate request_size=4 [11:43:39]MH_SAM_APDU [11:43:39]CAPDU: 80 11 00 00 [11:43:39]Write to MH i2c: E2 08 00 F2 34 80 11 00 00 00 00 00 00 A0 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:39]Read from MH i2c: E2 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 17 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: E2 17 00 F2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F7 [11:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:43:39]wFMCommunicate OK [11:43:39]CreateOFDProtocolMessage done [11:43:39]OFDSenderStorePacket 139666 [11:43:39]StoreOFDPacket docnum=139666 [11:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 E8 09 08 01 FB B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 11 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C8 06 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 06 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 DA 00 00 00 00 07 04 06 00 B0 06 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 6C 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 21 02 00 35 04 06 00 A5 E9 8B 23 2F 95 3A B3 6F 74 E3 2E 91 DF [11:43:39]CheckFolder [11:43:39]dirname=/storage/ofd_packets [11:43:39]CheckFolder done [11:43:39]ProducePacketName [11:43:39]name=ofd_packets/00139666 [11:43:39]NVStorageSaveData ofd_packets/00139666 [11:43:39]File name is /storage/ofd_packets/00139666 [11:43:39]Write 302 bytes [11:43:39]NVStorageSaveData done [11:43:39]OFDSenderStorePacket done [11:43:39]KKMCreateOFDPacket done [11:43:39]NVStorageSaveData kkm_last_timestamp [11:43:39]File name is /storage/kkm_last_timestamp [11:43:39]Write 4 bytes [11:43:39]NVStorageSaveData done [11:43:39]ExternCall_PrintAddStr [11:43:39]wPrintStart [11:43:39]Write to MH i2c: 01 00 00 F3 34 27 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 F3 34 00 00 00 00 00 FF 0F 3C [11:43:39]RasterBufferAndPrint [11:43:39]line Счет N : (1)593509 [11:43:39]line ИНН: 02508201610067 [11:43:39]line Контрольно-Кассовый Чек [11:43:39]line ПРОДАЖА [11:43:39]line ТРК (МРК, ГНК) : 54 [11:43:39]line Товар: 2710194210 [11:43:39]line ДТ(л)-К-5 [11:43:39]line 69.950 * 75.20 [11:43:39]line = 5260.24 [11:43:39]line НДС 12% НСП 1% [11:43:39]line > о реализуемом товаре [11:43:39]line ОКРУГЛЕНИЕ: -0.24 [11:43:39]line ИТОГО: 5260.00 [11:43:39]line Внесено: 5300.00 [11:43:39]line СДАЧА: 40.00 [11:43:39]line НСП 1% : 46.55 [11:43:39]line НДС 12% : 558.61 [11:43:39]line Наличными: 5260.00 [11:43:39]line Безнал.: 0.00 [11:43:39]line Место: АЗС № 136 "Партнер Нефть" [11:43:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:43:39]line СНО: Общий режим [11:43:39]line Чек 138 20.08.2024 11:43 [11:43:39]line Смена: 453 ФФД: 1.0 [11:43:39]line ЗНМ: 0300000067 [11:43:39]line РНМ: 0000000000092569 [11:43:39]line Версия ККМ: 001 [11:43:39]line [11:43:39]line Дисконтная программа [11:43:39]line ДТ [11:43:39]line номер 136 [11:43:39]line сэкономлено 69.95 сом [11:43:39]line ФМ: 0000000000871776 [11:43:39]line ФД: 139666 [11:43:39]line ФПД: 182422480301973 [11:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114340&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139666&fm=182422480301973&tin=02508201610067®Number=0000000000092569&sum=526000 [11:43:39]OFD Sender: Processing packet 139666 [packets to send 137, broken 136] [11:43:39]ProducePacketName [11:43:39]name=ofd_packets/00139666 [11:43:39]OFD Sender: To server: pG, [11:43:39]CommunicateWithHost lk.salyk.kg:30040 [11:43:39]ConnectInit lk.salyk.kg [11:43:39]written 0, free lines is 4095 [11:43:39]Connected sock=10 [11:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 E8 09 08 01 FB B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 11 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 C8 06 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 06 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 DA 00 00 00 00 07 04 06 00 B0 06 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 6C 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 21 02 00 35 04 06 00 A5 E9 8B 23 2F 95 3A B3 6F 74 E3 2E 91 DF [11:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 50 C2 47 00 73 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 21 02 00 F4 03 04 00 00 28 C4 66 B6 04 01 00 00 5D 26 E6 7C 7B B1 12 EE [11:43:39]CommunicateWithHost err = 0 [11:43:39]CheckOFDResponse [11:43:39]1017 (14) - 77093643461234 [11:43:39]1041 (16) - 0000000000871776 [11:43:39]1040 (4) - 139666 [11:43:39]1012 (4) - 20.08.2024 05:22 [11:43:39]1206 (1) - 0 [11:43:39]OFD Sender: Remove packet 139666 [11:43:39]ProducePacketName [11:43:39]name=ofd_packets/00139666 [11:43:39]NVStorageDeleteData [11:43:39]Write to MH i2c: 01 00 00 23 35 58 [11:43:39]Write i2c OK [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 [11:43:39]MH_I2C_Read... [11:43:39]Read from MH i2c: 01 07 00 23 35 00 00 00 00 00 74 0C DF [11:43:39]RasterBufferAndPrint [11:43:39]line [11:43:39]line [11:43:39]line [11:43:39]line [11:43:39]line [11:43:39]written 0, free lines is 3195 [11:43:40]MH_Cut [11:43:40]Write to MH i2c: D1 01 00 2A 35 01 31 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: D1 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: D1 01 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: D1 01 00 2A 35 00 30 [11:43:40]Write to MH i2c: 01 00 00 2B 35 60 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]OFD Sender: No OFD packet to send [11:43:40]*** Cut start [11:43:40]*** Partial cut [11:43:40]*** CUTSNS_PIN = 1 [11:43:40]*** CUTSNS_PIN = 0 [11:43:41]*** Brake cut motor [11:43:41]Read from MH i2c: 01 [11:43:41]MH_I2C_Read... [11:43:41]*** Stop cut motor [11:43:41]*** Cut end [11:43:41]Read from MH i2c: 01 07 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: 01 07 00 2B 35 00 00 00 00 00 FF 0F 75 [11:43:41]process_action close_receipt done [11:43:41]requested_data is exist [11:43:41]produce_requested_data [11:43:41]requested_item fm.sn is exist - process it [11:43:41]wFMCommunicate request_size=4 [11:43:41]MH_SAM_APDU [11:43:41]CAPDU: 80 11 00 00 [11:43:41]Write to MH i2c: E2 08 00 2C 35 80 11 00 00 00 00 00 00 DB [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:41]Read from MH i2c: E2 17 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 17 00 2C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 32 [11:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:43:41]wFMCommunicate OK [11:43:41]requested_item fd.num is exist - process it [11:43:41]SAM_PROTO_GetFieldsCounters [11:43:41]wFMCommunicate request_size=4 [11:43:41]MH_SAM_APDU [11:43:41]CAPDU: 80 13 00 00 [11:43:41]Write to MH i2c: E2 08 00 2D 35 80 13 00 00 00 00 00 00 DE [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 62 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 62 00 2D 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [11:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:41]wFMCommunicate OK [11:43:41]SAM_PROTO_GetFieldsCounters done [11:43:41]requested_item shift.num is exist - process it [11:43:41]requested_item shift.opened is exist - process it [11:43:41]req_shift_opened [11:43:41]FM_GetShiftState [11:43:41]SAM_PROTO_GetShiftState [11:43:41]wFMCommunicate request_size=4 [11:43:41]MH_SAM_APDU [11:43:41]CAPDU: 80 13 01 00 [11:43:41]Write to MH i2c: E2 08 00 2E 35 80 13 01 00 00 00 00 00 E0 [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 0E 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 0E 00 2E 35 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 71 [11:43:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:43:41]wFMCommunicate OK [11:43:41]SAM_PROTO_GetShiftState done [11:43:41]FM_GetShiftState done [11:43:41]req_shift_opened done [11:43:41]requested_item shift.open_date is exist - process it [11:43:41]req_shift_open_date [11:43:41]req_shift_open_date done [11:43:41]produce_requested_data done [11:43:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139666,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:43:41]process_action_free close_receipt [11:43:41]json_value_free [11:43:41]json_value_free done [11:43:41]process_json_proto returns [11:43:41]Send response to host [11:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139666,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:43:41]free response buf [11:43:41]execute_script done [11:43:41]execute_script returns [11:43:41]free content buf [11:43:41]Sock 7.Close socket [11:43:41]Sock 7.Thread stoped [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:04]accept exits with 9 [11:44:04]New connection [11:44:04]New thread 3067071844 created [11:44:04]Thread 3067215204 joined [11:44:04]Waiting for new connection... [11:44:04] Sock 9.Parse request [11:44:04]Sock 9.Check first char [11:44:04]Sock 9.First char is OK [11:44:04]request: POST /json_proto HTTP/1.0 [11:44:04]Method: POST [11:44:04]URL: /json_proto [11:44:04]Method is POST - this is cgi request [11:44:04]url: /json_proto [11:44:04]query_string will be loaded in cgi processing [11:44:04]execute_cgi json_proto POST (null) [11:44:04]execute_cgi path=json_proto method=POST [11:44:04]POST find Content-Length [11:44:04]Host: 172.17.45.67:8080 [11:44:04]Content-Length: 658 [11:44:04]Content-Type: application/json [11:44:04] [11:44:04]POST finish read [11:44:04]Found Content-Length = 658 [11:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:04]execute_script... [11:44:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:04]POST & json_proto [11:44:04]process_json_proto [11:44:04]json parsed OK: [11:44:04]protocol is kg_v1.0 [11:44:04]action value=close_receipt [11:44:04]process_action close_receipt [11:44:04]cmd_close_receipt [11:44:04]MH_GetDate [11:44:04]Write to MH i2c: F0 00 00 2F 35 53 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 09 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: F0 09 00 2F 35 00 87 81 C4 66 5F 7F 2B 66 FD [11:44:04]GetLastDocTimeStamp 1724154220 [11:44:04]current date 1724154247 [11:44:04]FM_GetShiftState [11:44:04]SAM_PROTO_GetShiftState [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 13 01 00 [11:44:04]Write to MH i2c: E2 08 00 30 35 80 13 01 00 00 00 00 00 E2 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0E 00 30 35 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 73 [11:44:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:44:04]wFMCommunicate OK [11:44:04]SAM_PROTO_GetShiftState done [11:44:04]FM_GetShiftState done [11:44:04]opened in 1724113785 [11:44:04]opened+sec_in_day 1724200185 [11:44:04]quantity*price = 50017 [11:44:04]sum+1 = 50019 [11:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 139 20.08.2024 11:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139667 ФПД: 234839170511504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114407&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139667&fm=234839170511504&tin=02508201610067®Number=0000000000092569&sum=50000 [11:44:05]StoreToDocumentArchive [11:44:05]shift 453 fd 139667 [11:44:05]save to /storage/0453/doc_00139667 [11:44:05]save last doc name /storage/0453/doc_00139667 to /storage/kkm_last_doc_name [11:44:05]save OK [11:44:05]Clear old archive folders... [11:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:44:05]tlvbuf is 00DC4600 [11:44:05]SAM_PROTO_ClearQueue [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 09 00 00 [11:44:05]Write to MH i2c: E2 08 00 3D 35 80 09 00 00 00 00 00 00 E4 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_ClearQueue done [11:44:05]KKMCreateOFDPacket [11:44:05]OFDProtocolAddRootSTLVToBuf [11:44:05]FM_MakeSignedData [11:44:05]FM_MakeSignedData [11:44:05]SAM_PROTO_SignData [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 01 02 [11:44:05]Write to MH i2c: E2 08 00 3E 35 80 0D 01 02 00 00 00 00 EC [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=253 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 87 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 21 02 00 35 04 06 00 D5 95 C1 56 72 90 [11:44:05]Write to MH i2c: E2 00 01 3F 35 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 87 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 21 02 00 35 04 06 00 D5 95 C1 56 72 90 00 00 C1 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 03 00 3F 35 00 90 00 E8 [11:44:05]RAPDU: 90 00 [11:44:05]wFMCommunicate OK [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 0D 03 02 [11:44:05]Write to MH i2c: E2 08 00 40 35 80 0D 03 02 00 00 00 00 F0 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:05]int [11:44:05]*** FLAG_PRN_KEY set [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0B 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0B 00 40 35 00 71 15 4B 5C 2A E7 33 EC 90 00 4E [11:44:05]RAPDU: 71 15 4B 5C 2A E7 33 EC 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_SignData done [11:44:05]FM_MakeSignedData done [11:44:05]CreateOFDProtocolMessage [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 11 00 00 [11:44:05]Write to MH i2c: E2 08 00 41 35 80 11 00 00 00 00 00 00 F0 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 41 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 47 [11:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:44:06]wFMCommunicate OK [11:44:06]CreateOFDProtocolMessage done [11:44:06]OFDSenderStorePacket 139667 [11:44:06]StoreOFDPacket docnum=139667 [11:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 FD AB 00 01 04 9D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 87 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 21 02 00 35 04 06 00 D5 95 C1 56 72 90 71 15 4B 5C 2A E7 33 EC [11:44:06]CheckFolder [11:44:06]dirname=/storage/ofd_packets [11:44:06]CheckFolder done [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00139667 [11:44:06]NVStorageSaveData ofd_packets/00139667 [11:44:06]File name is /storage/ofd_packets/00139667 [11:44:06]Write 294 bytes [11:44:06]NVStorageSaveData done [11:44:06]OFDSenderStorePacket done [11:44:06]KKMCreateOFDPacket done [11:44:06]NVStorageSaveData kkm_last_timestamp [11:44:06]File name is /storage/kkm_last_timestamp [11:44:06]Write 4 bytes [11:44:06]NVStorageSaveData done [11:44:06]ExternCall_PrintAddStr [11:44:06]wPrintStart [11:44:06]Write to MH i2c: 01 00 00 42 35 77 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 42 35 00 08 00 00 00 FF 0F 94 [11:44:06]RasterBufferAndPrint [11:44:06]line Счет N : (1)593513 [11:44:06]line ИНН: 02508201610067 [11:44:06]line Контрольно-Кассовый Чек [11:44:06]line ПРОДАЖА [11:44:06]line ТРК (МРК, ГНК) : 63 [11:44:06]line Товар: 2710124130 [11:44:06]line SU-92 [11:44:06]line 7.270 * 68.80 [11:44:06]line = 500.18 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line ОКРУГЛЕНИЕ: -0.18 [11:44:06]line ИТОГО: 500.00 [11:44:06]line Внесено: 500.00 [11:44:06]line СДАЧА: 0.00 [11:44:06]line НСП 1% : 4.43 [11:44:06]line НДС 12% : 53.12 [11:44:06]line Наличными: 500.00 [11:44:06]line Безнал.: 0.00 [11:44:06]line Место: АЗС № 136 "Партнер Нефть" [11:44:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:44:06]line СНО: Общий режим [11:44:06]line Чек 139 20.08.2024 11:44 [11:44:06]line Смена: 453 ФФД: 1.0 [11:44:06]line ЗНМ: 0300000067 [11:44:06]line РНМ: 0000000000092569 [11:44:06]line Версия ККМ: 001 [11:44:06]line ФМ: 0000000000871776 [11:44:06]line ФД: 139667 [11:44:06]line ФПД: 234839170511504 [11:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114407&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139667&fm=234839170511504&tin=02508201610067®Number=0000000000092569&sum=50000 [11:44:06]written 0, free lines is 4095 [11:44:06]answer for other command [DD] [11:44:06]MH Int Process stopped [11:44:06]answer with wrong packet_num 3545 - expected 3546 [11:44:06]process_action_free close_receipt [11:44:06]json_value_free [11:44:06]json_value_free done [11:44:06]process_json_proto returns [11:44:06]Send response to host [11:44:06]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [11:44:06]free response buf [11:44:06]execute_script done [11:44:06]execute_script returns [11:44:06]free content buf [11:44:06]Sock 9.Close socket [11:44:06]Sock 9.Thread stoped [11:44:06]OFD Sender: Processing packet 139667 [packets to send 137, broken 136] [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00139667 [11:44:06]OFD Sender: To server: pG, [11:44:06]CommunicateWithHost lk.salyk.kg:30040 [11:44:06]ConnectInit lk.salyk.kg [11:44:06]Connected sock=5 [11:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 FD AB 00 01 04 9D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 8B 00 00 00 F4 03 04 00 87 81 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 21 02 00 35 04 06 00 D5 95 C1 56 72 90 71 15 4B 5C 2A E7 33 EC [11:44:06]*** FLAG_PRN_KEY reset [11:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D4 0D 47 00 A9 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 21 02 00 F4 03 04 00 1A 28 C4 66 B6 04 01 00 00 C6 5A FA E7 33 68 6A 12 [11:44:06]CommunicateWithHost err = 0 [11:44:06]CheckOFDResponse [11:44:06]1017 (14) - 77093643461234 [11:44:06]1041 (16) - 0000000000871776 [11:44:06]1040 (4) - 139667 [11:44:06]1012 (4) - 20.08.2024 05:22 [11:44:06]1206 (1) - 0 [11:44:06]OFD Sender: Remove packet 139667 [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00139667 [11:44:06]NVStorageDeleteData [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10027645+1714126687=1724154332 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 DC 81 C4 66 5F 7F 2B 66 F5 [11:45:32]Current date/time: 20.08.2024 11:45 [11:45:32]FM_Init [11:45:32]wFMConnect [11:45:32]MH_SAM_On [11:45:32]Write to MH i2c: E0 00 00 08 00 E7 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_init finished! [11:45:32]*** atr: [11:45:32]*** 0F 3B D5 18 FF 81 91 FE [11:45:32]*** 1F C3 80 73 C8 21 10 0A [11:45:32]*** 00 00 00 00 00 00 00 00 [11:45:32]*** 00 00 00 00 00 00 00 00 [11:45:32]*** 00 00 00 00 00 00 00 00 [11:45:32]*** 00 00 00 00 00 00 00 00 [11:45:32]*** 00 00 00 00 00 00 00 00 [11:45:32]*** 00 00 00 00 00 00 00 00 [11:45:32]Read from MH i2c: E0 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E0 10 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:45:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:45:32]wFMCommunicate request_size=10 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:45:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:45:32]RAPDU: 90 00 [11:45:32]wFMCommunicate OK [11:45:32]wFMCommunicate request_size=4 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 11 00 00 [11:45:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 17 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [11:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:45:32]wFMCommunicate OK [11:45:32]Detected FM SN is 0000000000871776 [11:45:32]Stored FM SN is 0000000000871776 [11:45:32]wFMCommunicate request_size=9 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 16 00 00 04 3F B1 00 00 [11:45:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:45:32]RAPDU: 90 00 [11:45:32]wFMCommunicate OK [11:45:32]FM PIN OK [11:45:32]wFMCommunicate request_size=8 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 14 04 00 03 02 00 01 [11:45:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:45:32]RAPDU: 90 00 [11:45:32]wFMCommunicate OK [11:45:32]wFMCommunicate request_size=13 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:45:32]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:45:32]RAPDU: 90 00 [11:45:32]wFMCommunicate OK [11:45:32]wFMCommunicate request_size=4 [11:45:32]MH_SAM_APDU [11:45:32]CAPDU: 80 11 00 00 [11:45:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:32]Read from MH i2c: E2 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 17 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [11:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:45:32]wFMCommunicate OK [11:45:32]DocumentArchiveInit [11:45:32]Start Httpd... [11:45:32]Httpd thread 3067477348 created [11:45:32]Write to MH i2c: 01 00 00 0F 00 0F [11:45:32]Write i2c OK [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: 01 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: 01 07 00 [11:45:32]MH_I2C_Read... [11:45:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:45:32]MH Int Process started [11:45:32]Allocated Socket 8 [11:45:32]Bind OK [11:45:32]Listen OK [11:45:32]httpd running on port 8080 [11:45:32]Waiting for new connection... [11:45:32]OFD Sender: No OFD packet to send [11:45:35]accept exits with 9 [11:45:35]New connection [11:45:35]New thread 3067190628 created [11:45:35]Waiting for new connection... [11:45:35] Sock 9.Parse request [11:45:35]Sock 9.Check first char [11:45:35]Sock 9.First char is OK [11:45:35]request: POST /json_proto HTTP/1.0 [11:45:35]Method: POST [11:45:35]URL: /json_proto [11:45:35]Method is POST - this is cgi request [11:45:35]url: /json_proto [11:45:35]query_string will be loaded in cgi processing [11:45:35]execute_cgi json_proto POST (null) [11:45:35]execute_cgi path=json_proto method=POST [11:45:35]POST find Content-Length [11:45:35]Host: 172.17.45.67:8080 [11:45:35]Content-Length: 215 [11:45:35]Content-Type: application/json [11:45:35] [11:45:35]POST finish read [11:45:35]Found Content-Length = 215 [11:45:35]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" ] } } [11:45:35]execute_script... [11:45:35]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" ] } } [11:45:35]POST & json_proto [11:45:35]process_json_proto [11:45:35]json parsed OK: [11:45:35]protocol is kg_v1.0 [11:45:35]action value=get_value [11:45:35]process_action get_value [11:45:35]cmd_get_value [11:45:35]process_action get_value done [11:45:35]requested_data is exist [11:45:35]produce_requested_data [11:45:35]requested_item kkm.sn is exist - process it [11:45:35]requested_item kkm.ver is exist - process it [11:45:35]requested_item fm.sn is exist - process it [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 11 00 00 [11:45:35]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 17 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [11:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:45:35]wFMCommunicate OK [11:45:35]requested_item fd.num is exist - process it [11:45:35]SAM_PROTO_GetFieldsCounters [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 13 00 00 [11:45:35]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 62 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [11:45:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:35]wFMCommunicate OK [11:45:35]SAM_PROTO_GetFieldsCounters done [11:45:35]requested_item shift.num is exist - process it [11:45:35]requested_item shift.opened is exist - process it [11:45:35]req_shift_opened [11:45:35]FM_GetShiftState [11:45:35]SAM_PROTO_GetShiftState [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 13 01 00 [11:45:35]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 0E 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 20 [11:45:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:45:35]wFMCommunicate OK [11:45:35]SAM_PROTO_GetShiftState done [11:45:35]FM_GetShiftState done [11:45:35]req_shift_opened done [11:45:35]requested_item shift.open_date is exist - process it [11:45:35]req_shift_open_date [11:45:35]req_shift_open_date done [11:45:35]produce_requested_data done [11:45:35]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139667,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:45:35]process_action_free get_value [11:45:35]json_value_free [11:45:35]json_value_free done [11:45:35]process_json_proto returns [11:45:35]Send response to host [11:45:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139667,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:45:35]free response buf [11:45:35]execute_script done [11:45:35]execute_script returns [11:45:35]free content buf [11:45:35]Sock 9.Close socket [11:45:35]Sock 9.Thread stoped [11:45:35]accept exits with 6 [11:45:35]New connection [11:45:35]New thread 3067047268 created [11:45:35]Thread 3067190628 joined [11:45:35]Waiting for new connection... [11:45:35] Sock 6.Parse request [11:45:35]Sock 6.Check first char [11:45:35]Sock 6.First char is OK [11:45:35]request: POST /json_proto HTTP/1.0 [11:45:35]Method: POST [11:45:35]URL: /json_proto [11:45:35]Method is POST - this is cgi request [11:45:35]url: /json_proto [11:45:35]query_string will be loaded in cgi processing [11:45:35]execute_cgi json_proto POST (null) [11:45:35]execute_cgi path=json_proto method=POST [11:45:35]POST find Content-Length [11:45:35]Host: 172.17.45.67:8080 [11:45:35]Content-Length: 331 [11:45:35]Content-Type: application/json [11:45:35] [11:45:35]POST finish read [11:45:35]Found Content-Length = 331 [11:45:35]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" ] } } [11:45:35]execute_script... [11:45:35]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" ] } } [11:45:35]POST & json_proto [11:45:35]process_json_proto [11:45:35]json parsed OK: [11:45:35]protocol is kg_v1.0 [11:45:35]action value=get_value [11:45:35]process_action get_value [11:45:35]cmd_get_value [11:45:35]process_action get_value done [11:45:35]requested_data is exist [11:45:35]produce_requested_data [11:45:35]requested_item fm.sale.total is exist - process it [11:45:35]SAM_PROTO_GetFMData [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 13 03 00 [11:45:35]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 FD 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 08 1E 02 00 69 04 A3 00 6F 04 04 00 87 1D 02 00 B1 04 05 00 4F C7 C6 3A 02 70 04 05 00 48 29 A1 F0 01 72 04 04 00 07 9E 25 4A 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 3B 4B A4 3C 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 AB 91 0D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 B7 [11:45:35]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 08 1E 02 00 69 04 A3 00 6F 04 04 00 87 1D 02 00 B1 04 05 00 4F C7 C6 3A 02 70 04 05 00 48 29 A1 F0 01 72 04 04 00 07 9E 25 4A 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 3B 4B A4 3C 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 AB 91 0D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [11:45:35]wFMCommunicate OK [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 17 00 00 [11:45:35]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:36]Read from MH i2c: E2 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: E2 FD 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 99 [11:45:36]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [11:45:36]wFMCommunicate OK [11:45:36]wFMCommunicate request_size=4 [11:45:36]MH_SAM_APDU [11:45:36]CAPDU: 80 17 00 00 [11:45:36]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:36]Read from MH i2c: E2 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: E2 FD 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [11:45:36]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [11:45:36]wFMCommunicate OK [11:45:36]wFMCommunicate request_size=4 [11:45:36]MH_SAM_APDU [11:45:36]CAPDU: 80 17 00 00 [11:45:36]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:36]Read from MH i2c: E2 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: E2 FD 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [11:45:36]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [11:45:36]wFMCommunicate OK [11:45:36]wFMCommunicate request_size=4 [11:45:36]MH_SAM_APDU [11:45:36]CAPDU: 80 17 00 00 [11:45:36]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [11:45:36]Read from MH i2c: E2 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: E2 E1 00 [11:45:36]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [11:45:37]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:45:37]wFMCommunicate OK [11:45:37]SAM_PROTO_GetFMData done [11:45:37]requested_item fm.sale_refund.total is exist - process it [11:45:37]requested_item fm.buy.total is exist - process it [11:45:37]requested_item shift.sale.total is exist - process it [11:45:37]SAM_PROTO_GetShiftData [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 13 02 00 [11:45:37]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 FD 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 8B 00 00 00 69 04 9C 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 70 56 7F 70 04 03 00 40 43 77 72 04 03 00 30 13 08 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 2A 87 0D 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 9D 20 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 82 [11:45:37]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8B 00 00 00 69 04 9C 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 70 56 7F 70 04 03 00 40 43 77 72 04 03 00 30 13 08 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 2A 87 0D 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 9D 20 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [11:45:37]wFMCommunicate OK [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 17 00 00 [11:45:37]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]OFD Sender: No OFD packet to send [11:45:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 FD 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [11:45:37]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [11:45:37]wFMCommunicate OK [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 17 00 00 [11:45:37]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 FD 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [11:45:38]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [11:45:38]wFMCommunicate OK [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 17 00 00 [11:45:38]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 FD 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [11:45:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [11:45:38]wFMCommunicate OK [11:45:38]wFMCommunicate request_size=4 [11:45:38]MH_SAM_APDU [11:45:38]CAPDU: 80 17 00 00 [11:45:38]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:45:38]Write i2c OK [11:45:38]MH_I2C_Read... [11:45:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:45:38]Read from MH i2c: E2 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 CC 00 [11:45:38]MH_I2C_Read... [11:45:38]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [11:45:38]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:45:38]wFMCommunicate OK [11:45:38]SAM_PROTO_GetShiftData done [11:45:38]requested_item shift.sale.total_cash is exist - process it [11:45:38]requested_item shift.sale_refund.total is exist - process it [11:45:38]requested_item shift.sale_refund.total_cash is exist - process it [11:45:38]requested_item shift.buy.total is exist - process it [11:45:38]requested_item shift.buy.total_cash is exist - process it [11:45:38]produce_requested_data done [11:45:38]produce_requested_data return {"fm.sale.total":95760402.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":83452.00,"shift.sale.total_cash":78160.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} [11:45:38]process_action_free get_value [11:45:38]json_value_free [11:45:38]json_value_free done [11:45:38]process_json_proto returns [11:45:38]Send response to host [11:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95760402.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":83452.00,"shift.sale.total_cash":78160.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}}} [11:45:38]free response buf [11:45:38]execute_script done [11:45:38]execute_script returns [11:45:38]free content buf [11:45:38]Sock 6.Close socket [11:45:38]Sock 6.Thread stoped [11:45:38]accept exits with 9 [11:45:38]New connection [11:45:38]New thread 3067190628 created [11:45:38]Thread 3067047268 joined [11:45:38]Waiting for new connection... [11:45:38] Sock 9.Parse request [11:45:38]Sock 9.Check first char [11:45:38]Sock 9.First char is OK [11:45:38]request: POST /json_proto HTTP/1.0 [11:45:38]Method: POST [11:45:38]URL: /json_proto [11:45:38]Method is POST - this is cgi request [11:45:38]url: /json_proto [11:45:38]query_string will be loaded in cgi processing [11:45:38]execute_cgi json_proto POST (null) [11:45:38]execute_cgi path=json_proto method=POST [11:45:38]POST find Content-Length [11:45:38]Host: 172.17.45.67:8080 [11:45:38]Content-Length: 144 [11:45:38]Content-Type: application/json [11:45:38] [11:45:38]POST finish read [11:45:38]Found Content-Length = 144 [11:45:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [11:45:38]execute_script... [11:45:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [11:45:38]POST & json_proto [11:45:38]process_json_proto [11:45:38]json parsed OK: [11:45:38]protocol is kg_v1.0 [11:45:38]action value=print_doc [11:45:38]process_action print_doc [11:45:38]ExternCall_PrintAddStr [11:45:38]wPrintStart [11:45:38]Write to MH i2c: 01 00 00 1D 00 1D [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: 01 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: 01 07 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [11:45:39]RasterBufferAndPrint [11:45:39]line Счет N : (1)593513 [11:45:39]line ИНН: 02508201610067 [11:45:39]line Контрольно-Кассовый Чек [11:45:39]line ПРОДАЖА [11:45:39]line ТРК (МРК, ГНК) : 63 [11:45:39]line Товар: 2710124130 [11:45:39]line SU-92 [11:45:39]line 7.270 * 68.80 [11:45:39]line = 500.18 [11:45:39]line НДС 12% НСП 1% [11:45:39]line > о реализуемом товаре [11:45:39]line ОКРУГЛЕНИЕ: -0.18 [11:45:39]line ИТОГО: 500.00 [11:45:39]line Внесено: 500.00 [11:45:39]line СДАЧА: 0.00 [11:45:39]line НСП 1% : 4.43 [11:45:39]line НДС 12% : 53.12 [11:45:39]line Наличными: 500.00 [11:45:39]line Безнал.: 0.00 [11:45:39]line Место: АЗС № 136 "Партнер Нефть" [11:45:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:45:39]line СНО: Общий режим [11:45:39]line Чек 139 20.08.2024 11:44 [11:45:39]line Смена: 453 ФФД: 1.0 [11:45:39]line ЗНМ: 0300000067 [11:45:39]line РНМ: 0000000000092569 [11:45:39]line Версия ККМ: 001 [11:45:39]line ФМ: 0000000000871776 [11:45:39]line ФД: 139667 [11:45:39]line ФПД: 234839170511504 [11:45:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114407&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139667&fm=234839170511504&tin=02508201610067®Number=0000000000092569&sum=50000 [11:45:39]written 0, free lines is 4095 [11:45:39]Write to MH i2c: 01 00 00 48 00 48 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: 01 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: 01 07 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 CA 0C 25 [11:45:39]RasterBufferAndPrint [11:45:39]line [11:45:39]line [11:45:39]line [11:45:39]line [11:45:39]line [11:45:39]written 0, free lines is 3289 [11:45:39]MH_Cut [11:45:39]Write to MH i2c: D1 01 00 4F 00 01 21 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: D1 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: D1 01 00 [11:45:39]MH_I2C_Read... [11:45:39]Read from MH i2c: D1 01 00 4F 00 00 20 [11:45:39]Write to MH i2c: 01 00 00 50 00 50 [11:45:39]Write i2c OK [11:45:39]MH_I2C_Read... [11:45:40]*** Cut start [11:45:40]*** Partial cut [11:45:40]*** CUTSNS_PIN = 1 [11:45:40]*** CUTSNS_PIN = 0 [11:45:40]*** Brake cut motor [11:45:40]Read from MH i2c: 01 [11:45:40]MH_I2C_Read... [11:45:40]*** Stop cut motor [11:45:40]*** Cut end [11:45:40]Read from MH i2c: 01 07 00 [11:45:40]MH_I2C_Read... [11:45:40]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [11:45:40]process_action print_doc done [11:45:40]requested_data is exist [11:45:40]produce_requested_data [11:45:40]produce_requested_data return (null) [11:45:40]process_action_free print_doc [11:45:40]json_value_free [11:45:40]json_value_free done [11:45:40]process_json_proto returns [11:45:40]Send response to host [11:45:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [11:45:40]free response buf [11:45:40]execute_script done [11:45:40]execute_script returns [11:45:40]free content buf [11:45:40]Sock 9.Close socket [11:45:40]Sock 9.Thread stoped [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:15]accept exits with 6 [11:46:15]New connection [11:46:15]New thread 3067047268 created [11:46:15]Thread 3067190628 joined [11:46:15]Waiting for new connection... [11:46:15] Sock 6.Parse request [11:46:15]Sock 6.Check first char [11:46:15]Sock 6.First char is OK [11:46:15]request: POST /json_proto HTTP/1.0 [11:46:15]Method: POST [11:46:15]URL: /json_proto [11:46:15]Method is POST - this is cgi request [11:46:15]url: /json_proto [11:46:15]query_string will be loaded in cgi processing [11:46:15]execute_cgi json_proto POST (null) [11:46:15]execute_cgi path=json_proto method=POST [11:46:15]POST find Content-Length [11:46:15]Host: 172.17.45.67:8080 [11:46:15]Content-Length: 677 [11:46:15]Content-Type: application/json [11:46:15] [11:46:15]POST finish read [11:46:15]Found Content-Length = 677 [11:46:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:15]execute_script... [11:46: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)593514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:15]POST & json_proto [11:46:15]process_json_proto [11:46:15]json parsed OK: [11:46:15]protocol is kg_v1.0 [11:46:15]action value=close_receipt [11:46:15]process_action close_receipt [11:46:15]cmd_close_receipt [11:46:15]MH_GetDate [11:46:15]Write to MH i2c: F0 00 00 51 00 40 [11:46:15]Write i2c OK [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: F0 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: F0 09 00 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: F0 09 00 51 00 00 08 82 C4 66 5F 7F 2B 66 6C [11:46:15]GetLastDocTimeStamp 1724154247 [11:46:15]current date 1724154376 [11:46:15]FM_GetShiftState [11:46:15]SAM_PROTO_GetShiftState [11:46:15]wFMCommunicate request_size=4 [11:46:15]MH_SAM_APDU [11:46:15]CAPDU: 80 13 01 00 [11:46:15]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [11:46:15]Write i2c OK [11:46:15]MH_I2C_Read... [11:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:15]Read from MH i2c: E2 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: E2 0E 00 [11:46:15]MH_I2C_Read... [11:46:15]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 60 [11:46:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:46:15]wFMCommunicate OK [11:46:15]SAM_PROTO_GetShiftState done [11:46:15]FM_GetShiftState done [11:46:15]opened in 1724113785 [11:46:15]opened+sec_in_day 1724200185 [11:46:15]quantity*price = 35052 [11:46:15]sum+1 = 35054 [11:46:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 140 20.08.2024 11:46 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139668 ФПД: 81347188765611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114616&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139668&fm=81347188765611&tin=02508201610067®Number=0000000000092569&sum=35000 [11:46:16]StoreToDocumentArchive [11:46:16]shift 453 fd 139668 [11:46:16]save to /storage/0453/doc_00139668 [11:46:16]save last doc name /storage/0453/doc_00139668 to /storage/kkm_last_doc_name [11:46:16]save OK [11:46:16]Clear old archive folders... [11:46:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:16]tlvbuf is 0077AA90 [11:46:16]SAM_PROTO_ClearQueue [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 09 00 00 [11:46:16]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [11:46:16]RAPDU: 90 00 [11:46:16]wFMCommunicate OK [11:46:16]SAM_PROTO_ClearQueue done [11:46:16]KKMCreateOFDPacket [11:46:16]OFDProtocolAddRootSTLVToBuf [11:46:16]FM_MakeSignedData [11:46:16]FM_MakeSignedData [11:46:16]SAM_PROTO_SignData [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 0D 01 02 [11:46:16]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [11:46:16]RAPDU: 90 00 [11:46:16]wFMCommunicate OK [11:46:16]wFMCommunicate request_size=255 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 08 82 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 21 02 00 35 04 06 00 49 [11:46:16]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 08 82 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 21 02 00 35 04 06 00 49 00 00 93 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [11:46:16]RAPDU: 90 00 [11:46:16]wFMCommunicate OK [11:46:16]wFMCommunicate request_size=10 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 0D 02 02 05 FC 1E 4A 33 AB [11:46:16]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 FC 1E 4A 33 AB 00 00 28 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [11:46:16]RAPDU: 90 00 [11:46:16]wFMCommunicate OK [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 0D 03 02 [11:46:16]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0B 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 0B 00 63 00 00 E4 66 7C 59 AB B1 CE 40 90 00 68 [11:46:16]RAPDU: E4 66 7C 59 AB B1 CE 40 90 00 [11:46:16]wFMCommunicate OK [11:46:16]SAM_PROTO_SignData done [11:46:16]FM_MakeSignedData done [11:46:16]CreateOFDProtocolMessage [11:46:16]wFMCommunicate request_size=4 [11:46:16]MH_SAM_APDU [11:46:16]CAPDU: 80 11 00 00 [11:46:16]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:16]Read from MH i2c: E2 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 17 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [11:46:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:46:16]wFMCommunicate OK [11:46:16]CreateOFDProtocolMessage done [11:46:16]OFDSenderStorePacket 139668 [11:46:16]StoreOFDPacket docnum=139668 [11:46:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 13 07 01 EA 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 08 82 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 21 02 00 35 04 06 00 49 FC 1E 4A 33 AB E4 66 7C 59 AB B1 CE 40 [11:46:16]CheckFolder [11:46:16]dirname=/storage/ofd_packets [11:46:16]CheckFolder done [11:46:16]ProducePacketName [11:46:16]name=ofd_packets/00139668 [11:46:16]NVStorageSaveData ofd_packets/00139668 [11:46:16]File name is /storage/ofd_packets/00139668 [11:46:16]Write 301 bytes [11:46:16]NVStorageSaveData done [11:46:16]OFDSenderStorePacket done [11:46:16]KKMCreateOFDPacket done [11:46:16]NVStorageSaveData kkm_last_timestamp [11:46:16]File name is /storage/kkm_last_timestamp [11:46:16]Write 4 bytes [11:46:16]NVStorageSaveData done [11:46:16]ExternCall_PrintAddStr [11:46:16]wPrintStart [11:46:16]Write to MH i2c: 01 00 00 65 00 65 [11:46:16]Write i2c OK [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: 01 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: 01 07 00 [11:46:16]MH_I2C_Read... [11:46:16]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [11:46:16]RasterBufferAndPrint [11:46:16]line Счет N : (1)593514 [11:46:16]line ИНН: 02508201610067 [11:46:16]line Контрольно-Кассовый Чек [11:46:16]line ПРОДАЖА [11:46:16]line ТРК (МРК, ГНК) : 62 [11:46:16]line Товар: 2710124130 [11:46:16]line Аи-92-К-5 [11:46:16]line 5.170 * 67.80 [11:46:16]line = 350.53 [11:46:16]line НДС 12% НСП 1% [11:46:16]line > о реализуемом товаре [11:46:16]line ОКРУГЛЕНИЕ: -0.53 [11:46:16]line ИТОГО: 350.00 [11:46:16]line Внесено: 350.00 [11:46:16]line СДАЧА: 0.00 [11:46:16]line НСП 1% : 3.10 [11:46:16]line НДС 12% : 37.22 [11:46:16]line Наличными: 350.00 [11:46:16]line Безнал.: 0.00 [11:46:16]line Место: АЗС № 136 "Партнер Нефть" [11:46:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:46:17]line СНО: Общий режим [11:46:17]line Чек 140 20.08.2024 11:46 [11:46:17]line Смена: 453 ФФД: 1.0 [11:46:17]line ЗНМ: 0300000067 [11:46:17]line РНМ: 0000000000092569 [11:46:17]line Версия ККМ: 001 [11:46:17]line ФМ: 0000000000871776 [11:46:17]line ФД: 139668 [11:46:17]line ФПД: 81347188765611 [11:46:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114616&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139668&fm=81347188765611&tin=02508201610067®Number=0000000000092569&sum=35000 [11:46:17]OFD Sender: Processing packet 139668 [packets to send 137, broken 136] [11:46:17]ProducePacketName [11:46:17]name=ofd_packets/00139668 [11:46:17]OFD Sender: To server: pG, [11:46:17]CommunicateWithHost lk.salyk.kg:30040 [11:46:17]ConnectInit lk.salyk.kg [11:46:17]written 0, free lines is 4095 [11:46:17]Connected sock=10 [11:46:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 13 07 01 EA 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 08 82 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 21 02 00 35 04 06 00 49 FC 1E 4A 33 AB E4 66 7C 59 AB B1 CE 40 [11:46:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F2 63 47 00 49 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 21 02 00 F4 03 04 00 9B 28 C4 66 B6 04 01 00 00 2F A4 A7 AF EC EF F1 DD [11:46:17]CommunicateWithHost err = 0 [11:46:17]CheckOFDResponse [11:46:17]1017 (14) - 77093643461234 [11:46:17]1041 (16) - 0000000000871776 [11:46:17]1040 (4) - 139668 [11:46:17]1012 (4) - 20.08.2024 05:24 [11:46:17]1206 (1) - 0 [11:46:17]OFD Sender: Remove packet 139668 [11:46:17]ProducePacketName [11:46:17]name=ofd_packets/00139668 [11:46:17]NVStorageDeleteData [11:46:17]Write to MH i2c: 01 00 00 90 00 90 [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: 01 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: 01 07 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 C7 0C 6A [11:46:17]RasterBufferAndPrint [11:46:17]line [11:46:17]line [11:46:17]line [11:46:17]line [11:46:17]line [11:46:17]written 0, free lines is 3277 [11:46:17]MH_Cut [11:46:17]Write to MH i2c: D1 01 00 97 00 01 69 [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: D1 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: D1 01 00 [11:46:17]MH_I2C_Read... [11:46:17]Read from MH i2c: D1 01 00 97 00 00 68 [11:46:17]Write to MH i2c: 01 00 00 98 00 98 [11:46:17]Write i2c OK [11:46:17]MH_I2C_Read... [11:46:18]OFD Sender: No OFD packet to send [11:46:18]*** Cut start [11:46:18]*** Partial cut [11:46:18]*** CUTSNS_PIN = 1 [11:46:18]*** CUTSNS_PIN = 0 [11:46:18]*** Brake cut motor [11:46:19]Read from MH i2c: 01 [11:46:19]MH_I2C_Read... [11:46:19]*** Stop cut motor [11:46:19]*** Cut end [11:46:19]Read from MH i2c: 01 07 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [11:46:19]process_action close_receipt done [11:46:19]requested_data is exist [11:46:19]produce_requested_data [11:46:19]requested_item fm.sn is exist - process it [11:46:19]wFMCommunicate request_size=4 [11:46:19]MH_SAM_APDU [11:46:19]CAPDU: 80 11 00 00 [11:46:19]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:19]Read from MH i2c: E2 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 17 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [11:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:46:19]wFMCommunicate OK [11:46:19]requested_item fd.num is exist - process it [11:46:19]SAM_PROTO_GetFieldsCounters [11:46:19]wFMCommunicate request_size=4 [11:46:19]MH_SAM_APDU [11:46:19]CAPDU: 80 13 00 00 [11:46:19]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:19]Read from MH i2c: E2 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 62 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:46:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:19]wFMCommunicate OK [11:46:19]SAM_PROTO_GetFieldsCounters done [11:46:19]requested_item shift.num is exist - process it [11:46:19]requested_item shift.opened is exist - process it [11:46:19]req_shift_opened [11:46:19]FM_GetShiftState [11:46:19]SAM_PROTO_GetShiftState [11:46:19]wFMCommunicate request_size=4 [11:46:19]MH_SAM_APDU [11:46:19]CAPDU: 80 13 01 00 [11:46:19]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [11:46:19]Write i2c OK [11:46:19]MH_I2C_Read... [11:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:19]Read from MH i2c: E2 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 0E 00 [11:46:19]MH_I2C_Read... [11:46:19]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A9 [11:46:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:46:19]wFMCommunicate OK [11:46:19]SAM_PROTO_GetShiftState done [11:46:19]FM_GetShiftState done [11:46:19]req_shift_opened done [11:46:19]requested_item shift.open_date is exist - process it [11:46:19]req_shift_open_date [11:46:19]req_shift_open_date done [11:46:19]produce_requested_data done [11:46:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139668,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:46:19]process_action_free close_receipt [11:46:19]json_value_free [11:46:19]json_value_free done [11:46:19]process_json_proto returns [11:46:19]Send response to host [11:46:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139668,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:46:19]free response buf [11:46:19]execute_script done [11:46:19]execute_script returns [11:46:19]free content buf [11:46:19]Sock 6.Close socket [11:46:19]Sock 6.Thread stoped [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:38]accept exits with 9 [11:46:38]New connection [11:46:38]New thread 3067190628 created [11:46:38]Thread 3067047268 joined [11:46:38]Waiting for new connection... [11:46:38] Sock 9.Parse request [11:46:38]Sock 9.Check first char [11:46:38]Sock 9.First char is OK [11:46:38]request: POST /json_proto HTTP/1.0 [11:46:38]Method: POST [11:46:38]URL: /json_proto [11:46:38]Method is POST - this is cgi request [11:46:38]url: /json_proto [11:46:38]query_string will be loaded in cgi processing [11:46:38]execute_cgi json_proto POST (null) [11:46:38]execute_cgi path=json_proto method=POST [11:46:38]POST find Content-Length [11:46:38]Host: 172.17.45.67:8080 [11:46:38]Content-Length: 677 [11:46:38]Content-Type: application/json [11:46:38] [11:46:38]POST finish read [11:46:38]Found Content-Length = 677 [11:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:38]execute_script... [11: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)593515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:38]POST & json_proto [11:46:38]process_json_proto [11:46:38]json parsed OK: [11:46:38]protocol is kg_v1.0 [11:46:38]action value=close_receipt [11:46:38]process_action close_receipt [11:46:38]cmd_close_receipt [11:46:38]MH_GetDate [11:46:38]Write to MH i2c: F0 00 00 9C 00 8B [11:46:38]Write i2c OK [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: F0 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: F0 09 00 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: F0 09 00 9C 00 00 1F 82 C4 66 5F 7F 2B 66 CE [11:46:38]GetLastDocTimeStamp 1724154376 [11:46:38]current date 1724154399 [11:46:38]FM_GetShiftState [11:46:38]SAM_PROTO_GetShiftState [11:46:38]wFMCommunicate request_size=4 [11:46:38]MH_SAM_APDU [11:46:38]CAPDU: 80 13 01 00 [11:46:38]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [11:46:38]Write i2c OK [11:46:38]MH_I2C_Read... [11:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:38]Read from MH i2c: E2 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: E2 0E 00 [11:46:38]MH_I2C_Read... [11:46:38]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AB [11:46:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:46:38]wFMCommunicate OK [11:46:38]SAM_PROTO_GetShiftState done [11:46:38]FM_GetShiftState done [11:46:38]opened in 1724113785 [11:46:38]opened+sec_in_day 1724200185 [11:46:38]quantity*price = 50036 [11:46:38]sum+1 = 50037 [11:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 141 20.08.2024 11:46 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139669 ФПД: 6806370738561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114639&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139669&fm=6806370738561&tin=02508201610067®Number=0000000000092569&sum=50000 [11:46:39]StoreToDocumentArchive [11:46:39]shift 453 fd 139669 [11:46:39]save to /storage/0453/doc_00139669 [11:46:39]save last doc name /storage/0453/doc_00139669 to /storage/kkm_last_doc_name [11:46:39]save OK [11:46:39]Clear old archive folders... [11:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:39]tlvbuf is 007C5330 [11:46:39]SAM_PROTO_ClearQueue [11:46:39]wFMCommunicate request_size=4 [11:46:39]MH_SAM_APDU [11:46:39]CAPDU: 80 09 00 00 [11:46:39]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [11:46:39]Write i2c OK [11:46:39]MH_I2C_Read... [11:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:39]Read from MH i2c: E2 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 03 00 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [11:46:39]RAPDU: 90 00 [11:46:39]wFMCommunicate OK [11:46:39]SAM_PROTO_ClearQueue done [11:46:39]KKMCreateOFDPacket [11:46:39]OFDProtocolAddRootSTLVToBuf [11:46:39]FM_MakeSignedData [11:46:39]FM_MakeSignedData [11:46:39]SAM_PROTO_SignData [11:46:39]wFMCommunicate request_size=4 [11:46:39]MH_SAM_APDU [11:46:39]CAPDU: 80 0D 01 02 [11:46:39]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [11:46:39]Write i2c OK [11:46:39]MH_I2C_Read... [11:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:39]Read from MH i2c: E2 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 03 00 [11:46:39]MH_I2C_Read... [11:46:39]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [11:46:39]RAPDU: 90 00 [11:46:39]wFMCommunicate OK [11:46:39]wFMCommunicate request_size=255 [11:46:39]MH_SAM_APDU [11: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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 1F 82 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 21 02 00 35 04 06 00 06 [11:46:39]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 1F 82 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 21 02 00 35 04 06 00 06 00 00 89 [11:46:39]Write i2c OK [11:46:39]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [11:46:40]RAPDU: 90 00 [11:46:40]wFMCommunicate OK [11:46:40]wFMCommunicate request_size=10 [11:46:40]MH_SAM_APDU [11:46:40]CAPDU: 80 0D 02 02 05 30 BB 4F 61 81 [11:46:40]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 30 BB 4F 61 81 00 00 4D [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [11:46:40]RAPDU: 90 00 [11:46:40]wFMCommunicate OK [11:46:40]wFMCommunicate request_size=4 [11:46:40]MH_SAM_APDU [11:46:40]CAPDU: 80 0D 03 02 [11:46:40]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 0B 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 0B 00 AE 00 00 59 50 95 E5 99 F6 39 35 90 00 4A [11:46:40]RAPDU: 59 50 95 E5 99 F6 39 35 90 00 [11:46:40]wFMCommunicate OK [11:46:40]SAM_PROTO_SignData done [11:46:40]FM_MakeSignedData done [11:46:40]CreateOFDProtocolMessage [11:46:40]wFMCommunicate request_size=4 [11:46:40]MH_SAM_APDU [11:46:40]CAPDU: 80 11 00 00 [11:46:40]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:40]Read from MH i2c: E2 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 17 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [11:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:46:40]wFMCommunicate OK [11:46:40]CreateOFDProtocolMessage done [11:46:40]OFDSenderStorePacket 139669 [11:46:40]StoreOFDPacket docnum=139669 [11:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E 0C 07 01 9A 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 1F 82 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 21 02 00 35 04 06 00 06 30 BB 4F 61 81 59 50 95 E5 99 F6 39 35 [11:46:40]CheckFolder [11:46:40]dirname=/storage/ofd_packets [11:46:40]CheckFolder done [11:46:40]ProducePacketName [11:46:40]name=ofd_packets/00139669 [11:46:40]NVStorageSaveData ofd_packets/00139669 [11:46:40]File name is /storage/ofd_packets/00139669 [11:46:40]Write 301 bytes [11:46:40]NVStorageSaveData done [11:46:40]OFDSenderStorePacket done [11:46:40]KKMCreateOFDPacket done [11:46:40]NVStorageSaveData kkm_last_timestamp [11:46:40]File name is /storage/kkm_last_timestamp [11:46:40]Write 4 bytes [11:46:40]NVStorageSaveData done [11:46:40]ExternCall_PrintAddStr [11:46:40]wPrintStart [11:46:40]Write to MH i2c: 01 00 00 B0 00 B0 [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: 01 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: 01 07 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [11:46:40]RasterBufferAndPrint [11:46:40]line Счет N : (1)593515 [11:46:40]line ИНН: 02508201610067 [11:46:40]line Контрольно-Кассовый Чек [11:46:40]line ПРОДАЖА [11:46:40]line ТРК (МРК, ГНК) : 32 [11:46:40]line Товар: 2710124130 [11:46:40]line Аи-92-К-5 [11:46:40]line 7.380 * 67.80 [11:46:40]line = 500.36 [11:46:40]line НДС 12% НСП 1% [11:46:40]line > о реализуемом товаре [11:46:40]line ОКРУГЛЕНИЕ: -0.36 [11:46:40]line ИТОГО: 500.00 [11:46:40]line Внесено: 500.00 [11:46:40]line СДАЧА: 0.00 [11:46:40]line НСП 1% : 4.43 [11:46:40]line НДС 12% : 53.14 [11:46:40]line Наличными: 500.00 [11:46:40]line Безнал.: 0.00 [11:46:40]line Место: АЗС № 136 "Партнер Нефть" [11:46:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:46:40]line СНО: Общий режим [11:46:40]line Чек 141 20.08.2024 11:46 [11:46:40]line Смена: 453 ФФД: 1.0 [11:46:40]line ЗНМ: 0300000067 [11:46:40]line РНМ: 0000000000092569 [11:46:40]line Версия ККМ: 001 [11:46:40]line ФМ: 0000000000871776 [11:46:40]line ФД: 139669 [11:46:40]line ФПД: 6806370738561 [11:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T114639&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139669&fm=6806370738561&tin=02508201610067®Number=0000000000092569&sum=50000 [11:46:40]written 0, free lines is 4095 [11:46:40]OFD Sender: Processing packet 139669 [packets to send 137, broken 136] [11:46:40]ProducePacketName [11:46:40]name=ofd_packets/00139669 [11:46:40]OFD Sender: To server: pG, [11:46:40]CommunicateWithHost lk.salyk.kg:30040 [11:46:40]ConnectInit lk.salyk.kg [11:46:40]Connected sock=10 [11:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E 0C 07 01 9A 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 1F 82 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 21 02 00 35 04 06 00 06 30 BB 4F 61 81 59 50 95 E5 99 F6 39 35 [11:46:40]Write to MH i2c: 01 00 00 DB 00 DB [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: 01 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: 01 07 00 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 E2 0C D0 [11:46:40]RasterBufferAndPrint [11:46:40]line [11:46:40]line [11:46:40]line [11:46:40]line [11:46:40]line [11:46:40]written 0, free lines is 3304 [11:46:40]MH_Cut [11:46:40]Write to MH i2c: D1 01 00 E2 00 01 B4 [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: D1 [11:46:40]MH_I2C_Read... [11:46:40]Read from MH i2c: D1 01 00 [11:46:40]MH_I2C_Read... [11:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 17 4A 47 00 5D B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 21 02 00 F4 03 04 00 B2 28 C4 66 B6 04 01 00 00 40 91 C7 91 41 EA C3 5C [11:46:40]CommunicateWithHost err = 0 [11:46:40]CheckOFDResponse [11:46:40]1017 (14) - 77093643461234 [11:46:40]1041 (16) - 0000000000871776 [11:46:40]1040 (4) - 139669 [11:46:40]1012 (4) - 20.08.2024 05:25 [11:46:40]1206 (1) - 0 [11:46:40]OFD Sender: Remove packet 139669 [11:46:40]ProducePacketName [11:46:40]name=ofd_packets/00139669 [11:46:40]NVStorageDeleteData [11:46:40]Read from MH i2c: D1 01 00 E2 00 00 B3 [11:46:40]Write to MH i2c: 01 00 00 E3 00 E3 [11:46:40]Write i2c OK [11:46:40]MH_I2C_Read... [11:46:41]OFD Sender: No OFD packet to send [11:46:41]*** Cut start [11:46:41]*** Partial cut [11:46:41]*** CUTSNS_PIN = 1 [11:46:41]*** CUTSNS_PIN = 0 [11:46:41]*** Brake cut motor [11:46:42]Read from MH i2c: 01 [11:46:42]MH_I2C_Read... [11:46:42]*** Stop cut motor [11:46:42]*** Cut end [11:46:42]Read from MH i2c: 01 07 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [11:46:42]process_action close_receipt done [11:46:42]requested_data is exist [11:46:42]produce_requested_data [11:46:42]requested_item fm.sn is exist - process it [11:46:42]wFMCommunicate request_size=4 [11:46:42]MH_SAM_APDU [11:46:42]CAPDU: 80 11 00 00 [11:46:42]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 17 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [11:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:46:42]wFMCommunicate OK [11:46:42]requested_item fd.num is exist - process it [11:46:42]SAM_PROTO_GetFieldsCounters [11:46:42]wFMCommunicate request_size=4 [11:46:42]MH_SAM_APDU [11:46:42]CAPDU: 80 13 00 00 [11:46:42]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 62 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [11:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:42]wFMCommunicate OK [11:46:42]SAM_PROTO_GetFieldsCounters done [11:46:42]requested_item shift.num is exist - process it [11:46:42]requested_item shift.opened is exist - process it [11:46:42]req_shift_opened [11:46:42]FM_GetShiftState [11:46:42]SAM_PROTO_GetShiftState [11:46:42]wFMCommunicate request_size=4 [11:46:42]MH_SAM_APDU [11:46:42]CAPDU: 80 13 01 00 [11:46:42]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [11:46:42]Write i2c OK [11:46:42]MH_I2C_Read... [11:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:42]Read from MH i2c: E2 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 0E 00 [11:46:42]MH_I2C_Read... [11:46:42]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F4 [11:46:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:46:42]wFMCommunicate OK [11:46:42]SAM_PROTO_GetShiftState done [11:46:42]FM_GetShiftState done [11:46:42]req_shift_opened done [11:46:42]requested_item shift.open_date is exist - process it [11:46:42]req_shift_open_date [11:46:42]req_shift_open_date done [11:46:42]produce_requested_data done [11:46:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139669,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:46:42]process_action_free close_receipt [11:46:42]json_value_free [11:46:42]json_value_free done [11:46:42]process_json_proto returns [11:46:42]Send response to host [11:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139669,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:46:42]free response buf [11:46:42]execute_script done [11:46:42]execute_script returns [11:46:42]free content buf [11:46:42]Sock 9.Close socket [11:46:42]Sock 9.Thread stoped [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:47]accept exits with 7 [11:50:47]New connection [11:50:47]New thread 3067047268 created [11:50:47]Thread 3067190628 joined [11:50:47]Waiting for new connection... [11:50:47] Sock 7.Parse request [11:50:47]Sock 7.Check first char [11:50:47]Sock 7.First char is OK [11:50:47]request: POST /json_proto HTTP/1.0 [11:50:47]Method: POST [11:50:47]URL: /json_proto [11:50:47]Method is POST - this is cgi request [11:50:47]url: /json_proto [11:50:47]query_string will be loaded in cgi processing [11:50:47]execute_cgi json_proto POST (null) [11:50:47]execute_cgi path=json_proto method=POST [11:50:47]POST find Content-Length [11:50:47]Host: 172.17.45.67:8080 [11:50:47]Content-Length: 677 [11:50:47]Content-Type: application/json [11:50:47] [11:50:47]POST finish read [11:50:47]Found Content-Length = 677 [11:50:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:47]execute_script... [11:50: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)593516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:47]POST & json_proto [11:50:47]process_json_proto [11:50:47]json parsed OK: [11:50:47]protocol is kg_v1.0 [11:50:47]action value=close_receipt [11:50:47]process_action close_receipt [11:50:47]cmd_close_receipt [11:50:47]MH_GetDate [11:50:47]Write to MH i2c: F0 00 00 E7 00 D6 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: F0 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: F0 09 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: F0 09 00 E7 00 00 18 83 C4 66 5F 7F 2B 66 13 [11:50:47]GetLastDocTimeStamp 1724154399 [11:50:47]current date 1724154648 [11:50:47]FM_GetShiftState [11:50:47]SAM_PROTO_GetShiftState [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 13 01 00 [11:50:47]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 0E 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F6 [11:50:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:50:47]wFMCommunicate OK [11:50:47]SAM_PROTO_GetShiftState done [11:50:47]FM_GetShiftState done [11:50:47]opened in 1724113785 [11:50:47]opened+sec_in_day 1724200185 [11:50:47]quantity*price = 50010 [11:50:47]sum+1 = 50012 [11:50:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 142 20.08.2024 11:50 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139670 ФПД: 31990408312475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115048&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139670&fm=31990408312475&tin=02508201610067®Number=0000000000092569&sum=50000 [11:50:48]StoreToDocumentArchive [11:50:48]shift 453 fd 139670 [11:50:48]save to /storage/0453/doc_00139670 [11:50:48]save last doc name /storage/0453/doc_00139670 to /storage/kkm_last_doc_name [11:50:48]save OK [11:50:48]Clear old archive folders... [11:50:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:48]tlvbuf is 007D1C00 [11:50:48]SAM_PROTO_ClearQueue [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 09 00 00 [11:50:48]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 03 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [11:50:48]RAPDU: 90 00 [11:50:48]wFMCommunicate OK [11:50:48]SAM_PROTO_ClearQueue done [11:50:48]KKMCreateOFDPacket [11:50:48]OFDProtocolAddRootSTLVToBuf [11:50:48]FM_MakeSignedData [11:50:48]FM_MakeSignedData [11:50:48]SAM_PROTO_SignData [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 0D 01 02 [11:50:48]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 03 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [11:50:48]RAPDU: 90 00 [11:50:48]wFMCommunicate OK [11:50:48]wFMCommunicate request_size=255 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 18 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 21 02 00 35 04 06 00 1D [11:50:48]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 18 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 21 02 00 35 04 06 00 1D 00 00 CF [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 03 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [11:50:48]RAPDU: 90 00 [11:50:48]wFMCommunicate OK [11:50:48]wFMCommunicate request_size=10 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 0D 02 02 05 18 58 EC 76 9B [11:50:48]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 18 58 EC 76 9B 00 00 E9 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 03 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [11:50:48]RAPDU: 90 00 [11:50:48]wFMCommunicate OK [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 0D 03 02 [11:50:48]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:49]Read from MH i2c: E2 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 0B 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 0B 00 F9 00 00 34 C8 51 58 12 F6 F5 32 90 00 49 [11:50:49]RAPDU: 34 C8 51 58 12 F6 F5 32 90 00 [11:50:49]wFMCommunicate OK [11:50:49]SAM_PROTO_SignData done [11:50:49]FM_MakeSignedData done [11:50:49]CreateOFDProtocolMessage [11:50:49]wFMCommunicate request_size=4 [11:50:49]MH_SAM_APDU [11:50:49]CAPDU: 80 11 00 00 [11:50:49]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [11:50:49]Write i2c OK [11:50:49]MH_I2C_Read... [11:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:49]Read from MH i2c: E2 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 17 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [11:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:50:49]wFMCommunicate OK [11:50:49]CreateOFDProtocolMessage done [11:50:49]OFDSenderStorePacket 139670 [11:50:49]StoreOFDPacket docnum=139670 [11:50:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B9 B7 07 01 9B 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 18 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 21 02 00 35 04 06 00 1D 18 58 EC 76 9B 34 C8 51 58 12 F6 F5 32 [11:50:49]CheckFolder [11:50:49]dirname=/storage/ofd_packets [11:50:49]CheckFolder done [11:50:49]ProducePacketName [11:50:49]name=ofd_packets/00139670 [11:50:49]NVStorageSaveData ofd_packets/00139670 [11:50:49]File name is /storage/ofd_packets/00139670 [11:50:49]Write 301 bytes [11:50:49]NVStorageSaveData done [11:50:49]OFDSenderStorePacket done [11:50:49]KKMCreateOFDPacket done [11:50:49]NVStorageSaveData kkm_last_timestamp [11:50:49]File name is /storage/kkm_last_timestamp [11:50:49]Write 4 bytes [11:50:49]NVStorageSaveData done [11:50:49]ExternCall_PrintAddStr [11:50:49]wPrintStart [11:50:49]Write to MH i2c: 01 00 00 FB 00 FB [11:50:49]Write i2c OK [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: 01 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: 01 07 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [11:50:49]RasterBufferAndPrint [11:50:49]line Счет N : (1)593516 [11:50:49]line ИНН: 02508201610067 [11:50:49]line Контрольно-Кассовый Чек [11:50:49]line ПРОДАЖА [11:50:49]line ТРК (МРК, ГНК) : 51 [11:50:49]line Товар: 2710124500 [11:50:49]line Аи-95-К-5 [11:50:49]line 6.740 * 74.20 [11:50:49]line = 500.11 [11:50:49]line НДС 12% НСП 1% [11:50:49]line > о реализуемом товаре [11:50:49]line ОКРУГЛЕНИЕ: -0.11 [11:50:49]line ИТОГО: 500.00 [11:50:49]line Внесено: 500.00 [11:50:49]line СДАЧА: 0.00 [11:50:49]line НСП 1% : 4.43 [11:50:49]line НДС 12% : 53.11 [11:50:49]line Наличными: 500.00 [11:50:49]line Безнал.: 0.00 [11:50:49]line Место: АЗС № 136 "Партнер Нефть" [11:50:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:50:49]line СНО: Общий режим [11:50:49]line Чек 142 20.08.2024 11:50 [11:50:49]line Смена: 453 ФФД: 1.0 [11:50:49]line ЗНМ: 0300000067 [11:50:49]line РНМ: 0000000000092569 [11:50:49]line Версия ККМ: 001 [11:50:49]line ФМ: 0000000000871776 [11:50:49]line ФД: 139670 [11:50:49]line ФПД: 31990408312475 [11:50:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115048&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139670&fm=31990408312475&tin=02508201610067®Number=0000000000092569&sum=50000 [11:50:49]OFD Sender: Processing packet 139670 [packets to send 137, broken 136] [11:50:49]ProducePacketName [11:50:49]name=ofd_packets/00139670 [11:50:49]OFD Sender: To server: pG, [11:50:49]CommunicateWithHost lk.salyk.kg:30040 [11:50:49]ConnectInit lk.salyk.kg [11:50:49]written 0, free lines is 4095 [11:50:49]Connected sock=10 [11:50:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B9 B7 07 01 9B 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 18 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 21 02 00 35 04 06 00 1D 18 58 EC 76 9B 34 C8 51 58 12 F6 F5 32 [11:50:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 53 64 47 00 11 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 21 02 00 F4 03 04 00 AB 29 C4 66 B6 04 01 00 00 19 1D 4F E5 80 00 EE 5C [11:50:49]CommunicateWithHost err = 0 [11:50:49]CheckOFDResponse [11:50:49]1017 (14) - 77093643461234 [11:50:49]1041 (16) - 0000000000871776 [11:50:49]1040 (4) - 139670 [11:50:49]1012 (4) - 20.08.2024 05:29 [11:50:49]1206 (1) - 0 [11:50:49]OFD Sender: Remove packet 139670 [11:50:49]ProducePacketName [11:50:49]name=ofd_packets/00139670 [11:50:49]NVStorageDeleteData [11:50:49]Write to MH i2c: 01 00 00 26 01 27 [11:50:49]Write i2c OK [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: 01 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: 01 07 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 C6 0C 00 [11:50:49]RasterBufferAndPrint [11:50:49]line [11:50:49]line [11:50:49]line [11:50:49]line [11:50:49]line [11:50:49]written 0, free lines is 3276 [11:50:49]MH_Cut [11:50:49]Write to MH i2c: D1 01 00 2D 01 01 00 [11:50:49]Write i2c OK [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: D1 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: D1 01 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: D1 01 00 2D 01 00 FF [11:50:49]Write to MH i2c: 01 00 00 2E 01 2F [11:50:49]Write i2c OK [11:50:49]MH_I2C_Read... [11:50:50]OFD Sender: No OFD packet to send [11:50:50]*** Cut start [11:50:50]*** Partial cut [11:50:50]*** CUTSNS_PIN = 1 [11:50:50]*** CUTSNS_PIN = 0 [11:50:50]*** Brake cut motor [11:50:51]Read from MH i2c: 01 [11:50:51]MH_I2C_Read... [11:50:51]*** Stop cut motor [11:50:51]*** Cut end [11:50:51]Read from MH i2c: 01 07 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [11:50:51]process_action close_receipt done [11:50:51]requested_data is exist [11:50:51]produce_requested_data [11:50:51]requested_item fm.sn is exist - process it [11:50:51]wFMCommunicate request_size=4 [11:50:51]MH_SAM_APDU [11:50:51]CAPDU: 80 11 00 00 [11:50:51]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:51]Read from MH i2c: E2 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 17 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [11:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:50:51]wFMCommunicate OK [11:50:51]requested_item fd.num is exist - process it [11:50:51]SAM_PROTO_GetFieldsCounters [11:50:51]wFMCommunicate request_size=4 [11:50:51]MH_SAM_APDU [11:50:51]CAPDU: 80 13 00 00 [11:50:51]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:51]Read from MH i2c: E2 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 62 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [11:50:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:51]wFMCommunicate OK [11:50:51]SAM_PROTO_GetFieldsCounters done [11:50:51]requested_item shift.num is exist - process it [11:50:51]requested_item shift.opened is exist - process it [11:50:51]req_shift_opened [11:50:51]FM_GetShiftState [11:50:51]SAM_PROTO_GetShiftState [11:50:51]wFMCommunicate request_size=4 [11:50:51]MH_SAM_APDU [11:50:51]CAPDU: 80 13 01 00 [11:50:51]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:51]Read from MH i2c: E2 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 0E 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 40 [11:50:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:50:51]wFMCommunicate OK [11:50:51]SAM_PROTO_GetShiftState done [11:50:51]FM_GetShiftState done [11:50:51]req_shift_opened done [11:50:51]requested_item shift.open_date is exist - process it [11:50:51]req_shift_open_date [11:50:51]req_shift_open_date done [11:50:51]produce_requested_data done [11:50:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139670,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:50:51]process_action_free close_receipt [11:50:51]json_value_free [11:50:51]json_value_free done [11:50:51]process_json_proto returns [11:50:51]Send response to host [11:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139670,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:50:51]free response buf [11:50:51]execute_script done [11:50:51]execute_script returns [11:50:51]free content buf [11:50:51]Sock 7.Close socket [11:50:51]Sock 7.Thread stoped [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:07]accept exits with 9 [11:52:07]New connection [11:52:07]New thread 3067190628 created [11:52:07]Thread 3067047268 joined [11:52:07]Waiting for new connection... [11:52:07] Sock 9.Parse request [11:52:07]Sock 9.Check first char [11:52:07]Sock 9.First char is OK [11:52:07]request: POST /json_proto HTTP/1.0 [11:52:07]Method: POST [11:52:07]URL: /json_proto [11:52:07]Method is POST - this is cgi request [11:52:07]url: /json_proto [11:52:07]query_string will be loaded in cgi processing [11:52:07]execute_cgi json_proto POST (null) [11:52:07]execute_cgi path=json_proto method=POST [11:52:07]POST find Content-Length [11:52:07]Host: 172.17.45.67:8080 [11:52:07]Content-Length: 677 [11:52:07]Content-Type: application/json [11:52:07] [11:52:07]POST finish read [11:52:07]Found Content-Length = 677 [11:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:07]execute_script... [11:52: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)593518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:07]POST & json_proto [11:52:07]process_json_proto [11:52:07]json parsed OK: [11:52:07]protocol is kg_v1.0 [11:52:07]action value=close_receipt [11:52:07]process_action close_receipt [11:52:07]cmd_close_receipt [11:52:07]MH_GetDate [11:52:07]Write to MH i2c: F0 00 00 32 01 22 [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: F0 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: F0 09 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: F0 09 00 32 01 00 68 83 C4 66 5F 7F 2B 66 AF [11:52:07]GetLastDocTimeStamp 1724154648 [11:52:07]current date 1724154728 [11:52:07]FM_GetShiftState [11:52:07]SAM_PROTO_GetShiftState [11:52:07]wFMCommunicate request_size=4 [11:52:07]MH_SAM_APDU [11:52:07]CAPDU: 80 13 01 00 [11:52:07]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [11:52:07]Write i2c OK [11:52:07]MH_I2C_Read... [11:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:07]Read from MH i2c: E2 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 0E 00 [11:52:07]MH_I2C_Read... [11:52:07]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 42 [11:52:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:52:07]wFMCommunicate OK [11:52:07]SAM_PROTO_GetShiftState done [11:52:07]FM_GetShiftState done [11:52:07]opened in 1724113785 [11:52:07]opened+sec_in_day 1724200185 [11:52:07]quantity*price = 40068 [11:52:07]sum+1 = 40069 [11:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 143 20.08.2024 11:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139671 ФПД: 149486705451661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115208&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139671&fm=149486705451661&tin=02508201610067®Number=0000000000092569&sum=40000 [11:52:08]StoreToDocumentArchive [11:52:08]shift 453 fd 139671 [11:52:08]save to /storage/0453/doc_00139671 [11:52:08]save last doc name /storage/0453/doc_00139671 to /storage/kkm_last_doc_name [11:52:08]save OK [11:52:08]Clear old archive folders... [11:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:08]tlvbuf is 007D4DC0 [11:52:08]SAM_PROTO_ClearQueue [11:52:08]wFMCommunicate request_size=4 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 09 00 00 [11:52:08]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [11:52:08]RAPDU: 90 00 [11:52:08]wFMCommunicate OK [11:52:08]SAM_PROTO_ClearQueue done [11:52:08]KKMCreateOFDPacket [11:52:08]OFDProtocolAddRootSTLVToBuf [11:52:08]FM_MakeSignedData [11:52:08]FM_MakeSignedData [11:52:08]SAM_PROTO_SignData [11:52:08]wFMCommunicate request_size=4 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 0D 01 02 [11:52:08]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [11:52:08]RAPDU: 90 00 [11:52:08]wFMCommunicate OK [11:52:08]wFMCommunicate request_size=255 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 68 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 21 02 00 35 04 06 00 87 [11:52:08]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 68 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 21 02 00 35 04 06 00 87 00 00 AE [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [11:52:08]RAPDU: 90 00 [11:52:08]wFMCommunicate OK [11:52:08]wFMCommunicate request_size=10 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 0D 02 02 05 F5 15 FA 22 8D [11:52:08]Write to MH i2c: E2 0D 00 43 01 80 0D 02 02 05 00 F5 15 FA 22 8D 00 00 7B [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:08]Read from MH i2c: E2 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 [11:52:08]MH_I2C_Read... [11:52:08]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [11:52:08]RAPDU: 90 00 [11:52:08]wFMCommunicate OK [11:52:08]wFMCommunicate request_size=4 [11:52:08]MH_SAM_APDU [11:52:08]CAPDU: 80 0D 03 02 [11:52:08]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [11:52:08]Write i2c OK [11:52:08]MH_I2C_Read... [11:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 0B 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 0B 00 44 01 00 34 61 49 F5 65 F2 6B 81 90 00 D7 [11:52:09]RAPDU: 34 61 49 F5 65 F2 6B 81 90 00 [11:52:09]wFMCommunicate OK [11:52:09]SAM_PROTO_SignData done [11:52:09]FM_MakeSignedData done [11:52:09]CreateOFDProtocolMessage [11:52:09]wFMCommunicate request_size=4 [11:52:09]MH_SAM_APDU [11:52:09]CAPDU: 80 11 00 00 [11:52:09]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:09]Read from MH i2c: E2 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 17 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [11:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:09]wFMCommunicate OK [11:52:09]CreateOFDProtocolMessage done [11:52:09]OFDSenderStorePacket 139671 [11:52:09]StoreOFDPacket docnum=139671 [11:52:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C C2 07 01 D8 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 68 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 21 02 00 35 04 06 00 87 F5 15 FA 22 8D 34 61 49 F5 65 F2 6B 81 [11:52:09]CheckFolder [11:52:09]dirname=/storage/ofd_packets [11:52:09]CheckFolder done [11:52:09]ProducePacketName [11:52:09]name=ofd_packets/00139671 [11:52:09]NVStorageSaveData ofd_packets/00139671 [11:52:09]File name is /storage/ofd_packets/00139671 [11:52:09]Write 301 bytes [11:52:09]NVStorageSaveData done [11:52:09]OFDSenderStorePacket done [11:52:09]KKMCreateOFDPacket done [11:52:09]NVStorageSaveData kkm_last_timestamp [11:52:09]File name is /storage/kkm_last_timestamp [11:52:09]Write 4 bytes [11:52:09]NVStorageSaveData done [11:52:09]ExternCall_PrintAddStr [11:52:09]wPrintStart [11:52:09]Write to MH i2c: 01 00 00 46 01 47 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 07 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [11:52:09]RasterBufferAndPrint [11:52:09]line Счет N : (1)593518 [11:52:09]line ИНН: 02508201610067 [11:52:09]line Контрольно-Кассовый Чек [11:52:09]line ПРОДАЖА [11:52:09]line ТРК (МРК, ГНК) : 41 [11:52:09]line Товар: 2710124500 [11:52:09]line Аи-95-К-5 [11:52:09]line 5.400 * 74.20 [11:52:09]line = 400.68 [11:52:09]line НДС 12% НСП 1% [11:52:09]line > о реализуемом товаре [11:52:09]line ОКРУГЛЕНИЕ: -0.68 [11:52:09]line ИТОГО: 400.00 [11:52:09]line Внесено: 400.00 [11:52:09]line СДАЧА: 0.00 [11:52:09]line НСП 1% : 3.55 [11:52:09]line НДС 12% : 42.55 [11:52:09]line Наличными: 400.00 [11:52:09]line Безнал.: 0.00 [11:52:09]line Место: АЗС № 136 "Партнер Нефть" [11:52:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:52:09]line СНО: Общий режим [11:52:09]line Чек 143 20.08.2024 11:52 [11:52:09]line Смена: 453 ФФД: 1.0 [11:52:09]line ЗНМ: 0300000067 [11:52:09]line РНМ: 0000000000092569 [11:52:09]line Версия ККМ: 001 [11:52:09]line ФМ: 0000000000871776 [11:52:09]line ФД: 139671 [11:52:09]line ФПД: 149486705451661 [11:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115208&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139671&fm=149486705451661&tin=02508201610067®Number=0000000000092569&sum=40000 [11:52:09]OFD Sender: Processing packet 139671 [packets to send 137, broken 136] [11:52:09]ProducePacketName [11:52:09]name=ofd_packets/00139671 [11:52:09]OFD Sender: To server: pG, [11:52:09]CommunicateWithHost lk.salyk.kg:30040 [11:52:09]ConnectInit lk.salyk.kg [11:52:09]written 0, free lines is 4095 [11:52:09]Connected sock=10 [11:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9C C2 07 01 D8 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 68 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 21 02 00 35 04 06 00 87 F5 15 FA 22 8D 34 61 49 F5 65 F2 6B 81 [11:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2F 41 47 00 9E 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 21 02 00 F4 03 04 00 FB 29 C4 66 B6 04 01 00 00 73 54 C9 F2 7D 58 48 99 [11:52:09]CommunicateWithHost err = 0 [11:52:09]CheckOFDResponse [11:52:09]1017 (14) - 77093643461234 [11:52:09]1041 (16) - 0000000000871776 [11:52:09]1040 (4) - 139671 [11:52:09]1012 (4) - 20.08.2024 05:30 [11:52:09]1206 (1) - 0 [11:52:09]OFD Sender: Remove packet 139671 [11:52:09]ProducePacketName [11:52:09]name=ofd_packets/00139671 [11:52:09]NVStorageDeleteData [11:52:09]Write to MH i2c: 01 00 00 71 01 72 [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 07 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 CD 0C 52 [11:52:09]RasterBufferAndPrint [11:52:09]line [11:52:09]line [11:52:09]line [11:52:09]line [11:52:09]line [11:52:09]written 0, free lines is 3281 [11:52:09]MH_Cut [11:52:09]Write to MH i2c: D1 01 00 78 01 01 4B [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: D1 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: D1 01 00 [11:52:09]MH_I2C_Read... [11:52:09]Read from MH i2c: D1 01 00 78 01 00 4A [11:52:09]Write to MH i2c: 01 00 00 79 01 7A [11:52:09]Write i2c OK [11:52:09]MH_I2C_Read... [11:52:10]OFD Sender: No OFD packet to send [11:52:10]*** Cut start [11:52:10]*** Partial cut [11:52:10]*** CUTSNS_PIN = 1 [11:52:10]*** CUTSNS_PIN = 0 [11:52:10]*** Brake cut motor [11:52:11]Read from MH i2c: 01 [11:52:11]MH_I2C_Read... [11:52:11]*** Stop cut motor [11:52:11]*** Cut end [11:52:11]Read from MH i2c: 01 07 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [11:52:11]process_action close_receipt done [11:52:11]requested_data is exist [11:52:11]produce_requested_data [11:52:11]requested_item fm.sn is exist - process it [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 11 00 00 [11:52:11]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 17 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [11:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:11]wFMCommunicate OK [11:52:11]requested_item fd.num is exist - process it [11:52:11]SAM_PROTO_GetFieldsCounters [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 13 00 00 [11:52:11]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 62 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 62 00 7B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [11:52:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:11]wFMCommunicate OK [11:52:11]SAM_PROTO_GetFieldsCounters done [11:52:11]requested_item shift.num is exist - process it [11:52:11]requested_item shift.opened is exist - process it [11:52:11]req_shift_opened [11:52:11]FM_GetShiftState [11:52:11]SAM_PROTO_GetShiftState [11:52:11]wFMCommunicate request_size=4 [11:52:11]MH_SAM_APDU [11:52:11]CAPDU: 80 13 01 00 [11:52:11]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [11:52:11]Write i2c OK [11:52:11]MH_I2C_Read... [11:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:11]Read from MH i2c: E2 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 0E 00 [11:52:11]MH_I2C_Read... [11:52:11]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8B [11:52:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:52:11]wFMCommunicate OK [11:52:11]SAM_PROTO_GetShiftState done [11:52:11]FM_GetShiftState done [11:52:11]req_shift_opened done [11:52:11]requested_item shift.open_date is exist - process it [11:52:11]req_shift_open_date [11:52:11]req_shift_open_date done [11:52:11]produce_requested_data done [11:52:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139671,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:52:11]process_action_free close_receipt [11:52:11]json_value_free [11:52:11]json_value_free done [11:52:11]process_json_proto returns [11:52:11]Send response to host [11:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139671,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:52:11]free response buf [11:52:11]execute_script done [11:52:11]execute_script returns [11:52:11]free content buf [11:52:11]Sock 9.Close socket [11:52:11]Sock 9.Thread stoped [11:52:12]accept exits with 7 [11:52:12]New connection [11:52:12]New thread 3067047268 created [11:52:12]Thread 3067190628 joined [11:52:12]Waiting for new connection... [11:52:12] Sock 7.Parse request [11:52:12]Sock 7.Check first char [11:52:12]Sock 7.First char is OK [11:52:12]request: POST /json_proto HTTP/1.0 [11:52:12]Method: POST [11:52:12]URL: /json_proto [11:52:12]Method is POST - this is cgi request [11:52:12]url: /json_proto [11:52:12]query_string will be loaded in cgi processing [11:52:12]execute_cgi json_proto POST (null) [11:52:12]execute_cgi path=json_proto method=POST [11:52:12]POST find Content-Length [11:52:12]Host: 172.17.45.67:8080 [11:52:12]Content-Length: 682 [11:52:12]Content-Type: application/json [11:52:12] [11:52:12]POST finish read [11:52:12]Found Content-Length = 682 [11:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:12]execute_script... [11:52: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)593517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:12]POST & json_proto [11:52:12]process_json_proto [11:52:12]json parsed OK: [11:52:12]protocol is kg_v1.0 [11:52:12]action value=close_receipt [11:52:12]process_action close_receipt [11:52:12]cmd_close_receipt [11:52:12]MH_GetDate [11:52:12]Write to MH i2c: F0 00 00 7D 01 6D [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 09 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 09 00 7D 01 00 6D 83 C4 66 5F 7F 2B 66 FF [11:52:12]GetLastDocTimeStamp 1724154728 [11:52:12]current date 1724154733 [11:52:12]FM_GetShiftState [11:52:12]SAM_PROTO_GetShiftState [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 13 01 00 [11:52:12]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8D [11:52:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:52:12]wFMCommunicate OK [11:52:12]SAM_PROTO_GetShiftState done [11:52:12]FM_GetShiftState done [11:52:12]opened in 1724113785 [11:52:12]opened+sec_in_day 1724200185 [11:52:12]quantity*price = 100005 [11:52:12]sum+1 = 100006 [11:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 144 20.08.2024 11:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139672 ФПД: 220454396456446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115213&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139672&fm=220454396456446&tin=02508201610067®Number=0000000000092569&sum=100000 [11:52:13]StoreToDocumentArchive [11:52:13]shift 453 fd 139672 [11:52:13]save to /storage/0453/doc_00139672 [11:52:13]save last doc name /storage/0453/doc_00139672 to /storage/kkm_last_doc_name [11:52:13]save OK [11:52:13]Clear old archive folders... [11:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:52:13]tlvbuf is 00771C20 [11:52:13]SAM_PROTO_ClearQueue [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 09 00 00 [11:52:13]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]SAM_PROTO_ClearQueue done [11:52:13]KKMCreateOFDPacket [11:52:13]OFDProtocolAddRootSTLVToBuf [11:52:13]FM_MakeSignedData [11:52:13]FM_MakeSignedData [11:52:13]SAM_PROTO_SignData [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 01 02 [11:52:13]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=255 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6D 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 21 02 00 35 04 06 00 C8 [11:52:13]Write to MH i2c: E2 02 01 8D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6D 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 21 02 00 35 04 06 00 C8 00 00 11 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 03 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [11:52:14]RAPDU: 90 00 [11:52:14]wFMCommunicate OK [11:52:14]wFMCommunicate request_size=10 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 0D 02 02 05 80 89 FD 6D FE [11:52:14]Write to MH i2c: E2 0D 00 8E 01 80 0D 02 02 05 00 80 89 FD 6D FE 00 00 84 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 03 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [11:52:14]RAPDU: 90 00 [11:52:14]wFMCommunicate OK [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 0D 03 02 [11:52:14]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 0B 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 0B 00 8F 01 00 B7 58 7C 12 52 90 C2 4A 90 00 97 [11:52:14]RAPDU: B7 58 7C 12 52 90 C2 4A 90 00 [11:52:14]wFMCommunicate OK [11:52:14]SAM_PROTO_SignData done [11:52:14]FM_MakeSignedData done [11:52:14]CreateOFDProtocolMessage [11:52:14]wFMCommunicate request_size=4 [11:52:14]MH_SAM_APDU [11:52:14]CAPDU: 80 11 00 00 [11:52:14]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:14]Read from MH i2c: E2 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [11:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:14]wFMCommunicate OK [11:52:14]CreateOFDProtocolMessage done [11:52:14]OFDSenderStorePacket 139672 [11:52:14]StoreOFDPacket docnum=139672 [11:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 ED D3 07 01 20 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6D 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 21 02 00 35 04 06 00 C8 80 89 FD 6D FE B7 58 7C 12 52 90 C2 4A [11:52:14]CheckFolder [11:52:14]dirname=/storage/ofd_packets [11:52:14]CheckFolder done [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00139672 [11:52:14]NVStorageSaveData ofd_packets/00139672 [11:52:14]File name is /storage/ofd_packets/00139672 [11:52:14]Write 301 bytes [11:52:14]NVStorageSaveData done [11:52:14]OFDSenderStorePacket done [11:52:14]KKMCreateOFDPacket done [11:52:14]NVStorageSaveData kkm_last_timestamp [11:52:14]File name is /storage/kkm_last_timestamp [11:52:14]Write 4 bytes [11:52:14]NVStorageSaveData done [11:52:14]ExternCall_PrintAddStr [11:52:14]wPrintStart [11:52:14]Write to MH i2c: 01 00 00 91 01 92 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [11:52:14]RasterBufferAndPrint [11:52:14]line Счет N : (1)593517 [11:52:14]line ИНН: 02508201610067 [11:52:14]line Контрольно-Кассовый Чек [11:52:14]line ПРОДАЖА [11:52:14]line ТРК (МРК, ГНК) : 62 [11:52:14]line Товар: 2710124130 [11:52:14]line Аи-92-К-5 [11:52:14]line 14.750 * 67.80 [11:52:14]line = 1000.05 [11:52:14]line НДС 12% НСП 1% [11:52:14]line > о реализуемом товаре [11:52:14]line ОКРУГЛЕНИЕ: -0.05 [11:52:14]line ИТОГО: 1000.00 [11:52:14]line Внесено: 1000.00 [11:52:14]line СДАЧА: 0.00 [11:52:14]line НСП 1% : 8.85 [11:52:14]line НДС 12% : 106.20 [11:52:14]line Наличными: 1000.00 [11:52:14]line Безнал.: 0.00 [11:52:14]line Место: АЗС № 136 "Партнер Нефть" [11:52:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:52:14]line СНО: Общий режим [11:52:14]line Чек 144 20.08.2024 11:52 [11:52:14]line Смена: 453 ФФД: 1.0 [11:52:14]line ЗНМ: 0300000067 [11:52:14]line РНМ: 0000000000092569 [11:52:14]line Версия ККМ: 001 [11:52:14]line ФМ: 0000000000871776 [11:52:14]line ФД: 139672 [11:52:14]line ФПД: 220454396456446 [11:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115213&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139672&fm=220454396456446&tin=02508201610067®Number=0000000000092569&sum=100000 [11:52:14]OFD Sender: Processing packet 139672 [packets to send 137, broken 136] [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00139672 [11:52:14]OFD Sender: To server: pG, [11:52:14]CommunicateWithHost lk.salyk.kg:30040 [11:52:14]ConnectInit lk.salyk.kg [11:52:14]written 0, free lines is 4095 [11:52:14]Connected sock=10 [11:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 ED D3 07 01 20 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 6D 83 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 21 02 00 35 04 06 00 C8 80 89 FD 6D FE B7 58 7C 12 52 90 C2 4A [11:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DF BE 47 00 AB 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 21 02 00 F4 03 04 00 00 2A C4 66 B6 04 01 00 00 36 1E 61 E0 2F F7 AC C5 [11:52:15]CommunicateWithHost err = 0 [11:52:15]CheckOFDResponse [11:52:15]1017 (14) - 77093643461234 [11:52:15]1041 (16) - 0000000000871776 [11:52:15]1040 (4) - 139672 [11:52:15]1012 (4) - 20.08.2024 05:30 [11:52:15]1206 (1) - 0 [11:52:15]OFD Sender: Remove packet 139672 [11:52:15]ProducePacketName [11:52:15]name=ofd_packets/00139672 [11:52:15]NVStorageDeleteData [11:52:15]Write to MH i2c: 01 00 00 BC 01 BD [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: 01 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: 01 07 00 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 F2 0C C2 [11:52:15]RasterBufferAndPrint [11:52:15]line [11:52:15]line [11:52:15]line [11:52:15]line [11:52:15]line [11:52:15]written 0, free lines is 3324 [11:52:15]MH_Cut [11:52:15]Write to MH i2c: D1 01 00 C3 01 01 96 [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: D1 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: D1 01 00 [11:52:15]MH_I2C_Read... [11:52:15]Read from MH i2c: D1 01 00 C3 01 00 95 [11:52:15]Write to MH i2c: 01 00 00 C4 01 C5 [11:52:15]Write i2c OK [11:52:15]MH_I2C_Read... [11:52:15]OFD Sender: No OFD packet to send [11:52:15]*** Cut start [11:52:15]*** Partial cut [11:52:15]*** CUTSNS_PIN = 1 [11:52:15]*** CUTSNS_PIN = 0 [11:52:16]*** Brake cut motor [11:52:16]Read from MH i2c: 01 [11:52:16]MH_I2C_Read... [11:52:16]*** Stop cut motor [11:52:16]*** Cut end [11:52:16]Read from MH i2c: 01 07 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [11:52:16]process_action close_receipt done [11:52:16]requested_data is exist [11:52:16]produce_requested_data [11:52:16]requested_item fm.sn is exist - process it [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 11 00 00 [11:52:16]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 17 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [11:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:16]wFMCommunicate OK [11:52:16]requested_item fd.num is exist - process it [11:52:16]SAM_PROTO_GetFieldsCounters [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 13 00 00 [11:52:16]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 62 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 62 00 C6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [11:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_GetFieldsCounters done [11:52:16]requested_item shift.num is exist - process it [11:52:16]requested_item shift.opened is exist - process it [11:52:16]req_shift_opened [11:52:16]FM_GetShiftState [11:52:16]SAM_PROTO_GetShiftState [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 13 01 00 [11:52:16]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D6 [11:52:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_GetShiftState done [11:52:16]FM_GetShiftState done [11:52:16]req_shift_opened done [11:52:16]requested_item shift.open_date is exist - process it [11:52:16]req_shift_open_date [11:52:16]req_shift_open_date done [11:52:16]produce_requested_data done [11:52:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139672,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:52:16]process_action_free close_receipt [11:52:16]json_value_free [11:52:16]json_value_free done [11:52:16]process_json_proto returns [11:52:16]Send response to host [11:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139672,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:52:16]free response buf [11:52:16]execute_script done [11:52:16]execute_script returns [11:52:16]free content buf [11:52:16]Sock 7.Close socket [11:52:16]Sock 7.Thread stoped [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:33]int [11:52:33]Write to MH i2c: 01 00 00 C8 01 C9 [11:52:33]Write i2c OK [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: 01 [11:52:33]MH_I2C_Read... [11:52:33]*** FLAG_PRN_PAP1 set [11:52:33]*** FLAG_PRN_PAP1 reset [11:52:33]Read from MH i2c: 01 07 00 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: 01 07 00 C8 01 00 00 00 00 00 FF 0F DE [11:52:33]state=0 [11:52:33]int [11:52:33]Write to MH i2c: 01 00 00 C9 01 CA [11:52:33]*** FLAG_PRN_PAP1 set [11:52:33]Write i2c OK [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: 01 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: 01 07 00 [11:52:33]MH_I2C_Read... [11:52:33]Read from MH i2c: 01 07 00 C9 01 00 01 00 00 00 FF 0F E0 [11:52:33]state=0 [11:52:33]No paper [11:52:34]int [11:52:34]Write to MH i2c: 01 00 00 CA 01 CB [11:52:34]*** FLAG_PRN_PAP2 set [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 CA 01 00 03 00 00 00 FF 0F E3 [11:52:34]state=0 [11:52:34]No paper [11:52:34]Cover opened [11:52:34]int [11:52:34]Write to MH i2c: 01 00 00 CB 01 CC [11:52:34]*** FLAG_PRN_PAP2 reset [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 CB 01 00 01 00 00 00 FF 0F E2 [11:52:34]state=3 [11:52:34]No paper [11:52:34]Cover closed [11:52:34]int [11:52:34]Write to MH i2c: 01 00 00 CC 01 CD [11:52:34]*** FLAG_PRN_PAP2 set [11:52:34]Write i2c OK [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 [11:52:34]MH_I2C_Read... [11:52:34]Read from MH i2c: 01 07 00 CC 01 00 03 00 00 00 FF 0F E5 [11:52:34]state=0 [11:52:34]No paper [11:52:34]Cover opened [11:52:35]OFD Sender: No OFD packet to send [11:52:39]Write to MH i2c: 01 00 00 CD 01 CE [11:52:39]Write i2c OK [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: 01 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: 01 07 00 [11:52:39]MH_I2C_Read... [11:52:39]Read from MH i2c: 01 07 00 CD 01 00 03 00 00 00 FF 0F E6 [11:52:39]state=3 [11:52:39]No paper [11:52:39]Cover opened [11:52:40]OFD Sender: No OFD packet to send [11:52:42]int [11:52:42]Write to MH i2c: 01 00 00 CE 01 CF [11:52:42]*** FLAG_PRN_PAP2 reset [11:52:42]Write i2c OK [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: 01 [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: 01 07 00 [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: 01 07 00 CE 01 00 01 00 00 00 FF 0F E5 [11:52:42]state=3 [11:52:42]No paper [11:52:42]Cover closed [11:52:43]int [11:52:43]Write to MH i2c: 01 00 00 CF 01 D0 [11:52:43]*** FLAG_PRN_PAP2 set [11:52:43]Write i2c OK [11:52:43]MH_I2C_Read... [11:52:43]Read from MH i2c: 01 [11:52:43]MH_I2C_Read... [11:52:43]Read from MH i2c: 01 07 00 [11:52:43]MH_I2C_Read... [11:52:43]Read from MH i2c: 01 07 00 CF 01 00 03 00 00 00 FF 0F E8 [11:52:43]state=0 [11:52:43]No paper [11:52:43]Cover opened [11:52:45]int [11:52:45]Write to MH i2c: 01 00 00 D0 01 D1 [11:52:45]*** FLAG_PRN_PAP2 reset [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 D0 01 00 01 00 00 00 FF 0F E7 [11:52:45]state=3 [11:52:45]No paper [11:52:45]Cover closed [11:52:45]int [11:52:45]Write to MH i2c: 01 00 00 D1 01 D2 [11:52:45]*** FLAG_PRN_PAP1 reset [11:52:45]Write i2c OK [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 [11:52:45]MH_I2C_Read... [11:52:45]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [11:52:45]state=0 [11:52:45]OFD Sender: No OFD packet to send [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 10028094+1714126687=1724154781 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 9E 83 C4 66 5F 7F 2B 66 B9 [11:53:02]Current date/time: 20.08.2024 11:53 [11:53:02]FM_Init [11:53:02]wFMConnect [11:53:02]MH_SAM_On [11:53:02]Write to MH i2c: E0 00 00 08 00 E7 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]*** iso7816_init finished! [11:53:02]*** atr: [11:53:02]Read from MH i2c: E0 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E0 10 00 [11:53:02]MH_I2C_Read... [11:53:02]*** 0F 3B D5 18 FF 81 91 FE [11:53:02]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:53:02]*** 1F C3 80 73 C8 21 10 0A [11:53:02]*** 00 00 00 00 00 00 00 00 [11:53:02]*** 00 00 00 00 00 00 00 00 [11:53:02]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:53:02]wFMCommunicate request_size=10 [11:53:02]MH_SAM_APDU [11:53:02]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:53:02]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:53:02]*** 00 00 00 00 00 00 00 00 [11:53:02]*** 00 00 00 00 00 00 00 00 [11:53:02]*** 00 00 00 00 00 00 00 00 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]*** 00 00 00 00 00 00 00 00 [11:53:02]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:53:02]Read from MH i2c: E2 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 03 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:53:02]RAPDU: 90 00 [11:53:02]wFMCommunicate OK [11:53:02]wFMCommunicate request_size=4 [11:53:02]MH_SAM_APDU [11:53:02]CAPDU: 80 11 00 00 [11:53:02]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:02]Read from MH i2c: E2 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 17 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [11:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:53:02]wFMCommunicate OK [11:53:02]Detected FM SN is 0000000000871776 [11:53:02]Stored FM SN is 0000000000871776 [11:53:02]wFMCommunicate request_size=9 [11:53:02]MH_SAM_APDU [11:53:02]CAPDU: 80 16 00 00 04 3F B1 00 00 [11:53:02]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:53:02]Read from MH i2c: E2 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 03 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:53:02]RAPDU: 90 00 [11:53:02]wFMCommunicate OK [11:53:02]FM PIN OK [11:53:02]wFMCommunicate request_size=8 [11:53:02]MH_SAM_APDU [11:53:02]CAPDU: 80 14 04 00 03 02 00 01 [11:53:02]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 [11:53:02]MH_I2C_Read... [11:53:02]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:53:02]Read from MH i2c: E2 03 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:53:02]RAPDU: 90 00 [11:53:02]wFMCommunicate OK [11:53:02]wFMCommunicate request_size=13 [11:53:02]MH_SAM_APDU [11:53:02]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:53:02]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:53:02]Read from MH i2c: E2 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 03 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:53:02]RAPDU: 90 00 [11:53:02]wFMCommunicate OK [11:53:02]wFMCommunicate request_size=4 [11:53:02]MH_SAM_APDU [11:53:02]CAPDU: 80 11 00 00 [11:53:02]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:02]Read from MH i2c: E2 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 17 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [11:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:53:02]wFMCommunicate OK [11:53:02]DocumentArchiveInit [11:53:02]Start Httpd... [11:53:02]Httpd thread 3067575652 created [11:53:02]Write to MH i2c: 01 00 00 0F 00 0F [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: 01 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: 01 07 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:53:02]MH Int Process started [11:53:02]Allocated Socket 7 [11:53:02]Bind OK [11:53:02]Listen OK [11:53:02]httpd running on port 8080 [11:53:02]Waiting for new connection... [11:53:02]OFD Sender: No OFD packet to send [11:53:05]accept exits with 8 [11:53:05]New connection [11:53:05]New thread 3067288932 created [11:53:05]Waiting for new connection... [11:53:05] Sock 8.Parse request [11:53:05]Sock 8.Check first char [11:53:05]Sock 8.First char is OK [11:53:05]request: POST /json_proto HTTP/1.0 [11:53:05]Method: POST [11:53:05]URL: /json_proto [11:53:05]Method is POST - this is cgi request [11:53:05]url: /json_proto [11:53:05]query_string will be loaded in cgi processing [11:53:05]execute_cgi json_proto POST (null) [11:53:05]execute_cgi path=json_proto method=POST [11:53:05]POST find Content-Length [11:53:05]Host: 172.17.45.67:8080 [11:53:05]Content-Length: 215 [11:53:05]Content-Type: application/json [11:53:05] [11:53:05]POST finish read [11:53:05]Found Content-Length = 215 [11:53:05]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" ] } } [11:53:05]execute_script... [11:53:05]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" ] } } [11:53:05]POST & json_proto [11:53:05]process_json_proto [11:53:05]json parsed OK: [11:53:05]protocol is kg_v1.0 [11:53:05]action value=get_value [11:53:05]process_action get_value [11:53:05]cmd_get_value [11:53:05]process_action get_value done [11:53:05]requested_data is exist [11:53:05]produce_requested_data [11:53:05]requested_item kkm.sn is exist - process it [11:53:05]requested_item kkm.ver is exist - process it [11:53:05]requested_item fm.sn is exist - process it [11:53:05]wFMCommunicate request_size=4 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 11 00 00 [11:53:05]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 17 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [11:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:53:05]wFMCommunicate OK [11:53:05]requested_item fd.num is exist - process it [11:53:05]SAM_PROTO_GetFieldsCounters [11:53:05]wFMCommunicate request_size=4 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 13 00 00 [11:53:05]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 62 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [11:53:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:05]wFMCommunicate OK [11:53:05]SAM_PROTO_GetFieldsCounters done [11:53:05]requested_item shift.num is exist - process it [11:53:05]requested_item shift.opened is exist - process it [11:53:05]req_shift_opened [11:53:05]FM_GetShiftState [11:53:05]SAM_PROTO_GetShiftState [11:53:05]wFMCommunicate request_size=4 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 13 01 00 [11:53:05]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:05]Read from MH i2c: E2 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 0E 00 [11:53:05]MH_I2C_Read... [11:53:05]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 20 [11:53:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:53:05]wFMCommunicate OK [11:53:05]SAM_PROTO_GetShiftState done [11:53:05]FM_GetShiftState done [11:53:05]req_shift_opened done [11:53:05]requested_item shift.open_date is exist - process it [11:53:05]req_shift_open_date [11:53:05]req_shift_open_date done [11:53:05]produce_requested_data done [11:53:05]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139672,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:53:05]process_action_free get_value [11:53:05]json_value_free [11:53:05]json_value_free done [11:53:05]process_json_proto returns [11:53:05]Send response to host [11:53:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139672,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:53:05]free response buf [11:53:05]execute_script done [11:53:05]execute_script returns [11:53:05]free content buf [11:53:05]Sock 8.Close socket [11:53:05]Sock 8.Thread stoped [11:53:05]accept exits with 6 [11:53:05]New connection [11:53:05]New thread 3067145572 created [11:53:05]Thread 3067288932 joined [11:53:05]Waiting for new connection... [11:53:05] Sock 6.Parse request [11:53:05]Sock 6.Check first char [11:53:05]Sock 6.First char is OK [11:53:05]request: POST /json_proto HTTP/1.0 [11:53:05]Method: POST [11:53:05]URL: /json_proto [11:53:05]Method is POST - this is cgi request [11:53:05]url: /json_proto [11:53:05]query_string will be loaded in cgi processing [11:53:05]execute_cgi json_proto POST (null) [11:53:05]execute_cgi path=json_proto method=POST [11:53:05]POST find Content-Length [11:53:05]Host: 172.17.45.67:8080 [11:53:05]Content-Length: 331 [11:53:05]Content-Type: application/json [11:53:05] [11:53:05]POST finish read [11:53:05]Found Content-Length = 331 [11:53: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" ] } } [11:53:05]execute_script... [11:53: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" ] } } [11:53:05]POST & json_proto [11:53:05]process_json_proto [11:53:05]json parsed OK: [11:53:05]protocol is kg_v1.0 [11:53:05]action value=get_value [11:53:05]process_action get_value [11:53:05]cmd_get_value [11:53:05]process_action get_value done [11:53:05]requested_data is exist [11:53:05]produce_requested_data [11:53:05]requested_item fm.sale.total is exist - process it [11:53:05]SAM_PROTO_GetFMData [11:53:05]wFMCommunicate request_size=4 [11:53:05]MH_SAM_APDU [11:53:05]CAPDU: 80 13 03 00 [11:53:05]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:53:05]Write i2c OK [11:53:05]MH_I2C_Read... [11:53:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:53:06]Read from MH i2c: E2 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 FD 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 0D 1E 02 00 69 04 A3 00 6F 04 04 00 8C 1D 02 00 B1 04 05 00 87 F9 CA 3A 02 70 04 05 00 80 5B A5 F0 01 72 04 04 00 07 9E 25 4A 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 61 BD A4 3C 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 2F 9B 0D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 C3 [11:53:06]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 0D 1E 02 00 69 04 A3 00 6F 04 04 00 8C 1D 02 00 B1 04 05 00 87 F9 CA 3A 02 70 04 05 00 80 5B A5 F0 01 72 04 04 00 07 9E 25 4A 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 61 BD A4 3C 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 2F 9B 0D 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [11:53:06]wFMCommunicate OK [11:53:06]wFMCommunicate request_size=4 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 17 00 00 [11:53:06]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:53:06]Read from MH i2c: E2 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 FD 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 99 [11:53:06]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [11:53:06]wFMCommunicate OK [11:53:06]wFMCommunicate request_size=4 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 17 00 00 [11:53:06]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:53:06]Read from MH i2c: E2 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 FD 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [11:53:06]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [11:53:06]wFMCommunicate OK [11:53:06]wFMCommunicate request_size=4 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 17 00 00 [11:53:06]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:53:06]Read from MH i2c: E2 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 FD 00 [11:53:06]MH_I2C_Read... [11:53:06]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [11:53:06]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [11:53:06]wFMCommunicate OK [11:53:06]wFMCommunicate request_size=4 [11:53:06]MH_SAM_APDU [11:53:06]CAPDU: 80 17 00 00 [11:53:06]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:53:06]Write i2c OK [11:53:06]MH_I2C_Read... [11:53:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [11:53:07]Read from MH i2c: E2 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 E1 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [11:53:07]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:53:07]wFMCommunicate OK [11:53:07]SAM_PROTO_GetFMData done [11:53:07]requested_item fm.sale_refund.total is exist - process it [11:53:07]requested_item fm.buy.total is exist - process it [11:53:07]requested_item shift.sale.total is exist - process it [11:53:07]SAM_PROTO_GetShiftData [11:53:07]wFMCommunicate request_size=4 [11:53:07]MH_SAM_APDU [11:53:07]CAPDU: 80 13 02 00 [11:53:07]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:53:07]Write i2c OK [11:53:07]MH_I2C_Read... [11:53:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:53:07]Read from MH i2c: E2 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 FD 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 90 00 00 00 69 04 9C 00 6F 04 04 00 90 00 00 00 B1 04 03 00 A8 88 83 70 04 03 00 78 75 7B 72 04 03 00 30 13 08 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 50 F9 0D 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 21 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 8E [11:53:07]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 90 00 00 00 69 04 9C 00 6F 04 04 00 90 00 00 00 B1 04 03 00 A8 88 83 70 04 03 00 78 75 7B 72 04 03 00 30 13 08 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 50 F9 0D 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 21 2A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [11:53:07]wFMCommunicate OK [11:53:07]wFMCommunicate request_size=4 [11:53:07]MH_SAM_APDU [11:53:07]CAPDU: 80 17 00 00 [11:53:07]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:53:07]Write i2c OK [11:53:07]MH_I2C_Read... [11:53:07]OFD Sender: No OFD packet to send [11:53:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:53:07]Read from MH i2c: E2 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 FD 00 [11:53:07]MH_I2C_Read... [11:53:07]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [11:53:07]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [11:53:07]wFMCommunicate OK [11:53:07]wFMCommunicate request_size=4 [11:53:07]MH_SAM_APDU [11:53:07]CAPDU: 80 17 00 00 [11:53:07]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:53:07]Write i2c OK [11:53:07]MH_I2C_Read... [11:53:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:53:08]Read from MH i2c: E2 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: E2 FD 00 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [11:53:08]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [11:53:08]wFMCommunicate OK [11:53:08]wFMCommunicate request_size=4 [11:53:08]MH_SAM_APDU [11:53:08]CAPDU: 80 17 00 00 [11:53:08]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:53:08]Write i2c OK [11:53:08]MH_I2C_Read... [11:53:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:53:08]Read from MH i2c: E2 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: E2 FD 00 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [11:53:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [11:53:08]wFMCommunicate OK [11:53:08]wFMCommunicate request_size=4 [11:53:08]MH_SAM_APDU [11:53:08]CAPDU: 80 17 00 00 [11:53:08]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:53:08]Write i2c OK [11:53:08]MH_I2C_Read... [11:53:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [11:53:08]Read from MH i2c: E2 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: E2 CC 00 [11:53:08]MH_I2C_Read... [11:53:08]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [11:53:08]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:53:08]wFMCommunicate OK [11:53:08]SAM_PROTO_GetShiftData done [11:53:08]requested_item shift.sale.total_cash is exist - process it [11:53:08]requested_item shift.sale_refund.total is exist - process it [11:53:08]requested_item shift.sale_refund.total_cash is exist - process it [11:53:08]requested_item shift.buy.total is exist - process it [11:53:08]requested_item shift.buy.total_cash is exist - process it [11:53:08]produce_requested_data done [11:53:08]produce_requested_data return {"fm.sale.total":95763152.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":86202.00,"shift.sale.total_cash":80910.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} [11:53:08]process_action_free get_value [11:53:08]json_value_free [11:53:08]json_value_free done [11:53:08]process_json_proto returns [11:53:08]Send response to host [11:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95763152.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":86202.00,"shift.sale.total_cash":80910.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}}} [11:53:08]free response buf [11:53:08]execute_script done [11:53:08]execute_script returns [11:53:08]free content buf [11:53:08]Sock 6.Close socket [11:53:08]Sock 6.Thread stoped [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:18]accept exits with 8 [11:56:18]New connection [11:56:18]New thread 3067288932 created [11:56:18]Thread 3067145572 joined [11:56:18]Waiting for new connection... [11:56:18] Sock 8.Parse request [11:56:18]Sock 8.Check first char [11:56:18]Sock 8.First char is OK [11:56:18]request: POST /json_proto HTTP/1.0 [11:56:18]Method: POST [11:56:18]URL: /json_proto [11:56:18]Method is POST - this is cgi request [11:56:18]url: /json_proto [11:56:18]query_string will be loaded in cgi processing [11:56:18]execute_cgi json_proto POST (null) [11:56:18]execute_cgi path=json_proto method=POST [11:56:18]POST find Content-Length [11:56:18]Host: 172.17.45.67:8080 [11:56:18]Content-Length: 838 [11:56:18]Content-Type: application/json [11:56:18] [11:56:18]POST finish read [11:56:18]Found Content-Length = 838 [11:56:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:18]execute_script... [11:56: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)593519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:18]POST & json_proto [11:56:18]process_json_proto [11:56:18]json parsed OK: [11:56:18]protocol is kg_v1.0 [11:56:18]action value=close_receipt [11:56:18]process_action close_receipt [11:56:18]cmd_close_receipt [11:56:18]MH_GetDate [11:56:18]Write to MH i2c: F0 00 00 1D 00 0C [11:56:18]Write i2c OK [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: F0 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: F0 09 00 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: F0 09 00 1D 00 00 62 84 C4 66 5F 7F 2B 66 94 [11:56:18]GetLastDocTimeStamp 97 [11:56:18]current date 1724154978 [11:56:18]FM_GetShiftState [11:56:18]SAM_PROTO_GetShiftState [11:56:18]wFMCommunicate request_size=4 [11:56:18]MH_SAM_APDU [11:56:18]CAPDU: 80 13 01 00 [11:56:18]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:56:18]Write i2c OK [11:56:18]MH_I2C_Read... [11:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:18]Read from MH i2c: E2 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: E2 0E 00 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2C [11:56:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:56:18]wFMCommunicate OK [11:56:18]SAM_PROTO_GetShiftState done [11:56:18]FM_GetShiftState done [11:56:18]opened in 1724113785 [11:56:18]opened+sec_in_day 1724200185 [11:56:18]quantity*price = 200043 [11:56:18]sum+1 = 200044 [11:56:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 145 20.08.2024 11:56 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139673 ФПД: 37750666057897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115618&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139673&fm=37750666057897&tin=02508201610067®Number=0000000000092569&sum=200000 [11:56:19]StoreToDocumentArchive [11:56:19]shift 453 fd 139673 [11:56:19]save to /storage/0453/doc_00139673 [11:56:19]save last doc name /storage/0453/doc_00139673 to /storage/kkm_last_doc_name [11:56:19]save OK [11:56:19]Clear old archive folders... [11:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:20]tlvbuf is 01FEDA40 [11:56:20]SAM_PROTO_ClearQueue [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 09 00 00 [11:56:20]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]SAM_PROTO_ClearQueue done [11:56:20]KKMCreateOFDPacket [11:56:20]OFDProtocolAddRootSTLVToBuf [11:56:20]FM_MakeSignedData [11:56:20]FM_MakeSignedData [11:56:20]SAM_PROTO_SignData [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 01 02 [11:56:20]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]wFMCommunicate request_size=255 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 62 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 21 02 00 35 04 06 00 22 [11:56:20]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 62 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 21 02 00 35 04 06 00 22 00 00 2B [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]wFMCommunicate request_size=10 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 02 02 05 55 83 0A 58 A9 [11:56:20]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 55 83 0A 58 A9 00 00 95 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 03 02 [11:56:20]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 0B 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 0B 00 2F 00 00 C7 12 62 F0 D8 55 73 DE 90 00 54 [11:56:20]RAPDU: C7 12 62 F0 D8 55 73 DE 90 00 [11:56:20]wFMCommunicate OK [11:56:20]SAM_PROTO_SignData done [11:56:20]FM_MakeSignedData done [11:56:20]CreateOFDProtocolMessage [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 11 00 00 [11:56:20]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 17 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [11:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:56:20]wFMCommunicate OK [11:56:20]CreateOFDProtocolMessage done [11:56:20]OFDSenderStorePacket 139673 [11:56:20]StoreOFDPacket docnum=139673 [11:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DA 56 07 01 57 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 62 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 21 02 00 35 04 06 00 22 55 83 0A 58 A9 C7 12 62 F0 D8 55 73 DE [11:56:20]CheckFolder [11:56:20]dirname=/storage/ofd_packets [11:56:20]CheckFolder done [11:56:20]ProducePacketName [11:56:20]name=ofd_packets/00139673 [11:56:20]NVStorageSaveData ofd_packets/00139673 [11:56:20]File name is /storage/ofd_packets/00139673 [11:56:20]Write 301 bytes [11:56:20]NVStorageSaveData done [11:56:20]OFDSenderStorePacket done [11:56:20]KKMCreateOFDPacket done [11:56:20]NVStorageSaveData kkm_last_timestamp [11:56:20]File name is /storage/kkm_last_timestamp [11:56:20]Write 4 bytes [11:56:20]NVStorageSaveData done [11:56:20]ExternCall_PrintAddStr [11:56:20]wPrintStart [11:56:20]Write to MH i2c: 01 00 00 31 00 31 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 07 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:56:20]RasterBufferAndPrint [11:56:20]line Счет N : (1)593519 [11:56:20]line ИНН: 02508201610067 [11:56:20]line Контрольно-Кассовый Чек [11:56:20]line ПРОДАЖА [11:56:20]line ТРК (МРК, ГНК) : 51 [11:56:20]line Товар: 2710124500 [11:56:20]line Аи-95-К-5 [11:56:20]line 26.960 * 74.20 [11:56:20]line = 2000.43 [11:56:20]line НДС 12% НСП 1% [11:56:20]line > о реализуемом товаре [11:56:20]line ОКРУГЛЕНИЕ: -0.43 [11:56:20]line ИТОГО: 2000.00 [11:56:20]line НСП 1% : 17.70 [11:56:20]line НДС 12% : 212.43 [11:56:20]line Наличными: 0.00 [11:56:20]line Безнал.: 2000.00 [11:56:20]line Место: АЗС № 136 "Партнер Нефть" [11:56:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:56:20]line СНО: Общий режим [11:56:20]line Чек 145 20.08.2024 11:56 [11:56:20]line Смена: 453 ФФД: 1.0 [11:56:20]line ЗНМ: 0300000067 [11:56:20]line РНМ: 0000000000092569 [11:56:20]line Версия ККМ: 001 [11:56:20]line Платежная система: Бакай Банк [11:56:20]line ФМ: 0000000000871776 [11:56:20]line ФД: 139673 [11:56:20]line ФПД: 37750666057897 [11:56:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115618&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139673&fm=37750666057897&tin=02508201610067®Number=0000000000092569&sum=200000 [11:56:20]written 0, free lines is 4095 [11:56:20]OFD Sender: Processing packet 139673 [packets to send 137, broken 136] [11:56:20]ProducePacketName [11:56:20]name=ofd_packets/00139673 [11:56:20]OFD Sender: To server: pG, [11:56:20]CommunicateWithHost lk.salyk.kg:30040 [11:56:20]ConnectInit lk.salyk.kg [11:56:20]Connected sock=10 [11:56:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DA 56 07 01 57 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 62 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 21 02 00 35 04 06 00 22 55 83 0A 58 A9 C7 12 62 F0 D8 55 73 DE [11:56:21]Write to MH i2c: 01 00 00 5C 00 5C [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 07 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E3 0C 52 [11:56:21]RasterBufferAndPrint [11:56:21]line [11:56:21]line [11:56:21]line [11:56:21]line [11:56:21]line [11:56:21]written 0, free lines is 3305 [11:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E0 D1 47 00 B1 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 21 02 00 F4 03 04 00 F6 2A C4 66 B6 04 01 00 00 1E DD 4A 3B 1D F8 4E 35 [11:56:21]CommunicateWithHost err = 0 [11:56:21]CheckOFDResponse [11:56:21]1017 (14) - 77093643461234 [11:56:21]1041 (16) - 0000000000871776 [11:56:21]1040 (4) - 139673 [11:56:21]1012 (4) - 20.08.2024 05:34 [11:56:21]1206 (1) - 0 [11:56:21]OFD Sender: Remove packet 139673 [11:56:21]ProducePacketName [11:56:21]name=ofd_packets/00139673 [11:56:21]NVStorageDeleteData [11:56:21]MH_Cut [11:56:21]Write to MH i2c: D1 01 00 63 00 01 35 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: D1 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: D1 01 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: D1 01 00 63 00 00 34 [11:56:21]Write to MH i2c: 01 00 00 64 00 64 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]OFD Sender: No OFD packet to send [11:56:21]*** Cut start [11:56:21]*** Partial cut [11:56:21]*** CUTSNS_PIN = 1 [11:56:21]*** CUTSNS_PIN = 0 [11:56:21]*** Brake cut motor [11:56:22]Read from MH i2c: 01 [11:56:22]MH_I2C_Read... [11:56:22]*** Stop cut motor [11:56:22]*** Cut end [11:56:22]Read from MH i2c: 01 07 00 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:56:22]process_action close_receipt done [11:56:22]requested_data is exist [11:56:22]produce_requested_data [11:56:22]requested_item fm.sn is exist - process it [11:56:22]wFMCommunicate request_size=4 [11:56:22]MH_SAM_APDU [11:56:22]CAPDU: 80 11 00 00 [11:56:22]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [11:56:22]Write i2c OK [11:56:22]MH_I2C_Read... [11:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:22]Read from MH i2c: E2 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 17 00 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [11:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:56:22]wFMCommunicate OK [11:56:22]requested_item fd.num is exist - process it [11:56:22]SAM_PROTO_GetFieldsCounters [11:56:22]wFMCommunicate request_size=4 [11:56:22]MH_SAM_APDU [11:56:22]CAPDU: 80 13 00 00 [11:56:22]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [11:56:22]Write i2c OK [11:56:22]MH_I2C_Read... [11:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:22]Read from MH i2c: E2 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 62 00 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 99 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [11:56:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 99 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:22]wFMCommunicate OK [11:56:22]SAM_PROTO_GetFieldsCounters done [11:56:22]requested_item shift.num is exist - process it [11:56:22]requested_item shift.opened is exist - process it [11:56:22]req_shift_opened [11:56:22]FM_GetShiftState [11:56:22]SAM_PROTO_GetShiftState [11:56:22]wFMCommunicate request_size=4 [11:56:22]MH_SAM_APDU [11:56:22]CAPDU: 80 13 01 00 [11:56:22]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:56:22]Write i2c OK [11:56:22]MH_I2C_Read... [11:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:22]Read from MH i2c: E2 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 0E 00 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 75 [11:56:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:56:22]wFMCommunicate OK [11:56:22]SAM_PROTO_GetShiftState done [11:56:22]FM_GetShiftState done [11:56:22]req_shift_opened done [11:56:22]requested_item shift.open_date is exist - process it [11:56:22]req_shift_open_date [11:56:22]req_shift_open_date done [11:56:22]produce_requested_data done [11:56:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139673,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:56:22]process_action_free close_receipt [11:56:22]json_value_free [11:56:22]json_value_free done [11:56:22]process_json_proto returns [11:56:22]Send response to host [11:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139673,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:56:22]free response buf [11:56:22]execute_script done [11:56:22]execute_script returns [11:56:22]free content buf [11:56:22]Sock 8.Close socket [11:56:22]Sock 8.Thread stoped [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:38]accept exits with 9 [11:57:38]New connection [11:57:38]New thread 3067145572 created [11:57:38]Thread 3067288932 joined [11:57:38]Waiting for new connection... [11:57:38] Sock 9.Parse request [11:57:38]Sock 9.Check first char [11:57:38]Sock 9.First char is OK [11:57:38]request: POST /json_proto HTTP/1.0 [11:57:38]Method: POST [11:57:38]URL: /json_proto [11:57:38]Method is POST - this is cgi request [11:57:38]url: /json_proto [11:57:38]query_string will be loaded in cgi processing [11:57:38]execute_cgi json_proto POST (null) [11:57:38]execute_cgi path=json_proto method=POST [11:57:38]POST find Content-Length [11:57:38]Host: 172.17.45.67:8080 [11:57:38]Content-Length: 677 [11:57:38]Content-Type: application/json [11:57:38] [11:57:38]POST finish read [11:57:38]Found Content-Length = 677 [11:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:38]execute_script... [11:57: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)593520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:38]POST & json_proto [11:57:38]process_json_proto [11:57:38]json parsed OK: [11:57:38]protocol is kg_v1.0 [11:57:38]action value=close_receipt [11:57:38]process_action close_receipt [11:57:38]cmd_close_receipt [11:57:38]MH_GetDate [11:57:38]Write to MH i2c: F0 00 00 68 00 57 [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: F0 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: F0 09 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: F0 09 00 68 00 00 B2 84 C4 66 5F 7F 2B 66 2F [11:57:38]GetLastDocTimeStamp 1724154978 [11:57:38]current date 1724155058 [11:57:38]FM_GetShiftState [11:57:38]SAM_PROTO_GetShiftState [11:57:38]wFMCommunicate request_size=4 [11:57:38]MH_SAM_APDU [11:57:38]CAPDU: 80 13 01 00 [11:57:38]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:38]Read from MH i2c: E2 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 77 [11:57:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:57:38]wFMCommunicate OK [11:57:38]SAM_PROTO_GetShiftState done [11:57:38]FM_GetShiftState done [11:57:38]opened in 1724113785 [11:57:38]opened+sec_in_day 1724200185 [11:57:38]quantity*price = 50036 [11:57:38]sum+1 = 50037 [11:57:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 146 20.08.2024 11:57 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139674 ФПД: 231098062541505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115738&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139674&fm=231098062541505&tin=02508201610067®Number=0000000000092569&sum=50000 [11:57:39]StoreToDocumentArchive [11:57:39]shift 453 fd 139674 [11:57:39]save to /storage/0453/doc_00139674 [11:57:39]save last doc name /storage/0453/doc_00139674 to /storage/kkm_last_doc_name [11:57:39]save OK [11:57:39]Clear old archive folders... [11:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:39]tlvbuf is 01FE3090 [11:57:39]SAM_PROTO_ClearQueue [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 09 00 00 [11:57:39]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_ClearQueue done [11:57:39]KKMCreateOFDPacket [11:57:39]OFDProtocolAddRootSTLVToBuf [11:57:39]FM_MakeSignedData [11:57:39]FM_MakeSignedData [11:57:39]SAM_PROTO_SignData [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 01 02 [11:57:39]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]wFMCommunicate request_size=255 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B2 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 21 02 00 35 04 06 00 D2 [11:57:39]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B2 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 21 02 00 35 04 06 00 D2 00 00 C0 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]wFMCommunicate request_size=10 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 02 02 05 2E B5 ED 12 C1 [11:57:39]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 2E B5 ED 12 C1 00 00 A0 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 03 02 [11:57:39]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 0B 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 0B 00 7A 00 00 7C 24 CC 68 1C A3 8E AE 90 00 C5 [11:57:40]RAPDU: 7C 24 CC 68 1C A3 8E AE 90 00 [11:57:40]wFMCommunicate OK [11:57:40]SAM_PROTO_SignData done [11:57:40]FM_MakeSignedData done [11:57:40]CreateOFDProtocolMessage [11:57:40]wFMCommunicate request_size=4 [11:57:40]MH_SAM_APDU [11:57:40]CAPDU: 80 11 00 00 [11:57:40]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 17 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [11:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:57:40]wFMCommunicate OK [11:57:40]CreateOFDProtocolMessage done [11:57:40]OFDSenderStorePacket 139674 [11:57:40]StoreOFDPacket docnum=139674 [11:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 32 09 07 01 C1 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B2 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 21 02 00 35 04 06 00 D2 2E B5 ED 12 C1 7C 24 CC 68 1C A3 8E AE [11:57:40]CheckFolder [11:57:40]dirname=/storage/ofd_packets [11:57:40]CheckFolder done [11:57:40]ProducePacketName [11:57:40]name=ofd_packets/00139674 [11:57:40]NVStorageSaveData ofd_packets/00139674 [11:57:40]File name is /storage/ofd_packets/00139674 [11:57:40]Write 301 bytes [11:57:40]NVStorageSaveData done [11:57:40]OFDSenderStorePacket done [11:57:40]KKMCreateOFDPacket done [11:57:40]NVStorageSaveData kkm_last_timestamp [11:57:40]File name is /storage/kkm_last_timestamp [11:57:40]Write 4 bytes [11:57:40]NVStorageSaveData done [11:57:40]ExternCall_PrintAddStr [11:57:40]wPrintStart [11:57:40]Write to MH i2c: 01 00 00 7C 00 7C [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [11:57:40]RasterBufferAndPrint [11:57:40]line Счет N : (1)593520 [11:57:40]line ИНН: 02508201610067 [11:57:40]line Контрольно-Кассовый Чек [11:57:40]line ПРОДАЖА [11:57:40]line ТРК (МРК, ГНК) : 32 [11:57:40]line Товар: 2710124130 [11:57:40]line Аи-92-К-5 [11:57:40]line 7.380 * 67.80 [11:57:40]line = 500.36 [11:57:40]line НДС 12% НСП 1% [11:57:40]line > о реализуемом товаре [11:57:40]line ОКРУГЛЕНИЕ: -0.36 [11:57:40]line ИТОГО: 500.00 [11:57:40]line Внесено: 500.00 [11:57:40]line СДАЧА: 0.00 [11:57:40]line НСП 1% : 4.43 [11:57:40]line НДС 12% : 53.14 [11:57:40]line Наличными: 500.00 [11:57:40]line Безнал.: 0.00 [11:57:40]line Место: АЗС № 136 "Партнер Нефть" [11:57:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:57:40]line СНО: Общий режим [11:57:40]line Чек 146 20.08.2024 11:57 [11:57:40]line Смена: 453 ФФД: 1.0 [11:57:40]line ЗНМ: 0300000067 [11:57:40]line РНМ: 0000000000092569 [11:57:40]line Версия ККМ: 001 [11:57:40]line ФМ: 0000000000871776 [11:57:40]line ФД: 139674 [11:57:40]line ФПД: 231098062541505 [11:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115738&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139674&fm=231098062541505&tin=02508201610067®Number=0000000000092569&sum=50000 [11:57:40]OFD Sender: Processing packet 139674 [packets to send 137, broken 136] [11:57:40]ProducePacketName [11:57:40]name=ofd_packets/00139674 [11:57:40]OFD Sender: To server: pG, [11:57:40]CommunicateWithHost lk.salyk.kg:30040 [11:57:40]ConnectInit lk.salyk.kg [11:57:40]written 0, free lines is 4095 [11:57:40]Connected sock=10 [11:57:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 32 09 07 01 C1 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 B2 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 21 02 00 35 04 06 00 D2 2E B5 ED 12 C1 7C 24 CC 68 1C A3 8E AE [11:57:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 76 7E 47 00 C5 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 21 02 00 F4 03 04 00 45 2B C4 66 B6 04 01 00 00 D7 DE 3A C4 A9 1E 83 E9 [11:57:40]CommunicateWithHost err = 0 [11:57:40]CheckOFDResponse [11:57:40]1017 (14) - 77093643461234 [11:57:40]1041 (16) - 0000000000871776 [11:57:40]1040 (4) - 139674 [11:57:40]1012 (4) - 20.08.2024 05:36 [11:57:40]1206 (1) - 0 [11:57:40]OFD Sender: Remove packet 139674 [11:57:40]ProducePacketName [11:57:40]name=ofd_packets/00139674 [11:57:40]NVStorageDeleteData [11:57:40]Write to MH i2c: 01 00 00 A7 00 A7 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 D9 0C 93 [11:57:40]RasterBufferAndPrint [11:57:40]line [11:57:40]line [11:57:40]line [11:57:40]line [11:57:40]line [11:57:40]written 0, free lines is 3296 [11:57:40]MH_Cut [11:57:40]Write to MH i2c: D1 01 00 AE 00 01 80 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: D1 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: D1 01 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: D1 01 00 AE 00 00 7F [11:57:40]Write to MH i2c: 01 00 00 AF 00 AF [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:41]OFD Sender: No OFD packet to send [11:57:41]*** Cut start [11:57:41]*** Partial cut [11:57:41]*** CUTSNS_PIN = 1 [11:57:41]*** CUTSNS_PIN = 0 [11:57:41]*** Brake cut motor [11:57:42]Read from MH i2c: 01 [11:57:42]MH_I2C_Read... [11:57:42]*** Stop cut motor [11:57:42]*** Cut end [11:57:42]Read from MH i2c: 01 07 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [11:57:42]process_action close_receipt done [11:57:42]requested_data is exist [11:57:42]produce_requested_data [11:57:42]requested_item fm.sn is exist - process it [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 11 00 00 [11:57:42]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 17 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [11:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:57:42]wFMCommunicate OK [11:57:42]requested_item fd.num is exist - process it [11:57:42]SAM_PROTO_GetFieldsCounters [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 13 00 00 [11:57:42]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 62 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [11:57:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9A 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:42]wFMCommunicate OK [11:57:42]SAM_PROTO_GetFieldsCounters done [11:57:42]requested_item shift.num is exist - process it [11:57:42]requested_item shift.opened is exist - process it [11:57:42]req_shift_opened [11:57:42]FM_GetShiftState [11:57:42]SAM_PROTO_GetShiftState [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 13 01 00 [11:57:42]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0E 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C0 [11:57:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:57:42]wFMCommunicate OK [11:57:42]SAM_PROTO_GetShiftState done [11:57:42]FM_GetShiftState done [11:57:42]req_shift_opened done [11:57:42]requested_item shift.open_date is exist - process it [11:57:42]req_shift_open_date [11:57:42]req_shift_open_date done [11:57:42]produce_requested_data done [11:57:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139674,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:57:42]process_action_free close_receipt [11:57:42]json_value_free [11:57:42]json_value_free done [11:57:42]process_json_proto returns [11:57:42]Send response to host [11:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139674,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:57:42]free response buf [11:57:42]execute_script done [11:57:42]execute_script returns [11:57:42]free content buf [11:57:42]Sock 9.Close socket [11:57:42]Sock 9.Thread stoped [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:04]accept exits with 8 [11:58:04]New connection [11:58:04]New thread 3067288932 created [11:58:04]Thread 3067145572 joined [11:58:04]Waiting for new connection... [11:58:04] Sock 8.Parse request [11:58:04]Sock 8.Check first char [11:58:04]Sock 8.First char is OK [11:58:04]request: POST /json_proto HTTP/1.0 [11:58:04]Method: POST [11:58:04]URL: /json_proto [11:58:04]Method is POST - this is cgi request [11:58:04]url: /json_proto [11:58:04]query_string will be loaded in cgi processing [11:58:04]execute_cgi json_proto POST (null) [11:58:04]execute_cgi path=json_proto method=POST [11:58:04]POST find Content-Length [11:58:04]Host: 172.17.45.67:8080 [11:58:04]Content-Length: 677 [11:58:04]Content-Type: application/json [11:58:04] [11:58:04]POST finish read [11:58:04]Found Content-Length = 677 [11:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:04]execute_script... [11:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.970, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:04]POST & json_proto [11:58:04]process_json_proto [11:58:04]json parsed OK: [11:58:04]protocol is kg_v1.0 [11:58:04]action value=close_receipt [11:58:04]process_action close_receipt [11:58:04]cmd_close_receipt [11:58:04]MH_GetDate [11:58:04]Write to MH i2c: F0 00 00 B3 00 A2 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: F0 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: F0 09 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: F0 09 00 B3 00 00 CC 84 C4 66 5F 7F 2B 66 94 [11:58:04]GetLastDocTimeStamp 1724155058 [11:58:04]current date 1724155084 [11:58:04]FM_GetShiftState [11:58:04]SAM_PROTO_GetShiftState [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 13 01 00 [11:58:04]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0E 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C2 [11:58:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:58:04]wFMCommunicate OK [11:58:04]SAM_PROTO_GetShiftState done [11:58:04]FM_GetShiftState done [11:58:04]opened in 1724113785 [11:58:04]opened+sec_in_day 1724200185 [11:58:04]quantity*price = 22037 [11:58:04]sum+1 = 22038 [11:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 147 20.08.2024 11:58 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139675 ФПД: 6013829246329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115804&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139675&fm=6013829246329&tin=02508201610067®Number=0000000000092569&sum=22000 [11:58:05]StoreToDocumentArchive [11:58:05]shift 453 fd 139675 [11:58:05]save to /storage/0453/doc_00139675 [11:58:05]save last doc name /storage/0453/doc_00139675 to /storage/kkm_last_doc_name [11:58:05]save OK [11:58:05]Clear old archive folders... [11:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:05]tlvbuf is 01FE2560 [11:58:05]SAM_PROTO_ClearQueue [11:58:05]wFMCommunicate request_size=4 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 09 00 00 [11:58:05]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 03 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:58:05]RAPDU: 90 00 [11:58:05]wFMCommunicate OK [11:58:05]SAM_PROTO_ClearQueue done [11:58:05]KKMCreateOFDPacket [11:58:05]OFDProtocolAddRootSTLVToBuf [11:58:05]FM_MakeSignedData [11:58:05]FM_MakeSignedData [11:58:05]SAM_PROTO_SignData [11:58:05]wFMCommunicate request_size=4 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 0D 01 02 [11:58:05]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 03 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [11:58:05]RAPDU: 90 00 [11:58:05]wFMCommunicate OK [11:58:05]wFMCommunicate request_size=255 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CC 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 21 02 00 35 04 06 00 05 [11:58:05]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CC 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 21 02 00 35 04 06 00 05 00 00 8B [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 03 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [11:58:05]RAPDU: 90 00 [11:58:05]wFMCommunicate OK [11:58:05]wFMCommunicate request_size=10 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 0D 02 02 05 78 34 27 ED 79 [11:58:05]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 78 34 27 ED 79 00 00 81 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 03 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [11:58:05]RAPDU: 90 00 [11:58:05]wFMCommunicate OK [11:58:05]wFMCommunicate request_size=4 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 0D 03 02 [11:58:05]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 0B 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 0B 00 C5 00 00 49 E4 D6 F7 09 C6 7A 7A 90 00 FE [11:58:05]RAPDU: 49 E4 D6 F7 09 C6 7A 7A 90 00 [11:58:05]wFMCommunicate OK [11:58:05]SAM_PROTO_SignData done [11:58:05]FM_MakeSignedData done [11:58:05]CreateOFDProtocolMessage [11:58:05]wFMCommunicate request_size=4 [11:58:05]MH_SAM_APDU [11:58:05]CAPDU: 80 11 00 00 [11:58:05]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:05]Read from MH i2c: E2 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 17 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [11:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:58:05]wFMCommunicate OK [11:58:05]CreateOFDProtocolMessage done [11:58:05]OFDSenderStorePacket 139675 [11:58:05]StoreOFDPacket docnum=139675 [11:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3C BC 07 01 78 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CC 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 21 02 00 35 04 06 00 05 78 34 27 ED 79 49 E4 D6 F7 09 C6 7A 7A [11:58:05]CheckFolder [11:58:05]dirname=/storage/ofd_packets [11:58:05]CheckFolder done [11:58:05]ProducePacketName [11:58:05]name=ofd_packets/00139675 [11:58:05]NVStorageSaveData ofd_packets/00139675 [11:58:05]File name is /storage/ofd_packets/00139675 [11:58:05]Write 301 bytes [11:58:05]NVStorageSaveData done [11:58:05]OFDSenderStorePacket done [11:58:05]KKMCreateOFDPacket done [11:58:05]NVStorageSaveData kkm_last_timestamp [11:58:05]File name is /storage/kkm_last_timestamp [11:58:05]Write 4 bytes [11:58:05]NVStorageSaveData done [11:58:05]ExternCall_PrintAddStr [11:58:05]wPrintStart [11:58:05]Write to MH i2c: 01 00 00 C7 00 C7 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [11:58:05]RasterBufferAndPrint [11:58:05]line Счет N : (1)593521 [11:58:05]line ИНН: 02508201610067 [11:58:05]line Контрольно-Кассовый Чек [11:58:05]line ПРОДАЖА [11:58:05]line ТРК (МРК, ГНК) : 41 [11:58:05]line Товар: 2710124500 [11:58:05]line Аи-95-К-5 [11:58:05]line 2.970 * 74.20 [11:58:05]line = 220.37 [11:58:05]line НДС 12% НСП 1% [11:58:05]line > о реализуемом товаре [11:58:05]line ОКРУГЛЕНИЕ: -0.37 [11:58:05]line ИТОГО: 220.00 [11:58:05]line Внесено: 220.00 [11:58:05]line СДАЧА: 0.00 [11:58:05]line НСП 1% : 1.95 [11:58:05]line НДС 12% : 23.40 [11:58:05]line Наличными: 220.00 [11:58:05]line Безнал.: 0.00 [11:58:05]line Место: АЗС № 136 "Партнер Нефть" [11:58:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:58:05]line СНО: Общий режим [11:58:05]line Чек 147 20.08.2024 11:58 [11:58:05]line Смена: 453 ФФД: 1.0 [11:58:05]line ЗНМ: 0300000067 [11:58:05]line РНМ: 0000000000092569 [11:58:05]line Версия ККМ: 001 [11:58:05]line ФМ: 0000000000871776 [11:58:05]line ФД: 139675 [11:58:05]line ФПД: 6013829246329 [11:58:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T115804&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139675&fm=6013829246329&tin=02508201610067®Number=0000000000092569&sum=22000 [11:58:06]OFD Sender: Processing packet 139675 [packets to send 137, broken 136] [11:58:06]ProducePacketName [11:58:06]name=ofd_packets/00139675 [11:58:06]OFD Sender: To server: pG, [11:58:06]CommunicateWithHost lk.salyk.kg:30040 [11:58:06]ConnectInit lk.salyk.kg [11:58:06]written 0, free lines is 4095 [11:58:06]Connected sock=10 [11:58:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3C BC 07 01 78 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CC 84 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 21 02 00 35 04 06 00 05 78 34 27 ED 79 49 E4 D6 F7 09 C6 7A 7A [11:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 CA 8A 47 00 F6 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 21 02 00 F4 03 04 00 5F 2B C4 66 B6 04 01 00 00 50 68 03 AD 7B 92 53 AE [11:58:06]CommunicateWithHost err = 0 [11:58:06]CheckOFDResponse [11:58:06]1017 (14) - 77093643461234 [11:58:06]1041 (16) - 0000000000871776 [11:58:06]1040 (4) - 139675 [11:58:06]1012 (4) - 20.08.2024 05:36 [11:58:06]1206 (1) - 0 [11:58:06]OFD Sender: Remove packet 139675 [11:58:06]ProducePacketName [11:58:06]name=ofd_packets/00139675 [11:58:06]NVStorageDeleteData [11:58:06]Write to MH i2c: 01 00 00 F2 00 F2 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: 01 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: 01 07 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 D0 0C D5 [11:58:06]RasterBufferAndPrint [11:58:06]line [11:58:06]line [11:58:06]line [11:58:06]line [11:58:06]line [11:58:06]written 0, free lines is 3285 [11:58:06]MH_Cut [11:58:06]Write to MH i2c: D1 01 00 F9 00 01 CB [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: D1 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: D1 01 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: D1 01 00 F9 00 00 CA [11:58:06]Write to MH i2c: 01 00 00 FA 00 FA [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:07]OFD Sender: No OFD packet to send [11:58:07]*** Cut start [11:58:07]*** Partial cut [11:58:07]*** CUTSNS_PIN = 1 [11:58:07]*** CUTSNS_PIN = 0 [11:58:07]*** Brake cut motor [11:58:08]Read from MH i2c: 01 [11:58:08]MH_I2C_Read... [11:58:08]*** Stop cut motor [11:58:08]*** Cut end [11:58:08]Read from MH i2c: 01 07 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [11:58:08]process_action close_receipt done [11:58:08]requested_data is exist [11:58:08]produce_requested_data [11:58:08]requested_item fm.sn is exist - process it [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 11 00 00 [11:58:08]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 17 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [11:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:58:08]wFMCommunicate OK [11:58:08]requested_item fd.num is exist - process it [11:58:08]SAM_PROTO_GetFieldsCounters [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 13 00 00 [11:58:08]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 62 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:58:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9B 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:08]wFMCommunicate OK [11:58:08]SAM_PROTO_GetFieldsCounters done [11:58:08]requested_item shift.num is exist - process it [11:58:08]requested_item shift.opened is exist - process it [11:58:08]req_shift_opened [11:58:08]FM_GetShiftState [11:58:08]SAM_PROTO_GetShiftState [11:58:08]wFMCommunicate request_size=4 [11:58:08]MH_SAM_APDU [11:58:08]CAPDU: 80 13 01 00 [11:58:08]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [11:58:08]Write i2c OK [11:58:08]MH_I2C_Read... [11:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:08]Read from MH i2c: E2 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 0E 00 [11:58:08]MH_I2C_Read... [11:58:08]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0B [11:58:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [11:58:08]wFMCommunicate OK [11:58:08]SAM_PROTO_GetShiftState done [11:58:08]FM_GetShiftState done [11:58:08]req_shift_opened done [11:58:08]requested_item shift.open_date is exist - process it [11:58:08]req_shift_open_date [11:58:08]req_shift_open_date done [11:58:08]produce_requested_data done [11:58:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139675,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [11:58:08]process_action_free close_receipt [11:58:08]json_value_free [11:58:08]json_value_free done [11:58:08]process_json_proto returns [11:58:08]Send response to host [11:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139675,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [11:58:08]free response buf [11:58:08]execute_script done [11:58:08]execute_script returns [11:58:08]free content buf [11:58:08]Sock 8.Close socket [11:58:08]Sock 8.Thread stoped [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]accept exits with 9 [12:06:52]New connection [12:06:52]New thread 3067145572 created [12:06:52]Thread 3067288932 joined [12:06:52]Waiting for new connection... [12:06:52] Sock 9.Parse request [12:06:52]Sock 9.Check first char [12:06:52]Sock 9.First char is OK [12:06:52]request: POST /json_proto HTTP/1.0 [12:06:52]Method: POST [12:06:52]URL: /json_proto [12:06:52]Method is POST - this is cgi request [12:06:52]url: /json_proto [12:06:52]query_string will be loaded in cgi processing [12:06:52]execute_cgi json_proto POST (null) [12:06:52]execute_cgi path=json_proto method=POST [12:06:52]POST find Content-Length [12:06:52]Host: 172.17.45.67:8080 [12:06:52]Content-Length: 682 [12:06:52]Content-Type: application/json [12:06:52] [12:06:52]POST finish read [12:06:52]Found Content-Length = 682 [12:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [12:06:52]execute_script... [12:06: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)593522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [12:06:52]POST & json_proto [12:06:52]process_json_proto [12:06:52]json parsed OK: [12:06:52]protocol is kg_v1.0 [12:06:52]action value=close_receipt [12:06:52]process_action close_receipt [12:06:52]cmd_close_receipt [12:06:52]MH_GetDate [12:06:52]Write to MH i2c: F0 00 00 FE 00 ED [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: F0 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: F0 09 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: F0 09 00 FE 00 00 DC 86 C4 66 5F 7F 2B 66 F1 [12:06:52]GetLastDocTimeStamp 1724155084 [12:06:52]current date 1724155612 [12:06:52]FM_GetShiftState [12:06:52]SAM_PROTO_GetShiftState [12:06:52]wFMCommunicate request_size=4 [12:06:52]MH_SAM_APDU [12:06:52]CAPDU: 80 13 01 00 [12:06:52]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [12:06:52]Write i2c OK [12:06:52]MH_I2C_Read... [12:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:52]Read from MH i2c: E2 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 0E 00 [12:06:52]MH_I2C_Read... [12:06:52]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0D [12:06:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:06:52]wFMCommunicate OK [12:06:52]SAM_PROTO_GetShiftState done [12:06:52]FM_GetShiftState done [12:06:52]opened in 1724113785 [12:06:52]opened+sec_in_day 1724200185 [12:06:52]quantity*price = 120055 [12:06:52]sum+1 = 120057 [12:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 148 20.08.2024 12:06 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139676 ФПД: 136866739198219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T120652&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139676&fm=136866739198219&tin=02508201610067®Number=0000000000092569&sum=120000 [12:06:53]StoreToDocumentArchive [12:06:53]shift 453 fd 139676 [12:06:53]save to /storage/0453/doc_00139676 [12:06:53]save last doc name /storage/0453/doc_00139676 to /storage/kkm_last_doc_name [12:06:53]save OK [12:06:53]Clear old archive folders... [12:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:53]tlvbuf is 01FF6960 [12:06:53]SAM_PROTO_ClearQueue [12:06:53]wFMCommunicate request_size=4 [12:06:53]MH_SAM_APDU [12:06:53]CAPDU: 80 09 00 00 [12:06:53]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [12:06:53]Write i2c OK [12:06:53]MH_I2C_Read... [12:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:53]Read from MH i2c: E2 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 03 00 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [12:06:53]RAPDU: 90 00 [12:06:53]wFMCommunicate OK [12:06:53]SAM_PROTO_ClearQueue done [12:06:53]KKMCreateOFDPacket [12:06:53]OFDProtocolAddRootSTLVToBuf [12:06:53]FM_MakeSignedData [12:06:53]FM_MakeSignedData [12:06:53]SAM_PROTO_SignData [12:06:53]wFMCommunicate request_size=4 [12:06:53]MH_SAM_APDU [12:06:53]CAPDU: 80 0D 01 02 [12:06:53]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [12:06:53]Write i2c OK [12:06:53]MH_I2C_Read... [12:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:53]Read from MH i2c: E2 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 03 00 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [12:06:53]RAPDU: 90 00 [12:06:53]wFMCommunicate OK [12:06:53]wFMCommunicate request_size=255 [12:06:53]MH_SAM_APDU [12:06:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 94 00 00 00 F4 03 04 00 DC 86 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 21 02 00 35 04 06 00 7C [12:06:53]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 94 00 00 00 F4 03 04 00 DC 86 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 21 02 00 35 04 06 00 7C 00 00 6A [12:06:53]Write i2c OK [12:06:53]MH_I2C_Read... [12:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:53]Read from MH i2c: E2 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 03 00 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [12:06:53]RAPDU: 90 00 [12:06:53]wFMCommunicate OK [12:06:53]wFMCommunicate request_size=10 [12:06:53]MH_SAM_APDU [12:06:53]CAPDU: 80 0D 02 02 05 7A C5 5F 19 0B [12:06:53]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 7A C5 5F 19 0B 00 00 56 [12:06:53]Write i2c OK [12:06:53]MH_I2C_Read... [12:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:53]Read from MH i2c: E2 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 03 00 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [12:06:53]RAPDU: 90 00 [12:06:53]wFMCommunicate OK [12:06:53]wFMCommunicate request_size=4 [12:06:53]MH_SAM_APDU [12:06:53]CAPDU: 80 0D 03 02 [12:06:53]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [12:06:53]Write i2c OK [12:06:53]MH_I2C_Read... [12:06:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:53]Read from MH i2c: E2 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 0B 00 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 0B 00 10 01 00 8D DD 08 1D F5 5A A4 2D 90 00 3C [12:06:53]RAPDU: 8D DD 08 1D F5 5A A4 2D 90 00 [12:06:53]wFMCommunicate OK [12:06:53]SAM_PROTO_SignData done [12:06:53]FM_MakeSignedData done [12:06:53]CreateOFDProtocolMessage [12:06:53]wFMCommunicate request_size=4 [12:06:53]MH_SAM_APDU [12:06:53]CAPDU: 80 11 00 00 [12:06:53]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [12:06:53]Write i2c OK [12:06:53]MH_I2C_Read... [12:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:53]Read from MH i2c: E2 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 17 00 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [12:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:06:53]wFMCommunicate OK [12:06:53]CreateOFDProtocolMessage done [12:06:53]OFDSenderStorePacket 139676 [12:06:53]StoreOFDPacket docnum=139676 [12:06:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2B 2A 07 01 3C 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 94 00 00 00 F4 03 04 00 DC 86 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 21 02 00 35 04 06 00 7C 7A C5 5F 19 0B 8D DD 08 1D F5 5A A4 2D [12:06:53]CheckFolder [12:06:53]dirname=/storage/ofd_packets [12:06:53]CheckFolder done [12:06:53]ProducePacketName [12:06:53]name=ofd_packets/00139676 [12:06:53]NVStorageSaveData ofd_packets/00139676 [12:06:53]File name is /storage/ofd_packets/00139676 [12:06:53]Write 301 bytes [12:06:53]NVStorageSaveData done [12:06:53]OFDSenderStorePacket done [12:06:53]KKMCreateOFDPacket done [12:06:53]NVStorageSaveData kkm_last_timestamp [12:06:53]File name is /storage/kkm_last_timestamp [12:06:53]Write 4 bytes [12:06:53]NVStorageSaveData done [12:06:53]ExternCall_PrintAddStr [12:06:53]wPrintStart [12:06:53]Write to MH i2c: 01 00 00 12 01 13 [12:06:53]Write i2c OK [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: 01 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: 01 07 00 [12:06:53]MH_I2C_Read... [12:06:53]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [12:06:53]RasterBufferAndPrint [12:06:53]line Счет N : (1)593522 [12:06:53]line ИНН: 02508201610067 [12:06:53]line Контрольно-Кассовый Чек [12:06:53]line ПРОДАЖА [12:06:53]line ТРК (МРК, ГНК) : 61 [12:06:53]line Товар: 2710124500 [12:06:53]line Аи-95-К-5 [12:06:53]line 16.180 * 74.20 [12:06:53]line = 1200.56 [12:06:53]line НДС 12% НСП 1% [12:06:53]line > о реализуемом товаре [12:06:53]line ОКРУГЛЕНИЕ: -0.56 [12:06:53]line ИТОГО: 1200.00 [12:06:53]line Внесено: 1200.00 [12:06:53]line СДАЧА: 0.00 [12:06:53]line НСП 1% : 10.62 [12:06:53]line НДС 12% : 127.49 [12:06:53]line Наличными: 1200.00 [12:06:53]line Безнал.: 0.00 [12:06:53]line Место: АЗС № 136 "Партнер Нефть" [12:06:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:06:53]line СНО: Общий режим [12:06:53]line Чек 148 20.08.2024 12:06 [12:06:53]line Смена: 453 ФФД: 1.0 [12:06:53]line ЗНМ: 0300000067 [12:06:53]line РНМ: 0000000000092569 [12:06:53]line Версия ККМ: 001 [12:06:53]line ФМ: 0000000000871776 [12:06:53]line ФД: 139676 [12:06:53]line ФПД: 136866739198219 [12:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T120652&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139676&fm=136866739198219&tin=02508201610067®Number=0000000000092569&sum=120000 [12:06:54]OFD Sender: Processing packet 139676 [packets to send 137, broken 136] [12:06:54]ProducePacketName [12:06:54]name=ofd_packets/00139676 [12:06:54]OFD Sender: To server: pG, [12:06:54]CommunicateWithHost lk.salyk.kg:30040 [12:06:54]ConnectInit lk.salyk.kg [12:06:54]written 0, free lines is 4095 [12:06:54]Connected sock=8 [12:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2B 2A 07 01 3C 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 94 00 00 00 F4 03 04 00 DC 86 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 21 02 00 35 04 06 00 7C 7A C5 5F 19 0B 8D DD 08 1D F5 5A A4 2D [12:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4D 6D 47 00 D2 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 21 02 00 F4 03 04 00 6F 2D C4 66 B6 04 01 00 00 22 F3 F8 31 A5 EF A6 3A [12:06:54]CommunicateWithHost err = 0 [12:06:54]CheckOFDResponse [12:06:54]1017 (14) - 77093643461234 [12:06:54]1041 (16) - 0000000000871776 [12:06:54]1040 (4) - 139676 [12:06:54]1012 (4) - 20.08.2024 05:45 [12:06:54]1206 (1) - 0 [12:06:54]OFD Sender: Remove packet 139676 [12:06:54]ProducePacketName [12:06:54]name=ofd_packets/00139676 [12:06:54]NVStorageDeleteData [12:06:54]Write to MH i2c: 01 00 00 3D 01 3E [12:06:54]Write i2c OK [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: 01 [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: 01 07 00 [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 CE 0C 1F [12:06:54]RasterBufferAndPrint [12:06:54]line [12:06:54]line [12:06:54]line [12:06:54]line [12:06:54]line [12:06:54]written 0, free lines is 3283 [12:06:54]MH_Cut [12:06:54]Write to MH i2c: D1 01 00 44 01 01 17 [12:06:54]Write i2c OK [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: D1 [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: D1 01 00 [12:06:54]MH_I2C_Read... [12:06:54]Read from MH i2c: D1 01 00 44 01 00 16 [12:06:54]Write to MH i2c: 01 00 00 45 01 46 [12:06:54]Write i2c OK [12:06:54]MH_I2C_Read... [12:06:55]OFD Sender: No OFD packet to send [12:06:55]*** Cut start [12:06:55]*** Partial cut [12:06:55]*** CUTSNS_PIN = 1 [12:06:55]*** CUTSNS_PIN = 0 [12:06:55]*** Brake cut motor [12:06:55]Read from MH i2c: 01 [12:06:55]MH_I2C_Read... [12:06:55]*** Stop cut motor [12:06:55]*** Cut end [12:06:55]Read from MH i2c: 01 07 00 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [12:06:55]process_action close_receipt done [12:06:55]requested_data is exist [12:06:55]produce_requested_data [12:06:55]requested_item fm.sn is exist - process it [12:06:55]wFMCommunicate request_size=4 [12:06:55]MH_SAM_APDU [12:06:55]CAPDU: 80 11 00 00 [12:06:55]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [12:06:55]Write i2c OK [12:06:55]MH_I2C_Read... [12:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:55]Read from MH i2c: E2 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 17 00 [12:06:55]MH_I2C_Read... [12:06:55]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [12:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:06:55]wFMCommunicate OK [12:06:55]requested_item fd.num is exist - process it [12:06:55]SAM_PROTO_GetFieldsCounters [12:06:55]wFMCommunicate request_size=4 [12:06:55]MH_SAM_APDU [12:06:55]CAPDU: 80 13 00 00 [12:06:55]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [12:06:55]Write i2c OK [12:06:55]MH_I2C_Read... [12:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:56]Read from MH i2c: E2 [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: E2 62 00 [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [12:06:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9C 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:56]wFMCommunicate OK [12:06:56]SAM_PROTO_GetFieldsCounters done [12:06:56]requested_item shift.num is exist - process it [12:06:56]requested_item shift.opened is exist - process it [12:06:56]req_shift_opened [12:06:56]FM_GetShiftState [12:06:56]SAM_PROTO_GetShiftState [12:06:56]wFMCommunicate request_size=4 [12:06:56]MH_SAM_APDU [12:06:56]CAPDU: 80 13 01 00 [12:06:56]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [12:06:56]Write i2c OK [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: E2 [12:06:56]MH_I2C_Read... [12:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:56]Read from MH i2c: E2 0E 00 [12:06:56]MH_I2C_Read... [12:06:56]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 57 [12:06:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:06:56]wFMCommunicate OK [12:06:56]SAM_PROTO_GetShiftState done [12:06:56]FM_GetShiftState done [12:06:56]req_shift_opened done [12:06:56]requested_item shift.open_date is exist - process it [12:06:56]req_shift_open_date [12:06:56]req_shift_open_date done [12:06:56]produce_requested_data done [12:06:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139676,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:06:56]process_action_free close_receipt [12:06:56]json_value_free [12:06:56]json_value_free done [12:06:56]process_json_proto returns [12:06:56]Send response to host [12:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139676,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:06:56]free response buf [12:06:56]execute_script done [12:06:56]execute_script returns [12:06:56]free content buf [12:06:56]Sock 9.Close socket [12:06:56]Sock 9.Thread stoped [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:06]accept exits with 10 [12:08:06]New connection [12:08:06]New thread 3067288932 created [12:08:06]Thread 3067145572 joined [12:08:06]Waiting for new connection... [12:08:06] Sock 10.Parse request [12:08:06]Sock 10.Check first char [12:08:06]Sock 10.First char is OK [12:08:06]request: POST /json_proto HTTP/1.0 [12:08:06]Method: POST [12:08:06]URL: /json_proto [12:08:06]Method is POST - this is cgi request [12:08:06]url: /json_proto [12:08:06]query_string will be loaded in cgi processing [12:08:06]execute_cgi json_proto POST (null) [12:08:06]execute_cgi path=json_proto method=POST [12:08:06]POST find Content-Length [12:08:06]Host: 172.17.45.67:8080 [12:08:06]Content-Length: 677 [12:08:06]Content-Type: application/json [12:08:06] [12:08:06]POST finish read [12:08:06]Found Content-Length = 677 [12:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:06]execute_script... [12:08:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:06]POST & json_proto [12:08:06]process_json_proto [12:08:06]json parsed OK: [12:08:06]protocol is kg_v1.0 [12:08:06]action value=close_receipt [12:08:06]process_action close_receipt [12:08:06]cmd_close_receipt [12:08:06]MH_GetDate [12:08:06]Write to MH i2c: F0 00 00 49 01 39 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: F0 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: F0 09 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: F0 09 00 49 01 00 26 87 C4 66 5F 7F 2B 66 88 [12:08:06]GetLastDocTimeStamp 1724155612 [12:08:06]current date 1724155686 [12:08:06]FM_GetShiftState [12:08:06]SAM_PROTO_GetShiftState [12:08:06]wFMCommunicate request_size=4 [12:08:06]MH_SAM_APDU [12:08:06]CAPDU: 80 13 01 00 [12:08:06]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:06]Read from MH i2c: E2 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 0E 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 59 [12:08:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:08:06]wFMCommunicate OK [12:08:06]SAM_PROTO_GetShiftState done [12:08:06]FM_GetShiftState done [12:08:06]opened in 1724113785 [12:08:06]opened+sec_in_day 1724200185 [12:08:06]quantity*price = 50036 [12:08:06]sum+1 = 50037 [12:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 149 20.08.2024 12:08 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139677 ФПД: 226462272189816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T120806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139677&fm=226462272189816&tin=02508201610067®Number=0000000000092569&sum=50000 [12:08:07]StoreToDocumentArchive [12:08:07]shift 453 fd 139677 [12:08:07]save to /storage/0453/doc_00139677 [12:08:07]save last doc name /storage/0453/doc_00139677 to /storage/kkm_last_doc_name [12:08:07]save OK [12:08:07]Clear old archive folders... [12:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:07]tlvbuf is 01FE6480 [12:08:07]SAM_PROTO_ClearQueue [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 09 00 00 [12:08:07]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:07]Read from MH i2c: E2 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 03 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [12:08:07]RAPDU: 90 00 [12:08:07]wFMCommunicate OK [12:08:07]SAM_PROTO_ClearQueue done [12:08:07]KKMCreateOFDPacket [12:08:07]OFDProtocolAddRootSTLVToBuf [12:08:07]FM_MakeSignedData [12:08:07]FM_MakeSignedData [12:08:07]SAM_PROTO_SignData [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 0D 01 02 [12:08:07]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:07]Read from MH i2c: E2 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 03 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [12:08:07]RAPDU: 90 00 [12:08:07]wFMCommunicate OK [12:08:07]wFMCommunicate request_size=255 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 26 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 21 02 00 35 04 06 00 CD [12:08:07]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 26 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 21 02 00 35 04 06 00 CD 00 00 1A [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [12:08:08]RAPDU: 90 00 [12:08:08]wFMCommunicate OK [12:08:08]wFMCommunicate request_size=10 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 0D 02 02 05 F7 5B 49 F5 78 [12:08:08]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 F7 5B 49 F5 78 00 00 E7 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [12:08:08]RAPDU: 90 00 [12:08:08]wFMCommunicate OK [12:08:08]wFMCommunicate request_size=4 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 0D 03 02 [12:08:08]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 0B 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 0B 00 5B 01 00 13 BE F4 3F 2F 9E 16 FE 90 00 BD [12:08:08]RAPDU: 13 BE F4 3F 2F 9E 16 FE 90 00 [12:08:08]wFMCommunicate OK [12:08:08]SAM_PROTO_SignData done [12:08:08]FM_MakeSignedData done [12:08:08]CreateOFDProtocolMessage [12:08:08]wFMCommunicate request_size=4 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 11 00 00 [12:08:08]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 17 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [12:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:08:08]wFMCommunicate OK [12:08:08]CreateOFDProtocolMessage done [12:08:08]OFDSenderStorePacket 139677 [12:08:08]StoreOFDPacket docnum=139677 [12:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 54 66 07 01 92 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 26 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 21 02 00 35 04 06 00 CD F7 5B 49 F5 78 13 BE F4 3F 2F 9E 16 FE [12:08:08]CheckFolder [12:08:08]dirname=/storage/ofd_packets [12:08:08]CheckFolder done [12:08:08]ProducePacketName [12:08:08]name=ofd_packets/00139677 [12:08:08]NVStorageSaveData ofd_packets/00139677 [12:08:08]File name is /storage/ofd_packets/00139677 [12:08:08]Write 301 bytes [12:08:08]NVStorageSaveData done [12:08:08]OFDSenderStorePacket done [12:08:08]KKMCreateOFDPacket done [12:08:08]NVStorageSaveData kkm_last_timestamp [12:08:08]File name is /storage/kkm_last_timestamp [12:08:08]Write 4 bytes [12:08:08]NVStorageSaveData done [12:08:08]ExternCall_PrintAddStr [12:08:08]wPrintStart [12:08:08]Write to MH i2c: 01 00 00 5D 01 5E [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: 01 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: 01 07 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [12:08:08]RasterBufferAndPrint [12:08:08]line Счет N : (1)593523 [12:08:08]line ИНН: 02508201610067 [12:08:08]line Контрольно-Кассовый Чек [12:08:08]line ПРОДАЖА [12:08:08]line ТРК (МРК, ГНК) : 52 [12:08:08]line Товар: 2710124130 [12:08:08]line Аи-92-К-5 [12:08:08]line 7.380 * 67.80 [12:08:08]line = 500.36 [12:08:08]line НДС 12% НСП 1% [12:08:08]line > о реализуемом товаре [12:08:08]line ОКРУГЛЕНИЕ: -0.36 [12:08:08]line ИТОГО: 500.00 [12:08:08]line Внесено: 500.00 [12:08:08]line СДАЧА: 0.00 [12:08:08]line НСП 1% : 4.43 [12:08:08]line НДС 12% : 53.14 [12:08:08]line Наличными: 500.00 [12:08:08]line Безнал.: 0.00 [12:08:08]line Место: АЗС № 136 "Партнер Нефть" [12:08:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:08:08]line СНО: Общий режим [12:08:08]line Чек 149 20.08.2024 12:08 [12:08:08]line Смена: 453 ФФД: 1.0 [12:08:08]line ЗНМ: 0300000067 [12:08:08]line РНМ: 0000000000092569 [12:08:08]line Версия ККМ: 001 [12:08:08]line ФМ: 0000000000871776 [12:08:08]line ФД: 139677 [12:08:08]line ФПД: 226462272189816 [12:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T120806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139677&fm=226462272189816&tin=02508201610067®Number=0000000000092569&sum=50000 [12:08:08]OFD Sender: Processing packet 139677 [packets to send 137, broken 136] [12:08:08]ProducePacketName [12:08:08]name=ofd_packets/00139677 [12:08:08]OFD Sender: To server: pG, [12:08:08]CommunicateWithHost lk.salyk.kg:30040 [12:08:08]ConnectInit lk.salyk.kg [12:08:08]written 0, free lines is 4095 [12:08:08]Connected sock=9 [12:08:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 54 66 07 01 92 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 26 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 21 02 00 35 04 06 00 CD F7 5B 49 F5 78 13 BE F4 3F 2F 9E 16 FE [12:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AB EE 47 00 BF 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 21 02 00 F4 03 04 00 BA 2D C4 66 B6 04 01 00 00 3A 72 A7 A2 09 9B BB 94 [12:08:09]CommunicateWithHost err = 0 [12:08:09]CheckOFDResponse [12:08:09]1017 (14) - 77093643461234 [12:08:09]1041 (16) - 0000000000871776 [12:08:09]1040 (4) - 139677 [12:08:09]1012 (4) - 20.08.2024 05:46 [12:08:09]1206 (1) - 0 [12:08:09]OFD Sender: Remove packet 139677 [12:08:09]ProducePacketName [12:08:09]name=ofd_packets/00139677 [12:08:09]NVStorageDeleteData [12:08:09]Write to MH i2c: 01 00 00 88 01 89 [12:08:09]Write i2c OK [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: 01 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: 01 07 00 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 CF 0C 6B [12:08:09]RasterBufferAndPrint [12:08:09]line [12:08:09]line [12:08:09]line [12:08:09]line [12:08:09]line [12:08:09]written 0, free lines is 3286 [12:08:09]MH_Cut [12:08:09]Write to MH i2c: D1 01 00 8F 01 01 62 [12:08:09]Write i2c OK [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: D1 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: D1 01 00 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: D1 01 00 8F 01 00 61 [12:08:09]Write to MH i2c: 01 00 00 90 01 91 [12:08:09]Write i2c OK [12:08:09]MH_I2C_Read... [12:08:09]OFD Sender: No OFD packet to send [12:08:09]*** Cut start [12:08:09]*** Partial cut [12:08:09]*** CUTSNS_PIN = 1 [12:08:09]*** CUTSNS_PIN = 0 [12:08:10]*** Brake cut motor [12:08:10]Read from MH i2c: 01 [12:08:10]MH_I2C_Read... [12:08:10]*** Stop cut motor [12:08:10]*** Cut end [12:08:10]Read from MH i2c: 01 07 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [12:08:10]process_action close_receipt done [12:08:10]requested_data is exist [12:08:10]produce_requested_data [12:08:10]requested_item fm.sn is exist - process it [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 11 00 00 [12:08:10]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 17 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [12:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:08:10]wFMCommunicate OK [12:08:10]requested_item fd.num is exist - process it [12:08:10]SAM_PROTO_GetFieldsCounters [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 13 00 00 [12:08:10]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 62 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [12:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9D 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:10]wFMCommunicate OK [12:08:10]SAM_PROTO_GetFieldsCounters done [12:08:10]requested_item shift.num is exist - process it [12:08:10]requested_item shift.opened is exist - process it [12:08:10]req_shift_opened [12:08:10]FM_GetShiftState [12:08:10]SAM_PROTO_GetShiftState [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 13 01 00 [12:08:10]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 0E 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A2 [12:08:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:08:10]wFMCommunicate OK [12:08:10]SAM_PROTO_GetShiftState done [12:08:10]FM_GetShiftState done [12:08:10]req_shift_opened done [12:08:10]requested_item shift.open_date is exist - process it [12:08:10]req_shift_open_date [12:08:10]req_shift_open_date done [12:08:10]produce_requested_data done [12:08:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139677,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:08:10]process_action_free close_receipt [12:08:10]json_value_free [12:08:10]json_value_free done [12:08:10]process_json_proto returns [12:08:10]Send response to host [12:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139677,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:08:10]free response buf [12:08:10]execute_script done [12:08:10]execute_script returns [12:08:10]free content buf [12:08:10]Sock 10.Close socket [12:08:10]Sock 10.Thread stoped [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:23]accept exits with 8 [12:10:23]New connection [12:10:23]New thread 3067145572 created [12:10:23]Thread 3067288932 joined [12:10:23]Waiting for new connection... [12:10:23] Sock 8.Parse request [12:10:23]Sock 8.Check first char [12:10:23]Sock 8.First char is OK [12:10:23]request: POST /json_proto HTTP/1.0 [12:10:23]Method: POST [12:10:23]URL: /json_proto [12:10:23]Method is POST - this is cgi request [12:10:23]url: /json_proto [12:10:23]query_string will be loaded in cgi processing [12:10:23]execute_cgi json_proto POST (null) [12:10:23]execute_cgi path=json_proto method=POST [12:10:23]POST find Content-Length [12:10:23]Host: 172.17.45.67:8080 [12:10:23]Content-Length: 677 [12:10:23]Content-Type: application/json [12:10:23] [12:10:23]POST finish read [12:10:23]Found Content-Length = 677 [12:10:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:23]execute_script... [12: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)593524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:23]POST & json_proto [12:10:23]process_json_proto [12:10:23]json parsed OK: [12:10:23]protocol is kg_v1.0 [12:10:23]action value=close_receipt [12:10:23]process_action close_receipt [12:10:23]cmd_close_receipt [12:10:23]MH_GetDate [12:10:23]Write to MH i2c: F0 00 00 94 01 84 [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: F0 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: F0 09 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: F0 09 00 94 01 00 AF 87 C4 66 5F 7F 2B 66 5C [12:10:23]GetLastDocTimeStamp 1724155686 [12:10:23]current date 1724155823 [12:10:23]FM_GetShiftState [12:10:23]SAM_PROTO_GetShiftState [12:10:23]wFMCommunicate request_size=4 [12:10:23]MH_SAM_APDU [12:10:23]CAPDU: 80 13 01 00 [12:10:23]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [12:10:23]Write i2c OK [12:10:23]MH_I2C_Read... [12:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:23]Read from MH i2c: E2 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 0E 00 [12:10:23]MH_I2C_Read... [12:10:23]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A4 [12:10:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:10:23]wFMCommunicate OK [12:10:23]SAM_PROTO_GetShiftState done [12:10:23]FM_GetShiftState done [12:10:23]opened in 1724113785 [12:10:23]opened+sec_in_day 1724200185 [12:10:23]quantity*price = 60003 [12:10:23]sum+1 = 60004 [12:10:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 150 20.08.2024 12:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139678 ФПД: 74139765252297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139678&fm=74139765252297&tin=02508201610067®Number=0000000000092569&sum=60000 [12:10:24]StoreToDocumentArchive [12:10:24]shift 453 fd 139678 [12:10:24]save to /storage/0453/doc_00139678 [12:10:24]save last doc name /storage/0453/doc_00139678 to /storage/kkm_last_doc_name [12:10:24]save OK [12:10:24]Clear old archive folders... [12:10:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:24]tlvbuf is 01FFFE40 [12:10:24]SAM_PROTO_ClearQueue [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 09 00 00 [12:10:24]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 03 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [12:10:24]RAPDU: 90 00 [12:10:24]wFMCommunicate OK [12:10:24]SAM_PROTO_ClearQueue done [12:10:24]KKMCreateOFDPacket [12:10:24]OFDProtocolAddRootSTLVToBuf [12:10:24]FM_MakeSignedData [12:10:24]FM_MakeSignedData [12:10:24]SAM_PROTO_SignData [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 0D 01 02 [12:10:24]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 03 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [12:10:24]RAPDU: 90 00 [12:10:24]wFMCommunicate OK [12:10:24]wFMCommunicate request_size=255 [12:10:24]MH_SAM_APDU [12: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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AF 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 21 02 00 35 04 06 00 43 [12:10:24]Write to MH i2c: E2 02 01 A4 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AF 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 21 02 00 35 04 06 00 43 00 00 2D [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 03 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [12:10:24]RAPDU: 90 00 [12:10:24]wFMCommunicate OK [12:10:24]wFMCommunicate request_size=10 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 0D 02 02 05 6E 02 5F 20 C9 [12:10:24]Write to MH i2c: E2 0D 00 A5 01 80 0D 02 02 05 00 6E 02 5F 20 C9 00 00 E2 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 03 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [12:10:24]RAPDU: 90 00 [12:10:24]wFMCommunicate OK [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 0D 03 02 [12:10:24]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0B 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 0B 00 A6 01 00 FB 1B 9A A1 16 00 47 6D 90 00 3E [12:10:24]RAPDU: FB 1B 9A A1 16 00 47 6D 90 00 [12:10:24]wFMCommunicate OK [12:10:24]SAM_PROTO_SignData done [12:10:24]FM_MakeSignedData done [12:10:24]CreateOFDProtocolMessage [12:10:24]wFMCommunicate request_size=4 [12:10:24]MH_SAM_APDU [12:10:24]CAPDU: 80 11 00 00 [12:10:24]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]OFD Sender: No OFD packet to send [12:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:24]Read from MH i2c: E2 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 17 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [12:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:10:24]wFMCommunicate OK [12:10:24]CreateOFDProtocolMessage done [12:10:24]OFDSenderStorePacket 139678 [12:10:24]StoreOFDPacket docnum=139678 [12:10:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 28 6E 07 01 81 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AF 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 21 02 00 35 04 06 00 43 6E 02 5F 20 C9 FB 1B 9A A1 16 00 47 6D [12:10:24]CheckFolder [12:10:24]dirname=/storage/ofd_packets [12:10:24]CheckFolder done [12:10:24]ProducePacketName [12:10:24]name=ofd_packets/00139678 [12:10:24]NVStorageSaveData ofd_packets/00139678 [12:10:24]File name is /storage/ofd_packets/00139678 [12:10:24]Write 301 bytes [12:10:24]NVStorageSaveData done [12:10:24]OFDSenderStorePacket done [12:10:24]KKMCreateOFDPacket done [12:10:24]NVStorageSaveData kkm_last_timestamp [12:10:24]File name is /storage/kkm_last_timestamp [12:10:24]Write 4 bytes [12:10:24]NVStorageSaveData done [12:10:24]ExternCall_PrintAddStr [12:10:24]wPrintStart [12:10:24]Write to MH i2c: 01 00 00 A8 01 A9 [12:10:24]Write i2c OK [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: 01 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: 01 07 00 [12:10:24]MH_I2C_Read... [12:10:24]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [12:10:24]RasterBufferAndPrint [12:10:24]line Счет N : (1)593524 [12:10:24]line ИНН: 02508201610067 [12:10:24]line Контрольно-Кассовый Чек [12:10:24]line ПРОДАЖА [12:10:24]line ТРК (МРК, ГНК) : 42 [12:10:24]line Товар: 2710124130 [12:10:24]line Аи-92-К-5 [12:10:24]line 8.850 * 67.80 [12:10:24]line = 600.03 [12:10:24]line НДС 12% НСП 1% [12:10:24]line > о реализуемом товаре [12:10:24]line ОКРУГЛЕНИЕ: -0.03 [12:10:24]line ИТОГО: 600.00 [12:10:24]line Внесено: 600.00 [12:10:24]line СДАЧА: 0.00 [12:10:24]line НСП 1% : 5.31 [12:10:24]line НДС 12% : 63.72 [12:10:24]line Наличными: 600.00 [12:10:24]line Безнал.: 0.00 [12:10:24]line Место: АЗС № 136 "Партнер Нефть" [12:10:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:10:24]line СНО: Общий режим [12:10:24]line Чек 150 20.08.2024 12:10 [12:10:24]line Смена: 453 ФФД: 1.0 [12:10:24]line ЗНМ: 0300000067 [12:10:24]line РНМ: 0000000000092569 [12:10:24]line Версия ККМ: 001 [12:10:24]line ФМ: 0000000000871776 [12:10:24]line ФД: 139678 [12:10:24]line ФПД: 74139765252297 [12:10:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139678&fm=74139765252297&tin=02508201610067®Number=0000000000092569&sum=60000 [12:10:25]OFD Sender: Processing packet 139678 [packets to send 137, broken 136] [12:10:25]ProducePacketName [12:10:25]name=ofd_packets/00139678 [12:10:25]OFD Sender: To server: pG, [12:10:25]CommunicateWithHost lk.salyk.kg:30040 [12:10:25]ConnectInit lk.salyk.kg [12:10:25]written 0, free lines is 4095 [12:10:25]Connected sock=9 [12:10:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 28 6E 07 01 81 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 AF 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 21 02 00 35 04 06 00 43 6E 02 5F 20 C9 FB 1B 9A A1 16 00 47 6D [12:10:25]Write to MH i2c: 01 00 00 D3 01 D4 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5F 80 47 00 14 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 21 02 00 F4 03 04 00 42 2E C4 66 B6 04 01 00 00 1D 8E E2 61 02 C6 3D 97 [12:10:25]CommunicateWithHost err = 0 [12:10:25]CheckOFDResponse [12:10:25]1017 (14) - 77093643461234 [12:10:25]1041 (16) - 0000000000871776 [12:10:25]1040 (4) - 139678 [12:10:25]1012 (4) - 20.08.2024 05:48 [12:10:25]1206 (1) - 0 [12:10:25]OFD Sender: Remove packet 139678 [12:10:25]ProducePacketName [12:10:25]name=ofd_packets/00139678 [12:10:25]NVStorageDeleteData [12:10:25]Read from MH i2c: 01 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: 01 07 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 CD 0C B4 [12:10:25]RasterBufferAndPrint [12:10:25]line [12:10:25]line [12:10:25]line [12:10:25]line [12:10:25]line [12:10:25]written 0, free lines is 3293 [12:10:25]MH_Cut [12:10:25]Write to MH i2c: D1 01 00 DA 01 01 AD [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: D1 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: D1 01 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: D1 01 00 DA 01 00 AC [12:10:25]Write to MH i2c: 01 00 00 DB 01 DC [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:26]OFD Sender: No OFD packet to send [12:10:26]*** Cut start [12:10:26]*** Partial cut [12:10:26]*** CUTSNS_PIN = 1 [12:10:26]*** CUTSNS_PIN = 0 [12:10:26]*** Brake cut motor [12:10:26]Read from MH i2c: 01 [12:10:26]MH_I2C_Read... [12:10:26]*** Stop cut motor [12:10:26]*** Cut end [12:10:26]Read from MH i2c: 01 07 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [12:10:26]process_action close_receipt done [12:10:26]requested_data is exist [12:10:26]produce_requested_data [12:10:26]requested_item fm.sn is exist - process it [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 11 00 00 [12:10:26]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 17 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [12:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:10:27]wFMCommunicate OK [12:10:27]requested_item fd.num is exist - process it [12:10:27]SAM_PROTO_GetFieldsCounters [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 13 00 00 [12:10:27]Write to MH i2c: E2 08 00 DD 01 80 13 00 00 00 00 00 00 5A [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 62 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 62 00 DD 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [12:10:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9E 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:27]wFMCommunicate OK [12:10:27]SAM_PROTO_GetFieldsCounters done [12:10:27]requested_item shift.num is exist - process it [12:10:27]requested_item shift.opened is exist - process it [12:10:27]req_shift_opened [12:10:27]FM_GetShiftState [12:10:27]SAM_PROTO_GetShiftState [12:10:27]wFMCommunicate request_size=4 [12:10:27]MH_SAM_APDU [12:10:27]CAPDU: 80 13 01 00 [12:10:27]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 [12:10:27]MH_I2C_Read... [12:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:27]Read from MH i2c: E2 0E 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 ED [12:10:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:10:27]wFMCommunicate OK [12:10:27]SAM_PROTO_GetShiftState done [12:10:27]FM_GetShiftState done [12:10:27]req_shift_opened done [12:10:27]requested_item shift.open_date is exist - process it [12:10:27]req_shift_open_date [12:10:27]req_shift_open_date done [12:10:27]produce_requested_data done [12:10:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139678,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:10:27]process_action_free close_receipt [12:10:27]json_value_free [12:10:27]json_value_free done [12:10:27]process_json_proto returns [12:10:27]Send response to host [12:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139678,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:10:27]free response buf [12:10:27]execute_script done [12:10:27]execute_script returns [12:10:27]free content buf [12:10:27]Sock 8.Close socket [12:10:27]Sock 8.Thread stoped [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:31]accept exits with 10 [12:11:31]New connection [12:11:31]New thread 3067288932 created [12:11:31]Thread 3067145572 joined [12:11:31]Waiting for new connection... [12:11:31] Sock 10.Parse request [12:11:31]Sock 10.Check first char [12:11:31]Sock 10.First char is OK [12:11:31]request: POST /json_proto HTTP/1.0 [12:11:31]Method: POST [12:11:31]URL: /json_proto [12:11:31]Method is POST - this is cgi request [12:11:31]url: /json_proto [12:11:31]query_string will be loaded in cgi processing [12:11:31]execute_cgi json_proto POST (null) [12:11:31]execute_cgi path=json_proto method=POST [12:11:31]POST find Content-Length [12:11:31]Host: 172.17.45.67:8080 [12:11:31]Content-Length: 677 [12:11:31]Content-Type: application/json [12:11:31] [12:11:31]POST finish read [12:11:31]Found Content-Length = 677 [12:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.030, "sum" : 205.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 205.00, "total" : 205.00, "payments": [ { "type": 0, "sum" : 205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:31]execute_script... [12:11:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.030, "sum" : 205.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 205.00, "total" : 205.00, "payments": [ { "type": 0, "sum" : 205.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:31]POST & json_proto [12:11:31]process_json_proto [12:11:31]json parsed OK: [12:11:31]protocol is kg_v1.0 [12:11:31]action value=close_receipt [12:11:31]process_action close_receipt [12:11:31]cmd_close_receipt [12:11:31]MH_GetDate [12:11:31]Write to MH i2c: F0 00 00 DF 01 CF [12:11:31]Write i2c OK [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: F0 [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: F0 09 00 [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: F0 09 00 DF 01 00 F3 87 C4 66 5F 7F 2B 66 EB [12:11:31]GetLastDocTimeStamp 1724155823 [12:11:31]current date 1724155891 [12:11:31]FM_GetShiftState [12:11:31]SAM_PROTO_GetShiftState [12:11:31]wFMCommunicate request_size=4 [12:11:31]MH_SAM_APDU [12:11:31]CAPDU: 80 13 01 00 [12:11:31]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [12:11:31]Write i2c OK [12:11:31]MH_I2C_Read... [12:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:31]Read from MH i2c: E2 [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: E2 0E 00 [12:11:31]MH_I2C_Read... [12:11:31]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EF [12:11:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:11:31]wFMCommunicate OK [12:11:31]SAM_PROTO_GetShiftState done [12:11:31]FM_GetShiftState done [12:11:31]opened in 1724113785 [12:11:31]opened+sec_in_day 1724200185 [12:11:31]quantity*price = 20543 [12:11:31]sum+1 = 20544 [12:11:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 205.00 Внесено: 205.00 СДАЧА: 0.00 НСП 1% : 1.82 НДС 12% : 21.82 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 151 20.08.2024 12:11 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139679 ФПД: 72795746722699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121131&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139679&fm=72795746722699&tin=02508201610067®Number=0000000000092569&sum=20500 [12:11:32]StoreToDocumentArchive [12:11:32]shift 453 fd 139679 [12:11:32]save to /storage/0453/doc_00139679 [12:11:32]save last doc name /storage/0453/doc_00139679 to /storage/kkm_last_doc_name [12:11:32]save OK [12:11:32]Clear old archive folders... [12:11:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:32]tlvbuf is 01FE3820 [12:11:32]SAM_PROTO_ClearQueue [12:11:32]wFMCommunicate request_size=4 [12:11:32]MH_SAM_APDU [12:11:32]CAPDU: 80 09 00 00 [12:11:32]Write to MH i2c: E2 08 00 ED 01 80 09 00 00 00 00 00 00 60 [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:32]Read from MH i2c: E2 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [12:11:32]RAPDU: 90 00 [12:11:32]wFMCommunicate OK [12:11:32]SAM_PROTO_ClearQueue done [12:11:32]KKMCreateOFDPacket [12:11:32]OFDProtocolAddRootSTLVToBuf [12:11:32]FM_MakeSignedData [12:11:32]FM_MakeSignedData [12:11:32]SAM_PROTO_SignData [12:11:32]wFMCommunicate request_size=4 [12:11:32]MH_SAM_APDU [12:11:32]CAPDU: 80 0D 01 02 [12:11:32]Write to MH i2c: E2 08 00 EE 01 80 0D 01 02 00 00 00 00 68 [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:32]Read from MH i2c: E2 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 [12:11:32]MH_I2C_Read... [12:11:32]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [12:11:32]RAPDU: 90 00 [12:11:32]wFMCommunicate OK [12:11:32]wFMCommunicate request_size=255 [12:11:32]MH_SAM_APDU [12:11:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3F 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F3 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 21 02 00 35 04 06 00 42 [12:11:32]Write to MH i2c: E2 02 01 EF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3F 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F3 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 21 02 00 35 04 06 00 42 00 00 93 [12:11:32]Write i2c OK [12:11:32]MH_I2C_Read... [12:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:33]Read from MH i2c: E2 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: E2 03 00 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [12:11:33]RAPDU: 90 00 [12:11:33]wFMCommunicate OK [12:11:33]wFMCommunicate request_size=10 [12:11:33]MH_SAM_APDU [12:11:33]CAPDU: 80 0D 02 02 05 35 14 9F E3 8B [12:11:33]Write to MH i2c: E2 0D 00 F0 01 80 0D 02 02 05 00 35 14 9F E3 8B 00 00 CB [12:11:33]Write i2c OK [12:11:33]MH_I2C_Read... [12:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:33]Read from MH i2c: E2 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: E2 03 00 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [12:11:33]RAPDU: 90 00 [12:11:33]wFMCommunicate OK [12:11:33]wFMCommunicate request_size=4 [12:11:33]MH_SAM_APDU [12:11:33]CAPDU: 80 0D 03 02 [12:11:33]Write to MH i2c: E2 08 00 F1 01 80 0D 03 02 00 00 00 00 6D [12:11:33]Write i2c OK [12:11:33]MH_I2C_Read... [12:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:33]Read from MH i2c: E2 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: E2 0B 00 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: E2 0B 00 F1 01 00 57 AF BF 16 77 69 B7 B9 90 00 99 [12:11:33]RAPDU: 57 AF BF 16 77 69 B7 B9 90 00 [12:11:33]wFMCommunicate OK [12:11:33]SAM_PROTO_SignData done [12:11:33]FM_MakeSignedData done [12:11:33]CreateOFDProtocolMessage [12:11:33]wFMCommunicate request_size=4 [12:11:33]MH_SAM_APDU [12:11:33]CAPDU: 80 11 00 00 [12:11:33]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [12:11:33]Write i2c OK [12:11:33]MH_I2C_Read... [12:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:33]Read from MH i2c: E2 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: E2 17 00 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [12:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:11:33]wFMCommunicate OK [12:11:33]CreateOFDProtocolMessage done [12:11:33]OFDSenderStorePacket 139679 [12:11:33]StoreOFDPacket docnum=139679 [12:11:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3F B3 07 01 C9 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3F 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F3 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 21 02 00 35 04 06 00 42 35 14 9F E3 8B 57 AF BF 16 77 69 B7 B9 [12:11:33]CheckFolder [12:11:33]dirname=/storage/ofd_packets [12:11:33]CheckFolder done [12:11:33]ProducePacketName [12:11:33]name=ofd_packets/00139679 [12:11:33]NVStorageSaveData ofd_packets/00139679 [12:11:33]File name is /storage/ofd_packets/00139679 [12:11:33]Write 301 bytes [12:11:33]NVStorageSaveData done [12:11:33]OFDSenderStorePacket done [12:11:33]KKMCreateOFDPacket done [12:11:33]NVStorageSaveData kkm_last_timestamp [12:11:33]File name is /storage/kkm_last_timestamp [12:11:33]Write 4 bytes [12:11:33]NVStorageSaveData done [12:11:33]ExternCall_PrintAddStr [12:11:33]wPrintStart [12:11:33]Write to MH i2c: 01 00 00 F3 01 F4 [12:11:33]Write i2c OK [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: 01 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: 01 07 00 [12:11:33]MH_I2C_Read... [12:11:33]Read from MH i2c: 01 07 00 F3 01 00 00 00 00 00 FF 0F 09 [12:11:33]RasterBufferAndPrint [12:11:33]line Счет N : (1)593525 [12:11:33]line ИНН: 02508201610067 [12:11:33]line Контрольно-Кассовый Чек [12:11:33]line ПРОДАЖА [12:11:33]line ТРК (МРК, ГНК) : 52 [12:11:33]line Товар: 2710124130 [12:11:33]line Аи-92-К-5 [12:11:33]line 3.030 * 67.80 [12:11:33]line = 205.43 [12:11:33]line НДС 12% НСП 1% [12:11:33]line > о реализуемом товаре [12:11:33]line ОКРУГЛЕНИЕ: -0.43 [12:11:33]line ИТОГО: 205.00 [12:11:33]line Внесено: 205.00 [12:11:33]line СДАЧА: 0.00 [12:11:33]line НСП 1% : 1.82 [12:11:33]line НДС 12% : 21.82 [12:11:33]line Наличными: 205.00 [12:11:33]line Безнал.: 0.00 [12:11:33]line Место: АЗС № 136 "Партнер Нефть" [12:11:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:11:33]line СНО: Общий режим [12:11:33]line Чек 151 20.08.2024 12:11 [12:11:33]line Смена: 453 ФФД: 1.0 [12:11:33]line ЗНМ: 0300000067 [12:11:33]line РНМ: 0000000000092569 [12:11:33]line Версия ККМ: 001 [12:11:33]line ФМ: 0000000000871776 [12:11:33]line ФД: 139679 [12:11:33]line ФПД: 72795746722699 [12:11:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121131&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139679&fm=72795746722699&tin=02508201610067®Number=0000000000092569&sum=20500 [12:11:33]OFD Sender: Processing packet 139679 [packets to send 137, broken 136] [12:11:33]ProducePacketName [12:11:33]name=ofd_packets/00139679 [12:11:33]OFD Sender: To server: pG, [12:11:33]CommunicateWithHost lk.salyk.kg:30040 [12:11:33]ConnectInit lk.salyk.kg [12:11:33]written 0, free lines is 4095 [12:11:33]Connected sock=9 [12:11:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3F B3 07 01 C9 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3F 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 F3 87 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 21 02 00 35 04 06 00 42 35 14 9F E3 8B 57 AF BF 16 77 69 B7 B9 [12:11:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4D A8 47 00 5D 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 21 02 00 F4 03 04 00 87 2E C4 66 B6 04 01 00 00 06 6A CD 75 BD 9C 0E 1B [12:11:34]CommunicateWithHost err = 0 [12:11:34]CheckOFDResponse [12:11:34]1017 (14) - 77093643461234 [12:11:34]1041 (16) - 0000000000871776 [12:11:34]1040 (4) - 139679 [12:11:34]1012 (4) - 20.08.2024 05:49 [12:11:34]1206 (1) - 0 [12:11:34]OFD Sender: Remove packet 139679 [12:11:34]ProducePacketName [12:11:34]name=ofd_packets/00139679 [12:11:34]NVStorageDeleteData [12:11:34]Write to MH i2c: 01 00 00 1E 02 20 [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: 01 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: 01 07 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 C3 0C F6 [12:11:34]RasterBufferAndPrint [12:11:34]line [12:11:34]line [12:11:34]line [12:11:34]line [12:11:34]line [12:11:34]written 0, free lines is 3273 [12:11:34]MH_Cut [12:11:34]Write to MH i2c: D1 01 00 25 02 01 F9 [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: D1 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: D1 01 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: D1 01 00 25 02 00 F8 [12:11:34]Write to MH i2c: 01 00 00 26 02 28 [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]OFD Sender: No OFD packet to send [12:11:34]*** Cut start [12:11:34]*** Partial cut [12:11:34]*** CUTSNS_PIN = 1 [12:11:34]*** CUTSNS_PIN = 0 [12:11:35]*** Brake cut motor [12:11:35]Read from MH i2c: 01 [12:11:35]MH_I2C_Read... [12:11:35]*** Stop cut motor [12:11:35]*** Cut end [12:11:35]Read from MH i2c: 01 07 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [12:11:35]process_action close_receipt done [12:11:35]requested_data is exist [12:11:35]produce_requested_data [12:11:35]requested_item fm.sn is exist - process it [12:11:35]wFMCommunicate request_size=4 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 11 00 00 [12:11:35]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:35]Read from MH i2c: E2 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 17 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [12:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:11:35]wFMCommunicate OK [12:11:35]requested_item fd.num is exist - process it [12:11:35]SAM_PROTO_GetFieldsCounters [12:11:35]wFMCommunicate request_size=4 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 13 00 00 [12:11:35]Write to MH i2c: E2 08 00 28 02 80 13 00 00 00 00 00 00 A6 [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:35]Read from MH i2c: E2 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 62 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 62 00 28 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [12:11:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9F 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:35]wFMCommunicate OK [12:11:35]SAM_PROTO_GetFieldsCounters done [12:11:35]requested_item shift.num is exist - process it [12:11:35]requested_item shift.opened is exist - process it [12:11:35]req_shift_opened [12:11:35]FM_GetShiftState [12:11:35]SAM_PROTO_GetShiftState [12:11:35]wFMCommunicate request_size=4 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 13 01 00 [12:11:35]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:35]Read from MH i2c: E2 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 0E 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 39 [12:11:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:11:35]wFMCommunicate OK [12:11:35]SAM_PROTO_GetShiftState done [12:11:35]FM_GetShiftState done [12:11:35]req_shift_opened done [12:11:35]requested_item shift.open_date is exist - process it [12:11:35]req_shift_open_date [12:11:35]req_shift_open_date done [12:11:35]produce_requested_data done [12:11:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139679,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:11:35]process_action_free close_receipt [12:11:35]json_value_free [12:11:35]json_value_free done [12:11:35]process_json_proto returns [12:11:35]Send response to host [12:11:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139679,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:11:35]free response buf [12:11:35]execute_script done [12:11:35]execute_script returns [12:11:35]free content buf [12:11:35]Sock 10.Close socket [12:11:35]Sock 10.Thread stoped [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:01]accept exits with 8 [12:13:01]New connection [12:13:01]New thread 3067145572 created [12:13:01]Thread 3067288932 joined [12:13:01]Waiting for new connection... [12:13:01] Sock 8.Parse request [12:13:01]Sock 8.Check first char [12:13:01]Sock 8.First char is OK [12:13:01]request: POST /json_proto HTTP/1.0 [12:13:01]Method: POST [12:13:01]URL: /json_proto [12:13:01]Method is POST - this is cgi request [12:13:01]url: /json_proto [12:13:01]query_string will be loaded in cgi processing [12:13:01]execute_cgi json_proto POST (null) [12:13:01]execute_cgi path=json_proto method=POST [12:13:01]POST find Content-Length [12:13:01]Host: 172.17.45.67:8080 [12:13:01]Content-Length: 677 [12:13:01]Content-Type: application/json [12:13:01] [12:13:01]POST finish read [12:13:01]Found Content-Length = 677 [12:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:01]execute_script... [12:13: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)593526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:01]POST & json_proto [12:13:01]process_json_proto [12:13:01]json parsed OK: [12:13:01]protocol is kg_v1.0 [12:13:01]action value=close_receipt [12:13:01]process_action close_receipt [12:13:01]cmd_close_receipt [12:13:01]MH_GetDate [12:13:01]Write to MH i2c: F0 00 00 2A 02 1B [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: F0 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: F0 09 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: F0 09 00 2A 02 00 4D 88 C4 66 5F 7F 2B 66 92 [12:13:01]GetLastDocTimeStamp 1724155891 [12:13:01]current date 1724155981 [12:13:01]FM_GetShiftState [12:13:01]SAM_PROTO_GetShiftState [12:13:01]wFMCommunicate request_size=4 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 13 01 00 [12:13:01]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 0E 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3B [12:13:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:13:01]wFMCommunicate OK [12:13:01]SAM_PROTO_GetShiftState done [12:13:01]FM_GetShiftState done [12:13:01]opened in 1724113785 [12:13:01]opened+sec_in_day 1724200185 [12:13:01]quantity*price = 40002 [12:13:01]sum+1 = 40003 [12:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 152 20.08.2024 12:13 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139680 ФПД: 182667106954788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139680&fm=182667106954788&tin=02508201610067®Number=0000000000092569&sum=40000 [12:13:03]StoreToDocumentArchive [12:13:03]shift 453 fd 139680 [12:13:03]save to /storage/0453/doc_00139680 [12:13:03]save last doc name /storage/0453/doc_00139680 to /storage/kkm_last_doc_name [12:13:03]save OK [12:13:03]Clear old archive folders... [12:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:03]tlvbuf is 01FF4CD0 [12:13:03]SAM_PROTO_ClearQueue [12:13:03]wFMCommunicate request_size=4 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 09 00 00 [12:13:03]Write to MH i2c: E2 08 00 38 02 80 09 00 00 00 00 00 00 AC [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:03]Read from MH i2c: E2 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 03 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [12:13:03]RAPDU: 90 00 [12:13:03]wFMCommunicate OK [12:13:03]SAM_PROTO_ClearQueue done [12:13:03]KKMCreateOFDPacket [12:13:03]OFDProtocolAddRootSTLVToBuf [12:13:03]FM_MakeSignedData [12:13:03]FM_MakeSignedData [12:13:03]SAM_PROTO_SignData [12:13:03]wFMCommunicate request_size=4 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 0D 01 02 [12:13:03]Write to MH i2c: E2 08 00 39 02 80 0D 01 02 00 00 00 00 B4 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:03]Read from MH i2c: E2 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 03 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [12:13:03]RAPDU: 90 00 [12:13:03]wFMCommunicate OK [12:13:03]wFMCommunicate request_size=255 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 4E 88 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 21 02 00 35 04 06 00 A6 [12:13:03]Write to MH i2c: E2 02 01 3A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 4E 88 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 21 02 00 35 04 06 00 A6 00 00 E9 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:03]Read from MH i2c: E2 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 03 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [12:13:03]RAPDU: 90 00 [12:13:03]wFMCommunicate OK [12:13:03]wFMCommunicate request_size=10 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 0D 02 02 05 22 80 05 AE 24 [12:13:03]Write to MH i2c: E2 0D 00 3B 02 80 0D 02 02 05 00 22 80 05 AE 24 00 00 3A [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:03]Read from MH i2c: E2 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 03 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [12:13:03]RAPDU: 90 00 [12:13:03]wFMCommunicate OK [12:13:03]wFMCommunicate request_size=4 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 0D 03 02 [12:13:03]Write to MH i2c: E2 08 00 3C 02 80 0D 03 02 00 00 00 00 B9 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:03]Read from MH i2c: E2 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 0B 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 0B 00 3C 02 00 BF 61 10 95 A3 65 43 EF 90 00 B9 [12:13:03]RAPDU: BF 61 10 95 A3 65 43 EF 90 00 [12:13:03]wFMCommunicate OK [12:13:03]SAM_PROTO_SignData done [12:13:03]FM_MakeSignedData done [12:13:03]CreateOFDProtocolMessage [12:13:03]wFMCommunicate request_size=4 [12:13:03]MH_SAM_APDU [12:13:03]CAPDU: 80 11 00 00 [12:13:03]Write to MH i2c: E2 08 00 3D 02 80 11 00 00 00 00 00 00 B9 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:03]Read from MH i2c: E2 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 17 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: E2 17 00 3D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [12:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:13:03]wFMCommunicate OK [12:13:03]CreateOFDProtocolMessage done [12:13:03]OFDSenderStorePacket 139680 [12:13:03]StoreOFDPacket docnum=139680 [12:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CE 0F 07 01 10 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 4E 88 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 21 02 00 35 04 06 00 A6 22 80 05 AE 24 BF 61 10 95 A3 65 43 EF [12:13:03]CheckFolder [12:13:03]dirname=/storage/ofd_packets [12:13:03]CheckFolder done [12:13:03]ProducePacketName [12:13:03]name=ofd_packets/00139680 [12:13:03]NVStorageSaveData ofd_packets/00139680 [12:13:03]File name is /storage/ofd_packets/00139680 [12:13:03]Write 301 bytes [12:13:03]NVStorageSaveData done [12:13:03]OFDSenderStorePacket done [12:13:03]KKMCreateOFDPacket done [12:13:03]NVStorageSaveData kkm_last_timestamp [12:13:03]File name is /storage/kkm_last_timestamp [12:13:03]Write 4 bytes [12:13:03]NVStorageSaveData done [12:13:03]ExternCall_PrintAddStr [12:13:03]wPrintStart [12:13:03]Write to MH i2c: 01 00 00 3E 02 40 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 07 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [12:13:03]RasterBufferAndPrint [12:13:03]line Счет N : (1)593526 [12:13:03]line ИНН: 02508201610067 [12:13:03]line Контрольно-Кассовый Чек [12:13:03]line ПРОДАЖА [12:13:03]line ТРК (МРК, ГНК) : 42 [12:13:03]line Товар: 2710124130 [12:13:03]line Аи-92-К-5 [12:13:03]line 5.900 * 67.80 [12:13:03]line = 400.02 [12:13:03]line НДС 12% НСП 1% [12:13:03]line > о реализуемом товаре [12:13:03]line ОКРУГЛЕНИЕ: -0.02 [12:13:03]line ИТОГО: 400.00 [12:13:03]line Внесено: 400.00 [12:13:03]line СДАЧА: 0.00 [12:13:03]line НСП 1% : 3.54 [12:13:03]line НДС 12% : 42.48 [12:13:03]line Наличными: 400.00 [12:13:03]line Безнал.: 0.00 [12:13:03]line Место: АЗС № 136 "Партнер Нефть" [12:13:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:13:03]line СНО: Общий режим [12:13:03]line Чек 152 20.08.2024 12:13 [12:13:03]line Смена: 453 ФФД: 1.0 [12:13:03]line ЗНМ: 0300000067 [12:13:03]line РНМ: 0000000000092569 [12:13:03]line Версия ККМ: 001 [12:13:03]line ФМ: 0000000000871776 [12:13:03]line ФД: 139680 [12:13:03]line ФПД: 182667106954788 [12:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139680&fm=182667106954788&tin=02508201610067®Number=0000000000092569&sum=40000 [12:13:03]written 0, free lines is 4095 [12:13:03]OFD Sender: Processing packet 139680 [packets to send 137, broken 136] [12:13:03]ProducePacketName [12:13:03]name=ofd_packets/00139680 [12:13:03]OFD Sender: To server: pG, [12:13:03]CommunicateWithHost lk.salyk.kg:30040 [12:13:03]ConnectInit lk.salyk.kg [12:13:03]Connected sock=10 [12:13:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CE 0F 07 01 10 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 4E 88 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 21 02 00 35 04 06 00 A6 22 80 05 AE 24 BF 61 10 95 A3 65 43 EF [12:13:04]Write to MH i2c: 01 00 00 69 02 6B [12:13:04]Write i2c OK [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: 01 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: 01 07 00 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 D1 0C 4F [12:13:04]RasterBufferAndPrint [12:13:04]line [12:13:04]line [12:13:04]line [12:13:04]line [12:13:04]line [12:13:04]written 0, free lines is 3289 [12:13:04]MH_Cut [12:13:04]Write to MH i2c: D1 01 00 70 02 01 44 [12:13:04]Write i2c OK [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: D1 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: D1 01 00 [12:13:04]MH_I2C_Read... [12:13:04]Read from MH i2c: D1 01 00 70 02 00 43 [12:13:04]Write to MH i2c: 01 00 00 71 02 73 [12:13:04]Write i2c OK [12:13:04]MH_I2C_Read... [12:13:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BB 76 47 00 18 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 21 02 00 F4 03 04 00 E1 2E C4 66 B6 04 01 00 00 D5 E0 CA 26 FA 9C 64 00 [12:13:04]CommunicateWithHost err = 0 [12:13:04]CheckOFDResponse [12:13:04]1017 (14) - 77093643461234 [12:13:04]1041 (16) - 0000000000871776 [12:13:04]1040 (4) - 139680 [12:13:04]1012 (4) - 20.08.2024 05:51 [12:13:04]1206 (1) - 0 [12:13:04]OFD Sender: Remove packet 139680 [12:13:04]ProducePacketName [12:13:04]name=ofd_packets/00139680 [12:13:04]NVStorageDeleteData [12:13:04]OFD Sender: No OFD packet to send [12:13:04]*** Cut start [12:13:04]*** Partial cut [12:13:04]*** CUTSNS_PIN = 1 [12:13:04]*** CUTSNS_PIN = 0 [12:13:05]*** Brake cut motor [12:13:05]Read from MH i2c: 01 [12:13:05]MH_I2C_Read... [12:13:05]*** Stop cut motor [12:13:05]*** Cut end [12:13:05]Read from MH i2c: 01 07 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [12:13:05]process_action close_receipt done [12:13:05]requested_data is exist [12:13:05]produce_requested_data [12:13:05]requested_item fm.sn is exist - process it [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 11 00 00 [12:13:05]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:05]Read from MH i2c: E2 17 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [12:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:13:05]wFMCommunicate OK [12:13:05]requested_item fd.num is exist - process it [12:13:05]SAM_PROTO_GetFieldsCounters [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 13 00 00 [12:13:05]Write to MH i2c: E2 08 00 73 02 80 13 00 00 00 00 00 00 F1 [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 62 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 62 00 73 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A0 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [12:13:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A0 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:05]wFMCommunicate OK [12:13:05]SAM_PROTO_GetFieldsCounters done [12:13:05]requested_item shift.num is exist - process it [12:13:05]requested_item shift.opened is exist - process it [12:13:05]req_shift_opened [12:13:05]FM_GetShiftState [12:13:05]SAM_PROTO_GetShiftState [12:13:05]wFMCommunicate request_size=4 [12:13:05]MH_SAM_APDU [12:13:05]CAPDU: 80 13 01 00 [12:13:05]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [12:13:05]Write i2c OK [12:13:05]MH_I2C_Read... [12:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:05]Read from MH i2c: E2 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 0E 00 [12:13:05]MH_I2C_Read... [12:13:05]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 84 [12:13:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:13:05]wFMCommunicate OK [12:13:05]SAM_PROTO_GetShiftState done [12:13:05]FM_GetShiftState done [12:13:05]req_shift_opened done [12:13:05]requested_item shift.open_date is exist - process it [12:13:05]req_shift_open_date [12:13:05]req_shift_open_date done [12:13:05]produce_requested_data done [12:13:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139680,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:13:05]process_action_free close_receipt [12:13:05]json_value_free [12:13:05]json_value_free done [12:13:05]process_json_proto returns [12:13:05]Send response to host [12:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139680,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:13:05]free response buf [12:13:05]execute_script done [12:13:05]execute_script returns [12:13:05]free content buf [12:13:05]Sock 8.Close socket [12:13:05]Sock 8.Thread stoped [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:30]int [12:13:30]Write to MH i2c: 01 00 00 75 02 77 [12:13:30]*** FLAG_PRN_KEY set [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 07 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 07 00 75 02 00 08 00 00 00 FF 0F 94 [12:13:30]state=0 [12:13:30]Key pressed [12:13:30]Feed [12:13:30]Write to MH i2c: D8 00 00 76 02 4F [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: D8 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: D8 01 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: D8 01 00 76 02 00 50 [12:13:30]int [12:13:30]Write to MH i2c: 01 00 00 77 02 79 [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 07 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 07 00 77 02 00 48 00 00 00 3C 00 04 [12:13:30]state=2 [12:13:30]Key pressed [12:13:30]int [12:13:30]Write to MH i2c: 01 00 00 78 02 7A [12:13:30]*** FLAG_PRN_KEY reset [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 07 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 F5 0F 85 [12:13:30]state=2 [12:13:30]Stop feed [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:56]accept exits with 9 [12:14:56]New connection [12:14:56]New thread 3067288932 created [12:14:56]Thread 3067145572 joined [12:14:56]Waiting for new connection... [12:14:56] Sock 9.Parse request [12:14:56]Sock 9.Check first char [12:14:56]Sock 9.First char is OK [12:14:56]request: POST /json_proto HTTP/1.0 [12:14:56]Method: POST [12:14:56]URL: /json_proto [12:14:56]Method is POST - this is cgi request [12:14:56]url: /json_proto [12:14:56]query_string will be loaded in cgi processing [12:14:56]execute_cgi json_proto POST (null) [12:14:56]execute_cgi path=json_proto method=POST [12:14:56]POST find Content-Length [12:14:56]Host: 172.17.45.67:8080 [12:14:56]Content-Length: 677 [12:14:56]Content-Type: application/json [12:14:56] [12:14:56]POST finish read [12:14:56]Found Content-Length = 677 [12:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:56]execute_script... [12:14:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:56]POST & json_proto [12:14:56]process_json_proto [12:14:56]json parsed OK: [12:14:56]protocol is kg_v1.0 [12:14:56]action value=close_receipt [12:14:56]process_action close_receipt [12:14:56]cmd_close_receipt [12:14:56]MH_GetDate [12:14:56]Write to MH i2c: F0 00 00 79 02 6A [12:14:56]Write i2c OK [12:14:56]MH_I2C_Read... [12:14:56]Read from MH i2c: F0 [12:14:56]MH_I2C_Read... [12:14:56]Read from MH i2c: F0 09 00 [12:14:56]MH_I2C_Read... [12:14:56]Read from MH i2c: F0 09 00 79 02 00 C1 88 C4 66 5F 7F 2B 66 55 [12:14:56]GetLastDocTimeStamp 1724155982 [12:14:56]current date 1724156097 [12:14:56]FM_GetShiftState [12:14:56]SAM_PROTO_GetShiftState [12:14:56]wFMCommunicate request_size=4 [12:14:56]MH_SAM_APDU [12:14:56]CAPDU: 80 13 01 00 [12:14:56]Write to MH i2c: E2 08 00 7A 02 80 13 01 00 00 00 00 00 F9 [12:14:56]Write i2c OK [12:14:56]MH_I2C_Read... [12:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:56]Read from MH i2c: E2 [12:14:56]MH_I2C_Read... [12:14:56]Read from MH i2c: E2 0E 00 [12:14:56]MH_I2C_Read... [12:14:56]Read from MH i2c: E2 0E 00 7A 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8A [12:14:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:14:56]wFMCommunicate OK [12:14:56]SAM_PROTO_GetShiftState done [12:14:56]FM_GetShiftState done [12:14:56]opened in 1724113785 [12:14:56]opened+sec_in_day 1724200185 [12:14:56]quantity*price = 20001 [12:14:56]sum+1 = 20002 [12:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 153 20.08.2024 12:14 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139681 ФПД: 196143952954172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121457&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139681&fm=196143952954172&tin=02508201610067®Number=0000000000092569&sum=20000 [12:14:58]StoreToDocumentArchive [12:14:58]shift 453 fd 139681 [12:14:58]save to /storage/0453/doc_00139681 [12:14:58]save last doc name /storage/0453/doc_00139681 to /storage/kkm_last_doc_name [12:14:58]save OK [12:14:58]Clear old archive folders... [12:14:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:58]tlvbuf is 01FF65F0 [12:14:58]SAM_PROTO_ClearQueue [12:14:58]wFMCommunicate request_size=4 [12:14:58]MH_SAM_APDU [12:14:58]CAPDU: 80 09 00 00 [12:14:58]Write to MH i2c: E2 08 00 87 02 80 09 00 00 00 00 00 00 FB [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:58]Read from MH i2c: E2 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 03 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [12:14:58]RAPDU: 90 00 [12:14:58]wFMCommunicate OK [12:14:58]SAM_PROTO_ClearQueue done [12:14:58]KKMCreateOFDPacket [12:14:58]OFDProtocolAddRootSTLVToBuf [12:14:58]FM_MakeSignedData [12:14:58]FM_MakeSignedData [12:14:58]SAM_PROTO_SignData [12:14:58]wFMCommunicate request_size=4 [12:14:58]MH_SAM_APDU [12:14:58]CAPDU: 80 0D 01 02 [12:14:58]Write to MH i2c: E2 08 00 88 02 80 0D 01 02 00 00 00 00 03 [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:58]Read from MH i2c: E2 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 03 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [12:14:58]RAPDU: 90 00 [12:14:58]wFMCommunicate OK [12:14:58]wFMCommunicate request_size=255 [12:14:58]MH_SAM_APDU [12:14:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C1 88 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 21 02 00 35 04 06 00 B2 [12:14:58]Write to MH i2c: E2 02 01 89 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C1 88 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 21 02 00 35 04 06 00 B2 00 00 D6 [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:58]Read from MH i2c: E2 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 03 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [12:14:58]RAPDU: 90 00 [12:14:58]wFMCommunicate OK [12:14:58]wFMCommunicate request_size=10 [12:14:58]MH_SAM_APDU [12:14:58]CAPDU: 80 0D 02 02 05 64 52 A4 03 3C [12:14:58]Write to MH i2c: E2 0D 00 8A 02 80 0D 02 02 05 00 64 52 A4 03 3C 00 00 A9 [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:58]Read from MH i2c: E2 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 03 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [12:14:58]RAPDU: 90 00 [12:14:58]wFMCommunicate OK [12:14:58]wFMCommunicate request_size=4 [12:14:58]MH_SAM_APDU [12:14:58]CAPDU: 80 0D 03 02 [12:14:58]Write to MH i2c: E2 08 00 8B 02 80 0D 03 02 00 00 00 00 08 [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:58]Read from MH i2c: E2 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 0B 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 0B 00 8B 02 00 9D 00 F9 35 84 57 8C F1 90 00 2C [12:14:58]RAPDU: 9D 00 F9 35 84 57 8C F1 90 00 [12:14:58]wFMCommunicate OK [12:14:58]SAM_PROTO_SignData done [12:14:58]FM_MakeSignedData done [12:14:58]CreateOFDProtocolMessage [12:14:58]wFMCommunicate request_size=4 [12:14:58]MH_SAM_APDU [12:14:58]CAPDU: 80 11 00 00 [12:14:58]Write to MH i2c: E2 08 00 8C 02 80 11 00 00 00 00 00 00 08 [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:58]Read from MH i2c: E2 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 17 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 17 00 8C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [12:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:14:58]wFMCommunicate OK [12:14:58]CreateOFDProtocolMessage done [12:14:58]OFDSenderStorePacket 139681 [12:14:58]StoreOFDPacket docnum=139681 [12:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4B DF 07 01 70 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C1 88 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 21 02 00 35 04 06 00 B2 64 52 A4 03 3C 9D 00 F9 35 84 57 8C F1 [12:14:58]CheckFolder [12:14:58]dirname=/storage/ofd_packets [12:14:58]CheckFolder done [12:14:58]ProducePacketName [12:14:58]name=ofd_packets/00139681 [12:14:58]NVStorageSaveData ofd_packets/00139681 [12:14:58]File name is /storage/ofd_packets/00139681 [12:14:58]Write 301 bytes [12:14:58]NVStorageSaveData done [12:14:58]OFDSenderStorePacket done [12:14:58]KKMCreateOFDPacket done [12:14:58]NVStorageSaveData kkm_last_timestamp [12:14:58]File name is /storage/kkm_last_timestamp [12:14:58]Write 4 bytes [12:14:58]NVStorageSaveData done [12:14:58]ExternCall_PrintAddStr [12:14:58]wPrintStart [12:14:58]Write to MH i2c: 01 00 00 8D 02 8F [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: 01 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: 01 07 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: 01 07 00 8D 02 00 00 00 00 00 FF 0F A4 [12:14:58]RasterBufferAndPrint [12:14:58]line Счет N : (1)593527 [12:14:58]line ИНН: 02508201610067 [12:14:58]line Контрольно-Кассовый Чек [12:14:58]line ПРОДАЖА [12:14:58]line ТРК (МРК, ГНК) : 62 [12:14:58]line Товар: 2710124130 [12:14:58]line Аи-92-К-5 [12:14:58]line 2.950 * 67.80 [12:14:58]line = 200.01 [12:14:58]line НДС 12% НСП 1% [12:14:58]line > о реализуемом товаре [12:14:58]line ОКРУГЛЕНИЕ: -0.01 [12:14:58]line ИТОГО: 200.00 [12:14:58]line Внесено: 200.00 [12:14:58]line СДАЧА: 0.00 [12:14:58]line НСП 1% : 1.77 [12:14:58]line НДС 12% : 21.24 [12:14:58]line Наличными: 200.00 [12:14:58]line Безнал.: 0.00 [12:14:58]line Место: АЗС № 136 "Партнер Нефть" [12:14:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:14:58]line СНО: Общий режим [12:14:58]line Чек 153 20.08.2024 12:14 [12:14:58]line Смена: 453 ФФД: 1.0 [12:14:58]line ЗНМ: 0300000067 [12:14:58]line РНМ: 0000000000092569 [12:14:58]line Версия ККМ: 001 [12:14:58]line ФМ: 0000000000871776 [12:14:58]line ФД: 139681 [12:14:58]line ФПД: 196143952954172 [12:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121457&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139681&fm=196143952954172&tin=02508201610067®Number=0000000000092569&sum=20000 [12:14:58]OFD Sender: Processing packet 139681 [packets to send 137, broken 136] [12:14:58]ProducePacketName [12:14:58]name=ofd_packets/00139681 [12:14:58]OFD Sender: To server: pG, [12:14:58]CommunicateWithHost lk.salyk.kg:30040 [12:14:58]ConnectInit lk.salyk.kg [12:14:58]written 0, free lines is 4095 [12:14:59]Connected sock=10 [12:14:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4B DF 07 01 70 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C1 88 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 21 02 00 35 04 06 00 B2 64 52 A4 03 3C 9D 00 F9 35 84 57 8C F1 [12:14:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DB 3B 47 00 3B C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 21 02 00 F4 03 04 00 54 2F C4 66 B6 04 01 00 00 7A 6B 5D 4F 5F 6F D6 BF [12:14:59]CommunicateWithHost err = 0 [12:14:59]CheckOFDResponse [12:14:59]1017 (14) - 77093643461234 [12:14:59]1041 (16) - 0000000000871776 [12:14:59]1040 (4) - 139681 [12:14:59]1012 (4) - 20.08.2024 05:53 [12:14:59]1206 (1) - 0 [12:14:59]OFD Sender: Remove packet 139681 [12:14:59]ProducePacketName [12:14:59]name=ofd_packets/00139681 [12:14:59]NVStorageDeleteData [12:14:59]Write to MH i2c: 01 00 00 B8 02 BA [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: 01 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: 01 07 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 C6 0C 93 [12:14:59]RasterBufferAndPrint [12:14:59]line [12:14:59]line [12:14:59]line [12:14:59]line [12:14:59]line [12:14:59]written 0, free lines is 3276 [12:14:59]MH_Cut [12:14:59]Write to MH i2c: D1 01 00 BF 02 01 93 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: D1 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: D1 01 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: D1 01 00 BF 02 00 92 [12:14:59]Write to MH i2c: 01 00 00 C0 02 C2 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]OFD Sender: No OFD packet to send [12:15:00]*** Cut start [12:15:00]*** Partial cut [12:15:00]*** CUTSNS_PIN = 1 [12:15:00]*** CUTSNS_PIN = 0 [12:15:00]*** Brake cut motor [12:15:00]Read from MH i2c: 01 [12:15:00]MH_I2C_Read... [12:15:00]*** Stop cut motor [12:15:00]*** Cut end [12:15:00]Read from MH i2c: 01 07 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 C0 02 00 00 00 00 00 FF 0F D7 [12:15:00]process_action close_receipt done [12:15:00]requested_data is exist [12:15:00]produce_requested_data [12:15:00]requested_item fm.sn is exist - process it [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 11 00 00 [12:15:00]Write to MH i2c: E2 08 00 C1 02 80 11 00 00 00 00 00 00 3D [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 17 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 17 00 C1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [12:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:15:00]wFMCommunicate OK [12:15:00]requested_item fd.num is exist - process it [12:15:00]SAM_PROTO_GetFieldsCounters [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 13 00 00 [12:15:00]Write to MH i2c: E2 08 00 C2 02 80 13 00 00 00 00 00 00 40 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 62 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 62 00 C2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A1 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [12:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A1 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:00]wFMCommunicate OK [12:15:00]SAM_PROTO_GetFieldsCounters done [12:15:00]requested_item shift.num is exist - process it [12:15:00]requested_item shift.opened is exist - process it [12:15:00]req_shift_opened [12:15:00]FM_GetShiftState [12:15:00]SAM_PROTO_GetShiftState [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 13 01 00 [12:15:00]Write to MH i2c: E2 08 00 C3 02 80 13 01 00 00 00 00 00 42 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 0E 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 0E 00 C3 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D3 [12:15:00]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:15:00]wFMCommunicate OK [12:15:00]SAM_PROTO_GetShiftState done [12:15:00]FM_GetShiftState done [12:15:00]req_shift_opened done [12:15:00]requested_item shift.open_date is exist - process it [12:15:00]req_shift_open_date [12:15:00]req_shift_open_date done [12:15:00]produce_requested_data done [12:15:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139681,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:15:00]process_action_free close_receipt [12:15:00]json_value_free [12:15:00]json_value_free done [12:15:00]process_json_proto returns [12:15:00]Send response to host [12:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139681,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:15:00]free response buf [12:15:00]execute_script done [12:15:00]execute_script returns [12:15:00]free content buf [12:15:00]Sock 9.Close socket [12:15:00]Sock 9.Thread stoped [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:05]accept exits with 8 [12:17:05]New connection [12:17:05]New thread 3067145572 created [12:17:05]Thread 3067288932 joined [12:17:05]Waiting for new connection... [12:17:05] Sock 8.Parse request [12:17:05]Sock 8.Check first char [12:17:05]Sock 8.First char is OK [12:17:05]request: POST /json_proto HTTP/1.0 [12:17:05]Method: POST [12:17:05]URL: /json_proto [12:17:05]Method is POST - this is cgi request [12:17:05]url: /json_proto [12:17:05]query_string will be loaded in cgi processing [12:17:05]execute_cgi json_proto POST (null) [12:17:05]execute_cgi path=json_proto method=POST [12:17:05]POST find Content-Length [12:17:05]Host: 172.17.45.67:8080 [12:17:05]Content-Length: 677 [12:17:05]Content-Type: application/json [12:17:05] [12:17:05]POST finish read [12:17:05]Found Content-Length = 677 [12:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:05]execute_script... [12:17:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:05]POST & json_proto [12:17:05]process_json_proto [12:17:05]json parsed OK: [12:17:05]protocol is kg_v1.0 [12:17:05]action value=close_receipt [12:17:05]process_action close_receipt [12:17:05]cmd_close_receipt [12:17:05]MH_GetDate [12:17:05]Write to MH i2c: F0 00 00 C4 02 B5 [12:17:05]Write i2c OK [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: F0 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: F0 09 00 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: F0 09 00 C4 02 00 41 89 C4 66 5F 7F 2B 66 21 [12:17:05]GetLastDocTimeStamp 1724156097 [12:17:05]current date 1724156225 [12:17:05]FM_GetShiftState [12:17:05]SAM_PROTO_GetShiftState [12:17:05]wFMCommunicate request_size=4 [12:17:05]MH_SAM_APDU [12:17:05]CAPDU: 80 13 01 00 [12:17:05]Write to MH i2c: E2 08 00 C5 02 80 13 01 00 00 00 00 00 44 [12:17:05]Write i2c OK [12:17:05]MH_I2C_Read... [12:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:05]Read from MH i2c: E2 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 0E 00 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 0E 00 C5 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D5 [12:17:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:17:05]wFMCommunicate OK [12:17:05]SAM_PROTO_GetShiftState done [12:17:05]FM_GetShiftState done [12:17:05]opened in 1724113785 [12:17:05]opened+sec_in_day 1724200185 [12:17:05]quantity*price = 35052 [12:17:05]sum+1 = 35054 [12:17:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 154 20.08.2024 12:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139682 ФПД: 138948029907172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139682&fm=138948029907172&tin=02508201610067®Number=0000000000092569&sum=35000 [12:17:06]StoreToDocumentArchive [12:17:06]shift 453 fd 139682 [12:17:06]save to /storage/0453/doc_00139682 [12:17:06]save last doc name /storage/0453/doc_00139682 to /storage/kkm_last_doc_name [12:17:06]save OK [12:17:06]Clear old archive folders... [12:17:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:06]tlvbuf is 01FF2BB0 [12:17:06]SAM_PROTO_ClearQueue [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 09 00 00 [12:17:06]Write to MH i2c: E2 08 00 D2 02 80 09 00 00 00 00 00 00 46 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [12:17:06]RAPDU: 90 00 [12:17:06]wFMCommunicate OK [12:17:06]SAM_PROTO_ClearQueue done [12:17:06]KKMCreateOFDPacket [12:17:06]OFDProtocolAddRootSTLVToBuf [12:17:06]FM_MakeSignedData [12:17:06]FM_MakeSignedData [12:17:06]SAM_PROTO_SignData [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 0D 01 02 [12:17:06]Write to MH i2c: E2 08 00 D3 02 80 0D 01 02 00 00 00 00 4E [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [12:17:06]RAPDU: 90 00 [12:17:06]wFMCommunicate OK [12:17:06]wFMCommunicate request_size=255 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 41 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 21 02 00 35 04 06 00 7E [12:17:06]Write to MH i2c: E2 02 01 D4 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 41 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 21 02 00 35 04 06 00 7E 00 00 99 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [12:17:06]RAPDU: 90 00 [12:17:06]wFMCommunicate OK [12:17:06]wFMCommunicate request_size=10 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 0D 02 02 05 5F 5B F7 00 E4 [12:17:06]Write to MH i2c: E2 0D 00 D5 02 80 0D 02 02 05 00 5F 5B F7 00 E4 00 00 F0 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [12:17:06]RAPDU: 90 00 [12:17:06]wFMCommunicate OK [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 0D 03 02 [12:17:06]Write to MH i2c: E2 08 00 D6 02 80 0D 03 02 00 00 00 00 53 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 0B 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 0B 00 D6 02 00 28 28 A4 72 3A D7 F8 7D 90 00 40 [12:17:06]RAPDU: 28 28 A4 72 3A D7 F8 7D 90 00 [12:17:06]wFMCommunicate OK [12:17:06]SAM_PROTO_SignData done [12:17:06]FM_MakeSignedData done [12:17:06]CreateOFDProtocolMessage [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 11 00 00 [12:17:06]Write to MH i2c: E2 08 00 D7 02 80 11 00 00 00 00 00 00 53 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 17 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 17 00 D7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [12:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:17:06]wFMCommunicate OK [12:17:06]CreateOFDProtocolMessage done [12:17:06]OFDSenderStorePacket 139682 [12:17:06]StoreOFDPacket docnum=139682 [12:17:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B 23 07 01 A5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 41 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 21 02 00 35 04 06 00 7E 5F 5B F7 00 E4 28 28 A4 72 3A D7 F8 7D [12:17:06]CheckFolder [12:17:06]dirname=/storage/ofd_packets [12:17:06]CheckFolder done [12:17:06]ProducePacketName [12:17:06]name=ofd_packets/00139682 [12:17:06]NVStorageSaveData ofd_packets/00139682 [12:17:06]File name is /storage/ofd_packets/00139682 [12:17:06]Write 301 bytes [12:17:06]NVStorageSaveData done [12:17:06]OFDSenderStorePacket done [12:17:06]KKMCreateOFDPacket done [12:17:06]NVStorageSaveData kkm_last_timestamp [12:17:06]File name is /storage/kkm_last_timestamp [12:17:06]Write 4 bytes [12:17:06]NVStorageSaveData done [12:17:06]ExternCall_PrintAddStr [12:17:06]wPrintStart [12:17:06]Write to MH i2c: 01 00 00 D8 02 DA [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: 01 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: 01 07 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [12:17:06]RasterBufferAndPrint [12:17:06]line Счет N : (1)593528 [12:17:06]line ИНН: 02508201610067 [12:17:06]line Контрольно-Кассовый Чек [12:17:06]line ПРОДАЖА [12:17:06]line ТРК (МРК, ГНК) : 52 [12:17:06]line Товар: 2710124130 [12:17:06]line Аи-92-К-5 [12:17:06]line 5.170 * 67.80 [12:17:06]line = 350.53 [12:17:06]line НДС 12% НСП 1% [12:17:06]line > о реализуемом товаре [12:17:06]line ОКРУГЛЕНИЕ: -0.53 [12:17:06]line ИТОГО: 350.00 [12:17:06]line Внесено: 350.00 [12:17:06]line СДАЧА: 0.00 [12:17:06]line НСП 1% : 3.10 [12:17:06]line НДС 12% : 37.22 [12:17:06]line Наличными: 350.00 [12:17:06]line Безнал.: 0.00 [12:17:06]line Место: АЗС № 136 "Партнер Нефть" [12:17:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:17:06]line СНО: Общий режим [12:17:06]line Чек 154 20.08.2024 12:17 [12:17:06]line Смена: 453 ФФД: 1.0 [12:17:06]line ЗНМ: 0300000067 [12:17:06]line РНМ: 0000000000092569 [12:17:06]line Версия ККМ: 001 [12:17:06]line ФМ: 0000000000871776 [12:17:06]line ФД: 139682 [12:17:06]line ФПД: 138948029907172 [12:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139682&fm=138948029907172&tin=02508201610067®Number=0000000000092569&sum=35000 [12:17:07]OFD Sender: Processing packet 139682 [packets to send 137, broken 136] [12:17:07]ProducePacketName [12:17:07]name=ofd_packets/00139682 [12:17:07]OFD Sender: To server: pG, [12:17:07]CommunicateWithHost lk.salyk.kg:30040 [12:17:07]ConnectInit lk.salyk.kg [12:17:07]written 0, free lines is 4095 [12:17:07]Connected sock=10 [12:17:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B 23 07 01 A5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 41 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 21 02 00 35 04 06 00 7E 5F 5B F7 00 E4 28 28 A4 72 3A D7 F8 7D [12:17:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C1 AF 47 00 7D 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 21 02 00 F4 03 04 00 D4 2F C4 66 B6 04 01 00 00 70 0A 49 63 7D 75 6A 1E [12:17:07]CommunicateWithHost err = 0 [12:17:07]CheckOFDResponse [12:17:07]1017 (14) - 77093643461234 [12:17:07]1041 (16) - 0000000000871776 [12:17:07]1040 (4) - 139682 [12:17:07]1012 (4) - 20.08.2024 05:55 [12:17:07]1206 (1) - 0 [12:17:07]OFD Sender: Remove packet 139682 [12:17:07]ProducePacketName [12:17:07]name=ofd_packets/00139682 [12:17:07]NVStorageDeleteData [12:17:07]Write to MH i2c: 01 00 00 03 03 06 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 07 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 C6 0C DF [12:17:07]RasterBufferAndPrint [12:17:07]line [12:17:07]line [12:17:07]line [12:17:07]line [12:17:07]line [12:17:07]written 0, free lines is 3276 [12:17:07]MH_Cut [12:17:07]Write to MH i2c: D1 01 00 0A 03 01 DF [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: D1 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: D1 01 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: D1 01 00 0A 03 00 DE [12:17:07]Write to MH i2c: 01 00 00 0B 03 0E [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:08]OFD Sender: No OFD packet to send [12:17:08]*** Cut start [12:17:08]*** Partial cut [12:17:08]*** CUTSNS_PIN = 1 [12:17:08]*** CUTSNS_PIN = 0 [12:17:08]*** Brake cut motor [12:17:09]Read from MH i2c: 01 [12:17:09]MH_I2C_Read... [12:17:09]*** Stop cut motor [12:17:09]*** Cut end [12:17:09]Read from MH i2c: 01 07 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: 01 07 00 0B 03 00 00 00 00 00 FF 0F 23 [12:17:09]process_action close_receipt done [12:17:09]requested_data is exist [12:17:09]produce_requested_data [12:17:09]requested_item fm.sn is exist - process it [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 11 00 00 [12:17:09]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:09]Read from MH i2c: E2 17 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 17 00 0C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [12:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:17:09]wFMCommunicate OK [12:17:09]requested_item fd.num is exist - process it [12:17:09]SAM_PROTO_GetFieldsCounters [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 13 00 00 [12:17:09]Write to MH i2c: E2 08 00 0D 03 80 13 00 00 00 00 00 00 8C [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 62 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 62 00 0D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A2 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [12:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A2 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:09]wFMCommunicate OK [12:17:09]SAM_PROTO_GetFieldsCounters done [12:17:09]requested_item shift.num is exist - process it [12:17:09]requested_item shift.opened is exist - process it [12:17:09]req_shift_opened [12:17:09]FM_GetShiftState [12:17:09]SAM_PROTO_GetShiftState [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 13 01 00 [12:17:09]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 0E 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1F [12:17:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:17:09]wFMCommunicate OK [12:17:09]SAM_PROTO_GetShiftState done [12:17:09]FM_GetShiftState done [12:17:09]req_shift_opened done [12:17:09]requested_item shift.open_date is exist - process it [12:17:09]req_shift_open_date [12:17:09]req_shift_open_date done [12:17:09]produce_requested_data done [12:17:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139682,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:17:09]process_action_free close_receipt [12:17:09]json_value_free [12:17:09]json_value_free done [12:17:09]process_json_proto returns [12:17:09]Send response to host [12:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139682,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:17:09]free response buf [12:17:09]execute_script done [12:17:09]execute_script returns [12:17:09]free content buf [12:17:09]Sock 8.Close socket [12:17:09]Sock 8.Thread stoped [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:22]accept exits with 9 [12:17:22]New connection [12:17:22]New thread 3067288932 created [12:17:22]Thread 3067145572 joined [12:17:22]Waiting for new connection... [12:17:22] Sock 9.Parse request [12:17:22]Sock 9.Check first char [12:17:22]Sock 9.First char is OK [12:17:22]request: POST /json_proto HTTP/1.0 [12:17:22]Method: POST [12:17:22]URL: /json_proto [12:17:22]Method is POST - this is cgi request [12:17:22]url: /json_proto [12:17:22]query_string will be loaded in cgi processing [12:17:22]execute_cgi json_proto POST (null) [12:17:22]execute_cgi path=json_proto method=POST [12:17:22]POST find Content-Length [12:17:22]Host: 172.17.45.67:8080 [12:17:22]Content-Length: 677 [12:17:22]Content-Type: application/json [12:17:22] [12:17:22]POST finish read [12:17:22]Found Content-Length = 677 [12:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:22]execute_script... [12:17: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)593529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:22]POST & json_proto [12:17:22]process_json_proto [12:17:22]json parsed OK: [12:17:22]protocol is kg_v1.0 [12:17:22]action value=close_receipt [12:17:22]process_action close_receipt [12:17:22]cmd_close_receipt [12:17:22]MH_GetDate [12:17:22]Write to MH i2c: F0 00 00 0F 03 01 [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: F0 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: F0 09 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: F0 09 00 0F 03 00 52 89 C4 66 5F 7F 2B 66 7E [12:17:22]GetLastDocTimeStamp 1724156225 [12:17:22]current date 1724156242 [12:17:22]FM_GetShiftState [12:17:22]SAM_PROTO_GetShiftState [12:17:22]wFMCommunicate request_size=4 [12:17:22]MH_SAM_APDU [12:17:22]CAPDU: 80 13 01 00 [12:17:22]Write to MH i2c: E2 08 00 10 03 80 13 01 00 00 00 00 00 90 [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:22]Read from MH i2c: E2 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 0E 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: E2 0E 00 10 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 21 [12:17:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:17:22]wFMCommunicate OK [12:17:22]SAM_PROTO_GetShiftState done [12:17:22]FM_GetShiftState done [12:17:22]opened in 1724113785 [12:17:22]opened+sec_in_day 1724200185 [12:17:22]quantity*price = 50036 [12:17:22]sum+1 = 50037 [12:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 155 20.08.2024 12:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139683 ФПД: 91106726786015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139683&fm=91106726786015&tin=02508201610067®Number=0000000000092569&sum=50000 [12:17:24]StoreToDocumentArchive [12:17:24]shift 453 fd 139683 [12:17:24]save to /storage/0453/doc_00139683 [12:17:24]save last doc name /storage/0453/doc_00139683 to /storage/kkm_last_doc_name [12:17:24]save OK [12:17:24]Clear old archive folders... [12:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:24]tlvbuf is 01FF9600 [12:17:24]SAM_PROTO_ClearQueue [12:17:24]wFMCommunicate request_size=4 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 09 00 00 [12:17:24]Write to MH i2c: E2 08 00 1D 03 80 09 00 00 00 00 00 00 92 [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [12:17:24]RAPDU: 90 00 [12:17:24]wFMCommunicate OK [12:17:24]SAM_PROTO_ClearQueue done [12:17:24]KKMCreateOFDPacket [12:17:24]OFDProtocolAddRootSTLVToBuf [12:17:24]FM_MakeSignedData [12:17:24]FM_MakeSignedData [12:17:24]SAM_PROTO_SignData [12:17:24]wFMCommunicate request_size=4 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 0D 01 02 [12:17:24]Write to MH i2c: E2 08 00 1E 03 80 0D 01 02 00 00 00 00 9A [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [12:17:24]RAPDU: 90 00 [12:17:24]wFMCommunicate OK [12:17:24]wFMCommunicate request_size=255 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 53 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 21 02 00 35 04 06 00 52 [12:17:24]Write to MH i2c: E2 02 01 1F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 53 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 21 02 00 35 04 06 00 52 00 00 A2 [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [12:17:24]RAPDU: 90 00 [12:17:24]wFMCommunicate OK [12:17:24]wFMCommunicate request_size=10 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 0D 02 02 05 DC 70 16 33 DF [12:17:24]Write to MH i2c: E2 0D 00 20 03 80 0D 02 02 05 00 DC 70 16 33 DF 00 00 1B [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [12:17:24]RAPDU: 90 00 [12:17:24]wFMCommunicate OK [12:17:24]wFMCommunicate request_size=4 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 0D 03 02 [12:17:24]Write to MH i2c: E2 08 00 21 03 80 0D 03 02 00 00 00 00 9F [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 0B 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 0B 00 21 03 00 21 CE 43 F0 E2 FD AD D3 90 00 21 [12:17:24]RAPDU: 21 CE 43 F0 E2 FD AD D3 90 00 [12:17:24]wFMCommunicate OK [12:17:24]SAM_PROTO_SignData done [12:17:24]FM_MakeSignedData done [12:17:24]CreateOFDProtocolMessage [12:17:24]wFMCommunicate request_size=4 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 11 00 00 [12:17:24]Write to MH i2c: E2 08 00 22 03 80 11 00 00 00 00 00 00 9F [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 17 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 17 00 22 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [12:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:17:24]wFMCommunicate OK [12:17:24]CreateOFDProtocolMessage done [12:17:24]OFDSenderStorePacket 139683 [12:17:24]StoreOFDPacket docnum=139683 [12:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C2 A0 07 01 DE 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 53 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 21 02 00 35 04 06 00 52 DC 70 16 33 DF 21 CE 43 F0 E2 FD AD D3 [12:17:24]CheckFolder [12:17:24]dirname=/storage/ofd_packets [12:17:24]CheckFolder done [12:17:24]ProducePacketName [12:17:24]name=ofd_packets/00139683 [12:17:24]NVStorageSaveData ofd_packets/00139683 [12:17:24]File name is /storage/ofd_packets/00139683 [12:17:24]Write 301 bytes [12:17:24]NVStorageSaveData done [12:17:24]OFDSenderStorePacket done [12:17:24]KKMCreateOFDPacket done [12:17:24]NVStorageSaveData kkm_last_timestamp [12:17:24]File name is /storage/kkm_last_timestamp [12:17:24]Write 4 bytes [12:17:24]NVStorageSaveData done [12:17:24]ExternCall_PrintAddStr [12:17:24]wPrintStart [12:17:24]Write to MH i2c: 01 00 00 23 03 26 [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: 01 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: 01 07 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: 01 07 00 23 03 00 00 00 00 00 FF 0F 3B [12:17:24]RasterBufferAndPrint [12:17:24]line Счет N : (1)593529 [12:17:24]line ИНН: 02508201610067 [12:17:24]line Контрольно-Кассовый Чек [12:17:24]line ПРОДАЖА [12:17:24]line ТРК (МРК, ГНК) : 32 [12:17:24]line Товар: 2710124130 [12:17:24]line Аи-92-К-5 [12:17:24]line 7.380 * 67.80 [12:17:24]line = 500.36 [12:17:24]line НДС 12% НСП 1% [12:17:24]line > о реализуемом товаре [12:17:24]line ОКРУГЛЕНИЕ: -0.36 [12:17:24]line ИТОГО: 500.00 [12:17:24]line Внесено: 500.00 [12:17:24]line СДАЧА: 0.00 [12:17:24]line НСП 1% : 4.43 [12:17:24]line НДС 12% : 53.14 [12:17:24]line Наличными: 500.00 [12:17:24]line Безнал.: 0.00 [12:17:24]line Место: АЗС № 136 "Партнер Нефть" [12:17:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:17:24]line СНО: Общий режим [12:17:24]line Чек 155 20.08.2024 12:17 [12:17:24]line Смена: 453 ФФД: 1.0 [12:17:24]line ЗНМ: 0300000067 [12:17:24]line РНМ: 0000000000092569 [12:17:24]line Версия ККМ: 001 [12:17:24]line ФМ: 0000000000871776 [12:17:24]line ФД: 139683 [12:17:24]line ФПД: 91106726786015 [12:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139683&fm=91106726786015&tin=02508201610067®Number=0000000000092569&sum=50000 [12:17:24]OFD Sender: Processing packet 139683 [packets to send 137, broken 136] [12:17:24]ProducePacketName [12:17:24]name=ofd_packets/00139683 [12:17:24]OFD Sender: To server: pG, [12:17:24]CommunicateWithHost lk.salyk.kg:30040 [12:17:24]ConnectInit lk.salyk.kg [12:17:24]written 0, free lines is 4095 [12:17:25]Connected sock=10 [12:17:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C2 A0 07 01 DE 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 53 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 21 02 00 35 04 06 00 52 DC 70 16 33 DF 21 CE 43 F0 E2 FD AD D3 [12:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B4 85 47 00 26 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 21 02 00 F4 03 04 00 E6 2F C4 66 B6 04 01 00 00 70 F3 38 CE B3 26 8D 62 [12:17:25]CommunicateWithHost err = 0 [12:17:25]CheckOFDResponse [12:17:25]1017 (14) - 77093643461234 [12:17:25]1041 (16) - 0000000000871776 [12:17:25]1040 (4) - 139683 [12:17:25]1012 (4) - 20.08.2024 05:55 [12:17:25]1206 (1) - 0 [12:17:25]OFD Sender: Remove packet 139683 [12:17:25]ProducePacketName [12:17:25]name=ofd_packets/00139683 [12:17:25]NVStorageDeleteData [12:17:25]Write to MH i2c: 01 00 00 4E 03 51 [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: 01 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: 01 07 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 C2 0C 26 [12:17:25]RasterBufferAndPrint [12:17:25]line [12:17:25]line [12:17:25]line [12:17:25]line [12:17:25]line [12:17:25]written 0, free lines is 3272 [12:17:25]MH_Cut [12:17:25]Write to MH i2c: D1 01 00 55 03 01 2A [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: D1 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: D1 01 00 [12:17:25]MH_I2C_Read... [12:17:25]Read from MH i2c: D1 01 00 55 03 00 29 [12:17:25]Write to MH i2c: 01 00 00 56 03 59 [12:17:25]Write i2c OK [12:17:25]MH_I2C_Read... [12:17:25]OFD Sender: No OFD packet to send [12:17:26]*** Cut start [12:17:26]*** Partial cut [12:17:26]*** CUTSNS_PIN = 1 [12:17:26]*** CUTSNS_PIN = 0 [12:17:26]*** Brake cut motor [12:17:26]Read from MH i2c: 01 [12:17:26]MH_I2C_Read... [12:17:26]*** Stop cut motor [12:17:26]*** Cut end [12:17:26]Read from MH i2c: 01 07 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: 01 07 00 56 03 00 00 00 00 00 FF 0F 6E [12:17:26]process_action close_receipt done [12:17:26]requested_data is exist [12:17:26]produce_requested_data [12:17:26]requested_item fm.sn is exist - process it [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 11 00 00 [12:17:26]Write to MH i2c: E2 08 00 57 03 80 11 00 00 00 00 00 00 D4 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 17 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 17 00 57 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2B [12:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:17:26]wFMCommunicate OK [12:17:26]requested_item fd.num is exist - process it [12:17:26]SAM_PROTO_GetFieldsCounters [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 13 00 00 [12:17:26]Write to MH i2c: E2 08 00 58 03 80 13 00 00 00 00 00 00 D7 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 62 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 62 00 58 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A3 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [12:17:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A3 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:26]wFMCommunicate OK [12:17:26]SAM_PROTO_GetFieldsCounters done [12:17:26]requested_item shift.num is exist - process it [12:17:26]requested_item shift.opened is exist - process it [12:17:26]req_shift_opened [12:17:26]FM_GetShiftState [12:17:26]SAM_PROTO_GetShiftState [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 13 01 00 [12:17:26]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 0E 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6A [12:17:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:17:26]wFMCommunicate OK [12:17:26]SAM_PROTO_GetShiftState done [12:17:26]FM_GetShiftState done [12:17:26]req_shift_opened done [12:17:26]requested_item shift.open_date is exist - process it [12:17:26]req_shift_open_date [12:17:26]req_shift_open_date done [12:17:26]produce_requested_data done [12:17:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139683,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:17:26]process_action_free close_receipt [12:17:26]json_value_free [12:17:26]json_value_free done [12:17:26]process_json_proto returns [12:17:26]Send response to host [12:17:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139683,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:17:26]free response buf [12:17:26]execute_script done [12:17:26]execute_script returns [12:17:26]free content buf [12:17:26]Sock 9.Close socket [12:17:26]Sock 9.Thread stoped [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]accept exits with 8 [12:19:25]New connection [12:19:25]New thread 3067145572 created [12:19:25]Thread 3067288932 joined [12:19:25]Waiting for new connection... [12:19:25] Sock 8.Parse request [12:19:25]Sock 8.Check first char [12:19:25]Sock 8.First char is OK [12:19:25]request: POST /json_proto HTTP/1.0 [12:19:25]Method: POST [12:19:25]URL: /json_proto [12:19:25]Method is POST - this is cgi request [12:19:25]url: /json_proto [12:19:25]query_string will be loaded in cgi processing [12:19:25]execute_cgi json_proto POST (null) [12:19:25]execute_cgi path=json_proto method=POST [12:19:25]POST find Content-Length [12:19:25]Host: 172.17.45.67:8080 [12:19:25]Content-Length: 677 [12:19:25]Content-Type: application/json [12:19:25] [12:19:25]POST finish read [12:19:25]Found Content-Length = 677 [12:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:25]execute_script... [12:19: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)593530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:25]POST & json_proto [12:19:25]process_json_proto [12:19:25]json parsed OK: [12:19:25]protocol is kg_v1.0 [12:19:25]action value=close_receipt [12:19:25]process_action close_receipt [12:19:25]cmd_close_receipt [12:19:25]MH_GetDate [12:19:25]Write to MH i2c: F0 00 00 5A 03 4C [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: F0 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: F0 09 00 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: F0 09 00 5A 03 00 CD 89 C4 66 5F 7F 2B 66 44 [12:19:25]GetLastDocTimeStamp 1724156243 [12:19:25]current date 1724156365 [12:19:25]FM_GetShiftState [12:19:25]SAM_PROTO_GetShiftState [12:19:25]wFMCommunicate request_size=4 [12:19:25]MH_SAM_APDU [12:19:25]CAPDU: 80 13 01 00 [12:19:25]Write to MH i2c: E2 08 00 5B 03 80 13 01 00 00 00 00 00 DB [12:19:25]Write i2c OK [12:19:25]MH_I2C_Read... [12:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:25]Read from MH i2c: E2 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: E2 0E 00 [12:19:25]MH_I2C_Read... [12:19:25]Read from MH i2c: E2 0E 00 5B 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6C [12:19:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:19:25]wFMCommunicate OK [12:19:25]SAM_PROTO_GetShiftState done [12:19:25]FM_GetShiftState done [12:19:25]opened in 1724113785 [12:19:25]opened+sec_in_day 1724200185 [12:19:25]quantity*price = 50036 [12:19:25]sum+1 = 50037 [12:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 156 20.08.2024 12:19 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139684 ФПД: 47064470610305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121925&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139684&fm=47064470610305&tin=02508201610067®Number=0000000000092569&sum=50000 [12:19:26]StoreToDocumentArchive [12:19:26]shift 453 fd 139684 [12:19:26]save to /storage/0453/doc_00139684 [12:19:26]save last doc name /storage/0453/doc_00139684 to /storage/kkm_last_doc_name [12:19:26]save OK [12:19:26]Clear old archive folders... [12:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:26]tlvbuf is 01FFDAE0 [12:19:26]SAM_PROTO_ClearQueue [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 09 00 00 [12:19:26]Write to MH i2c: E2 08 00 68 03 80 09 00 00 00 00 00 00 DD [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]SAM_PROTO_ClearQueue done [12:19:26]KKMCreateOFDPacket [12:19:26]OFDProtocolAddRootSTLVToBuf [12:19:26]FM_MakeSignedData [12:19:26]FM_MakeSignedData [12:19:26]SAM_PROTO_SignData [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 0D 01 02 [12:19:26]Write to MH i2c: E2 08 00 69 03 80 0D 01 02 00 00 00 00 E5 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]wFMCommunicate request_size=255 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 CD 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 21 02 00 35 04 06 00 2A [12:19:26]Write to MH i2c: E2 02 01 6A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 CD 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 21 02 00 35 04 06 00 2A 00 00 41 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]wFMCommunicate request_size=10 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 0D 02 02 05 CE 0D 0D 61 81 [12:19:26]Write to MH i2c: E2 0D 00 6B 03 80 0D 02 02 05 00 CE 0D 0D 61 81 00 00 BC [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [12:19:26]RAPDU: 90 00 [12:19:26]wFMCommunicate OK [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 0D 03 02 [12:19:26]Write to MH i2c: E2 08 00 6C 03 80 0D 03 02 00 00 00 00 EA [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0B 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0B 00 6C 03 00 00 26 A5 40 F8 1E 2F ED 90 00 28 [12:19:26]RAPDU: 00 26 A5 40 F8 1E 2F ED 90 00 [12:19:26]wFMCommunicate OK [12:19:26]SAM_PROTO_SignData done [12:19:26]FM_MakeSignedData done [12:19:26]CreateOFDProtocolMessage [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 11 00 00 [12:19:26]Write to MH i2c: E2 08 00 6D 03 80 11 00 00 00 00 00 00 EA [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 17 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 17 00 6D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 41 [12:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:19:26]wFMCommunicate OK [12:19:26]CreateOFDProtocolMessage done [12:19:26]OFDSenderStorePacket 139684 [12:19:26]StoreOFDPacket docnum=139684 [12:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AA 92 07 01 5C 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 CD 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 21 02 00 35 04 06 00 2A CE 0D 0D 61 81 00 26 A5 40 F8 1E 2F ED [12:19:26]CheckFolder [12:19:26]dirname=/storage/ofd_packets [12:19:26]CheckFolder done [12:19:26]ProducePacketName [12:19:26]name=ofd_packets/00139684 [12:19:26]NVStorageSaveData ofd_packets/00139684 [12:19:26]File name is /storage/ofd_packets/00139684 [12:19:26]Write 301 bytes [12:19:26]NVStorageSaveData done [12:19:26]OFDSenderStorePacket done [12:19:26]KKMCreateOFDPacket done [12:19:26]NVStorageSaveData kkm_last_timestamp [12:19:26]File name is /storage/kkm_last_timestamp [12:19:26]Write 4 bytes [12:19:26]NVStorageSaveData done [12:19:26]ExternCall_PrintAddStr [12:19:26]wPrintStart [12:19:26]Write to MH i2c: 01 00 00 6E 03 71 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 07 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: 01 07 00 6E 03 00 00 00 00 00 FF 0F 86 [12:19:26]RasterBufferAndPrint [12:19:26]line Счет N : (1)593530 [12:19:26]line ИНН: 02508201610067 [12:19:26]line Контрольно-Кассовый Чек [12:19:26]line ПРОДАЖА [12:19:26]line ТРК (МРК, ГНК) : 42 [12:19:26]line Товар: 2710124130 [12:19:26]line Аи-92-К-5 [12:19:26]line 7.380 * 67.80 [12:19:26]line = 500.36 [12:19:26]line НДС 12% НСП 1% [12:19:26]line > о реализуемом товаре [12:19:26]line ОКРУГЛЕНИЕ: -0.36 [12:19:26]line ИТОГО: 500.00 [12:19:26]line Внесено: 500.00 [12:19:26]line СДАЧА: 0.00 [12:19:26]line НСП 1% : 4.43 [12:19:26]line НДС 12% : 53.14 [12:19:26]line Наличными: 500.00 [12:19:26]line Безнал.: 0.00 [12:19:26]line Место: АЗС № 136 "Партнер Нефть" [12:19:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:19:26]line СНО: Общий режим [12:19:26]line Чек 156 20.08.2024 12:19 [12:19:26]line Смена: 453 ФФД: 1.0 [12:19:26]line ЗНМ: 0300000067 [12:19:26]line РНМ: 0000000000092569 [12:19:26]line Версия ККМ: 001 [12:19:26]line ФМ: 0000000000871776 [12:19:26]line ФД: 139684 [12:19:26]line ФПД: 47064470610305 [12:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T121925&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139684&fm=47064470610305&tin=02508201610067®Number=0000000000092569&sum=50000 [12:19:27]OFD Sender: Processing packet 139684 [packets to send 137, broken 136] [12:19:27]ProducePacketName [12:19:27]name=ofd_packets/00139684 [12:19:27]OFD Sender: To server: pG, [12:19:27]CommunicateWithHost lk.salyk.kg:30040 [12:19:27]ConnectInit lk.salyk.kg [12:19:27]written 0, free lines is 4095 [12:19:27]Connected sock=10 [12:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AA 92 07 01 5C 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 CD 89 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 21 02 00 35 04 06 00 2A CE 0D 0D 61 81 00 26 A5 40 F8 1E 2F ED [12:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 53 73 47 00 C8 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 21 02 00 F4 03 04 00 60 30 C4 66 B6 04 01 00 00 91 C9 AE 95 58 AC CD 77 [12:19:27]CommunicateWithHost err = 0 [12:19:27]CheckOFDResponse [12:19:27]1017 (14) - 77093643461234 [12:19:27]1041 (16) - 0000000000871776 [12:19:27]1040 (4) - 139684 [12:19:27]1012 (4) - 20.08.2024 05:57 [12:19:27]1206 (1) - 0 [12:19:27]OFD Sender: Remove packet 139684 [12:19:27]ProducePacketName [12:19:27]name=ofd_packets/00139684 [12:19:27]NVStorageDeleteData [12:19:27]Write to MH i2c: 01 00 00 99 03 9C [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: 01 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: 01 07 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 D4 0C 83 [12:19:27]RasterBufferAndPrint [12:19:27]line [12:19:27]line [12:19:27]line [12:19:27]line [12:19:27]line [12:19:27]written 0, free lines is 3292 [12:19:27]MH_Cut [12:19:27]Write to MH i2c: D1 01 00 A0 03 01 75 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: D1 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: D1 01 00 [12:19:27]MH_I2C_Read... [12:19:27]Read from MH i2c: D1 01 00 A0 03 00 74 [12:19:27]Write to MH i2c: 01 00 00 A1 03 A4 [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:28]OFD Sender: No OFD packet to send [12:19:28]*** Cut start [12:19:28]*** Partial cut [12:19:28]*** CUTSNS_PIN = 1 [12:19:28]*** CUTSNS_PIN = 0 [12:19:28]*** Brake cut motor [12:19:28]Read from MH i2c: 01 [12:19:28]MH_I2C_Read... [12:19:28]*** Stop cut motor [12:19:28]*** Cut end [12:19:28]Read from MH i2c: 01 07 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 FF 0F B9 [12:19:28]process_action close_receipt done [12:19:28]requested_data is exist [12:19:28]produce_requested_data [12:19:28]requested_item fm.sn is exist - process it [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 11 00 00 [12:19:28]Write to MH i2c: E2 08 00 A2 03 80 11 00 00 00 00 00 00 1F [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 A2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 76 [12:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:19:28]wFMCommunicate OK [12:19:28]requested_item fd.num is exist - process it [12:19:28]SAM_PROTO_GetFieldsCounters [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 13 00 00 [12:19:28]Write to MH i2c: E2 08 00 A3 03 80 13 00 00 00 00 00 00 22 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 62 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 62 00 A3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [12:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:29]wFMCommunicate OK [12:19:29]SAM_PROTO_GetFieldsCounters done [12:19:29]requested_item shift.num is exist - process it [12:19:29]requested_item shift.opened is exist - process it [12:19:29]req_shift_opened [12:19:29]FM_GetShiftState [12:19:29]SAM_PROTO_GetShiftState [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 13 01 00 [12:19:29]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B5 [12:19:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:19:29]wFMCommunicate OK [12:19:29]SAM_PROTO_GetShiftState done [12:19:29]FM_GetShiftState done [12:19:29]req_shift_opened done [12:19:29]requested_item shift.open_date is exist - process it [12:19:29]req_shift_open_date [12:19:29]req_shift_open_date done [12:19:29]produce_requested_data done [12:19:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139684,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:19:29]process_action_free close_receipt [12:19:29]json_value_free [12:19:29]json_value_free done [12:19:29]process_json_proto returns [12:19:29]Send response to host [12:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139684,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:19:29]free response buf [12:19:29]execute_script done [12:19:29]execute_script returns [12:19:29]free content buf [12:19:29]Sock 8.Close socket [12:19:29]Sock 8.Thread stoped [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:46]int [12:20:46]Write to MH i2c: 01 00 00 A5 03 A8 [12:20:46]*** FLAG_PRN_KEY set [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 A5 03 00 08 00 00 00 FF 0F C5 [12:20:46]state=0 [12:20:46]Key pressed [12:20:46]Feed [12:20:46]Write to MH i2c: D8 00 00 A6 03 80 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: D8 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: D8 01 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: D8 01 00 A6 03 00 81 [12:20:46]int [12:20:46]Write to MH i2c: 01 00 00 A7 03 AA [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 A7 03 00 48 00 00 00 3C 00 35 [12:20:46]state=2 [12:20:46]Key pressed [12:20:46]int [12:20:46]Write to MH i2c: 01 00 00 A8 03 AB [12:20:46]*** FLAG_PRN_KEY reset [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 F5 0F B6 [12:20:46]state=2 [12:20:46]Stop feed [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:50]accept exits with 9 [12:22:50]New connection [12:22:50]New thread 3067288932 created [12:22:50]Thread 3067145572 joined [12:22:50]Waiting for new connection... [12:22:50] Sock 9.Parse request [12:22:50]Sock 9.Check first char [12:22:50]Sock 9.First char is OK [12:22:50]request: POST /json_proto HTTP/1.0 [12:22:50]Method: POST [12:22:50]URL: /json_proto [12:22:50]Method is POST - this is cgi request [12:22:50]url: /json_proto [12:22:50]query_string will be loaded in cgi processing [12:22:50]execute_cgi json_proto POST (null) [12:22:50]execute_cgi path=json_proto method=POST [12:22:50]POST find Content-Length [12:22:50]Host: 172.17.45.67:8080 [12:22:50]Content-Length: 677 [12:22:50]Content-Type: application/json [12:22:50] [12:22:50]POST finish read [12:22:50]Found Content-Length = 677 [12:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:50]execute_script... [12:22: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)593531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:50]POST & json_proto [12:22:50]process_json_proto [12:22:50]json parsed OK: [12:22:50]protocol is kg_v1.0 [12:22:50]action value=close_receipt [12:22:50]process_action close_receipt [12:22:50]cmd_close_receipt [12:22:50]MH_GetDate [12:22:50]Write to MH i2c: F0 00 00 A9 03 9B [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: F0 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: F0 09 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: F0 09 00 A9 03 00 9B 8A C4 66 5F 7F 2B 66 62 [12:22:50]GetLastDocTimeStamp 1724156365 [12:22:50]current date 1724156571 [12:22:50]FM_GetShiftState [12:22:50]SAM_PROTO_GetShiftState [12:22:50]wFMCommunicate request_size=4 [12:22:50]MH_SAM_APDU [12:22:50]CAPDU: 80 13 01 00 [12:22:50]Write to MH i2c: E2 08 00 AA 03 80 13 01 00 00 00 00 00 2A [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:50]Read from MH i2c: E2 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 0E 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 0E 00 AA 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BB [12:22:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:22:50]wFMCommunicate OK [12:22:50]SAM_PROTO_GetShiftState done [12:22:50]FM_GetShiftState done [12:22:50]opened in 1724113785 [12:22:50]opened+sec_in_day 1724200185 [12:22:50]quantity*price = 40002 [12:22:50]sum+1 = 40003 [12:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 157 20.08.2024 12:22 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139685 ФПД: 107863492074958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T122251&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139685&fm=107863492074958&tin=02508201610067®Number=0000000000092569&sum=40000 [12:22:52]StoreToDocumentArchive [12:22:52]shift 453 fd 139685 [12:22:52]save to /storage/0453/doc_00139685 [12:22:52]save last doc name /storage/0453/doc_00139685 to /storage/kkm_last_doc_name [12:22:52]save OK [12:22:52]Clear old archive folders... [12:22:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:52]tlvbuf is 01FFEA10 [12:22:52]SAM_PROTO_ClearQueue [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 09 00 00 [12:22:52]Write to MH i2c: E2 08 00 B7 03 80 09 00 00 00 00 00 00 2C [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [12:22:52]RAPDU: 90 00 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_ClearQueue done [12:22:52]KKMCreateOFDPacket [12:22:52]OFDProtocolAddRootSTLVToBuf [12:22:52]FM_MakeSignedData [12:22:52]FM_MakeSignedData [12:22:52]SAM_PROTO_SignData [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 0D 01 02 [12:22:52]Write to MH i2c: E2 08 00 B8 03 80 0D 01 02 00 00 00 00 34 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [12:22:52]RAPDU: 90 00 [12:22:52]wFMCommunicate OK [12:22:52]wFMCommunicate request_size=255 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 9B 8A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 21 02 00 35 04 06 00 62 [12:22:52]Write to MH i2c: E2 02 01 B9 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 9B 8A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 21 02 00 35 04 06 00 62 00 00 7E [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [12:22:52]RAPDU: 90 00 [12:22:52]wFMCommunicate OK [12:22:52]wFMCommunicate request_size=10 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 0D 02 02 05 19 ED 21 1D CE [12:22:52]Write to MH i2c: E2 0D 00 BA 03 80 0D 02 02 05 00 19 ED 21 1D CE 00 00 53 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [12:22:52]RAPDU: 90 00 [12:22:52]wFMCommunicate OK [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 0D 03 02 [12:22:52]Write to MH i2c: E2 08 00 BB 03 80 0D 03 02 00 00 00 00 39 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0B 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0B 00 BB 03 00 33 18 94 91 E0 E2 AF EF 90 00 0A [12:22:52]RAPDU: 33 18 94 91 E0 E2 AF EF 90 00 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_SignData done [12:22:52]FM_MakeSignedData done [12:22:52]CreateOFDProtocolMessage [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 11 00 00 [12:22:52]Write to MH i2c: E2 08 00 BC 03 80 11 00 00 00 00 00 00 39 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 17 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 17 00 BC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [12:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:22:52]wFMCommunicate OK [12:22:52]CreateOFDProtocolMessage done [12:22:52]OFDSenderStorePacket 139685 [12:22:52]StoreOFDPacket docnum=139685 [12:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 4F 07 01 F8 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 9B 8A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 21 02 00 35 04 06 00 62 19 ED 21 1D CE 33 18 94 91 E0 E2 AF EF [12:22:52]CheckFolder [12:22:52]dirname=/storage/ofd_packets [12:22:52]CheckFolder done [12:22:52]ProducePacketName [12:22:52]name=ofd_packets/00139685 [12:22:52]NVStorageSaveData ofd_packets/00139685 [12:22:52]File name is /storage/ofd_packets/00139685 [12:22:52]Write 301 bytes [12:22:52]NVStorageSaveData done [12:22:52]OFDSenderStorePacket done [12:22:52]KKMCreateOFDPacket done [12:22:52]NVStorageSaveData kkm_last_timestamp [12:22:52]File name is /storage/kkm_last_timestamp [12:22:52]Write 4 bytes [12:22:52]NVStorageSaveData done [12:22:52]ExternCall_PrintAddStr [12:22:52]wPrintStart [12:22:52]Write to MH i2c: 01 00 00 BD 03 C0 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 07 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 FF 0F D5 [12:22:52]RasterBufferAndPrint [12:22:52]line Счет N : (1)593531 [12:22:52]line ИНН: 02508201610067 [12:22:52]line Контрольно-Кассовый Чек [12:22:52]line ПРОДАЖА [12:22:52]line ТРК (МРК, ГНК) : 42 [12:22:52]line Товар: 2710124130 [12:22:52]line Аи-92-К-5 [12:22:52]line 5.900 * 67.80 [12:22:52]line = 400.02 [12:22:52]line НДС 12% НСП 1% [12:22:52]line > о реализуемом товаре [12:22:52]line ОКРУГЛЕНИЕ: -0.02 [12:22:52]line ИТОГО: 400.00 [12:22:52]line Внесено: 400.00 [12:22:52]line СДАЧА: 0.00 [12:22:52]line НСП 1% : 3.54 [12:22:52]line НДС 12% : 42.48 [12:22:52]line Наличными: 400.00 [12:22:52]line Безнал.: 0.00 [12:22:52]line Место: АЗС № 136 "Партнер Нефть" [12:22:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:22:52]line СНО: Общий режим [12:22:52]line Чек 157 20.08.2024 12:22 [12:22:52]line Смена: 453 ФФД: 1.0 [12:22:52]line ЗНМ: 0300000067 [12:22:52]line РНМ: 0000000000092569 [12:22:52]line Версия ККМ: 001 [12:22:52]line ФМ: 0000000000871776 [12:22:52]line ФД: 139685 [12:22:52]line ФПД: 107863492074958 [12:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T122251&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139685&fm=107863492074958&tin=02508201610067®Number=0000000000092569&sum=40000 [12:22:52]written 0, free lines is 4095 [12:22:52]OFD Sender: Processing packet 139685 [packets to send 137, broken 136] [12:22:52]ProducePacketName [12:22:52]name=ofd_packets/00139685 [12:22:52]OFD Sender: To server: pG, [12:22:52]CommunicateWithHost lk.salyk.kg:30040 [12:22:52]ConnectInit lk.salyk.kg [12:22:53]Connected sock=8 [12:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 4F 07 01 F8 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 9B 8A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 21 02 00 35 04 06 00 62 19 ED 21 1D CE 33 18 94 91 E0 E2 AF EF [12:22:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 89 0A 47 00 03 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 21 02 00 F4 03 04 00 2E 31 C4 66 B6 04 01 00 00 C8 3B 2C 13 D0 3E 21 85 [12:22:53]CommunicateWithHost err = 0 [12:22:53]CheckOFDResponse [12:22:53]1017 (14) - 77093643461234 [12:22:53]1041 (16) - 0000000000871776 [12:22:53]1040 (4) - 139685 [12:22:53]1012 (4) - 20.08.2024 06:01 [12:22:53]1206 (1) - 0 [12:22:53]OFD Sender: Remove packet 139685 [12:22:53]ProducePacketName [12:22:53]name=ofd_packets/00139685 [12:22:53]NVStorageDeleteData [12:22:53]Write to MH i2c: 01 00 00 E8 03 EB [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: 01 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: 01 07 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: 01 07 00 E8 03 00 00 00 00 00 D9 0C D7 [12:22:53]RasterBufferAndPrint [12:22:53]line [12:22:53]line [12:22:53]line [12:22:53]line [12:22:53]line [12:22:53]written 0, free lines is 3298 [12:22:53]MH_Cut [12:22:53]Write to MH i2c: D1 01 00 EF 03 01 C4 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: D1 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: D1 01 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: D1 01 00 EF 03 00 C3 [12:22:53]Write to MH i2c: 01 00 00 F0 03 F3 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]OFD Sender: No OFD packet to send [12:22:54]*** Cut start [12:22:54]*** Partial cut [12:22:54]*** CUTSNS_PIN = 1 [12:22:54]*** CUTSNS_PIN = 0 [12:22:54]*** Brake cut motor [12:22:54]Read from MH i2c: 01 [12:22:54]MH_I2C_Read... [12:22:54]*** Stop cut motor [12:22:54]*** Cut end [12:22:54]Read from MH i2c: 01 07 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [12:22:54]process_action close_receipt done [12:22:54]requested_data is exist [12:22:54]produce_requested_data [12:22:54]requested_item fm.sn is exist - process it [12:22:54]wFMCommunicate request_size=4 [12:22:54]MH_SAM_APDU [12:22:54]CAPDU: 80 11 00 00 [12:22:54]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [12:22:54]Write i2c OK [12:22:54]MH_I2C_Read... [12:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:54]Read from MH i2c: E2 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 17 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C5 [12:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:22:54]wFMCommunicate OK [12:22:54]requested_item fd.num is exist - process it [12:22:54]SAM_PROTO_GetFieldsCounters [12:22:54]wFMCommunicate request_size=4 [12:22:54]MH_SAM_APDU [12:22:54]CAPDU: 80 13 00 00 [12:22:54]Write to MH i2c: E2 08 00 F2 03 80 13 00 00 00 00 00 00 71 [12:22:54]Write i2c OK [12:22:54]MH_I2C_Read... [12:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:54]Read from MH i2c: E2 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 62 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 62 00 F2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [12:22:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:54]wFMCommunicate OK [12:22:54]SAM_PROTO_GetFieldsCounters done [12:22:54]requested_item shift.num is exist - process it [12:22:54]requested_item shift.opened is exist - process it [12:22:54]req_shift_opened [12:22:54]FM_GetShiftState [12:22:54]SAM_PROTO_GetShiftState [12:22:54]wFMCommunicate request_size=4 [12:22:54]MH_SAM_APDU [12:22:54]CAPDU: 80 13 01 00 [12:22:54]Write to MH i2c: E2 08 00 F3 03 80 13 01 00 00 00 00 00 73 [12:22:54]Write i2c OK [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 [12:22:55]MH_I2C_Read... [12:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:55]Read from MH i2c: E2 0E 00 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: E2 0E 00 F3 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 04 [12:22:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:22:55]wFMCommunicate OK [12:22:55]SAM_PROTO_GetShiftState done [12:22:55]FM_GetShiftState done [12:22:55]req_shift_opened done [12:22:55]requested_item shift.open_date is exist - process it [12:22:55]req_shift_open_date [12:22:55]req_shift_open_date done [12:22:55]produce_requested_data done [12:22:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139685,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:22:55]process_action_free close_receipt [12:22:55]json_value_free [12:22:55]json_value_free done [12:22:55]process_json_proto returns [12:22:55]Send response to host [12:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139685,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:22:55]free response buf [12:22:55]execute_script done [12:22:55]execute_script returns [12:22:55]free content buf [12:22:55]Sock 9.Close socket [12:22:55]Sock 9.Thread stoped [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:22]accept exits with 10 [12:24:22]New connection [12:24:22]New thread 3067145572 created [12:24:22]Thread 3067288932 joined [12:24:22]Waiting for new connection... [12:24:22] Sock 10.Parse request [12:24:22]Sock 10.Check first char [12:24:22]Sock 10.First char is OK [12:24:22]request: POST /json_proto HTTP/1.0 [12:24:22]Method: POST [12:24:22]URL: /json_proto [12:24:22]Method is POST - this is cgi request [12:24:22]url: /json_proto [12:24:22]query_string will be loaded in cgi processing [12:24:22]execute_cgi json_proto POST (null) [12:24:22]execute_cgi path=json_proto method=POST [12:24:22]POST find Content-Length [12:24:22]Host: 172.17.45.67:8080 [12:24:22]Content-Length: 677 [12:24:22]Content-Type: application/json [12:24:22] [12:24:22]POST finish read [12:24:22]Found Content-Length = 677 [12:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:22]execute_script... [12:24: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)593532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:22]POST & json_proto [12:24:22]process_json_proto [12:24:22]json parsed OK: [12:24:22]protocol is kg_v1.0 [12:24:22]action value=close_receipt [12:24:22]process_action close_receipt [12:24:22]cmd_close_receipt [12:24:22]MH_GetDate [12:24:22]Write to MH i2c: F0 00 00 F4 03 E6 [12:24:22]Write i2c OK [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: F0 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: F0 09 00 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: F0 09 00 F4 03 00 F6 8A C4 66 5F 7F 2B 66 08 [12:24:22]GetLastDocTimeStamp 1724156571 [12:24:22]current date 1724156662 [12:24:22]FM_GetShiftState [12:24:22]SAM_PROTO_GetShiftState [12:24:22]wFMCommunicate request_size=4 [12:24:22]MH_SAM_APDU [12:24:22]CAPDU: 80 13 01 00 [12:24:22]Write to MH i2c: E2 08 00 F5 03 80 13 01 00 00 00 00 00 75 [12:24:22]Write i2c OK [12:24:22]MH_I2C_Read... [12:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:22]Read from MH i2c: E2 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: E2 0E 00 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: E2 0E 00 F5 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 06 [12:24:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:24:22]wFMCommunicate OK [12:24:22]SAM_PROTO_GetShiftState done [12:24:22]FM_GetShiftState done [12:24:22]opened in 1724113785 [12:24:22]opened+sec_in_day 1724200185 [12:24:22]quantity*price = 30035 [12:24:22]sum+1 = 30036 [12:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 158 20.08.2024 12:24 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139686 ФПД: 265491975045426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T122422&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139686&fm=265491975045426&tin=02508201610067®Number=0000000000092569&sum=30000 [12:24:23]StoreToDocumentArchive [12:24:23]shift 453 fd 139686 [12:24:23]save to /storage/0453/doc_00139686 [12:24:23]save last doc name /storage/0453/doc_00139686 to /storage/kkm_last_doc_name [12:24:23]save OK [12:24:23]Clear old archive folders... [12:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:23]tlvbuf is 02019340 [12:24:23]SAM_PROTO_ClearQueue [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 09 00 00 [12:24:23]Write to MH i2c: E2 08 00 02 04 80 09 00 00 00 00 00 00 78 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [12:24:23]RAPDU: 90 00 [12:24:23]wFMCommunicate OK [12:24:23]SAM_PROTO_ClearQueue done [12:24:23]KKMCreateOFDPacket [12:24:23]OFDProtocolAddRootSTLVToBuf [12:24:23]FM_MakeSignedData [12:24:23]FM_MakeSignedData [12:24:23]SAM_PROTO_SignData [12:24:23]wFMCommunicate request_size=4 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 0D 01 02 [12:24:23]Write to MH i2c: E2 08 00 03 04 80 0D 01 02 00 00 00 00 80 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:23]Read from MH i2c: E2 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 [12:24:23]MH_I2C_Read... [12:24:23]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [12:24:23]RAPDU: 90 00 [12:24:23]wFMCommunicate OK [12:24:23]wFMCommunicate request_size=255 [12:24:23]MH_SAM_APDU [12:24:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F6 8A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 21 02 00 35 04 06 00 F1 [12:24:23]Write to MH i2c: E2 02 01 04 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F6 8A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 21 02 00 35 04 06 00 F1 00 00 F0 [12:24:23]Write i2c OK [12:24:23]MH_I2C_Read... [12:24:24]OFD Sender: No OFD packet to send [12:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 03 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [12:24:24]RAPDU: 90 00 [12:24:24]wFMCommunicate OK [12:24:24]wFMCommunicate request_size=10 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 0D 02 02 05 76 AA DD 01 32 [12:24:24]Write to MH i2c: E2 0D 00 05 04 80 0D 02 02 05 00 76 AA DD 01 32 00 00 BD [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 03 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [12:24:24]RAPDU: 90 00 [12:24:24]wFMCommunicate OK [12:24:24]wFMCommunicate request_size=4 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 0D 03 02 [12:24:24]Write to MH i2c: E2 08 00 06 04 80 0D 03 02 00 00 00 00 85 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 0B 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 0B 00 06 04 00 FE C9 1E 2C 4E 55 B0 27 90 00 11 [12:24:24]RAPDU: FE C9 1E 2C 4E 55 B0 27 90 00 [12:24:24]wFMCommunicate OK [12:24:24]SAM_PROTO_SignData done [12:24:24]FM_MakeSignedData done [12:24:24]CreateOFDProtocolMessage [12:24:24]wFMCommunicate request_size=4 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 11 00 00 [12:24:24]Write to MH i2c: E2 08 00 07 04 80 11 00 00 00 00 00 00 85 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 17 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 17 00 07 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DC [12:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:24]wFMCommunicate OK [12:24:24]CreateOFDProtocolMessage done [12:24:24]OFDSenderStorePacket 139686 [12:24:24]StoreOFDPacket docnum=139686 [12:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DB B3 07 01 51 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F6 8A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 21 02 00 35 04 06 00 F1 76 AA DD 01 32 FE C9 1E 2C 4E 55 B0 27 [12:24:24]CheckFolder [12:24:24]dirname=/storage/ofd_packets [12:24:24]CheckFolder done [12:24:24]ProducePacketName [12:24:24]name=ofd_packets/00139686 [12:24:24]NVStorageSaveData ofd_packets/00139686 [12:24:24]File name is /storage/ofd_packets/00139686 [12:24:24]Write 301 bytes [12:24:24]NVStorageSaveData done [12:24:24]OFDSenderStorePacket done [12:24:24]KKMCreateOFDPacket done [12:24:24]NVStorageSaveData kkm_last_timestamp [12:24:24]File name is /storage/kkm_last_timestamp [12:24:24]Write 4 bytes [12:24:24]NVStorageSaveData done [12:24:24]ExternCall_PrintAddStr [12:24:24]wPrintStart [12:24:24]Write to MH i2c: 01 00 00 08 04 0C [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 07 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 07 00 08 04 00 00 00 00 00 FF 0F 21 [12:24:24]RasterBufferAndPrint [12:24:24]line Счет N : (1)593532 [12:24:24]line ИНН: 02508201610067 [12:24:24]line Контрольно-Кассовый Чек [12:24:24]line ПРОДАЖА [12:24:24]line ТРК (МРК, ГНК) : 32 [12:24:24]line Товар: 2710124130 [12:24:24]line Аи-92-К-5 [12:24:24]line 4.430 * 67.80 [12:24:24]line = 300.35 [12:24:24]line НДС 12% НСП 1% [12:24:24]line > о реализуемом товаре [12:24:24]line ОКРУГЛЕНИЕ: -0.35 [12:24:24]line ИТОГО: 300.00 [12:24:24]line Внесено: 300.00 [12:24:24]line СДАЧА: 0.00 [12:24:24]line НСП 1% : 2.66 [12:24:24]line НДС 12% : 31.90 [12:24:24]line Наличными: 300.00 [12:24:24]line Безнал.: 0.00 [12:24:24]line Место: АЗС № 136 "Партнер Нефть" [12:24:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:24:24]line СНО: Общий режим [12:24:24]line Чек 158 20.08.2024 12:24 [12:24:24]line Смена: 453 ФФД: 1.0 [12:24:24]line ЗНМ: 0300000067 [12:24:24]line РНМ: 0000000000092569 [12:24:24]line Версия ККМ: 001 [12:24:24]line ФМ: 0000000000871776 [12:24:24]line ФД: 139686 [12:24:24]line ФПД: 265491975045426 [12:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T122422&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139686&fm=265491975045426&tin=02508201610067®Number=0000000000092569&sum=30000 [12:24:24]OFD Sender: Processing packet 139686 [packets to send 137, broken 136] [12:24:24]ProducePacketName [12:24:24]name=ofd_packets/00139686 [12:24:24]OFD Sender: To server: pG, [12:24:24]CommunicateWithHost lk.salyk.kg:30040 [12:24:24]ConnectInit lk.salyk.kg [12:24:24]written 0, free lines is 4095 [12:24:24]Connected sock=9 [12:24:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DB B3 07 01 51 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F6 8A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 21 02 00 35 04 06 00 F1 76 AA DD 01 32 FE C9 1E 2C 4E 55 B0 27 [12:24:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1F 14 47 00 4B 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 21 02 00 F4 03 04 00 8A 31 C4 66 B6 04 01 00 00 4D 93 86 82 F3 20 A9 53 [12:24:25]CommunicateWithHost err = 0 [12:24:25]CheckOFDResponse [12:24:25]1017 (14) - 77093643461234 [12:24:25]1041 (16) - 0000000000871776 [12:24:25]1040 (4) - 139686 [12:24:25]1012 (4) - 20.08.2024 06:02 [12:24:25]1206 (1) - 0 [12:24:25]OFD Sender: Remove packet 139686 [12:24:25]ProducePacketName [12:24:25]name=ofd_packets/00139686 [12:24:25]NVStorageDeleteData [12:24:25]Write to MH i2c: 01 00 00 33 04 37 [12:24:25]Write i2c OK [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: 01 [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: 01 07 00 [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 CE 0C 18 [12:24:25]RasterBufferAndPrint [12:24:25]line [12:24:25]line [12:24:25]line [12:24:25]line [12:24:25]line [12:24:25]written 0, free lines is 3286 [12:24:25]MH_Cut [12:24:25]Write to MH i2c: D1 01 00 3A 04 01 10 [12:24:25]Write i2c OK [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: D1 [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: D1 01 00 [12:24:25]MH_I2C_Read... [12:24:25]Read from MH i2c: D1 01 00 3A 04 00 0F [12:24:25]Write to MH i2c: 01 00 00 3B 04 3F [12:24:25]Write i2c OK [12:24:25]MH_I2C_Read... [12:24:25]OFD Sender: No OFD packet to send [12:24:25]*** Cut start [12:24:25]*** Partial cut [12:24:25]*** CUTSNS_PIN = 1 [12:24:25]*** CUTSNS_PIN = 0 [12:24:26]*** Brake cut motor [12:24:26]Read from MH i2c: 01 [12:24:26]MH_I2C_Read... [12:24:26]*** Stop cut motor [12:24:26]*** Cut end [12:24:26]Read from MH i2c: 01 07 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [12:24:26]process_action close_receipt done [12:24:26]requested_data is exist [12:24:26]produce_requested_data [12:24:26]requested_item fm.sn is exist - process it [12:24:26]wFMCommunicate request_size=4 [12:24:26]MH_SAM_APDU [12:24:26]CAPDU: 80 11 00 00 [12:24:26]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:26]Read from MH i2c: E2 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 17 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 11 [12:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:26]wFMCommunicate OK [12:24:26]requested_item fd.num is exist - process it [12:24:26]SAM_PROTO_GetFieldsCounters [12:24:26]wFMCommunicate request_size=4 [12:24:26]MH_SAM_APDU [12:24:26]CAPDU: 80 13 00 00 [12:24:26]Write to MH i2c: E2 08 00 3D 04 80 13 00 00 00 00 00 00 BD [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:26]Read from MH i2c: E2 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 62 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 62 00 3D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [12:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:26]wFMCommunicate OK [12:24:26]SAM_PROTO_GetFieldsCounters done [12:24:26]requested_item shift.num is exist - process it [12:24:26]requested_item shift.opened is exist - process it [12:24:26]req_shift_opened [12:24:26]FM_GetShiftState [12:24:26]SAM_PROTO_GetShiftState [12:24:26]wFMCommunicate request_size=4 [12:24:26]MH_SAM_APDU [12:24:26]CAPDU: 80 13 01 00 [12:24:26]Write to MH i2c: E2 08 00 3E 04 80 13 01 00 00 00 00 00 BF [12:24:26]Write i2c OK [12:24:26]MH_I2C_Read... [12:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:26]Read from MH i2c: E2 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 0E 00 [12:24:26]MH_I2C_Read... [12:24:26]Read from MH i2c: E2 0E 00 3E 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 50 [12:24:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:24:26]wFMCommunicate OK [12:24:26]SAM_PROTO_GetShiftState done [12:24:26]FM_GetShiftState done [12:24:26]req_shift_opened done [12:24:26]requested_item shift.open_date is exist - process it [12:24:26]req_shift_open_date [12:24:26]req_shift_open_date done [12:24:26]produce_requested_data done [12:24:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139686,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:24:26]process_action_free close_receipt [12:24:26]json_value_free [12:24:26]json_value_free done [12:24:26]process_json_proto returns [12:24:26]Send response to host [12:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139686,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:24:26]free response buf [12:24:26]execute_script done [12:24:26]execute_script returns [12:24:26]free content buf [12:24:26]Sock 10.Close socket [12:24:26]Sock 10.Thread stoped [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:16]accept exits with 8 [12:26:16]New connection [12:26:16]New thread 3067288932 created [12:26:16]Thread 3067145572 joined [12:26:16]Waiting for new connection... [12:26:16] Sock 8.Parse request [12:26:16]Sock 8.Check first char [12:26:16]Sock 8.First char is OK [12:26:16]request: POST /json_proto HTTP/1.0 [12:26:16]Method: POST [12:26:16]URL: /json_proto [12:26:16]Method is POST - this is cgi request [12:26:16]url: /json_proto [12:26:16]query_string will be loaded in cgi processing [12:26:16]execute_cgi json_proto POST (null) [12:26:16]execute_cgi path=json_proto method=POST [12:26:16]POST find Content-Length [12:26:16]Host: 172.17.45.67:8080 [12:26:16]Content-Length: 682 [12:26:16]Content-Type: application/json [12:26:16] [12:26:16]POST finish read [12:26:16]Found Content-Length = 682 [12:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [12:26:16]execute_script... [12:26: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)593533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [12:26:16]POST & json_proto [12:26:16]process_json_proto [12:26:16]json parsed OK: [12:26:16]protocol is kg_v1.0 [12:26:16]action value=close_receipt [12:26:16]process_action close_receipt [12:26:16]cmd_close_receipt [12:26:16]MH_GetDate [12:26:16]Write to MH i2c: F0 00 00 3F 04 32 [12:26:16]Write i2c OK [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: F0 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: F0 09 00 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: F0 09 00 3F 04 00 68 8B C4 66 5F 7F 2B 66 C7 [12:26:16]GetLastDocTimeStamp 1724156662 [12:26:16]current date 1724156776 [12:26:16]FM_GetShiftState [12:26:16]SAM_PROTO_GetShiftState [12:26:16]wFMCommunicate request_size=4 [12:26:16]MH_SAM_APDU [12:26:16]CAPDU: 80 13 01 00 [12:26:16]Write to MH i2c: E2 08 00 40 04 80 13 01 00 00 00 00 00 C1 [12:26:16]Write i2c OK [12:26:16]MH_I2C_Read... [12:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:16]Read from MH i2c: E2 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: E2 0E 00 [12:26:16]MH_I2C_Read... [12:26:16]Read from MH i2c: E2 0E 00 40 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 52 [12:26:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:26:16]wFMCommunicate OK [12:26:16]SAM_PROTO_GetShiftState done [12:26:16]FM_GetShiftState done [12:26:16]opened in 1724113785 [12:26:16]opened+sec_in_day 1724200185 [12:26:16]quantity*price = 50063 [12:26:16]sum+1 = 50064 [12:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 159 20.08.2024 12:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139687 ФПД: 126420361750146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T122616&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139687&fm=126420361750146&tin=02508201610067®Number=0000000000092569&sum=50000 [12:26:17]StoreToDocumentArchive [12:26:17]shift 453 fd 139687 [12:26:17]save to /storage/0453/doc_00139687 [12:26:17]save last doc name /storage/0453/doc_00139687 to /storage/kkm_last_doc_name [12:26:17]save OK [12:26:17]Clear old archive folders... [12:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:26:17]tlvbuf is 01FFCA10 [12:26:17]SAM_PROTO_ClearQueue [12:26:17]wFMCommunicate request_size=4 [12:26:17]MH_SAM_APDU [12:26:17]CAPDU: 80 09 00 00 [12:26:17]Write to MH i2c: E2 08 00 4D 04 80 09 00 00 00 00 00 00 C3 [12:26:17]Write i2c OK [12:26:17]MH_I2C_Read... [12:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:17]Read from MH i2c: E2 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: E2 03 00 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [12:26:17]RAPDU: 90 00 [12:26:17]wFMCommunicate OK [12:26:17]SAM_PROTO_ClearQueue done [12:26:17]KKMCreateOFDPacket [12:26:17]OFDProtocolAddRootSTLVToBuf [12:26:17]FM_MakeSignedData [12:26:17]FM_MakeSignedData [12:26:17]SAM_PROTO_SignData [12:26:17]wFMCommunicate request_size=4 [12:26:17]MH_SAM_APDU [12:26:17]CAPDU: 80 0D 01 02 [12:26:17]Write to MH i2c: E2 08 00 4E 04 80 0D 01 02 00 00 00 00 CB [12:26:17]Write i2c OK [12:26:17]MH_I2C_Read... [12:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:17]Read from MH i2c: E2 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: E2 03 00 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [12:26:17]RAPDU: 90 00 [12:26:17]wFMCommunicate OK [12:26:17]wFMCommunicate request_size=255 [12:26:17]MH_SAM_APDU [12:26:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 68 8B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 21 02 00 35 04 06 00 [12:26:17]Write to MH i2c: E2 02 01 4F 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 68 8B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 21 02 00 35 04 06 00 00 00 16 [12:26:17]Write i2c OK [12:26:17]MH_I2C_Read... [12:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:18]Read from MH i2c: E2 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 03 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [12:26:18]RAPDU: 90 00 [12:26:18]wFMCommunicate OK [12:26:18]wFMCommunicate request_size=11 [12:26:18]MH_SAM_APDU [12:26:18]CAPDU: 80 0D 02 02 06 72 FA 88 C1 26 82 [12:26:18]Write to MH i2c: E2 0E 00 50 04 80 0D 02 02 06 00 72 FA 88 C1 26 82 00 00 37 [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:18]Read from MH i2c: E2 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 03 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [12:26:18]RAPDU: 90 00 [12:26:18]wFMCommunicate OK [12:26:18]wFMCommunicate request_size=4 [12:26:18]MH_SAM_APDU [12:26:18]CAPDU: 80 0D 03 02 [12:26:18]Write to MH i2c: E2 08 00 51 04 80 0D 03 02 00 00 00 00 D0 [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:18]Read from MH i2c: E2 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 0B 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 0B 00 51 04 00 62 4A 7B 61 FC F2 27 1E 90 00 8C [12:26:18]RAPDU: 62 4A 7B 61 FC F2 27 1E 90 00 [12:26:18]wFMCommunicate OK [12:26:18]SAM_PROTO_SignData done [12:26:18]FM_MakeSignedData done [12:26:18]CreateOFDProtocolMessage [12:26:18]wFMCommunicate request_size=4 [12:26:18]MH_SAM_APDU [12:26:18]CAPDU: 80 11 00 00 [12:26:18]Write to MH i2c: E2 08 00 52 04 80 11 00 00 00 00 00 00 D0 [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:18]Read from MH i2c: E2 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 17 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: E2 17 00 52 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [12:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:26:18]wFMCommunicate OK [12:26:18]CreateOFDProtocolMessage done [12:26:18]OFDSenderStorePacket 139687 [12:26:18]StoreOFDPacket docnum=139687 [12:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 4E 82 08 01 47 04 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 68 8B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 21 02 00 35 04 06 00 72 FA 88 C1 26 82 62 4A 7B 61 FC F2 27 1E [12:26:18]CheckFolder [12:26:18]dirname=/storage/ofd_packets [12:26:18]CheckFolder done [12:26:18]ProducePacketName [12:26:18]name=ofd_packets/00139687 [12:26:18]NVStorageSaveData ofd_packets/00139687 [12:26:18]File name is /storage/ofd_packets/00139687 [12:26:18]Write 302 bytes [12:26:18]NVStorageSaveData done [12:26:18]OFDSenderStorePacket done [12:26:18]KKMCreateOFDPacket done [12:26:18]NVStorageSaveData kkm_last_timestamp [12:26:18]File name is /storage/kkm_last_timestamp [12:26:18]Write 4 bytes [12:26:18]NVStorageSaveData done [12:26:18]ExternCall_PrintAddStr [12:26:18]wPrintStart [12:26:18]Write to MH i2c: 01 00 00 53 04 57 [12:26:18]Write i2c OK [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: 01 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: 01 07 00 [12:26:18]MH_I2C_Read... [12:26:18]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 FF 0F 6C [12:26:18]RasterBufferAndPrint [12:26:18]line Счет N : (1)593533 [12:26:18]line ИНН: 02508201610067 [12:26:18]line Контрольно-Кассовый Чек [12:26:18]line ПРОДАЖА [12:26:18]line ТРК (МРК, ГНК) : 64 [12:26:18]line Товар: 2710194210 [12:26:18]line ДТ(л)-К-5 [12:26:18]line 6.570 * 76.20 [12:26:18]line = 500.63 [12:26:18]line НДС 12% НСП 1% [12:26:18]line > о реализуемом товаре [12:26:18]line ОКРУГЛЕНИЕ: -0.63 [12:26:18]line ИТОГО: 500.00 [12:26:18]line Внесено: 500.00 [12:26:18]line СДАЧА: 0.00 [12:26:18]line НСП 1% : 4.43 [12:26:18]line НДС 12% : 53.16 [12:26:18]line Наличными: 500.00 [12:26:18]line Безнал.: 0.00 [12:26:18]line Место: АЗС № 136 "Партнер Нефть" [12:26:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:26:18]line СНО: Общий режим [12:26:18]line Чек 159 20.08.2024 12:26 [12:26:18]line Смена: 453 ФФД: 1.0 [12:26:18]line ЗНМ: 0300000067 [12:26:18]line РНМ: 0000000000092569 [12:26:18]line Версия ККМ: 001 [12:26:18]line ФМ: 0000000000871776 [12:26:18]line ФД: 139687 [12:26:18]line ФПД: 126420361750146 [12:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T122616&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139687&fm=126420361750146&tin=02508201610067®Number=0000000000092569&sum=50000 [12:26:18]OFD Sender: Processing packet 139687 [packets to send 137, broken 136] [12:26:18]ProducePacketName [12:26:18]name=ofd_packets/00139687 [12:26:18]OFD Sender: To server: pG, [12:26:18]CommunicateWithHost lk.salyk.kg:30040 [12:26:18]ConnectInit lk.salyk.kg [12:26:18]written 0, free lines is 4095 [12:26:18]Connected sock=10 [12:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 4E 82 08 01 47 04 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 68 8B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 21 02 00 35 04 06 00 72 FA 88 C1 26 82 62 4A 7B 61 FC F2 27 1E [12:26:19]Write to MH i2c: 01 00 00 7E 04 82 [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: 01 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: 01 07 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: 01 07 00 7E 04 00 00 00 00 00 CE 0C 63 [12:26:19]RasterBufferAndPrint [12:26:19]line [12:26:19]line [12:26:19]line [12:26:19]line [12:26:19]line [12:26:19]written 0, free lines is 3285 [12:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 46 D1 47 00 3F 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 21 02 00 F4 03 04 00 FC 31 C4 66 B6 04 01 00 00 7D 02 EB E2 B6 33 0C 40 [12:26:19]CommunicateWithHost err = 0 [12:26:19]CheckOFDResponse [12:26:19]1017 (14) - 77093643461234 [12:26:19]1041 (16) - 0000000000871776 [12:26:19]1040 (4) - 139687 [12:26:19]1012 (4) - 20.08.2024 06:04 [12:26:19]1206 (1) - 0 [12:26:19]OFD Sender: Remove packet 139687 [12:26:19]ProducePacketName [12:26:19]name=ofd_packets/00139687 [12:26:19]NVStorageDeleteData [12:26:19]MH_Cut [12:26:19]Write to MH i2c: D1 01 00 85 04 01 5B [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: D1 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: D1 01 00 [12:26:19]MH_I2C_Read... [12:26:19]Read from MH i2c: D1 01 00 85 04 00 5A [12:26:19]Write to MH i2c: 01 00 00 86 04 8A [12:26:19]Write i2c OK [12:26:19]MH_I2C_Read... [12:26:19]OFD Sender: No OFD packet to send [12:26:19]*** Cut start [12:26:19]*** Partial cut [12:26:19]*** CUTSNS_PIN = 1 [12:26:19]*** CUTSNS_PIN = 0 [12:26:20]*** Brake cut motor [12:26:20]Read from MH i2c: 01 [12:26:20]MH_I2C_Read... [12:26:20]*** Stop cut motor [12:26:20]*** Cut end [12:26:20]Read from MH i2c: 01 07 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: 01 07 00 86 04 00 00 00 00 00 FF 0F 9F [12:26:20]process_action close_receipt done [12:26:20]requested_data is exist [12:26:20]produce_requested_data [12:26:20]requested_item fm.sn is exist - process it [12:26:20]wFMCommunicate request_size=4 [12:26:20]MH_SAM_APDU [12:26:20]CAPDU: 80 11 00 00 [12:26:20]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:20]Read from MH i2c: E2 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 17 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5C [12:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:26:20]wFMCommunicate OK [12:26:20]requested_item fd.num is exist - process it [12:26:20]SAM_PROTO_GetFieldsCounters [12:26:20]wFMCommunicate request_size=4 [12:26:20]MH_SAM_APDU [12:26:20]CAPDU: 80 13 00 00 [12:26:20]Write to MH i2c: E2 08 00 88 04 80 13 00 00 00 00 00 00 08 [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:20]Read from MH i2c: E2 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 62 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 62 00 88 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [12:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:20]wFMCommunicate OK [12:26:20]SAM_PROTO_GetFieldsCounters done [12:26:20]requested_item shift.num is exist - process it [12:26:20]requested_item shift.opened is exist - process it [12:26:20]req_shift_opened [12:26:20]FM_GetShiftState [12:26:20]SAM_PROTO_GetShiftState [12:26:20]wFMCommunicate request_size=4 [12:26:20]MH_SAM_APDU [12:26:20]CAPDU: 80 13 01 00 [12:26:20]Write to MH i2c: E2 08 00 89 04 80 13 01 00 00 00 00 00 0A [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:20]Read from MH i2c: E2 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 0E 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 0E 00 89 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9B [12:26:20]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:26:20]wFMCommunicate OK [12:26:20]SAM_PROTO_GetShiftState done [12:26:20]FM_GetShiftState done [12:26:20]req_shift_opened done [12:26:20]requested_item shift.open_date is exist - process it [12:26:20]req_shift_open_date [12:26:20]req_shift_open_date done [12:26:20]produce_requested_data done [12:26:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139687,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:26:20]process_action_free close_receipt [12:26:20]json_value_free [12:26:20]json_value_free done [12:26:20]process_json_proto returns [12:26:20]Send response to host [12:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139687,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:26:20]free response buf [12:26:20]execute_script done [12:26:20]execute_script returns [12:26:20]free content buf [12:26:20]Sock 8.Close socket [12:26:20]Sock 8.Thread stoped [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:11]int [12:27:11]Write to MH i2c: 01 00 00 8A 04 8E [12:27:11]*** FLAG_PRN_KEY set [12:27:11]Write i2c OK [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 07 00 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 07 00 8A 04 00 08 00 00 00 FF 0F AB [12:27:11]state=0 [12:27:11]Key pressed [12:27:11]Feed [12:27:11]Write to MH i2c: D8 00 00 8B 04 66 [12:27:11]Write i2c OK [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: D8 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: D8 01 00 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: D8 01 00 8B 04 00 67 [12:27:11]int [12:27:11]Write to MH i2c: 01 00 00 8C 04 90 [12:27:11]Write i2c OK [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 07 00 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 07 00 8C 04 00 48 00 00 00 3C 00 1B [12:27:11]state=2 [12:27:11]Key pressed [12:27:11]int [12:27:11]Write to MH i2c: 01 00 00 8D 04 91 [12:27:11]*** FLAG_PRN_KEY reset [12:27:11]Write i2c OK [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 07 00 [12:27:11]MH_I2C_Read... [12:27:11]Read from MH i2c: 01 07 00 8D 04 00 00 00 00 00 F5 0F 9C [12:27:11]state=2 [12:27:11]Stop feed [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:38]accept exits with 9 [12:27:38]New connection [12:27:38]New thread 3067145572 created [12:27:38]Thread 3067288932 joined [12:27:38]Waiting for new connection... [12:27:38] Sock 9.Parse request [12:27:38]Sock 9.Check first char [12:27:38]Sock 9.First char is OK [12:27:38]request: POST /json_proto HTTP/1.0 [12:27:38]Method: POST [12:27:38]URL: /json_proto [12:27:38]Method is POST - this is cgi request [12:27:38]url: /json_proto [12:27:38]query_string will be loaded in cgi processing [12:27:38]execute_cgi json_proto POST (null) [12:27:38]execute_cgi path=json_proto method=POST [12:27:38]POST find Content-Length [12:27:38]Host: 172.17.45.67:8080 [12:27:38]Content-Length: 658 [12:27:38]Content-Type: application/json [12:27:38] [12:27:38]POST finish read [12:27:38]Found Content-Length = 658 [12:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:38]execute_script... [12:27:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:38]POST & json_proto [12:27:38]process_json_proto [12:27:38]json parsed OK: [12:27:38]protocol is kg_v1.0 [12:27:38]action value=close_receipt [12:27:38]process_action close_receipt [12:27:38]cmd_close_receipt [12:27:38]MH_GetDate [12:27:38]Write to MH i2c: F0 00 00 8E 04 81 [12:27:38]Write i2c OK [12:27:38]MH_I2C_Read... [12:27:38]Read from MH i2c: F0 [12:27:38]MH_I2C_Read... [12:27:38]Read from MH i2c: F0 09 00 [12:27:38]MH_I2C_Read... [12:27:38]Read from MH i2c: F0 09 00 8E 04 00 BA 8B C4 66 5F 7F 2B 66 68 [12:27:38]GetLastDocTimeStamp 1724156776 [12:27:38]current date 1724156858 [12:27:38]FM_GetShiftState [12:27:38]SAM_PROTO_GetShiftState [12:27:38]wFMCommunicate request_size=4 [12:27:38]MH_SAM_APDU [12:27:38]CAPDU: 80 13 01 00 [12:27:38]Write to MH i2c: E2 08 00 8F 04 80 13 01 00 00 00 00 00 10 [12:27:38]Write i2c OK [12:27:38]MH_I2C_Read... [12:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:38]Read from MH i2c: E2 [12:27:38]MH_I2C_Read... [12:27:38]Read from MH i2c: E2 0E 00 [12:27:38]MH_I2C_Read... [12:27:38]Read from MH i2c: E2 0E 00 8F 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A1 [12:27:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:27:38]wFMCommunicate OK [12:27:38]SAM_PROTO_GetShiftState done [12:27:38]FM_GetShiftState done [12:27:38]opened in 1724113785 [12:27:38]opened+sec_in_day 1724200185 [12:27:38]quantity*price = 50017 [12:27:38]sum+1 = 50019 [12:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 160 20.08.2024 12:27 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139688 ФПД: 260084371253113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T122738&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139688&fm=260084371253113&tin=02508201610067®Number=0000000000092569&sum=50000 [12:27:39]StoreToDocumentArchive [12:27:39]shift 453 fd 139688 [12:27:39]save to /storage/0453/doc_00139688 [12:27:39]save last doc name /storage/0453/doc_00139688 to /storage/kkm_last_doc_name [12:27:39]save OK [12:27:39]Clear old archive folders... [12:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:27:39]tlvbuf is 01FE4B80 [12:27:39]SAM_PROTO_ClearQueue [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 09 00 00 [12:27:39]Write to MH i2c: E2 08 00 9C 04 80 09 00 00 00 00 00 00 12 [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 9C 04 00 90 00 14 [12:27:39]RAPDU: 90 00 [12:27:39]wFMCommunicate OK [12:27:39]SAM_PROTO_ClearQueue done [12:27:39]KKMCreateOFDPacket [12:27:39]OFDProtocolAddRootSTLVToBuf [12:27:39]FM_MakeSignedData [12:27:39]FM_MakeSignedData [12:27:39]SAM_PROTO_SignData [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 0D 01 02 [12:27:39]Write to MH i2c: E2 08 00 9D 04 80 0D 01 02 00 00 00 00 1A [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 9D 04 00 90 00 15 [12:27:39]RAPDU: 90 00 [12:27:39]wFMCommunicate OK [12:27:39]wFMCommunicate request_size=253 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 BA 8B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 21 02 00 35 04 06 00 EC 8B 9C 8F 67 79 [12:27:39]Write to MH i2c: E2 00 01 9E 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 BA 8B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 21 02 00 35 04 06 00 EC 8B 9C 8F 67 79 00 00 55 [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]OFD Sender: No OFD packet to send [12:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 03 00 9E 04 00 90 00 16 [12:27:39]RAPDU: 90 00 [12:27:39]wFMCommunicate OK [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 0D 03 02 [12:27:39]Write to MH i2c: E2 08 00 9F 04 80 0D 03 02 00 00 00 00 1E [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:39]Read from MH i2c: E2 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0B 00 [12:27:39]MH_I2C_Read... [12:27:39]Read from MH i2c: E2 0B 00 9F 04 00 F1 FD E8 8F C5 61 9F B7 90 00 00 [12:27:39]RAPDU: F1 FD E8 8F C5 61 9F B7 90 00 [12:27:39]wFMCommunicate OK [12:27:39]SAM_PROTO_SignData done [12:27:39]FM_MakeSignedData done [12:27:39]CreateOFDProtocolMessage [12:27:39]wFMCommunicate request_size=4 [12:27:39]MH_SAM_APDU [12:27:39]CAPDU: 80 11 00 00 [12:27:39]Write to MH i2c: E2 08 00 A0 04 80 11 00 00 00 00 00 00 1E [12:27:39]Write i2c OK [12:27:39]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 17 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 17 00 A0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [12:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:27:40]wFMCommunicate OK [12:27:40]CreateOFDProtocolMessage done [12:27:40]OFDSenderStorePacket 139688 [12:27:40]StoreOFDPacket docnum=139688 [12:27:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 05 21 00 01 FB E8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 BA 8B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 21 02 00 35 04 06 00 EC 8B 9C 8F 67 79 F1 FD E8 8F C5 61 9F B7 [12:27:40]CheckFolder [12:27:40]dirname=/storage/ofd_packets [12:27:40]CheckFolder done [12:27:40]ProducePacketName [12:27:40]name=ofd_packets/00139688 [12:27:40]NVStorageSaveData ofd_packets/00139688 [12:27:40]File name is /storage/ofd_packets/00139688 [12:27:40]Write 294 bytes [12:27:40]NVStorageSaveData done [12:27:40]OFDSenderStorePacket done [12:27:40]KKMCreateOFDPacket done [12:27:40]NVStorageSaveData kkm_last_timestamp [12:27:40]File name is /storage/kkm_last_timestamp [12:27:40]Write 4 bytes [12:27:40]NVStorageSaveData done [12:27:40]ExternCall_PrintAddStr [12:27:40]wPrintStart [12:27:40]Write to MH i2c: 01 00 00 A1 04 A5 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: 01 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: 01 07 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: 01 07 00 A1 04 00 00 00 00 00 FF 0F BA [12:27:40]RasterBufferAndPrint [12:27:40]line Счет N : (1)593534 [12:27:40]line ИНН: 02508201610067 [12:27:40]line Контрольно-Кассовый Чек [12:27:40]line ПРОДАЖА [12:27:40]line ТРК (МРК, ГНК) : 53 [12:27:40]line Товар: 2710124130 [12:27:40]line SU-92 [12:27:40]line 7.270 * 68.80 [12:27:40]line = 500.18 [12:27:40]line НДС 12% НСП 1% [12:27:40]line > о реализуемом товаре [12:27:40]line ОКРУГЛЕНИЕ: -0.18 [12:27:40]line ИТОГО: 500.00 [12:27:40]line Внесено: 500.00 [12:27:40]line СДАЧА: 0.00 [12:27:40]line НСП 1% : 4.43 [12:27:40]line НДС 12% : 53.12 [12:27:40]line Наличными: 500.00 [12:27:40]line Безнал.: 0.00 [12:27:40]line Место: АЗС № 136 "Партнер Нефть" [12:27:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:27:40]line СНО: Общий режим [12:27:40]line Чек 160 20.08.2024 12:27 [12:27:40]line Смена: 453 ФФД: 1.0 [12:27:40]line ЗНМ: 0300000067 [12:27:40]line РНМ: 0000000000092569 [12:27:40]line Версия ККМ: 001 [12:27:40]line ФМ: 0000000000871776 [12:27:40]line ФД: 139688 [12:27:40]line ФПД: 260084371253113 [12:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T122738&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139688&fm=260084371253113&tin=02508201610067®Number=0000000000092569&sum=50000 [12:27:40]OFD Sender: Processing packet 139688 [packets to send 137, broken 136] [12:27:40]ProducePacketName [12:27:40]name=ofd_packets/00139688 [12:27:40]OFD Sender: To server: pG, [12:27:40]CommunicateWithHost lk.salyk.kg:30040 [12:27:40]ConnectInit lk.salyk.kg [12:27:40]written 0, free lines is 4095 [12:27:40]Connected sock=10 [12:27:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 05 21 00 01 FB E8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 BA 8B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 21 02 00 35 04 06 00 EC 8B 9C 8F 67 79 F1 FD E8 8F C5 61 9F B7 [12:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3F 57 47 00 86 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 21 02 00 F4 03 04 00 4D 32 C4 66 B6 04 01 00 00 EA EF 58 23 02 64 0C 2B [12:27:40]CommunicateWithHost err = 0 [12:27:40]CheckOFDResponse [12:27:40]1017 (14) - 77093643461234 [12:27:40]1041 (16) - 0000000000871776 [12:27:40]1040 (4) - 139688 [12:27:40]1012 (4) - 20.08.2024 06:06 [12:27:40]1206 (1) - 0 [12:27:40]OFD Sender: Remove packet 139688 [12:27:40]ProducePacketName [12:27:40]name=ofd_packets/00139688 [12:27:40]NVStorageDeleteData [12:27:40]Write to MH i2c: 01 00 00 CC 04 D0 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: 01 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: 01 07 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 D3 0C B6 [12:27:40]RasterBufferAndPrint [12:27:40]line [12:27:40]line [12:27:40]line [12:27:40]line [12:27:40]line [12:27:40]written 0, free lines is 3290 [12:27:40]MH_Cut [12:27:40]Write to MH i2c: D1 01 00 D3 04 01 A9 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: D1 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: D1 01 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: D1 01 00 D3 04 00 A8 [12:27:40]Write to MH i2c: 01 00 00 D4 04 D8 [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:41]OFD Sender: No OFD packet to send [12:27:41]*** Cut start [12:27:41]*** Partial cut [12:27:41]*** CUTSNS_PIN = 1 [12:27:41]*** CUTSNS_PIN = 0 [12:27:41]*** Brake cut motor [12:27:42]Read from MH i2c: 01 [12:27:42]MH_I2C_Read... [12:27:42]*** Stop cut motor [12:27:42]*** Cut end [12:27:42]Read from MH i2c: 01 07 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: 01 07 00 D4 04 00 00 00 00 00 FF 0F ED [12:27:42]process_action close_receipt done [12:27:42]requested_data is exist [12:27:42]produce_requested_data [12:27:42]requested_item fm.sn is exist - process it [12:27:42]wFMCommunicate request_size=4 [12:27:42]MH_SAM_APDU [12:27:42]CAPDU: 80 11 00 00 [12:27:42]Write to MH i2c: E2 08 00 D5 04 80 11 00 00 00 00 00 00 53 [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:42]Read from MH i2c: E2 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 17 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 17 00 D5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [12:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:27:42]wFMCommunicate OK [12:27:42]requested_item fd.num is exist - process it [12:27:42]SAM_PROTO_GetFieldsCounters [12:27:42]wFMCommunicate request_size=4 [12:27:42]MH_SAM_APDU [12:27:42]CAPDU: 80 13 00 00 [12:27:42]Write to MH i2c: E2 08 00 D6 04 80 13 00 00 00 00 00 00 56 [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:42]Read from MH i2c: E2 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 62 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 62 00 D6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [12:27:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:42]wFMCommunicate OK [12:27:42]SAM_PROTO_GetFieldsCounters done [12:27:42]requested_item shift.num is exist - process it [12:27:42]requested_item shift.opened is exist - process it [12:27:42]req_shift_opened [12:27:42]FM_GetShiftState [12:27:42]SAM_PROTO_GetShiftState [12:27:42]wFMCommunicate request_size=4 [12:27:42]MH_SAM_APDU [12:27:42]CAPDU: 80 13 01 00 [12:27:42]Write to MH i2c: E2 08 00 D7 04 80 13 01 00 00 00 00 00 58 [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:42]Read from MH i2c: E2 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 0E 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 0E 00 D7 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E9 [12:27:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:27:42]wFMCommunicate OK [12:27:42]SAM_PROTO_GetShiftState done [12:27:42]FM_GetShiftState done [12:27:42]req_shift_opened done [12:27:42]requested_item shift.open_date is exist - process it [12:27:42]req_shift_open_date [12:27:42]req_shift_open_date done [12:27:42]produce_requested_data done [12:27:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139688,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:27:42]process_action_free close_receipt [12:27:42]json_value_free [12:27:42]json_value_free done [12:27:42]process_json_proto returns [12:27:42]Send response to host [12:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139688,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:27:42]free response buf [12:27:42]execute_script done [12:27:42]execute_script returns [12:27:42]free content buf [12:27:42]Sock 9.Close socket [12:27:42]Sock 9.Thread stoped [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:13]accept exits with 8 [12:34:13]New connection [12:34:13]New thread 3067288932 created [12:34:13]Thread 3067145572 joined [12:34:13]Waiting for new connection... [12:34:13] Sock 8.Parse request [12:34:13]Sock 8.Check first char [12:34:13]Sock 8.First char is OK [12:34:13]request: POST /json_proto HTTP/1.0 [12:34:13]Method: POST [12:34:13]URL: /json_proto [12:34:13]Method is POST - this is cgi request [12:34:13]url: /json_proto [12:34:13]query_string will be loaded in cgi processing [12:34:13]execute_cgi json_proto POST (null) [12:34:13]execute_cgi path=json_proto method=POST [12:34:13]POST find Content-Length [12:34:13]Host: 172.17.45.67:8080 [12:34:13]Content-Length: 682 [12:34:13]Content-Type: application/json [12:34:13] [12:34:13]POST finish read [12:34:13]Found Content-Length = 682 [12:34:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:13]execute_script... [12:34: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)593536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:13]POST & json_proto [12:34:13]process_json_proto [12:34:13]json parsed OK: [12:34:13]protocol is kg_v1.0 [12:34:13]action value=close_receipt [12:34:13]process_action close_receipt [12:34:13]cmd_close_receipt [12:34:13]MH_GetDate [12:34:13]Write to MH i2c: F0 00 00 D8 04 CB [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: F0 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: F0 09 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: F0 09 00 D8 04 00 45 8D C4 66 5F 7F 2B 66 3F [12:34:13]GetLastDocTimeStamp 1724156858 [12:34:13]current date 1724157253 [12:34:13]FM_GetShiftState [12:34:13]SAM_PROTO_GetShiftState [12:34:13]wFMCommunicate request_size=4 [12:34:13]MH_SAM_APDU [12:34:13]CAPDU: 80 13 01 00 [12:34:13]Write to MH i2c: E2 08 00 D9 04 80 13 01 00 00 00 00 00 5A [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:13]Read from MH i2c: E2 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 0E 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 0E 00 D9 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EB [12:34:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:34:13]wFMCommunicate OK [12:34:13]SAM_PROTO_GetShiftState done [12:34:13]FM_GetShiftState done [12:34:13]opened in 1724113785 [12:34:13]opened+sec_in_day 1724200185 [12:34:13]quantity*price = 100021 [12:34:13]sum+1 = 100023 [12:34:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 161 20.08.2024 12:34 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139689 ФПД: 222273820624114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123413&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139689&fm=222273820624114&tin=02508201610067®Number=0000000000092569&sum=100000 [12:34:14]StoreToDocumentArchive [12:34:14]shift 453 fd 139689 [12:34:14]save to /storage/0453/doc_00139689 [12:34:14]save last doc name /storage/0453/doc_00139689 to /storage/kkm_last_doc_name [12:34:14]save OK [12:34:14]Clear old archive folders... [12:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:14]tlvbuf is 01FFC9C0 [12:34:14]SAM_PROTO_ClearQueue [12:34:14]wFMCommunicate request_size=4 [12:34:14]MH_SAM_APDU [12:34:14]CAPDU: 80 09 00 00 [12:34:14]Write to MH i2c: E2 08 00 E6 04 80 09 00 00 00 00 00 00 5C [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:14]Read from MH i2c: E2 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 E6 04 00 90 00 5E [12:34:14]RAPDU: 90 00 [12:34:14]wFMCommunicate OK [12:34:14]SAM_PROTO_ClearQueue done [12:34:14]KKMCreateOFDPacket [12:34:14]OFDProtocolAddRootSTLVToBuf [12:34:14]FM_MakeSignedData [12:34:14]FM_MakeSignedData [12:34:14]SAM_PROTO_SignData [12:34:14]wFMCommunicate request_size=4 [12:34:14]MH_SAM_APDU [12:34:14]CAPDU: 80 0D 01 02 [12:34:14]Write to MH i2c: E2 08 00 E7 04 80 0D 01 02 00 00 00 00 64 [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:14]Read from MH i2c: E2 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 E7 04 00 90 00 5F [12:34:14]RAPDU: 90 00 [12:34:14]wFMCommunicate OK [12:34:14]wFMCommunicate request_size=255 [12:34:14]MH_SAM_APDU [12:34: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 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 45 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 21 02 00 35 04 06 00 CA [12:34:14]Write to MH i2c: E2 02 01 E8 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A1 00 00 00 F4 03 04 00 45 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 21 02 00 35 04 06 00 CA 00 00 13 [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:14]Read from MH i2c: E2 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 E8 04 00 90 00 60 [12:34:14]RAPDU: 90 00 [12:34:14]wFMCommunicate OK [12:34:14]wFMCommunicate request_size=10 [12:34:14]MH_SAM_APDU [12:34:14]CAPDU: 80 0D 02 02 05 28 28 1F 04 F2 [12:34:14]Write to MH i2c: E2 0D 00 E9 04 80 0D 02 02 05 00 28 28 1F 04 F2 00 00 D6 [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:14]Read from MH i2c: E2 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 E9 04 00 90 00 61 [12:34:14]RAPDU: 90 00 [12:34:14]wFMCommunicate OK [12:34:14]wFMCommunicate request_size=4 [12:34:14]MH_SAM_APDU [12:34:14]CAPDU: 80 0D 03 02 [12:34:14]Write to MH i2c: E2 08 00 EA 04 80 0D 03 02 00 00 00 00 69 [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 0B 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 0B 00 EA 04 00 E8 5A EC 78 A1 AF E5 D2 90 00 17 [12:34:15]RAPDU: E8 5A EC 78 A1 AF E5 D2 90 00 [12:34:15]wFMCommunicate OK [12:34:15]SAM_PROTO_SignData done [12:34:15]FM_MakeSignedData done [12:34:15]CreateOFDProtocolMessage [12:34:15]wFMCommunicate request_size=4 [12:34:15]MH_SAM_APDU [12:34:15]CAPDU: 80 11 00 00 [12:34:15]Write to MH i2c: E2 08 00 EB 04 80 11 00 00 00 00 00 00 69 [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 17 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 17 00 EB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [12:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:34:15]wFMCommunicate OK [12:34:15]CreateOFDProtocolMessage done [12:34:15]OFDSenderStorePacket 139689 [12:34:15]StoreOFDPacket docnum=139689 [12:34:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5D F6 07 01 E0 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A1 00 00 00 F4 03 04 00 45 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 21 02 00 35 04 06 00 CA 28 28 1F 04 F2 E8 5A EC 78 A1 AF E5 D2 [12:34:15]CheckFolder [12:34:15]dirname=/storage/ofd_packets [12:34:15]CheckFolder done [12:34:15]ProducePacketName [12:34:15]name=ofd_packets/00139689 [12:34:15]NVStorageSaveData ofd_packets/00139689 [12:34:15]File name is /storage/ofd_packets/00139689 [12:34:15]Write 301 bytes [12:34:15]NVStorageSaveData done [12:34:15]OFDSenderStorePacket done [12:34:15]KKMCreateOFDPacket done [12:34:15]NVStorageSaveData kkm_last_timestamp [12:34:15]File name is /storage/kkm_last_timestamp [12:34:15]Write 4 bytes [12:34:15]NVStorageSaveData done [12:34:15]ExternCall_PrintAddStr [12:34:15]wPrintStart [12:34:15]Write to MH i2c: 01 00 00 EC 04 F0 [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 07 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 FF 0F 05 [12:34:15]RasterBufferAndPrint [12:34:15]line Счет N : (1)593536 [12:34:15]line ИНН: 02508201610067 [12:34:15]line Контрольно-Кассовый Чек [12:34:15]line ПРОДАЖА [12:34:15]line ТРК (МРК, ГНК) : 41 [12:34:15]line Товар: 2710124500 [12:34:15]line Аи-95-К-5 [12:34:15]line 13.480 * 74.20 [12:34:15]line = 1000.22 [12:34:15]line НДС 12% НСП 1% [12:34:15]line > о реализуемом товаре [12:34:15]line ОКРУГЛЕНИЕ: -0.22 [12:34:15]line ИТОГО: 1000.00 [12:34:15]line Внесено: 1000.00 [12:34:15]line СДАЧА: 0.00 [12:34:15]line НСП 1% : 8.85 [12:34:15]line НДС 12% : 106.22 [12:34:15]line Наличными: 1000.00 [12:34:15]line Безнал.: 0.00 [12:34:15]line Место: АЗС № 136 "Партнер Нефть" [12:34:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:34:15]line СНО: Общий режим [12:34:15]line Чек 161 20.08.2024 12:34 [12:34:15]line Смена: 453 ФФД: 1.0 [12:34:15]line ЗНМ: 0300000067 [12:34:15]line РНМ: 0000000000092569 [12:34:15]line Версия ККМ: 001 [12:34:15]line ФМ: 0000000000871776 [12:34:15]line ФД: 139689 [12:34:15]line ФПД: 222273820624114 [12:34:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123413&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139689&fm=222273820624114&tin=02508201610067®Number=0000000000092569&sum=100000 [12:34:15]OFD Sender: Processing packet 139689 [packets to send 137, broken 136] [12:34:15]ProducePacketName [12:34:15]name=ofd_packets/00139689 [12:34:15]OFD Sender: To server: pG, [12:34:15]CommunicateWithHost lk.salyk.kg:30040 [12:34:15]ConnectInit lk.salyk.kg [12:34:15]written 0, free lines is 4095 [12:34:15]Connected sock=9 [12:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5D F6 07 01 E0 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A1 00 00 00 F4 03 04 00 45 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 21 02 00 35 04 06 00 CA 28 28 1F 04 F2 E8 5A EC 78 A1 AF E5 D2 [12:34:15]Write to MH i2c: 01 00 00 17 05 1C [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 07 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 07 00 17 05 00 00 00 00 00 CF 0C FE [12:34:15]RasterBufferAndPrint [12:34:15]line [12:34:15]line [12:34:15]line [12:34:15]line [12:34:15]line [12:34:15]written 0, free lines is 3285 [12:34:15]MH_Cut [12:34:15]Write to MH i2c: D1 01 00 1E 05 01 F5 [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: D1 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: D1 01 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: D1 01 00 1E 05 00 F4 [12:34:15]Write to MH i2c: 01 00 00 1F 05 24 [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DB CE 47 00 9E E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 21 02 00 F4 03 04 00 D9 33 C4 66 B6 04 01 00 00 C3 71 41 28 C6 07 32 CA [12:34:15]CommunicateWithHost err = 0 [12:34:15]CheckOFDResponse [12:34:15]1017 (14) - 77093643461234 [12:34:15]1041 (16) - 0000000000871776 [12:34:15]1040 (4) - 139689 [12:34:15]1012 (4) - 20.08.2024 06:12 [12:34:15]1206 (1) - 0 [12:34:15]OFD Sender: Remove packet 139689 [12:34:15]ProducePacketName [12:34:15]name=ofd_packets/00139689 [12:34:15]NVStorageDeleteData [12:34:16]OFD Sender: No OFD packet to send [12:34:16]*** Cut start [12:34:16]*** Partial cut [12:34:16]*** CUTSNS_PIN = 1 [12:34:16]*** CUTSNS_PIN = 0 [12:34:16]*** Brake cut motor [12:34:17]Read from MH i2c: 01 [12:34:17]MH_I2C_Read... [12:34:17]*** Stop cut motor [12:34:17]*** Cut end [12:34:17]Read from MH i2c: 01 07 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 07 00 1F 05 00 00 00 00 00 FF 0F 39 [12:34:17]process_action close_receipt done [12:34:17]requested_data is exist [12:34:17]produce_requested_data [12:34:17]requested_item fm.sn is exist - process it [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 11 00 00 [12:34:17]Write to MH i2c: E2 08 00 20 05 80 11 00 00 00 00 00 00 9F [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 17 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 17 00 20 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [12:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:34:17]wFMCommunicate OK [12:34:17]requested_item fd.num is exist - process it [12:34:17]SAM_PROTO_GetFieldsCounters [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 13 00 00 [12:34:17]Write to MH i2c: E2 08 00 21 05 80 13 00 00 00 00 00 00 A2 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 62 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 62 00 21 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [12:34:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:17]wFMCommunicate OK [12:34:17]SAM_PROTO_GetFieldsCounters done [12:34:17]requested_item shift.num is exist - process it [12:34:17]requested_item shift.opened is exist - process it [12:34:17]req_shift_opened [12:34:17]FM_GetShiftState [12:34:17]SAM_PROTO_GetShiftState [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 13 01 00 [12:34:17]Write to MH i2c: E2 08 00 22 05 80 13 01 00 00 00 00 00 A4 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:17]Read from MH i2c: E2 0E 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 0E 00 22 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 35 [12:34:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:34:17]wFMCommunicate OK [12:34:17]SAM_PROTO_GetShiftState done [12:34:17]FM_GetShiftState done [12:34:17]req_shift_opened done [12:34:17]requested_item shift.open_date is exist - process it [12:34:17]req_shift_open_date [12:34:17]req_shift_open_date done [12:34:17]produce_requested_data done [12:34:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139689,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:34:17]process_action_free close_receipt [12:34:17]json_value_free [12:34:17]json_value_free done [12:34:17]process_json_proto returns [12:34:17]Send response to host [12:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139689,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:34:17]free response buf [12:34:17]execute_script done [12:34:17]execute_script returns [12:34:17]free content buf [12:34:17]Sock 8.Close socket [12:34:17]Sock 8.Thread stoped [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:34]accept exits with 10 [12:34:34]New connection [12:34:34]New thread 3067145572 created [12:34:34]Thread 3067288932 joined [12:34:34]Waiting for new connection... [12:34:34] Sock 10.Parse request [12:34:34]Sock 10.Check first char [12:34:34]Sock 10.First char is OK [12:34:34]request: POST /json_proto HTTP/1.0 [12:34:34]Method: POST [12:34:34]URL: /json_proto [12:34:34]Method is POST - this is cgi request [12:34:34]url: /json_proto [12:34:34]query_string will be loaded in cgi processing [12:34:34]execute_cgi json_proto POST (null) [12:34:34]execute_cgi path=json_proto method=POST [12:34:34]POST find Content-Length [12:34:34]Host: 172.17.45.67:8080 [12:34:34]Content-Length: 677 [12:34:34]Content-Type: application/json [12:34:34] [12:34:34]POST finish read [12:34:34]Found Content-Length = 677 [12:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:34]execute_script... [12:34: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)593538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:34]POST & json_proto [12:34:34]process_json_proto [12:34:34]json parsed OK: [12:34:34]protocol is kg_v1.0 [12:34:34]action value=close_receipt [12:34:34]process_action close_receipt [12:34:34]cmd_close_receipt [12:34:34]MH_GetDate [12:34:34]Write to MH i2c: F0 00 00 23 05 17 [12:34:34]Write i2c OK [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: F0 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: F0 09 00 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: F0 09 00 23 05 00 5A 8D C4 66 5F 7F 2B 66 A0 [12:34:34]GetLastDocTimeStamp 1724157253 [12:34:34]current date 1724157274 [12:34:34]FM_GetShiftState [12:34:34]SAM_PROTO_GetShiftState [12:34:34]wFMCommunicate request_size=4 [12:34:34]MH_SAM_APDU [12:34:34]CAPDU: 80 13 01 00 [12:34:34]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [12:34:34]Write i2c OK [12:34:34]MH_I2C_Read... [12:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:34]Read from MH i2c: E2 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: E2 0E 00 [12:34:34]MH_I2C_Read... [12:34:34]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 37 [12:34:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:34:34]wFMCommunicate OK [12:34:34]SAM_PROTO_GetShiftState done [12:34:34]FM_GetShiftState done [12:34:34]opened in 1724113785 [12:34:34]opened+sec_in_day 1724200185 [12:34:34]quantity*price = 20001 [12:34:34]sum+1 = 20002 [12:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 162 20.08.2024 12:34 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139690 ФПД: 92694463302964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123434&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139690&fm=92694463302964&tin=02508201610067®Number=0000000000092569&sum=20000 [12:34:35]StoreToDocumentArchive [12:34:35]shift 453 fd 139690 [12:34:35]save to /storage/0453/doc_00139690 [12:34:35]save last doc name /storage/0453/doc_00139690 to /storage/kkm_last_doc_name [12:34:35]save OK [12:34:35]Clear old archive folders... [12:34:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:35]tlvbuf is 01FEDB80 [12:34:35]SAM_PROTO_ClearQueue [12:34:35]wFMCommunicate request_size=4 [12:34:35]MH_SAM_APDU [12:34:35]CAPDU: 80 09 00 00 [12:34:35]Write to MH i2c: E2 08 00 31 05 80 09 00 00 00 00 00 00 A8 [12:34:35]Write i2c OK [12:34:35]MH_I2C_Read... [12:34:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:35]Read from MH i2c: E2 [12:34:35]MH_I2C_Read... [12:34:35]Read from MH i2c: E2 03 00 [12:34:35]MH_I2C_Read... [12:34:35]Read from MH i2c: E2 03 00 31 05 00 90 00 AA [12:34:35]RAPDU: 90 00 [12:34:35]wFMCommunicate OK [12:34:35]SAM_PROTO_ClearQueue done [12:34:35]KKMCreateOFDPacket [12:34:35]OFDProtocolAddRootSTLVToBuf [12:34:35]FM_MakeSignedData [12:34:35]FM_MakeSignedData [12:34:35]SAM_PROTO_SignData [12:34:35]wFMCommunicate request_size=4 [12:34:35]MH_SAM_APDU [12:34:35]CAPDU: 80 0D 01 02 [12:34:35]Write to MH i2c: E2 08 00 32 05 80 0D 01 02 00 00 00 00 B0 [12:34:35]Write i2c OK [12:34:35]MH_I2C_Read... [12:34:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:35]Read from MH i2c: E2 [12:34:35]MH_I2C_Read... [12:34:35]Read from MH i2c: E2 03 00 [12:34:35]MH_I2C_Read... [12:34:35]Read from MH i2c: E2 03 00 32 05 00 90 00 AB [12:34:35]RAPDU: 90 00 [12:34:35]wFMCommunicate OK [12:34:35]wFMCommunicate request_size=255 [12:34:35]MH_SAM_APDU [12:34:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 5A 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 21 02 00 35 04 06 00 54 [12:34:35]Write to MH i2c: E2 02 01 33 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 5A 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 21 02 00 35 04 06 00 54 00 00 D5 [12:34:35]Write i2c OK [12:34:35]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [12:34:36]RAPDU: 90 00 [12:34:36]wFMCommunicate OK [12:34:36]wFMCommunicate request_size=10 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 0D 02 02 05 4E 1C 8E CD 34 [12:34:36]Write to MH i2c: E2 0D 00 34 05 80 0D 02 02 05 00 4E 1C 8E CD 34 00 00 B6 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [12:34:36]RAPDU: 90 00 [12:34:36]wFMCommunicate OK [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 0D 03 02 [12:34:36]Write to MH i2c: E2 08 00 35 05 80 0D 03 02 00 00 00 00 B5 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 0B 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 0B 00 35 05 00 B3 88 2C 94 68 59 93 55 90 00 5A [12:34:36]RAPDU: B3 88 2C 94 68 59 93 55 90 00 [12:34:36]wFMCommunicate OK [12:34:36]SAM_PROTO_SignData done [12:34:36]FM_MakeSignedData done [12:34:36]CreateOFDProtocolMessage [12:34:36]wFMCommunicate request_size=4 [12:34:36]MH_SAM_APDU [12:34:36]CAPDU: 80 11 00 00 [12:34:36]Write to MH i2c: E2 08 00 36 05 80 11 00 00 00 00 00 00 B5 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:36]Read from MH i2c: E2 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 17 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: E2 17 00 36 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [12:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:34:36]wFMCommunicate OK [12:34:36]CreateOFDProtocolMessage done [12:34:36]OFDSenderStorePacket 139690 [12:34:36]StoreOFDPacket docnum=139690 [12:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0D 24 07 01 FA 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 5A 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 21 02 00 35 04 06 00 54 4E 1C 8E CD 34 B3 88 2C 94 68 59 93 55 [12:34:36]CheckFolder [12:34:36]dirname=/storage/ofd_packets [12:34:36]CheckFolder done [12:34:36]ProducePacketName [12:34:36]name=ofd_packets/00139690 [12:34:36]NVStorageSaveData ofd_packets/00139690 [12:34:36]File name is /storage/ofd_packets/00139690 [12:34:36]Write 301 bytes [12:34:36]NVStorageSaveData done [12:34:36]OFDSenderStorePacket done [12:34:36]KKMCreateOFDPacket done [12:34:36]NVStorageSaveData kkm_last_timestamp [12:34:36]File name is /storage/kkm_last_timestamp [12:34:36]Write 4 bytes [12:34:36]NVStorageSaveData done [12:34:36]ExternCall_PrintAddStr [12:34:36]wPrintStart [12:34:36]Write to MH i2c: 01 00 00 37 05 3C [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 07 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 07 00 37 05 00 00 00 00 00 FF 0F 51 [12:34:36]RasterBufferAndPrint [12:34:36]line Счет N : (1)593538 [12:34:36]line ИНН: 02508201610067 [12:34:36]line Контрольно-Кассовый Чек [12:34:36]line ПРОДАЖА [12:34:36]line ТРК (МРК, ГНК) : 32 [12:34:36]line Товар: 2710124130 [12:34:36]line Аи-92-К-5 [12:34:36]line 2.950 * 67.80 [12:34:36]line = 200.01 [12:34:36]line НДС 12% НСП 1% [12:34:36]line > о реализуемом товаре [12:34:36]line ОКРУГЛЕНИЕ: -0.01 [12:34:36]line ИТОГО: 200.00 [12:34:36]line Внесено: 200.00 [12:34:36]line СДАЧА: 0.00 [12:34:36]line НСП 1% : 1.77 [12:34:36]line НДС 12% : 21.24 [12:34:36]line Наличными: 200.00 [12:34:36]line Безнал.: 0.00 [12:34:36]line Место: АЗС № 136 "Партнер Нефть" [12:34:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:34:36]line СНО: Общий режим [12:34:36]line Чек 162 20.08.2024 12:34 [12:34:36]line Смена: 453 ФФД: 1.0 [12:34:36]line ЗНМ: 0300000067 [12:34:36]line РНМ: 0000000000092569 [12:34:36]line Версия ККМ: 001 [12:34:36]line ФМ: 0000000000871776 [12:34:36]line ФД: 139690 [12:34:36]line ФПД: 92694463302964 [12:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123434&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139690&fm=92694463302964&tin=02508201610067®Number=0000000000092569&sum=20000 [12:34:36]OFD Sender: Processing packet 139690 [packets to send 137, broken 136] [12:34:36]ProducePacketName [12:34:36]name=ofd_packets/00139690 [12:34:36]OFD Sender: To server: pG, [12:34:36]CommunicateWithHost lk.salyk.kg:30040 [12:34:36]ConnectInit lk.salyk.kg [12:34:36]written 0, free lines is 4095 [12:34:36]Connected sock=9 [12:34:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0D 24 07 01 FA 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 5A 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 21 02 00 35 04 06 00 54 4E 1C 8E CD 34 B3 88 2C 94 68 59 93 55 [12:34:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4C A9 47 00 6D 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 21 02 00 F4 03 04 00 EE 33 C4 66 B6 04 01 00 00 4B 32 34 4B 6A 03 B4 91 [12:34:37]CommunicateWithHost err = 0 [12:34:37]CheckOFDResponse [12:34:37]1017 (14) - 77093643461234 [12:34:37]1041 (16) - 0000000000871776 [12:34:37]1040 (4) - 139690 [12:34:37]1012 (4) - 20.08.2024 06:13 [12:34:37]1206 (1) - 0 [12:34:37]OFD Sender: Remove packet 139690 [12:34:37]ProducePacketName [12:34:37]name=ofd_packets/00139690 [12:34:37]NVStorageDeleteData [12:34:37]Write to MH i2c: 01 00 00 62 05 67 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 07 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 CE 0C 48 [12:34:37]RasterBufferAndPrint [12:34:37]line [12:34:37]line [12:34:37]line [12:34:37]line [12:34:37]line [12:34:37]written 0, free lines is 3285 [12:34:37]MH_Cut [12:34:37]Write to MH i2c: D1 01 00 69 05 01 40 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: D1 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: D1 01 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: D1 01 00 69 05 00 3F [12:34:37]Write to MH i2c: 01 00 00 6A 05 6F [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]OFD Sender: No OFD packet to send [12:34:37]*** Cut start [12:34:37]*** Partial cut [12:34:37]*** CUTSNS_PIN = 1 [12:34:37]*** CUTSNS_PIN = 0 [12:34:38]*** Brake cut motor [12:34:38]Read from MH i2c: 01 [12:34:38]MH_I2C_Read... [12:34:38]*** Stop cut motor [12:34:38]*** Cut end [12:34:38]Read from MH i2c: 01 07 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: 01 07 00 6A 05 00 00 00 00 00 FF 0F 84 [12:34:38]process_action close_receipt done [12:34:38]requested_data is exist [12:34:38]produce_requested_data [12:34:38]requested_item fm.sn is exist - process it [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 11 00 00 [12:34:38]Write to MH i2c: E2 08 00 6B 05 80 11 00 00 00 00 00 00 EA [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 17 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 17 00 6B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 41 [12:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:34:38]wFMCommunicate OK [12:34:38]requested_item fd.num is exist - process it [12:34:38]SAM_PROTO_GetFieldsCounters [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 13 00 00 [12:34:38]Write to MH i2c: E2 08 00 6C 05 80 13 00 00 00 00 00 00 ED [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 62 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 62 00 6C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [12:34:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_GetFieldsCounters done [12:34:38]requested_item shift.num is exist - process it [12:34:38]requested_item shift.opened is exist - process it [12:34:38]req_shift_opened [12:34:38]FM_GetShiftState [12:34:38]SAM_PROTO_GetShiftState [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 13 01 00 [12:34:38]Write to MH i2c: E2 08 00 6D 05 80 13 01 00 00 00 00 00 EF [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0E 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0E 00 6D 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 80 [12:34:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_GetShiftState done [12:34:38]FM_GetShiftState done [12:34:38]req_shift_opened done [12:34:38]requested_item shift.open_date is exist - process it [12:34:38]req_shift_open_date [12:34:38]req_shift_open_date done [12:34:38]produce_requested_data done [12:34:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139690,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:34:38]process_action_free close_receipt [12:34:38]json_value_free [12:34:38]json_value_free done [12:34:38]process_json_proto returns [12:34:38]Send response to host [12:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139690,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:34:38]free response buf [12:34:38]execute_script done [12:34:38]execute_script returns [12:34:38]free content buf [12:34:38]Sock 10.Close socket [12:34:38]Sock 10.Thread stoped [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:26]accept exits with 8 [12:35:26]New connection [12:35:26]New thread 3067288932 created [12:35:26]Thread 3067145572 joined [12:35:26]Waiting for new connection... [12:35:26] Sock 8.Parse request [12:35:26]Sock 8.Check first char [12:35:26]Sock 8.First char is OK [12:35:26]request: POST /json_proto HTTP/1.0 [12:35:26]Method: POST [12:35:26]URL: /json_proto [12:35:26]Method is POST - this is cgi request [12:35:26]url: /json_proto [12:35:26]query_string will be loaded in cgi processing [12:35:26]execute_cgi json_proto POST (null) [12:35:26]execute_cgi path=json_proto method=POST [12:35:26]POST find Content-Length [12:35:26]Host: 172.17.45.67:8080 [12:35:26]Content-Length: 677 [12:35:26]Content-Type: application/json [12:35:26] [12:35:26]POST finish read [12:35:26]Found Content-Length = 677 [12:35:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:26]execute_script... [12:35: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)593539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:26]POST & json_proto [12:35:26]process_json_proto [12:35:26]json parsed OK: [12:35:26]protocol is kg_v1.0 [12:35:26]action value=close_receipt [12:35:26]process_action close_receipt [12:35:26]cmd_close_receipt [12:35:26]MH_GetDate [12:35:26]Write to MH i2c: F0 00 00 6E 05 62 [12:35:26]Write i2c OK [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: F0 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: F0 09 00 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: F0 09 00 6E 05 00 8E 8D C4 66 5F 7F 2B 66 1F [12:35:26]GetLastDocTimeStamp 1724157274 [12:35:26]current date 1724157326 [12:35:26]FM_GetShiftState [12:35:26]SAM_PROTO_GetShiftState [12:35:26]wFMCommunicate request_size=4 [12:35:26]MH_SAM_APDU [12:35:26]CAPDU: 80 13 01 00 [12:35:26]Write to MH i2c: E2 08 00 6F 05 80 13 01 00 00 00 00 00 F1 [12:35:26]Write i2c OK [12:35:26]MH_I2C_Read... [12:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:26]Read from MH i2c: E2 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: E2 0E 00 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: E2 0E 00 6F 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 82 [12:35:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:35:26]wFMCommunicate OK [12:35:26]SAM_PROTO_GetShiftState done [12:35:26]FM_GetShiftState done [12:35:26]opened in 1724113785 [12:35:26]opened+sec_in_day 1724200185 [12:35:26]quantity*price = 35052 [12:35:26]sum+1 = 35054 [12:35:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 163 20.08.2024 12:35 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139691 ФПД: 280893770350453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123526&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139691&fm=280893770350453&tin=02508201610067®Number=0000000000092569&sum=35000 [12:35:27]StoreToDocumentArchive [12:35:27]shift 453 fd 139691 [12:35:27]save to /storage/0453/doc_00139691 [12:35:27]save last doc name /storage/0453/doc_00139691 to /storage/kkm_last_doc_name [12:35:27]save OK [12:35:27]Clear old archive folders... [12:35:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:27]tlvbuf is 02018140 [12:35:27]SAM_PROTO_ClearQueue [12:35:27]wFMCommunicate request_size=4 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 09 00 00 [12:35:27]Write to MH i2c: E2 08 00 7C 05 80 09 00 00 00 00 00 00 F3 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 7C 05 00 90 00 F5 [12:35:27]RAPDU: 90 00 [12:35:27]wFMCommunicate OK [12:35:27]SAM_PROTO_ClearQueue done [12:35:27]KKMCreateOFDPacket [12:35:27]OFDProtocolAddRootSTLVToBuf [12:35:27]FM_MakeSignedData [12:35:27]FM_MakeSignedData [12:35:27]SAM_PROTO_SignData [12:35:27]wFMCommunicate request_size=4 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 0D 01 02 [12:35:27]Write to MH i2c: E2 08 00 7D 05 80 0D 01 02 00 00 00 00 FB [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 7D 05 00 90 00 F6 [12:35:27]RAPDU: 90 00 [12:35:27]wFMCommunicate OK [12:35:27]wFMCommunicate request_size=255 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 8E 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 21 02 00 35 04 06 00 FF [12:35:27]Write to MH i2c: E2 02 01 7E 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 8E 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 21 02 00 35 04 06 00 FF 00 00 2A [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 7E 05 00 90 00 F7 [12:35:27]RAPDU: 90 00 [12:35:27]wFMCommunicate OK [12:35:27]wFMCommunicate request_size=10 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 0D 02 02 05 78 AD 66 BF 75 [12:35:27]Write to MH i2c: E2 0D 00 7F 05 80 0D 02 02 05 00 78 AD 66 BF 75 00 00 C7 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 03 00 7F 05 00 90 00 F8 [12:35:27]RAPDU: 90 00 [12:35:27]wFMCommunicate OK [12:35:27]wFMCommunicate request_size=4 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 0D 03 02 [12:35:27]Write to MH i2c: E2 08 00 80 05 80 0D 03 02 00 00 00 00 00 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]OFD Sender: No OFD packet to send [12:35:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 0B 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 0B 00 80 05 00 31 DF BF F3 09 5D 3E E8 90 00 4F [12:35:27]RAPDU: 31 DF BF F3 09 5D 3E E8 90 00 [12:35:27]wFMCommunicate OK [12:35:27]SAM_PROTO_SignData done [12:35:27]FM_MakeSignedData done [12:35:27]CreateOFDProtocolMessage [12:35:27]wFMCommunicate request_size=4 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 11 00 00 [12:35:27]Write to MH i2c: E2 08 00 81 05 80 11 00 00 00 00 00 00 00 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 17 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 17 00 81 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 57 [12:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:35:27]wFMCommunicate OK [12:35:27]CreateOFDProtocolMessage done [12:35:27]OFDSenderStorePacket 139691 [12:35:27]StoreOFDPacket docnum=139691 [12:35:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 73 CF 07 01 28 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 8E 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 21 02 00 35 04 06 00 FF 78 AD 66 BF 75 31 DF BF F3 09 5D 3E E8 [12:35:27]CheckFolder [12:35:27]dirname=/storage/ofd_packets [12:35:27]CheckFolder done [12:35:27]ProducePacketName [12:35:27]name=ofd_packets/00139691 [12:35:27]NVStorageSaveData ofd_packets/00139691 [12:35:27]File name is /storage/ofd_packets/00139691 [12:35:27]Write 301 bytes [12:35:27]NVStorageSaveData done [12:35:27]OFDSenderStorePacket done [12:35:27]KKMCreateOFDPacket done [12:35:27]NVStorageSaveData kkm_last_timestamp [12:35:27]File name is /storage/kkm_last_timestamp [12:35:27]Write 4 bytes [12:35:27]NVStorageSaveData done [12:35:27]ExternCall_PrintAddStr [12:35:27]wPrintStart [12:35:27]Write to MH i2c: 01 00 00 82 05 87 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: 01 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: 01 07 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FF 0F 9C [12:35:27]RasterBufferAndPrint [12:35:27]line Счет N : (1)593539 [12:35:27]line ИНН: 02508201610067 [12:35:27]line Контрольно-Кассовый Чек [12:35:27]line ПРОДАЖА [12:35:27]line ТРК (МРК, ГНК) : 52 [12:35:27]line Товар: 2710124130 [12:35:27]line Аи-92-К-5 [12:35:27]line 5.170 * 67.80 [12:35:27]line = 350.53 [12:35:27]line НДС 12% НСП 1% [12:35:27]OFD Sender: Processing packet 139691 [packets to send 137, broken 136] [12:35:27]ProducePacketName [12:35:27]name=ofd_packets/00139691 [12:35:27]OFD Sender: To server: pG, [12:35:27]CommunicateWithHost lk.salyk.kg:30040 [12:35:27]ConnectInit lk.salyk.kg [12:35:27]line > о реализуемом товаре [12:35:27]line ОКРУГЛЕНИЕ: -0.53 [12:35:27]line ИТОГО: 350.00 [12:35:27]line Внесено: 350.00 [12:35:27]line СДАЧА: 0.00 [12:35:27]line НСП 1% : 3.10 [12:35:27]line НДС 12% : 37.22 [12:35:27]line Наличными: 350.00 [12:35:27]line Безнал.: 0.00 [12:35:27]line Место: АЗС № 136 "Партнер Нефть" [12:35:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:35:27]line СНО: Общий режим [12:35:27]line Чек 163 20.08.2024 12:35 [12:35:27]line Смена: 453 ФФД: 1.0 [12:35:27]line ЗНМ: 0300000067 [12:35:27]line РНМ: 0000000000092569 [12:35:27]line Версия ККМ: 001 [12:35:27]line ФМ: 0000000000871776 [12:35:27]line ФД: 139691 [12:35:27]line ФПД: 280893770350453 [12:35:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123526&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139691&fm=280893770350453&tin=02508201610067®Number=0000000000092569&sum=35000 [12:35:28]Connected sock=10 [12:35:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 73 CF 07 01 28 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 8E 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 21 02 00 35 04 06 00 FF 78 AD 66 BF 75 31 DF BF F3 09 5D 3E E8 [12:35:28]written 0, free lines is 4095 [12:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 30 62 47 00 C3 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 21 02 00 F4 03 04 00 21 34 C4 66 B6 04 01 00 00 55 05 57 98 70 40 BD 20 [12:35:28]CommunicateWithHost err = 0 [12:35:28]CheckOFDResponse [12:35:28]1017 (14) - 77093643461234 [12:35:28]1041 (16) - 0000000000871776 [12:35:28]1040 (4) - 139691 [12:35:28]1012 (4) - 20.08.2024 06:13 [12:35:28]1206 (1) - 0 [12:35:28]OFD Sender: Remove packet 139691 [12:35:28]ProducePacketName [12:35:28]name=ofd_packets/00139691 [12:35:28]NVStorageDeleteData [12:35:28]Write to MH i2c: 01 00 00 AD 05 B2 [12:35:28]Write i2c OK [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: 01 [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: 01 07 00 [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 C2 0C 87 [12:35:28]RasterBufferAndPrint [12:35:28]line [12:35:28]line [12:35:28]line [12:35:28]line [12:35:28]line [12:35:28]written 0, free lines is 3272 [12:35:28]MH_Cut [12:35:28]Write to MH i2c: D1 01 00 B4 05 01 8B [12:35:28]Write i2c OK [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: D1 [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: D1 01 00 [12:35:28]MH_I2C_Read... [12:35:28]Read from MH i2c: D1 01 00 B4 05 00 8A [12:35:28]Write to MH i2c: 01 00 00 B5 05 BA [12:35:28]Write i2c OK [12:35:28]MH_I2C_Read... [12:35:28]OFD Sender: No OFD packet to send [12:35:29]*** Cut start [12:35:29]*** Partial cut [12:35:29]*** CUTSNS_PIN = 1 [12:35:29]*** CUTSNS_PIN = 0 [12:35:29]*** Brake cut motor [12:35:29]Read from MH i2c: 01 [12:35:29]MH_I2C_Read... [12:35:29]*** Stop cut motor [12:35:29]*** Cut end [12:35:29]Read from MH i2c: 01 07 00 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FF 0F CF [12:35:29]process_action close_receipt done [12:35:29]requested_data is exist [12:35:29]produce_requested_data [12:35:29]requested_item fm.sn is exist - process it [12:35:29]wFMCommunicate request_size=4 [12:35:29]MH_SAM_APDU [12:35:29]CAPDU: 80 11 00 00 [12:35:29]Write to MH i2c: E2 08 00 B6 05 80 11 00 00 00 00 00 00 35 [12:35:29]Write i2c OK [12:35:29]MH_I2C_Read... [12:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:29]Read from MH i2c: E2 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: E2 17 00 [12:35:29]MH_I2C_Read... [12:35:29]Read from MH i2c: E2 17 00 B6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [12:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:35:29]wFMCommunicate OK [12:35:29]requested_item fd.num is exist - process it [12:35:29]SAM_PROTO_GetFieldsCounters [12:35:29]wFMCommunicate request_size=4 [12:35:29]MH_SAM_APDU [12:35:29]CAPDU: 80 13 00 00 [12:35:29]Write to MH i2c: E2 08 00 B7 05 80 13 00 00 00 00 00 00 38 [12:35:29]Write i2c OK [12:35:29]MH_I2C_Read... [12:35:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:30]Read from MH i2c: E2 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: E2 62 00 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: E2 62 00 B7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [12:35:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:30]wFMCommunicate OK [12:35:30]SAM_PROTO_GetFieldsCounters done [12:35:30]requested_item shift.num is exist - process it [12:35:30]requested_item shift.opened is exist - process it [12:35:30]req_shift_opened [12:35:30]FM_GetShiftState [12:35:30]SAM_PROTO_GetShiftState [12:35:30]wFMCommunicate request_size=4 [12:35:30]MH_SAM_APDU [12:35:30]CAPDU: 80 13 01 00 [12:35:30]Write to MH i2c: E2 08 00 B8 05 80 13 01 00 00 00 00 00 3A [12:35:30]Write i2c OK [12:35:30]MH_I2C_Read... [12:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:30]Read from MH i2c: E2 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: E2 0E 00 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: E2 0E 00 B8 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CB [12:35:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:35:30]wFMCommunicate OK [12:35:30]SAM_PROTO_GetShiftState done [12:35:30]FM_GetShiftState done [12:35:30]req_shift_opened done [12:35:30]requested_item shift.open_date is exist - process it [12:35:30]req_shift_open_date [12:35:30]req_shift_open_date done [12:35:30]produce_requested_data done [12:35:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139691,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:35:30]process_action_free close_receipt [12:35:30]json_value_free [12:35:30]json_value_free done [12:35:30]process_json_proto returns [12:35:30]Send response to host [12:35:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139691,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:35:30]free response buf [12:35:30]execute_script done [12:35:30]execute_script returns [12:35:30]free content buf [12:35:30]Sock 8.Close socket [12:35:30]Sock 8.Thread stoped [12:35:30]accept exits with 9 [12:35:30]New connection [12:35:30]New thread 3067145572 created [12:35:30]Thread 3067288932 joined [12:35:30]Waiting for new connection... [12:35:30] Sock 9.Parse request [12:35:30]Sock 9.Check first char [12:35:30]Sock 9.First char is OK [12:35:30]request: POST /json_proto HTTP/1.0 [12:35:30]Method: POST [12:35:30]URL: /json_proto [12:35:30]Method is POST - this is cgi request [12:35:30]url: /json_proto [12:35:30]query_string will be loaded in cgi processing [12:35:30]execute_cgi json_proto POST (null) [12:35:30]execute_cgi path=json_proto method=POST [12:35:30]POST find Content-Length [12:35:30]Host: 172.17.45.67:8080 [12:35:30]Content-Length: 682 [12:35:30]Content-Type: application/json [12:35:30] [12:35:30]POST finish read [12:35:30]Found Content-Length = 682 [12:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 28.030, "sum" : 1900.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:30]execute_script... [12:35: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)593537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 28.030, "sum" : 1900.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:30]POST & json_proto [12:35:30]process_json_proto [12:35:30]json parsed OK: [12:35:30]protocol is kg_v1.0 [12:35:30]action value=close_receipt [12:35:30]process_action close_receipt [12:35:30]cmd_close_receipt [12:35:30]MH_GetDate [12:35:30]Write to MH i2c: F0 00 00 B9 05 AD [12:35:30]Write i2c OK [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: F0 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: F0 09 00 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: F0 09 00 B9 05 00 92 8D C4 66 5F 7F 2B 66 6E [12:35:30]GetLastDocTimeStamp 1724157326 [12:35:30]current date 1724157330 [12:35:30]FM_GetShiftState [12:35:30]SAM_PROTO_GetShiftState [12:35:30]wFMCommunicate request_size=4 [12:35:30]MH_SAM_APDU [12:35:30]CAPDU: 80 13 01 00 [12:35:30]Write to MH i2c: E2 08 00 BA 05 80 13 01 00 00 00 00 00 3C [12:35:30]Write i2c OK [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: E2 [12:35:30]MH_I2C_Read... [12:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:30]Read from MH i2c: E2 0E 00 [12:35:30]MH_I2C_Read... [12:35:30]Read from MH i2c: E2 0E 00 BA 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CD [12:35:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:35:30]wFMCommunicate OK [12:35:30]SAM_PROTO_GetShiftState done [12:35:30]FM_GetShiftState done [12:35:30]opened in 1724113785 [12:35:30]opened+sec_in_day 1724200185 [12:35:30]quantity*price = 190043 [12:35:30]sum+1 = 190044 [12:35:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.82 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 164 20.08.2024 12:35 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139692 ФПД: 70721786092845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123530&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139692&fm=70721786092845&tin=02508201610067®Number=0000000000092569&sum=190000 [12:35:31]StoreToDocumentArchive [12:35:31]shift 453 fd 139692 [12:35:31]save to /storage/0453/doc_00139692 [12:35:31]save last doc name /storage/0453/doc_00139692 to /storage/kkm_last_doc_name [12:35:31]save OK [12:35:31]Clear old archive folders... [12:35:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:31]tlvbuf is 01FE7260 [12:35:31]SAM_PROTO_ClearQueue [12:35:31]wFMCommunicate request_size=4 [12:35:31]MH_SAM_APDU [12:35:31]CAPDU: 80 09 00 00 [12:35:31]Write to MH i2c: E2 08 00 C7 05 80 09 00 00 00 00 00 00 3E [12:35:31]Write i2c OK [12:35:31]MH_I2C_Read... [12:35:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [12:35:32]RAPDU: 90 00 [12:35:32]wFMCommunicate OK [12:35:32]SAM_PROTO_ClearQueue done [12:35:32]KKMCreateOFDPacket [12:35:32]OFDProtocolAddRootSTLVToBuf [12:35:32]FM_MakeSignedData [12:35:32]FM_MakeSignedData [12:35:32]SAM_PROTO_SignData [12:35:32]wFMCommunicate request_size=4 [12:35:32]MH_SAM_APDU [12:35:32]CAPDU: 80 0D 01 02 [12:35:32]Write to MH i2c: E2 08 00 C8 05 80 0D 01 02 00 00 00 00 46 [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 C8 05 00 90 00 41 [12:35:32]RAPDU: 90 00 [12:35:32]wFMCommunicate OK [12:35:32]wFMCommunicate request_size=255 [12:35:32]MH_SAM_APDU [12: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 35 FF 03 08 00 03 7E 6D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 92 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 21 02 00 35 04 06 00 40 [12:35:32]Write to MH i2c: E2 02 01 C9 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 6D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 92 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 21 02 00 35 04 06 00 40 00 00 CC [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 C9 05 00 90 00 42 [12:35:32]RAPDU: 90 00 [12:35:32]wFMCommunicate OK [12:35:32]wFMCommunicate request_size=10 [12:35:32]MH_SAM_APDU [12:35:32]CAPDU: 80 0D 02 02 05 52 32 F0 1D 2D [12:35:32]Write to MH i2c: E2 0D 00 CA 05 80 0D 02 02 05 00 52 32 F0 1D 2D 00 00 11 [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [12:35:32]RAPDU: 90 00 [12:35:32]wFMCommunicate OK [12:35:32]wFMCommunicate request_size=4 [12:35:32]MH_SAM_APDU [12:35:32]CAPDU: 80 0D 03 02 [12:35:32]Write to MH i2c: E2 08 00 CB 05 80 0D 03 02 00 00 00 00 4B [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 0B 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 0B 00 CB 05 00 B5 72 CF D9 0B 1E 3A 95 90 00 13 [12:35:32]RAPDU: B5 72 CF D9 0B 1E 3A 95 90 00 [12:35:32]wFMCommunicate OK [12:35:32]SAM_PROTO_SignData done [12:35:32]FM_MakeSignedData done [12:35:32]CreateOFDProtocolMessage [12:35:32]wFMCommunicate request_size=4 [12:35:32]MH_SAM_APDU [12:35:32]CAPDU: 80 11 00 00 [12:35:32]Write to MH i2c: E2 08 00 CC 05 80 11 00 00 00 00 00 00 4B [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:32]Read from MH i2c: E2 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 17 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: E2 17 00 CC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [12:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:35:32]wFMCommunicate OK [12:35:32]CreateOFDProtocolMessage done [12:35:32]OFDSenderStorePacket 139692 [12:35:32]StoreOFDPacket docnum=139692 [12:35:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8E D3 07 01 F2 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 6D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 92 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 21 02 00 35 04 06 00 40 52 32 F0 1D 2D B5 72 CF D9 0B 1E 3A 95 [12:35:32]CheckFolder [12:35:32]dirname=/storage/ofd_packets [12:35:32]CheckFolder done [12:35:32]ProducePacketName [12:35:32]name=ofd_packets/00139692 [12:35:32]NVStorageSaveData ofd_packets/00139692 [12:35:32]File name is /storage/ofd_packets/00139692 [12:35:32]Write 301 bytes [12:35:32]NVStorageSaveData done [12:35:32]OFDSenderStorePacket done [12:35:32]KKMCreateOFDPacket done [12:35:32]NVStorageSaveData kkm_last_timestamp [12:35:32]File name is /storage/kkm_last_timestamp [12:35:32]Write 4 bytes [12:35:32]NVStorageSaveData done [12:35:32]ExternCall_PrintAddStr [12:35:32]wPrintStart [12:35:32]Write to MH i2c: 01 00 00 CD 05 D2 [12:35:32]Write i2c OK [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: 01 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: 01 07 00 [12:35:32]MH_I2C_Read... [12:35:32]Read from MH i2c: 01 07 00 CD 05 00 00 00 00 00 FF 0F E7 [12:35:32]RasterBufferAndPrint [12:35:32]line Счет N : (1)593537 [12:35:32]line ИНН: 02508201610067 [12:35:32]line Контрольно-Кассовый Чек [12:35:32]line ПРОДАЖА [12:35:32]line ТРК (МРК, ГНК) : 62 [12:35:32]line Товар: 2710124130 [12:35:32]line Аи-92-К-5 [12:35:32]line 28.030 * 67.80 [12:35:32]line = 1900.43 [12:35:32]line НДС 12% НСП 1% [12:35:32]line > о реализуемом товаре [12:35:32]line ОКРУГЛЕНИЕ: -0.43 [12:35:32]line ИТОГО: 1900.00 [12:35:32]line Внесено: 1900.00 [12:35:32]line СДАЧА: 0.00 [12:35:32]line НСП 1% : 16.82 [12:35:32]line НДС 12% : 201.82 [12:35:32]line Наличными: 1900.00 [12:35:32]line Безнал.: 0.00 [12:35:32]line Место: АЗС № 136 "Партнер Нефть" [12:35:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:35:32]line СНО: Общий режим [12:35:32]line Чек 164 20.08.2024 12:35 [12:35:32]line Смена: 453 ФФД: 1.0 [12:35:32]line ЗНМ: 0300000067 [12:35:32]line РНМ: 0000000000092569 [12:35:32]line Версия ККМ: 001 [12:35:32]line ФМ: 0000000000871776 [12:35:32]line ФД: 139692 [12:35:32]line ФПД: 70721786092845 [12:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123530&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139692&fm=70721786092845&tin=02508201610067®Number=0000000000092569&sum=190000 [12:35:32]OFD Sender: Processing packet 139692 [packets to send 137, broken 136] [12:35:32]ProducePacketName [12:35:32]name=ofd_packets/00139692 [12:35:32]OFD Sender: To server: pG, [12:35:32]CommunicateWithHost lk.salyk.kg:30040 [12:35:32]ConnectInit lk.salyk.kg [12:35:32]written 0, free lines is 4095 [12:35:33]Connected sock=10 [12:35:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8E D3 07 01 F2 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 6D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5B E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 92 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 21 02 00 35 04 06 00 40 52 32 F0 1D 2D B5 72 CF D9 0B 1E 3A 95 [12:35:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C8 06 47 00 4C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 21 02 00 F4 03 04 00 26 34 C4 66 B6 04 01 00 00 48 65 EC CC 1A 55 F9 F3 [12:35:33]CommunicateWithHost err = 0 [12:35:33]CheckOFDResponse [12:35:33]1017 (14) - 77093643461234 [12:35:33]1041 (16) - 0000000000871776 [12:35:33]1040 (4) - 139692 [12:35:33]1012 (4) - 20.08.2024 06:13 [12:35:33]1206 (1) - 0 [12:35:33]OFD Sender: Remove packet 139692 [12:35:33]ProducePacketName [12:35:33]name=ofd_packets/00139692 [12:35:33]NVStorageDeleteData [12:35:33]Write to MH i2c: 01 00 00 F8 05 FD [12:35:33]Write i2c OK [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: 01 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: 01 07 00 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 DF 0C EF [12:35:33]RasterBufferAndPrint [12:35:33]line [12:35:33]line [12:35:33]line [12:35:33]line [12:35:33]line [12:35:33]written 0, free lines is 3307 [12:35:33]MH_Cut [12:35:33]Write to MH i2c: D1 01 00 FF 05 01 D6 [12:35:33]Write i2c OK [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: D1 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: D1 01 00 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: D1 01 00 FF 05 00 D5 [12:35:33]Write to MH i2c: 01 00 00 00 06 06 [12:35:33]Write i2c OK [12:35:33]MH_I2C_Read... [12:35:33]OFD Sender: No OFD packet to send [12:35:34]*** Cut start [12:35:34]*** Partial cut [12:35:34]*** CUTSNS_PIN = 1 [12:35:34]*** CUTSNS_PIN = 0 [12:35:34]*** Brake cut motor [12:35:34]Read from MH i2c: 01 [12:35:34]MH_I2C_Read... [12:35:34]*** Stop cut motor [12:35:34]*** Cut end [12:35:34]Read from MH i2c: 01 07 00 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: 01 07 00 00 06 00 00 00 00 00 FF 0F 1B [12:35:34]process_action close_receipt done [12:35:34]requested_data is exist [12:35:34]produce_requested_data [12:35:34]requested_item fm.sn is exist - process it [12:35:34]wFMCommunicate request_size=4 [12:35:34]MH_SAM_APDU [12:35:34]CAPDU: 80 11 00 00 [12:35:34]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [12:35:34]Write i2c OK [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 [12:35:34]MH_I2C_Read... [12:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:34]Read from MH i2c: E2 17 00 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D8 [12:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:35:34]wFMCommunicate OK [12:35:34]requested_item fd.num is exist - process it [12:35:34]SAM_PROTO_GetFieldsCounters [12:35:34]wFMCommunicate request_size=4 [12:35:34]MH_SAM_APDU [12:35:34]CAPDU: 80 13 00 00 [12:35:34]Write to MH i2c: E2 08 00 02 06 80 13 00 00 00 00 00 00 84 [12:35:34]Write i2c OK [12:35:34]MH_I2C_Read... [12:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:34]Read from MH i2c: E2 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 62 00 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 62 00 02 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [12:35:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:34]wFMCommunicate OK [12:35:34]SAM_PROTO_GetFieldsCounters done [12:35:34]requested_item shift.num is exist - process it [12:35:34]requested_item shift.opened is exist - process it [12:35:34]req_shift_opened [12:35:34]FM_GetShiftState [12:35:34]SAM_PROTO_GetShiftState [12:35:34]wFMCommunicate request_size=4 [12:35:34]MH_SAM_APDU [12:35:34]CAPDU: 80 13 01 00 [12:35:34]Write to MH i2c: E2 08 00 03 06 80 13 01 00 00 00 00 00 86 [12:35:34]Write i2c OK [12:35:34]MH_I2C_Read... [12:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:34]Read from MH i2c: E2 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 0E 00 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 0E 00 03 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 17 [12:35:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:35:34]wFMCommunicate OK [12:35:34]SAM_PROTO_GetShiftState done [12:35:34]FM_GetShiftState done [12:35:34]req_shift_opened done [12:35:34]requested_item shift.open_date is exist - process it [12:35:34]req_shift_open_date [12:35:34]req_shift_open_date done [12:35:34]produce_requested_data done [12:35:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139692,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:35:34]process_action_free close_receipt [12:35:34]json_value_free [12:35:34]json_value_free done [12:35:34]process_json_proto returns [12:35:34]Send response to host [12:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139692,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:35:34]free response buf [12:35:34]execute_script done [12:35:34]execute_script returns [12:35:34]free content buf [12:35:34]Sock 9.Close socket [12:35:34]Sock 9.Thread stoped [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]accept exits with 8 [12:36:23]New connection [12:36:23]New thread 3067288932 created [12:36:23]Thread 3067145572 joined [12:36:23]Waiting for new connection... [12:36:23] Sock 8.Parse request [12:36:23]Sock 8.Check first char [12:36:23]Sock 8.First char is OK [12:36:23]request: POST /json_proto HTTP/1.0 [12:36:23]Method: POST [12:36:23]URL: /json_proto [12:36:23]Method is POST - this is cgi request [12:36:23]url: /json_proto [12:36:23]query_string will be loaded in cgi processing [12:36:23]execute_cgi json_proto POST (null) [12:36:23]execute_cgi path=json_proto method=POST [12:36:23]POST find Content-Length [12:36:23]Host: 172.17.45.67:8080 [12:36:23]Content-Length: 677 [12:36:23]Content-Type: application/json [12:36:23] [12:36:23]POST finish read [12:36:23]Found Content-Length = 677 [12:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:23]execute_script... [12:36:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:23]POST & json_proto [12:36:23]process_json_proto [12:36:23]json parsed OK: [12:36:23]protocol is kg_v1.0 [12:36:23]action value=close_receipt [12:36:23]process_action close_receipt [12:36:23]cmd_close_receipt [12:36:23]MH_GetDate [12:36:23]Write to MH i2c: F0 00 00 04 06 F9 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 09 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 09 00 04 06 00 C7 8D C4 66 5F 7F 2B 66 EF [12:36:23]GetLastDocTimeStamp 1724157330 [12:36:23]current date 1724157383 [12:36:23]FM_GetShiftState [12:36:23]SAM_PROTO_GetShiftState [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 13 01 00 [12:36:23]Write to MH i2c: E2 08 00 05 06 80 13 01 00 00 00 00 00 88 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0E 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0E 00 05 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 19 [12:36:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:36:23]wFMCommunicate OK [12:36:23]SAM_PROTO_GetShiftState done [12:36:23]FM_GetShiftState done [12:36:23]opened in 1724113785 [12:36:23]opened+sec_in_day 1724200185 [12:36:23]quantity*price = 22035 [12:36:23]sum+1 = 22036 [12:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 165 20.08.2024 12:36 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139693 ФПД: 44397251110779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123623&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139693&fm=44397251110779&tin=02508201610067®Number=0000000000092569&sum=22000 [12:36:24]StoreToDocumentArchive [12:36:24]shift 453 fd 139693 [12:36:24]save to /storage/0453/doc_00139693 [12:36:24]save last doc name /storage/0453/doc_00139693 to /storage/kkm_last_doc_name [12:36:24]save OK [12:36:24]Clear old archive folders... [12:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:24]tlvbuf is 020181A0 [12:36:24]SAM_PROTO_ClearQueue [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 09 00 00 [12:36:24]Write to MH i2c: E2 08 00 12 06 80 09 00 00 00 00 00 00 8A [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]SAM_PROTO_ClearQueue done [12:36:24]KKMCreateOFDPacket [12:36:24]OFDProtocolAddRootSTLVToBuf [12:36:24]FM_MakeSignedData [12:36:24]FM_MakeSignedData [12:36:24]SAM_PROTO_SignData [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 01 02 [12:36:24]Write to MH i2c: E2 08 00 13 06 80 0D 01 02 00 00 00 00 92 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]wFMCommunicate request_size=255 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 C7 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 21 02 00 35 04 06 00 28 [12:36:24]Write to MH i2c: E2 02 01 14 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 C7 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 21 02 00 35 04 06 00 28 00 00 BE [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]wFMCommunicate request_size=10 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 02 02 05 61 0A 61 A7 7B [12:36:24]Write to MH i2c: E2 0D 00 15 06 80 0D 02 02 05 00 61 0A 61 A7 7B 00 00 8D [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [12:36:24]RAPDU: 90 00 [12:36:24]wFMCommunicate OK [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 0D 03 02 [12:36:24]Write to MH i2c: E2 08 00 16 06 80 0D 03 02 00 00 00 00 97 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 0B 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 0B 00 16 06 00 45 7B 7E 9C 70 03 1E C6 90 00 C9 [12:36:24]RAPDU: 45 7B 7E 9C 70 03 1E C6 90 00 [12:36:24]wFMCommunicate OK [12:36:24]SAM_PROTO_SignData done [12:36:24]FM_MakeSignedData done [12:36:24]CreateOFDProtocolMessage [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 11 00 00 [12:36:24]Write to MH i2c: E2 08 00 17 06 80 11 00 00 00 00 00 00 97 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:24]Read from MH i2c: E2 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 17 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: E2 17 00 17 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EE [12:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:36:24]wFMCommunicate OK [12:36:24]CreateOFDProtocolMessage done [12:36:24]OFDSenderStorePacket 139693 [12:36:24]StoreOFDPacket docnum=139693 [12:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 87 08 07 01 0B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 C7 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 21 02 00 35 04 06 00 28 61 0A 61 A7 7B 45 7B 7E 9C 70 03 1E C6 [12:36:24]CheckFolder [12:36:24]dirname=/storage/ofd_packets [12:36:24]CheckFolder done [12:36:24]ProducePacketName [12:36:24]name=ofd_packets/00139693 [12:36:24]NVStorageSaveData ofd_packets/00139693 [12:36:24]File name is /storage/ofd_packets/00139693 [12:36:24]Write 301 bytes [12:36:24]NVStorageSaveData done [12:36:24]OFDSenderStorePacket done [12:36:24]KKMCreateOFDPacket done [12:36:24]NVStorageSaveData kkm_last_timestamp [12:36:24]File name is /storage/kkm_last_timestamp [12:36:24]Write 4 bytes [12:36:24]NVStorageSaveData done [12:36:24]ExternCall_PrintAddStr [12:36:24]wPrintStart [12:36:24]Write to MH i2c: 01 00 00 18 06 1E [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [12:36:24]RasterBufferAndPrint [12:36:24]line Счет N : (1)593540 [12:36:24]line ИНН: 02508201610067 [12:36:24]line Контрольно-Кассовый Чек [12:36:24]line ПРОДАЖА [12:36:24]line ТРК (МРК, ГНК) : 32 [12:36:24]line Товар: 2710124130 [12:36:24]line Аи-92-К-5 [12:36:24]line 3.250 * 67.80 [12:36:24]line = 220.35 [12:36:24]line НДС 12% НСП 1% [12:36:24]line > о реализуемом товаре [12:36:24]line ОКРУГЛЕНИЕ: -0.35 [12:36:24]line ИТОГО: 220.00 [12:36:24]line Внесено: 220.00 [12:36:24]line СДАЧА: 0.00 [12:36:24]line НСП 1% : 1.95 [12:36:24]line НДС 12% : 23.40 [12:36:24]line Наличными: 220.00 [12:36:24]line Безнал.: 0.00 [12:36:24]line Место: АЗС № 136 "Партнер Нефть" [12:36:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:36:24]line СНО: Общий режим [12:36:24]line Чек 165 20.08.2024 12:36 [12:36:24]line Смена: 453 ФФД: 1.0 [12:36:24]line ЗНМ: 0300000067 [12:36:24]line РНМ: 0000000000092569 [12:36:24]line Версия ККМ: 001 [12:36:24]line ФМ: 0000000000871776 [12:36:24]line ФД: 139693 [12:36:24]line ФПД: 44397251110779 [12:36:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T123623&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139693&fm=44397251110779&tin=02508201610067®Number=0000000000092569&sum=22000 [12:36:25]OFD Sender: Processing packet 139693 [packets to send 137, broken 136] [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00139693 [12:36:25]OFD Sender: To server: pG, [12:36:25]CommunicateWithHost lk.salyk.kg:30040 [12:36:25]ConnectInit lk.salyk.kg [12:36:25]written 0, free lines is 4095 [12:36:25]Connected sock=10 [12:36:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 87 08 07 01 0B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 C7 8D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 21 02 00 35 04 06 00 28 61 0A 61 A7 7B 45 7B 7E 9C 70 03 1E C6 [12:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 58 CF 47 00 25 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 21 02 00 F4 03 04 00 5A 34 C4 66 B6 04 01 00 00 5B 5A 7D 39 FE D2 73 95 [12:36:25]CommunicateWithHost err = 0 [12:36:25]CheckOFDResponse [12:36:25]1017 (14) - 77093643461234 [12:36:25]1041 (16) - 0000000000871776 [12:36:25]1040 (4) - 139693 [12:36:25]1012 (4) - 20.08.2024 06:14 [12:36:25]1206 (1) - 0 [12:36:25]OFD Sender: Remove packet 139693 [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00139693 [12:36:25]NVStorageDeleteData [12:36:25]Write to MH i2c: 01 00 00 43 06 49 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 C6 0C 22 [12:36:25]RasterBufferAndPrint [12:36:25]line [12:36:25]line [12:36:25]line [12:36:25]line [12:36:25]line [12:36:25]written 0, free lines is 3277 [12:36:25]MH_Cut [12:36:25]Write to MH i2c: D1 01 00 4A 06 01 22 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: D1 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: D1 01 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: D1 01 00 4A 06 00 21 [12:36:25]Write to MH i2c: 01 00 00 4B 06 51 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:26]OFD Sender: No OFD packet to send [12:36:26]*** Cut start [12:36:26]*** Partial cut [12:36:26]*** CUTSNS_PIN = 1 [12:36:26]*** CUTSNS_PIN = 0 [12:36:26]*** Brake cut motor [12:36:26]Read from MH i2c: 01 [12:36:26]MH_I2C_Read... [12:36:26]*** Stop cut motor [12:36:26]*** Cut end [12:36:26]Read from MH i2c: 01 07 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 4B 06 00 00 00 00 00 FF 0F 66 [12:36:26]process_action close_receipt done [12:36:26]requested_data is exist [12:36:26]produce_requested_data [12:36:26]requested_item fm.sn is exist - process it [12:36:26]wFMCommunicate request_size=4 [12:36:26]MH_SAM_APDU [12:36:26]CAPDU: 80 11 00 00 [12:36:26]Write to MH i2c: E2 08 00 4C 06 80 11 00 00 00 00 00 00 CC [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:26]Read from MH i2c: E2 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 17 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: E2 17 00 4C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [12:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:36:27]wFMCommunicate OK [12:36:27]requested_item fd.num is exist - process it [12:36:27]SAM_PROTO_GetFieldsCounters [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 00 00 [12:36:27]Write to MH i2c: E2 08 00 4D 06 80 13 00 00 00 00 00 00 CF [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 62 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 62 00 4D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [12:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetFieldsCounters done [12:36:27]requested_item shift.num is exist - process it [12:36:27]requested_item shift.opened is exist - process it [12:36:27]req_shift_opened [12:36:27]FM_GetShiftState [12:36:27]SAM_PROTO_GetShiftState [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 01 00 [12:36:27]Write to MH i2c: E2 08 00 4E 06 80 13 01 00 00 00 00 00 D1 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 4E 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 62 [12:36:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetShiftState done [12:36:27]FM_GetShiftState done [12:36:27]req_shift_opened done [12:36:27]requested_item shift.open_date is exist - process it [12:36:27]req_shift_open_date [12:36:27]req_shift_open_date done [12:36:27]produce_requested_data done [12:36:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139693,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:36:27]process_action_free close_receipt [12:36:27]json_value_free [12:36:27]json_value_free done [12:36:27]process_json_proto returns [12:36:27]Send response to host [12:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139693,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:36:27]free response buf [12:36:27]execute_script done [12:36:27]execute_script returns [12:36:27]free content buf [12:36:27]Sock 8.Close socket [12:36:27]Sock 8.Thread stoped [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:10]accept exits with 9 [12:42:10]New connection [12:42:10]New thread 3067145572 created [12:42:10]Thread 3067288932 joined [12:42:10]Waiting for new connection... [12:42:10] Sock 9.Parse request [12:42:10]Sock 9.Check first char [12:42:10]Sock 9.First char is OK [12:42:10]request: POST /json_proto HTTP/1.0 [12:42:10]Method: POST [12:42:10]URL: /json_proto [12:42:10]Method is POST - this is cgi request [12:42:10]url: /json_proto [12:42:10]query_string will be loaded in cgi processing [12:42:10]execute_cgi json_proto POST (null) [12:42:10]execute_cgi path=json_proto method=POST [12:42:10]POST find Content-Length [12:42:10]Host: 172.17.45.67:8080 [12:42:10]Content-Length: 677 [12:42:10]Content-Type: application/json [12:42:10] [12:42:10]POST finish read [12:42:10]Found Content-Length = 677 [12:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:10]execute_script... [12:42: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)593541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:10]POST & json_proto [12:42:10]process_json_proto [12:42:10]json parsed OK: [12:42:10]protocol is kg_v1.0 [12:42:10]action value=close_receipt [12:42:10]process_action close_receipt [12:42:10]cmd_close_receipt [12:42:10]MH_GetDate [12:42:10]Write to MH i2c: F0 00 00 4F 06 44 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: F0 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: F0 09 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: F0 09 00 4F 06 00 23 8F C4 66 5F 7F 2B 66 98 [12:42:10]GetLastDocTimeStamp 1724157383 [12:42:10]current date 1724157731 [12:42:10]FM_GetShiftState [12:42:10]SAM_PROTO_GetShiftState [12:42:10]wFMCommunicate request_size=4 [12:42:10]MH_SAM_APDU [12:42:10]CAPDU: 80 13 01 00 [12:42:10]Write to MH i2c: E2 08 00 50 06 80 13 01 00 00 00 00 00 D3 [12:42:10]Write i2c OK [12:42:10]MH_I2C_Read... [12:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:10]Read from MH i2c: E2 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 0E 00 [12:42:10]MH_I2C_Read... [12:42:10]Read from MH i2c: E2 0E 00 50 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 64 [12:42:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:42:10]wFMCommunicate OK [12:42:10]SAM_PROTO_GetShiftState done [12:42:10]FM_GetShiftState done [12:42:10]opened in 1724113785 [12:42:10]opened+sec_in_day 1724200185 [12:42:10]quantity*price = 40002 [12:42:10]sum+1 = 40003 [12:42:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 166 20.08.2024 12:42 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139694 ФПД: 264853727991625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T124211&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139694&fm=264853727991625&tin=02508201610067®Number=0000000000092569&sum=40000 [12:42:12]StoreToDocumentArchive [12:42:12]shift 453 fd 139694 [12:42:12]save to /storage/0453/doc_00139694 [12:42:12]save last doc name /storage/0453/doc_00139694 to /storage/kkm_last_doc_name [12:42:12]save OK [12:42:12]Clear old archive folders... [12:42:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:12]tlvbuf is 01FE75C0 [12:42:12]SAM_PROTO_ClearQueue [12:42:12]wFMCommunicate request_size=4 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 09 00 00 [12:42:12]Write to MH i2c: E2 08 00 5D 06 80 09 00 00 00 00 00 00 D5 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [12:42:12]RAPDU: 90 00 [12:42:12]wFMCommunicate OK [12:42:12]SAM_PROTO_ClearQueue done [12:42:12]KKMCreateOFDPacket [12:42:12]OFDProtocolAddRootSTLVToBuf [12:42:12]FM_MakeSignedData [12:42:12]FM_MakeSignedData [12:42:12]SAM_PROTO_SignData [12:42:12]wFMCommunicate request_size=4 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 0D 01 02 [12:42:12]Write to MH i2c: E2 08 00 5E 06 80 0D 01 02 00 00 00 00 DD [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [12:42:12]RAPDU: 90 00 [12:42:12]wFMCommunicate OK [12:42:12]wFMCommunicate request_size=255 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 23 8F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 21 02 00 35 04 06 00 F0 [12:42:12]Write to MH i2c: E2 02 01 5F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 23 8F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 21 02 00 35 04 06 00 F0 00 00 54 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [12:42:12]RAPDU: 90 00 [12:42:12]wFMCommunicate OK [12:42:12]wFMCommunicate request_size=10 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 0D 02 02 05 E2 10 5F D7 49 [12:42:12]Write to MH i2c: E2 0D 00 60 06 80 0D 02 02 05 00 E2 10 5F D7 49 00 00 5B [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 03 00 60 06 00 90 00 DA [12:42:12]RAPDU: 90 00 [12:42:12]wFMCommunicate OK [12:42:12]wFMCommunicate request_size=4 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 0D 03 02 [12:42:12]Write to MH i2c: E2 08 00 61 06 80 0D 03 02 00 00 00 00 E2 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 0B 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 0B 00 61 06 00 7D 2F 9A 5C FA F6 13 E0 90 00 68 [12:42:12]RAPDU: 7D 2F 9A 5C FA F6 13 E0 90 00 [12:42:12]wFMCommunicate OK [12:42:12]SAM_PROTO_SignData done [12:42:12]FM_MakeSignedData done [12:42:12]CreateOFDProtocolMessage [12:42:12]wFMCommunicate request_size=4 [12:42:12]MH_SAM_APDU [12:42:12]CAPDU: 80 11 00 00 [12:42:12]Write to MH i2c: E2 08 00 62 06 80 11 00 00 00 00 00 00 E2 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:12]Read from MH i2c: E2 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 17 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: E2 17 00 62 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [12:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:42:12]wFMCommunicate OK [12:42:12]CreateOFDProtocolMessage done [12:42:12]OFDSenderStorePacket 139694 [12:42:12]StoreOFDPacket docnum=139694 [12:42:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 67 3A 07 01 41 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 23 8F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 21 02 00 35 04 06 00 F0 E2 10 5F D7 49 7D 2F 9A 5C FA F6 13 E0 [12:42:12]CheckFolder [12:42:12]dirname=/storage/ofd_packets [12:42:12]CheckFolder done [12:42:12]ProducePacketName [12:42:12]name=ofd_packets/00139694 [12:42:12]NVStorageSaveData ofd_packets/00139694 [12:42:12]File name is /storage/ofd_packets/00139694 [12:42:12]Write 301 bytes [12:42:12]NVStorageSaveData done [12:42:12]OFDSenderStorePacket done [12:42:12]KKMCreateOFDPacket done [12:42:12]NVStorageSaveData kkm_last_timestamp [12:42:12]File name is /storage/kkm_last_timestamp [12:42:12]Write 4 bytes [12:42:12]NVStorageSaveData done [12:42:12]ExternCall_PrintAddStr [12:42:12]wPrintStart [12:42:12]Write to MH i2c: 01 00 00 63 06 69 [12:42:12]Write i2c OK [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: 01 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: 01 07 00 [12:42:12]MH_I2C_Read... [12:42:12]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 FF 0F 7E [12:42:12]RasterBufferAndPrint [12:42:12]line Счет N : (1)593541 [12:42:12]line ИНН: 02508201610067 [12:42:12]line Контрольно-Кассовый Чек [12:42:12]line ПРОДАЖА [12:42:12]line ТРК (МРК, ГНК) : 52 [12:42:12]line Товар: 2710124130 [12:42:12]line Аи-92-К-5 [12:42:12]line 5.900 * 67.80 [12:42:12]line = 400.02 [12:42:12]line НДС 12% НСП 1% [12:42:12]line > о реализуемом товаре [12:42:12]line ОКРУГЛЕНИЕ: -0.02 [12:42:12]line ИТОГО: 400.00 [12:42:12]line Внесено: 400.00 [12:42:12]line СДАЧА: 0.00 [12:42:12]line НСП 1% : 3.54 [12:42:12]line НДС 12% : 42.48 [12:42:12]line Наличными: 400.00 [12:42:12]line Безнал.: 0.00 [12:42:12]line Место: АЗС № 136 "Партнер Нефть" [12:42:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:42:12]line СНО: Общий режим [12:42:12]line Чек 166 20.08.2024 12:42 [12:42:12]line Смена: 453 ФФД: 1.0 [12:42:12]line ЗНМ: 0300000067 [12:42:12]line РНМ: 0000000000092569 [12:42:12]line Версия ККМ: 001 [12:42:12]line ФМ: 0000000000871776 [12:42:12]line ФД: 139694 [12:42:12]line ФПД: 264853727991625 [12:42:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T124211&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139694&fm=264853727991625&tin=02508201610067®Number=0000000000092569&sum=40000 [12:42:12]OFD Sender: Processing packet 139694 [packets to send 137, broken 136] [12:42:12]ProducePacketName [12:42:12]name=ofd_packets/00139694 [12:42:12]OFD Sender: To server: pG, [12:42:12]CommunicateWithHost lk.salyk.kg:30040 [12:42:12]ConnectInit lk.salyk.kg [12:42:12]written 0, free lines is 4095 [12:42:13]Connected sock=8 [12:42:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 67 3A 07 01 41 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 23 8F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 21 02 00 35 04 06 00 F0 E2 10 5F D7 49 7D 2F 9A 5C FA F6 13 E0 [12:42:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 11 13 47 00 A6 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 21 02 00 F4 03 04 00 B6 35 C4 66 B6 04 01 00 00 C8 33 8F B8 5C D7 83 9C [12:42:13]CommunicateWithHost err = 0 [12:42:13]CheckOFDResponse [12:42:13]1017 (14) - 77093643461234 [12:42:13]1041 (16) - 0000000000871776 [12:42:13]1040 (4) - 139694 [12:42:13]1012 (4) - 20.08.2024 06:20 [12:42:13]1206 (1) - 0 [12:42:13]OFD Sender: Remove packet 139694 [12:42:13]ProducePacketName [12:42:13]name=ofd_packets/00139694 [12:42:13]NVStorageDeleteData [12:42:13]Write to MH i2c: 01 00 00 8E 06 94 [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: 01 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: 01 07 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: 01 07 00 8E 06 00 00 00 00 00 CA 0C 71 [12:42:13]RasterBufferAndPrint [12:42:13]line [12:42:13]line [12:42:13]line [12:42:13]line [12:42:13]line [12:42:13]written 0, free lines is 3280 [12:42:13]MH_Cut [12:42:13]Write to MH i2c: D1 01 00 95 06 01 6D [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: D1 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: D1 01 00 [12:42:13]MH_I2C_Read... [12:42:13]Read from MH i2c: D1 01 00 95 06 00 6C [12:42:13]Write to MH i2c: 01 00 00 96 06 9C [12:42:13]Write i2c OK [12:42:13]MH_I2C_Read... [12:42:13]OFD Sender: No OFD packet to send [12:42:14]*** Cut start [12:42:14]*** Partial cut [12:42:14]*** CUTSNS_PIN = 1 [12:42:14]*** CUTSNS_PIN = 0 [12:42:14]*** Brake cut motor [12:42:14]Read from MH i2c: 01 [12:42:14]MH_I2C_Read... [12:42:14]*** Stop cut motor [12:42:14]*** Cut end [12:42:14]Read from MH i2c: 01 07 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: 01 07 00 96 06 00 00 00 00 00 FF 0F B1 [12:42:14]process_action close_receipt done [12:42:14]requested_data is exist [12:42:14]produce_requested_data [12:42:14]requested_item fm.sn is exist - process it [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 11 00 00 [12:42:14]Write to MH i2c: E2 08 00 97 06 80 11 00 00 00 00 00 00 17 [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 17 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 17 00 97 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6E [12:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:42:14]wFMCommunicate OK [12:42:14]requested_item fd.num is exist - process it [12:42:14]SAM_PROTO_GetFieldsCounters [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 13 00 00 [12:42:14]Write to MH i2c: E2 08 00 98 06 80 13 00 00 00 00 00 00 1A [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 62 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 62 00 98 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [12:42:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:14]wFMCommunicate OK [12:42:14]SAM_PROTO_GetFieldsCounters done [12:42:14]requested_item shift.num is exist - process it [12:42:14]requested_item shift.opened is exist - process it [12:42:14]req_shift_opened [12:42:14]FM_GetShiftState [12:42:14]SAM_PROTO_GetShiftState [12:42:14]wFMCommunicate request_size=4 [12:42:14]MH_SAM_APDU [12:42:14]CAPDU: 80 13 01 00 [12:42:14]Write to MH i2c: E2 08 00 99 06 80 13 01 00 00 00 00 00 1C [12:42:14]Write i2c OK [12:42:14]MH_I2C_Read... [12:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:14]Read from MH i2c: E2 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 0E 00 [12:42:14]MH_I2C_Read... [12:42:14]Read from MH i2c: E2 0E 00 99 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AD [12:42:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:42:14]wFMCommunicate OK [12:42:14]SAM_PROTO_GetShiftState done [12:42:14]FM_GetShiftState done [12:42:14]req_shift_opened done [12:42:14]requested_item shift.open_date is exist - process it [12:42:14]req_shift_open_date [12:42:14]req_shift_open_date done [12:42:14]produce_requested_data done [12:42:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139694,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:42:14]process_action_free close_receipt [12:42:14]json_value_free [12:42:14]json_value_free done [12:42:14]process_json_proto returns [12:42:14]Send response to host [12:42:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139694,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:42:14]free response buf [12:42:14]execute_script done [12:42:14]execute_script returns [12:42:14]free content buf [12:42:14]Sock 9.Close socket [12:42:14]Sock 9.Thread stoped [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:25]accept exits with 10 [12:45:25]New connection [12:45:25]New thread 3067288932 created [12:45:25]Thread 3067145572 joined [12:45:25]Waiting for new connection... [12:45:25] Sock 10.Parse request [12:45:25]Sock 10.Check first char [12:45:25]Sock 10.First char is OK [12:45:25]request: POST /json_proto HTTP/1.0 [12:45:25]Method: POST [12:45:25]URL: /json_proto [12:45:25]Method is POST - this is cgi request [12:45:25]url: /json_proto [12:45:25]query_string will be loaded in cgi processing [12:45:25]execute_cgi json_proto POST (null) [12:45:25]execute_cgi path=json_proto method=POST [12:45:25]POST find Content-Length [12:45:25]Host: 172.17.45.67:8080 [12:45:25]Content-Length: 677 [12:45:25]Content-Type: application/json [12:45:25] [12:45:25]POST finish read [12:45:25]Found Content-Length = 677 [12:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:25]execute_script... [12:45: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)593542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:25]POST & json_proto [12:45:25]process_json_proto [12:45:25]json parsed OK: [12:45:25]protocol is kg_v1.0 [12:45:25]action value=close_receipt [12:45:25]process_action close_receipt [12:45:25]cmd_close_receipt [12:45:25]MH_GetDate [12:45:25]Write to MH i2c: F0 00 00 9A 06 8F [12:45:25]Write i2c OK [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: F0 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: F0 09 00 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: F0 09 00 9A 06 00 E5 8F C4 66 5F 7F 2B 66 A5 [12:45:25]GetLastDocTimeStamp 1724157731 [12:45:25]current date 1724157925 [12:45:25]FM_GetShiftState [12:45:25]SAM_PROTO_GetShiftState [12:45:25]wFMCommunicate request_size=4 [12:45:25]MH_SAM_APDU [12:45:25]CAPDU: 80 13 01 00 [12:45:25]Write to MH i2c: E2 08 00 9B 06 80 13 01 00 00 00 00 00 1E [12:45:25]Write i2c OK [12:45:25]MH_I2C_Read... [12:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:25]Read from MH i2c: E2 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: E2 0E 00 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: E2 0E 00 9B 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AF [12:45:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:45:25]wFMCommunicate OK [12:45:25]SAM_PROTO_GetShiftState done [12:45:25]FM_GetShiftState done [12:45:25]opened in 1724113785 [12:45:25]opened+sec_in_day 1724200185 [12:45:25]quantity*price = 60003 [12:45:25]sum+1 = 60004 [12:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 167 20.08.2024 12:45 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139695 ФПД: 45646313720173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T124525&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139695&fm=45646313720173&tin=02508201610067®Number=0000000000092569&sum=60000 [12:45:26]StoreToDocumentArchive [12:45:26]shift 453 fd 139695 [12:45:26]save to /storage/0453/doc_00139695 [12:45:26]save last doc name /storage/0453/doc_00139695 to /storage/kkm_last_doc_name [12:45:26]save OK [12:45:26]Clear old archive folders... [12:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:26]tlvbuf is 01FEEBC0 [12:45:26]SAM_PROTO_ClearQueue [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 09 00 00 [12:45:26]Write to MH i2c: E2 08 00 A8 06 80 09 00 00 00 00 00 00 20 [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 03 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [12:45:26]RAPDU: 90 00 [12:45:26]wFMCommunicate OK [12:45:26]SAM_PROTO_ClearQueue done [12:45:26]KKMCreateOFDPacket [12:45:26]OFDProtocolAddRootSTLVToBuf [12:45:26]FM_MakeSignedData [12:45:26]FM_MakeSignedData [12:45:26]SAM_PROTO_SignData [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 0D 01 02 [12:45:26]Write to MH i2c: E2 08 00 A9 06 80 0D 01 02 00 00 00 00 28 [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 03 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 03 00 A9 06 00 90 00 23 [12:45:26]RAPDU: 90 00 [12:45:26]wFMCommunicate OK [12:45:26]wFMCommunicate request_size=255 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 E5 8F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 21 02 00 35 04 06 00 29 [12:45:26]Write to MH i2c: E2 02 01 AA 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 E5 8F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 21 02 00 35 04 06 00 29 00 00 7E [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 AA 06 00 90 00 24 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]wFMCommunicate request_size=10 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 0D 02 02 05 83 DC 50 89 6D [12:45:27]Write to MH i2c: E2 0D 00 AB 06 80 0D 02 02 05 00 83 DC 50 89 6D 00 00 DA [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 AB 06 00 90 00 25 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 0D 03 02 [12:45:27]Write to MH i2c: E2 08 00 AC 06 80 0D 03 02 00 00 00 00 2D [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0B 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0B 00 AC 06 00 F2 EB 09 D6 FE 47 18 88 90 00 CF [12:45:27]RAPDU: F2 EB 09 D6 FE 47 18 88 90 00 [12:45:27]wFMCommunicate OK [12:45:27]SAM_PROTO_SignData done [12:45:27]FM_MakeSignedData done [12:45:27]CreateOFDProtocolMessage [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 11 00 00 [12:45:27]Write to MH i2c: E2 08 00 AD 06 80 11 00 00 00 00 00 00 2D [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 17 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 17 00 AD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [12:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:45:27]wFMCommunicate OK [12:45:27]CreateOFDProtocolMessage done [12:45:27]OFDSenderStorePacket 139695 [12:45:27]StoreOFDPacket docnum=139695 [12:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 95 C7 07 01 07 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 E5 8F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 21 02 00 35 04 06 00 29 83 DC 50 89 6D F2 EB 09 D6 FE 47 18 88 [12:45:27]CheckFolder [12:45:27]dirname=/storage/ofd_packets [12:45:27]CheckFolder done [12:45:27]ProducePacketName [12:45:27]name=ofd_packets/00139695 [12:45:27]NVStorageSaveData ofd_packets/00139695 [12:45:27]File name is /storage/ofd_packets/00139695 [12:45:27]Write 301 bytes [12:45:27]NVStorageSaveData done [12:45:27]OFDSenderStorePacket done [12:45:27]KKMCreateOFDPacket done [12:45:27]NVStorageSaveData kkm_last_timestamp [12:45:27]File name is /storage/kkm_last_timestamp [12:45:27]Write 4 bytes [12:45:27]NVStorageSaveData done [12:45:27]ExternCall_PrintAddStr [12:45:27]wPrintStart [12:45:27]Write to MH i2c: 01 00 00 AE 06 B4 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: 01 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: 01 07 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: 01 07 00 AE 06 00 00 00 00 00 FF 0F C9 [12:45:27]RasterBufferAndPrint [12:45:27]line Счет N : (1)593542 [12:45:27]line ИНН: 02508201610067 [12:45:27]line Контрольно-Кассовый Чек [12:45:27]line ПРОДАЖА [12:45:27]line ТРК (МРК, ГНК) : 62 [12:45:27]line Товар: 2710124130 [12:45:27]line Аи-92-К-5 [12:45:27]line 8.850 * 67.80 [12:45:27]line = 600.03 [12:45:27]line НДС 12% НСП 1% [12:45:27]line > о реализуемом товаре [12:45:27]line ОКРУГЛЕНИЕ: -0.03 [12:45:27]line ИТОГО: 600.00 [12:45:27]line Внесено: 600.00 [12:45:27]line СДАЧА: 0.00 [12:45:27]line НСП 1% : 5.31 [12:45:27]line НДС 12% : 63.72 [12:45:27]line Наличными: 600.00 [12:45:27]line Безнал.: 0.00 [12:45:27]line Место: АЗС № 136 "Партнер Нефть" [12:45:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:45:27]line СНО: Общий режим [12:45:27]line Чек 167 20.08.2024 12:45 [12:45:27]line Смена: 453 ФФД: 1.0 [12:45:27]line ЗНМ: 0300000067 [12:45:27]line РНМ: 0000000000092569 [12:45:27]line Версия ККМ: 001 [12:45:27]line ФМ: 0000000000871776 [12:45:27]line ФД: 139695 [12:45:27]line ФПД: 45646313720173 [12:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T124525&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139695&fm=45646313720173&tin=02508201610067®Number=0000000000092569&sum=60000 [12:45:27]OFD Sender: Processing packet 139695 [packets to send 137, broken 136] [12:45:27]ProducePacketName [12:45:27]name=ofd_packets/00139695 [12:45:27]OFD Sender: To server: pG, [12:45:27]CommunicateWithHost lk.salyk.kg:30040 [12:45:27]ConnectInit lk.salyk.kg [12:45:27]written 0, free lines is 4095 [12:45:27]Connected sock=9 [12:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 95 C7 07 01 07 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 E5 8F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 21 02 00 35 04 06 00 29 83 DC 50 89 6D F2 EB 09 D6 FE 47 18 88 [12:45:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A3 19 47 00 C6 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 21 02 00 F4 03 04 00 79 36 C4 66 B6 04 01 00 00 CB AB 0E 0A 2B 63 D1 A9 [12:45:28]CommunicateWithHost err = 0 [12:45:28]CheckOFDResponse [12:45:28]1017 (14) - 77093643461234 [12:45:28]1041 (16) - 0000000000871776 [12:45:28]1040 (4) - 139695 [12:45:28]1012 (4) - 20.08.2024 06:23 [12:45:28]1206 (1) - 0 [12:45:28]OFD Sender: Remove packet 139695 [12:45:28]ProducePacketName [12:45:28]name=ofd_packets/00139695 [12:45:28]NVStorageDeleteData [12:45:28]Write to MH i2c: 01 00 00 D9 06 DF [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 07 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 C4 0C B6 [12:45:28]RasterBufferAndPrint [12:45:28]line [12:45:28]line [12:45:28]line [12:45:28]line [12:45:28]line [12:45:28]written 0, free lines is 3274 [12:45:28]MH_Cut [12:45:28]Write to MH i2c: D1 01 00 E0 06 01 B8 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: D1 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: D1 01 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: D1 01 00 E0 06 00 B7 [12:45:28]Write to MH i2c: 01 00 00 E1 06 E7 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]OFD Sender: No OFD packet to send [12:45:28]*** Cut start [12:45:28]*** Partial cut [12:45:28]*** CUTSNS_PIN = 1 [12:45:28]*** CUTSNS_PIN = 0 [12:45:29]*** Brake cut motor [12:45:29]Read from MH i2c: 01 [12:45:29]MH_I2C_Read... [12:45:29]*** Stop cut motor [12:45:29]*** Cut end [12:45:29]Read from MH i2c: 01 07 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 FF 0F FC [12:45:29]process_action close_receipt done [12:45:29]requested_data is exist [12:45:29]produce_requested_data [12:45:29]requested_item fm.sn is exist - process it [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 11 00 00 [12:45:29]Write to MH i2c: E2 08 00 E2 06 80 11 00 00 00 00 00 00 62 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 17 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 17 00 E2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B9 [12:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:45:29]wFMCommunicate OK [12:45:29]requested_item fd.num is exist - process it [12:45:29]SAM_PROTO_GetFieldsCounters [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 13 00 00 [12:45:29]Write to MH i2c: E2 08 00 E3 06 80 13 00 00 00 00 00 00 65 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 62 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 62 00 E3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [12:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:29]wFMCommunicate OK [12:45:29]SAM_PROTO_GetFieldsCounters done [12:45:29]requested_item shift.num is exist - process it [12:45:29]requested_item shift.opened is exist - process it [12:45:29]req_shift_opened [12:45:29]FM_GetShiftState [12:45:29]SAM_PROTO_GetShiftState [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 13 01 00 [12:45:29]Write to MH i2c: E2 08 00 E4 06 80 13 01 00 00 00 00 00 67 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 0E 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 0E 00 E4 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F8 [12:45:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:45:29]wFMCommunicate OK [12:45:29]SAM_PROTO_GetShiftState done [12:45:29]FM_GetShiftState done [12:45:29]req_shift_opened done [12:45:29]requested_item shift.open_date is exist - process it [12:45:29]req_shift_open_date [12:45:29]req_shift_open_date done [12:45:29]produce_requested_data done [12:45:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139695,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:45:29]process_action_free close_receipt [12:45:29]json_value_free [12:45:29]json_value_free done [12:45:29]process_json_proto returns [12:45:29]Send response to host [12:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139695,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:45:29]free response buf [12:45:29]execute_script done [12:45:29]execute_script returns [12:45:29]free content buf [12:45:29]Sock 10.Close socket [12:45:29]Sock 10.Thread stoped [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:52]int [12:47:52]Write to MH i2c: 01 00 00 E5 06 EB [12:47:52]*** FLAG_PRN_KEY set [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 E5 06 00 08 00 00 00 FF 0F 08 [12:47:52]state=0 [12:47:52]Key pressed [12:47:52]Feed [12:47:52]Write to MH i2c: D8 00 00 E6 06 C3 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: D8 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: D8 01 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: D8 01 00 E6 06 00 C4 [12:47:52]int [12:47:52]Write to MH i2c: 01 00 00 E7 06 ED [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 E7 06 00 48 00 00 00 3C 00 78 [12:47:52]state=2 [12:47:52]Key pressed [12:47:52]int [12:47:52]Write to MH i2c: 01 00 00 E8 06 EE [12:47:52]*** FLAG_PRN_KEY reset [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: 01 07 00 E8 06 00 00 00 00 00 F5 0F F9 [12:47:52]state=2 [12:47:52]Stop feed [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:05]accept exits with 8 [12:49:05]New connection [12:49:05]New thread 3067145572 created [12:49:05]Thread 3067288932 joined [12:49:05]Waiting for new connection... [12:49:05] Sock 8.Parse request [12:49:05]Sock 8.Check first char [12:49:05]Sock 8.First char is OK [12:49:05]request: POST /json_proto HTTP/1.0 [12:49:05]Method: POST [12:49:05]URL: /json_proto [12:49:05]Method is POST - this is cgi request [12:49:05]url: /json_proto [12:49:05]query_string will be loaded in cgi processing [12:49:05]execute_cgi json_proto POST (null) [12:49:05]execute_cgi path=json_proto method=POST [12:49:05]POST find Content-Length [12:49:05]Host: 172.17.45.67:8080 [12:49:05]Content-Length: 677 [12:49:05]Content-Type: application/json [12:49:05] [12:49:05]POST finish read [12:49:05]Found Content-Length = 677 [12:49:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:05]execute_script... [12:49: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)593544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:05]POST & json_proto [12:49:05]process_json_proto [12:49:05]json parsed OK: [12:49:05]protocol is kg_v1.0 [12:49:05]action value=close_receipt [12:49:05]process_action close_receipt [12:49:05]cmd_close_receipt [12:49:05]MH_GetDate [12:49:05]Write to MH i2c: F0 00 00 E9 06 DE [12:49:05]Write i2c OK [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: F0 [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: F0 09 00 [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: F0 09 00 E9 06 00 C1 90 C4 66 5F 7F 2B 66 D1 [12:49:05]GetLastDocTimeStamp 1724157925 [12:49:05]current date 1724158145 [12:49:05]FM_GetShiftState [12:49:05]SAM_PROTO_GetShiftState [12:49:05]wFMCommunicate request_size=4 [12:49:05]MH_SAM_APDU [12:49:05]CAPDU: 80 13 01 00 [12:49:05]Write to MH i2c: E2 08 00 EA 06 80 13 01 00 00 00 00 00 6D [12:49:05]Write i2c OK [12:49:05]MH_I2C_Read... [12:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:05]Read from MH i2c: E2 [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: E2 0E 00 [12:49:05]MH_I2C_Read... [12:49:05]Read from MH i2c: E2 0E 00 EA 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FE [12:49:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:49:05]wFMCommunicate OK [12:49:05]SAM_PROTO_GetShiftState done [12:49:05]FM_GetShiftState done [12:49:05]opened in 1724113785 [12:49:05]opened+sec_in_day 1724200185 [12:49:05]quantity*price = 70044 [12:49:05]sum+1 = 70046 [12:49:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 168 20.08.2024 12:49 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139696 ФПД: 171357410618693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T124905&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139696&fm=171357410618693&tin=02508201610067®Number=0000000000092569&sum=70000 [12:49:06]StoreToDocumentArchive [12:49:06]shift 453 fd 139696 [12:49:06]save to /storage/0453/doc_00139696 [12:49:06]save last doc name /storage/0453/doc_00139696 to /storage/kkm_last_doc_name [12:49:06]save OK [12:49:06]Clear old archive folders... [12:49:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:06]tlvbuf is 020194F0 [12:49:06]SAM_PROTO_ClearQueue [12:49:06]wFMCommunicate request_size=4 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 09 00 00 [12:49:06]Write to MH i2c: E2 08 00 F7 06 80 09 00 00 00 00 00 00 6F [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:06]Read from MH i2c: E2 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 F7 06 00 90 00 71 [12:49:06]RAPDU: 90 00 [12:49:06]wFMCommunicate OK [12:49:06]SAM_PROTO_ClearQueue done [12:49:06]KKMCreateOFDPacket [12:49:06]OFDProtocolAddRootSTLVToBuf [12:49:06]FM_MakeSignedData [12:49:06]FM_MakeSignedData [12:49:06]SAM_PROTO_SignData [12:49:06]wFMCommunicate request_size=4 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 0D 01 02 [12:49:06]Write to MH i2c: E2 08 00 F8 06 80 0D 01 02 00 00 00 00 77 [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:06]Read from MH i2c: E2 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 F8 06 00 90 00 72 [12:49:06]RAPDU: 90 00 [12:49:06]wFMCommunicate OK [12:49:06]wFMCommunicate request_size=255 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C1 90 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 21 02 00 35 04 06 00 9B [12:49:06]Write to MH i2c: E2 02 01 F9 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C1 90 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 21 02 00 35 04 06 00 9B 00 00 4E [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:06]Read from MH i2c: E2 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 F9 06 00 90 00 73 [12:49:06]RAPDU: 90 00 [12:49:06]wFMCommunicate OK [12:49:06]wFMCommunicate request_size=10 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 0D 02 02 05 D9 41 96 ED 45 [12:49:06]Write to MH i2c: E2 0D 00 FA 06 80 0D 02 02 05 00 D9 41 96 ED 45 00 00 66 [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:06]Read from MH i2c: E2 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 [12:49:06]MH_I2C_Read... [12:49:06]Read from MH i2c: E2 03 00 FA 06 00 90 00 74 [12:49:06]RAPDU: 90 00 [12:49:06]wFMCommunicate OK [12:49:06]wFMCommunicate request_size=4 [12:49:06]MH_SAM_APDU [12:49:06]CAPDU: 80 0D 03 02 [12:49:06]Write to MH i2c: E2 08 00 FB 06 80 0D 03 02 00 00 00 00 7C [12:49:06]Write i2c OK [12:49:06]MH_I2C_Read... [12:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:07]Read from MH i2c: E2 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 0B 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 0B 00 FB 06 00 12 82 84 6C DE AC 92 68 90 00 85 [12:49:07]RAPDU: 12 82 84 6C DE AC 92 68 90 00 [12:49:07]wFMCommunicate OK [12:49:07]SAM_PROTO_SignData done [12:49:07]FM_MakeSignedData done [12:49:07]CreateOFDProtocolMessage [12:49:07]wFMCommunicate request_size=4 [12:49:07]MH_SAM_APDU [12:49:07]CAPDU: 80 11 00 00 [12:49:07]Write to MH i2c: E2 08 00 FC 06 80 11 00 00 00 00 00 00 7C [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:07]Read from MH i2c: E2 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 17 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 17 00 FC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [12:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:49:07]wFMCommunicate OK [12:49:07]CreateOFDProtocolMessage done [12:49:07]OFDSenderStorePacket 139696 [12:49:07]StoreOFDPacket docnum=139696 [12:49:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 18 89 07 01 E2 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C1 90 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 21 02 00 35 04 06 00 9B D9 41 96 ED 45 12 82 84 6C DE AC 92 68 [12:49:07]CheckFolder [12:49:07]dirname=/storage/ofd_packets [12:49:07]CheckFolder done [12:49:07]ProducePacketName [12:49:07]name=ofd_packets/00139696 [12:49:07]NVStorageSaveData ofd_packets/00139696 [12:49:07]File name is /storage/ofd_packets/00139696 [12:49:07]Write 301 bytes [12:49:07]NVStorageSaveData done [12:49:07]OFDSenderStorePacket done [12:49:07]KKMCreateOFDPacket done [12:49:07]NVStorageSaveData kkm_last_timestamp [12:49:07]File name is /storage/kkm_last_timestamp [12:49:07]Write 4 bytes [12:49:07]NVStorageSaveData done [12:49:07]ExternCall_PrintAddStr [12:49:07]wPrintStart [12:49:07]Write to MH i2c: 01 00 00 FD 06 03 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 07 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 FF 0F 18 [12:49:07]RasterBufferAndPrint [12:49:07]line Счет N : (1)593544 [12:49:07]line ИНН: 02508201610067 [12:49:07]line Контрольно-Кассовый Чек [12:49:07]line ПРОДАЖА [12:49:07]line ТРК (МРК, ГНК) : 41 [12:49:07]line Товар: 2710124500 [12:49:07]line Аи-95-К-5 [12:49:07]line 9.440 * 74.20 [12:49:07]line = 700.45 [12:49:07]line НДС 12% НСП 1% [12:49:07]line > о реализуемом товаре [12:49:07]line ОКРУГЛЕНИЕ: -0.45 [12:49:07]line ИТОГО: 700.00 [12:49:07]line Внесено: 700.00 [12:49:07]line СДАЧА: 0.00 [12:49:07]line НСП 1% : 6.20 [12:49:07]line НДС 12% : 74.38 [12:49:07]line Наличными: 700.00 [12:49:07]line Безнал.: 0.00 [12:49:07]line Место: АЗС № 136 "Партнер Нефть" [12:49:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:49:07]line СНО: Общий режим [12:49:07]line Чек 168 20.08.2024 12:49 [12:49:07]line Смена: 453 ФФД: 1.0 [12:49:07]line ЗНМ: 0300000067 [12:49:07]line РНМ: 0000000000092569 [12:49:07]line Версия ККМ: 001 [12:49:07]line ФМ: 0000000000871776 [12:49:07]line ФД: 139696 [12:49:07]line ФПД: 171357410618693 [12:49:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T124905&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139696&fm=171357410618693&tin=02508201610067®Number=0000000000092569&sum=70000 [12:49:07]OFD Sender: Processing packet 139696 [packets to send 137, broken 136] [12:49:07]ProducePacketName [12:49:07]name=ofd_packets/00139696 [12:49:07]OFD Sender: To server: pG, [12:49:07]CommunicateWithHost lk.salyk.kg:30040 [12:49:07]ConnectInit lk.salyk.kg [12:49:07]written 0, free lines is 4095 [12:49:07]Connected sock=10 [12:49:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 18 89 07 01 E2 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 C1 90 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 21 02 00 35 04 06 00 9B D9 41 96 ED 45 12 82 84 6C DE AC 92 68 [12:49:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 78 BC 47 00 A7 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 21 02 00 F4 03 04 00 54 37 C4 66 B6 04 01 00 00 95 D1 9F EA E9 AB AC 3B [12:49:07]CommunicateWithHost err = 0 [12:49:07]CheckOFDResponse [12:49:07]1017 (14) - 77093643461234 [12:49:07]1041 (16) - 0000000000871776 [12:49:07]1040 (4) - 139696 [12:49:07]1012 (4) - 20.08.2024 06:27 [12:49:07]1206 (1) - 0 [12:49:07]OFD Sender: Remove packet 139696 [12:49:07]ProducePacketName [12:49:07]name=ofd_packets/00139696 [12:49:07]NVStorageDeleteData [12:49:07]Write to MH i2c: 01 00 00 28 07 2F [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 07 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 D3 0C 15 [12:49:07]RasterBufferAndPrint [12:49:07]line [12:49:07]line [12:49:07]line [12:49:07]line [12:49:07]line [12:49:07]written 0, free lines is 3290 [12:49:07]MH_Cut [12:49:07]Write to MH i2c: D1 01 00 2F 07 01 08 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: D1 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: D1 01 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: D1 01 00 2F 07 00 07 [12:49:07]Write to MH i2c: 01 00 00 30 07 37 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:08]OFD Sender: No OFD packet to send [12:49:08]*** Cut start [12:49:08]*** Partial cut [12:49:08]*** CUTSNS_PIN = 1 [12:49:08]*** CUTSNS_PIN = 0 [12:49:08]*** Brake cut motor [12:49:09]Read from MH i2c: 01 [12:49:09]MH_I2C_Read... [12:49:09]*** Stop cut motor [12:49:09]*** Cut end [12:49:09]Read from MH i2c: 01 07 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 30 07 00 00 00 00 00 FF 0F 4C [12:49:09]process_action close_receipt done [12:49:09]requested_data is exist [12:49:09]produce_requested_data [12:49:09]requested_item fm.sn is exist - process it [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 11 00 00 [12:49:09]Write to MH i2c: E2 08 00 31 07 80 11 00 00 00 00 00 00 B2 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 17 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 17 00 31 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [12:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:49:09]wFMCommunicate OK [12:49:09]requested_item fd.num is exist - process it [12:49:09]SAM_PROTO_GetFieldsCounters [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 13 00 00 [12:49:09]Write to MH i2c: E2 08 00 32 07 80 13 00 00 00 00 00 00 B5 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 62 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 62 00 32 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [12:49:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:09]wFMCommunicate OK [12:49:09]SAM_PROTO_GetFieldsCounters done [12:49:09]requested_item shift.num is exist - process it [12:49:09]requested_item shift.opened is exist - process it [12:49:09]req_shift_opened [12:49:09]FM_GetShiftState [12:49:09]SAM_PROTO_GetShiftState [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 13 01 00 [12:49:09]Write to MH i2c: E2 08 00 33 07 80 13 01 00 00 00 00 00 B7 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]int [12:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:09]*** FLAG_PRN_KEY set [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 0E 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 0E 00 33 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 48 [12:49:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:49:09]wFMCommunicate OK [12:49:09]SAM_PROTO_GetShiftState done [12:49:09]FM_GetShiftState done [12:49:09]req_shift_opened done [12:49:09]requested_item shift.open_date is exist - process it [12:49:09]req_shift_open_date [12:49:09]req_shift_open_date done [12:49:09]produce_requested_data done [12:49:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139696,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:49:09]process_action_free close_receipt [12:49:09]json_value_free [12:49:09]json_value_free done [12:49:09]process_json_proto returns [12:49:09]Send response to host [12:49:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139696,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:49:09]free response buf [12:49:09]execute_script done [12:49:09]execute_script returns [12:49:09]free content buf [12:49:09]Sock 8.Close socket [12:49:09]Sock 8.Thread stoped [12:49:09]Write to MH i2c: 01 00 00 34 07 3B [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 34 07 00 08 00 00 00 FF 0F 58 [12:49:09]state=0 [12:49:09]Key pressed [12:49:09]Feed [12:49:09]Write to MH i2c: D8 00 00 35 07 13 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: D8 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: D8 01 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: D8 01 00 35 07 00 14 [12:49:09]int [12:49:09]Write to MH i2c: 01 00 00 36 07 3D [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 36 07 00 48 00 00 00 3C 00 C8 [12:49:09]state=2 [12:49:09]Key pressed [12:49:09]int [12:49:09]Write to MH i2c: 01 00 00 37 07 3E [12:49:09]*** FLAG_PRN_KEY reset [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 37 07 00 00 00 00 00 FC 0F 50 [12:49:09]state=2 [12:49:09]Stop feed [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:41]accept exits with 9 [12:49:41]New connection [12:49:41]New thread 3067288932 created [12:49:41]Thread 3067145572 joined [12:49:41]Waiting for new connection... [12:49:41] Sock 9.Parse request [12:49:41]Sock 9.Check first char [12:49:41]Sock 9.First char is OK [12:49:41]request: POST /json_proto HTTP/1.0 [12:49:41]Method: POST [12:49:41]URL: /json_proto [12:49:41]Method is POST - this is cgi request [12:49:41]url: /json_proto [12:49:41]query_string will be loaded in cgi processing [12:49:41]execute_cgi json_proto POST (null) [12:49:41]execute_cgi path=json_proto method=POST [12:49:41]POST find Content-Length [12:49:41]Host: 172.17.45.67:8080 [12:49:41]Content-Length: 677 [12:49:41]Content-Type: application/json [12:49:41] [12:49:41]POST finish read [12:49:41]Found Content-Length = 677 [12:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:41]execute_script... [12:49:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:41]POST & json_proto [12:49:41]process_json_proto [12:49:41]json parsed OK: [12:49:41]protocol is kg_v1.0 [12:49:41]action value=close_receipt [12:49:41]process_action close_receipt [12:49:41]cmd_close_receipt [12:49:41]MH_GetDate [12:49:41]Write to MH i2c: F0 00 00 38 07 2E [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: F0 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: F0 09 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: F0 09 00 38 07 00 E5 90 C4 66 5F 7F 2B 66 45 [12:49:41]GetLastDocTimeStamp 1724158145 [12:49:41]current date 1724158181 [12:49:41]FM_GetShiftState [12:49:41]SAM_PROTO_GetShiftState [12:49:41]wFMCommunicate request_size=4 [12:49:41]MH_SAM_APDU [12:49:41]CAPDU: 80 13 01 00 [12:49:41]Write to MH i2c: E2 08 00 39 07 80 13 01 00 00 00 00 00 BD [12:49:41]Write i2c OK [12:49:41]MH_I2C_Read... [12:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:41]Read from MH i2c: E2 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 0E 00 [12:49:41]MH_I2C_Read... [12:49:41]Read from MH i2c: E2 0E 00 39 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4E [12:49:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:49:41]wFMCommunicate OK [12:49:41]SAM_PROTO_GetShiftState done [12:49:41]FM_GetShiftState done [12:49:41]opened in 1724113785 [12:49:41]opened+sec_in_day 1724200185 [12:49:41]quantity*price = 30035 [12:49:41]sum+1 = 30036 [12:49:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 169 20.08.2024 12:49 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139697 ФПД: 254907207464514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T124941&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139697&fm=254907207464514&tin=02508201610067®Number=0000000000092569&sum=30000 [12:49:42]StoreToDocumentArchive [12:49:42]shift 453 fd 139697 [12:49:42]save to /storage/0453/doc_00139697 [12:49:42]save last doc name /storage/0453/doc_00139697 to /storage/kkm_last_doc_name [12:49:42]save OK [12:49:42]Clear old archive folders... [12:49:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:42]tlvbuf is 01FE63B0 [12:49:42]SAM_PROTO_ClearQueue [12:49:42]wFMCommunicate request_size=4 [12:49:42]MH_SAM_APDU [12:49:42]CAPDU: 80 09 00 00 [12:49:42]Write to MH i2c: E2 08 00 46 07 80 09 00 00 00 00 00 00 BF [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:42]Read from MH i2c: E2 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 46 07 00 90 00 C1 [12:49:42]RAPDU: 90 00 [12:49:42]wFMCommunicate OK [12:49:42]SAM_PROTO_ClearQueue done [12:49:42]KKMCreateOFDPacket [12:49:42]OFDProtocolAddRootSTLVToBuf [12:49:42]FM_MakeSignedData [12:49:42]FM_MakeSignedData [12:49:42]SAM_PROTO_SignData [12:49:42]wFMCommunicate request_size=4 [12:49:42]MH_SAM_APDU [12:49:42]CAPDU: 80 0D 01 02 [12:49:42]Write to MH i2c: E2 08 00 47 07 80 0D 01 02 00 00 00 00 C7 [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:42]Read from MH i2c: E2 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 [12:49:42]MH_I2C_Read... [12:49:42]Read from MH i2c: E2 03 00 47 07 00 90 00 C2 [12:49:42]RAPDU: 90 00 [12:49:42]wFMCommunicate OK [12:49:42]wFMCommunicate request_size=255 [12:49:42]MH_SAM_APDU [12:49:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E5 90 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 21 02 00 35 04 06 00 E7 [12:49:42]Write to MH i2c: E2 02 01 48 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E5 90 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 21 02 00 35 04 06 00 E7 00 00 38 [12:49:42]Write i2c OK [12:49:42]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 48 07 00 90 00 C3 [12:49:43]RAPDU: 90 00 [12:49:43]wFMCommunicate OK [12:49:43]wFMCommunicate request_size=10 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 0D 02 02 05 D6 35 8D 36 42 [12:49:43]Write to MH i2c: E2 0D 00 49 07 80 0D 02 02 05 00 D6 35 8D 36 42 00 00 E4 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 03 00 49 07 00 90 00 C4 [12:49:43]RAPDU: 90 00 [12:49:43]wFMCommunicate OK [12:49:43]wFMCommunicate request_size=4 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 0D 03 02 [12:49:43]Write to MH i2c: E2 08 00 4A 07 80 0D 03 02 00 00 00 00 CC [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0B 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0B 00 4A 07 00 11 06 E7 CA CF 63 ED 48 90 00 FC [12:49:43]RAPDU: 11 06 E7 CA CF 63 ED 48 90 00 [12:49:43]wFMCommunicate OK [12:49:43]SAM_PROTO_SignData done [12:49:43]FM_MakeSignedData done [12:49:43]CreateOFDProtocolMessage [12:49:43]wFMCommunicate request_size=4 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 11 00 00 [12:49:43]Write to MH i2c: E2 08 00 4B 07 80 11 00 00 00 00 00 00 CC [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 17 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 17 00 4B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [12:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:49:43]wFMCommunicate OK [12:49:43]CreateOFDProtocolMessage done [12:49:43]OFDSenderStorePacket 139697 [12:49:43]StoreOFDPacket docnum=139697 [12:49:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FF 54 07 01 B9 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E5 90 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 21 02 00 35 04 06 00 E7 D6 35 8D 36 42 11 06 E7 CA CF 63 ED 48 [12:49:43]CheckFolder [12:49:43]dirname=/storage/ofd_packets [12:49:43]CheckFolder done [12:49:43]ProducePacketName [12:49:43]name=ofd_packets/00139697 [12:49:43]NVStorageSaveData ofd_packets/00139697 [12:49:43]File name is /storage/ofd_packets/00139697 [12:49:43]Write 301 bytes [12:49:43]NVStorageSaveData done [12:49:43]OFDSenderStorePacket done [12:49:43]KKMCreateOFDPacket done [12:49:43]NVStorageSaveData kkm_last_timestamp [12:49:43]File name is /storage/kkm_last_timestamp [12:49:43]Write 4 bytes [12:49:43]NVStorageSaveData done [12:49:43]OFD Sender: Processing packet 139697 [packets to send 137, broken 136] [12:49:43]ProducePacketName [12:49:43]name=ofd_packets/00139697 [12:49:43]OFD Sender: To server: pG, [12:49:43]CommunicateWithHost lk.salyk.kg:30040 [12:49:43]ConnectInit lk.salyk.kg [12:49:43]ExternCall_PrintAddStr [12:49:43]wPrintStart [12:49:43]Write to MH i2c: 01 00 00 4C 07 53 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 07 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: 01 07 00 4C 07 00 00 00 00 00 FF 0F 68 [12:49:43]RasterBufferAndPrint [12:49:43]line Счет N : (1)593543 [12:49:43]line ИНН: 02508201610067 [12:49:43]line Контрольно-Кассовый Чек [12:49:43]line ПРОДАЖА [12:49:43]line ТРК (МРК, ГНК) : 52 [12:49:43]line Товар: 2710124130 [12:49:43]line Аи-92-К-5 [12:49:43]line 4.430 * 67.80 [12:49:43]line = 300.35 [12:49:43]line НДС 12% НСП 1% [12:49:43]line > о реализуемом товаре [12:49:43]line ОКРУГЛЕНИЕ: -0.35 [12:49:43]line ИТОГО: 300.00 [12:49:43]line Внесено: 300.00 [12:49:43]line СДАЧА: 0.00 [12:49:43]line НСП 1% : 2.66 [12:49:43]line НДС 12% : 31.90 [12:49:43]line Наличными: 300.00 [12:49:43]line Безнал.: 0.00 [12:49:43]line Место: АЗС № 136 "Партнер Нефть" [12:49:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:49:43]line СНО: Общий режим [12:49:43]line Чек 169 20.08.2024 12:49 [12:49:43]line Смена: 453 ФФД: 1.0 [12:49:43]line ЗНМ: 0300000067 [12:49:43]line РНМ: 0000000000092569 [12:49:43]line Версия ККМ: 001 [12:49:43]line ФМ: 0000000000871776 [12:49:43]line ФД: 139697 [12:49:43]line ФПД: 254907207464514 [12:49:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T124941&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139697&fm=254907207464514&tin=02508201610067®Number=0000000000092569&sum=30000 [12:49:43]Connected sock=11 [12:49:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FF 54 07 01 B9 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 E5 90 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 21 02 00 35 04 06 00 E7 D6 35 8D 36 42 11 06 E7 CA CF 63 ED 48 [12:49:43]written 0, free lines is 4095 [12:49:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EF C0 47 00 F3 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 21 02 00 F4 03 04 00 79 37 C4 66 B6 04 01 00 00 28 E2 CB 23 39 B7 C6 61 [12:49:43]CommunicateWithHost err = 0 [12:49:43]CheckOFDResponse [12:49:43]1017 (14) - 77093643461234 [12:49:43]1041 (16) - 0000000000871776 [12:49:43]1040 (4) - 139697 [12:49:43]1012 (4) - 20.08.2024 06:28 [12:49:43]1206 (1) - 0 [12:49:43]OFD Sender: Remove packet 139697 [12:49:43]ProducePacketName [12:49:43]name=ofd_packets/00139697 [12:49:43]NVStorageDeleteData [12:49:44]Write to MH i2c: 01 00 00 77 07 7E [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: 01 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: 01 07 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 C6 0C 57 [12:49:44]RasterBufferAndPrint [12:49:44]line [12:49:44]line [12:49:44]line [12:49:44]line [12:49:44]line [12:49:44]written 0, free lines is 3276 [12:49:44]MH_Cut [12:49:44]Write to MH i2c: D1 01 00 7E 07 01 57 [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: D1 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: D1 01 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: D1 01 00 7E 07 00 56 [12:49:44]Write to MH i2c: 01 00 00 7F 07 86 [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]OFD Sender: No OFD packet to send [12:49:44]*** Cut start [12:49:44]*** Partial cut [12:49:44]*** CUTSNS_PIN = 1 [12:49:44]*** CUTSNS_PIN = 0 [12:49:45]*** Brake cut motor [12:49:45]Read from MH i2c: 01 [12:49:45]MH_I2C_Read... [12:49:45]*** Stop cut motor [12:49:45]*** Cut end [12:49:45]Read from MH i2c: 01 07 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 FF 0F 9B [12:49:45]process_action close_receipt done [12:49:45]requested_data is exist [12:49:45]produce_requested_data [12:49:45]requested_item fm.sn is exist - process it [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 11 00 00 [12:49:45]Write to MH i2c: E2 08 00 80 07 80 11 00 00 00 00 00 00 01 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 80 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [12:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:49:45]wFMCommunicate OK [12:49:45]requested_item fd.num is exist - process it [12:49:45]SAM_PROTO_GetFieldsCounters [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 13 00 00 [12:49:45]Write to MH i2c: E2 08 00 81 07 80 13 00 00 00 00 00 00 04 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 62 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 62 00 81 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [12:49:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:45]wFMCommunicate OK [12:49:45]SAM_PROTO_GetFieldsCounters done [12:49:45]requested_item shift.num is exist - process it [12:49:45]requested_item shift.opened is exist - process it [12:49:45]req_shift_opened [12:49:45]FM_GetShiftState [12:49:45]SAM_PROTO_GetShiftState [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 13 01 00 [12:49:45]Write to MH i2c: E2 08 00 82 07 80 13 01 00 00 00 00 00 06 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 0E 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 0E 00 82 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 97 [12:49:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:49:45]wFMCommunicate OK [12:49:45]SAM_PROTO_GetShiftState done [12:49:45]FM_GetShiftState done [12:49:45]req_shift_opened done [12:49:45]requested_item shift.open_date is exist - process it [12:49:45]req_shift_open_date [12:49:45]req_shift_open_date done [12:49:45]produce_requested_data done [12:49:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139697,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:49:45]process_action_free close_receipt [12:49:45]json_value_free [12:49:45]json_value_free done [12:49:45]process_json_proto returns [12:49:45]Send response to host [12:49:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139697,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:49:45]free response buf [12:49:45]execute_script done [12:49:45]execute_script returns [12:49:45]free content buf [12:49:45]Sock 9.Close socket [12:49:45]Sock 9.Thread stoped [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:33]accept exits with 10 [12:50:33]New connection [12:50:33]New thread 3067145572 created [12:50:33]Thread 3067288932 joined [12:50:33]Waiting for new connection... [12:50:33] Sock 10.Parse request [12:50:33]Sock 10.Check first char [12:50:33]Sock 10.First char is OK [12:50:33]request: POST /json_proto HTTP/1.0 [12:50:33]Method: POST [12:50:33]URL: /json_proto [12:50:33]Method is POST - this is cgi request [12:50:33]url: /json_proto [12:50:33]query_string will be loaded in cgi processing [12:50:33]execute_cgi json_proto POST (null) [12:50:33]execute_cgi path=json_proto method=POST [12:50:33]POST find Content-Length [12:50:33]Host: 172.17.45.67:8080 [12:50:33]Content-Length: 677 [12:50:33]Content-Type: application/json [12:50:33] [12:50:33]POST finish read [12:50:33]Found Content-Length = 677 [12:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:33]execute_script... [12:50: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)593545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:33]POST & json_proto [12:50:33]process_json_proto [12:50:33]json parsed OK: [12:50:33]protocol is kg_v1.0 [12:50:33]action value=close_receipt [12:50:33]process_action close_receipt [12:50:33]cmd_close_receipt [12:50:33]MH_GetDate [12:50:33]Write to MH i2c: F0 00 00 83 07 79 [12:50:33]Write i2c OK [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: F0 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: F0 09 00 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: F0 09 00 83 07 00 19 91 C4 66 5F 7F 2B 66 C5 [12:50:33]GetLastDocTimeStamp 1724158181 [12:50:33]current date 1724158233 [12:50:33]FM_GetShiftState [12:50:33]SAM_PROTO_GetShiftState [12:50:33]wFMCommunicate request_size=4 [12:50:33]MH_SAM_APDU [12:50:33]CAPDU: 80 13 01 00 [12:50:33]Write to MH i2c: E2 08 00 84 07 80 13 01 00 00 00 00 00 08 [12:50:33]Write i2c OK [12:50:33]MH_I2C_Read... [12:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:33]Read from MH i2c: E2 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: E2 0E 00 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: E2 0E 00 84 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 99 [12:50:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:50:33]wFMCommunicate OK [12:50:33]SAM_PROTO_GetShiftState done [12:50:33]FM_GetShiftState done [12:50:33]opened in 1724113785 [12:50:33]opened+sec_in_day 1724200185 [12:50:33]quantity*price = 40002 [12:50:33]sum+1 = 40003 [12:50:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 170 20.08.2024 12:50 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139698 ФПД: 97813982163934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T125033&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139698&fm=97813982163934&tin=02508201610067®Number=0000000000092569&sum=40000 [12:50:34]StoreToDocumentArchive [12:50:34]shift 453 fd 139698 [12:50:34]save to /storage/0453/doc_00139698 [12:50:34]save last doc name /storage/0453/doc_00139698 to /storage/kkm_last_doc_name [12:50:34]save OK [12:50:34]Clear old archive folders... [12:50:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:34]tlvbuf is 01FF9DA0 [12:50:34]SAM_PROTO_ClearQueue [12:50:34]wFMCommunicate request_size=4 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 09 00 00 [12:50:34]Write to MH i2c: E2 08 00 91 07 80 09 00 00 00 00 00 00 0A [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 03 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 03 00 91 07 00 90 00 0C [12:50:34]RAPDU: 90 00 [12:50:34]wFMCommunicate OK [12:50:34]SAM_PROTO_ClearQueue done [12:50:34]KKMCreateOFDPacket [12:50:34]OFDProtocolAddRootSTLVToBuf [12:50:34]FM_MakeSignedData [12:50:34]FM_MakeSignedData [12:50:34]SAM_PROTO_SignData [12:50:34]wFMCommunicate request_size=4 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 0D 01 02 [12:50:34]Write to MH i2c: E2 08 00 92 07 80 0D 01 02 00 00 00 00 12 [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 03 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 03 00 92 07 00 90 00 0D [12:50:34]RAPDU: 90 00 [12:50:34]wFMCommunicate OK [12:50:34]wFMCommunicate request_size=255 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 19 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 21 02 00 35 04 06 00 58 [12:50:34]Write to MH i2c: E2 02 01 93 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 19 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 21 02 00 35 04 06 00 58 00 00 F1 [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]OFD Sender: No OFD packet to send [12:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 03 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 03 00 93 07 00 90 00 0E [12:50:34]RAPDU: 90 00 [12:50:34]wFMCommunicate OK [12:50:34]wFMCommunicate request_size=10 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 0D 02 02 05 F6 17 A9 33 DE [12:50:34]Write to MH i2c: E2 0D 00 94 07 80 0D 02 02 05 00 F6 17 A9 33 DE 00 00 E6 [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 03 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 03 00 94 07 00 90 00 0F [12:50:34]RAPDU: 90 00 [12:50:34]wFMCommunicate OK [12:50:34]wFMCommunicate request_size=4 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 0D 03 02 [12:50:34]Write to MH i2c: E2 08 00 95 07 80 0D 03 02 00 00 00 00 17 [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 0B 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 0B 00 95 07 00 C6 B3 96 E2 2A D4 76 CD 90 00 4A [12:50:34]RAPDU: C6 B3 96 E2 2A D4 76 CD 90 00 [12:50:34]wFMCommunicate OK [12:50:34]SAM_PROTO_SignData done [12:50:34]FM_MakeSignedData done [12:50:34]CreateOFDProtocolMessage [12:50:34]wFMCommunicate request_size=4 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 11 00 00 [12:50:34]Write to MH i2c: E2 08 00 96 07 80 11 00 00 00 00 00 00 17 [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 17 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 17 00 96 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6E [12:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:50:34]wFMCommunicate OK [12:50:34]CreateOFDProtocolMessage done [12:50:34]OFDSenderStorePacket 139698 [12:50:34]StoreOFDPacket docnum=139698 [12:50:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AD 33 07 01 E4 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 19 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 21 02 00 35 04 06 00 58 F6 17 A9 33 DE C6 B3 96 E2 2A D4 76 CD [12:50:34]CheckFolder [12:50:34]dirname=/storage/ofd_packets [12:50:34]CheckFolder done [12:50:34]ProducePacketName [12:50:34]name=ofd_packets/00139698 [12:50:34]NVStorageSaveData ofd_packets/00139698 [12:50:34]File name is /storage/ofd_packets/00139698 [12:50:34]Write 301 bytes [12:50:34]NVStorageSaveData done [12:50:34]OFDSenderStorePacket done [12:50:34]KKMCreateOFDPacket done [12:50:34]NVStorageSaveData kkm_last_timestamp [12:50:34]File name is /storage/kkm_last_timestamp [12:50:34]Write 4 bytes [12:50:34]NVStorageSaveData done [12:50:34]ExternCall_PrintAddStr [12:50:34]wPrintStart [12:50:34]Write to MH i2c: 01 00 00 97 07 9E [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: 01 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: 01 07 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: 01 07 00 97 07 00 00 00 00 00 FF 0F B3 [12:50:34]RasterBufferAndPrint [12:50:34]line Счет N : (1)593545 [12:50:34]line ИНН: 02508201610067 [12:50:34]line Контрольно-Кассовый Чек [12:50:34]line ПРОДАЖА [12:50:34]line ТРК (МРК, ГНК) : 32 [12:50:34]line Товар: 2710124130 [12:50:34]line Аи-92-К-5 [12:50:34]line 5.900 * 67.80 [12:50:34]line = 400.02 [12:50:34]line НДС 12% НСП 1% [12:50:34]line > о реализуемом товаре [12:50:34]line ОКРУГЛЕНИЕ: -0.02 [12:50:34]line ИТОГО: 400.00 [12:50:34]line Внесено: 400.00 [12:50:34]line СДАЧА: 0.00 [12:50:34]line НСП 1% : 3.54 [12:50:34]line НДС 12% : 42.48 [12:50:34]line Наличными: 400.00 [12:50:34]line Безнал.: 0.00 [12:50:34]line Место: АЗС № 136 "Партнер Нефть" [12:50:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:50:34]line СНО: Общий режим [12:50:34]line Чек 170 20.08.2024 12:50 [12:50:34]line Смена: 453 ФФД: 1.0 [12:50:34]line ЗНМ: 0300000067 [12:50:34]line РНМ: 0000000000092569 [12:50:34]line Версия ККМ: 001 [12:50:34]line ФМ: 0000000000871776 [12:50:34]line ФД: 139698 [12:50:34]line ФПД: 97813982163934 [12:50:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T125033&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139698&fm=97813982163934&tin=02508201610067®Number=0000000000092569&sum=40000 [12:50:35]OFD Sender: Processing packet 139698 [packets to send 137, broken 136] [12:50:35]ProducePacketName [12:50:35]name=ofd_packets/00139698 [12:50:35]OFD Sender: To server: pG, [12:50:35]CommunicateWithHost lk.salyk.kg:30040 [12:50:35]ConnectInit lk.salyk.kg [12:50:35]written 0, free lines is 4095 [12:50:35]Write to MH i2c: 01 00 00 C2 07 C9 [12:50:35]Write i2c OK [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: 01 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: 01 07 00 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: 01 07 00 C2 07 00 00 00 00 00 C8 0C A4 [12:50:35]RasterBufferAndPrint [12:50:35]line [12:50:35]line [12:50:35]line [12:50:35]line [12:50:35]line [12:50:35]written 0, free lines is 3275 [12:50:35]MH_Cut [12:50:35]Write to MH i2c: D1 01 00 C9 07 01 A2 [12:50:35]Write i2c OK [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: D1 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: D1 01 00 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: D1 01 00 C9 07 00 A1 [12:50:35]Write to MH i2c: 01 00 00 CA 07 D1 [12:50:35]Write i2c OK [12:50:35]MH_I2C_Read... [12:50:36]*** Cut start [12:50:36]*** Partial cut [12:50:36]*** CUTSNS_PIN = 1 [12:50:36]*** CUTSNS_PIN = 0 [12:50:36]*** Brake cut motor [12:50:36]Read from MH i2c: 01 [12:50:36]MH_I2C_Read... [12:50:36]*** Stop cut motor [12:50:36]*** Cut end [12:50:36]Read from MH i2c: 01 07 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: 01 07 00 CA 07 00 00 00 00 00 FF 0F E6 [12:50:36]process_action close_receipt done [12:50:36]requested_data is exist [12:50:36]produce_requested_data [12:50:36]requested_item fm.sn is exist - process it [12:50:36]wFMCommunicate request_size=4 [12:50:36]MH_SAM_APDU [12:50:36]CAPDU: 80 11 00 00 [12:50:36]Write to MH i2c: E2 08 00 CB 07 80 11 00 00 00 00 00 00 4C [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:36]Read from MH i2c: E2 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 17 00 [12:50:36]MH_I2C_Read... [12:50:36]Read from MH i2c: E2 17 00 CB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A3 [12:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:50:36]wFMCommunicate OK [12:50:36]requested_item fd.num is exist - process it [12:50:36]SAM_PROTO_GetFieldsCounters [12:50:36]wFMCommunicate request_size=4 [12:50:36]MH_SAM_APDU [12:50:36]CAPDU: 80 13 00 00 [12:50:36]Write to MH i2c: E2 08 00 CC 07 80 13 00 00 00 00 00 00 4F [12:50:36]Write i2c OK [12:50:36]MH_I2C_Read... [12:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:37]Read from MH i2c: E2 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 62 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 62 00 CC 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [12:50:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:37]wFMCommunicate OK [12:50:37]SAM_PROTO_GetFieldsCounters done [12:50:37]requested_item shift.num is exist - process it [12:50:37]requested_item shift.opened is exist - process it [12:50:37]req_shift_opened [12:50:37]FM_GetShiftState [12:50:37]SAM_PROTO_GetShiftState [12:50:37]wFMCommunicate request_size=4 [12:50:37]MH_SAM_APDU [12:50:37]CAPDU: 80 13 01 00 [12:50:37]Write to MH i2c: E2 08 00 CD 07 80 13 01 00 00 00 00 00 51 [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:37]Read from MH i2c: E2 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 0E 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 0E 00 CD 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E2 [12:50:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:50:37]wFMCommunicate OK [12:50:37]SAM_PROTO_GetShiftState done [12:50:37]FM_GetShiftState done [12:50:37]req_shift_opened done [12:50:37]requested_item shift.open_date is exist - process it [12:50:37]req_shift_open_date [12:50:37]req_shift_open_date done [12:50:37]produce_requested_data done [12:50:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139698,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:50:37]process_action_free close_receipt [12:50:37]json_value_free [12:50:37]json_value_free done [12:50:37]process_json_proto returns [12:50:37]Send response to host [12:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139698,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:50:37]free response buf [12:50:37]execute_script done [12:50:37]execute_script returns [12:50:37]free content buf [12:50:37]Sock 10.Close socket [12:50:37]Sock 10.Thread stoped [12:52:11]accept exits with 8 [12:52:11]New connection [12:52:11]New thread 3067288932 created [12:52:11]Thread 3067145572 joined [12:52:11]Waiting for new connection... [12:52:11] Sock 8.Parse request [12:52:11]Sock 8.Check first char [12:52:11]Sock 8.First char is OK [12:52:11]request: POST /json_proto HTTP/1.0 [12:52:11]Method: POST [12:52:11]URL: /json_proto [12:52:11]Method is POST - this is cgi request [12:52:11]url: /json_proto [12:52:11]query_string will be loaded in cgi processing [12:52:11]execute_cgi json_proto POST (null) [12:52:11]execute_cgi path=json_proto method=POST [12:52:11]POST find Content-Length [12:52:11]Host: 172.17.45.67:8080 [12:52:11]Content-Length: 682 [12:52:11]Content-Type: application/json [12:52:11] [12:52:11]POST finish read [12:52:11]Found Content-Length = 682 [12:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:11]execute_script... [12:52: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)593546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:11]POST & json_proto [12:52:11]process_json_proto [12:52:11]json parsed OK: [12:52:11]protocol is kg_v1.0 [12:52:11]action value=close_receipt [12:52:11]process_action close_receipt [12:52:11]cmd_close_receipt [12:52:11]MH_GetDate [12:52:11]Write to MH i2c: F0 00 00 CE 07 C4 [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: F0 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: F0 09 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: F0 09 00 CE 07 00 7B 91 C4 66 5F 7F 2B 66 72 [12:52:11]GetLastDocTimeStamp 1724158233 [12:52:11]current date 1724158331 [12:52:11]FM_GetShiftState [12:52:11]SAM_PROTO_GetShiftState [12:52:11]wFMCommunicate request_size=4 [12:52:11]MH_SAM_APDU [12:52:11]CAPDU: 80 13 01 00 [12:52:11]Write to MH i2c: E2 08 00 CF 07 80 13 01 00 00 00 00 00 53 [12:52:11]Write i2c OK [12:52:11]MH_I2C_Read... [12:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:11]Read from MH i2c: E2 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 0E 00 [12:52:11]MH_I2C_Read... [12:52:11]Read from MH i2c: E2 0E 00 CF 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E4 [12:52:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:52:11]wFMCommunicate OK [12:52:11]SAM_PROTO_GetShiftState done [12:52:11]FM_GetShiftState done [12:52:11]opened in 1724113785 [12:52:11]opened+sec_in_day 1724200185 [12:52:11]quantity*price = 100005 [12:52:11]sum+1 = 100006 [12:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 171 20.08.2024 12:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139699 ФПД: 188264885406047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T125211&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139699&fm=188264885406047&tin=02508201610067®Number=0000000000092569&sum=100000 [12:52:12]StoreToDocumentArchive [12:52:12]shift 453 fd 139699 [12:52:12]save to /storage/0453/doc_00139699 [12:52:12]save last doc name /storage/0453/doc_00139699 to /storage/kkm_last_doc_name [12:52:12]save OK [12:52:12]Clear old archive folders... [12:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:12]tlvbuf is 01FC2B70 [12:52:12]SAM_PROTO_ClearQueue [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 09 00 00 [12:52:12]Write to MH i2c: E2 08 00 DC 07 80 09 00 00 00 00 00 00 55 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 DC 07 00 90 00 57 [12:52:12]RAPDU: 90 00 [12:52:12]wFMCommunicate OK [12:52:12]SAM_PROTO_ClearQueue done [12:52:12]KKMCreateOFDPacket [12:52:12]OFDProtocolAddRootSTLVToBuf [12:52:12]FM_MakeSignedData [12:52:12]FM_MakeSignedData [12:52:12]SAM_PROTO_SignData [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 0D 01 02 [12:52:12]Write to MH i2c: E2 08 00 DD 07 80 0D 01 02 00 00 00 00 5D [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 DD 07 00 90 00 58 [12:52:12]RAPDU: 90 00 [12:52:12]wFMCommunicate OK [12:52:12]wFMCommunicate request_size=255 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7B 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 21 02 00 35 04 06 00 AB [12:52:12]Write to MH i2c: E2 02 01 DE 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7B 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 21 02 00 35 04 06 00 AB 00 00 9D [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 DE 07 00 90 00 59 [12:52:12]RAPDU: 90 00 [12:52:12]wFMCommunicate OK [12:52:12]wFMCommunicate request_size=10 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 0D 02 02 05 39 D5 9E 49 5F [12:52:12]Write to MH i2c: E2 0D 00 DF 07 80 0D 02 02 05 00 39 D5 9E 49 5F 00 00 BE [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 03 00 DF 07 00 90 00 5A [12:52:12]RAPDU: 90 00 [12:52:12]wFMCommunicate OK [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 0D 03 02 [12:52:12]Write to MH i2c: E2 08 00 E0 07 80 0D 03 02 00 00 00 00 62 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 0B 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 0B 00 E0 07 00 AC F3 C6 37 F3 13 95 94 90 00 2E [12:52:12]RAPDU: AC F3 C6 37 F3 13 95 94 90 00 [12:52:12]wFMCommunicate OK [12:52:12]SAM_PROTO_SignData done [12:52:12]FM_MakeSignedData done [12:52:12]CreateOFDProtocolMessage [12:52:12]wFMCommunicate request_size=4 [12:52:12]MH_SAM_APDU [12:52:12]CAPDU: 80 11 00 00 [12:52:12]Write to MH i2c: E2 08 00 E1 07 80 11 00 00 00 00 00 00 62 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:12]Read from MH i2c: E2 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 17 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: E2 17 00 E1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B9 [12:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:52:12]wFMCommunicate OK [12:52:12]CreateOFDProtocolMessage done [12:52:12]OFDSenderStorePacket 139699 [12:52:12]StoreOFDPacket docnum=139699 [12:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DF 69 07 01 6C CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7B 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 21 02 00 35 04 06 00 AB 39 D5 9E 49 5F AC F3 C6 37 F3 13 95 94 [12:52:12]CheckFolder [12:52:12]dirname=/storage/ofd_packets [12:52:12]CheckFolder done [12:52:12]ProducePacketName [12:52:12]name=ofd_packets/00139699 [12:52:12]NVStorageSaveData ofd_packets/00139699 [12:52:12]File name is /storage/ofd_packets/00139699 [12:52:12]Write 301 bytes [12:52:12]NVStorageSaveData done [12:52:12]OFDSenderStorePacket done [12:52:12]KKMCreateOFDPacket done [12:52:12]NVStorageSaveData kkm_last_timestamp [12:52:12]File name is /storage/kkm_last_timestamp [12:52:12]Write 4 bytes [12:52:12]NVStorageSaveData done [12:52:12]ExternCall_PrintAddStr [12:52:12]wPrintStart [12:52:12]Write to MH i2c: 01 00 00 E2 07 E9 [12:52:12]Write i2c OK [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: 01 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: 01 07 00 [12:52:12]MH_I2C_Read... [12:52:12]Read from MH i2c: 01 07 00 E2 07 00 00 00 00 00 FF 0F FE [12:52:12]RasterBufferAndPrint [12:52:12]line Счет N : (1)593546 [12:52:12]line ИНН: 02508201610067 [12:52:12]line Контрольно-Кассовый Чек [12:52:12]line ПРОДАЖА [12:52:12]line ТРК (МРК, ГНК) : 52 [12:52:12]line Товар: 2710124130 [12:52:12]line Аи-92-К-5 [12:52:12]line 14.750 * 67.80 [12:52:12]line = 1000.05 [12:52:12]line НДС 12% НСП 1% [12:52:12]line > о реализуемом товаре [12:52:12]line ОКРУГЛЕНИЕ: -0.05 [12:52:12]line ИТОГО: 1000.00 [12:52:12]line Внесено: 1000.00 [12:52:12]line СДАЧА: 0.00 [12:52:12]line НСП 1% : 8.85 [12:52:12]line НДС 12% : 106.20 [12:52:12]line Наличными: 1000.00 [12:52:12]line Безнал.: 0.00 [12:52:12]line Место: АЗС № 136 "Партнер Нефть" [12:52:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:52:12]line СНО: Общий режим [12:52:12]line Чек 171 20.08.2024 12:52 [12:52:12]line Смена: 453 ФФД: 1.0 [12:52:12]line ЗНМ: 0300000067 [12:52:12]line РНМ: 0000000000092569 [12:52:12]line Версия ККМ: 001 [12:52:12]line ФМ: 0000000000871776 [12:52:12]line ФД: 139699 [12:52:12]line ФПД: 188264885406047 [12:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T125211&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139699&fm=188264885406047&tin=02508201610067®Number=0000000000092569&sum=100000 [12:52:13]written 0, free lines is 4095 [12:52:13]Write to MH i2c: 01 00 00 0D 08 15 [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: 01 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: 01 07 00 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: 01 07 00 0D 08 00 00 00 00 00 CD 0C F5 [12:52:13]RasterBufferAndPrint [12:52:13]line [12:52:13]line [12:52:13]line [12:52:13]line [12:52:13]line [12:52:13]written 0, free lines is 3282 [12:52:13]MH_Cut [12:52:13]Write to MH i2c: D1 01 00 14 08 01 EE [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: D1 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: D1 01 00 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: D1 01 00 14 08 00 ED [12:52:13]Write to MH i2c: 01 00 00 15 08 1D [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:14]*** Cut start [12:52:14]*** Partial cut [12:52:14]*** CUTSNS_PIN = 1 [12:52:14]*** CUTSNS_PIN = 0 [12:52:14]*** Brake cut motor [12:52:14]Read from MH i2c: 01 [12:52:14]MH_I2C_Read... [12:52:14]*** Stop cut motor [12:52:14]*** Cut end [12:52:14]Read from MH i2c: 01 07 00 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: 01 07 00 15 08 00 00 00 00 00 FF 0F 32 [12:52:14]process_action close_receipt done [12:52:14]requested_data is exist [12:52:14]produce_requested_data [12:52:14]requested_item fm.sn is exist - process it [12:52:14]wFMCommunicate request_size=4 [12:52:14]MH_SAM_APDU [12:52:14]CAPDU: 80 11 00 00 [12:52:14]Write to MH i2c: E2 08 00 16 08 80 11 00 00 00 00 00 00 98 [12:52:14]Write i2c OK [12:52:14]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 17 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 17 00 16 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EF [12:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:52:15]wFMCommunicate OK [12:52:15]requested_item fd.num is exist - process it [12:52:15]SAM_PROTO_GetFieldsCounters [12:52:15]wFMCommunicate request_size=4 [12:52:15]MH_SAM_APDU [12:52:15]CAPDU: 80 13 00 00 [12:52:15]Write to MH i2c: E2 08 00 17 08 80 13 00 00 00 00 00 00 9B [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 62 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 62 00 17 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [12:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:15]wFMCommunicate OK [12:52:15]SAM_PROTO_GetFieldsCounters done [12:52:15]requested_item shift.num is exist - process it [12:52:15]requested_item shift.opened is exist - process it [12:52:15]req_shift_opened [12:52:15]FM_GetShiftState [12:52:15]SAM_PROTO_GetShiftState [12:52:15]wFMCommunicate request_size=4 [12:52:15]MH_SAM_APDU [12:52:15]CAPDU: 80 13 01 00 [12:52:15]Write to MH i2c: E2 08 00 18 08 80 13 01 00 00 00 00 00 9D [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 0E 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 0E 00 18 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2E [12:52:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:52:15]wFMCommunicate OK [12:52:15]SAM_PROTO_GetShiftState done [12:52:15]FM_GetShiftState done [12:52:15]req_shift_opened done [12:52:15]requested_item shift.open_date is exist - process it [12:52:15]req_shift_open_date [12:52:15]req_shift_open_date done [12:52:15]produce_requested_data done [12:52:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139699,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:52:15]process_action_free close_receipt [12:52:15]json_value_free [12:52:15]json_value_free done [12:52:15]process_json_proto returns [12:52:15]Send response to host [12:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139699,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:52:15]free response buf [12:52:15]execute_script done [12:52:15]execute_script returns [12:52:15]free content buf [12:52:15]Sock 8.Close socket [12:52:15]Sock 8.Thread stoped [12:52:46]ConnectInit Can't connect to host [12:52:46]CommunicateWithHost connect error [12:52:46]CommunicateWithHost err = -1 [12:52:46]OFD Sender: Server communicate error [12:52:46]OFD Sender: Processing packet 139698 [packets to send 138, broken 136] [12:52:46]ProducePacketName [12:52:46]name=ofd_packets/00139698 [12:52:46]OFD Sender: To server: pG, [12:52:46]CommunicateWithHost lk.salyk.kg:30040 [12:52:46]ConnectInit lk.salyk.kg [12:52:46]Connected sock=8 [12:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AD 33 07 01 E4 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 19 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 21 02 00 35 04 06 00 58 F6 17 A9 33 DE C6 B3 96 E2 2A D4 76 CD [12:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FC 67 47 00 50 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 21 02 00 F4 03 04 00 30 38 C4 66 B6 04 01 00 00 94 10 36 43 CC C4 2F 59 [12:52:46]CommunicateWithHost err = 0 [12:52:46]CheckOFDResponse [12:52:46]1017 (14) - 77093643461234 [12:52:46]1041 (16) - 0000000000871776 [12:52:46]1040 (4) - 139698 [12:52:46]1012 (4) - 20.08.2024 06:31 [12:52:46]1206 (1) - 0 [12:52:46]OFD Sender: Remove packet 139698 [12:52:46]ProducePacketName [12:52:46]name=ofd_packets/00139698 [12:52:46]NVStorageDeleteData [12:52:47]OFD Sender: Processing packet 139699 [packets to send 137, broken 136] [12:52:47]ProducePacketName [12:52:47]name=ofd_packets/00139699 [12:52:47]OFD Sender: To server: pG, [12:52:47]CommunicateWithHost lk.salyk.kg:30040 [12:52:47]ConnectInit lk.salyk.kg [12:52:47]Connected sock=8 [12:52:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DF 69 07 01 6C CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 7B 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 21 02 00 35 04 06 00 AB 39 D5 9E 49 5F AC F3 C6 37 F3 13 95 94 [12:52:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 60 1A 47 00 ED E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 21 02 00 F4 03 04 00 30 38 C4 66 B6 04 01 00 00 85 15 E3 7A AC 89 F9 3E [12:52:47]CommunicateWithHost err = 0 [12:52:47]CheckOFDResponse [12:52:47]1017 (14) - 77093643461234 [12:52:47]1041 (16) - 0000000000871776 [12:52:47]1040 (4) - 139699 [12:52:47]1012 (4) - 20.08.2024 06:31 [12:52:47]1206 (1) - 0 [12:52:47]OFD Sender: Remove packet 139699 [12:52:47]ProducePacketName [12:52:47]name=ofd_packets/00139699 [12:52:47]NVStorageDeleteData [12:52:48]OFD Sender: No OFD packet to send [12:52:51]accept exits with 10 [12:52:51]New connection [12:52:51]New thread 3067145572 created [12:52:51]Thread 3067288932 joined [12:52:51]Waiting for new connection... [12:52:51] Sock 10.Parse request [12:52:51]Sock 10.Check first char [12:52:51]Sock 10.First char is OK [12:52:51]request: POST /json_proto HTTP/1.0 [12:52:51]Method: POST [12:52:51]URL: /json_proto [12:52:51]Method is POST - this is cgi request [12:52:51]url: /json_proto [12:52:51]query_string will be loaded in cgi processing [12:52:51]execute_cgi json_proto POST (null) [12:52:51]execute_cgi path=json_proto method=POST [12:52:51]POST find Content-Length [12:52:51]Host: 172.17.45.67:8080 [12:52:51]Content-Length: 658 [12:52:51]Content-Type: application/json [12:52:51] [12:52:51]POST finish read [12:52:51]Found Content-Length = 658 [12:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:51]execute_script... [12:52: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)593547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:51]POST & json_proto [12:52:51]process_json_proto [12:52:51]json parsed OK: [12:52:51]protocol is kg_v1.0 [12:52:51]action value=close_receipt [12:52:51]process_action close_receipt [12:52:51]cmd_close_receipt [12:52:51]MH_GetDate [12:52:51]Write to MH i2c: F0 00 00 19 08 10 [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: F0 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: F0 09 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: F0 09 00 19 08 00 A3 91 C4 66 5F 7F 2B 66 E6 [12:52:51]GetLastDocTimeStamp 1724158331 [12:52:51]current date 1724158371 [12:52:51]FM_GetShiftState [12:52:51]SAM_PROTO_GetShiftState [12:52:51]wFMCommunicate request_size=4 [12:52:51]MH_SAM_APDU [12:52:51]CAPDU: 80 13 01 00 [12:52:51]Write to MH i2c: E2 08 00 1A 08 80 13 01 00 00 00 00 00 9F [12:52:51]Write i2c OK [12:52:51]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 0E 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 0E 00 1A 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 30 [12:52:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:52:51]wFMCommunicate OK [12:52:51]SAM_PROTO_GetShiftState done [12:52:51]FM_GetShiftState done [12:52:51]opened in 1724113785 [12:52:51]opened+sec_in_day 1724200185 [12:52:51]quantity*price = 40041 [12:52:51]sum+1 = 40043 [12:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 172 20.08.2024 12:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139700 ФПД: 45553605540139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T125251&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139700&fm=45553605540139&tin=02508201610067®Number=0000000000092569&sum=40000 [12:52:52]StoreToDocumentArchive [12:52:52]shift 453 fd 139700 [12:52:52]save to /storage/0453/doc_00139700 [12:52:52]save last doc name /storage/0453/doc_00139700 to /storage/kkm_last_doc_name [12:52:52]save OK [12:52:52]Clear old archive folders... [12:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:52:52]tlvbuf is 01FED780 [12:52:52]SAM_PROTO_ClearQueue [12:52:52]wFMCommunicate request_size=4 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 09 00 00 [12:52:52]Write to MH i2c: E2 08 00 27 08 80 09 00 00 00 00 00 00 A1 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 27 08 00 90 00 A3 [12:52:52]RAPDU: 90 00 [12:52:52]wFMCommunicate OK [12:52:52]SAM_PROTO_ClearQueue done [12:52:52]KKMCreateOFDPacket [12:52:52]OFDProtocolAddRootSTLVToBuf [12:52:52]FM_MakeSignedData [12:52:52]FM_MakeSignedData [12:52:52]SAM_PROTO_SignData [12:52:52]wFMCommunicate request_size=4 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 0D 01 02 [12:52:52]Write to MH i2c: E2 08 00 28 08 80 0D 01 02 00 00 00 00 A9 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 28 08 00 90 00 A4 [12:52:52]RAPDU: 90 00 [12:52:52]wFMCommunicate OK [12:52:52]wFMCommunicate request_size=253 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 A3 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 21 02 00 35 04 06 00 29 6E 46 79 F9 2B [12:52:52]Write to MH i2c: E2 00 01 29 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 A3 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 21 02 00 35 04 06 00 29 6E 46 79 F9 2B 00 00 25 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:53]Read from MH i2c: E2 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 03 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 03 00 29 08 00 90 00 A5 [12:52:53]RAPDU: 90 00 [12:52:53]wFMCommunicate OK [12:52:53]wFMCommunicate request_size=4 [12:52:53]MH_SAM_APDU [12:52:53]CAPDU: 80 0D 03 02 [12:52:53]Write to MH i2c: E2 08 00 2A 08 80 0D 03 02 00 00 00 00 AD [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:53]Read from MH i2c: E2 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 0B 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 0B 00 2A 08 00 5E E3 34 F7 30 F1 4A 4C 90 00 D1 [12:52:53]RAPDU: 5E E3 34 F7 30 F1 4A 4C 90 00 [12:52:53]wFMCommunicate OK [12:52:53]SAM_PROTO_SignData done [12:52:53]FM_MakeSignedData done [12:52:53]CreateOFDProtocolMessage [12:52:53]wFMCommunicate request_size=4 [12:52:53]MH_SAM_APDU [12:52:53]CAPDU: 80 11 00 00 [12:52:53]Write to MH i2c: E2 08 00 2B 08 80 11 00 00 00 00 00 00 AD [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:53]Read from MH i2c: E2 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 17 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: E2 17 00 2B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [12:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:52:53]wFMCommunicate OK [12:52:53]CreateOFDProtocolMessage done [12:52:53]OFDSenderStorePacket 139700 [12:52:53]StoreOFDPacket docnum=139700 [12:52:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 A8 A2 00 01 1C 82 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 A3 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 21 02 00 35 04 06 00 29 6E 46 79 F9 2B 5E E3 34 F7 30 F1 4A 4C [12:52:53]CheckFolder [12:52:53]dirname=/storage/ofd_packets [12:52:53]CheckFolder done [12:52:53]ProducePacketName [12:52:53]name=ofd_packets/00139700 [12:52:53]NVStorageSaveData ofd_packets/00139700 [12:52:53]File name is /storage/ofd_packets/00139700 [12:52:53]Write 294 bytes [12:52:53]NVStorageSaveData done [12:52:53]OFDSenderStorePacket done [12:52:53]KKMCreateOFDPacket done [12:52:53]NVStorageSaveData kkm_last_timestamp [12:52:53]File name is /storage/kkm_last_timestamp [12:52:53]Write 4 bytes [12:52:53]NVStorageSaveData done [12:52:53]ExternCall_PrintAddStr [12:52:53]wPrintStart [12:52:53]Write to MH i2c: 01 00 00 2C 08 34 [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 07 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 FF 0F 49 [12:52:53]RasterBufferAndPrint [12:52:53]line Счет N : (1)593547 [12:52:53]line ИНН: 02508201610067 [12:52:53]line Контрольно-Кассовый Чек [12:52:53]line ПРОДАЖА [12:52:53]line ТРК (МРК, ГНК) : 63 [12:52:53]line Товар: 2710124130 [12:52:53]line SU-92 [12:52:53]line 5.820 * 68.80 [12:52:53]line = 400.42 [12:52:53]line НДС 12% НСП 1% [12:52:53]line > о реализуемом товаре [12:52:53]line ОКРУГЛЕНИЕ: -0.42 [12:52:53]line ИТОГО: 400.00 [12:52:53]line Внесено: 400.00 [12:52:53]line СДАЧА: 0.00 [12:52:53]line НСП 1% : 3.54 [12:52:53]line НДС 12% : 42.52 [12:52:53]line Наличными: 400.00 [12:52:53]line Безнал.: 0.00 [12:52:53]line Место: АЗС № 136 "Партнер Нефть" [12:52:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:52:53]line СНО: Общий режим [12:52:53]line Чек 172 20.08.2024 12:52 [12:52:53]line Смена: 453 ФФД: 1.0 [12:52:53]line ЗНМ: 0300000067 [12:52:53]line РНМ: 0000000000092569 [12:52:53]line Версия ККМ: 001 [12:52:53]line ФМ: 0000000000871776 [12:52:53]line ФД: 139700 [12:52:53]line ФПД: 45553605540139 [12:52:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T125251&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139700&fm=45553605540139&tin=02508201610067®Number=0000000000092569&sum=40000 [12:52:53]OFD Sender: Processing packet 139700 [packets to send 137, broken 136] [12:52:53]ProducePacketName [12:52:53]name=ofd_packets/00139700 [12:52:53]OFD Sender: To server: pG, [12:52:53]CommunicateWithHost lk.salyk.kg:30040 [12:52:53]ConnectInit lk.salyk.kg [12:52:53]written 0, free lines is 4095 [12:52:53]Connected sock=11 [12:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 A8 A2 00 01 1C 82 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 A3 91 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 21 02 00 35 04 06 00 29 6E 46 79 F9 2B 5E E3 34 F7 30 F1 4A 4C [12:52:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 43 7D 47 00 C5 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 21 02 00 F4 03 04 00 37 38 C4 66 B6 04 01 00 00 8A 2B E1 E3 63 5F 99 74 [12:52:53]CommunicateWithHost err = 0 [12:52:53]CheckOFDResponse [12:52:53]1017 (14) - 77093643461234 [12:52:53]1041 (16) - 0000000000871776 [12:52:53]1040 (4) - 139700 [12:52:53]1012 (4) - 20.08.2024 06:31 [12:52:53]1206 (1) - 0 [12:52:53]OFD Sender: Remove packet 139700 [12:52:53]ProducePacketName [12:52:53]name=ofd_packets/00139700 [12:52:53]NVStorageDeleteData [12:52:53]Write to MH i2c: 01 00 00 57 08 5F [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 07 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 07 00 57 08 00 00 00 00 00 C8 0C 3A [12:52:53]RasterBufferAndPrint [12:52:53]line [12:52:53]line [12:52:53]line [12:52:53]line [12:52:53]line [12:52:53]written 0, free lines is 3278 [12:52:53]MH_Cut [12:52:53]Write to MH i2c: D1 01 00 5E 08 01 38 [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: D1 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: D1 01 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: D1 01 00 5E 08 00 37 [12:52:53]Write to MH i2c: 01 00 00 5F 08 67 [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:54]OFD Sender: No OFD packet to send [12:52:54]*** Cut start [12:52:54]*** Partial cut [12:52:54]*** CUTSNS_PIN = 1 [12:52:54]*** CUTSNS_PIN = 0 [12:52:54]*** Brake cut motor [12:52:55]Read from MH i2c: 01 [12:52:55]MH_I2C_Read... [12:52:55]*** Stop cut motor [12:52:55]*** Cut end [12:52:55]Read from MH i2c: 01 07 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: 01 07 00 5F 08 00 00 00 00 00 FF 0F 7C [12:52:55]process_action close_receipt done [12:52:55]requested_data is exist [12:52:55]produce_requested_data [12:52:55]requested_item fm.sn is exist - process it [12:52:55]wFMCommunicate request_size=4 [12:52:55]MH_SAM_APDU [12:52:55]CAPDU: 80 11 00 00 [12:52:55]Write to MH i2c: E2 08 00 60 08 80 11 00 00 00 00 00 00 E2 [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:55]Read from MH i2c: E2 17 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 17 00 60 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [12:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:52:55]wFMCommunicate OK [12:52:55]requested_item fd.num is exist - process it [12:52:55]SAM_PROTO_GetFieldsCounters [12:52:55]wFMCommunicate request_size=4 [12:52:55]MH_SAM_APDU [12:52:55]CAPDU: 80 13 00 00 [12:52:55]Write to MH i2c: E2 08 00 61 08 80 13 00 00 00 00 00 00 E5 [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 62 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 62 00 61 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [12:52:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:55]wFMCommunicate OK [12:52:55]SAM_PROTO_GetFieldsCounters done [12:52:55]requested_item shift.num is exist - process it [12:52:55]requested_item shift.opened is exist - process it [12:52:55]req_shift_opened [12:52:55]FM_GetShiftState [12:52:55]SAM_PROTO_GetShiftState [12:52:55]wFMCommunicate request_size=4 [12:52:55]MH_SAM_APDU [12:52:55]CAPDU: 80 13 01 00 [12:52:55]Write to MH i2c: E2 08 00 62 08 80 13 01 00 00 00 00 00 E7 [12:52:55]Write i2c OK [12:52:55]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 0E 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 0E 00 62 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 78 [12:52:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:52:55]wFMCommunicate OK [12:52:55]SAM_PROTO_GetShiftState done [12:52:55]FM_GetShiftState done [12:52:55]req_shift_opened done [12:52:55]requested_item shift.open_date is exist - process it [12:52:55]req_shift_open_date [12:52:55]req_shift_open_date done [12:52:55]produce_requested_data done [12:52:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139700,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:52:55]process_action_free close_receipt [12:52:55]json_value_free [12:52:55]json_value_free done [12:52:55]process_json_proto returns [12:52:55]Send response to host [12:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139700,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:52:55]free response buf [12:52:55]execute_script done [12:52:55]execute_script returns [12:52:55]free content buf [12:52:55]Sock 10.Close socket [12:52:55]Sock 10.Thread stoped [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:46]accept exits with 8 [12:57:46]New connection [12:57:46]New thread 3067288932 created [12:57:46]Thread 3067145572 joined [12:57:46]Waiting for new connection... [12:57:46] Sock 8.Parse request [12:57:46]Sock 8.Check first char [12:57:46]Sock 8.First char is OK [12:57:46]request: POST /json_proto HTTP/1.0 [12:57:46]Method: POST [12:57:46]URL: /json_proto [12:57:46]Method is POST - this is cgi request [12:57:46]url: /json_proto [12:57:46]query_string will be loaded in cgi processing [12:57:46]execute_cgi json_proto POST (null) [12:57:46]execute_cgi path=json_proto method=POST [12:57:46]POST find Content-Length [12:57:46]Host: 172.17.45.67:8080 [12:57:46]Content-Length: 687 [12:57:46]Content-Type: application/json [12:57:46] [12:57:46]POST finish read [12:57:46]Found Content-Length = 687 [12:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [12:57:46]execute_script... [12:57: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)593548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [12:57:46]POST & json_proto [12:57:46]process_json_proto [12:57:46]json parsed OK: [12:57:46]protocol is kg_v1.0 [12:57:46]action value=close_receipt [12:57:46]process_action close_receipt [12:57:46]cmd_close_receipt [12:57:46]MH_GetDate [12:57:46]Write to MH i2c: F0 00 00 63 08 5A [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: F0 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: F0 09 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: F0 09 00 63 08 00 CA 92 C4 66 5F 7F 2B 66 58 [12:57:46]GetLastDocTimeStamp 1724158371 [12:57:46]current date 1724158666 [12:57:46]FM_GetShiftState [12:57:46]SAM_PROTO_GetShiftState [12:57:46]wFMCommunicate request_size=4 [12:57:46]MH_SAM_APDU [12:57:46]CAPDU: 80 13 01 00 [12:57:46]Write to MH i2c: E2 08 00 64 08 80 13 01 00 00 00 00 00 E9 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:46]Read from MH i2c: E2 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 0E 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 0E 00 64 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7A [12:57:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:57:46]wFMCommunicate OK [12:57:46]SAM_PROTO_GetShiftState done [12:57:46]FM_GetShiftState done [12:57:46]opened in 1724113785 [12:57:46]opened+sec_in_day 1724200185 [12:57:46]quantity*price = 150037 [12:57:46]sum+1 = 150039 [12:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 173 20.08.2024 12:57 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139701 ФПД: 148021434485716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T125746&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139701&fm=148021434485716&tin=02508201610067®Number=0000000000092569&sum=150000 [12:57:47]StoreToDocumentArchive [12:57:47]shift 453 fd 139701 [12:57:47]save to /storage/0453/doc_00139701 [12:57:47]save last doc name /storage/0453/doc_00139701 to /storage/kkm_last_doc_name [12:57:47]save OK [12:57:47]Clear old archive folders... [12:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:57:47]tlvbuf is 01FFA1B0 [12:57:47]SAM_PROTO_ClearQueue [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 09 00 00 [12:57:47]Write to MH i2c: E2 08 00 71 08 80 09 00 00 00 00 00 00 EB [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 71 08 00 90 00 ED [12:57:47]RAPDU: 90 00 [12:57:47]wFMCommunicate OK [12:57:47]SAM_PROTO_ClearQueue done [12:57:47]KKMCreateOFDPacket [12:57:47]OFDProtocolAddRootSTLVToBuf [12:57:47]FM_MakeSignedData [12:57:47]FM_MakeSignedData [12:57:47]SAM_PROTO_SignData [12:57:47]wFMCommunicate request_size=4 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 0D 01 02 [12:57:47]Write to MH i2c: E2 08 00 72 08 80 0D 01 02 00 00 00 00 F3 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:47]Read from MH i2c: E2 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 [12:57:47]MH_I2C_Read... [12:57:47]Read from MH i2c: E2 03 00 72 08 00 90 00 EE [12:57:47]RAPDU: 90 00 [12:57:47]wFMCommunicate OK [12:57:47]wFMCommunicate request_size=255 [12:57:47]MH_SAM_APDU [12:57:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 AD 00 00 00 F4 03 04 00 CA 92 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 21 02 00 35 04 06 00 [12:57:47]Write to MH i2c: E2 02 01 73 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 AD 00 00 00 F4 03 04 00 CA 92 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 21 02 00 35 04 06 00 00 00 B2 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 73 08 00 90 00 EF [12:57:48]RAPDU: 90 00 [12:57:48]wFMCommunicate OK [12:57:48]wFMCommunicate request_size=11 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 0D 02 02 06 86 9F ED 05 8B D4 [12:57:48]Write to MH i2c: E2 0E 00 74 08 80 0D 02 02 06 00 86 9F ED 05 8B D4 00 00 78 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 74 08 00 90 00 F0 [12:57:48]RAPDU: 90 00 [12:57:48]wFMCommunicate OK [12:57:48]wFMCommunicate request_size=4 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 0D 03 02 [12:57:48]Write to MH i2c: E2 08 00 75 08 80 0D 03 02 00 00 00 00 F8 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 0B 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 0B 00 75 08 00 39 6C AB 7C 48 AA 76 19 90 00 46 [12:57:48]RAPDU: 39 6C AB 7C 48 AA 76 19 90 00 [12:57:48]wFMCommunicate OK [12:57:48]SAM_PROTO_SignData done [12:57:48]FM_MakeSignedData done [12:57:48]CreateOFDProtocolMessage [12:57:48]wFMCommunicate request_size=4 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 11 00 00 [12:57:48]Write to MH i2c: E2 08 00 76 08 80 11 00 00 00 00 00 00 F8 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 17 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 17 00 76 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [12:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:57:48]wFMCommunicate OK [12:57:48]CreateOFDProtocolMessage done [12:57:48]OFDSenderStorePacket 139701 [12:57:48]StoreOFDPacket docnum=139701 [12:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 40 D3 08 01 3B 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 AD 00 00 00 F4 03 04 00 CA 92 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 21 02 00 35 04 06 00 86 9F ED 05 8B D4 39 6C AB 7C 48 AA 76 19 [12:57:48]CheckFolder [12:57:48]dirname=/storage/ofd_packets [12:57:48]CheckFolder done [12:57:48]ProducePacketName [12:57:48]name=ofd_packets/00139701 [12:57:48]NVStorageSaveData ofd_packets/00139701 [12:57:48]File name is /storage/ofd_packets/00139701 [12:57:48]Write 302 bytes [12:57:48]NVStorageSaveData done [12:57:48]OFDSenderStorePacket done [12:57:48]KKMCreateOFDPacket done [12:57:48]NVStorageSaveData kkm_last_timestamp [12:57:48]File name is /storage/kkm_last_timestamp [12:57:48]Write 4 bytes [12:57:48]NVStorageSaveData done [12:57:48]ExternCall_PrintAddStr [12:57:48]wPrintStart [12:57:48]Write to MH i2c: 01 00 00 77 08 7F [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 07 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 FF 0F 94 [12:57:48]RasterBufferAndPrint [12:57:48]line Счет N : (1)593548 [12:57:48]line ИНН: 02508201610067 [12:57:48]line Контрольно-Кассовый Чек [12:57:48]line ПРОДАЖА [12:57:48]line ТРК (МРК, ГНК) : 34 [12:57:48]line Товар: 2710194210 [12:57:48]line ДТ(л)-К-5 [12:57:48]line 19.690 * 76.20 [12:57:48]line = 1500.38 [12:57:48]line НДС 12% НСП 1% [12:57:48]line > о реализуемом товаре [12:57:48]line ОКРУГЛЕНИЕ: -0.38 [12:57:48]line ИТОГО: 1500.00 [12:57:48]line Внесено: 1500.00 [12:57:48]line СДАЧА: 0.00 [12:57:48]line НСП 1% : 13.28 [12:57:48]line НДС 12% : 159.33 [12:57:48]line Наличными: 1500.00 [12:57:48]line Безнал.: 0.00 [12:57:48]line Место: АЗС № 136 "Партнер Нефть" [12:57:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:57:48]line СНО: Общий режим [12:57:48]line Чек 173 20.08.2024 12:57 [12:57:48]line Смена: 453 ФФД: 1.0 [12:57:48]line ЗНМ: 0300000067 [12:57:48]line РНМ: 0000000000092569 [12:57:48]line Версия ККМ: 001 [12:57:48]line ФМ: 0000000000871776 [12:57:48]line ФД: 139701 [12:57:48]line ФПД: 148021434485716 [12:57:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T125746&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139701&fm=148021434485716&tin=02508201610067®Number=0000000000092569&sum=150000 [12:57:48]OFD Sender: Processing packet 139701 [packets to send 137, broken 136] [12:57:48]ProducePacketName [12:57:48]name=ofd_packets/00139701 [12:57:48]OFD Sender: To server: pG, [12:57:48]CommunicateWithHost lk.salyk.kg:30040 [12:57:48]ConnectInit lk.salyk.kg [12:57:48]written 0, free lines is 4095 [12:57:48]Connected sock=10 [12:57:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 40 D3 08 01 3B 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 AD 00 00 00 F4 03 04 00 CA 92 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 21 02 00 35 04 06 00 86 9F ED 05 8B D4 39 6C AB 7C 48 AA 76 19 [12:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 90 89 47 00 5D C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 21 02 00 F4 03 04 00 5E 39 C4 66 B6 04 01 00 00 F4 B4 F4 C7 F5 CD 92 6D [12:57:49]CommunicateWithHost err = 0 [12:57:49]CheckOFDResponse [12:57:49]1017 (14) - 77093643461234 [12:57:49]1041 (16) - 0000000000871776 [12:57:49]1040 (4) - 139701 [12:57:49]1012 (4) - 20.08.2024 06:36 [12:57:49]1206 (1) - 0 [12:57:49]OFD Sender: Remove packet 139701 [12:57:49]ProducePacketName [12:57:49]name=ofd_packets/00139701 [12:57:49]NVStorageDeleteData [12:57:49]Write to MH i2c: 01 00 00 A2 08 AA [12:57:49]Write i2c OK [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: 01 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: 01 07 00 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: 01 07 00 A2 08 00 00 00 00 00 C8 0C 85 [12:57:49]RasterBufferAndPrint [12:57:49]line [12:57:49]line [12:57:49]line [12:57:49]line [12:57:49]line [12:57:49]written 0, free lines is 3277 [12:57:49]MH_Cut [12:57:49]Write to MH i2c: D1 01 00 A9 08 01 83 [12:57:49]Write i2c OK [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: D1 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: D1 01 00 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: D1 01 00 A9 08 00 82 [12:57:49]Write to MH i2c: 01 00 00 AA 08 B2 [12:57:49]Write i2c OK [12:57:49]MH_I2C_Read... [12:57:49]OFD Sender: No OFD packet to send [12:57:49]*** Cut start [12:57:49]*** Partial cut [12:57:49]*** CUTSNS_PIN = 1 [12:57:49]*** CUTSNS_PIN = 0 [12:57:50]*** Brake cut motor [12:57:50]Read from MH i2c: 01 [12:57:50]MH_I2C_Read... [12:57:50]*** Stop cut motor [12:57:50]*** Cut end [12:57:50]Read from MH i2c: 01 07 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: 01 07 00 AA 08 00 00 00 00 00 FF 0F C7 [12:57:50]process_action close_receipt done [12:57:50]requested_data is exist [12:57:50]produce_requested_data [12:57:50]requested_item fm.sn is exist - process it [12:57:50]wFMCommunicate request_size=4 [12:57:50]MH_SAM_APDU [12:57:50]CAPDU: 80 11 00 00 [12:57:50]Write to MH i2c: E2 08 00 AB 08 80 11 00 00 00 00 00 00 2D [12:57:50]Write i2c OK [12:57:50]MH_I2C_Read... [12:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:50]Read from MH i2c: E2 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 17 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 17 00 AB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [12:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:57:50]wFMCommunicate OK [12:57:50]requested_item fd.num is exist - process it [12:57:50]SAM_PROTO_GetFieldsCounters [12:57:50]wFMCommunicate request_size=4 [12:57:50]MH_SAM_APDU [12:57:50]CAPDU: 80 13 00 00 [12:57:50]Write to MH i2c: E2 08 00 AC 08 80 13 00 00 00 00 00 00 30 [12:57:50]Write i2c OK [12:57:50]MH_I2C_Read... [12:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:50]Read from MH i2c: E2 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 62 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 62 00 AC 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:57:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:50]wFMCommunicate OK [12:57:50]SAM_PROTO_GetFieldsCounters done [12:57:50]requested_item shift.num is exist - process it [12:57:50]requested_item shift.opened is exist - process it [12:57:50]req_shift_opened [12:57:50]FM_GetShiftState [12:57:50]SAM_PROTO_GetShiftState [12:57:50]wFMCommunicate request_size=4 [12:57:50]MH_SAM_APDU [12:57:50]CAPDU: 80 13 01 00 [12:57:50]Write to MH i2c: E2 08 00 AD 08 80 13 01 00 00 00 00 00 32 [12:57:50]Write i2c OK [12:57:50]MH_I2C_Read... [12:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:50]Read from MH i2c: E2 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 0E 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 0E 00 AD 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C3 [12:57:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [12:57:50]wFMCommunicate OK [12:57:50]SAM_PROTO_GetShiftState done [12:57:50]FM_GetShiftState done [12:57:50]req_shift_opened done [12:57:50]requested_item shift.open_date is exist - process it [12:57:50]req_shift_open_date [12:57:50]req_shift_open_date done [12:57:50]produce_requested_data done [12:57:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139701,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [12:57:50]process_action_free close_receipt [12:57:50]json_value_free [12:57:50]json_value_free done [12:57:50]process_json_proto returns [12:57:50]Send response to host [12:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139701,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [12:57:50]free response buf [12:57:50]execute_script done [12:57:50]execute_script returns [12:57:50]free content buf [12:57:50]Sock 8.Close socket [12:57:50]Sock 8.Thread stoped [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:20]accept exits with 9 [13:00:20]New connection [13:00:20]New thread 3067145572 created [13:00:20]Thread 3067288932 joined [13:00:20]Waiting for new connection... [13:00:20] Sock 9.Parse request [13:00:20]Sock 9.Check first char [13:00:20]Sock 9.First char is OK [13:00:20]request: POST /json_proto HTTP/1.0 [13:00:20]Method: POST [13:00:20]URL: /json_proto [13:00:20]Method is POST - this is cgi request [13:00:20]url: /json_proto [13:00:20]query_string will be loaded in cgi processing [13:00:20]execute_cgi json_proto POST (null) [13:00:20]execute_cgi path=json_proto method=POST [13:00:20]POST find Content-Length [13:00:20]Host: 172.17.45.67:8080 [13:00:20]Content-Length: 677 [13:00:20]Content-Type: application/json [13:00:20] [13:00:20]POST finish read [13:00:20]Found Content-Length = 677 [13:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:20]execute_script... [13:00: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)593549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:20]POST & json_proto [13:00:20]process_json_proto [13:00:20]json parsed OK: [13:00:20]protocol is kg_v1.0 [13:00:20]action value=close_receipt [13:00:20]process_action close_receipt [13:00:20]cmd_close_receipt [13:00:20]MH_GetDate [13:00:20]Write to MH i2c: F0 00 00 AE 08 A5 [13:00:20]Write i2c OK [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: F0 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: F0 09 00 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: F0 09 00 AE 08 00 64 93 C4 66 5F 7F 2B 66 3E [13:00:20]GetLastDocTimeStamp 1724158666 [13:00:20]current date 1724158820 [13:00:20]FM_GetShiftState [13:00:20]SAM_PROTO_GetShiftState [13:00:20]wFMCommunicate request_size=4 [13:00:20]MH_SAM_APDU [13:00:20]CAPDU: 80 13 01 00 [13:00:20]Write to MH i2c: E2 08 00 AF 08 80 13 01 00 00 00 00 00 34 [13:00:20]Write i2c OK [13:00:20]MH_I2C_Read... [13:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:20]Read from MH i2c: E2 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: E2 0E 00 [13:00:20]MH_I2C_Read... [13:00:20]Read from MH i2c: E2 0E 00 AF 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C5 [13:00:20]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:00:20]wFMCommunicate OK [13:00:20]SAM_PROTO_GetShiftState done [13:00:20]FM_GetShiftState done [13:00:20]opened in 1724113785 [13:00:20]opened+sec_in_day 1724200185 [13:00:20]quantity*price = 30035 [13:00:20]sum+1 = 30036 [13:00:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 174 20.08.2024 13:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139702 ФПД: 59697567611214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130020&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139702&fm=59697567611214&tin=02508201610067®Number=0000000000092569&sum=30000 [13:00:21]StoreToDocumentArchive [13:00:21]shift 453 fd 139702 [13:00:21]save to /storage/0453/doc_00139702 [13:00:21]save last doc name /storage/0453/doc_00139702 to /storage/kkm_last_doc_name [13:00:21]save OK [13:00:21]Clear old archive folders... [13:00:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:21]tlvbuf is 01FDD900 [13:00:21]SAM_PROTO_ClearQueue [13:00:21]wFMCommunicate request_size=4 [13:00:21]MH_SAM_APDU [13:00:21]CAPDU: 80 09 00 00 [13:00:21]Write to MH i2c: E2 08 00 BC 08 80 09 00 00 00 00 00 00 36 [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:21]Read from MH i2c: E2 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 03 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 03 00 BC 08 00 90 00 38 [13:00:21]RAPDU: 90 00 [13:00:21]wFMCommunicate OK [13:00:21]SAM_PROTO_ClearQueue done [13:00:21]KKMCreateOFDPacket [13:00:21]OFDProtocolAddRootSTLVToBuf [13:00:21]FM_MakeSignedData [13:00:21]FM_MakeSignedData [13:00:21]SAM_PROTO_SignData [13:00:21]wFMCommunicate request_size=4 [13:00:21]MH_SAM_APDU [13:00:21]CAPDU: 80 0D 01 02 [13:00:21]Write to MH i2c: E2 08 00 BD 08 80 0D 01 02 00 00 00 00 3E [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:21]Read from MH i2c: E2 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 03 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 03 00 BD 08 00 90 00 39 [13:00:21]RAPDU: 90 00 [13:00:21]wFMCommunicate OK [13:00:21]wFMCommunicate request_size=255 [13:00:21]MH_SAM_APDU [13:00:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 64 93 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 21 02 00 35 04 06 00 36 [13:00:21]Write to MH i2c: E2 02 01 BE 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 64 93 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 21 02 00 35 04 06 00 36 00 00 8A [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:21]Read from MH i2c: E2 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 03 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 03 00 BE 08 00 90 00 3A [13:00:21]RAPDU: 90 00 [13:00:21]wFMCommunicate OK [13:00:21]wFMCommunicate request_size=10 [13:00:21]MH_SAM_APDU [13:00:21]CAPDU: 80 0D 02 02 05 4B 6C 4F B9 4E [13:00:21]Write to MH i2c: E2 0D 00 BF 08 80 0D 02 02 05 00 4B 6C 4F B9 4E 00 00 58 [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:21]Read from MH i2c: E2 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 03 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 03 00 BF 08 00 90 00 3B [13:00:21]RAPDU: 90 00 [13:00:21]wFMCommunicate OK [13:00:21]wFMCommunicate request_size=4 [13:00:21]MH_SAM_APDU [13:00:21]CAPDU: 80 0D 03 02 [13:00:21]Write to MH i2c: E2 08 00 C0 08 80 0D 03 02 00 00 00 00 43 [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:21]Read from MH i2c: E2 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 0B 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 0B 00 C0 08 00 5A BD 0C C0 67 82 BD 7C 90 00 49 [13:00:21]RAPDU: 5A BD 0C C0 67 82 BD 7C 90 00 [13:00:21]wFMCommunicate OK [13:00:21]SAM_PROTO_SignData done [13:00:21]FM_MakeSignedData done [13:00:21]CreateOFDProtocolMessage [13:00:21]wFMCommunicate request_size=4 [13:00:21]MH_SAM_APDU [13:00:21]CAPDU: 80 11 00 00 [13:00:21]Write to MH i2c: E2 08 00 C1 08 80 11 00 00 00 00 00 00 43 [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:21]Read from MH i2c: E2 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 17 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: E2 17 00 C1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [13:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:00:21]wFMCommunicate OK [13:00:21]CreateOFDProtocolMessage done [13:00:21]OFDSenderStorePacket 139702 [13:00:21]StoreOFDPacket docnum=139702 [13:00:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B4 20 07 01 6B F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 64 93 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 21 02 00 35 04 06 00 36 4B 6C 4F B9 4E 5A BD 0C C0 67 82 BD 7C [13:00:21]CheckFolder [13:00:21]dirname=/storage/ofd_packets [13:00:21]CheckFolder done [13:00:21]ProducePacketName [13:00:21]name=ofd_packets/00139702 [13:00:21]NVStorageSaveData ofd_packets/00139702 [13:00:21]File name is /storage/ofd_packets/00139702 [13:00:21]Write 301 bytes [13:00:21]NVStorageSaveData done [13:00:21]OFDSenderStorePacket done [13:00:21]KKMCreateOFDPacket done [13:00:21]NVStorageSaveData kkm_last_timestamp [13:00:21]File name is /storage/kkm_last_timestamp [13:00:21]Write 4 bytes [13:00:21]NVStorageSaveData done [13:00:21]OFD Sender: Processing packet 139702 [packets to send 137, broken 136] [13:00:21]ProducePacketName [13:00:21]name=ofd_packets/00139702 [13:00:21]OFD Sender: To server: pG, [13:00:21]CommunicateWithHost lk.salyk.kg:30040 [13:00:21]ConnectInit lk.salyk.kg [13:00:21]ExternCall_PrintAddStr [13:00:21]wPrintStart [13:00:21]Write to MH i2c: 01 00 00 C2 08 CA [13:00:21]Write i2c OK [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: 01 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: 01 07 00 [13:00:21]MH_I2C_Read... [13:00:21]Read from MH i2c: 01 07 00 C2 08 00 00 00 00 00 FF 0F DF [13:00:21]RasterBufferAndPrint [13:00:21]line Счет N : (1)593549 [13:00:21]line ИНН: 02508201610067 [13:00:21]line Контрольно-Кассовый Чек [13:00:21]line ПРОДАЖА [13:00:21]line ТРК (МРК, ГНК) : 42 [13:00:21]line Товар: 2710124130 [13:00:21]line Аи-92-К-5 [13:00:21]line 4.430 * 67.80 [13:00:21]line = 300.35 [13:00:21]line НДС 12% НСП 1% [13:00:21]line > о реализуемом товаре [13:00:21]line ОКРУГЛЕНИЕ: -0.35 [13:00:21]line ИТОГО: 300.00 [13:00:21]line Внесено: 300.00 [13:00:21]line СДАЧА: 0.00 [13:00:21]line НСП 1% : 2.66 [13:00:21]line НДС 12% : 31.90 [13:00:21]line Наличными: 300.00 [13:00:21]line Безнал.: 0.00 [13:00:21]line Место: АЗС № 136 "Партнер Нефть" [13:00:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:00:21]line СНО: Общий режим [13:00:21]line Чек 174 20.08.2024 13:00 [13:00:21]line Смена: 453 ФФД: 1.0 [13:00:21]line ЗНМ: 0300000067 [13:00:21]line РНМ: 0000000000092569 [13:00:21]line Версия ККМ: 001 [13:00:21]line ФМ: 0000000000871776 [13:00:21]line ФД: 139702 [13:00:21]line ФПД: 59697567611214 [13:00:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130020&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139702&fm=59697567611214&tin=02508201610067®Number=0000000000092569&sum=30000 [13:00:22]Connected sock=11 [13:00:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B4 20 07 01 6B F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 64 93 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 21 02 00 35 04 06 00 36 4B 6C 4F B9 4E 5A BD 0C C0 67 82 BD 7C [13:00:22]written 0, free lines is 4095 [13:00:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 88 38 47 00 CE 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 21 02 00 F4 03 04 00 F7 39 C4 66 B6 04 01 00 00 C3 0C FF 64 5C 8E 0D 1D [13:00:22]CommunicateWithHost err = 0 [13:00:22]CheckOFDResponse [13:00:22]1017 (14) - 77093643461234 [13:00:22]1041 (16) - 0000000000871776 [13:00:22]1040 (4) - 139702 [13:00:22]1012 (4) - 20.08.2024 06:38 [13:00:22]1206 (1) - 0 [13:00:22]OFD Sender: Remove packet 139702 [13:00:22]ProducePacketName [13:00:22]name=ofd_packets/00139702 [13:00:22]NVStorageDeleteData [13:00:22]Write to MH i2c: 01 00 00 ED 08 F5 [13:00:22]Write i2c OK [13:00:22]MH_I2C_Read... [13:00:22]Read from MH i2c: 01 [13:00:22]MH_I2C_Read... [13:00:22]Read from MH i2c: 01 07 00 [13:00:22]MH_I2C_Read... [13:00:22]Read from MH i2c: 01 07 00 ED 08 00 00 00 00 00 CD 0C D5 [13:00:22]RasterBufferAndPrint [13:00:22]line [13:00:22]line [13:00:22]line [13:00:22]line [13:00:22]line [13:00:22]written 0, free lines is 3284 [13:00:22]MH_Cut [13:00:22]Write to MH i2c: D1 01 00 F4 08 01 CE [13:00:22]Write i2c OK [13:00:22]MH_I2C_Read... [13:00:22]Read from MH i2c: D1 [13:00:22]MH_I2C_Read... [13:00:22]Read from MH i2c: D1 01 00 [13:00:22]MH_I2C_Read... [13:00:22]Read from MH i2c: D1 01 00 F4 08 00 CD [13:00:22]Write to MH i2c: 01 00 00 F5 08 FD [13:00:22]Write i2c OK [13:00:22]MH_I2C_Read... [13:00:22]OFD Sender: No OFD packet to send [13:00:23]*** Cut start [13:00:23]*** Partial cut [13:00:23]*** CUTSNS_PIN = 1 [13:00:23]*** CUTSNS_PIN = 0 [13:00:23]*** Brake cut motor [13:00:23]Read from MH i2c: 01 [13:00:23]MH_I2C_Read... [13:00:23]*** Stop cut motor [13:00:23]*** Cut end [13:00:23]Read from MH i2c: 01 07 00 [13:00:23]MH_I2C_Read... [13:00:23]Read from MH i2c: 01 07 00 F5 08 00 00 00 00 00 FF 0F 12 [13:00:23]process_action close_receipt done [13:00:23]requested_data is exist [13:00:23]produce_requested_data [13:00:23]requested_item fm.sn is exist - process it [13:00:23]wFMCommunicate request_size=4 [13:00:23]MH_SAM_APDU [13:00:23]CAPDU: 80 11 00 00 [13:00:23]Write to MH i2c: E2 08 00 F6 08 80 11 00 00 00 00 00 00 78 [13:00:23]Write i2c OK [13:00:23]MH_I2C_Read... [13:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:23]Read from MH i2c: E2 [13:00:23]MH_I2C_Read... [13:00:23]Read from MH i2c: E2 17 00 [13:00:23]MH_I2C_Read... [13:00:23]Read from MH i2c: E2 17 00 F6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [13:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:00:23]wFMCommunicate OK [13:00:23]requested_item fd.num is exist - process it [13:00:23]SAM_PROTO_GetFieldsCounters [13:00:23]wFMCommunicate request_size=4 [13:00:23]MH_SAM_APDU [13:00:23]CAPDU: 80 13 00 00 [13:00:23]Write to MH i2c: E2 08 00 F7 08 80 13 00 00 00 00 00 00 7B [13:00:23]Write i2c OK [13:00:23]MH_I2C_Read... [13:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:24]Read from MH i2c: E2 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: E2 62 00 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: E2 62 00 F7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:00:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:24]wFMCommunicate OK [13:00:24]SAM_PROTO_GetFieldsCounters done [13:00:24]requested_item shift.num is exist - process it [13:00:24]requested_item shift.opened is exist - process it [13:00:24]req_shift_opened [13:00:24]FM_GetShiftState [13:00:24]SAM_PROTO_GetShiftState [13:00:24]wFMCommunicate request_size=4 [13:00:24]MH_SAM_APDU [13:00:24]CAPDU: 80 13 01 00 [13:00:24]Write to MH i2c: E2 08 00 F8 08 80 13 01 00 00 00 00 00 7D [13:00:24]Write i2c OK [13:00:24]MH_I2C_Read... [13:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:24]Read from MH i2c: E2 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: E2 0E 00 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: E2 0E 00 F8 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0E [13:00:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:00:24]wFMCommunicate OK [13:00:24]SAM_PROTO_GetShiftState done [13:00:24]FM_GetShiftState done [13:00:24]req_shift_opened done [13:00:24]requested_item shift.open_date is exist - process it [13:00:24]req_shift_open_date [13:00:24]req_shift_open_date done [13:00:24]produce_requested_data done [13:00:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139702,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:00:24]process_action_free close_receipt [13:00:24]json_value_free [13:00:24]json_value_free done [13:00:24]process_json_proto returns [13:00:24]Send response to host [13:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139702,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:00:24]free response buf [13:00:24]execute_script done [13:00:24]execute_script returns [13:00:24]free content buf [13:00:24]Sock 9.Close socket [13:00:24]Sock 9.Thread stoped [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:06:59]int [13:06:59]Write to MH i2c: 01 00 00 F9 08 01 [13:06:59]*** FLAG_PRN_KEY set [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 07 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 07 00 F9 08 00 08 00 00 00 FF 0F 1E [13:06:59]state=0 [13:06:59]Key pressed [13:06:59]Feed [13:06:59]Write to MH i2c: D8 00 00 FA 08 D9 [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: D8 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: D8 01 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: D8 01 00 FA 08 00 DA [13:06:59]int [13:06:59]Write to MH i2c: 01 00 00 FB 08 03 [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 07 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 07 00 FB 08 00 48 00 00 00 3C 00 8E [13:06:59]state=2 [13:06:59]Key pressed [13:06:59]int [13:06:59]Write to MH i2c: 01 00 00 FC 08 04 [13:06:59]*** FLAG_PRN_KEY reset [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 07 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 07 00 FC 08 00 00 00 00 00 F5 0F 0F [13:06:59]state=2 [13:06:59]Stop feed [13:07:00]accept exits with 8 [13:07:00]New connection [13:07:00]New thread 3067288932 created [13:07:00]Thread 3067145572 joined [13:07:00]Waiting for new connection... [13:07:00] Sock 8.Parse request [13:07:00]Sock 8.Check first char [13:07:00]Sock 8.First char is OK [13:07:00]request: POST /json_proto HTTP/1.0 [13:07:00]Method: POST [13:07:00]URL: /json_proto [13:07:00]Method is POST - this is cgi request [13:07:00]url: /json_proto [13:07:00]query_string will be loaded in cgi processing [13:07:00]execute_cgi json_proto POST (null) [13:07:00]execute_cgi path=json_proto method=POST [13:07:00]POST find Content-Length [13:07:00]Host: 172.17.45.67:8080 [13:07:00]Content-Length: 677 [13:07:00]Content-Type: application/json [13:07:00] [13:07:00]POST finish read [13:07:00]Found Content-Length = 677 [13:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:00]execute_script... [13:07: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)593550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:00]POST & json_proto [13:07:00]process_json_proto [13:07:00]json parsed OK: [13:07:00]protocol is kg_v1.0 [13:07:00]action value=close_receipt [13:07:00]process_action close_receipt [13:07:00]cmd_close_receipt [13:07:00]MH_GetDate [13:07:00]Write to MH i2c: F0 00 00 FD 08 F4 [13:07:00]Write i2c OK [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: F0 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: F0 09 00 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: F0 09 00 FD 08 00 F5 94 C4 66 5F 7F 2B 66 1F [13:07:00]GetLastDocTimeStamp 1724158820 [13:07:00]current date 1724159221 [13:07:00]FM_GetShiftState [13:07:00]SAM_PROTO_GetShiftState [13:07:00]wFMCommunicate request_size=4 [13:07:00]MH_SAM_APDU [13:07:00]CAPDU: 80 13 01 00 [13:07:00]Write to MH i2c: E2 08 00 FE 08 80 13 01 00 00 00 00 00 83 [13:07:00]Write i2c OK [13:07:00]MH_I2C_Read... [13:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:00]Read from MH i2c: E2 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 0E 00 [13:07:00]MH_I2C_Read... [13:07:00]Read from MH i2c: E2 0E 00 FE 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 14 [13:07:00]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:07:00]wFMCommunicate OK [13:07:00]SAM_PROTO_GetShiftState done [13:07:00]FM_GetShiftState done [13:07:00]opened in 1724113785 [13:07:00]opened+sec_in_day 1724200185 [13:07:00]quantity*price = 50036 [13:07:00]sum+1 = 50037 [13:07:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 175 20.08.2024 13:07 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139703 ФПД: 220143550517121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139703&fm=220143550517121&tin=02508201610067®Number=0000000000092569&sum=50000 [13:07:02]StoreToDocumentArchive [13:07:02]shift 453 fd 139703 [13:07:02]save to /storage/0453/doc_00139703 [13:07:02]save last doc name /storage/0453/doc_00139703 to /storage/kkm_last_doc_name [13:07:02]save OK [13:07:02]Clear old archive folders... [13:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:02]tlvbuf is 01FDDAF0 [13:07:02]SAM_PROTO_ClearQueue [13:07:02]wFMCommunicate request_size=4 [13:07:02]MH_SAM_APDU [13:07:02]CAPDU: 80 09 00 00 [13:07:02]Write to MH i2c: E2 08 00 0B 09 80 09 00 00 00 00 00 00 86 [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:02]Read from MH i2c: E2 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 03 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 03 00 0B 09 00 90 00 88 [13:07:02]RAPDU: 90 00 [13:07:02]wFMCommunicate OK [13:07:02]SAM_PROTO_ClearQueue done [13:07:02]KKMCreateOFDPacket [13:07:02]OFDProtocolAddRootSTLVToBuf [13:07:02]FM_MakeSignedData [13:07:02]FM_MakeSignedData [13:07:02]SAM_PROTO_SignData [13:07:02]wFMCommunicate request_size=4 [13:07:02]MH_SAM_APDU [13:07:02]CAPDU: 80 0D 01 02 [13:07:02]Write to MH i2c: E2 08 00 0C 09 80 0D 01 02 00 00 00 00 8E [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:02]Read from MH i2c: E2 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 03 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 03 00 0C 09 00 90 00 89 [13:07:02]RAPDU: 90 00 [13:07:02]wFMCommunicate OK [13:07:02]wFMCommunicate request_size=255 [13:07:02]MH_SAM_APDU [13:07:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F5 94 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 21 02 00 35 04 06 00 C8 [13:07:02]Write to MH i2c: E2 02 01 0D 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F5 94 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 21 02 00 35 04 06 00 C8 00 00 E1 [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:02]Read from MH i2c: E2 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 03 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 03 00 0D 09 00 90 00 8A [13:07:02]RAPDU: 90 00 [13:07:02]wFMCommunicate OK [13:07:02]wFMCommunicate request_size=10 [13:07:02]MH_SAM_APDU [13:07:02]CAPDU: 80 0D 02 02 05 38 2A 20 CF 81 [13:07:02]Write to MH i2c: E2 0D 00 0E 09 80 0D 02 02 05 00 38 2A 20 CF 81 00 00 6D [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:02]Read from MH i2c: E2 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 03 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 03 00 0E 09 00 90 00 8B [13:07:02]RAPDU: 90 00 [13:07:02]wFMCommunicate OK [13:07:02]wFMCommunicate request_size=4 [13:07:02]MH_SAM_APDU [13:07:02]CAPDU: 80 0D 03 02 [13:07:02]Write to MH i2c: E2 08 00 0F 09 80 0D 03 02 00 00 00 00 93 [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:02]Read from MH i2c: E2 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 0B 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 0B 00 0F 09 00 B7 99 3D E1 FF 29 65 8A 90 00 19 [13:07:02]RAPDU: B7 99 3D E1 FF 29 65 8A 90 00 [13:07:02]wFMCommunicate OK [13:07:02]SAM_PROTO_SignData done [13:07:02]FM_MakeSignedData done [13:07:02]CreateOFDProtocolMessage [13:07:02]wFMCommunicate request_size=4 [13:07:02]MH_SAM_APDU [13:07:02]CAPDU: 80 11 00 00 [13:07:02]Write to MH i2c: E2 08 00 10 09 80 11 00 00 00 00 00 00 93 [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:02]Read from MH i2c: E2 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 17 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: E2 17 00 10 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [13:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:07:02]wFMCommunicate OK [13:07:02]CreateOFDProtocolMessage done [13:07:02]OFDSenderStorePacket 139703 [13:07:02]StoreOFDPacket docnum=139703 [13:07:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 56 32 07 01 CB 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F5 94 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 21 02 00 35 04 06 00 C8 38 2A 20 CF 81 B7 99 3D E1 FF 29 65 8A [13:07:02]CheckFolder [13:07:02]dirname=/storage/ofd_packets [13:07:02]CheckFolder done [13:07:02]ProducePacketName [13:07:02]name=ofd_packets/00139703 [13:07:02]NVStorageSaveData ofd_packets/00139703 [13:07:02]File name is /storage/ofd_packets/00139703 [13:07:02]Write 301 bytes [13:07:02]NVStorageSaveData done [13:07:02]OFDSenderStorePacket done [13:07:02]KKMCreateOFDPacket done [13:07:02]NVStorageSaveData kkm_last_timestamp [13:07:02]File name is /storage/kkm_last_timestamp [13:07:02]Write 4 bytes [13:07:02]NVStorageSaveData done [13:07:02]ExternCall_PrintAddStr [13:07:02]wPrintStart [13:07:02]Write to MH i2c: 01 00 00 11 09 1A [13:07:02]Write i2c OK [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: 01 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: 01 07 00 [13:07:02]MH_I2C_Read... [13:07:02]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 FF 0F 2F [13:07:02]RasterBufferAndPrint [13:07:02]line Счет N : (1)593550 [13:07:02]line ИНН: 02508201610067 [13:07:02]line Контрольно-Кассовый Чек [13:07:02]line ПРОДАЖА [13:07:02]line ТРК (МРК, ГНК) : 52 [13:07:02]line Товар: 2710124130 [13:07:02]line Аи-92-К-5 [13:07:02]line 7.380 * 67.80 [13:07:02]line = 500.36 [13:07:02]line НДС 12% НСП 1% [13:07:02]line > о реализуемом товаре [13:07:02]line ОКРУГЛЕНИЕ: -0.36 [13:07:02]line ИТОГО: 500.00 [13:07:02]line Внесено: 500.00 [13:07:02]line СДАЧА: 0.00 [13:07:02]line НСП 1% : 4.43 [13:07:02]line НДС 12% : 53.14 [13:07:02]line Наличными: 500.00 [13:07:02]line Безнал.: 0.00 [13:07:02]line Место: АЗС № 136 "Партнер Нефть" [13:07:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:07:02]line СНО: Общий режим [13:07:02]line Чек 175 20.08.2024 13:07 [13:07:02]line Смена: 453 ФФД: 1.0 [13:07:02]line ЗНМ: 0300000067 [13:07:02]line РНМ: 0000000000092569 [13:07:02]line Версия ККМ: 001 [13:07:02]line ФМ: 0000000000871776 [13:07:02]line ФД: 139703 [13:07:02]line ФПД: 220143550517121 [13:07:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139703&fm=220143550517121&tin=02508201610067®Number=0000000000092569&sum=50000 [13:07:02]written 0, free lines is 4095 [13:07:02]OFD Sender: Processing packet 139703 [packets to send 137, broken 136] [13:07:02]ProducePacketName [13:07:02]name=ofd_packets/00139703 [13:07:02]OFD Sender: To server: pG, [13:07:02]CommunicateWithHost lk.salyk.kg:30040 [13:07:02]ConnectInit lk.salyk.kg [13:07:03]Connected sock=9 [13:07:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 56 32 07 01 CB 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 F5 94 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 21 02 00 35 04 06 00 C8 38 2A 20 CF 81 B7 99 3D E1 FF 29 65 8A [13:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 08 11 47 00 A8 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 21 02 00 F4 03 04 00 88 3B C4 66 B6 04 01 00 00 3D 95 E1 BE 45 82 BD F4 [13:07:03]CommunicateWithHost err = 0 [13:07:03]CheckOFDResponse [13:07:03]1017 (14) - 77093643461234 [13:07:03]1041 (16) - 0000000000871776 [13:07:03]1040 (4) - 139703 [13:07:03]1012 (4) - 20.08.2024 06:45 [13:07:03]1206 (1) - 0 [13:07:03]OFD Sender: Remove packet 139703 [13:07:03]ProducePacketName [13:07:03]name=ofd_packets/00139703 [13:07:03]NVStorageDeleteData [13:07:03]Write to MH i2c: 01 00 00 3C 09 45 [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: 01 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: 01 07 00 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: 01 07 00 3C 09 00 00 00 00 00 D1 0C 29 [13:07:03]RasterBufferAndPrint [13:07:03]line [13:07:03]line [13:07:03]line [13:07:03]line [13:07:03]line [13:07:03]written 0, free lines is 3288 [13:07:03]MH_Cut [13:07:03]Write to MH i2c: D1 01 00 43 09 01 1E [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: D1 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: D1 01 00 [13:07:03]MH_I2C_Read... [13:07:03]Read from MH i2c: D1 01 00 43 09 00 1D [13:07:03]Write to MH i2c: 01 00 00 44 09 4D [13:07:03]Write i2c OK [13:07:03]MH_I2C_Read... [13:07:03]OFD Sender: No OFD packet to send [13:07:04]*** Cut start [13:07:04]*** Partial cut [13:07:04]*** CUTSNS_PIN = 1 [13:07:04]*** CUTSNS_PIN = 0 [13:07:04]*** Brake cut motor [13:07:04]Read from MH i2c: 01 [13:07:04]MH_I2C_Read... [13:07:04]*** Stop cut motor [13:07:04]*** Cut end [13:07:04]Read from MH i2c: 01 07 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: 01 07 00 44 09 00 00 00 00 00 FF 0F 62 [13:07:04]process_action close_receipt done [13:07:04]requested_data is exist [13:07:04]produce_requested_data [13:07:04]requested_item fm.sn is exist - process it [13:07:04]wFMCommunicate request_size=4 [13:07:04]MH_SAM_APDU [13:07:04]CAPDU: 80 11 00 00 [13:07:04]Write to MH i2c: E2 08 00 45 09 80 11 00 00 00 00 00 00 C8 [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:04]Read from MH i2c: E2 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 17 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 17 00 45 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [13:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:07:04]wFMCommunicate OK [13:07:04]requested_item fd.num is exist - process it [13:07:04]SAM_PROTO_GetFieldsCounters [13:07:04]wFMCommunicate request_size=4 [13:07:04]MH_SAM_APDU [13:07:04]CAPDU: 80 13 00 00 [13:07:04]Write to MH i2c: E2 08 00 46 09 80 13 00 00 00 00 00 00 CB [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:04]Read from MH i2c: E2 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 62 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 62 00 46 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [13:07:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:04]wFMCommunicate OK [13:07:04]SAM_PROTO_GetFieldsCounters done [13:07:04]requested_item shift.num is exist - process it [13:07:04]requested_item shift.opened is exist - process it [13:07:04]req_shift_opened [13:07:04]FM_GetShiftState [13:07:04]SAM_PROTO_GetShiftState [13:07:04]wFMCommunicate request_size=4 [13:07:04]MH_SAM_APDU [13:07:04]CAPDU: 80 13 01 00 [13:07:04]Write to MH i2c: E2 08 00 47 09 80 13 01 00 00 00 00 00 CD [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:04]Read from MH i2c: E2 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 0E 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 0E 00 47 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5E [13:07:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:07:04]wFMCommunicate OK [13:07:04]SAM_PROTO_GetShiftState done [13:07:04]FM_GetShiftState done [13:07:04]req_shift_opened done [13:07:04]requested_item shift.open_date is exist - process it [13:07:04]req_shift_open_date [13:07:04]req_shift_open_date done [13:07:04]produce_requested_data done [13:07:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139703,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:07:04]process_action_free close_receipt [13:07:04]json_value_free [13:07:04]json_value_free done [13:07:04]process_json_proto returns [13:07:04]Send response to host [13:07:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139703,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:07:04]free response buf [13:07:04]execute_script done [13:07:04]execute_script returns [13:07:04]free content buf [13:07:04]Sock 8.Close socket [13:07:04]Sock 8.Thread stoped [13:07:08]OFD Sender: No OFD packet to send [13:07:12]accept exits with 10 [13:07:12]New connection [13:07:12]New thread 3067145572 created [13:07:12]Thread 3067288932 joined [13:07:12]Waiting for new connection... [13:07:12] Sock 10.Parse request [13:07:12]Sock 10.Check first char [13:07:12]Sock 10.First char is OK [13:07:12]request: POST /json_proto HTTP/1.0 [13:07:12]Method: POST [13:07:12]URL: /json_proto [13:07:12]Method is POST - this is cgi request [13:07:12]url: /json_proto [13:07:12]query_string will be loaded in cgi processing [13:07:12]execute_cgi json_proto POST (null) [13:07:12]execute_cgi path=json_proto method=POST [13:07:12]POST find Content-Length [13:07:12]Host: 172.17.45.67:8080 [13:07:12]Content-Length: 677 [13:07:12]Content-Type: application/json [13:07:12] [13:07:12]POST finish read [13:07:12]Found Content-Length = 677 [13:07:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:12]execute_script... [13:07: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)593551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:12]POST & json_proto [13:07:12]process_json_proto [13:07:12]json parsed OK: [13:07:12]protocol is kg_v1.0 [13:07:12]action value=close_receipt [13:07:12]process_action close_receipt [13:07:12]cmd_close_receipt [13:07:12]MH_GetDate [13:07:12]Write to MH i2c: F0 00 00 48 09 40 [13:07:12]Write i2c OK [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: F0 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: F0 09 00 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: F0 09 00 48 09 00 00 95 C4 66 5F 7F 2B 66 77 [13:07:12]GetLastDocTimeStamp 1724159221 [13:07:12]current date 1724159232 [13:07:12]FM_GetShiftState [13:07:12]SAM_PROTO_GetShiftState [13:07:12]wFMCommunicate request_size=4 [13:07:12]MH_SAM_APDU [13:07:12]CAPDU: 80 13 01 00 [13:07:12]Write to MH i2c: E2 08 00 49 09 80 13 01 00 00 00 00 00 CF [13:07:12]Write i2c OK [13:07:12]MH_I2C_Read... [13:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:12]Read from MH i2c: E2 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: E2 0E 00 [13:07:12]MH_I2C_Read... [13:07:12]Read from MH i2c: E2 0E 00 49 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 60 [13:07:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:07:12]wFMCommunicate OK [13:07:12]SAM_PROTO_GetShiftState done [13:07:12]FM_GetShiftState done [13:07:12]opened in 1724113785 [13:07:12]opened+sec_in_day 1724200185 [13:07:12]quantity*price = 20001 [13:07:12]sum+1 = 20002 [13:07:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 176 20.08.2024 13:07 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139704 ФПД: 276181663111555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130712&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139704&fm=276181663111555&tin=02508201610067®Number=0000000000092569&sum=20000 [13:07:13]StoreToDocumentArchive [13:07:13]shift 453 fd 139704 [13:07:13]save to /storage/0453/doc_00139704 [13:07:13]save last doc name /storage/0453/doc_00139704 to /storage/kkm_last_doc_name [13:07:13]save OK [13:07:13]Clear old archive folders... [13:07:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:13]tlvbuf is 01FFA1E0 [13:07:13]SAM_PROTO_ClearQueue [13:07:13]wFMCommunicate request_size=4 [13:07:13]MH_SAM_APDU [13:07:13]CAPDU: 80 09 00 00 [13:07:13]Write to MH i2c: E2 08 00 56 09 80 09 00 00 00 00 00 00 D1 [13:07:13]Write i2c OK [13:07:13]MH_I2C_Read... [13:07:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:13]Read from MH i2c: E2 [13:07:13]MH_I2C_Read... [13:07:13]Read from MH i2c: E2 03 00 [13:07:13]MH_I2C_Read... [13:07:13]Read from MH i2c: E2 03 00 56 09 00 90 00 D3 [13:07:13]RAPDU: 90 00 [13:07:13]wFMCommunicate OK [13:07:13]SAM_PROTO_ClearQueue done [13:07:13]KKMCreateOFDPacket [13:07:13]OFDProtocolAddRootSTLVToBuf [13:07:13]FM_MakeSignedData [13:07:13]FM_MakeSignedData [13:07:13]SAM_PROTO_SignData [13:07:13]wFMCommunicate request_size=4 [13:07:13]MH_SAM_APDU [13:07:13]CAPDU: 80 0D 01 02 [13:07:13]Write to MH i2c: E2 08 00 57 09 80 0D 01 02 00 00 00 00 D9 [13:07:13]Write i2c OK [13:07:13]MH_I2C_Read... [13:07:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:13]Read from MH i2c: E2 [13:07:13]MH_I2C_Read... [13:07:13]Read from MH i2c: E2 03 00 [13:07:13]MH_I2C_Read... [13:07:13]Read from MH i2c: E2 03 00 57 09 00 90 00 D4 [13:07:13]RAPDU: 90 00 [13:07:13]wFMCommunicate OK [13:07:13]wFMCommunicate request_size=255 [13:07:13]MH_SAM_APDU [13:07:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 00 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 21 02 00 35 04 06 00 FB [13:07:13]Write to MH i2c: E2 02 01 58 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 00 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 21 02 00 35 04 06 00 FB 00 00 6F [13:07:13]Write i2c OK [13:07:13]MH_I2C_Read... [13:07:13]OFD Sender: No OFD packet to send [13:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:13]Read from MH i2c: E2 [13:07:13]MH_I2C_Read... [13:07:13]Read from MH i2c: E2 03 00 [13:07:13]MH_I2C_Read... [13:07:13]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [13:07:13]RAPDU: 90 00 [13:07:13]wFMCommunicate OK [13:07:13]wFMCommunicate request_size=10 [13:07:13]MH_SAM_APDU [13:07:13]CAPDU: 80 0D 02 02 05 2F 8D EC 59 83 [13:07:13]Write to MH i2c: E2 0D 00 59 09 80 0D 02 02 05 00 2F 8D EC 59 83 00 00 6A [13:07:13]Write i2c OK [13:07:13]MH_I2C_Read... [13:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:14]Read from MH i2c: E2 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: E2 03 00 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [13:07:14]RAPDU: 90 00 [13:07:14]wFMCommunicate OK [13:07:14]wFMCommunicate request_size=4 [13:07:14]MH_SAM_APDU [13:07:14]CAPDU: 80 0D 03 02 [13:07:14]Write to MH i2c: E2 08 00 5A 09 80 0D 03 02 00 00 00 00 DE [13:07:14]Write i2c OK [13:07:14]MH_I2C_Read... [13:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:14]Read from MH i2c: E2 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: E2 0B 00 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: E2 0B 00 5A 09 00 D1 82 6D 08 F8 9E C3 53 90 00 53 [13:07:14]RAPDU: D1 82 6D 08 F8 9E C3 53 90 00 [13:07:14]wFMCommunicate OK [13:07:14]SAM_PROTO_SignData done [13:07:14]FM_MakeSignedData done [13:07:14]CreateOFDProtocolMessage [13:07:14]wFMCommunicate request_size=4 [13:07:14]MH_SAM_APDU [13:07:14]CAPDU: 80 11 00 00 [13:07:14]Write to MH i2c: E2 08 00 5B 09 80 11 00 00 00 00 00 00 DE [13:07:14]Write i2c OK [13:07:14]MH_I2C_Read... [13:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:14]Read from MH i2c: E2 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: E2 17 00 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: E2 17 00 5B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [13:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:07:14]wFMCommunicate OK [13:07:14]CreateOFDProtocolMessage done [13:07:14]OFDSenderStorePacket 139704 [13:07:14]StoreOFDPacket docnum=139704 [13:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 35 70 07 01 E4 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 00 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 21 02 00 35 04 06 00 FB 2F 8D EC 59 83 D1 82 6D 08 F8 9E C3 53 [13:07:14]CheckFolder [13:07:14]dirname=/storage/ofd_packets [13:07:14]CheckFolder done [13:07:14]ProducePacketName [13:07:14]name=ofd_packets/00139704 [13:07:14]NVStorageSaveData ofd_packets/00139704 [13:07:14]File name is /storage/ofd_packets/00139704 [13:07:14]Write 301 bytes [13:07:14]NVStorageSaveData done [13:07:14]OFDSenderStorePacket done [13:07:14]KKMCreateOFDPacket done [13:07:14]NVStorageSaveData kkm_last_timestamp [13:07:14]File name is /storage/kkm_last_timestamp [13:07:14]Write 4 bytes [13:07:14]NVStorageSaveData done [13:07:14]ExternCall_PrintAddStr [13:07:14]wPrintStart [13:07:14]Write to MH i2c: 01 00 00 5C 09 65 [13:07:14]Write i2c OK [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: 01 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: 01 07 00 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 FF 0F 7A [13:07:14]RasterBufferAndPrint [13:07:14]line Счет N : (1)593551 [13:07:14]line ИНН: 02508201610067 [13:07:14]line Контрольно-Кассовый Чек [13:07:14]line ПРОДАЖА [13:07:14]line ТРК (МРК, ГНК) : 42 [13:07:14]line Товар: 2710124130 [13:07:14]line Аи-92-К-5 [13:07:14]line 2.950 * 67.80 [13:07:14]line = 200.01 [13:07:14]line НДС 12% НСП 1% [13:07:14]line > о реализуемом товаре [13:07:14]line ОКРУГЛЕНИЕ: -0.01 [13:07:14]line ИТОГО: 200.00 [13:07:14]line Внесено: 200.00 [13:07:14]line СДАЧА: 0.00 [13:07:14]line НСП 1% : 1.77 [13:07:14]line НДС 12% : 21.24 [13:07:14]line Наличными: 200.00 [13:07:14]line Безнал.: 0.00 [13:07:14]line Место: АЗС № 136 "Партнер Нефть" [13:07:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:07:14]line СНО: Общий режим [13:07:14]line Чек 176 20.08.2024 13:07 [13:07:14]line Смена: 453 ФФД: 1.0 [13:07:14]line ЗНМ: 0300000067 [13:07:14]line РНМ: 0000000000092569 [13:07:14]line Версия ККМ: 001 [13:07:14]line ФМ: 0000000000871776 [13:07:14]line ФД: 139704 [13:07:14]line ФПД: 276181663111555 [13:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130712&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139704&fm=276181663111555&tin=02508201610067®Number=0000000000092569&sum=20000 [13:07:14]OFD Sender: Processing packet 139704 [packets to send 137, broken 136] [13:07:14]ProducePacketName [13:07:14]name=ofd_packets/00139704 [13:07:14]OFD Sender: To server: pG, [13:07:14]CommunicateWithHost lk.salyk.kg:30040 [13:07:14]ConnectInit lk.salyk.kg [13:07:14]written 0, free lines is 4095 [13:07:14]Connected sock=9 [13:07:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 35 70 07 01 E4 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 00 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 21 02 00 35 04 06 00 FB 2F 8D EC 59 83 D1 82 6D 08 F8 9E C3 53 [13:07:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F9 DF 47 00 A4 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 21 02 00 F4 03 04 00 93 3B C4 66 B6 04 01 00 00 26 EF 2D 68 94 BE AD 0F [13:07:14]CommunicateWithHost err = 0 [13:07:14]CheckOFDResponse [13:07:14]1017 (14) - 77093643461234 [13:07:14]1041 (16) - 0000000000871776 [13:07:14]1040 (4) - 139704 [13:07:14]1012 (4) - 20.08.2024 06:45 [13:07:14]1206 (1) - 0 [13:07:14]OFD Sender: Remove packet 139704 [13:07:14]ProducePacketName [13:07:14]name=ofd_packets/00139704 [13:07:14]NVStorageDeleteData [13:07:14]Write to MH i2c: 01 00 00 87 09 90 [13:07:14]Write i2c OK [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: 01 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: 01 07 00 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: 01 07 00 87 09 00 00 00 00 00 CD 0C 70 [13:07:14]RasterBufferAndPrint [13:07:14]line [13:07:14]line [13:07:14]line [13:07:14]line [13:07:14]line [13:07:14]written 0, free lines is 3290 [13:07:14]MH_Cut [13:07:14]Write to MH i2c: D1 01 00 8E 09 01 69 [13:07:14]Write i2c OK [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: D1 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: D1 01 00 [13:07:14]MH_I2C_Read... [13:07:14]Read from MH i2c: D1 01 00 8E 09 00 68 [13:07:14]Write to MH i2c: 01 00 00 8F 09 98 [13:07:14]Write i2c OK [13:07:14]MH_I2C_Read... [13:07:15]OFD Sender: No OFD packet to send [13:07:15]*** Cut start [13:07:15]*** Partial cut [13:07:15]*** CUTSNS_PIN = 1 [13:07:15]*** CUTSNS_PIN = 0 [13:07:15]*** Brake cut motor [13:07:15]Read from MH i2c: 01 [13:07:15]MH_I2C_Read... [13:07:15]*** Stop cut motor [13:07:15]*** Cut end [13:07:15]Read from MH i2c: 01 07 00 [13:07:15]MH_I2C_Read... [13:07:15]Read from MH i2c: 01 07 00 8F 09 00 00 00 00 00 FF 0F AD [13:07:15]process_action close_receipt done [13:07:15]requested_data is exist [13:07:15]produce_requested_data [13:07:15]requested_item fm.sn is exist - process it [13:07:15]wFMCommunicate request_size=4 [13:07:15]MH_SAM_APDU [13:07:15]CAPDU: 80 11 00 00 [13:07:15]Write to MH i2c: E2 08 00 90 09 80 11 00 00 00 00 00 00 13 [13:07:15]Write i2c OK [13:07:15]MH_I2C_Read... [13:07:15]Read from MH i2c: E2 [13:07:15]MH_I2C_Read... [13:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:15]Read from MH i2c: E2 17 00 [13:07:15]MH_I2C_Read... [13:07:15]Read from MH i2c: E2 17 00 90 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [13:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:07:16]wFMCommunicate OK [13:07:16]requested_item fd.num is exist - process it [13:07:16]SAM_PROTO_GetFieldsCounters [13:07:16]wFMCommunicate request_size=4 [13:07:16]MH_SAM_APDU [13:07:16]CAPDU: 80 13 00 00 [13:07:16]Write to MH i2c: E2 08 00 91 09 80 13 00 00 00 00 00 00 16 [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:16]Read from MH i2c: E2 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 62 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 62 00 91 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [13:07:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:16]wFMCommunicate OK [13:07:16]SAM_PROTO_GetFieldsCounters done [13:07:16]requested_item shift.num is exist - process it [13:07:16]requested_item shift.opened is exist - process it [13:07:16]req_shift_opened [13:07:16]FM_GetShiftState [13:07:16]SAM_PROTO_GetShiftState [13:07:16]wFMCommunicate request_size=4 [13:07:16]MH_SAM_APDU [13:07:16]CAPDU: 80 13 01 00 [13:07:16]Write to MH i2c: E2 08 00 92 09 80 13 01 00 00 00 00 00 18 [13:07:16]Write i2c OK [13:07:16]MH_I2C_Read... [13:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:16]Read from MH i2c: E2 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 0E 00 [13:07:16]MH_I2C_Read... [13:07:16]Read from MH i2c: E2 0E 00 92 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A9 [13:07:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:07:16]wFMCommunicate OK [13:07:16]SAM_PROTO_GetShiftState done [13:07:16]FM_GetShiftState done [13:07:16]req_shift_opened done [13:07:16]requested_item shift.open_date is exist - process it [13:07:16]req_shift_open_date [13:07:16]req_shift_open_date done [13:07:16]produce_requested_data done [13:07:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139704,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:07:16]process_action_free close_receipt [13:07:16]json_value_free [13:07:16]json_value_free done [13:07:16]process_json_proto returns [13:07:16]Send response to host [13:07:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139704,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:07:16]free response buf [13:07:16]execute_script done [13:07:16]execute_script returns [13:07:16]free content buf [13:07:16]Sock 10.Close socket [13:07:16]Sock 10.Thread stoped [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:47]accept exits with 8 [13:08:47]New connection [13:08:47]New thread 3067288932 created [13:08:47]Thread 3067145572 joined [13:08:47]Waiting for new connection... [13:08:47] Sock 8.Parse request [13:08:47]Sock 8.Check first char [13:08:47]Sock 8.First char is OK [13:08:47]request: POST /json_proto HTTP/1.0 [13:08:47]Method: POST [13:08:47]URL: /json_proto [13:08:47]Method is POST - this is cgi request [13:08:47]url: /json_proto [13:08:47]query_string will be loaded in cgi processing [13:08:47]execute_cgi json_proto POST (null) [13:08:47]execute_cgi path=json_proto method=POST [13:08:47]POST find Content-Length [13:08:47]Host: 172.17.45.67:8080 [13:08:47]Content-Length: 677 [13:08:47]Content-Type: application/json [13:08:47] [13:08:47]POST finish read [13:08:47]Found Content-Length = 677 [13:08:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:47]execute_script... [13:08: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)593553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:47]POST & json_proto [13:08:47]process_json_proto [13:08:47]json parsed OK: [13:08:47]protocol is kg_v1.0 [13:08:47]action value=close_receipt [13:08:47]process_action close_receipt [13:08:47]cmd_close_receipt [13:08:47]MH_GetDate [13:08:47]Write to MH i2c: F0 00 00 93 09 8B [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: F0 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: F0 09 00 [13:08:47]MH_I2C_Read... [13:08:47]Read from MH i2c: F0 09 00 93 09 00 60 95 C4 66 5F 7F 2B 66 22 [13:08:47]GetLastDocTimeStamp 1724159232 [13:08:47]current date 1724159328 [13:08:47]FM_GetShiftState [13:08:47]SAM_PROTO_GetShiftState [13:08:47]wFMCommunicate request_size=4 [13:08:47]MH_SAM_APDU [13:08:47]CAPDU: 80 13 01 00 [13:08:47]Write to MH i2c: E2 08 00 94 09 80 13 01 00 00 00 00 00 1A [13:08:47]Write i2c OK [13:08:47]MH_I2C_Read... [13:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:48]Read from MH i2c: E2 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 0E 00 [13:08:48]MH_I2C_Read... [13:08:48]Read from MH i2c: E2 0E 00 94 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AB [13:08:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:08:48]wFMCommunicate OK [13:08:48]SAM_PROTO_GetShiftState done [13:08:48]FM_GetShiftState done [13:08:48]opened in 1724113785 [13:08:48]opened+sec_in_day 1724200185 [13:08:48]quantity*price = 60003 [13:08:48]sum+1 = 60004 [13:08:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 177 20.08.2024 13:08 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139705 ФПД: 80660715703975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130848&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139705&fm=80660715703975&tin=02508201610067®Number=0000000000092569&sum=60000 [13:08:49]StoreToDocumentArchive [13:08:49]shift 453 fd 139705 [13:08:49]save to /storage/0453/doc_00139705 [13:08:49]save last doc name /storage/0453/doc_00139705 to /storage/kkm_last_doc_name [13:08:49]save OK [13:08:49]Clear old archive folders... [13:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:49]tlvbuf is 01FF10E0 [13:08:49]SAM_PROTO_ClearQueue [13:08:49]wFMCommunicate request_size=4 [13:08:49]MH_SAM_APDU [13:08:49]CAPDU: 80 09 00 00 [13:08:49]Write to MH i2c: E2 08 00 A1 09 80 09 00 00 00 00 00 00 1C [13:08:49]Write i2c OK [13:08:49]MH_I2C_Read... [13:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:49]Read from MH i2c: E2 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 03 00 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 03 00 A1 09 00 90 00 1E [13:08:49]RAPDU: 90 00 [13:08:49]wFMCommunicate OK [13:08:49]SAM_PROTO_ClearQueue done [13:08:49]KKMCreateOFDPacket [13:08:49]OFDProtocolAddRootSTLVToBuf [13:08:49]FM_MakeSignedData [13:08:49]FM_MakeSignedData [13:08:49]SAM_PROTO_SignData [13:08:49]wFMCommunicate request_size=4 [13:08:49]MH_SAM_APDU [13:08:49]CAPDU: 80 0D 01 02 [13:08:49]Write to MH i2c: E2 08 00 A2 09 80 0D 01 02 00 00 00 00 24 [13:08:49]Write i2c OK [13:08:49]MH_I2C_Read... [13:08:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:49]Read from MH i2c: E2 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 03 00 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 03 00 A2 09 00 90 00 1F [13:08:49]RAPDU: 90 00 [13:08:49]wFMCommunicate OK [13:08:49]wFMCommunicate request_size=255 [13:08:49]MH_SAM_APDU [13:08:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 60 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 21 02 00 35 04 06 00 49 [13:08:49]Write to MH i2c: E2 02 01 A3 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 60 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 21 02 00 35 04 06 00 49 00 00 2F [13:08:49]Write i2c OK [13:08:49]MH_I2C_Read... [13:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:49]Read from MH i2c: E2 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 03 00 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 03 00 A3 09 00 90 00 20 [13:08:49]RAPDU: 90 00 [13:08:49]wFMCommunicate OK [13:08:49]wFMCommunicate request_size=10 [13:08:49]MH_SAM_APDU [13:08:49]CAPDU: 80 0D 02 02 05 5C 49 4E 8E A7 [13:08:49]Write to MH i2c: E2 0D 00 A4 09 80 0D 02 02 05 00 5C 49 4E 8E A7 00 00 59 [13:08:49]Write i2c OK [13:08:49]MH_I2C_Read... [13:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:49]Read from MH i2c: E2 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 03 00 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [13:08:49]RAPDU: 90 00 [13:08:49]wFMCommunicate OK [13:08:49]wFMCommunicate request_size=4 [13:08:49]MH_SAM_APDU [13:08:49]CAPDU: 80 0D 03 02 [13:08:49]Write to MH i2c: E2 08 00 A5 09 80 0D 03 02 00 00 00 00 29 [13:08:49]Write i2c OK [13:08:49]MH_I2C_Read... [13:08:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:49]Read from MH i2c: E2 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 0B 00 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 0B 00 A5 09 00 C1 96 94 ED AF F3 50 99 90 00 8D [13:08:49]RAPDU: C1 96 94 ED AF F3 50 99 90 00 [13:08:49]wFMCommunicate OK [13:08:49]SAM_PROTO_SignData done [13:08:49]FM_MakeSignedData done [13:08:49]CreateOFDProtocolMessage [13:08:49]wFMCommunicate request_size=4 [13:08:49]MH_SAM_APDU [13:08:49]CAPDU: 80 11 00 00 [13:08:49]Write to MH i2c: E2 08 00 A6 09 80 11 00 00 00 00 00 00 29 [13:08:49]Write i2c OK [13:08:49]MH_I2C_Read... [13:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:49]Read from MH i2c: E2 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 17 00 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: E2 17 00 A6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [13:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:08:49]wFMCommunicate OK [13:08:49]CreateOFDProtocolMessage done [13:08:49]OFDSenderStorePacket 139705 [13:08:49]StoreOFDPacket docnum=139705 [13:08:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C8 1D 07 01 28 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 60 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 21 02 00 35 04 06 00 49 5C 49 4E 8E A7 C1 96 94 ED AF F3 50 99 [13:08:49]CheckFolder [13:08:49]dirname=/storage/ofd_packets [13:08:49]CheckFolder done [13:08:49]ProducePacketName [13:08:49]name=ofd_packets/00139705 [13:08:49]NVStorageSaveData ofd_packets/00139705 [13:08:49]File name is /storage/ofd_packets/00139705 [13:08:49]Write 301 bytes [13:08:49]NVStorageSaveData done [13:08:49]OFDSenderStorePacket done [13:08:49]KKMCreateOFDPacket done [13:08:49]NVStorageSaveData kkm_last_timestamp [13:08:49]File name is /storage/kkm_last_timestamp [13:08:49]Write 4 bytes [13:08:49]NVStorageSaveData done [13:08:49]OFD Sender: Processing packet 139705 [packets to send 137, broken 136] [13:08:49]ProducePacketName [13:08:49]name=ofd_packets/00139705 [13:08:49]OFD Sender: To server: pG, [13:08:49]CommunicateWithHost lk.salyk.kg:30040 [13:08:49]ConnectInit lk.salyk.kg [13:08:49]ExternCall_PrintAddStr [13:08:49]wPrintStart [13:08:49]Write to MH i2c: 01 00 00 A7 09 B0 [13:08:49]Write i2c OK [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: 01 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: 01 07 00 [13:08:49]MH_I2C_Read... [13:08:49]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [13:08:49]RasterBufferAndPrint [13:08:49]line Счет N : (1)593553 [13:08:49]line ИНН: 02508201610067 [13:08:49]line Контрольно-Кассовый Чек [13:08:49]line ПРОДАЖА [13:08:49]line ТРК (МРК, ГНК) : 32 [13:08:49]line Товар: 2710124130 [13:08:49]line Аи-92-К-5 [13:08:49]line 8.850 * 67.80 [13:08:49]line = 600.03 [13:08:49]line НДС 12% НСП 1% [13:08:49]line > о реализуемом товаре [13:08:49]line ОКРУГЛЕНИЕ: -0.03 [13:08:49]line ИТОГО: 600.00 [13:08:49]line Внесено: 600.00 [13:08:49]line СДАЧА: 0.00 [13:08:49]line НСП 1% : 5.31 [13:08:49]line НДС 12% : 63.72 [13:08:49]line Наличными: 600.00 [13:08:49]line Безнал.: 0.00 [13:08:49]line Место: АЗС № 136 "Партнер Нефть" [13:08:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:08:49]line СНО: Общий режим [13:08:49]line Чек 177 20.08.2024 13:08 [13:08:49]line Смена: 453 ФФД: 1.0 [13:08:49]line ЗНМ: 0300000067 [13:08:49]line РНМ: 0000000000092569 [13:08:49]line Версия ККМ: 001 [13:08:49]line ФМ: 0000000000871776 [13:08:49]line ФД: 139705 [13:08:49]line ФПД: 80660715703975 [13:08:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130848&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139705&fm=80660715703975&tin=02508201610067®Number=0000000000092569&sum=60000 [13:08:50]Connected sock=11 [13:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C8 1D 07 01 28 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 60 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 21 02 00 35 04 06 00 49 5C 49 4E 8E A7 C1 96 94 ED AF F3 50 99 [13:08:50]written 0, free lines is 4095 [13:08:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E4 A1 47 00 A7 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 21 02 00 F4 03 04 00 F3 3B C4 66 B6 04 01 00 00 8D C3 6D 14 15 0C 7B E4 [13:08:50]CommunicateWithHost err = 0 [13:08:50]CheckOFDResponse [13:08:50]1017 (14) - 77093643461234 [13:08:50]1041 (16) - 0000000000871776 [13:08:50]1040 (4) - 139705 [13:08:50]1012 (4) - 20.08.2024 06:47 [13:08:50]1206 (1) - 0 [13:08:50]OFD Sender: Remove packet 139705 [13:08:50]ProducePacketName [13:08:50]name=ofd_packets/00139705 [13:08:50]NVStorageDeleteData [13:08:50]Write to MH i2c: 01 00 00 D2 09 DB [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: 01 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: 01 07 00 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: 01 07 00 D2 09 00 00 00 00 00 BF 0C AD [13:08:50]RasterBufferAndPrint [13:08:50]line [13:08:50]line [13:08:50]line [13:08:50]line [13:08:50]line [13:08:50]written 0, free lines is 3269 [13:08:50]MH_Cut [13:08:50]Write to MH i2c: D1 01 00 D9 09 01 B4 [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: D1 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: D1 01 00 [13:08:50]MH_I2C_Read... [13:08:50]Read from MH i2c: D1 01 00 D9 09 00 B3 [13:08:50]Write to MH i2c: 01 00 00 DA 09 E3 [13:08:50]Write i2c OK [13:08:50]MH_I2C_Read... [13:08:50]OFD Sender: No OFD packet to send [13:08:51]*** Cut start [13:08:51]*** Partial cut [13:08:51]*** CUTSNS_PIN = 1 [13:08:51]*** CUTSNS_PIN = 0 [13:08:51]*** Brake cut motor [13:08:51]Read from MH i2c: 01 [13:08:51]MH_I2C_Read... [13:08:51]*** Stop cut motor [13:08:51]*** Cut end [13:08:51]Read from MH i2c: 01 07 00 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: 01 07 00 DA 09 00 00 00 00 00 FF 0F F8 [13:08:51]process_action close_receipt done [13:08:51]requested_data is exist [13:08:51]produce_requested_data [13:08:51]requested_item fm.sn is exist - process it [13:08:51]wFMCommunicate request_size=4 [13:08:51]MH_SAM_APDU [13:08:51]CAPDU: 80 11 00 00 [13:08:51]Write to MH i2c: E2 08 00 DB 09 80 11 00 00 00 00 00 00 5E [13:08:51]Write i2c OK [13:08:51]MH_I2C_Read... [13:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:51]Read from MH i2c: E2 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: E2 17 00 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: E2 17 00 DB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [13:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:08:51]wFMCommunicate OK [13:08:51]requested_item fd.num is exist - process it [13:08:51]SAM_PROTO_GetFieldsCounters [13:08:51]wFMCommunicate request_size=4 [13:08:51]MH_SAM_APDU [13:08:51]CAPDU: 80 13 00 00 [13:08:51]Write to MH i2c: E2 08 00 DC 09 80 13 00 00 00 00 00 00 61 [13:08:51]Write i2c OK [13:08:51]MH_I2C_Read... [13:08:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:51]Read from MH i2c: E2 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: E2 62 00 [13:08:51]MH_I2C_Read... [13:08:51]Read from MH i2c: E2 62 00 DC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [13:08:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:51]wFMCommunicate OK [13:08:51]SAM_PROTO_GetFieldsCounters done [13:08:51]requested_item shift.num is exist - process it [13:08:51]requested_item shift.opened is exist - process it [13:08:51]req_shift_opened [13:08:51]FM_GetShiftState [13:08:51]SAM_PROTO_GetShiftState [13:08:51]wFMCommunicate request_size=4 [13:08:51]MH_SAM_APDU [13:08:51]CAPDU: 80 13 01 00 [13:08:51]Write to MH i2c: E2 08 00 DD 09 80 13 01 00 00 00 00 00 63 [13:08:52]Write i2c OK [13:08:52]MH_I2C_Read... [13:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:52]Read from MH i2c: E2 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: E2 0E 00 [13:08:52]MH_I2C_Read... [13:08:52]Read from MH i2c: E2 0E 00 DD 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F4 [13:08:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:08:52]wFMCommunicate OK [13:08:52]SAM_PROTO_GetShiftState done [13:08:52]FM_GetShiftState done [13:08:52]req_shift_opened done [13:08:52]requested_item shift.open_date is exist - process it [13:08:52]req_shift_open_date [13:08:52]req_shift_open_date done [13:08:52]produce_requested_data done [13:08:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139705,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:08:52]process_action_free close_receipt [13:08:52]json_value_free [13:08:52]json_value_free done [13:08:52]process_json_proto returns [13:08:52]Send response to host [13:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139705,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:08:52]free response buf [13:08:52]execute_script done [13:08:52]execute_script returns [13:08:52]free content buf [13:08:52]Sock 8.Close socket [13:08:52]Sock 8.Thread stoped [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:32]accept exits with 9 [13:09:32]New connection [13:09:32]New thread 3067145572 created [13:09:32]Thread 3067288932 joined [13:09:32]Waiting for new connection... [13:09:32] Sock 9.Parse request [13:09:32]Sock 9.Check first char [13:09:32]Sock 9.First char is OK [13:09:32]request: POST /json_proto HTTP/1.0 [13:09:32]Method: POST [13:09:32]URL: /json_proto [13:09:32]Method is POST - this is cgi request [13:09:32]url: /json_proto [13:09:32]query_string will be loaded in cgi processing [13:09:32]execute_cgi json_proto POST (null) [13:09:32]execute_cgi path=json_proto method=POST [13:09:32]POST find Content-Length [13:09:32]Host: 172.17.45.67:8080 [13:09:32]Content-Length: 682 [13:09:32]Content-Type: application/json [13:09:32] [13:09:32]POST finish read [13:09:32]Found Content-Length = 682 [13:09:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:32]execute_script... [13:09: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)593552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:32]POST & json_proto [13:09:32]process_json_proto [13:09:32]json parsed OK: [13:09:32]protocol is kg_v1.0 [13:09:32]action value=close_receipt [13:09:32]process_action close_receipt [13:09:32]cmd_close_receipt [13:09:32]MH_GetDate [13:09:32]Write to MH i2c: F0 00 00 DE 09 D6 [13:09:32]Write i2c OK [13:09:32]MH_I2C_Read... [13:09:32]Read from MH i2c: F0 [13:09:32]MH_I2C_Read... [13:09:32]Read from MH i2c: F0 09 00 [13:09:32]MH_I2C_Read... [13:09:32]Read from MH i2c: F0 09 00 DE 09 00 8D 95 C4 66 5F 7F 2B 66 9A [13:09:32]GetLastDocTimeStamp 1724159328 [13:09:32]current date 1724159373 [13:09:32]FM_GetShiftState [13:09:32]SAM_PROTO_GetShiftState [13:09:32]wFMCommunicate request_size=4 [13:09:32]MH_SAM_APDU [13:09:32]CAPDU: 80 13 01 00 [13:09:32]Write to MH i2c: E2 08 00 DF 09 80 13 01 00 00 00 00 00 65 [13:09:32]Write i2c OK [13:09:32]MH_I2C_Read... [13:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:32]Read from MH i2c: E2 [13:09:32]MH_I2C_Read... [13:09:32]Read from MH i2c: E2 0E 00 [13:09:32]MH_I2C_Read... [13:09:32]Read from MH i2c: E2 0E 00 DF 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F6 [13:09:32]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:09:32]wFMCommunicate OK [13:09:32]SAM_PROTO_GetShiftState done [13:09:32]FM_GetShiftState done [13:09:32]opened in 1724113785 [13:09:32]opened+sec_in_day 1724200185 [13:09:32]quantity*price = 200043 [13:09:32]sum+1 = 200044 [13:09:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 178 20.08.2024 13:09 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139706 ФПД: 213222680044826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130933&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139706&fm=213222680044826&tin=02508201610067®Number=0000000000092569&sum=200000 [13:09:34]StoreToDocumentArchive [13:09:34]shift 453 fd 139706 [13:09:34]save to /storage/0453/doc_00139706 [13:09:34]save last doc name /storage/0453/doc_00139706 to /storage/kkm_last_doc_name [13:09:34]save OK [13:09:34]Clear old archive folders... [13:09:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:34]tlvbuf is 02013820 [13:09:34]SAM_PROTO_ClearQueue [13:09:34]wFMCommunicate request_size=4 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 09 00 00 [13:09:34]Write to MH i2c: E2 08 00 EC 09 80 09 00 00 00 00 00 00 67 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 EC 09 00 90 00 69 [13:09:34]RAPDU: 90 00 [13:09:34]wFMCommunicate OK [13:09:34]SAM_PROTO_ClearQueue done [13:09:34]KKMCreateOFDPacket [13:09:34]OFDProtocolAddRootSTLVToBuf [13:09:34]FM_MakeSignedData [13:09:34]FM_MakeSignedData [13:09:34]SAM_PROTO_SignData [13:09:34]wFMCommunicate request_size=4 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 0D 01 02 [13:09:34]Write to MH i2c: E2 08 00 ED 09 80 0D 01 02 00 00 00 00 6F [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 ED 09 00 90 00 6A [13:09:34]RAPDU: 90 00 [13:09:34]wFMCommunicate OK [13:09:34]wFMCommunicate request_size=255 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 F4 03 04 00 8D 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 21 02 00 35 04 06 00 C1 [13:09:34]Write to MH i2c: E2 02 01 EE 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 F4 03 04 00 8D 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 21 02 00 35 04 06 00 C1 00 00 12 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 EE 09 00 90 00 6B [13:09:34]RAPDU: 90 00 [13:09:34]wFMCommunicate OK [13:09:34]wFMCommunicate request_size=10 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 0D 02 02 05 EC C6 1A 25 1A [13:09:34]Write to MH i2c: E2 0D 00 EF 09 80 0D 02 02 05 00 EC C6 1A 25 1A 00 00 87 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 EF 09 00 90 00 6C [13:09:34]RAPDU: 90 00 [13:09:34]wFMCommunicate OK [13:09:34]wFMCommunicate request_size=4 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 0D 03 02 [13:09:34]Write to MH i2c: E2 08 00 F0 09 80 0D 03 02 00 00 00 00 74 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 0B 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 0B 00 F0 09 00 BB 4F 10 19 61 57 27 0D 90 00 94 [13:09:34]RAPDU: BB 4F 10 19 61 57 27 0D 90 00 [13:09:34]wFMCommunicate OK [13:09:34]SAM_PROTO_SignData done [13:09:34]FM_MakeSignedData done [13:09:34]CreateOFDProtocolMessage [13:09:34]wFMCommunicate request_size=4 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 11 00 00 [13:09:34]Write to MH i2c: E2 08 00 F1 09 80 11 00 00 00 00 00 00 74 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 17 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 17 00 F1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [13:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:09:34]wFMCommunicate OK [13:09:34]CreateOFDProtocolMessage done [13:09:34]OFDSenderStorePacket 139706 [13:09:34]StoreOFDPacket docnum=139706 [13:09:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 8E 07 01 A4 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 F4 03 04 00 8D 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 21 02 00 35 04 06 00 C1 EC C6 1A 25 1A BB 4F 10 19 61 57 27 0D [13:09:34]CheckFolder [13:09:34]dirname=/storage/ofd_packets [13:09:34]CheckFolder done [13:09:34]ProducePacketName [13:09:34]name=ofd_packets/00139706 [13:09:34]NVStorageSaveData ofd_packets/00139706 [13:09:34]File name is /storage/ofd_packets/00139706 [13:09:34]Write 301 bytes [13:09:34]NVStorageSaveData done [13:09:34]OFDSenderStorePacket done [13:09:34]KKMCreateOFDPacket done [13:09:34]NVStorageSaveData kkm_last_timestamp [13:09:34]File name is /storage/kkm_last_timestamp [13:09:34]Write 4 bytes [13:09:34]NVStorageSaveData done [13:09:34]ExternCall_PrintAddStr [13:09:34]wPrintStart [13:09:34]Write to MH i2c: 01 00 00 F2 09 FB [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: 01 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: 01 07 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: 01 07 00 F2 09 00 00 00 00 00 FF 0F 10 [13:09:34]RasterBufferAndPrint [13:09:34]line Счет N : (1)593552 [13:09:34]line ИНН: 02508201610067 [13:09:34]line Контрольно-Кассовый Чек [13:09:34]line ПРОДАЖА [13:09:34]line ТРК (МРК, ГНК) : 61 [13:09:34]line Товар: 2710124500 [13:09:34]line Аи-95-К-5 [13:09:34]line 26.960 * 74.20 [13:09:34]line = 2000.43 [13:09:34]line НДС 12% НСП 1% [13:09:34]line > о реализуемом товаре [13:09:34]line ОКРУГЛЕНИЕ: -0.43 [13:09:34]line ИТОГО: 2000.00 [13:09:34]line Внесено: 2000.00 [13:09:34]line СДАЧА: 0.00 [13:09:34]line НСП 1% : 17.70 [13:09:34]line НДС 12% : 212.43 [13:09:34]line Наличными: 2000.00 [13:09:34]line Безнал.: 0.00 [13:09:34]line Место: АЗС № 136 "Партнер Нефть" [13:09:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:09:34]line СНО: Общий режим [13:09:34]line Чек 178 20.08.2024 13:09 [13:09:34]line Смена: 453 ФФД: 1.0 [13:09:34]line ЗНМ: 0300000067 [13:09:34]line РНМ: 0000000000092569 [13:09:34]line Версия ККМ: 001 [13:09:34]line ФМ: 0000000000871776 [13:09:34]line ФД: 139706 [13:09:34]line ФПД: 213222680044826 [13:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130933&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139706&fm=213222680044826&tin=02508201610067®Number=0000000000092569&sum=200000 [13:09:34]OFD Sender: Processing packet 139706 [packets to send 137, broken 136] [13:09:34]ProducePacketName [13:09:34]name=ofd_packets/00139706 [13:09:34]OFD Sender: To server: pG, [13:09:34]CommunicateWithHost lk.salyk.kg:30040 [13:09:34]ConnectInit lk.salyk.kg [13:09:34]written 0, free lines is 4095 [13:09:35]Connected sock=10 [13:09:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 8E 07 01 A4 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 F4 03 04 00 8D 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 21 02 00 35 04 06 00 C1 EC C6 1A 25 1A BB 4F 10 19 61 57 27 0D [13:09:35]Write to MH i2c: 01 00 00 1D 0A 27 [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: 01 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: 01 07 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: 01 07 00 1D 0A 00 00 00 00 00 CF 0C 09 [13:09:35]RasterBufferAndPrint [13:09:35]line [13:09:35]line [13:09:35]line [13:09:35]line [13:09:35]line [13:09:35]written 0, free lines is 3285 [13:09:35]MH_Cut [13:09:35]Write to MH i2c: D1 01 00 24 0A 01 00 [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: D1 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: D1 01 00 [13:09:35]MH_I2C_Read... [13:09:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7E D5 47 00 76 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 21 02 00 F4 03 04 00 20 3C C4 66 B6 04 01 00 00 59 02 7C 98 20 B0 09 18 [13:09:35]CommunicateWithHost err = 0 [13:09:35]CheckOFDResponse [13:09:35]1017 (14) - 77093643461234 [13:09:35]1041 (16) - 0000000000871776 [13:09:35]1040 (4) - 139706 [13:09:35]1012 (4) - 20.08.2024 06:48 [13:09:35]1206 (1) - 0 [13:09:35]OFD Sender: Remove packet 139706 [13:09:35]ProducePacketName [13:09:35]name=ofd_packets/00139706 [13:09:35]NVStorageDeleteData [13:09:35]Read from MH i2c: D1 01 00 24 0A 00 FF [13:09:35]Write to MH i2c: 01 00 00 25 0A 2F [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]OFD Sender: No OFD packet to send [13:09:36]*** Cut start [13:09:36]*** Partial cut [13:09:36]*** CUTSNS_PIN = 1 [13:09:36]*** CUTSNS_PIN = 0 [13:09:36]*** Brake cut motor [13:09:36]Read from MH i2c: 01 [13:09:36]MH_I2C_Read... [13:09:36]*** Stop cut motor [13:09:36]*** Cut end [13:09:36]Read from MH i2c: 01 07 00 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: 01 07 00 25 0A 00 00 00 00 00 FF 0F 44 [13:09:36]process_action close_receipt done [13:09:36]requested_data is exist [13:09:36]produce_requested_data [13:09:36]requested_item fm.sn is exist - process it [13:09:36]wFMCommunicate request_size=4 [13:09:36]MH_SAM_APDU [13:09:36]CAPDU: 80 11 00 00 [13:09:36]Write to MH i2c: E2 08 00 26 0A 80 11 00 00 00 00 00 00 AA [13:09:36]Write i2c OK [13:09:36]MH_I2C_Read... [13:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:36]Read from MH i2c: E2 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: E2 17 00 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: E2 17 00 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [13:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:09:36]wFMCommunicate OK [13:09:36]requested_item fd.num is exist - process it [13:09:36]SAM_PROTO_GetFieldsCounters [13:09:36]wFMCommunicate request_size=4 [13:09:36]MH_SAM_APDU [13:09:36]CAPDU: 80 13 00 00 [13:09:36]Write to MH i2c: E2 08 00 27 0A 80 13 00 00 00 00 00 00 AD [13:09:36]Write i2c OK [13:09:36]MH_I2C_Read... [13:09:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:36]Read from MH i2c: E2 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: E2 62 00 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: E2 62 00 27 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [13:09:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:36]wFMCommunicate OK [13:09:36]SAM_PROTO_GetFieldsCounters done [13:09:36]requested_item shift.num is exist - process it [13:09:36]requested_item shift.opened is exist - process it [13:09:36]req_shift_opened [13:09:36]FM_GetShiftState [13:09:36]SAM_PROTO_GetShiftState [13:09:36]wFMCommunicate request_size=4 [13:09:36]MH_SAM_APDU [13:09:36]CAPDU: 80 13 01 00 [13:09:36]Write to MH i2c: E2 08 00 28 0A 80 13 01 00 00 00 00 00 AF [13:09:36]Write i2c OK [13:09:36]MH_I2C_Read... [13:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:36]Read from MH i2c: E2 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: E2 0E 00 [13:09:36]MH_I2C_Read... [13:09:36]Read from MH i2c: E2 0E 00 28 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 40 [13:09:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:09:36]wFMCommunicate OK [13:09:36]SAM_PROTO_GetShiftState done [13:09:36]FM_GetShiftState done [13:09:36]req_shift_opened done [13:09:36]requested_item shift.open_date is exist - process it [13:09:36]req_shift_open_date [13:09:36]req_shift_open_date done [13:09:36]produce_requested_data done [13:09:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139706,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:09:36]process_action_free close_receipt [13:09:36]json_value_free [13:09:36]json_value_free done [13:09:36]process_json_proto returns [13:09:36]Send response to host [13:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139706,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:09:36]free response buf [13:09:36]execute_script done [13:09:36]execute_script returns [13:09:36]free content buf [13:09:36]Sock 9.Close socket [13:09:36]Sock 9.Thread stoped [13:09:37]accept exits with 8 [13:09:37]New connection [13:09:37]New thread 3067288932 created [13:09:37]Thread 3067145572 joined [13:09:37]Waiting for new connection... [13:09:37] Sock 8.Parse request [13:09:37]Sock 8.Check first char [13:09:37]Sock 8.First char is OK [13:09:37]request: POST /json_proto HTTP/1.0 [13:09:37]Method: POST [13:09:37]URL: /json_proto [13:09:37]Method is POST - this is cgi request [13:09:37]url: /json_proto [13:09:37]query_string will be loaded in cgi processing [13:09:37]execute_cgi json_proto POST (null) [13:09:37]execute_cgi path=json_proto method=POST [13:09:37]POST find Content-Length [13:09:37]Host: 172.17.45.67:8080 [13:09:37]Content-Length: 682 [13:09:37]Content-Type: application/json [13:09:37] [13:09:37]POST finish read [13:09:37]Found Content-Length = 682 [13:09:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:37]execute_script... [13:09:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:37]POST & json_proto [13:09:37]process_json_proto [13:09:37]json parsed OK: [13:09:37]protocol is kg_v1.0 [13:09:37]action value=close_receipt [13:09:37]process_action close_receipt [13:09:37]cmd_close_receipt [13:09:37]MH_GetDate [13:09:37]Write to MH i2c: F0 00 00 29 0A 22 [13:09:37]Write i2c OK [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: F0 [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: F0 09 00 [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: F0 09 00 29 0A 00 92 95 C4 66 5F 7F 2B 66 EB [13:09:37]GetLastDocTimeStamp 1724159373 [13:09:37]current date 1724159378 [13:09:37]FM_GetShiftState [13:09:37]SAM_PROTO_GetShiftState [13:09:37]wFMCommunicate request_size=4 [13:09:37]MH_SAM_APDU [13:09:37]CAPDU: 80 13 01 00 [13:09:37]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [13:09:37]Write i2c OK [13:09:37]MH_I2C_Read... [13:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:37]Read from MH i2c: E2 [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: E2 0E 00 [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 42 [13:09:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:09:37]wFMCommunicate OK [13:09:37]SAM_PROTO_GetShiftState done [13:09:37]FM_GetShiftState done [13:09:37]opened in 1724113785 [13:09:37]opened+sec_in_day 1724200185 [13:09:37]quantity*price = 100005 [13:09:37]sum+1 = 100006 [13:09:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 179 20.08.2024 13:09 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139707 ФПД: 146000698292734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130938&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139707&fm=146000698292734&tin=02508201610067®Number=0000000000092569&sum=100000 [13:09:39]StoreToDocumentArchive [13:09:39]shift 453 fd 139707 [13:09:39]save to /storage/0453/doc_00139707 [13:09:39]save last doc name /storage/0453/doc_00139707 to /storage/kkm_last_doc_name [13:09:39]save OK [13:09:39]Clear old archive folders... [13:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:39]tlvbuf is 02010670 [13:09:39]SAM_PROTO_ClearQueue [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 09 00 00 [13:09:39]Write to MH i2c: E2 08 00 37 0A 80 09 00 00 00 00 00 00 B3 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 37 0A 00 90 00 B5 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]SAM_PROTO_ClearQueue done [13:09:39]KKMCreateOFDPacket [13:09:39]OFDProtocolAddRootSTLVToBuf [13:09:39]FM_MakeSignedData [13:09:39]FM_MakeSignedData [13:09:39]SAM_PROTO_SignData [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 01 02 [13:09:39]Write to MH i2c: E2 08 00 38 0A 80 0D 01 02 00 00 00 00 BB [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 38 0A 00 90 00 B6 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=255 [13:09:39]MH_SAM_APDU [13: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 92 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 21 02 00 35 04 06 00 84 [13:09:39]Write to MH i2c: E2 02 01 39 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 92 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 21 02 00 35 04 06 00 84 00 00 FF [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=10 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 02 02 05 C9 6F C2 39 FE [13:09:39]Write to MH i2c: E2 0D 00 3A 0A 80 0D 02 02 05 00 C9 6F C2 39 FE 00 00 F9 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 03 02 [13:09:39]Write to MH i2c: E2 08 00 3B 0A 80 0D 03 02 00 00 00 00 C0 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 0B 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 0B 00 3B 0A 00 03 37 6D EB 31 59 01 5B 90 00 39 [13:09:39]RAPDU: 03 37 6D EB 31 59 01 5B 90 00 [13:09:39]wFMCommunicate OK [13:09:39]SAM_PROTO_SignData done [13:09:39]FM_MakeSignedData done [13:09:39]CreateOFDProtocolMessage [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 11 00 00 [13:09:39]Write to MH i2c: E2 08 00 3C 0A 80 11 00 00 00 00 00 00 C0 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 17 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 17 00 3C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [13:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:09:39]wFMCommunicate OK [13:09:39]CreateOFDProtocolMessage done [13:09:39]OFDSenderStorePacket 139707 [13:09:39]StoreOFDPacket docnum=139707 [13:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 49 DD 07 01 28 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 92 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 21 02 00 35 04 06 00 84 C9 6F C2 39 FE 03 37 6D EB 31 59 01 5B [13:09:39]CheckFolder [13:09:39]dirname=/storage/ofd_packets [13:09:39]CheckFolder done [13:09:39]ProducePacketName [13:09:39]name=ofd_packets/00139707 [13:09:39]NVStorageSaveData ofd_packets/00139707 [13:09:39]File name is /storage/ofd_packets/00139707 [13:09:39]Write 301 bytes [13:09:39]NVStorageSaveData done [13:09:39]OFDSenderStorePacket done [13:09:39]KKMCreateOFDPacket done [13:09:39]NVStorageSaveData kkm_last_timestamp [13:09:39]File name is /storage/kkm_last_timestamp [13:09:39]Write 4 bytes [13:09:39]NVStorageSaveData done [13:09:39]OFD Sender: Processing packet 139707 [packets to send 137, broken 136] [13:09:39]ProducePacketName [13:09:39]name=ofd_packets/00139707 [13:09:39]OFD Sender: To server: pG, [13:09:39]CommunicateWithHost lk.salyk.kg:30040 [13:09:39]ConnectInit lk.salyk.kg [13:09:39]ExternCall_PrintAddStr [13:09:39]wPrintStart [13:09:39]Write to MH i2c: 01 00 00 3D 0A 47 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: 01 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: 01 07 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: 01 07 00 3D 0A 00 00 00 00 00 FF 0F 5C [13:09:39]RasterBufferAndPrint [13:09:39]line Счет N : (1)593554 [13:09:39]line ИНН: 02508201610067 [13:09:39]line Контрольно-Кассовый Чек [13:09:39]line ПРОДАЖА [13:09:39]line ТРК (МРК, ГНК) : 42 [13:09:39]line Товар: 2710124130 [13:09:39]line Аи-92-К-5 [13:09:39]line 14.750 * 67.80 [13:09:39]line = 1000.05 [13:09:39]line НДС 12% НСП 1% [13:09:39]line > о реализуемом товаре [13:09:39]line ОКРУГЛЕНИЕ: -0.05 [13:09:39]line ИТОГО: 1000.00 [13:09:39]line Внесено: 1000.00 [13:09:39]line СДАЧА: 0.00 [13:09:39]line НСП 1% : 8.85 [13:09:39]line НДС 12% : 106.20 [13:09:39]line Наличными: 1000.00 [13:09:39]line Безнал.: 0.00 [13:09:39]line Место: АЗС № 136 "Партнер Нефть" [13:09:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:09:39]line СНО: Общий режим [13:09:39]line Чек 179 20.08.2024 13:09 [13:09:39]line Смена: 453 ФФД: 1.0 [13:09:39]line ЗНМ: 0300000067 [13:09:39]line РНМ: 0000000000092569 [13:09:39]line Версия ККМ: 001 [13:09:39]line ФМ: 0000000000871776 [13:09:39]line ФД: 139707 [13:09:39]line ФПД: 146000698292734 [13:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T130938&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139707&fm=146000698292734&tin=02508201610067®Number=0000000000092569&sum=100000 [13:09:40]Connected sock=11 [13:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 49 DD 07 01 28 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 92 95 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 21 02 00 35 04 06 00 84 C9 6F C2 39 FE 03 37 6D EB 31 59 01 5B [13:09:40]written 0, free lines is 4095 [13:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 81 89 47 00 AC 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 21 02 00 F4 03 04 00 25 3C C4 66 B6 04 01 00 00 9C 88 CA DA 09 8A C5 43 [13:09:40]CommunicateWithHost err = 0 [13:09:40]CheckOFDResponse [13:09:40]1017 (14) - 77093643461234 [13:09:40]1041 (16) - 0000000000871776 [13:09:40]1040 (4) - 139707 [13:09:40]1012 (4) - 20.08.2024 06:48 [13:09:40]1206 (1) - 0 [13:09:40]OFD Sender: Remove packet 139707 [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00139707 [13:09:40]NVStorageDeleteData [13:09:40]Write to MH i2c: 01 00 00 68 0A 72 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 D9 0C 5E [13:09:40]RasterBufferAndPrint [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]written 0, free lines is 3304 [13:09:40]MH_Cut [13:09:40]Write to MH i2c: D1 01 00 6F 0A 01 4B [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 01 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 01 00 6F 0A 00 4A [13:09:40]Write to MH i2c: 01 00 00 70 0A 7A [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:41]OFD Sender: No OFD packet to send [13:09:41]*** Cut start [13:09:41]*** Partial cut [13:09:41]*** CUTSNS_PIN = 1 [13:09:41]*** CUTSNS_PIN = 0 [13:09:41]*** Brake cut motor [13:09:42]Read from MH i2c: 01 [13:09:42]MH_I2C_Read... [13:09:42]*** Stop cut motor [13:09:42]*** Cut end [13:09:42]Read from MH i2c: 01 07 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: 01 07 00 70 0A 00 00 00 00 00 FF 0F 8F [13:09:42]process_action close_receipt done [13:09:42]requested_data is exist [13:09:42]produce_requested_data [13:09:42]requested_item fm.sn is exist - process it [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 11 00 00 [13:09:42]Write to MH i2c: E2 08 00 71 0A 80 11 00 00 00 00 00 00 F5 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 71 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [13:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:09:42]wFMCommunicate OK [13:09:42]requested_item fd.num is exist - process it [13:09:42]SAM_PROTO_GetFieldsCounters [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 00 00 [13:09:42]Write to MH i2c: E2 08 00 72 0A 80 13 00 00 00 00 00 00 F8 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 72 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [13:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetFieldsCounters done [13:09:42]requested_item shift.num is exist - process it [13:09:42]requested_item shift.opened is exist - process it [13:09:42]req_shift_opened [13:09:42]FM_GetShiftState [13:09:42]SAM_PROTO_GetShiftState [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 01 00 [13:09:42]Write to MH i2c: E2 08 00 73 0A 80 13 01 00 00 00 00 00 FA [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 73 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8B [13:09:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetShiftState done [13:09:42]FM_GetShiftState done [13:09:42]req_shift_opened done [13:09:42]requested_item shift.open_date is exist - process it [13:09:42]req_shift_open_date [13:09:42]req_shift_open_date done [13:09:42]produce_requested_data done [13:09:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139707,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:09:42]process_action_free close_receipt [13:09:42]json_value_free [13:09:42]json_value_free done [13:09:42]process_json_proto returns [13:09:42]Send response to host [13:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139707,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:09:42]free response buf [13:09:42]execute_script done [13:09:42]execute_script returns [13:09:42]free content buf [13:09:42]Sock 8.Close socket [13:09:42]Sock 8.Thread stoped [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:35]int [13:12:35]Write to MH i2c: 01 00 00 74 0A 7E [13:12:35]*** FLAG_PRN_KEY set [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 74 0A 00 08 00 00 00 FF 0F 9B [13:12:35]state=0 [13:12:35]Key pressed [13:12:35]Feed [13:12:35]Write to MH i2c: D8 00 00 75 0A 56 [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: D8 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: D8 01 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: D8 01 00 75 0A 00 57 [13:12:35]int [13:12:35]Write to MH i2c: 01 00 00 76 0A 80 [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 76 0A 00 48 00 00 00 3C 00 0B [13:12:35]state=2 [13:12:35]Key pressed [13:12:35]int [13:12:35]Write to MH i2c: 01 00 00 77 0A 81 [13:12:35]*** FLAG_PRN_KEY reset [13:12:35]Write i2c OK [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 [13:12:35]MH_I2C_Read... [13:12:35]Read from MH i2c: 01 07 00 77 0A 00 00 00 00 00 F5 0F 8C [13:12:35]state=2 [13:12:35]Stop feed [13:12:36]OFD Sender: No OFD packet to send [13:12:37]accept exits with 9 [13:12:37]New connection [13:12:37]New thread 3067145572 created [13:12:37]Thread 3067288932 joined [13:12:37]Waiting for new connection... [13:12:37] Sock 9.Parse request [13:12:37]Sock 9.Check first char [13:12:37]Sock 9.First char is OK [13:12:37]request: POST /json_proto HTTP/1.0 [13:12:37]Method: POST [13:12:37]URL: /json_proto [13:12:37]Method is POST - this is cgi request [13:12:37]url: /json_proto [13:12:37]query_string will be loaded in cgi processing [13:12:37]execute_cgi json_proto POST (null) [13:12:37]execute_cgi path=json_proto method=POST [13:12:37]POST find Content-Length [13:12:37]Host: 172.17.45.67:8080 [13:12:37]Content-Length: 687 [13:12:37]Content-Type: application/json [13:12:37] [13:12:37]POST finish read [13:12:37]Found Content-Length = 687 [13:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [13:12:37]execute_script... [13:12: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)593555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [13:12:37]POST & json_proto [13:12:37]process_json_proto [13:12:37]json parsed OK: [13:12:37]protocol is kg_v1.0 [13:12:37]action value=close_receipt [13:12:37]process_action close_receipt [13:12:37]cmd_close_receipt [13:12:37]MH_GetDate [13:12:37]Write to MH i2c: F0 00 00 78 0A 71 [13:12:37]Write i2c OK [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: F0 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: F0 09 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: F0 09 00 78 0A 00 45 96 C4 66 5F 7F 2B 66 EE [13:12:37]GetLastDocTimeStamp 1724159378 [13:12:37]current date 1724159557 [13:12:37]FM_GetShiftState [13:12:37]SAM_PROTO_GetShiftState [13:12:37]wFMCommunicate request_size=4 [13:12:37]MH_SAM_APDU [13:12:37]CAPDU: 80 13 01 00 [13:12:37]Write to MH i2c: E2 08 00 79 0A 80 13 01 00 00 00 00 00 00 [13:12:37]Write i2c OK [13:12:37]MH_I2C_Read... [13:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:37]Read from MH i2c: E2 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 0E 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 0E 00 79 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 91 [13:12:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:12:37]wFMCommunicate OK [13:12:37]SAM_PROTO_GetShiftState done [13:12:37]FM_GetShiftState done [13:12:37]opened in 1724113785 [13:12:37]opened+sec_in_day 1724200185 [13:12:37]quantity*price = 250012 [13:12:37]sum+1 = 250013 [13:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 180 20.08.2024 13:12 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139708 ФПД: 184250706288235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T131237&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139708&fm=184250706288235&tin=02508201610067®Number=0000000000092569&sum=250000 [13:12:38]StoreToDocumentArchive [13:12:38]shift 453 fd 139708 [13:12:38]save to /storage/0453/doc_00139708 [13:12:38]save last doc name /storage/0453/doc_00139708 to /storage/kkm_last_doc_name [13:12:38]save OK [13:12:38]Clear old archive folders... [13:12:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:12:38]tlvbuf is 0204DAD0 [13:12:38]SAM_PROTO_ClearQueue [13:12:38]wFMCommunicate request_size=4 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 09 00 00 [13:12:38]Write to MH i2c: E2 08 00 86 0A 80 09 00 00 00 00 00 00 02 [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:38]Read from MH i2c: E2 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 86 0A 00 90 00 04 [13:12:38]RAPDU: 90 00 [13:12:38]wFMCommunicate OK [13:12:38]SAM_PROTO_ClearQueue done [13:12:38]KKMCreateOFDPacket [13:12:38]OFDProtocolAddRootSTLVToBuf [13:12:38]FM_MakeSignedData [13:12:38]FM_MakeSignedData [13:12:38]SAM_PROTO_SignData [13:12:38]wFMCommunicate request_size=4 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 0D 01 02 [13:12:38]Write to MH i2c: E2 08 00 87 0A 80 0D 01 02 00 00 00 00 0A [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:38]Read from MH i2c: E2 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 [13:12:38]MH_I2C_Read... [13:12:38]Read from MH i2c: E2 03 00 87 0A 00 90 00 05 [13:12:38]RAPDU: 90 00 [13:12:38]wFMCommunicate OK [13:12:38]wFMCommunicate request_size=255 [13:12:38]MH_SAM_APDU [13:12:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 B4 00 00 00 F4 03 04 00 45 96 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 21 02 00 35 04 06 00 [13:12:38]Write to MH i2c: E2 02 01 88 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 B4 00 00 00 F4 03 04 00 45 96 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 21 02 00 35 04 06 00 00 00 40 [13:12:38]Write i2c OK [13:12:38]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 88 0A 00 90 00 06 [13:12:39]RAPDU: 90 00 [13:12:39]wFMCommunicate OK [13:12:39]wFMCommunicate request_size=11 [13:12:39]MH_SAM_APDU [13:12:39]CAPDU: 80 0D 02 02 06 A7 93 35 E5 DE 6B [13:12:39]Write to MH i2c: E2 0E 00 89 0A 80 0D 02 02 06 00 A7 93 35 E5 DE 6B 00 00 B6 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 89 0A 00 90 00 07 [13:12:39]RAPDU: 90 00 [13:12:39]wFMCommunicate OK [13:12:39]wFMCommunicate request_size=4 [13:12:39]MH_SAM_APDU [13:12:39]CAPDU: 80 0D 03 02 [13:12:39]Write to MH i2c: E2 08 00 8A 0A 80 0D 03 02 00 00 00 00 0F [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 0B 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 0B 00 8A 0A 00 86 F9 EB 58 9B AD A3 78 90 00 35 [13:12:39]RAPDU: 86 F9 EB 58 9B AD A3 78 90 00 [13:12:39]wFMCommunicate OK [13:12:39]SAM_PROTO_SignData done [13:12:39]FM_MakeSignedData done [13:12:39]CreateOFDProtocolMessage [13:12:39]wFMCommunicate request_size=4 [13:12:39]MH_SAM_APDU [13:12:39]CAPDU: 80 11 00 00 [13:12:39]Write to MH i2c: E2 08 00 8B 0A 80 11 00 00 00 00 00 00 0F [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 17 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 17 00 8B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 66 [13:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:12:39]wFMCommunicate OK [13:12:39]CreateOFDProtocolMessage done [13:12:39]OFDSenderStorePacket 139708 [13:12:39]StoreOFDPacket docnum=139708 [13:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 07 C1 08 01 FB 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 B4 00 00 00 F4 03 04 00 45 96 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 21 02 00 35 04 06 00 A7 93 35 E5 DE 6B 86 F9 EB 58 9B AD A3 78 [13:12:39]CheckFolder [13:12:39]dirname=/storage/ofd_packets [13:12:39]CheckFolder done [13:12:39]ProducePacketName [13:12:39]name=ofd_packets/00139708 [13:12:39]NVStorageSaveData ofd_packets/00139708 [13:12:39]File name is /storage/ofd_packets/00139708 [13:12:39]Write 302 bytes [13:12:39]NVStorageSaveData done [13:12:39]OFDSenderStorePacket done [13:12:39]KKMCreateOFDPacket done [13:12:39]NVStorageSaveData kkm_last_timestamp [13:12:39]File name is /storage/kkm_last_timestamp [13:12:39]Write 4 bytes [13:12:39]NVStorageSaveData done [13:12:39]ExternCall_PrintAddStr [13:12:39]wPrintStart [13:12:39]Write to MH i2c: 01 00 00 8C 0A 96 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 07 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 07 00 8C 0A 00 00 00 00 00 FF 0F AB [13:12:39]RasterBufferAndPrint [13:12:39]line Счет N : (1)593555 [13:12:39]line ИНН: 02508201610067 [13:12:39]line Контрольно-Кассовый Чек [13:12:39]line ПРОДАЖА [13:12:39]line ТРК (МРК, ГНК) : 54 [13:12:39]line Товар: 2710194210 [13:12:39]line ДТ(л)-К-5 [13:12:39]line 32.810 * 76.20 [13:12:39]line = 2500.12 [13:12:39]line НДС 12% НСП 1% [13:12:39]line > о реализуемом товаре [13:12:39]line ОКРУГЛЕНИЕ: -0.12 [13:12:39]line ИТОГО: 2500.00 [13:12:39]line Внесено: 2500.00 [13:12:39]line СДАЧА: 0.00 [13:12:39]line НСП 1% : 22.12 [13:12:39]line НДС 12% : 265.50 [13:12:39]line Наличными: 2500.00 [13:12:39]line Безнал.: 0.00 [13:12:39]line Место: АЗС № 136 "Партнер Нефть" [13:12:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:12:39]line СНО: Общий режим [13:12:39]line Чек 180 20.08.2024 13:12 [13:12:39]line Смена: 453 ФФД: 1.0 [13:12:39]line ЗНМ: 0300000067 [13:12:39]line РНМ: 0000000000092569 [13:12:39]line Версия ККМ: 001 [13:12:39]line ФМ: 0000000000871776 [13:12:39]line ФД: 139708 [13:12:39]line ФПД: 184250706288235 [13:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T131237&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139708&fm=184250706288235&tin=02508201610067®Number=0000000000092569&sum=250000 [13:12:39]written 0, free lines is 4095 [13:12:39]OFD Sender: Processing packet 139708 [packets to send 137, broken 136] [13:12:39]ProducePacketName [13:12:39]name=ofd_packets/00139708 [13:12:39]OFD Sender: To server: pG, [13:12:39]CommunicateWithHost lk.salyk.kg:30040 [13:12:39]ConnectInit lk.salyk.kg [13:12:39]Connected sock=10 [13:12:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 07 C1 08 01 FB 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C 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 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 B4 00 00 00 F4 03 04 00 45 96 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 21 02 00 35 04 06 00 A7 93 35 E5 DE 6B 86 F9 EB 58 9B AD A3 78 [13:12:39]Write to MH i2c: 01 00 00 B7 0A C1 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 07 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 07 00 B7 0A 00 00 00 00 00 D8 0C AC [13:12:39]RasterBufferAndPrint [13:12:39]line [13:12:39]line [13:12:39]line [13:12:39]line [13:12:39]line [13:12:39]written 0, free lines is 3295 [13:12:39]MH_Cut [13:12:39]Write to MH i2c: D1 01 00 BE 0A 01 9A [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: D1 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: D1 01 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: D1 01 00 BE 0A 00 99 [13:12:39]Write to MH i2c: 01 00 00 BF 0A C9 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 75 22 47 00 AB D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 21 02 00 F4 03 04 00 D8 3C C4 66 B6 04 01 00 00 79 3D 74 71 B8 4B 7E C1 [13:12:39]CommunicateWithHost err = 0 [13:12:39]CheckOFDResponse [13:12:39]1017 (14) - 77093643461234 [13:12:39]1041 (16) - 0000000000871776 [13:12:39]1040 (4) - 139708 [13:12:39]1012 (4) - 20.08.2024 06:51 [13:12:39]1206 (1) - 0 [13:12:39]OFD Sender: Remove packet 139708 [13:12:39]ProducePacketName [13:12:39]name=ofd_packets/00139708 [13:12:39]NVStorageDeleteData [13:12:40]OFD Sender: No OFD packet to send [13:12:40]*** Cut start [13:12:40]*** Partial cut [13:12:40]*** CUTSNS_PIN = 1 [13:12:40]*** CUTSNS_PIN = 0 [13:12:40]*** Brake cut motor [13:12:40]Read from MH i2c: 01 [13:12:40]MH_I2C_Read... [13:12:40]*** Stop cut motor [13:12:40]*** Cut end [13:12:40]Read from MH i2c: 01 07 00 [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: 01 07 00 BF 0A 00 00 00 00 00 FF 0F DE [13:12:40]process_action close_receipt done [13:12:40]requested_data is exist [13:12:40]produce_requested_data [13:12:40]requested_item fm.sn is exist - process it [13:12:40]wFMCommunicate request_size=4 [13:12:40]MH_SAM_APDU [13:12:40]CAPDU: 80 11 00 00 [13:12:40]Write to MH i2c: E2 08 00 C0 0A 80 11 00 00 00 00 00 00 44 [13:12:40]Write i2c OK [13:12:40]MH_I2C_Read... [13:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:40]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 17 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 17 00 C0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [13:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:12:41]wFMCommunicate OK [13:12:41]requested_item fd.num is exist - process it [13:12:41]SAM_PROTO_GetFieldsCounters [13:12:41]wFMCommunicate request_size=4 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 13 00 00 [13:12:41]Write to MH i2c: E2 08 00 C1 0A 80 13 00 00 00 00 00 00 47 [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 62 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 62 00 C1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [13:12:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:41]wFMCommunicate OK [13:12:41]SAM_PROTO_GetFieldsCounters done [13:12:41]requested_item shift.num is exist - process it [13:12:41]requested_item shift.opened is exist - process it [13:12:41]req_shift_opened [13:12:41]FM_GetShiftState [13:12:41]SAM_PROTO_GetShiftState [13:12:41]wFMCommunicate request_size=4 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 13 01 00 [13:12:41]Write to MH i2c: E2 08 00 C2 0A 80 13 01 00 00 00 00 00 49 [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 0E 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 0E 00 C2 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DA [13:12:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:12:41]wFMCommunicate OK [13:12:41]SAM_PROTO_GetShiftState done [13:12:41]FM_GetShiftState done [13:12:41]req_shift_opened done [13:12:41]requested_item shift.open_date is exist - process it [13:12:41]req_shift_open_date [13:12:41]req_shift_open_date done [13:12:41]produce_requested_data done [13:12:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139708,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:12:41]process_action_free close_receipt [13:12:41]json_value_free [13:12:41]json_value_free done [13:12:41]process_json_proto returns [13:12:41]Send response to host [13:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139708,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:12:41]free response buf [13:12:41]execute_script done [13:12:41]execute_script returns [13:12:41]free content buf [13:12:41]Sock 9.Close socket [13:12:41]Sock 9.Thread stoped [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]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:21]accept exits with 8 [13:17:21]New connection [13:17:21]New thread 3067288932 created [13:17:21]Thread 3067145572 joined [13:17:21]Waiting for new connection... [13:17:21] Sock 8.Parse request [13:17:21]Sock 8.Check first char [13:17:21]Sock 8.First char is OK [13:17:21]request: POST /json_proto HTTP/1.0 [13:17:21]Method: POST [13:17:21]URL: /json_proto [13:17:21]Method is POST - this is cgi request [13:17:21]url: /json_proto [13:17:21]query_string will be loaded in cgi processing [13:17:21]execute_cgi json_proto POST (null) [13:17:21]execute_cgi path=json_proto method=POST [13:17:21]POST find Content-Length [13:17:21]Host: 172.17.45.67:8080 [13:17:21]Content-Length: 682 [13:17:21]Content-Type: application/json [13:17:21] [13:17:21]POST finish read [13:17:21]Found Content-Length = 682 [13:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:21]execute_script... [13: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)593556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:21]POST & json_proto [13:17:21]process_json_proto [13:17:21]json parsed OK: [13:17:21]protocol is kg_v1.0 [13:17:21]action value=close_receipt [13:17:21]process_action close_receipt [13:17:21]cmd_close_receipt [13:17:21]MH_GetDate [13:17:21]Write to MH i2c: F0 00 00 C3 0A BC [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: F0 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: F0 09 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: F0 09 00 C3 0A 00 61 97 C4 66 5F 7F 2B 66 56 [13:17:21]GetLastDocTimeStamp 1724159557 [13:17:21]current date 1724159841 [13:17:21]FM_GetShiftState [13:17:21]SAM_PROTO_GetShiftState [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 13 01 00 [13:17:21]Write to MH i2c: E2 08 00 C4 0A 80 13 01 00 00 00 00 00 4B [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0E 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0E 00 C4 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DC [13:17:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:17:21]wFMCommunicate OK [13:17:21]SAM_PROTO_GetShiftState done [13:17:21]FM_GetShiftState done [13:17:21]opened in 1724113785 [13:17:21]opened+sec_in_day 1724200185 [13:17:21]quantity*price = 100021 [13:17:21]sum+1 = 100023 [13: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 181 20.08.2024 13:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139709 ФПД: 34384390898153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T131721&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139709&fm=34384390898153&tin=02508201610067®Number=0000000000092569&sum=100000 [13:17:22]StoreToDocumentArchive [13:17:22]shift 453 fd 139709 [13:17:22]save to /storage/0453/doc_00139709 [13:17:22]save last doc name /storage/0453/doc_00139709 to /storage/kkm_last_doc_name [13:17:22]save OK [13:17:22]Clear old archive folders... [13:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:22]tlvbuf is 01FFE670 [13:17:22]SAM_PROTO_ClearQueue [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 09 00 00 [13:17:22]Write to MH i2c: E2 08 00 D1 0A 80 09 00 00 00 00 00 00 4D [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 D1 0A 00 90 00 4F [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]SAM_PROTO_ClearQueue done [13:17:22]KKMCreateOFDPacket [13:17:22]OFDProtocolAddRootSTLVToBuf [13:17:22]FM_MakeSignedData [13:17:22]FM_MakeSignedData [13:17:22]SAM_PROTO_SignData [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 01 02 [13:17:22]Write to MH i2c: E2 08 00 D2 0A 80 0D 01 02 00 00 00 00 55 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=255 [13:17:22]MH_SAM_APDU [13: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 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 61 97 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 21 02 00 35 04 06 00 1F [13:17:22]Write to MH i2c: E2 02 01 D3 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 B5 00 00 00 F4 03 04 00 61 97 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 21 02 00 35 04 06 00 1F 00 00 A7 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=10 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 02 02 05 45 BD 67 C1 E9 [13:17:22]Write to MH i2c: E2 0D 00 D4 0A 80 0D 02 02 05 00 45 BD 67 C1 E9 00 00 75 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 03 02 [13:17:22]Write to MH i2c: E2 08 00 D5 0A 80 0D 03 02 00 00 00 00 5A [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0B 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0B 00 D5 0A 00 58 4E 1E 8D A5 E5 C0 F6 90 00 EC [13:17:22]RAPDU: 58 4E 1E 8D A5 E5 C0 F6 90 00 [13:17:22]wFMCommunicate OK [13:17:22]SAM_PROTO_SignData done [13:17:22]FM_MakeSignedData done [13:17:22]CreateOFDProtocolMessage [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 11 00 00 [13:17:22]Write to MH i2c: E2 08 00 D6 0A 80 11 00 00 00 00 00 00 5A [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 17 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 17 00 D6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B1 [13:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:17:22]wFMCommunicate OK [13:17:22]CreateOFDProtocolMessage done [13:17:22]OFDSenderStorePacket 139709 [13:17:22]StoreOFDPacket docnum=139709 [13:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A0 38 07 01 CF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 61 97 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 21 02 00 35 04 06 00 1F 45 BD 67 C1 E9 58 4E 1E 8D A5 E5 C0 F6 [13:17:22]CheckFolder [13:17:22]dirname=/storage/ofd_packets [13:17:22]CheckFolder done [13:17:22]ProducePacketName [13:17:22]name=ofd_packets/00139709 [13:17:22]NVStorageSaveData ofd_packets/00139709 [13:17:22]File name is /storage/ofd_packets/00139709 [13:17:22]Write 301 bytes [13:17:22]NVStorageSaveData done [13:17:22]OFDSenderStorePacket done [13:17:22]KKMCreateOFDPacket done [13:17:22]NVStorageSaveData kkm_last_timestamp [13:17:22]File name is /storage/kkm_last_timestamp [13:17:22]Write 4 bytes [13:17:22]NVStorageSaveData done [13:17:22]ExternCall_PrintAddStr [13:17:22]wPrintStart [13:17:22]Write to MH i2c: 01 00 00 D7 0A E1 [13:17:22]OFD Sender: Processing packet 139709 [packets to send 137, broken 136] [13:17:22]ProducePacketName [13:17:22]name=ofd_packets/00139709 [13:17:22]OFD Sender: To server: pG, [13:17:22]CommunicateWithHost lk.salyk.kg:30040 [13:17:22]ConnectInit lk.salyk.kg [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 D7 0A 00 00 00 00 00 FF 0F F6 [13:17:22]RasterBufferAndPrint [13:17:22]line Счет N : (1)593556 [13:17:22]line ИНН: 02508201610067 [13:17:22]line Контрольно-Кассовый Чек [13:17:22]line ПРОДАЖА [13:17:22]line ТРК (МРК, ГНК) : 51 [13:17:22]line Товар: 2710124500 [13:17:22]line Аи-95-К-5 [13:17:22]line 13.480 * 74.20 [13:17:22]line = 1000.22 [13:17:22]line НДС 12% НСП 1% [13:17:22]line > о реализуемом товаре [13:17:22]line ОКРУГЛЕНИЕ: -0.22 [13:17:22]line ИТОГО: 1000.00 [13:17:22]line Внесено: 1000.00 [13:17:22]line СДАЧА: 0.00 [13:17:22]line НСП 1% : 8.85 [13:17:22]line НДС 12% : 106.22 [13:17:22]line Наличными: 1000.00 [13:17:22]line Безнал.: 0.00 [13:17:22]line Место: АЗС № 136 "Партнер Нефть" [13:17:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:17:22]line СНО: Общий режим [13:17:22]line Чек 181 20.08.2024 13:17 [13:17:22]line Смена: 453 ФФД: 1.0 [13:17:22]line ЗНМ: 0300000067 [13:17:22]line РНМ: 0000000000092569 [13:17:22]line Версия ККМ: 001 [13:17:22]line ФМ: 0000000000871776 [13:17:22]line ФД: 139709 [13:17:22]line ФПД: 34384390898153 [13:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T131721&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139709&fm=34384390898153&tin=02508201610067®Number=0000000000092569&sum=100000 [13:17:23]Connected sock=10 [13:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A0 38 07 01 CF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 61 97 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 21 02 00 35 04 06 00 1F 45 BD 67 C1 E9 58 4E 1E 8D A5 E5 C0 F6 [13:17:23]written 0, free lines is 4095 [13:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 ED 40 47 00 71 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 21 02 00 F4 03 04 00 F4 3D C4 66 B6 04 01 00 00 5B 93 96 FA C4 9A 1D 18 [13:17:23]CommunicateWithHost err = 0 [13:17:23]CheckOFDResponse [13:17:23]1017 (14) - 77093643461234 [13:17:23]1041 (16) - 0000000000871776 [13:17:23]1040 (4) - 139709 [13:17:23]1012 (4) - 20.08.2024 06:55 [13:17:23]1206 (1) - 0 [13:17:23]OFD Sender: Remove packet 139709 [13:17:23]ProducePacketName [13:17:23]name=ofd_packets/00139709 [13:17:23]NVStorageDeleteData [13:17:23]Write to MH i2c: 01 00 00 02 0B 0D [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 07 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: 01 07 00 02 0B 00 00 00 00 00 C9 0C E9 [13:17:23]RasterBufferAndPrint [13:17:23]line [13:17:23]line [13:17:23]line [13:17:23]line [13:17:23]line [13:17:23]written 0, free lines is 3278 [13:17:23]MH_Cut [13:17:23]Write to MH i2c: D1 01 00 09 0B 01 E6 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 01 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 01 00 09 0B 00 E5 [13:17:23]Write to MH i2c: 01 00 00 0A 0B 15 [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:24]OFD Sender: No OFD packet to send [13:17:24]*** Cut start [13:17:24]*** Partial cut [13:17:24]*** CUTSNS_PIN = 1 [13:17:24]*** CUTSNS_PIN = 0 [13:17:24]*** Brake cut motor [13:17:24]Read from MH i2c: 01 [13:17:24]MH_I2C_Read... [13:17:24]*** Stop cut motor [13:17:24]*** Cut end [13:17:24]Read from MH i2c: 01 07 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: 01 07 00 0A 0B 00 00 00 00 00 FF 0F 2A [13:17:24]process_action close_receipt done [13:17:24]requested_data is exist [13:17:24]produce_requested_data [13:17:24]requested_item fm.sn is exist - process it [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 11 00 00 [13:17:24]Write to MH i2c: E2 08 00 0B 0B 80 11 00 00 00 00 00 00 90 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 17 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 17 00 0B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E7 [13:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:17:25]wFMCommunicate OK [13:17:25]requested_item fd.num is exist - process it [13:17:25]SAM_PROTO_GetFieldsCounters [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 13 00 00 [13:17:25]Write to MH i2c: E2 08 00 0C 0B 80 13 00 00 00 00 00 00 93 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 62 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 62 00 0C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [13:17:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:25]wFMCommunicate OK [13:17:25]SAM_PROTO_GetFieldsCounters done [13:17:25]requested_item shift.num is exist - process it [13:17:25]requested_item shift.opened is exist - process it [13:17:25]req_shift_opened [13:17:25]FM_GetShiftState [13:17:25]SAM_PROTO_GetShiftState [13:17:25]wFMCommunicate request_size=4 [13:17:25]MH_SAM_APDU [13:17:25]CAPDU: 80 13 01 00 [13:17:25]Write to MH i2c: E2 08 00 0D 0B 80 13 01 00 00 00 00 00 95 [13:17:25]Write i2c OK [13:17:25]MH_I2C_Read... [13:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:25]Read from MH i2c: E2 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0E 00 [13:17:25]MH_I2C_Read... [13:17:25]Read from MH i2c: E2 0E 00 0D 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 26 [13:17:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:17:25]wFMCommunicate OK [13:17:25]SAM_PROTO_GetShiftState done [13:17:25]FM_GetShiftState done [13:17:25]req_shift_opened done [13:17:25]requested_item shift.open_date is exist - process it [13:17:25]req_shift_open_date [13:17:25]req_shift_open_date done [13:17:25]produce_requested_data done [13:17:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139709,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:17:25]process_action_free close_receipt [13:17:25]json_value_free [13:17:25]json_value_free done [13:17:25]process_json_proto returns [13:17:25]Send response to host [13:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139709,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:17:25]free response buf [13:17:25]execute_script done [13:17:25]execute_script returns [13:17:25]free content buf [13:17:25]Sock 8.Close socket [13:17:25]Sock 8.Thread stoped [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:41]accept exits with 9 [13:19:41]New connection [13:19:41]New thread 3067145572 created [13:19:41]Thread 3067288932 joined [13:19:41]Waiting for new connection... [13:19:41] Sock 9.Parse request [13:19:41]Sock 9.Check first char [13:19:41]Sock 9.First char is OK [13:19:41]request: POST /json_proto HTTP/1.0 [13:19:41]Method: POST [13:19:41]URL: /json_proto [13:19:41]Method is POST - this is cgi request [13:19:41]url: /json_proto [13:19:41]query_string will be loaded in cgi processing [13:19:41]execute_cgi json_proto POST (null) [13:19:41]execute_cgi path=json_proto method=POST [13:19:41]POST find Content-Length [13:19:41]Host: 172.17.45.67:8080 [13:19:41]Content-Length: 682 [13:19:41]Content-Type: application/json [13:19:41] [13:19:41]POST finish read [13:19:41]Found Content-Length = 682 [13:19:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:41]execute_script... [13:19:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:41]POST & json_proto [13:19:41]process_json_proto [13:19:41]json parsed OK: [13:19:41]protocol is kg_v1.0 [13:19:41]action value=close_receipt [13:19:41]process_action close_receipt [13:19:41]cmd_close_receipt [13:19:41]MH_GetDate [13:19:41]Write to MH i2c: F0 00 00 0E 0B 08 [13:19:41]Write i2c OK [13:19:41]MH_I2C_Read... [13:19:41]Read from MH i2c: F0 [13:19:41]MH_I2C_Read... [13:19:41]Read from MH i2c: F0 09 00 [13:19:41]MH_I2C_Read... [13:19:41]Read from MH i2c: F0 09 00 0E 0B 00 EE 97 C4 66 5F 7F 2B 66 2F [13:19:41]GetLastDocTimeStamp 1724159841 [13:19:41]current date 1724159982 [13:19:41]FM_GetShiftState [13:19:41]SAM_PROTO_GetShiftState [13:19:41]wFMCommunicate request_size=4 [13:19:41]MH_SAM_APDU [13:19:41]CAPDU: 80 13 01 00 [13:19:41]Write to MH i2c: E2 08 00 0F 0B 80 13 01 00 00 00 00 00 97 [13:19:41]Write i2c OK [13:19:41]MH_I2C_Read... [13:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:41]Read from MH i2c: E2 [13:19:41]MH_I2C_Read... [13:19:41]Read from MH i2c: E2 0E 00 [13:19:41]MH_I2C_Read... [13:19:41]Read from MH i2c: E2 0E 00 0F 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 28 [13:19:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:19:41]wFMCommunicate OK [13:19:41]SAM_PROTO_GetShiftState done [13:19:41]FM_GetShiftState done [13:19:41]opened in 1724113785 [13:19:41]opened+sec_in_day 1724200185 [13:19:41]quantity*price = 100005 [13:19:41]sum+1 = 100006 [13:19:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 182 20.08.2024 13:19 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139710 ФПД: 155815879567860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T131942&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139710&fm=155815879567860&tin=02508201610067®Number=0000000000092569&sum=100000 [13:19:42]StoreToDocumentArchive [13:19:42]shift 453 fd 139710 [13:19:42]save to /storage/0453/doc_00139710 [13:19:42]save last doc name /storage/0453/doc_00139710 to /storage/kkm_last_doc_name [13:19:42]save OK [13:19:42]Clear old archive folders... [13:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:43]tlvbuf is 02006970 [13:19:43]SAM_PROTO_ClearQueue [13:19:43]wFMCommunicate request_size=4 [13:19:43]MH_SAM_APDU [13:19:43]CAPDU: 80 09 00 00 [13:19:43]Write to MH i2c: E2 08 00 1C 0B 80 09 00 00 00 00 00 00 99 [13:19:43]Write i2c OK [13:19:43]MH_I2C_Read... [13:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:43]Read from MH i2c: E2 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 03 00 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 03 00 1C 0B 00 90 00 9B [13:19:43]RAPDU: 90 00 [13:19:43]wFMCommunicate OK [13:19:43]SAM_PROTO_ClearQueue done [13:19:43]KKMCreateOFDPacket [13:19:43]OFDProtocolAddRootSTLVToBuf [13:19:43]FM_MakeSignedData [13:19:43]FM_MakeSignedData [13:19:43]SAM_PROTO_SignData [13:19:43]wFMCommunicate request_size=4 [13:19:43]MH_SAM_APDU [13:19:43]CAPDU: 80 0D 01 02 [13:19:43]Write to MH i2c: E2 08 00 1D 0B 80 0D 01 02 00 00 00 00 A1 [13:19:43]Write i2c OK [13:19:43]MH_I2C_Read... [13:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:43]Read from MH i2c: E2 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 03 00 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [13:19:43]RAPDU: 90 00 [13:19:43]wFMCommunicate OK [13:19:43]wFMCommunicate request_size=255 [13:19:43]MH_SAM_APDU [13:19:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EE 97 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 21 02 00 35 04 06 00 8D [13:19:43]Write to MH i2c: E2 02 01 1E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EE 97 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 21 02 00 35 04 06 00 8D 00 00 52 [13:19:43]Write i2c OK [13:19:43]MH_I2C_Read... [13:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:43]Read from MH i2c: E2 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 03 00 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 03 00 1E 0B 00 90 00 9D [13:19:43]RAPDU: 90 00 [13:19:43]wFMCommunicate OK [13:19:43]wFMCommunicate request_size=10 [13:19:43]MH_SAM_APDU [13:19:43]CAPDU: 80 0D 02 02 05 B6 B6 26 E9 F4 [13:19:43]Write to MH i2c: E2 0D 00 1F 0B 80 0D 02 02 05 00 B6 B6 26 E9 F4 00 00 1D [13:19:43]Write i2c OK [13:19:43]MH_I2C_Read... [13:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:43]Read from MH i2c: E2 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 03 00 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 03 00 1F 0B 00 90 00 9E [13:19:43]RAPDU: 90 00 [13:19:43]wFMCommunicate OK [13:19:43]wFMCommunicate request_size=4 [13:19:43]MH_SAM_APDU [13:19:43]CAPDU: 80 0D 03 02 [13:19:43]Write to MH i2c: E2 08 00 20 0B 80 0D 03 02 00 00 00 00 A6 [13:19:43]Write i2c OK [13:19:43]MH_I2C_Read... [13:19:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:43]Read from MH i2c: E2 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 0B 00 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 0B 00 20 0B 00 9C F3 1A 6D E6 51 0E 55 90 00 57 [13:19:43]RAPDU: 9C F3 1A 6D E6 51 0E 55 90 00 [13:19:43]wFMCommunicate OK [13:19:43]SAM_PROTO_SignData done [13:19:43]FM_MakeSignedData done [13:19:43]CreateOFDProtocolMessage [13:19:43]wFMCommunicate request_size=4 [13:19:43]MH_SAM_APDU [13:19:43]CAPDU: 80 11 00 00 [13:19:43]Write to MH i2c: E2 08 00 21 0B 80 11 00 00 00 00 00 00 A6 [13:19:43]Write i2c OK [13:19:43]MH_I2C_Read... [13:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:43]Read from MH i2c: E2 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 17 00 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: E2 17 00 21 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FD [13:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:19:43]wFMCommunicate OK [13:19:43]CreateOFDProtocolMessage done [13:19:43]OFDSenderStorePacket 139710 [13:19:43]StoreOFDPacket docnum=139710 [13:19:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 35 4C 07 01 C2 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EE 97 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 21 02 00 35 04 06 00 8D B6 B6 26 E9 F4 9C F3 1A 6D E6 51 0E 55 [13:19:43]CheckFolder [13:19:43]dirname=/storage/ofd_packets [13:19:43]CheckFolder done [13:19:43]ProducePacketName [13:19:43]name=ofd_packets/00139710 [13:19:43]NVStorageSaveData ofd_packets/00139710 [13:19:43]File name is /storage/ofd_packets/00139710 [13:19:43]Write 301 bytes [13:19:43]NVStorageSaveData done [13:19:43]OFDSenderStorePacket done [13:19:43]KKMCreateOFDPacket done [13:19:43]NVStorageSaveData kkm_last_timestamp [13:19:43]File name is /storage/kkm_last_timestamp [13:19:43]Write 4 bytes [13:19:43]NVStorageSaveData done [13:19:43]ExternCall_PrintAddStr [13:19:43]wPrintStart [13:19:43]Write to MH i2c: 01 00 00 22 0B 2D [13:19:43]Write i2c OK [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: 01 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: 01 07 00 [13:19:43]MH_I2C_Read... [13:19:43]Read from MH i2c: 01 07 00 22 0B 00 00 00 00 00 FF 0F 42 [13:19:43]RasterBufferAndPrint [13:19:43]line Счет N : (1)593557 [13:19:43]line ИНН: 02508201610067 [13:19:43]line Контрольно-Кассовый Чек [13:19:43]line ПРОДАЖА [13:19:43]line ТРК (МРК, ГНК) : 42 [13:19:43]line Товар: 2710124130 [13:19:43]line Аи-92-К-5 [13:19:43]line 14.750 * 67.80 [13:19:43]line = 1000.05 [13:19:43]line НДС 12% НСП 1% [13:19:43]line > о реализуемом товаре [13:19:43]line ОКРУГЛЕНИЕ: -0.05 [13:19:43]line ИТОГО: 1000.00 [13:19:43]line Внесено: 1000.00 [13:19:43]line СДАЧА: 0.00 [13:19:43]line НСП 1% : 8.85 [13:19:43]line НДС 12% : 106.20 [13:19:43]line Наличными: 1000.00 [13:19:43]line Безнал.: 0.00 [13:19:43]line Место: АЗС № 136 "Партнер Нефть" [13:19:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:19:43]line СНО: Общий режим [13:19:43]line Чек 182 20.08.2024 13:19 [13:19:43]line Смена: 453 ФФД: 1.0 [13:19:43]line ЗНМ: 0300000067 [13:19:43]line РНМ: 0000000000092569 [13:19:43]line Версия ККМ: 001 [13:19:43]line ФМ: 0000000000871776 [13:19:43]line ФД: 139710 [13:19:43]line ФПД: 155815879567860 [13:19:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T131942&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139710&fm=155815879567860&tin=02508201610067®Number=0000000000092569&sum=100000 [13:19:43]OFD Sender: Processing packet 139710 [packets to send 137, broken 136] [13:19:43]ProducePacketName [13:19:43]name=ofd_packets/00139710 [13:19:43]OFD Sender: To server: pG, [13:19:43]CommunicateWithHost lk.salyk.kg:30040 [13:19:43]ConnectInit lk.salyk.kg [13:19:43]written 0, free lines is 4095 [13:19:43]Connected sock=10 [13:19:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 35 4C 07 01 C2 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EE 97 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 21 02 00 35 04 06 00 8D B6 B6 26 E9 F4 9C F3 1A 6D E6 51 0E 55 [13:19:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 17 FB 47 00 27 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 21 02 00 F4 03 04 00 81 3E C4 66 B6 04 01 00 00 42 5E A5 32 89 91 F2 4B [13:19:44]CommunicateWithHost err = 0 [13:19:44]CheckOFDResponse [13:19:44]1017 (14) - 77093643461234 [13:19:44]1041 (16) - 0000000000871776 [13:19:44]1040 (4) - 139710 [13:19:44]1012 (4) - 20.08.2024 06:58 [13:19:44]1206 (1) - 0 [13:19:44]OFD Sender: Remove packet 139710 [13:19:44]ProducePacketName [13:19:44]name=ofd_packets/00139710 [13:19:44]NVStorageDeleteData [13:19:44]Write to MH i2c: 01 00 00 4D 0B 58 [13:19:44]Write i2c OK [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: 01 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: 01 07 00 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: 01 07 00 4D 0B 00 00 00 00 00 D8 0C 43 [13:19:44]RasterBufferAndPrint [13:19:44]line [13:19:44]line [13:19:44]line [13:19:44]line [13:19:44]line [13:19:44]written 0, free lines is 3295 [13:19:44]MH_Cut [13:19:44]Write to MH i2c: D1 01 00 54 0B 01 31 [13:19:44]Write i2c OK [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: D1 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: D1 01 00 [13:19:44]MH_I2C_Read... [13:19:44]Read from MH i2c: D1 01 00 54 0B 00 30 [13:19:44]Write to MH i2c: 01 00 00 55 0B 60 [13:19:44]Write i2c OK [13:19:44]MH_I2C_Read... [13:19:44]OFD Sender: No OFD packet to send [13:19:45]*** Cut start [13:19:45]*** Partial cut [13:19:45]*** CUTSNS_PIN = 1 [13:19:45]*** CUTSNS_PIN = 0 [13:19:45]*** Brake cut motor [13:19:45]Read from MH i2c: 01 [13:19:45]MH_I2C_Read... [13:19:45]*** Stop cut motor [13:19:45]*** Cut end [13:19:45]Read from MH i2c: 01 07 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: 01 07 00 55 0B 00 00 00 00 00 FF 0F 75 [13:19:45]process_action close_receipt done [13:19:45]requested_data is exist [13:19:45]produce_requested_data [13:19:45]requested_item fm.sn is exist - process it [13:19:45]wFMCommunicate request_size=4 [13:19:45]MH_SAM_APDU [13:19:45]CAPDU: 80 11 00 00 [13:19:45]Write to MH i2c: E2 08 00 56 0B 80 11 00 00 00 00 00 00 DB [13:19:45]Write i2c OK [13:19:45]MH_I2C_Read... [13:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:45]Read from MH i2c: E2 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 17 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 17 00 56 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 32 [13:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:19:45]wFMCommunicate OK [13:19:45]requested_item fd.num is exist - process it [13:19:45]SAM_PROTO_GetFieldsCounters [13:19:45]wFMCommunicate request_size=4 [13:19:45]MH_SAM_APDU [13:19:45]CAPDU: 80 13 00 00 [13:19:45]Write to MH i2c: E2 08 00 57 0B 80 13 00 00 00 00 00 00 DE [13:19:45]Write i2c OK [13:19:45]MH_I2C_Read... [13:19:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:45]Read from MH i2c: E2 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 62 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 62 00 57 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [13:19:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:45]wFMCommunicate OK [13:19:45]SAM_PROTO_GetFieldsCounters done [13:19:45]requested_item shift.num is exist - process it [13:19:45]requested_item shift.opened is exist - process it [13:19:45]req_shift_opened [13:19:45]FM_GetShiftState [13:19:45]SAM_PROTO_GetShiftState [13:19:45]wFMCommunicate request_size=4 [13:19:45]MH_SAM_APDU [13:19:45]CAPDU: 80 13 01 00 [13:19:45]Write to MH i2c: E2 08 00 58 0B 80 13 01 00 00 00 00 00 E0 [13:19:45]Write i2c OK [13:19:45]MH_I2C_Read... [13:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:45]Read from MH i2c: E2 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 0E 00 [13:19:45]MH_I2C_Read... [13:19:45]Read from MH i2c: E2 0E 00 58 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 71 [13:19:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:19:45]wFMCommunicate OK [13:19:45]SAM_PROTO_GetShiftState done [13:19:45]FM_GetShiftState done [13:19:45]req_shift_opened done [13:19:45]requested_item shift.open_date is exist - process it [13:19:45]req_shift_open_date [13:19:45]req_shift_open_date done [13:19:45]produce_requested_data done [13:19:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139710,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:19:45]process_action_free close_receipt [13:19:45]json_value_free [13:19:45]json_value_free done [13:19:45]process_json_proto returns [13:19:45]Send response to host [13:19:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139710,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:19:45]free response buf [13:19:45]execute_script done [13:19:45]execute_script returns [13:19:45]free content buf [13:19:45]Sock 9.Close socket [13:19:45]Sock 9.Thread stoped [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:10]accept exits with 8 [13:20:10]New connection [13:20:10]New thread 3067288932 created [13:20:10]Thread 3067145572 joined [13:20:10]Waiting for new connection... [13:20:10] Sock 8.Parse request [13:20:10]Sock 8.Check first char [13:20:10]Sock 8.First char is OK [13:20:10]request: POST /json_proto HTTP/1.0 [13:20:10]Method: POST [13:20:10]URL: /json_proto [13:20:10]Method is POST - this is cgi request [13:20:10]url: /json_proto [13:20:10]query_string will be loaded in cgi processing [13:20:10]execute_cgi json_proto POST (null) [13:20:10]execute_cgi path=json_proto method=POST [13:20:10]POST find Content-Length [13:20:10]Host: 172.17.45.67:8080 [13:20:10]Content-Length: 677 [13:20:10]Content-Type: application/json [13:20:10] [13:20:10]POST finish read [13:20:10]Found Content-Length = 677 [13:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:10]execute_script... [13:20: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)593558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:10]POST & json_proto [13:20:10]process_json_proto [13:20:10]json parsed OK: [13:20:10]protocol is kg_v1.0 [13:20:10]action value=close_receipt [13:20:10]process_action close_receipt [13:20:10]cmd_close_receipt [13:20:10]MH_GetDate [13:20:10]Write to MH i2c: F0 00 00 59 0B 53 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: F0 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: F0 09 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: F0 09 00 59 0B 00 0A 98 C4 66 5F 7F 2B 66 97 [13:20:10]GetLastDocTimeStamp 1724159982 [13:20:10]current date 1724160010 [13:20:10]FM_GetShiftState [13:20:10]SAM_PROTO_GetShiftState [13:20:10]wFMCommunicate request_size=4 [13:20:10]MH_SAM_APDU [13:20:10]CAPDU: 80 13 01 00 [13:20:10]Write to MH i2c: E2 08 00 5A 0B 80 13 01 00 00 00 00 00 E2 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:10]Read from MH i2c: E2 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 0E 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 0E 00 5A 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 73 [13:20:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:20:10]wFMCommunicate OK [13:20:10]SAM_PROTO_GetShiftState done [13:20:10]FM_GetShiftState done [13:20:10]opened in 1724113785 [13:20:10]opened+sec_in_day 1724200185 [13:20:10]quantity*price = 30035 [13:20:10]sum+1 = 30036 [13:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 183 20.08.2024 13:20 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139711 ФПД: 121037950998250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T132010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139711&fm=121037950998250&tin=02508201610067®Number=0000000000092569&sum=30000 [13:20:11]StoreToDocumentArchive [13:20:11]shift 453 fd 139711 [13:20:11]save to /storage/0453/doc_00139711 [13:20:11]save last doc name /storage/0453/doc_00139711 to /storage/kkm_last_doc_name [13:20:11]save OK [13:20:11]Clear old archive folders... [13:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:11]tlvbuf is 020126A0 [13:20:11]SAM_PROTO_ClearQueue [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 09 00 00 [13:20:11]Write to MH i2c: E2 08 00 67 0B 80 09 00 00 00 00 00 00 E4 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 67 0B 00 90 00 E6 [13:20:11]RAPDU: 90 00 [13:20:11]wFMCommunicate OK [13:20:11]SAM_PROTO_ClearQueue done [13:20:11]KKMCreateOFDPacket [13:20:11]OFDProtocolAddRootSTLVToBuf [13:20:11]FM_MakeSignedData [13:20:11]FM_MakeSignedData [13:20:11]SAM_PROTO_SignData [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 0D 01 02 [13:20:11]Write to MH i2c: E2 08 00 68 0B 80 0D 01 02 00 00 00 00 EC [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 68 0B 00 90 00 E7 [13:20:11]RAPDU: 90 00 [13:20:11]wFMCommunicate OK [13:20:11]wFMCommunicate request_size=255 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 0A 98 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 21 02 00 35 04 06 00 6E [13:20:11]Write to MH i2c: E2 02 01 69 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 0A 98 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 21 02 00 35 04 06 00 6E 00 00 2D [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [13:20:11]RAPDU: 90 00 [13:20:11]wFMCommunicate OK [13:20:11]wFMCommunicate request_size=10 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 0D 02 02 05 15 58 12 D6 EA [13:20:11]Write to MH i2c: E2 0D 00 6A 0B 80 0D 02 02 05 00 15 58 12 D6 EA 00 00 38 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 6A 0B 00 90 00 E9 [13:20:11]RAPDU: 90 00 [13:20:11]wFMCommunicate OK [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 0D 03 02 [13:20:11]Write to MH i2c: E2 08 00 6B 0B 80 0D 03 02 00 00 00 00 F1 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 0B 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 0B 00 6B 0B 00 60 37 0F 10 4D E5 0B EF 90 00 D4 [13:20:11]RAPDU: 60 37 0F 10 4D E5 0B EF 90 00 [13:20:11]wFMCommunicate OK [13:20:11]SAM_PROTO_SignData done [13:20:11]FM_MakeSignedData done [13:20:11]CreateOFDProtocolMessage [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 11 00 00 [13:20:11]Write to MH i2c: E2 08 00 6C 0B 80 11 00 00 00 00 00 00 F1 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 17 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 17 00 6C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 48 [13:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:20:11]wFMCommunicate OK [13:20:11]CreateOFDProtocolMessage done [13:20:11]OFDSenderStorePacket 139711 [13:20:11]StoreOFDPacket docnum=139711 [13:20:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 1E 07 01 4C 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 0A 98 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 21 02 00 35 04 06 00 6E 15 58 12 D6 EA 60 37 0F 10 4D E5 0B EF [13:20:11]CheckFolder [13:20:11]dirname=/storage/ofd_packets [13:20:11]CheckFolder done [13:20:11]ProducePacketName [13:20:11]name=ofd_packets/00139711 [13:20:11]NVStorageSaveData ofd_packets/00139711 [13:20:11]File name is /storage/ofd_packets/00139711 [13:20:11]Write 301 bytes [13:20:11]NVStorageSaveData done [13:20:11]OFDSenderStorePacket done [13:20:11]KKMCreateOFDPacket done [13:20:11]NVStorageSaveData kkm_last_timestamp [13:20:11]File name is /storage/kkm_last_timestamp [13:20:11]Write 4 bytes [13:20:11]NVStorageSaveData done [13:20:11]ExternCall_PrintAddStr [13:20:11]wPrintStart [13:20:11]Write to MH i2c: 01 00 00 6D 0B 78 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: 01 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: 01 07 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: 01 07 00 6D 0B 00 00 00 00 00 FF 0F 8D [13:20:11]RasterBufferAndPrint [13:20:11]line Счет N : (1)593558 [13:20:11]line ИНН: 02508201610067 [13:20:11]line Контрольно-Кассовый Чек [13:20:11]line ПРОДАЖА [13:20:11]line ТРК (МРК, ГНК) : 62 [13:20:11]line Товар: 2710124130 [13:20:11]line Аи-92-К-5 [13:20:11]line 4.430 * 67.80 [13:20:11]line = 300.35 [13:20:11]line НДС 12% НСП 1% [13:20:11]line > о реализуемом товаре [13:20:11]line ОКРУГЛЕНИЕ: -0.35 [13:20:11]line ИТОГО: 300.00 [13:20:11]line Внесено: 300.00 [13:20:11]line СДАЧА: 0.00 [13:20:11]line НСП 1% : 2.66 [13:20:11]line НДС 12% : 31.90 [13:20:11]line Наличными: 300.00 [13:20:11]line Безнал.: 0.00 [13:20:11]line Место: АЗС № 136 "Партнер Нефть" [13:20:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:20:11]line СНО: Общий режим [13:20:11]line Чек 183 20.08.2024 13:20 [13:20:11]line Смена: 453 ФФД: 1.0 [13:20:11]line ЗНМ: 0300000067 [13:20:11]line РНМ: 0000000000092569 [13:20:11]line Версия ККМ: 001 [13:20:11]line ФМ: 0000000000871776 [13:20:11]line ФД: 139711 [13:20:11]line ФПД: 121037950998250 [13:20:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T132010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139711&fm=121037950998250&tin=02508201610067®Number=0000000000092569&sum=30000 [13:20:12]written 0, free lines is 4095 [13:20:12]OFD Sender: Processing packet 139711 [packets to send 137, broken 136] [13:20:12]ProducePacketName [13:20:12]name=ofd_packets/00139711 [13:20:12]OFD Sender: To server: pG, [13:20:12]CommunicateWithHost lk.salyk.kg:30040 [13:20:12]ConnectInit lk.salyk.kg [13:20:12]Connected sock=10 [13:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 1E 07 01 4C 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 0A 98 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 21 02 00 35 04 06 00 6E 15 58 12 D6 EA 60 37 0F 10 4D E5 0B EF [13:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1D 02 47 00 25 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 21 02 00 F4 03 04 00 9D 3E C4 66 B6 04 01 00 00 19 AE 95 28 52 E1 EB D9 [13:20:12]CommunicateWithHost err = 0 [13:20:12]CheckOFDResponse [13:20:12]1017 (14) - 77093643461234 [13:20:12]1041 (16) - 0000000000871776 [13:20:12]1040 (4) - 139711 [13:20:12]1012 (4) - 20.08.2024 06:58 [13:20:12]1206 (1) - 0 [13:20:12]OFD Sender: Remove packet 139711 [13:20:12]ProducePacketName [13:20:12]name=ofd_packets/00139711 [13:20:12]NVStorageDeleteData [13:20:12]Write to MH i2c: 01 00 00 98 0B A3 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 07 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 07 00 98 0B 00 00 00 00 00 D2 0C 88 [13:20:12]RasterBufferAndPrint [13:20:12]line [13:20:12]line [13:20:12]line [13:20:12]line [13:20:12]line [13:20:12]written 0, free lines is 3289 [13:20:12]MH_Cut [13:20:12]Write to MH i2c: D1 01 00 9F 0B 01 7C [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: D1 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: D1 01 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: D1 01 00 9F 0B 00 7B [13:20:12]Write to MH i2c: 01 00 00 A0 0B AB [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:13]OFD Sender: No OFD packet to send [13:20:13]*** Cut start [13:20:13]*** Partial cut [13:20:13]*** CUTSNS_PIN = 1 [13:20:13]*** CUTSNS_PIN = 0 [13:20:13]*** Brake cut motor [13:20:13]Read from MH i2c: 01 [13:20:13]MH_I2C_Read... [13:20:13]*** Stop cut motor [13:20:14]*** Cut end [13:20:14]Read from MH i2c: 01 07 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: 01 07 00 A0 0B 00 00 00 00 00 FF 0F C0 [13:20:14]process_action close_receipt done [13:20:14]requested_data is exist [13:20:14]produce_requested_data [13:20:14]requested_item fm.sn is exist - process it [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 11 00 00 [13:20:14]Write to MH i2c: E2 08 00 A1 0B 80 11 00 00 00 00 00 00 26 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 17 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 17 00 A1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [13:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:20:14]wFMCommunicate OK [13:20:14]requested_item fd.num is exist - process it [13:20:14]SAM_PROTO_GetFieldsCounters [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 13 00 00 [13:20:14]Write to MH i2c: E2 08 00 A2 0B 80 13 00 00 00 00 00 00 29 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 62 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 62 00 A2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [13:20:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:14]wFMCommunicate OK [13:20:14]SAM_PROTO_GetFieldsCounters done [13:20:14]requested_item shift.num is exist - process it [13:20:14]requested_item shift.opened is exist - process it [13:20:14]req_shift_opened [13:20:14]FM_GetShiftState [13:20:14]SAM_PROTO_GetShiftState [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 13 01 00 [13:20:14]Write to MH i2c: E2 08 00 A3 0B 80 13 01 00 00 00 00 00 2B [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 0E 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 0E 00 A3 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BC [13:20:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:20:14]wFMCommunicate OK [13:20:14]SAM_PROTO_GetShiftState done [13:20:14]FM_GetShiftState done [13:20:14]req_shift_opened done [13:20:14]requested_item shift.open_date is exist - process it [13:20:14]req_shift_open_date [13:20:14]req_shift_open_date done [13:20:14]produce_requested_data done [13:20:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139711,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:20:14]process_action_free close_receipt [13:20:14]json_value_free [13:20:14]json_value_free done [13:20:14]process_json_proto returns [13:20:14]Send response to host [13:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139711,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:20:14]free response buf [13:20:14]execute_script done [13:20:14]execute_script returns [13:20:14]free content buf [13:20:14]Sock 8.Close socket [13:20:14]Sock 8.Thread stoped [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:03]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:10]accept exits with 9 [13:22:10]New connection [13:22:10]New thread 3067145572 created [13:22:10]Thread 3067288932 joined [13:22:10]Waiting for new connection... [13:22:10] Sock 9.Parse request [13:22:10]Sock 9.Check first char [13:22:10]Sock 9.First char is OK [13:22:10]request: POST /json_proto HTTP/1.0 [13:22:10]Method: POST [13:22:10]URL: /json_proto [13:22:10]Method is POST - this is cgi request [13:22:10]url: /json_proto [13:22:10]query_string will be loaded in cgi processing [13:22:10]execute_cgi json_proto POST (null) [13:22:10]execute_cgi path=json_proto method=POST [13:22:10]POST find Content-Length [13:22:10]Host: 172.17.45.67:8080 [13:22:10]Content-Length: 677 [13:22:10]Content-Type: application/json [13:22:10] [13:22:10]POST finish read [13:22:10]Found Content-Length = 677 [13:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:10]execute_script... [13: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)593559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:10]POST & json_proto [13:22:10]process_json_proto [13:22:10]json parsed OK: [13:22:10]protocol is kg_v1.0 [13:22:10]action value=close_receipt [13:22:10]process_action close_receipt [13:22:10]cmd_close_receipt [13:22:10]MH_GetDate [13:22:10]Write to MH i2c: F0 00 00 A4 0B 9E [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: F0 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: F0 09 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: F0 09 00 A4 0B 00 82 98 C4 66 5F 7F 2B 66 5A [13:22:10]GetLastDocTimeStamp 1724160010 [13:22:10]current date 1724160130 [13:22:10]FM_GetShiftState [13:22:10]SAM_PROTO_GetShiftState [13:22:10]wFMCommunicate request_size=4 [13:22:10]MH_SAM_APDU [13:22:10]CAPDU: 80 13 01 00 [13:22:10]Write to MH i2c: E2 08 00 A5 0B 80 13 01 00 00 00 00 00 2D [13:22:10]Write i2c OK [13:22:10]MH_I2C_Read... [13:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:10]Read from MH i2c: E2 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0E 00 [13:22:10]MH_I2C_Read... [13:22:10]Read from MH i2c: E2 0E 00 A5 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BE [13:22:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:22:10]wFMCommunicate OK [13:22:10]SAM_PROTO_GetShiftState done [13:22:10]FM_GetShiftState done [13:22:10]opened in 1724113785 [13:22:10]opened+sec_in_day 1724200185 [13:22:10]quantity*price = 20001 [13:22:10]sum+1 = 20002 [13:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 184 20.08.2024 13:22 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139712 ФПД: 177765485756365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T132210&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139712&fm=177765485756365&tin=02508201610067®Number=0000000000092569&sum=20000 [13:22:11]StoreToDocumentArchive [13:22:11]shift 453 fd 139712 [13:22:11]save to /storage/0453/doc_00139712 [13:22:11]save last doc name /storage/0453/doc_00139712 to /storage/kkm_last_doc_name [13:22:11]save OK [13:22:11]Clear old archive folders... [13:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:11]tlvbuf is 01FF16B0 [13:22:11]SAM_PROTO_ClearQueue [13:22:11]wFMCommunicate request_size=4 [13:22:11]MH_SAM_APDU [13:22:11]CAPDU: 80 09 00 00 [13:22:11]Write to MH i2c: E2 08 00 B2 0B 80 09 00 00 00 00 00 00 2F [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:11]Read from MH i2c: E2 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: E2 03 00 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: E2 03 00 B2 0B 00 90 00 31 [13:22:11]RAPDU: 90 00 [13:22:11]wFMCommunicate OK [13:22:11]SAM_PROTO_ClearQueue done [13:22:11]KKMCreateOFDPacket [13:22:11]OFDProtocolAddRootSTLVToBuf [13:22:11]FM_MakeSignedData [13:22:11]FM_MakeSignedData [13:22:11]SAM_PROTO_SignData [13:22:11]wFMCommunicate request_size=4 [13:22:11]MH_SAM_APDU [13:22:11]CAPDU: 80 0D 01 02 [13:22:11]Write to MH i2c: E2 08 00 B3 0B 80 0D 01 02 00 00 00 00 37 [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:11]Read from MH i2c: E2 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: E2 03 00 [13:22:11]MH_I2C_Read... [13:22:11]Read from MH i2c: E2 03 00 B3 0B 00 90 00 32 [13:22:11]RAPDU: 90 00 [13:22:11]wFMCommunicate OK [13:22:11]wFMCommunicate request_size=255 [13:22:11]MH_SAM_APDU [13:22:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 82 98 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 21 02 00 35 04 06 00 A1 [13:22:11]Write to MH i2c: E2 02 01 B4 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 82 98 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 21 02 00 35 04 06 00 A1 00 00 08 [13:22:11]Write i2c OK [13:22:11]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 03 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 03 00 B4 0B 00 90 00 33 [13:22:12]RAPDU: 90 00 [13:22:12]wFMCommunicate OK [13:22:12]wFMCommunicate request_size=10 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 0D 02 02 05 AD 40 A1 BF CD [13:22:12]Write to MH i2c: E2 0D 00 B5 0B 80 0D 02 02 05 00 AD 40 A1 BF CD 00 00 5E [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 03 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 03 00 B5 0B 00 90 00 34 [13:22:12]RAPDU: 90 00 [13:22:12]wFMCommunicate OK [13:22:12]wFMCommunicate request_size=4 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 0D 03 02 [13:22:12]Write to MH i2c: E2 08 00 B6 0B 80 0D 03 02 00 00 00 00 3C [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 0B 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 0B 00 B6 0B 00 80 ED 7B A7 18 61 C6 8C 90 00 97 [13:22:12]RAPDU: 80 ED 7B A7 18 61 C6 8C 90 00 [13:22:12]wFMCommunicate OK [13:22:12]SAM_PROTO_SignData done [13:22:12]FM_MakeSignedData done [13:22:12]CreateOFDProtocolMessage [13:22:12]wFMCommunicate request_size=4 [13:22:12]MH_SAM_APDU [13:22:12]CAPDU: 80 11 00 00 [13:22:12]Write to MH i2c: E2 08 00 B7 0B 80 11 00 00 00 00 00 00 3C [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:12]Read from MH i2c: E2 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 17 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: E2 17 00 B7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 93 [13:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:22:12]wFMCommunicate OK [13:22:12]CreateOFDProtocolMessage done [13:22:12]OFDSenderStorePacket 139712 [13:22:12]StoreOFDPacket docnum=139712 [13:22:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F D8 07 01 5C A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 82 98 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 21 02 00 35 04 06 00 A1 AD 40 A1 BF CD 80 ED 7B A7 18 61 C6 8C [13:22:12]CheckFolder [13:22:12]dirname=/storage/ofd_packets [13:22:12]CheckFolder done [13:22:12]ProducePacketName [13:22:12]name=ofd_packets/00139712 [13:22:12]NVStorageSaveData ofd_packets/00139712 [13:22:12]File name is /storage/ofd_packets/00139712 [13:22:12]Write 301 bytes [13:22:12]NVStorageSaveData done [13:22:12]OFDSenderStorePacket done [13:22:12]KKMCreateOFDPacket done [13:22:12]NVStorageSaveData kkm_last_timestamp [13:22:12]File name is /storage/kkm_last_timestamp [13:22:12]Write 4 bytes [13:22:12]NVStorageSaveData done [13:22:12]ExternCall_PrintAddStr [13:22:12]wPrintStart [13:22:12]Write to MH i2c: 01 00 00 B8 0B C3 [13:22:12]Write i2c OK [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: 01 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: 01 07 00 [13:22:12]MH_I2C_Read... [13:22:12]Read from MH i2c: 01 07 00 B8 0B 00 00 00 00 00 FF 0F D8 [13:22:12]RasterBufferAndPrint [13:22:12]line Счет N : (1)593559 [13:22:12]line ИНН: 02508201610067 [13:22:12]line Контрольно-Кассовый Чек [13:22:12]line ПРОДАЖА [13:22:12]line ТРК (МРК, ГНК) : 42 [13:22:12]line Товар: 2710124130 [13:22:12]line Аи-92-К-5 [13:22:12]line 2.950 * 67.80 [13:22:12]line = 200.01 [13:22:12]line НДС 12% НСП 1% [13:22:12]line > о реализуемом товаре [13:22:12]line ОКРУГЛЕНИЕ: -0.01 [13:22:12]line ИТОГО: 200.00 [13:22:12]line Внесено: 200.00 [13:22:12]line СДАЧА: 0.00 [13:22:12]line НСП 1% : 1.77 [13:22:12]line НДС 12% : 21.24 [13:22:12]line Наличными: 200.00 [13:22:12]line Безнал.: 0.00 [13:22:12]line Место: АЗС № 136 "Партнер Нефть" [13:22:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:22:12]line СНО: Общий режим [13:22:12]line Чек 184 20.08.2024 13:22 [13:22:12]line Смена: 453 ФФД: 1.0 [13:22:12]line ЗНМ: 0300000067 [13:22:12]line РНМ: 0000000000092569 [13:22:12]line Версия ККМ: 001 [13:22:12]line ФМ: 0000000000871776 [13:22:12]line ФД: 139712 [13:22:12]line ФПД: 177765485756365 [13:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T132210&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139712&fm=177765485756365&tin=02508201610067®Number=0000000000092569&sum=20000 [13:22:12]OFD Sender: Processing packet 139712 [packets to send 137, broken 136] [13:22:12]ProducePacketName [13:22:12]name=ofd_packets/00139712 [13:22:12]OFD Sender: To server: pG, [13:22:12]CommunicateWithHost lk.salyk.kg:30040 [13:22:12]ConnectInit lk.salyk.kg [13:22:12]written 0, free lines is 4095 [13:22:12]Connected sock=10 [13:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F D8 07 01 5C A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 82 98 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 21 02 00 35 04 06 00 A1 AD 40 A1 BF CD 80 ED 7B A7 18 61 C6 8C [13:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C1 E7 47 00 B9 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 21 02 00 F4 03 04 00 16 3F C4 66 B6 04 01 00 00 A8 C4 89 23 2F 24 3E 8D [13:22:12]CommunicateWithHost err = 0 [13:22:12]CheckOFDResponse [13:22:12]1017 (14) - 77093643461234 [13:22:12]1041 (16) - 0000000000871776 [13:22:12]1040 (4) - 139712 [13:22:12]1012 (4) - 20.08.2024 07:00 [13:22:12]1206 (1) - 0 [13:22:12]OFD Sender: Remove packet 139712 [13:22:12]ProducePacketName [13:22:12]name=ofd_packets/00139712 [13:22:12]NVStorageDeleteData [13:22:13]Write to MH i2c: 01 00 00 E3 0B EE [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: 01 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: 01 07 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 D9 0C DA [13:22:13]RasterBufferAndPrint [13:22:13]line [13:22:13]line [13:22:13]line [13:22:13]line [13:22:13]line [13:22:13]written 0, free lines is 3296 [13:22:13]MH_Cut [13:22:13]Write to MH i2c: D1 01 00 EA 0B 01 C7 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: D1 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: D1 01 00 [13:22:13]MH_I2C_Read... [13:22:13]Read from MH i2c: D1 01 00 EA 0B 00 C6 [13:22:13]Write to MH i2c: 01 00 00 EB 0B F6 [13:22:13]Write i2c OK [13:22:13]MH_I2C_Read... [13:22:13]OFD Sender: No OFD packet to send [13:22:13]*** Cut start [13:22:13]*** Partial cut [13:22:13]*** CUTSNS_PIN = 1 [13:22:13]*** CUTSNS_PIN = 0 [13:22:13]*** Brake cut motor [13:22:14]Read from MH i2c: 01 [13:22:14]*** Stop cut motor [13:22:14]*** Cut end [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: 01 07 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: 01 07 00 EB 0B 00 00 00 00 00 FF 0F 0B [13:22:14]process_action close_receipt done [13:22:14]requested_data is exist [13:22:14]produce_requested_data [13:22:14]requested_item fm.sn is exist - process it [13:22:14]wFMCommunicate request_size=4 [13:22:14]MH_SAM_APDU [13:22:14]CAPDU: 80 11 00 00 [13:22:14]Write to MH i2c: E2 08 00 EC 0B 80 11 00 00 00 00 00 00 71 [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:14]Read from MH i2c: E2 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 17 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 17 00 EC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [13:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:22:14]wFMCommunicate OK [13:22:14]requested_item fd.num is exist - process it [13:22:14]SAM_PROTO_GetFieldsCounters [13:22:14]wFMCommunicate request_size=4 [13:22:14]MH_SAM_APDU [13:22:14]CAPDU: 80 13 00 00 [13:22:14]Write to MH i2c: E2 08 00 ED 0B 80 13 00 00 00 00 00 00 74 [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:14]Read from MH i2c: E2 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 62 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 62 00 ED 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [13:22:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:14]wFMCommunicate OK [13:22:14]SAM_PROTO_GetFieldsCounters done [13:22:14]requested_item shift.num is exist - process it [13:22:14]requested_item shift.opened is exist - process it [13:22:14]req_shift_opened [13:22:14]FM_GetShiftState [13:22:14]SAM_PROTO_GetShiftState [13:22:14]wFMCommunicate request_size=4 [13:22:14]MH_SAM_APDU [13:22:14]CAPDU: 80 13 01 00 [13:22:14]Write to MH i2c: E2 08 00 EE 0B 80 13 01 00 00 00 00 00 76 [13:22:14]Write i2c OK [13:22:14]MH_I2C_Read... [13:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:14]Read from MH i2c: E2 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 0E 00 [13:22:14]MH_I2C_Read... [13:22:14]Read from MH i2c: E2 0E 00 EE 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 07 [13:22:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:22:14]wFMCommunicate OK [13:22:14]SAM_PROTO_GetShiftState done [13:22:14]FM_GetShiftState done [13:22:14]req_shift_opened done [13:22:14]requested_item shift.open_date is exist - process it [13:22:14]req_shift_open_date [13:22:14]req_shift_open_date done [13:22:14]produce_requested_data done [13:22:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139712,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:22:14]process_action_free close_receipt [13:22:14]json_value_free [13:22:14]json_value_free done [13:22:14]process_json_proto returns [13:22:14]Send response to host [13:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139712,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:22:14]free response buf [13:22:14]execute_script done [13:22:14]execute_script returns [13:22:14]free content buf [13:22:14]Sock 9.Close socket [13:22:14]Sock 9.Thread stoped [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:43]accept exits with 8 [13:24:43]New connection [13:24:43]New thread 3067288932 created [13:24:43]Thread 3067145572 joined [13:24:43]Waiting for new connection... [13:24:43] Sock 8.Parse request [13:24:43]Sock 8.Check first char [13:24:43]Sock 8.First char is OK [13:24:43]request: POST /json_proto HTTP/1.0 [13:24:43]Method: POST [13:24:43]URL: /json_proto [13:24:43]Method is POST - this is cgi request [13:24:43]url: /json_proto [13:24:43]query_string will be loaded in cgi processing [13:24:43]execute_cgi json_proto POST (null) [13:24:43]execute_cgi path=json_proto method=POST [13:24:43]POST find Content-Length [13:24:43]Host: 172.17.45.67:8080 [13:24:43]Content-Length: 677 [13:24:43]Content-Type: application/json [13:24:43] [13:24:44]POST finish read [13:24:44]Found Content-Length = 677 [13:24:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:44]execute_script... [13:24: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)593560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:44]POST & json_proto [13:24:44]process_json_proto [13:24:44]json parsed OK: [13:24:44]protocol is kg_v1.0 [13:24:44]action value=close_receipt [13:24:44]process_action close_receipt [13:24:44]cmd_close_receipt [13:24:44]MH_GetDate [13:24:44]Write to MH i2c: F0 00 00 EF 0B E9 [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: F0 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: F0 09 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: F0 09 00 EF 0B 00 1C 99 C4 66 5F 7F 2B 66 40 [13:24:44]GetLastDocTimeStamp 1724160130 [13:24:44]current date 1724160284 [13:24:44]FM_GetShiftState [13:24:44]SAM_PROTO_GetShiftState [13:24:44]wFMCommunicate request_size=4 [13:24:44]MH_SAM_APDU [13:24:44]CAPDU: 80 13 01 00 [13:24:44]Write to MH i2c: E2 08 00 F0 0B 80 13 01 00 00 00 00 00 78 [13:24:44]Write i2c OK [13:24:44]MH_I2C_Read... [13:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:44]Read from MH i2c: E2 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 0E 00 [13:24:44]MH_I2C_Read... [13:24:44]Read from MH i2c: E2 0E 00 F0 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 09 [13:24:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:24:44]wFMCommunicate OK [13:24:44]SAM_PROTO_GetShiftState done [13:24:44]FM_GetShiftState done [13:24:44]opened in 1724113785 [13:24:44]opened+sec_in_day 1724200185 [13:24:44]quantity*price = 50036 [13:24:44]sum+1 = 50037 [13:24:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 185 20.08.2024 13:24 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139713 ФПД: 151774103578559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T132444&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139713&fm=151774103578559&tin=02508201610067®Number=0000000000092569&sum=50000 [13:24:45]StoreToDocumentArchive [13:24:45]shift 453 fd 139713 [13:24:45]save to /storage/0453/doc_00139713 [13:24:45]save last doc name /storage/0453/doc_00139713 to /storage/kkm_last_doc_name [13:24:45]save OK [13:24:45]Clear old archive folders... [13:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:45]tlvbuf is 02056470 [13:24:45]SAM_PROTO_ClearQueue [13:24:45]wFMCommunicate request_size=4 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 09 00 00 [13:24:45]Write to MH i2c: E2 08 00 FD 0B 80 09 00 00 00 00 00 00 7A [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 FD 0B 00 90 00 7C [13:24:45]RAPDU: 90 00 [13:24:45]wFMCommunicate OK [13:24:45]SAM_PROTO_ClearQueue done [13:24:45]KKMCreateOFDPacket [13:24:45]OFDProtocolAddRootSTLVToBuf [13:24:45]FM_MakeSignedData [13:24:45]FM_MakeSignedData [13:24:45]SAM_PROTO_SignData [13:24:45]wFMCommunicate request_size=4 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 0D 01 02 [13:24:45]Write to MH i2c: E2 08 00 FE 0B 80 0D 01 02 00 00 00 00 82 [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 FE 0B 00 90 00 7D [13:24:45]RAPDU: 90 00 [13:24:45]wFMCommunicate OK [13:24:45]wFMCommunicate request_size=255 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 1C 99 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 21 02 00 35 04 06 00 8A [13:24:45]Write to MH i2c: E2 02 01 FF 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 1C 99 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 21 02 00 35 04 06 00 8A 00 00 D7 [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 FF 0B 00 90 00 7E [13:24:45]RAPDU: 90 00 [13:24:45]wFMCommunicate OK [13:24:45]wFMCommunicate request_size=10 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 0D 02 02 05 09 A9 87 A7 BF [13:24:45]Write to MH i2c: E2 0D 00 00 0C 80 0D 02 02 05 00 09 A9 87 A7 BF 00 00 2F [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 03 00 00 0C 00 90 00 80 [13:24:45]RAPDU: 90 00 [13:24:45]wFMCommunicate OK [13:24:45]wFMCommunicate request_size=4 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 0D 03 02 [13:24:45]Write to MH i2c: E2 08 00 01 0C 80 0D 03 02 00 00 00 00 88 [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 0B 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 0B 00 01 0C 00 BF 09 D3 00 AC A2 DD 82 90 00 D1 [13:24:45]RAPDU: BF 09 D3 00 AC A2 DD 82 90 00 [13:24:45]wFMCommunicate OK [13:24:45]SAM_PROTO_SignData done [13:24:45]FM_MakeSignedData done [13:24:45]CreateOFDProtocolMessage [13:24:45]wFMCommunicate request_size=4 [13:24:45]MH_SAM_APDU [13:24:45]CAPDU: 80 11 00 00 [13:24:45]Write to MH i2c: E2 08 00 02 0C 80 11 00 00 00 00 00 00 88 [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:45]Read from MH i2c: E2 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 17 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: E2 17 00 02 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [13:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:24:45]wFMCommunicate OK [13:24:45]CreateOFDProtocolMessage done [13:24:45]OFDSenderStorePacket 139713 [13:24:45]StoreOFDPacket docnum=139713 [13:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B4 B6 07 01 5F 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 1C 99 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 21 02 00 35 04 06 00 8A 09 A9 87 A7 BF BF 09 D3 00 AC A2 DD 82 [13:24:45]CheckFolder [13:24:45]dirname=/storage/ofd_packets [13:24:45]CheckFolder done [13:24:45]ProducePacketName [13:24:45]name=ofd_packets/00139713 [13:24:45]NVStorageSaveData ofd_packets/00139713 [13:24:45]File name is /storage/ofd_packets/00139713 [13:24:45]Write 301 bytes [13:24:45]NVStorageSaveData done [13:24:45]OFDSenderStorePacket done [13:24:45]KKMCreateOFDPacket done [13:24:45]NVStorageSaveData kkm_last_timestamp [13:24:45]File name is /storage/kkm_last_timestamp [13:24:45]Write 4 bytes [13:24:45]NVStorageSaveData done [13:24:45]ExternCall_PrintAddStr [13:24:45]wPrintStart [13:24:45]Write to MH i2c: 01 00 00 03 0C 0F [13:24:45]Write i2c OK [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: 01 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: 01 07 00 [13:24:45]MH_I2C_Read... [13:24:45]Read from MH i2c: 01 07 00 03 0C 00 00 00 00 00 FF 0F 24 [13:24:45]RasterBufferAndPrint [13:24:45]line Счет N : (1)593560 [13:24:45]line ИНН: 02508201610067 [13:24:45]line Контрольно-Кассовый Чек [13:24:45]line ПРОДАЖА [13:24:45]line ТРК (МРК, ГНК) : 52 [13:24:45]line Товар: 2710124130 [13:24:45]line Аи-92-К-5 [13:24:45]line 7.380 * 67.80 [13:24:45]line = 500.36 [13:24:45]line НДС 12% НСП 1% [13:24:45]line > о реализуемом товаре [13:24:45]line ОКРУГЛЕНИЕ: -0.36 [13:24:45]line ИТОГО: 500.00 [13:24:45]line Внесено: 500.00 [13:24:45]line СДАЧА: 0.00 [13:24:45]line НСП 1% : 4.43 [13:24:45]line НДС 12% : 53.14 [13:24:45]line Наличными: 500.00 [13:24:45]line Безнал.: 0.00 [13:24:45]line Место: АЗС № 136 "Партнер Нефть" [13:24:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:24:45]line СНО: Общий режим [13:24:45]line Чек 185 20.08.2024 13:24 [13:24:45]line Смена: 453 ФФД: 1.0 [13:24:45]line ЗНМ: 0300000067 [13:24:45]line РНМ: 0000000000092569 [13:24:45]line Версия ККМ: 001 [13:24:45]line ФМ: 0000000000871776 [13:24:45]line ФД: 139713 [13:24:45]line ФПД: 151774103578559 [13:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T132444&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139713&fm=151774103578559&tin=02508201610067®Number=0000000000092569&sum=50000 [13:24:45]written 0, free lines is 4095 [13:24:45]OFD Sender: Processing packet 139713 [packets to send 137, broken 136] [13:24:45]ProducePacketName [13:24:45]name=ofd_packets/00139713 [13:24:45]OFD Sender: To server: pG, [13:24:45]CommunicateWithHost lk.salyk.kg:30040 [13:24:45]ConnectInit lk.salyk.kg [13:24:45]Connected sock=9 [13:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B4 B6 07 01 5F 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 1C 99 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 21 02 00 35 04 06 00 8A 09 A9 87 A7 BF BF 09 D3 00 AC A2 DD 82 [13:24:46]Write to MH i2c: 01 00 00 2E 0C 3A [13:24:46]Write i2c OK [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: 01 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: 01 07 00 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: 01 07 00 2E 0C 00 00 00 00 00 D4 0C 21 [13:24:46]RasterBufferAndPrint [13:24:46]line [13:24:46]line [13:24:46]line [13:24:46]line [13:24:46]line [13:24:46]written 0, free lines is 3292 [13:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2B 7A 47 00 DD E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 21 02 00 F4 03 04 00 AF 3F C4 66 B6 04 01 00 00 5A 26 A7 DF 7E E9 D2 E9 [13:24:46]CommunicateWithHost err = 0 [13:24:46]CheckOFDResponse [13:24:46]1017 (14) - 77093643461234 [13:24:46]1041 (16) - 0000000000871776 [13:24:46]1040 (4) - 139713 [13:24:46]1012 (4) - 20.08.2024 07:03 [13:24:46]1206 (1) - 0 [13:24:46]OFD Sender: Remove packet 139713 [13:24:46]ProducePacketName [13:24:46]name=ofd_packets/00139713 [13:24:46]NVStorageDeleteData [13:24:46]MH_Cut [13:24:46]Write to MH i2c: D1 01 00 35 0C 01 13 [13:24:46]Write i2c OK [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: D1 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: D1 01 00 [13:24:46]MH_I2C_Read... [13:24:46]Read from MH i2c: D1 01 00 35 0C 00 12 [13:24:46]Write to MH i2c: 01 00 00 36 0C 42 [13:24:46]Write i2c OK [13:24:46]MH_I2C_Read... [13:24:46]OFD Sender: No OFD packet to send [13:24:46]*** Cut start [13:24:46]*** Partial cut [13:24:46]*** CUTSNS_PIN = 1 [13:24:46]*** CUTSNS_PIN = 0 [13:24:47]*** Brake cut motor [13:24:47]Read from MH i2c: 01 [13:24:47]MH_I2C_Read... [13:24:47]*** Stop cut motor [13:24:47]*** Cut end [13:24:47]Read from MH i2c: 01 07 00 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: 01 07 00 36 0C 00 00 00 00 00 FF 0F 57 [13:24:47]process_action close_receipt done [13:24:47]requested_data is exist [13:24:47]produce_requested_data [13:24:47]requested_item fm.sn is exist - process it [13:24:47]wFMCommunicate request_size=4 [13:24:47]MH_SAM_APDU [13:24:47]CAPDU: 80 11 00 00 [13:24:47]Write to MH i2c: E2 08 00 37 0C 80 11 00 00 00 00 00 00 BD [13:24:47]Write i2c OK [13:24:47]MH_I2C_Read... [13:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:47]Read from MH i2c: E2 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 17 00 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 17 00 37 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [13:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:24:47]wFMCommunicate OK [13:24:47]requested_item fd.num is exist - process it [13:24:47]SAM_PROTO_GetFieldsCounters [13:24:47]wFMCommunicate request_size=4 [13:24:47]MH_SAM_APDU [13:24:47]CAPDU: 80 13 00 00 [13:24:47]Write to MH i2c: E2 08 00 38 0C 80 13 00 00 00 00 00 00 C0 [13:24:47]Write i2c OK [13:24:47]MH_I2C_Read... [13:24:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:47]Read from MH i2c: E2 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 62 00 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 62 00 38 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [13:24:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:47]wFMCommunicate OK [13:24:47]SAM_PROTO_GetFieldsCounters done [13:24:47]requested_item shift.num is exist - process it [13:24:47]requested_item shift.opened is exist - process it [13:24:47]req_shift_opened [13:24:47]FM_GetShiftState [13:24:47]SAM_PROTO_GetShiftState [13:24:47]wFMCommunicate request_size=4 [13:24:47]MH_SAM_APDU [13:24:47]CAPDU: 80 13 01 00 [13:24:47]Write to MH i2c: E2 08 00 39 0C 80 13 01 00 00 00 00 00 C2 [13:24:47]Write i2c OK [13:24:47]MH_I2C_Read... [13:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:47]Read from MH i2c: E2 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 0E 00 [13:24:47]MH_I2C_Read... [13:24:47]Read from MH i2c: E2 0E 00 39 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 53 [13:24:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:24:47]wFMCommunicate OK [13:24:47]SAM_PROTO_GetShiftState done [13:24:47]FM_GetShiftState done [13:24:47]req_shift_opened done [13:24:47]requested_item shift.open_date is exist - process it [13:24:47]req_shift_open_date [13:24:47]req_shift_open_date done [13:24:47]produce_requested_data done [13:24:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139713,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:24:47]process_action_free close_receipt [13:24:47]json_value_free [13:24:47]json_value_free done [13:24:47]process_json_proto returns [13:24:47]Send response to host [13:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139713,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:24:47]free response buf [13:24:47]execute_script done [13:24:47]execute_script returns [13:24:47]free content buf [13:24:47]Sock 8.Close socket [13:24:47]Sock 8.Thread stoped [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:01]accept exits with 10 [13:29:01]New connection [13:29:01]New thread 3067145572 created [13:29:01]Thread 3067288932 joined [13:29:01]Waiting for new connection... [13:29:01] Sock 10.Parse request [13:29:01]Sock 10.Check first char [13:29:01]Sock 10.First char is OK [13:29:01]request: POST /json_proto HTTP/1.0 [13:29:01]Method: POST [13:29:01]URL: /json_proto [13:29:01]Method is POST - this is cgi request [13:29:01]url: /json_proto [13:29:01]query_string will be loaded in cgi processing [13:29:01]execute_cgi json_proto POST (null) [13:29:01]execute_cgi path=json_proto method=POST [13:29:01]POST find Content-Length [13:29:01]Host: 172.17.45.67:8080 [13:29:01]Content-Length: 682 [13:29:01]Content-Type: application/json [13:29:01] [13:29:01]POST finish read [13:29:01]Found Content-Length = 682 [13:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:01]execute_script... [13:29: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)593561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:01]POST & json_proto [13:29:01]process_json_proto [13:29:01]json parsed OK: [13:29:01]protocol is kg_v1.0 [13:29:01]action value=close_receipt [13:29:01]process_action close_receipt [13:29:01]cmd_close_receipt [13:29:01]MH_GetDate [13:29:01]Write to MH i2c: F0 00 00 3A 0C 35 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: F0 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: F0 09 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: F0 09 00 3A 0C 00 1D 9A C4 66 5F 7F 2B 66 8E [13:29:01]GetLastDocTimeStamp 1724160284 [13:29:01]current date 1724160541 [13:29:01]FM_GetShiftState [13:29:01]SAM_PROTO_GetShiftState [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 13 01 00 [13:29:01]Write to MH i2c: E2 08 00 3B 0C 80 13 01 00 00 00 00 00 C4 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 3B 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 55 [13:29:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_GetShiftState done [13:29:01]FM_GetShiftState done [13:29:01]opened in 1724113785 [13:29:01]opened+sec_in_day 1724200185 [13:29:01]quantity*price = 100021 [13:29:01]sum+1 = 100023 [13:29: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 186 20.08.2024 13:29 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139714 ФПД: 63848898826334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T132902&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139714&fm=63848898826334&tin=02508201610067®Number=0000000000092569&sum=100000 [13:29:02]StoreToDocumentArchive [13:29:02]shift 453 fd 139714 [13:29:02]save to /storage/0453/doc_00139714 [13:29:02]save last doc name /storage/0453/doc_00139714 to /storage/kkm_last_doc_name [13:29:02]save OK [13:29:02]Clear old archive folders... [13:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:02]tlvbuf is 0200F460 [13:29:02]SAM_PROTO_ClearQueue [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 09 00 00 [13:29:02]Write to MH i2c: E2 08 00 48 0C 80 09 00 00 00 00 00 00 C6 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 48 0C 00 90 00 C8 [13:29:02]RAPDU: 90 00 [13:29:02]wFMCommunicate OK [13:29:02]SAM_PROTO_ClearQueue done [13:29:02]KKMCreateOFDPacket [13:29:02]OFDProtocolAddRootSTLVToBuf [13:29:02]FM_MakeSignedData [13:29:02]FM_MakeSignedData [13:29:02]SAM_PROTO_SignData [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 0D 01 02 [13:29:02]Write to MH i2c: E2 08 00 49 0C 80 0D 01 02 00 00 00 00 CE [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [13:29:02]RAPDU: 90 00 [13:29:02]wFMCommunicate OK [13:29:02]wFMCommunicate request_size=255 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 BA 00 00 00 F4 03 04 00 1E 9A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 21 02 00 35 04 06 00 3A [13:29:02]Write to MH i2c: E2 02 01 4A 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1E 9A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 21 02 00 35 04 06 00 3A 00 00 05 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [13:29:03]RAPDU: 90 00 [13:29:03]wFMCommunicate OK [13:29:03]wFMCommunicate request_size=10 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 0D 02 02 05 11 FA EF 10 5E [13:29:03]Write to MH i2c: E2 0D 00 4B 0C 80 0D 02 02 05 00 11 FA EF 10 5E 00 00 43 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 4B 0C 00 90 00 CB [13:29:03]RAPDU: 90 00 [13:29:03]wFMCommunicate OK [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 0D 03 02 [13:29:03]Write to MH i2c: E2 08 00 4C 0C 80 0D 03 02 00 00 00 00 D3 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0B 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0B 00 4C 0C 00 47 B7 D4 8E DB 2C 2C B8 90 00 1F [13:29:03]RAPDU: 47 B7 D4 8E DB 2C 2C B8 90 00 [13:29:03]wFMCommunicate OK [13:29:03]SAM_PROTO_SignData done [13:29:03]FM_MakeSignedData done [13:29:03]CreateOFDProtocolMessage [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 4D 0C 80 11 00 00 00 00 00 00 D3 [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 4D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [13:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:29:03]wFMCommunicate OK [13:29:03]CreateOFDProtocolMessage done [13:29:03]OFDSenderStorePacket 139714 [13:29:03]StoreOFDPacket docnum=139714 [13:29:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D8 19 07 01 B8 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 BA 00 00 00 F4 03 04 00 1E 9A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 21 02 00 35 04 06 00 3A 11 FA EF 10 5E 47 B7 D4 8E DB 2C 2C B8 [13:29:03]CheckFolder [13:29:03]dirname=/storage/ofd_packets [13:29:03]CheckFolder done [13:29:03]ProducePacketName [13:29:03]name=ofd_packets/00139714 [13:29:03]NVStorageSaveData ofd_packets/00139714 [13:29:03]File name is /storage/ofd_packets/00139714 [13:29:03]Write 301 bytes [13:29:03]NVStorageSaveData done [13:29:03]OFDSenderStorePacket done [13:29:03]KKMCreateOFDPacket done [13:29:03]NVStorageSaveData kkm_last_timestamp [13:29:03]File name is /storage/kkm_last_timestamp [13:29:03]Write 4 bytes [13:29:03]NVStorageSaveData done [13:29:03]ExternCall_PrintAddStr [13:29:03]wPrintStart [13:29:03]Write to MH i2c: 01 00 00 4E 0C 5A [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 [13:29:03]MH_I2C_Read... [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 4E 0C 00 00 00 00 00 FF 0F 6F [13:29:03]RasterBufferAndPrint [13:29:03]line Счет N : (1)593561 [13:29:03]line ИНН: 02508201610067 [13:29:03]line Контрольно-Кассовый Чек [13:29:03]line ПРОДАЖА [13:29:03]line ТРК (МРК, ГНК) : 41 [13:29:03]line Товар: 2710124500 [13:29:03]line Аи-95-К-5 [13:29:03]line 13.480 * 74.20 [13:29:03]line = 1000.22 [13:29:03]line НДС 12% НСП 1% [13:29:03]line > о реализуемом товаре [13:29:03]line ОКРУГЛЕНИЕ: -0.22 [13:29:03]line ИТОГО: 1000.00 [13:29:03]line Внесено: 1000.00 [13:29:03]line СДАЧА: 0.00 [13:29:03]line НСП 1% : 8.85 [13:29:03]line НДС 12% : 106.22 [13:29:03]line Наличными: 1000.00 [13:29:03]line Безнал.: 0.00 [13:29:03]line Место: АЗС № 136 "Партнер Нефть" [13:29:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:29:03]line СНО: Общий режим [13:29:03]line Чек 186 20.08.2024 13:29 [13:29:03]line Смена: 453 ФФД: 1.0 [13:29:03]line ЗНМ: 0300000067 [13:29:03]line РНМ: 0000000000092569 [13:29:03]line Версия ККМ: 001 [13:29:03]line ФМ: 0000000000871776 [13:29:03]line ФД: 139714 [13:29:03]line ФПД: 63848898826334 [13:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T132902&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139714&fm=63848898826334&tin=02508201610067®Number=0000000000092569&sum=100000 [13:29:03]OFD Sender: Processing packet 139714 [packets to send 137, broken 136] [13:29:03]ProducePacketName [13:29:03]name=ofd_packets/00139714 [13:29:03]OFD Sender: To server: pG, [13:29:03]CommunicateWithHost lk.salyk.kg:30040 [13:29:03]ConnectInit lk.salyk.kg [13:29:03]written 0, free lines is 4095 [13:29:03]Connected sock=8 [13:29:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D8 19 07 01 B8 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 BA 00 00 00 F4 03 04 00 1E 9A C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 21 02 00 35 04 06 00 3A 11 FA EF 10 5E 47 B7 D4 8E DB 2C 2C B8 [13:29:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8B 0B 47 00 B4 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 21 02 00 F4 03 04 00 B1 40 C4 66 B6 04 01 00 00 3F E6 67 3F 5A 1F FD 5C [13:29:04]CommunicateWithHost err = 0 [13:29:04]CheckOFDResponse [13:29:04]1017 (14) - 77093643461234 [13:29:04]1041 (16) - 0000000000871776 [13:29:04]1040 (4) - 139714 [13:29:04]1012 (4) - 20.08.2024 07:07 [13:29:04]1206 (1) - 0 [13:29:04]OFD Sender: Remove packet 139714 [13:29:04]ProducePacketName [13:29:04]name=ofd_packets/00139714 [13:29:04]NVStorageDeleteData [13:29:04]Write to MH i2c: 01 00 00 79 0C 85 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 79 0C 00 00 00 00 00 F4 0C 8C [13:29:04]RasterBufferAndPrint [13:29:04]line [13:29:04]line [13:29:04]line [13:29:04]line [13:29:04]line [13:29:04]written 0, free lines is 3323 [13:29:04]MH_Cut [13:29:04]Write to MH i2c: D1 01 00 80 0C 01 5E [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: D1 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: D1 01 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: D1 01 00 80 0C 00 5D [13:29:04]Write to MH i2c: 01 00 00 81 0C 8D [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]OFD Sender: No OFD packet to send [13:29:04]*** Cut start [13:29:04]*** Partial cut [13:29:04]*** CUTSNS_PIN = 1 [13:29:04]*** CUTSNS_PIN = 0 [13:29:05]*** Brake cut motor [13:29:05]Read from MH i2c: 01 [13:29:05]MH_I2C_Read... [13:29:05]*** Stop cut motor [13:29:05]*** Cut end [13:29:05]Read from MH i2c: 01 07 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: 01 07 00 81 0C 00 00 00 00 00 FF 0F A2 [13:29:05]process_action close_receipt done [13:29:05]requested_data is exist [13:29:05]produce_requested_data [13:29:05]requested_item fm.sn is exist - process it [13:29:05]wFMCommunicate request_size=4 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 11 00 00 [13:29:05]Write to MH i2c: E2 08 00 82 0C 80 11 00 00 00 00 00 00 08 [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 17 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 17 00 82 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [13:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:29:05]wFMCommunicate OK [13:29:05]requested_item fd.num is exist - process it [13:29:05]SAM_PROTO_GetFieldsCounters [13:29:05]wFMCommunicate request_size=4 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 13 00 00 [13:29:05]Write to MH i2c: E2 08 00 83 0C 80 13 00 00 00 00 00 00 0B [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 62 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 62 00 83 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [13:29:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:05]wFMCommunicate OK [13:29:05]SAM_PROTO_GetFieldsCounters done [13:29:05]requested_item shift.num is exist - process it [13:29:05]requested_item shift.opened is exist - process it [13:29:05]req_shift_opened [13:29:05]FM_GetShiftState [13:29:05]SAM_PROTO_GetShiftState [13:29:05]wFMCommunicate request_size=4 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 13 01 00 [13:29:05]Write to MH i2c: E2 08 00 84 0C 80 13 01 00 00 00 00 00 0D [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 0E 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 0E 00 84 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9E [13:29:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:29:05]wFMCommunicate OK [13:29:05]SAM_PROTO_GetShiftState done [13:29:05]FM_GetShiftState done [13:29:05]req_shift_opened done [13:29:05]requested_item shift.open_date is exist - process it [13:29:05]req_shift_open_date [13:29:05]req_shift_open_date done [13:29:05]produce_requested_data done [13:29:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139714,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:29:05]process_action_free close_receipt [13:29:05]json_value_free [13:29:05]json_value_free done [13:29:05]process_json_proto returns [13:29:05]Send response to host [13:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139714,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:29:05]free response buf [13:29:05]execute_script done [13:29:05]execute_script returns [13:29:05]free content buf [13:29:05]Sock 10.Close socket [13:29:05]Sock 10.Thread stoped [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:55]accept exits with 9 [13:32:55]New connection [13:32:55]New thread 3067288932 created [13:32:55]Thread 3067145572 joined [13:32:55]Waiting for new connection... [13:32:55] Sock 9.Parse request [13:32:55]Sock 9.Check first char [13:32:55]Sock 9.First char is OK [13:32:55]request: POST /json_proto HTTP/1.0 [13:32:55]Method: POST [13:32:55]URL: /json_proto [13:32:55]Method is POST - this is cgi request [13:32:55]url: /json_proto [13:32:55]query_string will be loaded in cgi processing [13:32:55]execute_cgi json_proto POST (null) [13:32:55]execute_cgi path=json_proto method=POST [13:32:55]POST find Content-Length [13:32:55]Host: 172.17.45.67:8080 [13:32:55]Content-Length: 658 [13:32:55]Content-Type: application/json [13:32:55] [13:32:55]POST finish read [13:32:55]Found Content-Length = 658 [13:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:55]execute_script... [13:32: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)593562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:55]POST & json_proto [13:32:55]process_json_proto [13:32:55]json parsed OK: [13:32:55]protocol is kg_v1.0 [13:32:55]action value=close_receipt [13:32:55]process_action close_receipt [13:32:55]cmd_close_receipt [13:32:55]MH_GetDate [13:32:55]Write to MH i2c: F0 00 00 85 0C 80 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: F0 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: F0 09 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: F0 09 00 85 0C 00 07 9B C4 66 5F 7F 2B 66 C4 [13:32:55]GetLastDocTimeStamp 1724160542 [13:32:55]current date 1724160775 [13:32:55]FM_GetShiftState [13:32:55]SAM_PROTO_GetShiftState [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 13 01 00 [13:32:55]Write to MH i2c: E2 08 00 86 0C 80 13 01 00 00 00 00 00 0F [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 0E 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 0E 00 86 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A0 [13:32:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:32:55]wFMCommunicate OK [13:32:55]SAM_PROTO_GetShiftState done [13:32:55]FM_GetShiftState done [13:32:55]opened in 1724113785 [13:32:55]opened+sec_in_day 1724200185 [13:32:55]quantity*price = 50017 [13:32:55]sum+1 = 50019 [13:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 187 20.08.2024 13:32 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139715 ФПД: 224648404682437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133255&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139715&fm=224648404682437&tin=02508201610067®Number=0000000000092569&sum=50000 [13:32:56]StoreToDocumentArchive [13:32:56]shift 453 fd 139715 [13:32:56]save to /storage/0453/doc_00139715 [13:32:56]save last doc name /storage/0453/doc_00139715 to /storage/kkm_last_doc_name [13:32:56]save OK [13:32:56]Clear old archive folders... [13:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:32:56]tlvbuf is 0200F300 [13:32:56]SAM_PROTO_ClearQueue [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 09 00 00 [13:32:56]Write to MH i2c: E2 08 00 93 0C 80 09 00 00 00 00 00 00 11 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [13:32:56]RAPDU: 90 00 [13:32:56]wFMCommunicate OK [13:32:56]SAM_PROTO_ClearQueue done [13:32:56]KKMCreateOFDPacket [13:32:56]OFDProtocolAddRootSTLVToBuf [13:32:56]FM_MakeSignedData [13:32:56]FM_MakeSignedData [13:32:56]SAM_PROTO_SignData [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 0D 01 02 [13:32:56]Write to MH i2c: E2 08 00 94 0C 80 0D 01 02 00 00 00 00 19 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [13:32:56]RAPDU: 90 00 [13:32:56]wFMCommunicate OK [13:32:56]wFMCommunicate request_size=253 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 07 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 21 02 00 35 04 06 00 CC 51 08 5C 46 C5 [13:32:56]Write to MH i2c: E2 00 01 95 0C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 07 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 21 02 00 35 04 06 00 CC 51 08 5C 46 C5 00 00 F1 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 95 0C 00 90 00 15 [13:32:56]RAPDU: 90 00 [13:32:56]wFMCommunicate OK [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 0D 03 02 [13:32:56]Write to MH i2c: E2 08 00 96 0C 80 0D 03 02 00 00 00 00 1D [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0B 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0B 00 96 0C 00 6F AB FF CD 1D 7E 3A 06 90 00 DF [13:32:56]RAPDU: 6F AB FF CD 1D 7E 3A 06 90 00 [13:32:56]wFMCommunicate OK [13:32:56]SAM_PROTO_SignData done [13:32:56]FM_MakeSignedData done [13:32:56]CreateOFDProtocolMessage [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 11 00 00 [13:32:56]Write to MH i2c: E2 08 00 97 0C 80 11 00 00 00 00 00 00 1D [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 17 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 17 00 97 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [13:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:32:56]wFMCommunicate OK [13:32:56]CreateOFDProtocolMessage done [13:32:56]OFDSenderStorePacket 139715 [13:32:56]StoreOFDPacket docnum=139715 [13:32:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 9F 7D 00 01 E1 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 07 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 21 02 00 35 04 06 00 CC 51 08 5C 46 C5 6F AB FF CD 1D 7E 3A 06 [13:32:56]CheckFolder [13:32:56]dirname=/storage/ofd_packets [13:32:56]CheckFolder done [13:32:56]ProducePacketName [13:32:56]name=ofd_packets/00139715 [13:32:56]NVStorageSaveData ofd_packets/00139715 [13:32:56]File name is /storage/ofd_packets/00139715 [13:32:56]Write 294 bytes [13:32:56]NVStorageSaveData done [13:32:56]OFDSenderStorePacket done [13:32:56]KKMCreateOFDPacket done [13:32:56]NVStorageSaveData kkm_last_timestamp [13:32:56]File name is /storage/kkm_last_timestamp [13:32:56]Write 4 bytes [13:32:56]NVStorageSaveData done [13:32:56]ExternCall_PrintAddStr [13:32:56]wPrintStart [13:32:56]Write to MH i2c: 01 00 00 98 0C A4 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 98 0C 00 00 00 00 00 FF 0F B9 [13:32:56]RasterBufferAndPrint [13:32:56]line Счет N : (1)593562 [13:32:56]line ИНН: 02508201610067 [13:32:56]line Контрольно-Кассовый Чек [13:32:56]line ПРОДАЖА [13:32:56]line ТРК (МРК, ГНК) : 43 [13:32:56]line Товар: 2710124130 [13:32:56]line SU-92 [13:32:56]line 7.270 * 68.80 [13:32:56]line = 500.18 [13:32:56]line НДС 12% НСП 1% [13:32:56]line > о реализуемом товаре [13:32:56]line ОКРУГЛЕНИЕ: -0.18 [13:32:56]line ИТОГО: 500.00 [13:32:56]line Внесено: 500.00 [13:32:56]line СДАЧА: 0.00 [13:32:56]line НСП 1% : 4.43 [13:32:56]line НДС 12% : 53.12 [13:32:56]line Наличными: 500.00 [13:32:56]line Безнал.: 0.00 [13:32:56]line Место: АЗС № 136 "Партнер Нефть" [13:32:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:32:56]line СНО: Общий режим [13:32:56]line Чек 187 20.08.2024 13:32 [13:32:56]line Смена: 453 ФФД: 1.0 [13:32:56]line ЗНМ: 0300000067 [13:32:56]line РНМ: 0000000000092569 [13:32:56]line Версия ККМ: 001 [13:32:56]line ФМ: 0000000000871776 [13:32:56]line ФД: 139715 [13:32:56]line ФПД: 224648404682437 [13:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133255&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139715&fm=224648404682437&tin=02508201610067®Number=0000000000092569&sum=50000 [13:32:57]OFD Sender: Processing packet 139715 [packets to send 137, broken 136] [13:32:57]ProducePacketName [13:32:57]name=ofd_packets/00139715 [13:32:57]OFD Sender: To server: pG, [13:32:57]CommunicateWithHost lk.salyk.kg:30040 [13:32:57]ConnectInit lk.salyk.kg [13:32:57]written 0, free lines is 4095 [13:32:57]Connected sock=10 [13:32:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 9F 7D 00 01 E1 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 07 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 21 02 00 35 04 06 00 CC 51 08 5C 46 C5 6F AB FF CD 1D 7E 3A 06 [13:32:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 89 59 47 00 60 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 21 02 00 F4 03 04 00 9A 41 C4 66 B6 04 01 00 00 04 13 77 3D 3F 09 28 40 [13:32:57]CommunicateWithHost err = 0 [13:32:57]CheckOFDResponse [13:32:57]1017 (14) - 77093643461234 [13:32:57]1041 (16) - 0000000000871776 [13:32:57]1040 (4) - 139715 [13:32:57]1012 (4) - 20.08.2024 07:11 [13:32:57]1206 (1) - 0 [13:32:57]OFD Sender: Remove packet 139715 [13:32:57]ProducePacketName [13:32:57]name=ofd_packets/00139715 [13:32:57]NVStorageDeleteData [13:32:57]Write to MH i2c: 01 00 00 C3 0C CF [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: 01 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: 01 07 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: 01 07 00 C3 0C 00 00 00 00 00 E2 0C C4 [13:32:57]RasterBufferAndPrint [13:32:57]line [13:32:57]line [13:32:57]line [13:32:57]line [13:32:57]line [13:32:57]written 0, free lines is 3304 [13:32:57]MH_Cut [13:32:57]Write to MH i2c: D1 01 00 CA 0C 01 A8 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: D1 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: D1 01 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: D1 01 00 CA 0C 00 A7 [13:32:57]Write to MH i2c: 01 00 00 CB 0C D7 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:58]OFD Sender: No OFD packet to send [13:32:58]*** Cut start [13:32:58]*** Partial cut [13:32:58]*** CUTSNS_PIN = 1 [13:32:58]*** CUTSNS_PIN = 0 [13:32:58]*** Brake cut motor [13:32:59]Read from MH i2c: 01 [13:32:59]MH_I2C_Read... [13:32:59]*** Stop cut motor [13:32:59]*** Cut end [13:32:59]Read from MH i2c: 01 07 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: 01 07 00 CB 0C 00 00 00 00 00 FF 0F EC [13:32:59]process_action close_receipt done [13:32:59]requested_data is exist [13:32:59]produce_requested_data [13:32:59]requested_item fm.sn is exist - process it [13:32:59]wFMCommunicate request_size=4 [13:32:59]MH_SAM_APDU [13:32:59]CAPDU: 80 11 00 00 [13:32:59]Write to MH i2c: E2 08 00 CC 0C 80 11 00 00 00 00 00 00 52 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:59]Read from MH i2c: E2 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 17 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 17 00 CC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [13:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:32:59]wFMCommunicate OK [13:32:59]requested_item fd.num is exist - process it [13:32:59]SAM_PROTO_GetFieldsCounters [13:32:59]wFMCommunicate request_size=4 [13:32:59]MH_SAM_APDU [13:32:59]CAPDU: 80 13 00 00 [13:32:59]Write to MH i2c: E2 08 00 CD 0C 80 13 00 00 00 00 00 00 55 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:59]Read from MH i2c: E2 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 62 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 62 00 CD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [13:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:59]wFMCommunicate OK [13:32:59]SAM_PROTO_GetFieldsCounters done [13:32:59]requested_item shift.num is exist - process it [13:32:59]requested_item shift.opened is exist - process it [13:32:59]req_shift_opened [13:32:59]FM_GetShiftState [13:32:59]SAM_PROTO_GetShiftState [13:32:59]wFMCommunicate request_size=4 [13:32:59]MH_SAM_APDU [13:32:59]CAPDU: 80 13 01 00 [13:32:59]Write to MH i2c: E2 08 00 CE 0C 80 13 01 00 00 00 00 00 57 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:59]Read from MH i2c: E2 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 0E 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 0E 00 CE 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E8 [13:32:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:32:59]wFMCommunicate OK [13:32:59]SAM_PROTO_GetShiftState done [13:32:59]FM_GetShiftState done [13:32:59]req_shift_opened done [13:32:59]requested_item shift.open_date is exist - process it [13:32:59]req_shift_open_date [13:32:59]req_shift_open_date done [13:32:59]produce_requested_data done [13:32:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139715,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:32:59]process_action_free close_receipt [13:32:59]json_value_free [13:32:59]json_value_free done [13:32:59]process_json_proto returns [13:32:59]Send response to host [13:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139715,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:32:59]free response buf [13:32:59]execute_script done [13:32:59]execute_script returns [13:32:59]free content buf [13:32:59]Sock 9.Close socket [13:32:59]Sock 9.Thread stoped [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:42]accept exits with 8 [13:34:42]New connection [13:34:42]New thread 3067145572 created [13:34:42]Thread 3067288932 joined [13:34:42]Waiting for new connection... [13:34:42] Sock 8.Parse request [13:34:42]Sock 8.Check first char [13:34:42]Sock 8.First char is OK [13:34:42]request: POST /json_proto HTTP/1.0 [13:34:42]Method: POST [13:34:42]URL: /json_proto [13:34:42]Method is POST - this is cgi request [13:34:42]url: /json_proto [13:34:42]query_string will be loaded in cgi processing [13:34:42]execute_cgi json_proto POST (null) [13:34:42]execute_cgi path=json_proto method=POST [13:34:42]POST find Content-Length [13:34:42]Host: 172.17.45.67:8080 [13:34:42]Content-Length: 677 [13:34:42]Content-Type: application/json [13:34:42] [13:34:42]POST finish read [13:34:42]Found Content-Length = 677 [13:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:42]execute_script... [13:34: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)593564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:42]POST & json_proto [13:34:42]process_json_proto [13:34:42]json parsed OK: [13:34:42]protocol is kg_v1.0 [13:34:42]action value=close_receipt [13:34:42]process_action close_receipt [13:34:42]cmd_close_receipt [13:34:42]MH_GetDate [13:34:42]Write to MH i2c: F0 00 00 CF 0C CA [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: F0 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: F0 09 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: F0 09 00 CF 0C 00 72 9B C4 66 5F 7F 2B 66 79 [13:34:42]GetLastDocTimeStamp 1724160775 [13:34:42]current date 1724160882 [13:34:42]FM_GetShiftState [13:34:42]SAM_PROTO_GetShiftState [13:34:42]wFMCommunicate request_size=4 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 13 01 00 [13:34:42]Write to MH i2c: E2 08 00 D0 0C 80 13 01 00 00 00 00 00 59 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 0E 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 0E 00 D0 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EA [13:34:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:34:42]wFMCommunicate OK [13:34:42]SAM_PROTO_GetShiftState done [13:34:42]FM_GetShiftState done [13:34:42]opened in 1724113785 [13:34:42]opened+sec_in_day 1724200185 [13:34:42]quantity*price = 50036 [13:34:42]sum+1 = 50037 [13:34:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 188 20.08.2024 13:34 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139716 ФПД: 213406801068865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139716&fm=213406801068865&tin=02508201610067®Number=0000000000092569&sum=50000 [13:34:43]StoreToDocumentArchive [13:34:43]shift 453 fd 139716 [13:34:43]save to /storage/0453/doc_00139716 [13:34:43]save last doc name /storage/0453/doc_00139716 to /storage/kkm_last_doc_name [13:34:43]save OK [13:34:43]Clear old archive folders... [13:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:43]tlvbuf is 01FC3C70 [13:34:43]SAM_PROTO_ClearQueue [13:34:43]wFMCommunicate request_size=4 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 09 00 00 [13:34:43]Write to MH i2c: E2 08 00 DD 0C 80 09 00 00 00 00 00 00 5B [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 DD 0C 00 90 00 5D [13:34:43]RAPDU: 90 00 [13:34:43]wFMCommunicate OK [13:34:43]SAM_PROTO_ClearQueue done [13:34:43]KKMCreateOFDPacket [13:34:43]OFDProtocolAddRootSTLVToBuf [13:34:43]FM_MakeSignedData [13:34:43]FM_MakeSignedData [13:34:43]SAM_PROTO_SignData [13:34:43]wFMCommunicate request_size=4 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 0D 01 02 [13:34:43]Write to MH i2c: E2 08 00 DE 0C 80 0D 01 02 00 00 00 00 63 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 DE 0C 00 90 00 5E [13:34:43]RAPDU: 90 00 [13:34:43]wFMCommunicate OK [13:34:43]wFMCommunicate request_size=255 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 72 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 21 02 00 35 04 06 00 C2 [13:34:43]Write to MH i2c: E2 02 01 DF 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 72 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 21 02 00 35 04 06 00 C2 00 00 4E [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]OFD Sender: No OFD packet to send [13:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 DF 0C 00 90 00 5F [13:34:43]RAPDU: 90 00 [13:34:43]wFMCommunicate OK [13:34:43]wFMCommunicate request_size=10 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 0D 02 02 05 17 A4 92 03 41 [13:34:43]Write to MH i2c: E2 0D 00 E0 0C 80 0D 02 02 05 00 17 A4 92 03 41 00 00 01 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 03 00 E0 0C 00 90 00 60 [13:34:43]RAPDU: 90 00 [13:34:43]wFMCommunicate OK [13:34:43]wFMCommunicate request_size=4 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 0D 03 02 [13:34:43]Write to MH i2c: E2 08 00 E1 0C 80 0D 03 02 00 00 00 00 68 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 0B 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 0B 00 E1 0C 00 E0 FB C3 F5 8D 05 ED 6D 90 00 E8 [13:34:43]RAPDU: E0 FB C3 F5 8D 05 ED 6D 90 00 [13:34:43]wFMCommunicate OK [13:34:43]SAM_PROTO_SignData done [13:34:43]FM_MakeSignedData done [13:34:43]CreateOFDProtocolMessage [13:34:43]wFMCommunicate request_size=4 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 11 00 00 [13:34:43]Write to MH i2c: E2 08 00 E2 0C 80 11 00 00 00 00 00 00 68 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 17 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 17 00 E2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BF [13:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:34:43]wFMCommunicate OK [13:34:43]CreateOFDProtocolMessage done [13:34:43]OFDSenderStorePacket 139716 [13:34:43]StoreOFDPacket docnum=139716 [13:34:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 08 1D 07 01 7A 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 72 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 21 02 00 35 04 06 00 C2 17 A4 92 03 41 E0 FB C3 F5 8D 05 ED 6D [13:34:43]CheckFolder [13:34:43]dirname=/storage/ofd_packets [13:34:43]CheckFolder done [13:34:43]ProducePacketName [13:34:43]name=ofd_packets/00139716 [13:34:43]NVStorageSaveData ofd_packets/00139716 [13:34:43]File name is /storage/ofd_packets/00139716 [13:34:43]Write 301 bytes [13:34:43]NVStorageSaveData done [13:34:43]OFDSenderStorePacket done [13:34:43]KKMCreateOFDPacket done [13:34:43]NVStorageSaveData kkm_last_timestamp [13:34:43]File name is /storage/kkm_last_timestamp [13:34:43]Write 4 bytes [13:34:43]NVStorageSaveData done [13:34:43]OFD Sender: Processing packet 139716 [packets to send 137, broken 136] [13:34:43]ProducePacketName [13:34:43]name=ofd_packets/00139716 [13:34:43]OFD Sender: To server: pG, [13:34:43]CommunicateWithHost lk.salyk.kg:30040 [13:34:43]ConnectInit lk.salyk.kg [13:34:43]ExternCall_PrintAddStr [13:34:43]wPrintStart [13:34:43]Write to MH i2c: 01 00 00 E3 0C EF [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 07 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: 01 07 00 E3 0C 00 00 00 00 00 FF 0F 04 [13:34:43]RasterBufferAndPrint [13:34:43]line Счет N : (1)593564 [13:34:43]line ИНН: 02508201610067 [13:34:43]line Контрольно-Кассовый Чек [13:34:43]line ПРОДАЖА [13:34:43]line ТРК (МРК, ГНК) : 32 [13:34:43]line Товар: 2710124130 [13:34:43]line Аи-92-К-5 [13:34:43]line 7.380 * 67.80 [13:34:43]line = 500.36 [13:34:43]line НДС 12% НСП 1% [13:34:43]line > о реализуемом товаре [13:34:43]line ОКРУГЛЕНИЕ: -0.36 [13:34:43]line ИТОГО: 500.00 [13:34:43]line Внесено: 500.00 [13:34:43]line СДАЧА: 0.00 [13:34:43]line НСП 1% : 4.43 [13:34:43]line НДС 12% : 53.14 [13:34:43]line Наличными: 500.00 [13:34:43]line Безнал.: 0.00 [13:34:43]line Место: АЗС № 136 "Партнер Нефть" [13:34:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:34:43]line СНО: Общий режим [13:34:43]line Чек 188 20.08.2024 13:34 [13:34:43]line Смена: 453 ФФД: 1.0 [13:34:43]line ЗНМ: 0300000067 [13:34:43]line РНМ: 0000000000092569 [13:34:43]line Версия ККМ: 001 [13:34:43]line ФМ: 0000000000871776 [13:34:43]line ФД: 139716 [13:34:43]line ФПД: 213406801068865 [13:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139716&fm=213406801068865&tin=02508201610067®Number=0000000000092569&sum=50000 [13:34:44]Connected sock=11 [13:34:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 08 1D 07 01 7A 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 72 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 21 02 00 35 04 06 00 C2 17 A4 92 03 41 E0 FB C3 F5 8D 05 ED 6D [13:34:44]written 0, free lines is 4095 [13:34:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F4 66 47 00 78 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 21 02 00 F4 03 04 00 05 42 C4 66 B6 04 01 00 00 A7 FB 0A 99 89 E8 AC 54 [13:34:44]CommunicateWithHost err = 0 [13:34:44]CheckOFDResponse [13:34:44]1017 (14) - 77093643461234 [13:34:44]1041 (16) - 0000000000871776 [13:34:44]1040 (4) - 139716 [13:34:44]1012 (4) - 20.08.2024 07:13 [13:34:44]1206 (1) - 0 [13:34:44]OFD Sender: Remove packet 139716 [13:34:44]ProducePacketName [13:34:44]name=ofd_packets/00139716 [13:34:44]NVStorageDeleteData [13:34:44]Write to MH i2c: 01 00 00 0E 0D 1B [13:34:44]Write i2c OK [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: 01 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: 01 07 00 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: 01 07 00 0E 0D 00 00 00 00 00 E2 0C 10 [13:34:44]RasterBufferAndPrint [13:34:44]line [13:34:44]line [13:34:44]line [13:34:44]line [13:34:44]line [13:34:44]written 0, free lines is 3304 [13:34:44]MH_Cut [13:34:44]Write to MH i2c: D1 01 00 15 0D 01 F4 [13:34:44]Write i2c OK [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: D1 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: D1 01 00 [13:34:44]MH_I2C_Read... [13:34:44]Read from MH i2c: D1 01 00 15 0D 00 F3 [13:34:44]Write to MH i2c: 01 00 00 16 0D 23 [13:34:44]Write i2c OK [13:34:44]MH_I2C_Read... [13:34:44]OFD Sender: No OFD packet to send [13:34:45]*** Cut start [13:34:45]*** Partial cut [13:34:45]*** CUTSNS_PIN = 1 [13:34:45]*** CUTSNS_PIN = 0 [13:34:45]*** Brake cut motor [13:34:45]Read from MH i2c: 01 [13:34:45]MH_I2C_Read... [13:34:45]*** Stop cut motor [13:34:45]*** Cut end [13:34:45]Read from MH i2c: 01 07 00 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: 01 07 00 16 0D 00 00 00 00 00 FF 0F 38 [13:34:45]process_action close_receipt done [13:34:45]requested_data is exist [13:34:45]produce_requested_data [13:34:45]requested_item fm.sn is exist - process it [13:34:45]wFMCommunicate request_size=4 [13:34:45]MH_SAM_APDU [13:34:45]CAPDU: 80 11 00 00 [13:34:45]Write to MH i2c: E2 08 00 17 0D 80 11 00 00 00 00 00 00 9E [13:34:45]Write i2c OK [13:34:45]MH_I2C_Read... [13:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:45]Read from MH i2c: E2 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: E2 17 00 [13:34:45]MH_I2C_Read... [13:34:45]Read from MH i2c: E2 17 00 17 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F5 [13:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:34:45]wFMCommunicate OK [13:34:45]requested_item fd.num is exist - process it [13:34:45]SAM_PROTO_GetFieldsCounters [13:34:45]wFMCommunicate request_size=4 [13:34:45]MH_SAM_APDU [13:34:45]CAPDU: 80 13 00 00 [13:34:45]Write to MH i2c: E2 08 00 18 0D 80 13 00 00 00 00 00 00 A1 [13:34:45]Write i2c OK [13:34:45]MH_I2C_Read... [13:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:46]Read from MH i2c: E2 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 62 00 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 62 00 18 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [13:34:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:46]wFMCommunicate OK [13:34:46]SAM_PROTO_GetFieldsCounters done [13:34:46]requested_item shift.num is exist - process it [13:34:46]requested_item shift.opened is exist - process it [13:34:46]req_shift_opened [13:34:46]FM_GetShiftState [13:34:46]SAM_PROTO_GetShiftState [13:34:46]wFMCommunicate request_size=4 [13:34:46]MH_SAM_APDU [13:34:46]CAPDU: 80 13 01 00 [13:34:46]Write to MH i2c: E2 08 00 19 0D 80 13 01 00 00 00 00 00 A3 [13:34:46]Write i2c OK [13:34:46]MH_I2C_Read... [13:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:46]Read from MH i2c: E2 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 0E 00 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 0E 00 19 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 34 [13:34:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:34:46]wFMCommunicate OK [13:34:46]SAM_PROTO_GetShiftState done [13:34:46]FM_GetShiftState done [13:34:46]req_shift_opened done [13:34:46]requested_item shift.open_date is exist - process it [13:34:46]req_shift_open_date [13:34:46]req_shift_open_date done [13:34:46]produce_requested_data done [13:34:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139716,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:34:46]process_action_free close_receipt [13:34:46]json_value_free [13:34:46]json_value_free done [13:34:46]process_json_proto returns [13:34:46]Send response to host [13:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139716,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:34:46]free response buf [13:34:46]execute_script done [13:34:46]execute_script returns [13:34:46]free content buf [13:34:46]Sock 8.Close socket [13:34:46]Sock 8.Thread stoped [13:34:49]OFD Sender: No OFD packet to send [13:34:51]accept exits with 9 [13:34:51]New connection [13:34:51]New thread 3067288932 created [13:34:51]Thread 3067145572 joined [13:34:51]Waiting for new connection... [13:34:51] Sock 9.Parse request [13:34:51]Sock 9.Check first char [13:34:51]Sock 9.First char is OK [13:34:51]request: POST /json_proto HTTP/1.0 [13:34:51]Method: POST [13:34:51]URL: /json_proto [13:34:51]Method is POST - this is cgi request [13:34:51]url: /json_proto [13:34:51]query_string will be loaded in cgi processing [13:34:51]execute_cgi json_proto POST (null) [13:34:51]execute_cgi path=json_proto method=POST [13:34:51]POST find Content-Length [13:34:51]Host: 172.17.45.67:8080 [13:34:51]Content-Length: 678 [13:34:51]Content-Type: application/json [13:34:51] [13:34:51]POST finish read [13:34:51]Found Content-Length = 678 [13:34:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:51]execute_script... [13:34: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)593563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:51]POST & json_proto [13:34:51]process_json_proto [13:34:51]json parsed OK: [13:34:51]protocol is kg_v1.0 [13:34:51]action value=close_receipt [13:34:51]process_action close_receipt [13:34:51]cmd_close_receipt [13:34:51]MH_GetDate [13:34:51]Write to MH i2c: F0 00 00 1A 0D 16 [13:34:51]Write i2c OK [13:34:51]MH_I2C_Read... [13:34:51]Read from MH i2c: F0 [13:34:51]MH_I2C_Read... [13:34:51]Read from MH i2c: F0 09 00 [13:34:51]MH_I2C_Read... [13:34:51]Read from MH i2c: F0 09 00 1A 0D 00 7B 9B C4 66 5F 7F 2B 66 CE [13:34:51]GetLastDocTimeStamp 1724160882 [13:34:51]current date 1724160891 [13:34:51]FM_GetShiftState [13:34:51]SAM_PROTO_GetShiftState [13:34:51]wFMCommunicate request_size=4 [13:34:51]MH_SAM_APDU [13:34:51]CAPDU: 80 13 01 00 [13:34:51]Write to MH i2c: E2 08 00 1B 0D 80 13 01 00 00 00 00 00 A5 [13:34:51]Write i2c OK [13:34:51]MH_I2C_Read... [13:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:51]Read from MH i2c: E2 [13:34:51]MH_I2C_Read... [13:34:51]Read from MH i2c: E2 0E 00 [13:34:51]MH_I2C_Read... [13:34:51]Read from MH i2c: E2 0E 00 1B 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 36 [13:34:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:34:51]wFMCommunicate OK [13:34:51]SAM_PROTO_GetShiftState done [13:34:51]FM_GetShiftState done [13:34:51]opened in 1724113785 [13:34:51]opened+sec_in_day 1724200185 [13:34:51]quantity*price = 80004 [13:34:51]sum+1 = 80005 [13:34:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 189 20.08.2024 13:34 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139717 ФПД: 136928667553074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133451&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139717&fm=136928667553074&tin=02508201610067®Number=0000000000092569&sum=80000 [13:34:52]StoreToDocumentArchive [13:34:52]shift 453 fd 139717 [13:34:52]save to /storage/0453/doc_00139717 [13:34:52]save last doc name /storage/0453/doc_00139717 to /storage/kkm_last_doc_name [13:34:52]save OK [13:34:52]Clear old archive folders... [13:34:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:52]tlvbuf is 01FFA290 [13:34:52]SAM_PROTO_ClearQueue [13:34:52]wFMCommunicate request_size=4 [13:34:52]MH_SAM_APDU [13:34:52]CAPDU: 80 09 00 00 [13:34:52]Write to MH i2c: E2 08 00 28 0D 80 09 00 00 00 00 00 00 A7 [13:34:52]Write i2c OK [13:34:52]MH_I2C_Read... [13:34:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:52]Read from MH i2c: E2 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 03 00 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [13:34:52]RAPDU: 90 00 [13:34:52]wFMCommunicate OK [13:34:52]SAM_PROTO_ClearQueue done [13:34:52]KKMCreateOFDPacket [13:34:52]OFDProtocolAddRootSTLVToBuf [13:34:52]FM_MakeSignedData [13:34:52]FM_MakeSignedData [13:34:52]SAM_PROTO_SignData [13:34:52]wFMCommunicate request_size=4 [13:34:52]MH_SAM_APDU [13:34:52]CAPDU: 80 0D 01 02 [13:34:52]Write to MH i2c: E2 08 00 29 0D 80 0D 01 02 00 00 00 00 AF [13:34:52]Write i2c OK [13:34:52]MH_I2C_Read... [13:34:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:52]Read from MH i2c: E2 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 03 00 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 03 00 29 0D 00 90 00 AA [13:34:52]RAPDU: 90 00 [13:34:52]wFMCommunicate OK [13:34:52]wFMCommunicate request_size=255 [13:34:52]MH_SAM_APDU [13:34:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7B 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 21 02 00 35 04 06 00 7C [13:34:52]Write to MH i2c: E2 02 01 2A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7B 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 21 02 00 35 04 06 00 7C 00 00 0C [13:34:52]Write i2c OK [13:34:52]MH_I2C_Read... [13:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:52]Read from MH i2c: E2 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 03 00 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 03 00 2A 0D 00 90 00 AB [13:34:52]RAPDU: 90 00 [13:34:52]wFMCommunicate OK [13:34:52]wFMCommunicate request_size=10 [13:34:52]MH_SAM_APDU [13:34:52]CAPDU: 80 0D 02 02 05 89 30 96 CD 32 [13:34:52]Write to MH i2c: E2 0D 00 2B 0D 80 0D 02 02 05 00 89 30 96 CD 32 00 00 0A [13:34:52]Write i2c OK [13:34:52]MH_I2C_Read... [13:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:52]Read from MH i2c: E2 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 03 00 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 03 00 2B 0D 00 90 00 AC [13:34:52]RAPDU: 90 00 [13:34:52]wFMCommunicate OK [13:34:52]wFMCommunicate request_size=4 [13:34:52]MH_SAM_APDU [13:34:52]CAPDU: 80 0D 03 02 [13:34:52]Write to MH i2c: E2 08 00 2C 0D 80 0D 03 02 00 00 00 00 B4 [13:34:52]Write i2c OK [13:34:52]MH_I2C_Read... [13:34:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:52]Read from MH i2c: E2 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 0B 00 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 0B 00 2C 0D 00 4A 8A 5C 50 33 0C EB 65 90 00 C4 [13:34:52]RAPDU: 4A 8A 5C 50 33 0C EB 65 90 00 [13:34:52]wFMCommunicate OK [13:34:52]SAM_PROTO_SignData done [13:34:52]FM_MakeSignedData done [13:34:52]CreateOFDProtocolMessage [13:34:52]wFMCommunicate request_size=4 [13:34:52]MH_SAM_APDU [13:34:52]CAPDU: 80 11 00 00 [13:34:52]Write to MH i2c: E2 08 00 2D 0D 80 11 00 00 00 00 00 00 B4 [13:34:52]Write i2c OK [13:34:52]MH_I2C_Read... [13:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:52]Read from MH i2c: E2 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 17 00 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 17 00 2D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0B [13:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:34:52]wFMCommunicate OK [13:34:52]CreateOFDProtocolMessage done [13:34:52]OFDSenderStorePacket 139717 [13:34:52]StoreOFDPacket docnum=139717 [13:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5D 05 07 01 B9 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7B 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 21 02 00 35 04 06 00 7C 89 30 96 CD 32 4A 8A 5C 50 33 0C EB 65 [13:34:52]CheckFolder [13:34:52]dirname=/storage/ofd_packets [13:34:52]CheckFolder done [13:34:52]ProducePacketName [13:34:52]name=ofd_packets/00139717 [13:34:52]NVStorageSaveData ofd_packets/00139717 [13:34:52]File name is /storage/ofd_packets/00139717 [13:34:52]Write 301 bytes [13:34:52]NVStorageSaveData done [13:34:52]OFDSenderStorePacket done [13:34:52]KKMCreateOFDPacket done [13:34:52]NVStorageSaveData kkm_last_timestamp [13:34:52]File name is /storage/kkm_last_timestamp [13:34:52]Write 4 bytes [13:34:52]NVStorageSaveData done [13:34:52]ExternCall_PrintAddStr [13:34:52]wPrintStart [13:34:52]Write to MH i2c: 01 00 00 2E 0D 3B [13:34:52]Write i2c OK [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: 01 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: 01 07 00 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [13:34:52]RasterBufferAndPrint [13:34:52]line Счет N : (1)593563 [13:34:52]line ИНН: 02508201610067 [13:34:52]line Контрольно-Кассовый Чек [13:34:52]line ПРОДАЖА [13:34:52]line ТРК (МРК, ГНК) : 52 [13:34:52]line Товар: 2710124130 [13:34:52]line Аи-92-К-5 [13:34:52]line 11.800 * 67.80 [13:34:52]line = 800.04 [13:34:52]line НДС 12% НСП 1% [13:34:52]line > о реализуемом товаре [13:34:52]line ОКРУГЛЕНИЕ: -0.04 [13:34:52]line ИТОГО: 800.00 [13:34:52]line Внесено: 800.00 [13:34:52]line СДАЧА: 0.00 [13:34:52]line НСП 1% : 7.08 [13:34:52]line НДС 12% : 84.96 [13:34:52]line Наличными: 800.00 [13:34:52]line Безнал.: 0.00 [13:34:52]line Место: АЗС № 136 "Партнер Нефть" [13:34:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:34:52]line СНО: Общий режим [13:34:52]line Чек 189 20.08.2024 13:34 [13:34:52]line Смена: 453 ФФД: 1.0 [13:34:52]line ЗНМ: 0300000067 [13:34:52]line РНМ: 0000000000092569 [13:34:52]line Версия ККМ: 001 [13:34:52]line ФМ: 0000000000871776 [13:34:52]line ФД: 139717 [13:34:52]line ФПД: 136928667553074 [13:34:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133451&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139717&fm=136928667553074&tin=02508201610067®Number=0000000000092569&sum=80000 [13:34:52]written 0, free lines is 4095 [13:34:52]OFD Sender: Processing packet 139717 [packets to send 137, broken 136] [13:34:52]ProducePacketName [13:34:52]name=ofd_packets/00139717 [13:34:52]OFD Sender: To server: pG, [13:34:52]CommunicateWithHost lk.salyk.kg:30040 [13:34:52]ConnectInit lk.salyk.kg [13:34:53]Connected sock=10 [13:34:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5D 05 07 01 B9 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 7B 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 21 02 00 35 04 06 00 7C 89 30 96 CD 32 4A 8A 5C 50 33 0C EB 65 [13:34:53]Write to MH i2c: 01 00 00 59 0D 66 [13:34:53]Write i2c OK [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: 01 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: 01 07 00 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: 01 07 00 59 0D 00 00 00 00 00 E2 0C 5B [13:34:53]RasterBufferAndPrint [13:34:53]line [13:34:53]line [13:34:53]line [13:34:53]line [13:34:53]line [13:34:53]written 0, free lines is 3307 [13:34:53]MH_Cut [13:34:53]Write to MH i2c: D1 01 00 60 0D 01 3F [13:34:53]Write i2c OK [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: D1 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: D1 01 00 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: D1 01 00 60 0D 00 3E [13:34:53]Write to MH i2c: 01 00 00 61 0D 6E [13:34:53]Write i2c OK [13:34:53]MH_I2C_Read... [13:34:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A1 14 47 00 49 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 21 02 00 F4 03 04 00 0E 42 C4 66 B6 04 01 00 00 0A 90 13 E7 43 17 7D 4C [13:34:53]CommunicateWithHost err = 0 [13:34:53]CheckOFDResponse [13:34:53]1017 (14) - 77093643461234 [13:34:53]1041 (16) - 0000000000871776 [13:34:53]1040 (4) - 139717 [13:34:53]1012 (4) - 20.08.2024 07:13 [13:34:53]1206 (1) - 0 [13:34:53]OFD Sender: Remove packet 139717 [13:34:53]ProducePacketName [13:34:53]name=ofd_packets/00139717 [13:34:53]NVStorageDeleteData [13:34:53]OFD Sender: No OFD packet to send [13:34:53]*** Cut start [13:34:53]*** Partial cut [13:34:53]*** CUTSNS_PIN = 1 [13:34:54]*** CUTSNS_PIN = 0 [13:34:54]*** Brake cut motor [13:34:54]Read from MH i2c: 01 [13:34:54]MH_I2C_Read... [13:34:54]*** Stop cut motor [13:34:54]*** Cut end [13:34:54]Read from MH i2c: 01 07 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: 01 07 00 61 0D 00 00 00 00 00 FF 0F 83 [13:34:54]process_action close_receipt done [13:34:54]requested_data is exist [13:34:54]produce_requested_data [13:34:54]requested_item fm.sn is exist - process it [13:34:54]wFMCommunicate request_size=4 [13:34:54]MH_SAM_APDU [13:34:54]CAPDU: 80 11 00 00 [13:34:54]Write to MH i2c: E2 08 00 62 0D 80 11 00 00 00 00 00 00 E9 [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:54]Read from MH i2c: E2 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 17 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 17 00 62 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [13:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:34:54]wFMCommunicate OK [13:34:54]requested_item fd.num is exist - process it [13:34:54]SAM_PROTO_GetFieldsCounters [13:34:54]wFMCommunicate request_size=4 [13:34:54]MH_SAM_APDU [13:34:54]CAPDU: 80 13 00 00 [13:34:54]Write to MH i2c: E2 08 00 63 0D 80 13 00 00 00 00 00 00 EC [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:54]Read from MH i2c: E2 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 62 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 62 00 63 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [13:34:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:54]wFMCommunicate OK [13:34:54]SAM_PROTO_GetFieldsCounters done [13:34:54]requested_item shift.num is exist - process it [13:34:54]requested_item shift.opened is exist - process it [13:34:54]req_shift_opened [13:34:54]FM_GetShiftState [13:34:54]SAM_PROTO_GetShiftState [13:34:54]wFMCommunicate request_size=4 [13:34:54]MH_SAM_APDU [13:34:54]CAPDU: 80 13 01 00 [13:34:54]Write to MH i2c: E2 08 00 64 0D 80 13 01 00 00 00 00 00 EE [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:54]Read from MH i2c: E2 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 0E 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 0E 00 64 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7F [13:34:54]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:34:54]wFMCommunicate OK [13:34:54]SAM_PROTO_GetShiftState done [13:34:54]FM_GetShiftState done [13:34:54]req_shift_opened done [13:34:54]requested_item shift.open_date is exist - process it [13:34:54]req_shift_open_date [13:34:54]req_shift_open_date done [13:34:54]produce_requested_data done [13:34:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139717,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:34:54]process_action_free close_receipt [13:34:54]json_value_free [13:34:54]json_value_free done [13:34:54]process_json_proto returns [13:34:54]Send response to host [13:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139717,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:34:54]free response buf [13:34:54]execute_script done [13:34:54]execute_script returns [13:34:54]free content buf [13:34:54]Sock 9.Close socket [13:34:54]Sock 9.Thread stoped [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:17]accept exits with 8 [13:35:17]New connection [13:35:17]New thread 3067145572 created [13:35:17]Thread 3067288932 joined [13:35:17]Waiting for new connection... [13:35:17] Sock 8.Parse request [13:35:17]Sock 8.Check first char [13:35:17]Sock 8.First char is OK [13:35:17]request: POST /json_proto HTTP/1.0 [13:35:17]Method: POST [13:35:17]URL: /json_proto [13:35:17]Method is POST - this is cgi request [13:35:17]url: /json_proto [13:35:17]query_string will be loaded in cgi processing [13:35:17]execute_cgi json_proto POST (null) [13:35:17]execute_cgi path=json_proto method=POST [13:35:17]POST find Content-Length [13:35:17]Host: 172.17.45.67:8080 [13:35:17]Content-Length: 677 [13:35:17]Content-Type: application/json [13:35:17] [13:35:17]POST finish read [13:35:17]Found Content-Length = 677 [13:35:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:17]execute_script... [13:35: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)593565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:17]POST & json_proto [13:35:17]process_json_proto [13:35:17]json parsed OK: [13:35:17]protocol is kg_v1.0 [13:35:17]action value=close_receipt [13:35:17]process_action close_receipt [13:35:17]cmd_close_receipt [13:35:17]MH_GetDate [13:35:17]Write to MH i2c: F0 00 00 65 0D 61 [13:35:17]Write i2c OK [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: F0 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: F0 09 00 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: F0 09 00 65 0D 00 95 9B C4 66 5F 7F 2B 66 33 [13:35:17]GetLastDocTimeStamp 1724160891 [13:35:17]current date 1724160917 [13:35:17]FM_GetShiftState [13:35:17]SAM_PROTO_GetShiftState [13:35:17]wFMCommunicate request_size=4 [13:35:17]MH_SAM_APDU [13:35:17]CAPDU: 80 13 01 00 [13:35:17]Write to MH i2c: E2 08 00 66 0D 80 13 01 00 00 00 00 00 F0 [13:35:17]Write i2c OK [13:35:17]MH_I2C_Read... [13:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:17]Read from MH i2c: E2 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: E2 0E 00 [13:35:17]MH_I2C_Read... [13:35:17]Read from MH i2c: E2 0E 00 66 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 81 [13:35:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:35:17]wFMCommunicate OK [13:35:17]SAM_PROTO_GetShiftState done [13:35:17]FM_GetShiftState done [13:35:17]opened in 1724113785 [13:35:17]opened+sec_in_day 1724200185 [13:35:17]quantity*price = 30035 [13:35:17]sum+1 = 30036 [13:35:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 190 20.08.2024 13:35 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139718 ФПД: 141734677829099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139718&fm=141734677829099&tin=02508201610067®Number=0000000000092569&sum=30000 [13:35:18]StoreToDocumentArchive [13:35:18]shift 453 fd 139718 [13:35:18]save to /storage/0453/doc_00139718 [13:35:18]save last doc name /storage/0453/doc_00139718 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 02001B40 [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 73 0D 80 09 00 00 00 00 00 00 F2 [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 73 0D 00 90 00 F4 [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 74 0D 80 0D 01 02 00 00 00 00 FA [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 74 0D 00 90 00 F5 [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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 95 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 21 02 00 35 04 06 00 80 [13:35:18]Write to MH i2c: E2 02 01 75 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 95 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 21 02 00 35 04 06 00 80 00 00 E9 [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 75 0D 00 90 00 F6 [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 E8 2D 1F D5 EB [13:35:18]Write to MH i2c: E2 0D 00 76 0D 80 0D 02 02 05 00 E8 2D 1F D5 EB 00 00 FB [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 76 0D 00 90 00 F7 [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 77 0D 80 0D 03 02 00 00 00 00 FF [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 77 0D 00 71 FD 21 03 B2 33 CD EC 90 00 30 [13:35:18]RAPDU: 71 FD 21 03 B2 33 CD EC 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 78 0D 80 11 00 00 00 00 00 00 FF [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 78 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [13:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:35:18]wFMCommunicate OK [13:35:18]CreateOFDProtocolMessage done [13:35:18]OFDSenderStorePacket 139718 [13:35:18]StoreOFDPacket docnum=139718 [13:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 18 10 07 01 9C E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 95 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 21 02 00 35 04 06 00 80 E8 2D 1F D5 EB 71 FD 21 03 B2 33 CD EC [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/00139718 [13:35:18]NVStorageSaveData ofd_packets/00139718 [13:35:18]File name is /storage/ofd_packets/00139718 [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]OFD Sender: Processing packet 139718 [packets to send 137, broken 136] [13:35:18]ProducePacketName [13:35:18]name=ofd_packets/00139718 [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:18]ExternCall_PrintAddStr [13:35:18]wPrintStart [13:35:18]Write to MH i2c: 01 00 00 79 0D 86 [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 79 0D 00 00 00 00 00 FF 0F 9B [13:35:18]RasterBufferAndPrint [13:35:18]line Счет N : (1)593565 [13:35:18]line ИНН: 02508201610067 [13:35:18]line Контрольно-Кассовый Чек [13:35:18]line ПРОДАЖА [13:35:18]line ТРК (МРК, ГНК) : 42 [13:35:18]line Товар: 2710124130 [13:35:18]line Аи-92-К-5 [13:35:18]line 4.430 * 67.80 [13:35:18]line = 300.35 [13:35:18]line НДС 12% НСП 1% [13:35:18]line > о реализуемом товаре [13:35:18]line ОКРУГЛЕНИЕ: -0.35 [13:35:18]line ИТОГО: 300.00 [13:35:18]line Внесено: 300.00 [13:35:18]line СДАЧА: 0.00 [13:35:18]line НСП 1% : 2.66 [13:35:18]line НДС 12% : 31.90 [13:35:18]line Наличными: 300.00 [13:35:18]line Безнал.: 0.00 [13:35:18]line Место: АЗС № 136 "Партнер Нефть" [13:35:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:35:18]line СНО: Общий режим [13:35:18]line Чек 190 20.08.2024 13:35 [13:35:18]line Смена: 453 ФФД: 1.0 [13:35:18]line ЗНМ: 0300000067 [13:35:18]line РНМ: 0000000000092569 [13:35:18]line Версия ККМ: 001 [13:35:18]line ФМ: 0000000000871776 [13:35:18]line ФД: 139718 [13:35:18]line ФПД: 141734677829099 [13:35:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139718&fm=141734677829099&tin=02508201610067®Number=0000000000092569&sum=30000 [13:35:19]Connected sock=11 [13:35:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 18 10 07 01 9C E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 95 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 21 02 00 35 04 06 00 80 E8 2D 1F D5 EB 71 FD 21 03 B2 33 CD EC [13:35:19]written 0, free lines is 4095 [13:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3E 05 47 00 93 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 21 02 00 F4 03 04 00 28 42 C4 66 B6 04 01 00 00 E7 27 73 18 97 35 65 D9 [13:35:19]CommunicateWithHost err = 0 [13:35:19]CheckOFDResponse [13:35:19]1017 (14) - 77093643461234 [13:35:19]1041 (16) - 0000000000871776 [13:35:19]1040 (4) - 139718 [13:35:19]1012 (4) - 20.08.2024 07:13 [13:35:19]1206 (1) - 0 [13:35:19]OFD Sender: Remove packet 139718 [13:35:19]ProducePacketName [13:35:19]name=ofd_packets/00139718 [13:35:19]NVStorageDeleteData [13:35:19]Write to MH i2c: 01 00 00 A4 0D B1 [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 A4 0D 00 00 00 00 00 DE 0C A2 [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 3300 [13:35:19]MH_Cut [13:35:19]Write to MH i2c: D1 01 00 AB 0D 01 8A [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 AB 0D 00 89 [13:35:19]Write to MH i2c: 01 00 00 AC 0D B9 [13:35:19]Write i2c OK [13:35:19]MH_I2C_Read... [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:20]Read from MH i2c: 01 [13:35:20]MH_I2C_Read... [13:35:20]*** Stop cut motor [13:35:20]*** Cut end [13:35:20]Read from MH i2c: 01 07 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 FF 0F CE [13:35:20]process_action close_receipt done [13:35:20]requested_data is exist [13:35:20]produce_requested_data [13:35:20]requested_item fm.sn is exist - process it [13:35:20]wFMCommunicate request_size=4 [13:35:20]MH_SAM_APDU [13:35:20]CAPDU: 80 11 00 00 [13:35:20]Write to MH i2c: E2 08 00 AD 0D 80 11 00 00 00 00 00 00 34 [13:35:20]Write i2c OK [13:35:20]MH_I2C_Read... [13:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:20]Read from MH i2c: E2 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 17 00 [13:35:20]MH_I2C_Read... [13:35:20]Read from MH i2c: E2 17 00 AD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8B [13:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:35:20]wFMCommunicate OK [13:35:20]requested_item fd.num is exist - process it [13:35:20]SAM_PROTO_GetFieldsCounters [13:35:20]wFMCommunicate request_size=4 [13:35:20]MH_SAM_APDU [13:35:20]CAPDU: 80 13 00 00 [13:35:20]Write to MH i2c: E2 08 00 AE 0D 80 13 00 00 00 00 00 00 37 [13:35:20]Write i2c OK [13:35:20]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 AE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [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 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 AF 0D 80 13 01 00 00 00 00 00 39 [13:35:21]Write i2c OK [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 [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 0E 00 [13:35:21]MH_I2C_Read... [13:35:21]Read from MH i2c: E2 0E 00 AF 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CA [13:35:21]RAPDU: 09 00 01 79 E3 C3 66 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":"0000000000871776","fd.num":139718,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [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":"0000000000871776","fd.num":139718,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [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]accept exits with 9 [13:35:49]New connection [13:35:49]New thread 3067288932 created [13:35:49]Thread 3067145572 joined [13:35:49]Waiting for new connection... [13:35:49] Sock 9.Parse request [13:35:49]Sock 9.Check first char [13:35:49]Sock 9.First char is OK [13:35:49]request: POST /json_proto HTTP/1.0 [13:35:49]Method: POST [13:35:49]URL: /json_proto [13:35:49]Method is POST - this is cgi request [13:35:49]url: /json_proto [13:35:49]query_string will be loaded in cgi processing [13:35:49]execute_cgi json_proto POST (null) [13:35:49]execute_cgi path=json_proto method=POST [13:35:49]POST find Content-Length [13:35:49]Host: 172.17.45.67:8080 [13:35:49]Content-Length: 677 [13:35:49]Content-Type: application/json [13:35:49] [13:35:49]POST finish read [13:35:49]Found Content-Length = 677 [13:35:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:49]execute_script... [13:35: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)593566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:49]POST & json_proto [13:35:49]process_json_proto [13:35:49]json parsed OK: [13:35:49]protocol is kg_v1.0 [13:35:49]action value=close_receipt [13:35:49]process_action close_receipt [13:35:49]cmd_close_receipt [13:35:49]MH_GetDate [13:35:49]Write to MH i2c: F0 00 00 B0 0D AC [13:35:49]Write i2c OK [13:35:49]MH_I2C_Read... [13:35:49]Read from MH i2c: F0 [13:35:49]MH_I2C_Read... [13:35:49]Read from MH i2c: F0 09 00 [13:35:49]MH_I2C_Read... [13:35:49]Read from MH i2c: F0 09 00 B0 0D 00 B5 9B C4 66 5F 7F 2B 66 9E [13:35:49]GetLastDocTimeStamp 1724160917 [13:35:49]current date 1724160949 [13:35:49]FM_GetShiftState [13:35:49]SAM_PROTO_GetShiftState [13:35:49]wFMCommunicate request_size=4 [13:35:49]MH_SAM_APDU [13:35:49]CAPDU: 80 13 01 00 [13:35:49]Write to MH i2c: E2 08 00 B1 0D 80 13 01 00 00 00 00 00 3B [13:35:49]Write i2c OK [13:35:49]MH_I2C_Read... [13:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:49]Read from MH i2c: E2 [13:35:49]MH_I2C_Read... [13:35:49]Read from MH i2c: E2 0E 00 [13:35:49]MH_I2C_Read... [13:35:49]Read from MH i2c: E2 0E 00 B1 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CC [13:35:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:35:49]wFMCommunicate OK [13:35:49]SAM_PROTO_GetShiftState done [13:35:49]FM_GetShiftState done [13:35:49]opened in 1724113785 [13:35:49]opened+sec_in_day 1724200185 [13:35:49]quantity*price = 15051 [13:35:49]sum+1 = 15053 [13:35:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 191 20.08.2024 13:35 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139719 ФПД: 207887752414290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133549&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139719&fm=207887752414290&tin=02508201610067®Number=0000000000092569&sum=15000 [13:35:50]StoreToDocumentArchive [13:35:50]shift 453 fd 139719 [13:35:50]save to /storage/0453/doc_00139719 [13:35:50]save last doc name /storage/0453/doc_00139719 to /storage/kkm_last_doc_name [13:35:50]save OK [13:35:50]Clear old archive folders... [13:35:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:50]tlvbuf is 01FC40B0 [13:35:50]SAM_PROTO_ClearQueue [13:35:50]wFMCommunicate request_size=4 [13:35:50]MH_SAM_APDU [13:35:50]CAPDU: 80 09 00 00 [13:35:50]Write to MH i2c: E2 08 00 BE 0D 80 09 00 00 00 00 00 00 3D [13:35:50]Write i2c OK [13:35:50]MH_I2C_Read... [13:35:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:50]Read from MH i2c: E2 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 03 00 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 03 00 BE 0D 00 90 00 3F [13:35:50]RAPDU: 90 00 [13:35:50]wFMCommunicate OK [13:35:50]SAM_PROTO_ClearQueue done [13:35:50]KKMCreateOFDPacket [13:35:50]OFDProtocolAddRootSTLVToBuf [13:35:50]FM_MakeSignedData [13:35:50]FM_MakeSignedData [13:35:50]SAM_PROTO_SignData [13:35:50]wFMCommunicate request_size=4 [13:35:50]MH_SAM_APDU [13:35:50]CAPDU: 80 0D 01 02 [13:35:50]Write to MH i2c: E2 08 00 BF 0D 80 0D 01 02 00 00 00 00 45 [13:35:50]Write i2c OK [13:35:50]MH_I2C_Read... [13:35:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:50]Read from MH i2c: E2 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 03 00 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [13:35:50]RAPDU: 90 00 [13:35:50]wFMCommunicate OK [13:35:50]wFMCommunicate request_size=255 [13:35:50]MH_SAM_APDU [13:35:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 B5 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 21 02 00 35 04 06 00 BD [13:35:50]Write to MH i2c: E2 02 01 C0 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 B5 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 21 02 00 35 04 06 00 BD 00 00 BC [13:35:50]Write i2c OK [13:35:50]MH_I2C_Read... [13:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:50]Read from MH i2c: E2 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 03 00 [13:35:50]MH_I2C_Read... [13:35:50]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [13:35:50]RAPDU: 90 00 [13:35:50]wFMCommunicate OK [13:35:50]wFMCommunicate request_size=10 [13:35:50]MH_SAM_APDU [13:35:50]CAPDU: 80 0D 02 02 05 12 A3 A2 C4 52 [13:35:50]Write to MH i2c: E2 0D 00 C1 0D 80 0D 02 02 05 00 12 A3 A2 C4 52 00 00 BF [13:35:50]Write i2c OK [13:35:50]MH_I2C_Read... [13:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:51]Read from MH i2c: E2 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [13:35:51]RAPDU: 90 00 [13:35:51]wFMCommunicate OK [13:35:51]wFMCommunicate request_size=4 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 0D 03 02 [13:35:51]Write to MH i2c: E2 08 00 C2 0D 80 0D 03 02 00 00 00 00 4A [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:51]Read from MH i2c: E2 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 0B 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 0B 00 C2 0D 00 8D 1D F0 6F 11 28 11 F6 90 00 94 [13:35:51]RAPDU: 8D 1D F0 6F 11 28 11 F6 90 00 [13:35:51]wFMCommunicate OK [13:35:51]SAM_PROTO_SignData done [13:35:51]FM_MakeSignedData done [13:35:51]CreateOFDProtocolMessage [13:35:51]wFMCommunicate request_size=4 [13:35:51]MH_SAM_APDU [13:35:51]CAPDU: 80 11 00 00 [13:35:51]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:51]Read from MH i2c: E2 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 17 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [13:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:35:51]wFMCommunicate OK [13:35:51]CreateOFDProtocolMessage done [13:35:51]OFDSenderStorePacket 139719 [13:35:51]StoreOFDPacket docnum=139719 [13:35:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D6 78 07 01 C8 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 B5 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 21 02 00 35 04 06 00 BD 12 A3 A2 C4 52 8D 1D F0 6F 11 28 11 F6 [13:35:51]CheckFolder [13:35:51]dirname=/storage/ofd_packets [13:35:51]CheckFolder done [13:35:51]ProducePacketName [13:35:51]name=ofd_packets/00139719 [13:35:51]NVStorageSaveData ofd_packets/00139719 [13:35:51]File name is /storage/ofd_packets/00139719 [13:35:51]Write 301 bytes [13:35:51]NVStorageSaveData done [13:35:51]OFDSenderStorePacket done [13:35:51]KKMCreateOFDPacket done [13:35:51]NVStorageSaveData kkm_last_timestamp [13:35:51]File name is /storage/kkm_last_timestamp [13:35:51]Write 4 bytes [13:35:51]NVStorageSaveData done [13:35:51]ExternCall_PrintAddStr [13:35:51]wPrintStart [13:35:51]Write to MH i2c: 01 00 00 C4 0D D1 [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: 01 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: 01 07 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 FF 0F E6 [13:35:51]RasterBufferAndPrint [13:35:51]line Счет N : (1)593566 [13:35:51]line ИНН: 02508201610067 [13:35:51]line Контрольно-Кассовый Чек [13:35:51]line ПРОДАЖА [13:35:51]line ТРК (МРК, ГНК) : 62 [13:35:51]line Товар: 2710124130 [13:35:51]line Аи-92-К-5 [13:35:51]line 2.220 * 67.80 [13:35:51]line = 150.52 [13:35:51]line НДС 12% НСП 1% [13:35:51]line > о реализуемом товаре [13:35:51]line ОКРУГЛЕНИЕ: -0.52 [13:35:51]line ИТОГО: 150.00 [13:35:51]line Внесено: 150.00 [13:35:51]line СДАЧА: 0.00 [13:35:51]line НСП 1% : 1.33 [13:35:51]line НДС 12% : 15.98 [13:35:51]line Наличными: 150.00 [13:35:51]line Безнал.: 0.00 [13:35:51]line Место: АЗС № 136 "Партнер Нефть" [13:35:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:35:51]line СНО: Общий режим [13:35:51]line Чек 191 20.08.2024 13:35 [13:35:51]line Смена: 453 ФФД: 1.0 [13:35:51]line ЗНМ: 0300000067 [13:35:51]line РНМ: 0000000000092569 [13:35:51]line Версия ККМ: 001 [13:35:51]line ФМ: 0000000000871776 [13:35:51]line ФД: 139719 [13:35:51]line ФПД: 207887752414290 [13:35:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133549&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139719&fm=207887752414290&tin=02508201610067®Number=0000000000092569&sum=15000 [13:35:51]OFD Sender: Processing packet 139719 [packets to send 137, broken 136] [13:35:51]ProducePacketName [13:35:51]name=ofd_packets/00139719 [13:35:51]OFD Sender: To server: pG, [13:35:51]CommunicateWithHost lk.salyk.kg:30040 [13:35:51]ConnectInit lk.salyk.kg [13:35:51]written 0, free lines is 4095 [13:35:51]Connected sock=10 [13:35:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D6 78 07 01 C8 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 B5 9B C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 21 02 00 35 04 06 00 BD 12 A3 A2 C4 52 8D 1D F0 6F 11 28 11 F6 [13:35:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 58 66 47 00 0C 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 21 02 00 F4 03 04 00 49 42 C4 66 B6 04 01 00 00 19 61 2E B9 28 48 E3 FB [13:35:51]CommunicateWithHost err = 0 [13:35:51]CheckOFDResponse [13:35:51]1017 (14) - 77093643461234 [13:35:51]1041 (16) - 0000000000871776 [13:35:51]1040 (4) - 139719 [13:35:51]1012 (4) - 20.08.2024 07:14 [13:35:51]1206 (1) - 0 [13:35:51]OFD Sender: Remove packet 139719 [13:35:51]ProducePacketName [13:35:51]name=ofd_packets/00139719 [13:35:51]NVStorageDeleteData [13:35:51]Write to MH i2c: 01 00 00 EF 0D FC [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: 01 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: 01 07 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 D4 0C E3 [13:35:51]RasterBufferAndPrint [13:35:51]line [13:35:51]line [13:35:51]line [13:35:51]line [13:35:51]line [13:35:51]written 0, free lines is 3292 [13:35:51]MH_Cut [13:35:51]Write to MH i2c: D1 01 00 F6 0D 01 D5 [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: D1 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: D1 01 00 [13:35:51]MH_I2C_Read... [13:35:51]Read from MH i2c: D1 01 00 F6 0D 00 D4 [13:35:51]Write to MH i2c: 01 00 00 F7 0D 04 [13:35:51]Write i2c OK [13:35:51]MH_I2C_Read... [13:35:52]OFD Sender: No OFD packet to send [13:35:52]*** Cut start [13:35:52]*** Partial cut [13:35:52]*** CUTSNS_PIN = 1 [13:35:52]*** CUTSNS_PIN = 0 [13:35:52]*** Brake cut motor [13:35:53]Read from MH i2c: 01 [13:35:53]MH_I2C_Read... [13:35:53]*** Stop cut motor [13:35:53]*** Cut end [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 F7 0D 00 00 00 00 00 FF 0F 19 [13:35:53]process_action close_receipt done [13:35:53]requested_data is exist [13:35:53]produce_requested_data [13:35:53]requested_item fm.sn is exist - process it [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 F8 0D 80 11 00 00 00 00 00 00 7F [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 F8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [13:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:35:53]wFMCommunicate OK [13:35:53]requested_item fd.num is exist - process it [13:35:53]SAM_PROTO_GetFieldsCounters [13:35:53]wFMCommunicate request_size=4 [13:35:53]MH_SAM_APDU [13:35:53]CAPDU: 80 13 00 00 [13:35:53]Write to MH i2c: E2 08 00 F9 0D 80 13 00 00 00 00 00 00 82 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:53]Read from MH i2c: E2 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 62 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 62 00 F9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [13:35:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:53]wFMCommunicate OK [13:35:53]SAM_PROTO_GetFieldsCounters done [13:35:53]requested_item shift.num is exist - process it [13:35:53]requested_item shift.opened is exist - process it [13:35:53]req_shift_opened [13:35:53]FM_GetShiftState [13:35:53]SAM_PROTO_GetShiftState [13:35:53]wFMCommunicate request_size=4 [13:35:53]MH_SAM_APDU [13:35:53]CAPDU: 80 13 01 00 [13:35:53]Write to MH i2c: E2 08 00 FA 0D 80 13 01 00 00 00 00 00 84 [13:35:53]Write i2c OK [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 [13:35:53]MH_I2C_Read... [13:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:53]Read from MH i2c: E2 0E 00 [13:35:53]MH_I2C_Read... [13:35:53]Read from MH i2c: E2 0E 00 FA 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 15 [13:35:53]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:35:53]wFMCommunicate OK [13:35:53]SAM_PROTO_GetShiftState done [13:35:53]FM_GetShiftState done [13:35:53]req_shift_opened done [13:35:53]requested_item shift.open_date is exist - process it [13:35:53]req_shift_open_date [13:35:53]req_shift_open_date done [13:35:53]produce_requested_data done [13:35:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139719,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:35:53]process_action_free close_receipt [13:35:53]json_value_free [13:35:53]json_value_free done [13:35:53]process_json_proto returns [13:35:53]Send response to host [13:35:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139719,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:35:53]free response buf [13:35:53]execute_script done [13:35:53]execute_script returns [13:35:53]free content buf [13:35:53]Sock 9.Close socket [13:35:53]Sock 9.Thread stoped [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:55]int [13:36:55]Write to MH i2c: 01 00 00 FB 0D 08 [13:36:55]*** FLAG_PRN_KEY set [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 FB 0D 00 08 00 00 00 FF 0F 25 [13:36:55]state=0 [13:36:55]Key pressed [13:36:55]Feed [13:36:55]Write to MH i2c: D8 00 00 FC 0D E0 [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: D8 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: D8 01 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: D8 01 00 FC 0D 00 E1 [13:36:55]int [13:36:55]Write to MH i2c: 01 00 00 FD 0D 0A [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 FD 0D 00 48 00 00 00 3C 00 95 [13:36:55]state=2 [13:36:55]Key pressed [13:36:55]int [13:36:55]Write to MH i2c: 01 00 00 FE 0D 0B [13:36:55]*** FLAG_PRN_KEY reset [13:36:55]Write i2c OK [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 [13:36:55]MH_I2C_Read... [13:36:55]Read from MH i2c: 01 07 00 FE 0D 00 00 00 00 00 F6 0F 17 [13:36:55]state=2 [13:36:55]Stop feed [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:43]accept exits with 8 [13:37:43]New connection [13:37:43]New thread 3067145572 created [13:37:43]Thread 3067288932 joined [13:37:43]Waiting for new connection... [13:37:43] Sock 8.Parse request [13:37:43]Sock 8.Check first char [13:37:43]Sock 8.First char is OK [13:37:43]request: POST /json_proto HTTP/1.0 [13:37:43]Method: POST [13:37:43]URL: /json_proto [13:37:43]Method is POST - this is cgi request [13:37:43]url: /json_proto [13:37:43]query_string will be loaded in cgi processing [13:37:43]execute_cgi json_proto POST (null) [13:37:43]execute_cgi path=json_proto method=POST [13:37:43]POST find Content-Length [13:37:43]Host: 172.17.45.67:8080 [13:37:43]Content-Length: 677 [13:37:43]Content-Type: application/json [13:37:43] [13:37:43]POST finish read [13:37:43]Found Content-Length = 677 [13:37:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:43]execute_script... [13:37: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)593567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:43]POST & json_proto [13:37:43]process_json_proto [13:37:43]json parsed OK: [13:37:43]protocol is kg_v1.0 [13:37:43]action value=close_receipt [13:37:43]process_action close_receipt [13:37:43]cmd_close_receipt [13:37:43]MH_GetDate [13:37:43]Write to MH i2c: F0 00 00 FF 0D FB [13:37:43]Write i2c OK [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: F0 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: F0 09 00 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: F0 09 00 FF 0D 00 28 9C C4 66 5F 7F 2B 66 61 [13:37:43]GetLastDocTimeStamp 1724160949 [13:37:43]current date 1724161064 [13:37:43]FM_GetShiftState [13:37:43]SAM_PROTO_GetShiftState [13:37:43]wFMCommunicate request_size=4 [13:37:43]MH_SAM_APDU [13:37:43]CAPDU: 80 13 01 00 [13:37:43]Write to MH i2c: E2 08 00 00 0E 80 13 01 00 00 00 00 00 8B [13:37:43]Write i2c OK [13:37:43]MH_I2C_Read... [13:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:43]Read from MH i2c: E2 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: E2 0E 00 [13:37:43]MH_I2C_Read... [13:37:43]Read from MH i2c: E2 0E 00 00 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1C [13:37:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:37:43]wFMCommunicate OK [13:37:43]SAM_PROTO_GetShiftState done [13:37:43]FM_GetShiftState done [13:37:43]opened in 1724113785 [13:37:43]opened+sec_in_day 1724200185 [13:37:43]quantity*price = 25018 [13:37:43]sum+1 = 25019 [13:37:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 192 20.08.2024 13:37 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139720 ФПД: 81339441686787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133744&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139720&fm=81339441686787&tin=02508201610067®Number=0000000000092569&sum=25000 [13:37:45]StoreToDocumentArchive [13:37:45]shift 453 fd 139720 [13:37:45]save to /storage/0453/doc_00139720 [13:37:45]save last doc name /storage/0453/doc_00139720 to /storage/kkm_last_doc_name [13:37:45]save OK [13:37:45]Clear old archive folders... [13:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:45]tlvbuf is 02010B10 [13:37:45]SAM_PROTO_ClearQueue [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 09 00 00 [13:37:45]Write to MH i2c: E2 08 00 0D 0E 80 09 00 00 00 00 00 00 8D [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 0D 0E 00 90 00 8F [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]SAM_PROTO_ClearQueue done [13:37:45]KKMCreateOFDPacket [13:37:45]OFDProtocolAddRootSTLVToBuf [13:37:45]FM_MakeSignedData [13:37:45]FM_MakeSignedData [13:37:45]SAM_PROTO_SignData [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 01 02 [13:37:45]Write to MH i2c: E2 08 00 0E 0E 80 0D 01 02 00 00 00 00 95 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 0E 0E 00 90 00 90 [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]wFMCommunicate request_size=255 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 28 9C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 21 02 00 35 04 06 00 49 [13:37:45]Write to MH i2c: E2 02 01 0F 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 28 9C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 21 02 00 35 04 06 00 49 00 00 D4 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 0F 0E 00 90 00 91 [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]wFMCommunicate request_size=10 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 02 02 05 FA 50 87 29 03 [13:37:45]Write to MH i2c: E2 0D 00 10 0E 80 0D 02 02 05 00 FA 50 87 29 03 00 00 9F [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 10 0E 00 90 00 92 [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 03 02 [13:37:45]Write to MH i2c: E2 08 00 11 0E 80 0D 03 02 00 00 00 00 9A [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 0B 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 0B 00 11 0E 00 89 25 44 FD 9B 4C 53 CC 90 00 90 [13:37:45]RAPDU: 89 25 44 FD 9B 4C 53 CC 90 00 [13:37:45]wFMCommunicate OK [13:37:45]SAM_PROTO_SignData done [13:37:45]FM_MakeSignedData done [13:37:45]CreateOFDProtocolMessage [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 11 00 00 [13:37:45]Write to MH i2c: E2 08 00 12 0E 80 11 00 00 00 00 00 00 9A [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 17 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 17 00 12 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [13:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:37:45]wFMCommunicate OK [13:37:45]CreateOFDProtocolMessage done [13:37:45]OFDSenderStorePacket 139720 [13:37:45]StoreOFDPacket docnum=139720 [13:37:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 19 8E 07 01 63 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 28 9C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 21 02 00 35 04 06 00 49 FA 50 87 29 03 89 25 44 FD 9B 4C 53 CC [13:37:45]CheckFolder [13:37:45]dirname=/storage/ofd_packets [13:37:45]CheckFolder done [13:37:45]ProducePacketName [13:37:45]name=ofd_packets/00139720 [13:37:45]NVStorageSaveData ofd_packets/00139720 [13:37:45]File name is /storage/ofd_packets/00139720 [13:37:45]Write 301 bytes [13:37:45]NVStorageSaveData done [13:37:45]OFDSenderStorePacket done [13:37:45]KKMCreateOFDPacket done [13:37:45]NVStorageSaveData kkm_last_timestamp [13:37:45]File name is /storage/kkm_last_timestamp [13:37:45]Write 4 bytes [13:37:45]NVStorageSaveData done [13:37:45]ExternCall_PrintAddStr [13:37:45]wPrintStart [13:37:45]Write to MH i2c: 01 00 00 13 0E 21 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 07 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 07 00 13 0E 00 00 00 00 00 FF 0F 36 [13:37:45]RasterBufferAndPrint [13:37:45]line Счет N : (1)593567 [13:37:45]line ИНН: 02508201610067 [13:37:45]line Контрольно-Кассовый Чек [13:37:45]line ПРОДАЖА [13:37:45]line ТРК (МРК, ГНК) : 42 [13:37:45]line Товар: 2710124130 [13:37:45]line Аи-92-К-5 [13:37:45]line 3.690 * 67.80 [13:37:45]line = 250.18 [13:37:45]line НДС 12% НСП 1% [13:37:45]line > о реализуемом товаре [13:37:45]line ОКРУГЛЕНИЕ: -0.18 [13:37:45]line ИТОГО: 250.00 [13:37:45]line Внесено: 250.00 [13:37:45]line СДАЧА: 0.00 [13:37:45]line НСП 1% : 2.21 [13:37:45]line НДС 12% : 26.57 [13:37:45]line Наличными: 250.00 [13:37:45]line Безнал.: 0.00 [13:37:45]line Место: АЗС № 136 "Партнер Нефть" [13:37:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:37:45]line СНО: Общий режим [13:37:45]line Чек 192 20.08.2024 13:37 [13:37:45]line Смена: 453 ФФД: 1.0 [13:37:45]line ЗНМ: 0300000067 [13:37:45]line РНМ: 0000000000092569 [13:37:45]line Версия ККМ: 001 [13:37:45]line ФМ: 0000000000871776 [13:37:45]line ФД: 139720 [13:37:45]line ФПД: 81339441686787 [13:37:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T133744&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139720&fm=81339441686787&tin=02508201610067®Number=0000000000092569&sum=25000 [13:37:45]written 0, free lines is 4095 [13:37:45]OFD Sender: Processing packet 139720 [packets to send 137, broken 136] [13:37:45]ProducePacketName [13:37:45]name=ofd_packets/00139720 [13:37:45]OFD Sender: To server: pG, [13:37:45]CommunicateWithHost lk.salyk.kg:30040 [13:37:45]ConnectInit lk.salyk.kg [13:37:46]Connected sock=10 [13:37:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 19 8E 07 01 63 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 28 9C C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 21 02 00 35 04 06 00 49 FA 50 87 29 03 89 25 44 FD 9B 4C 53 CC [13:37:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E9 B2 47 00 A6 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 21 02 00 F4 03 04 00 BB 42 C4 66 B6 04 01 00 00 40 09 2D FF 08 0D 2D EB [13:37:46]CommunicateWithHost err = 0 [13:37:46]CheckOFDResponse [13:37:46]1017 (14) - 77093643461234 [13:37:46]1041 (16) - 0000000000871776 [13:37:46]1040 (4) - 139720 [13:37:46]1012 (4) - 20.08.2024 07:16 [13:37:46]1206 (1) - 0 [13:37:46]OFD Sender: Remove packet 139720 [13:37:46]ProducePacketName [13:37:46]name=ofd_packets/00139720 [13:37:46]NVStorageDeleteData [13:37:46]Write to MH i2c: 01 00 00 3E 0E 4C [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 3E 0E 00 00 00 00 00 DD 0C 3C [13:37:46]RasterBufferAndPrint [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]written 0, free lines is 3299 [13:37:46]MH_Cut [13:37:46]Write to MH i2c: D1 01 00 45 0E 01 25 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: D1 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: D1 01 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: D1 01 00 45 0E 00 24 [13:37:46]Write to MH i2c: 01 00 00 46 0E 54 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]OFD Sender: No OFD packet to send [13:37:47]*** Cut start [13:37:47]*** Partial cut [13:37:47]*** CUTSNS_PIN = 1 [13:37:47]*** CUTSNS_PIN = 0 [13:37:47]*** Brake cut motor [13:37:47]Read from MH i2c: 01 [13:37:47]MH_I2C_Read... [13:37:47]*** Stop cut motor [13:37:47]*** Cut end [13:37:47]Read from MH i2c: 01 07 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: 01 07 00 46 0E 00 00 00 00 00 FF 0F 69 [13:37:47]process_action close_receipt done [13:37:47]requested_data is exist [13:37:47]produce_requested_data [13:37:47]requested_item fm.sn is exist - process it [13:37:47]wFMCommunicate request_size=4 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 11 00 00 [13:37:47]Write to MH i2c: E2 08 00 47 0E 80 11 00 00 00 00 00 00 CF [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 17 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 17 00 47 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [13:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:37:47]wFMCommunicate OK [13:37:47]requested_item fd.num is exist - process it [13:37:47]SAM_PROTO_GetFieldsCounters [13:37:47]wFMCommunicate request_size=4 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 13 00 00 [13:37:47]Write to MH i2c: E2 08 00 48 0E 80 13 00 00 00 00 00 00 D2 [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 62 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 62 00 48 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [13:37:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:47]wFMCommunicate OK [13:37:47]SAM_PROTO_GetFieldsCounters done [13:37:47]requested_item shift.num is exist - process it [13:37:47]requested_item shift.opened is exist - process it [13:37:47]req_shift_opened [13:37:47]FM_GetShiftState [13:37:47]SAM_PROTO_GetShiftState [13:37:47]wFMCommunicate request_size=4 [13:37:47]MH_SAM_APDU [13:37:47]CAPDU: 80 13 01 00 [13:37:47]Write to MH i2c: E2 08 00 49 0E 80 13 01 00 00 00 00 00 D4 [13:37:47]Write i2c OK [13:37:47]MH_I2C_Read... [13:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:47]Read from MH i2c: E2 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 0E 00 [13:37:47]MH_I2C_Read... [13:37:47]Read from MH i2c: E2 0E 00 49 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 65 [13:37:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:37:47]wFMCommunicate OK [13:37:47]SAM_PROTO_GetShiftState done [13:37:47]FM_GetShiftState done [13:37:47]req_shift_opened done [13:37:47]requested_item shift.open_date is exist - process it [13:37:47]req_shift_open_date [13:37:47]req_shift_open_date done [13:37:47]produce_requested_data done [13:37:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139720,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:37:47]process_action_free close_receipt [13:37:47]json_value_free [13:37:47]json_value_free done [13:37:47]process_json_proto returns [13:37:47]Send response to host [13:37:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139720,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:37:47]free response buf [13:37:47]execute_script done [13:37:47]execute_script returns [13:37:47]free content buf [13:37:47]Sock 8.Close socket [13:37:47]Sock 8.Thread stoped [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]accept exits with 9 [13:42:02]New connection [13:42:02]New thread 3067288932 created [13:42:02]Thread 3067145572 joined [13:42:02]Waiting for new connection... [13:42:02] Sock 9.Parse request [13:42:02]Sock 9.Check first char [13:42:02]Sock 9.First char is OK [13:42:02]request: POST /json_proto HTTP/1.0 [13:42:02]Method: POST [13:42:02]URL: /json_proto [13:42:02]Method is POST - this is cgi request [13:42:02]url: /json_proto [13:42:02]query_string will be loaded in cgi processing [13:42:02]execute_cgi json_proto POST (null) [13:42:02]execute_cgi path=json_proto method=POST [13:42:02]POST find Content-Length [13:42:02]Host: 172.17.45.67:8080 [13:42:02]Content-Length: 682 [13:42:02]Content-Type: application/json [13:42:02] [13:42:02]POST finish read [13:42:02]Found Content-Length = 682 [13:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:02]execute_script... [13:42: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)593568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:02]POST & json_proto [13:42:02]process_json_proto [13:42:02]json parsed OK: [13:42:02]protocol is kg_v1.0 [13:42:02]action value=close_receipt [13:42:02]process_action close_receipt [13:42:02]cmd_close_receipt [13:42:02]MH_GetDate [13:42:02]Write to MH i2c: F0 00 00 4A 0E 47 [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: F0 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: F0 09 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: F0 09 00 4A 0E 00 2A 9D C4 66 5F 7F 2B 66 B0 [13:42:02]GetLastDocTimeStamp 1724161064 [13:42:02]current date 1724161322 [13:42:02]FM_GetShiftState [13:42:02]SAM_PROTO_GetShiftState [13:42:02]wFMCommunicate request_size=4 [13:42:02]MH_SAM_APDU [13:42:02]CAPDU: 80 13 01 00 [13:42:02]Write to MH i2c: E2 08 00 4B 0E 80 13 01 00 00 00 00 00 D6 [13:42:02]Write i2c OK [13:42:02]MH_I2C_Read... [13:42:02]OFD Sender: No OFD packet to send [13:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:02]Read from MH i2c: E2 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 0E 00 [13:42:02]MH_I2C_Read... [13:42:02]Read from MH i2c: E2 0E 00 4B 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 67 [13:42:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:42:02]wFMCommunicate OK [13:42:02]SAM_PROTO_GetShiftState done [13:42:02]FM_GetShiftState done [13:42:02]opened in 1724113785 [13:42:02]opened+sec_in_day 1724200185 [13:42:02]quantity*price = 100021 [13:42:02]sum+1 = 100023 [13:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 193 20.08.2024 13:42 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139721 ФПД: 29621717914140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T134202&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139721&fm=29621717914140&tin=02508201610067®Number=0000000000092569&sum=100000 [13:42:03]StoreToDocumentArchive [13:42:03]shift 453 fd 139721 [13:42:03]save to /storage/0453/doc_00139721 [13:42:03]save last doc name /storage/0453/doc_00139721 to /storage/kkm_last_doc_name [13:42:03]save OK [13:42:03]Clear old archive folders... [13:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:03]tlvbuf is 01FFECB0 [13:42:03]SAM_PROTO_ClearQueue [13:42:03]wFMCommunicate request_size=4 [13:42:03]MH_SAM_APDU [13:42:03]CAPDU: 80 09 00 00 [13:42:03]Write to MH i2c: E2 08 00 58 0E 80 09 00 00 00 00 00 00 D8 [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:03]Read from MH i2c: E2 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 03 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 03 00 58 0E 00 90 00 DA [13:42:03]RAPDU: 90 00 [13:42:03]wFMCommunicate OK [13:42:03]SAM_PROTO_ClearQueue done [13:42:03]KKMCreateOFDPacket [13:42:03]OFDProtocolAddRootSTLVToBuf [13:42:03]FM_MakeSignedData [13:42:03]FM_MakeSignedData [13:42:03]SAM_PROTO_SignData [13:42:03]wFMCommunicate request_size=4 [13:42:03]MH_SAM_APDU [13:42:03]CAPDU: 80 0D 01 02 [13:42:03]Write to MH i2c: E2 08 00 59 0E 80 0D 01 02 00 00 00 00 E0 [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:03]Read from MH i2c: E2 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 03 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 03 00 59 0E 00 90 00 DB [13:42:03]RAPDU: 90 00 [13:42:03]wFMCommunicate OK [13:42:03]wFMCommunicate request_size=255 [13:42:03]MH_SAM_APDU [13: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 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 2A 9D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 21 02 00 35 04 06 00 1A [13:42:03]Write to MH i2c: E2 02 01 5A 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 C1 00 00 00 F4 03 04 00 2A 9D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 21 02 00 35 04 06 00 1A 00 00 14 [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:03]Read from MH i2c: E2 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 03 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 03 00 5A 0E 00 90 00 DC [13:42:03]RAPDU: 90 00 [13:42:03]wFMCommunicate OK [13:42:03]wFMCommunicate request_size=10 [13:42:03]MH_SAM_APDU [13:42:03]CAPDU: 80 0D 02 02 05 F0 D7 F9 52 1C [13:42:03]Write to MH i2c: E2 0D 00 5B 0E 80 0D 02 02 05 00 F0 D7 F9 52 1C 00 00 1B [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:03]Read from MH i2c: E2 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 03 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 03 00 5B 0E 00 90 00 DD [13:42:03]RAPDU: 90 00 [13:42:03]wFMCommunicate OK [13:42:03]wFMCommunicate request_size=4 [13:42:03]MH_SAM_APDU [13:42:03]CAPDU: 80 0D 03 02 [13:42:03]Write to MH i2c: E2 08 00 5C 0E 80 0D 03 02 00 00 00 00 E5 [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:03]Read from MH i2c: E2 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 0B 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 0B 00 5C 0E 00 33 2B 38 FC C7 EE 5E 40 90 00 CB [13:42:03]RAPDU: 33 2B 38 FC C7 EE 5E 40 90 00 [13:42:03]wFMCommunicate OK [13:42:03]SAM_PROTO_SignData done [13:42:03]FM_MakeSignedData done [13:42:03]CreateOFDProtocolMessage [13:42:03]wFMCommunicate request_size=4 [13:42:03]MH_SAM_APDU [13:42:03]CAPDU: 80 11 00 00 [13:42:03]Write to MH i2c: E2 08 00 5D 0E 80 11 00 00 00 00 00 00 E5 [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:03]Read from MH i2c: E2 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 17 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: E2 17 00 5D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [13:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:42:03]wFMCommunicate OK [13:42:03]CreateOFDProtocolMessage done [13:42:03]OFDSenderStorePacket 139721 [13:42:03]StoreOFDPacket docnum=139721 [13:42:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1F 8E 07 01 1C 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 C1 00 00 00 F4 03 04 00 2A 9D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 21 02 00 35 04 06 00 1A F0 D7 F9 52 1C 33 2B 38 FC C7 EE 5E 40 [13:42:03]CheckFolder [13:42:03]dirname=/storage/ofd_packets [13:42:03]CheckFolder done [13:42:03]ProducePacketName [13:42:03]name=ofd_packets/00139721 [13:42:03]NVStorageSaveData ofd_packets/00139721 [13:42:03]File name is /storage/ofd_packets/00139721 [13:42:03]Write 301 bytes [13:42:03]NVStorageSaveData done [13:42:03]OFDSenderStorePacket done [13:42:03]KKMCreateOFDPacket done [13:42:03]NVStorageSaveData kkm_last_timestamp [13:42:03]File name is /storage/kkm_last_timestamp [13:42:03]Write 4 bytes [13:42:03]NVStorageSaveData done [13:42:03]ExternCall_PrintAddStr [13:42:03]wPrintStart [13:42:03]Write to MH i2c: 01 00 00 5E 0E 6C [13:42:03]Write i2c OK [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 [13:42:03]MH_I2C_Read... [13:42:03]Read from MH i2c: 01 07 00 5E 0E 00 00 00 00 00 FF 0F 81 [13:42:03]RasterBufferAndPrint [13:42:03]line Счет N : (1)593568 [13:42:03]line ИНН: 02508201610067 [13:42:03]line Контрольно-Кассовый Чек [13:42:03]line ПРОДАЖА [13:42:03]line ТРК (МРК, ГНК) : 61 [13:42:03]line Товар: 2710124500 [13:42:03]line Аи-95-К-5 [13:42:03]line 13.480 * 74.20 [13:42:03]line = 1000.22 [13:42:03]line НДС 12% НСП 1% [13:42:03]line > о реализуемом товаре [13:42:03]line ОКРУГЛЕНИЕ: -0.22 [13:42:03]line ИТОГО: 1000.00 [13:42:03]line Внесено: 1000.00 [13:42:03]line СДАЧА: 0.00 [13:42:03]line НСП 1% : 8.85 [13:42:03]line НДС 12% : 106.22 [13:42:03]line Наличными: 1000.00 [13:42:03]line Безнал.: 0.00 [13:42:03]line Место: АЗС № 136 "Партнер Нефть" [13:42:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:42:03]line СНО: Общий режим [13:42:03]line Чек 193 20.08.2024 13:42 [13:42:03]line Смена: 453 ФФД: 1.0 [13:42:03]line ЗНМ: 0300000067 [13:42:03]line РНМ: 0000000000092569 [13:42:03]line Версия ККМ: 001 [13:42:03]line ФМ: 0000000000871776 [13:42:03]line ФД: 139721 [13:42:03]line ФПД: 29621717914140 [13:42:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T134202&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139721&fm=29621717914140&tin=02508201610067®Number=0000000000092569&sum=100000 [13:42:04]OFD Sender: Processing packet 139721 [packets to send 137, broken 136] [13:42:04]ProducePacketName [13:42:04]name=ofd_packets/00139721 [13:42:04]OFD Sender: To server: pG, [13:42:04]CommunicateWithHost lk.salyk.kg:30040 [13:42:04]ConnectInit lk.salyk.kg [13:42:04]written 0, free lines is 4095 [13:42:04]Connected sock=10 [13:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1F 8E 07 01 1C 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 C1 00 00 00 F4 03 04 00 2A 9D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 21 02 00 35 04 06 00 1A F0 D7 F9 52 1C 33 2B 38 FC C7 EE 5E 40 [13:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DA D8 47 00 12 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 21 02 00 F4 03 04 00 BD 43 C4 66 B6 04 01 00 00 D8 85 C2 A4 54 D7 21 70 [13:42:04]CommunicateWithHost err = 0 [13:42:04]CheckOFDResponse [13:42:04]1017 (14) - 77093643461234 [13:42:04]1041 (16) - 0000000000871776 [13:42:04]1040 (4) - 139721 [13:42:04]1012 (4) - 20.08.2024 07:20 [13:42:04]1206 (1) - 0 [13:42:04]OFD Sender: Remove packet 139721 [13:42:04]ProducePacketName [13:42:04]name=ofd_packets/00139721 [13:42:04]NVStorageDeleteData [13:42:04]Write to MH i2c: 01 00 00 89 0E 97 [13:42:04]Write i2c OK [13:42:04]MH_I2C_Read... [13:42:04]Read from MH i2c: 01 [13:42:04]MH_I2C_Read... [13:42:04]Read from MH i2c: 01 07 00 [13:42:04]MH_I2C_Read... [13:42:04]Read from MH i2c: 01 07 00 89 0E 00 00 00 00 00 C4 0C 6E [13:42:04]RasterBufferAndPrint [13:42:04]line [13:42:04]line [13:42:04]line [13:42:04]line [13:42:04]line [13:42:04]written 0, free lines is 3276 [13:42:04]MH_Cut [13:42:04]Write to MH i2c: D1 01 00 90 0E 01 70 [13:42:04]Write i2c OK [13:42:04]MH_I2C_Read... [13:42:04]Read from MH i2c: D1 [13:42:04]MH_I2C_Read... [13:42:04]Read from MH i2c: D1 01 00 [13:42:04]MH_I2C_Read... [13:42:04]Read from MH i2c: D1 01 00 90 0E 00 6F [13:42:04]Write to MH i2c: 01 00 00 91 0E 9F [13:42:04]Write i2c OK [13:42:04]MH_I2C_Read... [13:42:05]OFD Sender: No OFD packet to send [13:42:05]*** Cut start [13:42:05]*** Partial cut [13:42:05]*** CUTSNS_PIN = 1 [13:42:05]*** CUTSNS_PIN = 0 [13:42:05]*** Brake cut motor [13:42:05]Read from MH i2c: 01 [13:42:05]MH_I2C_Read... [13:42:05]*** Stop cut motor [13:42:05]*** Cut end [13:42:05]Read from MH i2c: 01 07 00 [13:42:05]MH_I2C_Read... [13:42:05]Read from MH i2c: 01 07 00 91 0E 00 00 00 00 00 FF 0F B4 [13:42:05]process_action close_receipt done [13:42:05]requested_data is exist [13:42:05]produce_requested_data [13:42:05]requested_item fm.sn is exist - process it [13:42:05]wFMCommunicate request_size=4 [13:42:05]MH_SAM_APDU [13:42:05]CAPDU: 80 11 00 00 [13:42:05]Write to MH i2c: E2 08 00 92 0E 80 11 00 00 00 00 00 00 1A [13:42:05]Write i2c OK [13:42:05]MH_I2C_Read... [13:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:06]Read from MH i2c: E2 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: E2 17 00 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: E2 17 00 92 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 71 [13:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:42:06]wFMCommunicate OK [13:42:06]requested_item fd.num is exist - process it [13:42:06]SAM_PROTO_GetFieldsCounters [13:42:06]wFMCommunicate request_size=4 [13:42:06]MH_SAM_APDU [13:42:06]CAPDU: 80 13 00 00 [13:42:06]Write to MH i2c: E2 08 00 93 0E 80 13 00 00 00 00 00 00 1D [13:42:06]Write i2c OK [13:42:06]MH_I2C_Read... [13:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:06]Read from MH i2c: E2 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: E2 62 00 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: E2 62 00 93 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [13:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:06]wFMCommunicate OK [13:42:06]SAM_PROTO_GetFieldsCounters done [13:42:06]requested_item shift.num is exist - process it [13:42:06]requested_item shift.opened is exist - process it [13:42:06]req_shift_opened [13:42:06]FM_GetShiftState [13:42:06]SAM_PROTO_GetShiftState [13:42:06]wFMCommunicate request_size=4 [13:42:06]MH_SAM_APDU [13:42:06]CAPDU: 80 13 01 00 [13:42:06]Write to MH i2c: E2 08 00 94 0E 80 13 01 00 00 00 00 00 1F [13:42:06]Write i2c OK [13:42:06]MH_I2C_Read... [13:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:06]Read from MH i2c: E2 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: E2 0E 00 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: E2 0E 00 94 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B0 [13:42:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:42:06]wFMCommunicate OK [13:42:06]SAM_PROTO_GetShiftState done [13:42:06]FM_GetShiftState done [13:42:06]req_shift_opened done [13:42:06]requested_item shift.open_date is exist - process it [13:42:06]req_shift_open_date [13:42:06]req_shift_open_date done [13:42:06]produce_requested_data done [13:42:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139721,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:42:06]process_action_free close_receipt [13:42:06]json_value_free [13:42:06]json_value_free done [13:42:06]process_json_proto returns [13:42:06]Send response to host [13:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139721,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:42:06]free response buf [13:42:06]execute_script done [13:42:06]execute_script returns [13:42:06]free content buf [13:42:06]Sock 9.Close socket [13:42:06]Sock 9.Thread stoped [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:42]accept exits with 8 [13:42:42]New connection [13:42:42]New thread 3067145572 created [13:42:42]Thread 3067288932 joined [13:42:42]Waiting for new connection... [13:42:42] Sock 8.Parse request [13:42:42]Sock 8.Check first char [13:42:42]Sock 8.First char is OK [13:42:42]request: POST /json_proto HTTP/1.0 [13:42:42]Method: POST [13:42:42]URL: /json_proto [13:42:42]Method is POST - this is cgi request [13:42:42]url: /json_proto [13:42:42]query_string will be loaded in cgi processing [13:42:42]execute_cgi json_proto POST (null) [13:42:42]execute_cgi path=json_proto method=POST [13:42:42]POST find Content-Length [13:42:42]Host: 172.17.45.67:8080 [13:42:42]Content-Length: 677 [13:42:42]Content-Type: application/json [13:42:42] [13:42:42]POST finish read [13:42:42]Found Content-Length = 677 [13:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:42]execute_script... [13:42:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:42]POST & json_proto [13:42:42]process_json_proto [13:42:42]json parsed OK: [13:42:42]protocol is kg_v1.0 [13:42:42]action value=close_receipt [13:42:42]process_action close_receipt [13:42:42]cmd_close_receipt [13:42:42]MH_GetDate [13:42:42]Write to MH i2c: F0 00 00 95 0E 92 [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: F0 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: F0 09 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: F0 09 00 95 0E 00 53 9D C4 66 5F 7F 2B 66 24 [13:42:42]GetLastDocTimeStamp 1724161322 [13:42:42]current date 1724161363 [13:42:42]FM_GetShiftState [13:42:42]SAM_PROTO_GetShiftState [13:42:42]wFMCommunicate request_size=4 [13:42:42]MH_SAM_APDU [13:42:42]CAPDU: 80 13 01 00 [13:42:42]Write to MH i2c: E2 08 00 96 0E 80 13 01 00 00 00 00 00 21 [13:42:42]Write i2c OK [13:42:42]MH_I2C_Read... [13:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:42]Read from MH i2c: E2 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 0E 00 [13:42:42]MH_I2C_Read... [13:42:42]Read from MH i2c: E2 0E 00 96 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B2 [13:42:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:42:42]wFMCommunicate OK [13:42:42]SAM_PROTO_GetShiftState done [13:42:42]FM_GetShiftState done [13:42:42]opened in 1724113785 [13:42:42]opened+sec_in_day 1724200185 [13:42:42]quantity*price = 35052 [13:42:42]sum+1 = 35054 [13:42:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 194 20.08.2024 13:42 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139722 ФПД: 194407849704842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T134243&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139722&fm=194407849704842&tin=02508201610067®Number=0000000000092569&sum=35000 [13:42:44]StoreToDocumentArchive [13:42:44]shift 453 fd 139722 [13:42:44]save to /storage/0453/doc_00139722 [13:42:44]save last doc name /storage/0453/doc_00139722 to /storage/kkm_last_doc_name [13:42:44]save OK [13:42:44]Clear old archive folders... [13:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:44]tlvbuf is 02010230 [13:42:44]SAM_PROTO_ClearQueue [13:42:44]wFMCommunicate request_size=4 [13:42:44]MH_SAM_APDU [13:42:44]CAPDU: 80 09 00 00 [13:42:44]Write to MH i2c: E2 08 00 A3 0E 80 09 00 00 00 00 00 00 23 [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 03 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 03 00 A3 0E 00 90 00 25 [13:42:44]RAPDU: 90 00 [13:42:44]wFMCommunicate OK [13:42:44]SAM_PROTO_ClearQueue done [13:42:44]KKMCreateOFDPacket [13:42:44]OFDProtocolAddRootSTLVToBuf [13:42:44]FM_MakeSignedData [13:42:44]FM_MakeSignedData [13:42:44]SAM_PROTO_SignData [13:42:44]wFMCommunicate request_size=4 [13:42:44]MH_SAM_APDU [13:42:44]CAPDU: 80 0D 01 02 [13:42:44]Write to MH i2c: E2 08 00 A4 0E 80 0D 01 02 00 00 00 00 2B [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 03 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 03 00 A4 0E 00 90 00 26 [13:42:44]RAPDU: 90 00 [13:42:44]wFMCommunicate OK [13:42:44]wFMCommunicate request_size=255 [13:42:44]MH_SAM_APDU [13:42:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 53 9D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 21 02 00 35 04 06 00 B0 [13:42:44]Write to MH i2c: E2 02 01 A5 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 53 9D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 21 02 00 35 04 06 00 B0 00 00 1E [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 03 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 03 00 A5 0E 00 90 00 27 [13:42:44]RAPDU: 90 00 [13:42:44]wFMCommunicate OK [13:42:44]wFMCommunicate request_size=10 [13:42:44]MH_SAM_APDU [13:42:44]CAPDU: 80 0D 02 02 05 D0 1A D2 BD 8A [13:42:44]Write to MH i2c: E2 0D 00 A6 0E 80 0D 02 02 05 00 D0 1A D2 BD 8A 00 00 3B [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 03 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 03 00 A6 0E 00 90 00 28 [13:42:44]RAPDU: 90 00 [13:42:44]wFMCommunicate OK [13:42:44]wFMCommunicate request_size=4 [13:42:44]MH_SAM_APDU [13:42:44]CAPDU: 80 0D 03 02 [13:42:44]Write to MH i2c: E2 08 00 A7 0E 80 0D 03 02 00 00 00 00 30 [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 0B 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 0B 00 A7 0E 00 17 22 F0 F9 10 1B DB DA 90 00 33 [13:42:44]RAPDU: 17 22 F0 F9 10 1B DB DA 90 00 [13:42:44]wFMCommunicate OK [13:42:44]SAM_PROTO_SignData done [13:42:44]FM_MakeSignedData done [13:42:44]CreateOFDProtocolMessage [13:42:44]wFMCommunicate request_size=4 [13:42:44]MH_SAM_APDU [13:42:44]CAPDU: 80 11 00 00 [13:42:44]Write to MH i2c: E2 08 00 A8 0E 80 11 00 00 00 00 00 00 30 [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:44]Read from MH i2c: E2 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 17 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: E2 17 00 A8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 87 [13:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:42:44]wFMCommunicate OK [13:42:44]CreateOFDProtocolMessage done [13:42:44]OFDSenderStorePacket 139722 [13:42:44]StoreOFDPacket docnum=139722 [13:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F2 F9 07 01 D4 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 53 9D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 21 02 00 35 04 06 00 B0 D0 1A D2 BD 8A 17 22 F0 F9 10 1B DB DA [13:42:44]CheckFolder [13:42:44]dirname=/storage/ofd_packets [13:42:44]CheckFolder done [13:42:44]ProducePacketName [13:42:44]name=ofd_packets/00139722 [13:42:44]NVStorageSaveData ofd_packets/00139722 [13:42:44]File name is /storage/ofd_packets/00139722 [13:42:44]Write 301 bytes [13:42:44]NVStorageSaveData done [13:42:44]OFDSenderStorePacket done [13:42:44]KKMCreateOFDPacket done [13:42:44]NVStorageSaveData kkm_last_timestamp [13:42:44]File name is /storage/kkm_last_timestamp [13:42:44]Write 4 bytes [13:42:44]NVStorageSaveData done [13:42:44]ExternCall_PrintAddStr [13:42:44]wPrintStart [13:42:44]Write to MH i2c: 01 00 00 A9 0E B7 [13:42:44]Write i2c OK [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: 01 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: 01 07 00 [13:42:44]MH_I2C_Read... [13:42:44]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 FF 0F CC [13:42:44]RasterBufferAndPrint [13:42:44]line Счет N : (1)593569 [13:42:44]line ИНН: 02508201610067 [13:42:44]line Контрольно-Кассовый Чек [13:42:44]line ПРОДАЖА [13:42:44]line ТРК (МРК, ГНК) : 52 [13:42:44]line Товар: 2710124130 [13:42:44]line Аи-92-К-5 [13:42:44]line 5.170 * 67.80 [13:42:44]line = 350.53 [13:42:44]line НДС 12% НСП 1% [13:42:44]line > о реализуемом товаре [13:42:44]line ОКРУГЛЕНИЕ: -0.53 [13:42:44]line ИТОГО: 350.00 [13:42:44]line Внесено: 350.00 [13:42:44]line СДАЧА: 0.00 [13:42:44]line НСП 1% : 3.10 [13:42:44]line НДС 12% : 37.22 [13:42:44]line Наличными: 350.00 [13:42:44]line Безнал.: 0.00 [13:42:44]line Место: АЗС № 136 "Партнер Нефть" [13:42:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:42:44]line СНО: Общий режим [13:42:44]line Чек 194 20.08.2024 13:42 [13:42:44]line Смена: 453 ФФД: 1.0 [13:42:44]line ЗНМ: 0300000067 [13:42:44]line РНМ: 0000000000092569 [13:42:44]line Версия ККМ: 001 [13:42:44]line ФМ: 0000000000871776 [13:42:44]line ФД: 139722 [13:42:44]line ФПД: 194407849704842 [13:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T134243&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139722&fm=194407849704842&tin=02508201610067®Number=0000000000092569&sum=35000 [13:42:44]OFD Sender: Processing packet 139722 [packets to send 137, broken 136] [13:42:44]ProducePacketName [13:42:44]name=ofd_packets/00139722 [13:42:44]OFD Sender: To server: pG, [13:42:44]CommunicateWithHost lk.salyk.kg:30040 [13:42:44]ConnectInit lk.salyk.kg [13:42:44]written 0, free lines is 4095 [13:42:45]Connected sock=9 [13:42:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F2 F9 07 01 D4 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 53 9D C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 21 02 00 35 04 06 00 B0 D0 1A D2 BD 8A 17 22 F0 F9 10 1B DB DA [13:42:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E6 D4 47 00 C6 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 21 02 00 F4 03 04 00 E6 43 C4 66 B6 04 01 00 00 01 81 DF 93 51 C6 6B 28 [13:42:45]CommunicateWithHost err = 0 [13:42:45]CheckOFDResponse [13:42:45]1017 (14) - 77093643461234 [13:42:45]1041 (16) - 0000000000871776 [13:42:45]1040 (4) - 139722 [13:42:45]1012 (4) - 20.08.2024 07:21 [13:42:45]1206 (1) - 0 [13:42:45]OFD Sender: Remove packet 139722 [13:42:45]ProducePacketName [13:42:45]name=ofd_packets/00139722 [13:42:45]NVStorageDeleteData [13:42:45]Write to MH i2c: 01 00 00 D4 0E E2 [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: 01 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: 01 07 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: 01 07 00 D4 0E 00 00 00 00 00 D3 0C C8 [13:42:45]RasterBufferAndPrint [13:42:45]line [13:42:45]line [13:42:45]line [13:42:45]line [13:42:45]line [13:42:45]written 0, free lines is 3290 [13:42:45]MH_Cut [13:42:45]Write to MH i2c: D1 01 00 DB 0E 01 BB [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: D1 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: D1 01 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: D1 01 00 DB 0E 00 BA [13:42:45]Write to MH i2c: 01 00 00 DC 0E EA [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]OFD Sender: No OFD packet to send [13:42:46]*** Cut start [13:42:46]*** Partial cut [13:42:46]*** CUTSNS_PIN = 1 [13:42:46]*** CUTSNS_PIN = 0 [13:42:46]*** Brake cut motor [13:42:46]Read from MH i2c: 01 [13:42:46]MH_I2C_Read... [13:42:46]*** Stop cut motor [13:42:46]*** Cut end [13:42:46]Read from MH i2c: 01 07 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: 01 07 00 DC 0E 00 00 00 00 00 FF 0F FF [13:42:46]process_action close_receipt done [13:42:46]requested_data is exist [13:42:46]produce_requested_data [13:42:46]requested_item fm.sn is exist - process it [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 11 00 00 [13:42:46]Write to MH i2c: E2 08 00 DD 0E 80 11 00 00 00 00 00 00 65 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 17 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 17 00 DD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BC [13:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:42:46]wFMCommunicate OK [13:42:46]requested_item fd.num is exist - process it [13:42:46]SAM_PROTO_GetFieldsCounters [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 13 00 00 [13:42:46]Write to MH i2c: E2 08 00 DE 0E 80 13 00 00 00 00 00 00 68 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 62 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 62 00 DE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [13:42:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:46]wFMCommunicate OK [13:42:46]SAM_PROTO_GetFieldsCounters done [13:42:46]requested_item shift.num is exist - process it [13:42:46]requested_item shift.opened is exist - process it [13:42:46]req_shift_opened [13:42:46]FM_GetShiftState [13:42:46]SAM_PROTO_GetShiftState [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 13 01 00 [13:42:46]Write to MH i2c: E2 08 00 DF 0E 80 13 01 00 00 00 00 00 6A [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 0E 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 0E 00 DF 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FB [13:42:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:42:46]wFMCommunicate OK [13:42:46]SAM_PROTO_GetShiftState done [13:42:46]FM_GetShiftState done [13:42:46]req_shift_opened done [13:42:46]requested_item shift.open_date is exist - process it [13:42:46]req_shift_open_date [13:42:46]req_shift_open_date done [13:42:46]produce_requested_data done [13:42:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139722,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:42:46]process_action_free close_receipt [13:42:46]json_value_free [13:42:46]json_value_free done [13:42:46]process_json_proto returns [13:42:46]Send response to host [13:42:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139722,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:42:46]free response buf [13:42:46]execute_script done [13:42:46]execute_script returns [13:42:46]free content buf [13:42:46]Sock 8.Close socket [13:42:46]Sock 8.Thread stoped [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:45]accept exits with 10 [13:51:45]New connection [13:51:45]New thread 3067288932 created [13:51:45]Thread 3067145572 joined [13:51:45]Waiting for new connection... [13:51:45] Sock 10.Parse request [13:51:45]Sock 10.Check first char [13:51:45]Sock 10.First char is OK [13:51:45]request: POST /json_proto HTTP/1.0 [13:51:45]Method: POST [13:51:45]URL: /json_proto [13:51:45]Method is POST - this is cgi request [13:51:45]url: /json_proto [13:51:45]query_string will be loaded in cgi processing [13:51:45]execute_cgi json_proto POST (null) [13:51:45]execute_cgi path=json_proto method=POST [13:51:45]POST find Content-Length [13:51:45]Host: 172.17.45.67:8080 [13:51:45]Content-Length: 677 [13:51:45]Content-Type: application/json [13:51:45] [13:51:45]POST finish read [13:51:45]Found Content-Length = 677 [13:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.240, "sum" : 240.41, "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" ] } } [13:51:45]execute_script... [13:51: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)593571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 3.240, "sum" : 240.41, "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" ] } } [13:51:45]POST & json_proto [13:51:45]process_json_proto [13:51:45]json parsed OK: [13:51:45]protocol is kg_v1.0 [13:51:45]action value=close_receipt [13:51:45]process_action close_receipt [13:51:45]cmd_close_receipt [13:51:45]MH_GetDate [13:51:45]Write to MH i2c: F0 00 00 E0 0E DD [13:51:45]Write i2c OK [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: F0 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: F0 09 00 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: F0 09 00 E0 0E 00 71 9F C4 66 5F 7F 2B 66 8F [13:51:45]GetLastDocTimeStamp 1724161363 [13:51:45]current date 1724161905 [13:51:45]FM_GetShiftState [13:51:45]SAM_PROTO_GetShiftState [13:51:45]wFMCommunicate request_size=4 [13:51:45]MH_SAM_APDU [13:51:45]CAPDU: 80 13 01 00 [13:51:45]Write to MH i2c: E2 08 00 E1 0E 80 13 01 00 00 00 00 00 6C [13:51:45]Write i2c OK [13:51:45]MH_I2C_Read... [13:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:45]Read from MH i2c: E2 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 0E 00 [13:51:45]MH_I2C_Read... [13:51:45]Read from MH i2c: E2 0E 00 E1 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FD [13:51:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:51:45]wFMCommunicate OK [13:51:45]SAM_PROTO_GetShiftState done [13:51:45]FM_GetShiftState done [13:51:45]opened in 1724113785 [13:51:45]opened+sec_in_day 1724200185 [13:51:45]quantity*price = 24040 [13:51:45]sum+1 = 24042 [13:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.53 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 195 20.08.2024 13:51 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139723 ФПД: 168169105642588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135145&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139723&fm=168169105642588&tin=02508201610067®Number=0000000000092569&sum=24000 [13:51:46]StoreToDocumentArchive [13:51:46]shift 453 fd 139723 [13:51:46]save to /storage/0453/doc_00139723 [13:51:46]save last doc name /storage/0453/doc_00139723 to /storage/kkm_last_doc_name [13:51:46]save OK [13:51:46]Clear old archive folders... [13:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:46]tlvbuf is 01FDDAB0 [13:51:46]SAM_PROTO_ClearQueue [13:51:46]wFMCommunicate request_size=4 [13:51:46]MH_SAM_APDU [13:51:46]CAPDU: 80 09 00 00 [13:51:46]Write to MH i2c: E2 08 00 EE 0E 80 09 00 00 00 00 00 00 6E [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:46]Read from MH i2c: E2 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 03 00 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 03 00 EE 0E 00 90 00 70 [13:51:46]RAPDU: 90 00 [13:51:46]wFMCommunicate OK [13:51:46]SAM_PROTO_ClearQueue done [13:51:46]KKMCreateOFDPacket [13:51:46]OFDProtocolAddRootSTLVToBuf [13:51:46]FM_MakeSignedData [13:51:46]FM_MakeSignedData [13:51:46]SAM_PROTO_SignData [13:51:46]wFMCommunicate request_size=4 [13:51:46]MH_SAM_APDU [13:51:46]CAPDU: 80 0D 01 02 [13:51:46]Write to MH i2c: E2 08 00 EF 0E 80 0D 01 02 00 00 00 00 76 [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:46]Read from MH i2c: E2 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 03 00 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 03 00 EF 0E 00 90 00 71 [13:51:46]RAPDU: 90 00 [13:51:46]wFMCommunicate OK [13:51:46]wFMCommunicate request_size=255 [13:51:46]MH_SAM_APDU [13:51:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E9 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 C3 00 00 00 F4 03 04 00 71 9F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 21 02 00 35 04 06 00 98 [13:51:46]Write to MH i2c: E2 02 01 F0 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E9 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 C3 00 00 00 F4 03 04 00 71 9F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 21 02 00 35 04 06 00 98 00 00 FA [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]OFD Sender: No OFD packet to send [13:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:46]Read from MH i2c: E2 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 03 00 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 03 00 F0 0E 00 90 00 72 [13:51:46]RAPDU: 90 00 [13:51:46]wFMCommunicate OK [13:51:46]wFMCommunicate request_size=10 [13:51:46]MH_SAM_APDU [13:51:46]CAPDU: 80 0D 02 02 05 F2 EB CD D4 5C [13:51:46]Write to MH i2c: E2 0D 00 F1 0E 80 0D 02 02 05 00 F2 EB CD D4 5C 00 00 5D [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:46]Read from MH i2c: E2 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 03 00 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 03 00 F1 0E 00 90 00 73 [13:51:46]RAPDU: 90 00 [13:51:46]wFMCommunicate OK [13:51:46]wFMCommunicate request_size=4 [13:51:46]MH_SAM_APDU [13:51:46]CAPDU: 80 0D 03 02 [13:51:46]Write to MH i2c: E2 08 00 F2 0E 80 0D 03 02 00 00 00 00 7B [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:46]Read from MH i2c: E2 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 0B 00 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 0B 00 F2 0E 00 A9 30 98 9C C4 C8 91 5E 90 00 04 [13:51:46]RAPDU: A9 30 98 9C C4 C8 91 5E 90 00 [13:51:46]wFMCommunicate OK [13:51:46]SAM_PROTO_SignData done [13:51:46]FM_MakeSignedData done [13:51:46]CreateOFDProtocolMessage [13:51:46]wFMCommunicate request_size=4 [13:51:46]MH_SAM_APDU [13:51:46]CAPDU: 80 11 00 00 [13:51:46]Write to MH i2c: E2 08 00 F3 0E 80 11 00 00 00 00 00 00 7B [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:46]Read from MH i2c: E2 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 17 00 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: E2 17 00 F3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [13:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:51:46]wFMCommunicate OK [13:51:46]CreateOFDProtocolMessage done [13:51:46]OFDSenderStorePacket 139723 [13:51:46]StoreOFDPacket docnum=139723 [13:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 27 07 01 A9 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E9 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 C3 00 00 00 F4 03 04 00 71 9F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 21 02 00 35 04 06 00 98 F2 EB CD D4 5C A9 30 98 9C C4 C8 91 5E [13:51:46]CheckFolder [13:51:46]dirname=/storage/ofd_packets [13:51:46]CheckFolder done [13:51:46]ProducePacketName [13:51:46]name=ofd_packets/00139723 [13:51:46]NVStorageSaveData ofd_packets/00139723 [13:51:46]File name is /storage/ofd_packets/00139723 [13:51:46]Write 301 bytes [13:51:46]NVStorageSaveData done [13:51:46]OFDSenderStorePacket done [13:51:46]KKMCreateOFDPacket done [13:51:46]NVStorageSaveData kkm_last_timestamp [13:51:46]File name is /storage/kkm_last_timestamp [13:51:46]Write 4 bytes [13:51:46]NVStorageSaveData done [13:51:46]ExternCall_PrintAddStr [13:51:46]wPrintStart [13:51:46]Write to MH i2c: 01 00 00 F4 0E 02 [13:51:46]Write i2c OK [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: 01 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: 01 07 00 [13:51:46]MH_I2C_Read... [13:51:46]Read from MH i2c: 01 07 00 F4 0E 00 00 00 00 00 FF 0F 17 [13:51:46]RasterBufferAndPrint [13:51:46]line Счет N : (1)593571 [13:51:46]line ИНН: 02508201610067 [13:51:46]line Контрольно-Кассовый Чек [13:51:46]line ПРОДАЖА [13:51:46]line ТРК (МРК, ГНК) : 51 [13:51:46]line Товар: 2710124500 [13:51:46]line Аи-95-К-5 [13:51:46]line 3.240 * 74.20 [13:51:46]line = 240.41 [13:51:46]line НДС 12% НСП 1% [13:51:46]line > о реализуемом товаре [13:51:46]line ОКРУГЛЕНИЕ: -0.41 [13:51:46]line ИТОГО: 240.00 [13:51:46]line Внесено: 240.00 [13:51:46]line СДАЧА: 0.00 [13:51:46]line НСП 1% : 2.13 [13:51:46]line НДС 12% : 25.53 [13:51:46]line Наличными: 240.00 [13:51:46]line Безнал.: 0.00 [13:51:46]line Место: АЗС № 136 "Партнер Нефть" [13:51:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:51:46]line СНО: Общий режим [13:51:46]line Чек 195 20.08.2024 13:51 [13:51:46]line Смена: 453 ФФД: 1.0 [13:51:46]line ЗНМ: 0300000067 [13:51:46]line РНМ: 0000000000092569 [13:51:46]line Версия ККМ: 001 [13:51:46]line ФМ: 0000000000871776 [13:51:46]line ФД: 139723 [13:51:46]line ФПД: 168169105642588 [13:51:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135145&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139723&fm=168169105642588&tin=02508201610067®Number=0000000000092569&sum=24000 [13:51:47]OFD Sender: Processing packet 139723 [packets to send 137, broken 136] [13:51:47]ProducePacketName [13:51:47]name=ofd_packets/00139723 [13:51:47]OFD Sender: To server: pG, [13:51:47]CommunicateWithHost lk.salyk.kg:30040 [13:51:47]ConnectInit lk.salyk.kg [13:51:47]written 0, free lines is 4095 [13:51:47]Connected sock=9 [13:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 27 07 01 A9 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 0C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 E9 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 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 C3 00 00 00 F4 03 04 00 71 9F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 21 02 00 35 04 06 00 98 F2 EB CD D4 5C A9 30 98 9C C4 C8 91 5E [13:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 55 CB 47 00 98 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 21 02 00 F4 03 04 00 04 46 C4 66 B6 04 01 00 00 47 E8 0A 95 54 43 02 95 [13:51:47]CommunicateWithHost err = 0 [13:51:47]CheckOFDResponse [13:51:47]1017 (14) - 77093643461234 [13:51:47]1041 (16) - 0000000000871776 [13:51:47]1040 (4) - 139723 [13:51:47]1012 (4) - 20.08.2024 07:30 [13:51:47]1206 (1) - 0 [13:51:47]OFD Sender: Remove packet 139723 [13:51:47]ProducePacketName [13:51:47]name=ofd_packets/00139723 [13:51:47]NVStorageDeleteData [13:51:47]Write to MH i2c: 01 00 00 1F 0F 2E [13:51:47]Write i2c OK [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: 01 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: 01 07 00 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: 01 07 00 1F 0F 00 00 00 00 00 CD 0C 0E [13:51:47]RasterBufferAndPrint [13:51:47]line [13:51:47]line [13:51:47]line [13:51:47]line [13:51:47]line [13:51:47]written 0, free lines is 3283 [13:51:47]MH_Cut [13:51:47]Write to MH i2c: D1 01 00 26 0F 01 07 [13:51:47]Write i2c OK [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: D1 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: D1 01 00 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: D1 01 00 26 0F 00 06 [13:51:47]Write to MH i2c: 01 00 00 27 0F 36 [13:51:47]Write i2c OK [13:51:47]MH_I2C_Read... [13:51:47]OFD Sender: No OFD packet to send [13:51:48]*** Cut start [13:51:48]*** Partial cut [13:51:48]*** CUTSNS_PIN = 1 [13:51:48]*** CUTSNS_PIN = 0 [13:51:48]*** Brake cut motor [13:51:48]Read from MH i2c: 01 [13:51:48]MH_I2C_Read... [13:51:48]*** Stop cut motor [13:51:48]*** Cut end [13:51:48]Read from MH i2c: 01 07 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: 01 07 00 27 0F 00 00 00 00 00 FF 0F 4B [13:51:48]process_action close_receipt done [13:51:48]requested_data is exist [13:51:48]produce_requested_data [13:51:48]requested_item fm.sn is exist - process it [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 11 00 00 [13:51:48]Write to MH i2c: E2 08 00 28 0F 80 11 00 00 00 00 00 00 B1 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 17 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 17 00 28 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 08 [13:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:51:48]wFMCommunicate OK [13:51:48]requested_item fd.num is exist - process it [13:51:48]SAM_PROTO_GetFieldsCounters [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 13 00 00 [13:51:48]Write to MH i2c: E2 08 00 29 0F 80 13 00 00 00 00 00 00 B4 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 62 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 62 00 29 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [13:51:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_GetFieldsCounters done [13:51:49]requested_item shift.num is exist - process it [13:51:49]requested_item shift.opened is exist - process it [13:51:49]req_shift_opened [13:51:49]FM_GetShiftState [13:51:49]SAM_PROTO_GetShiftState [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 13 01 00 [13:51:49]Write to MH i2c: E2 08 00 2A 0F 80 13 01 00 00 00 00 00 B6 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0E 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0E 00 2A 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 47 [13:51:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_GetShiftState done [13:51:49]FM_GetShiftState done [13:51:49]req_shift_opened done [13:51:49]requested_item shift.open_date is exist - process it [13:51:49]req_shift_open_date [13:51:49]req_shift_open_date done [13:51:49]produce_requested_data done [13:51:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139723,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:51:49]process_action_free close_receipt [13:51:49]json_value_free [13:51:49]json_value_free done [13:51:49]process_json_proto returns [13:51:49]Send response to host [13:51:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139723,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:51:49]free response buf [13:51:49]execute_script done [13:51:49]execute_script returns [13:51:49]free content buf [13:51:49]Sock 10.Close socket [13:51:49]Sock 10.Thread stoped [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:13]accept exits with 8 [13:52:13]New connection [13:52:13]New thread 3067145572 created [13:52:13]Thread 3067288932 joined [13:52:13]Waiting for new connection... [13:52:13] Sock 8.Parse request [13:52:13]Sock 8.Check first char [13:52:13]Sock 8.First char is OK [13:52:13]request: POST /json_proto HTTP/1.0 [13:52:13]Method: POST [13:52:13]URL: /json_proto [13:52:13]Method is POST - this is cgi request [13:52:13]url: /json_proto [13:52:13]query_string will be loaded in cgi processing [13:52:13]execute_cgi json_proto POST (null) [13:52:13]execute_cgi path=json_proto method=POST [13:52:13]POST find Content-Length [13:52:13]Host: 172.17.45.67:8080 [13:52:13]Content-Length: 659 [13:52:13]Content-Type: application/json [13:52:13] [13:52:13]POST finish read [13:52:13]Found Content-Length = 659 [13:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 11.630, "sum" : 800.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:13]execute_script... [13:52: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)593570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 11.630, "sum" : 800.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:13]POST & json_proto [13:52:13]process_json_proto [13:52:13]json parsed OK: [13:52:13]protocol is kg_v1.0 [13:52:13]action value=close_receipt [13:52:13]process_action close_receipt [13:52:13]cmd_close_receipt [13:52:13]MH_GetDate [13:52:13]Write to MH i2c: F0 00 00 2B 0F 29 [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: F0 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: F0 09 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: F0 09 00 2B 0F 00 8E 9F C4 66 5F 7F 2B 66 F8 [13:52:13]GetLastDocTimeStamp 1724161905 [13:52:13]current date 1724161934 [13:52:13]FM_GetShiftState [13:52:13]SAM_PROTO_GetShiftState [13:52:13]wFMCommunicate request_size=4 [13:52:13]MH_SAM_APDU [13:52:13]CAPDU: 80 13 01 00 [13:52:13]Write to MH i2c: E2 08 00 2C 0F 80 13 01 00 00 00 00 00 B8 [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:13]Read from MH i2c: E2 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0E 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0E 00 2C 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 49 [13:52:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:52:13]wFMCommunicate OK [13:52:13]SAM_PROTO_GetShiftState done [13:52:13]FM_GetShiftState done [13:52:13]opened in 1724113785 [13:52:13]opened+sec_in_day 1724200185 [13:52:13]quantity*price = 80014 [13:52:13]sum+1 = 80015 [13:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 196 20.08.2024 13:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139724 ФПД: 254643177754802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135214&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139724&fm=254643177754802&tin=02508201610067®Number=0000000000092569&sum=80000 [13:52:14]StoreToDocumentArchive [13:52:14]shift 453 fd 139724 [13:52:14]save to /storage/0453/doc_00139724 [13:52:14]save last doc name /storage/0453/doc_00139724 to /storage/kkm_last_doc_name [13:52:14]save OK [13:52:14]Clear old archive folders... [13:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:52:14]tlvbuf is 020067B0 [13:52:14]SAM_PROTO_ClearQueue [13:52:14]wFMCommunicate request_size=4 [13:52:14]MH_SAM_APDU [13:52:14]CAPDU: 80 09 00 00 [13:52:14]Write to MH i2c: E2 08 00 39 0F 80 09 00 00 00 00 00 00 BA [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 39 0F 00 90 00 BC [13:52:15]RAPDU: 90 00 [13:52:15]wFMCommunicate OK [13:52:15]SAM_PROTO_ClearQueue done [13:52:15]KKMCreateOFDPacket [13:52:15]OFDProtocolAddRootSTLVToBuf [13:52:15]FM_MakeSignedData [13:52:15]FM_MakeSignedData [13:52:15]SAM_PROTO_SignData [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 0D 01 02 [13:52:15]Write to MH i2c: E2 08 00 3A 0F 80 0D 01 02 00 00 00 00 C2 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 3A 0F 00 90 00 BD [13:52:15]RAPDU: 90 00 [13:52:15]wFMCommunicate OK [13:52:15]wFMCommunicate request_size=253 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 6E 2D 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 8E 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 C4 00 00 00 F4 03 04 00 8E 9F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 21 02 00 35 04 06 00 E7 98 BC 27 90 B2 [13:52:15]Write to MH i2c: E2 00 01 3B 0F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 6E 2D 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 8E 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 C4 00 00 00 F4 03 04 00 8E 9F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 21 02 00 35 04 06 00 E7 98 BC 27 90 B2 00 00 DE [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 03 00 3B 0F 00 90 00 BE [13:52:15]RAPDU: 90 00 [13:52:15]wFMCommunicate OK [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 0D 03 02 [13:52:15]Write to MH i2c: E2 08 00 3C 0F 80 0D 03 02 00 00 00 00 C6 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 0B 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 0B 00 3C 0F 00 9F E5 28 A5 D6 1B 9C 9F 90 00 44 [13:52:15]RAPDU: 9F E5 28 A5 D6 1B 9C 9F 90 00 [13:52:15]wFMCommunicate OK [13:52:15]SAM_PROTO_SignData done [13:52:15]FM_MakeSignedData done [13:52:15]CreateOFDProtocolMessage [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 11 00 00 [13:52:15]Write to MH i2c: E2 08 00 3D 0F 80 11 00 00 00 00 00 00 C6 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 17 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 17 00 3D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1D [13:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:52:15]wFMCommunicate OK [13:52:15]CreateOFDProtocolMessage done [13:52:15]OFDSenderStorePacket 139724 [13:52:15]StoreOFDPacket docnum=139724 [13:52:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 DC 61 00 01 0D 9F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 6E 2D 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 8E 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 C4 00 00 00 F4 03 04 00 8E 9F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 21 02 00 35 04 06 00 E7 98 BC 27 90 B2 9F E5 28 A5 D6 1B 9C 9F [13:52:15]CheckFolder [13:52:15]dirname=/storage/ofd_packets [13:52:15]CheckFolder done [13:52:15]ProducePacketName [13:52:15]name=ofd_packets/00139724 [13:52:15]NVStorageSaveData ofd_packets/00139724 [13:52:15]File name is /storage/ofd_packets/00139724 [13:52:15]Write 294 bytes [13:52:15]NVStorageSaveData done [13:52:15]OFDSenderStorePacket done [13:52:15]KKMCreateOFDPacket done [13:52:15]NVStorageSaveData kkm_last_timestamp [13:52:15]File name is /storage/kkm_last_timestamp [13:52:15]Write 4 bytes [13:52:15]NVStorageSaveData done [13:52:15]ExternCall_PrintAddStr [13:52:15]wPrintStart [13:52:15]Write to MH i2c: 01 00 00 3E 0F 4D [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 07 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 07 00 3E 0F 00 00 00 00 00 FF 0F 62 [13:52:15]RasterBufferAndPrint [13:52:15]line Счет N : (1)593570 [13:52:15]line ИНН: 02508201610067 [13:52:15]line Контрольно-Кассовый Чек [13:52:15]line ПРОДАЖА [13:52:15]line ТРК (МРК, ГНК) : 33 [13:52:15]line Товар: 2710124130 [13:52:15]line SU-92 [13:52:15]line 11.630 * 68.80 [13:52:15]line = 800.14 [13:52:15]line НДС 12% НСП 1% [13:52:15]line > о реализуемом товаре [13:52:15]line ОКРУГЛЕНИЕ: -0.14 [13:52:15]line ИТОГО: 800.00 [13:52:15]line Внесено: 800.00 [13:52:15]line СДАЧА: 0.00 [13:52:15]line НСП 1% : 7.08 [13:52:15]line НДС 12% : 84.97 [13:52:15]line Наличными: 800.00 [13:52:15]line Безнал.: 0.00 [13:52:15]line Место: АЗС № 136 "Партнер Нефть" [13:52:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:52:15]line СНО: Общий режим [13:52:15]line Чек 196 20.08.2024 13:52 [13:52:15]line Смена: 453 ФФД: 1.0 [13:52:15]line ЗНМ: 0300000067 [13:52:15]line РНМ: 0000000000092569 [13:52:15]line Версия ККМ: 001 [13:52:15]line ФМ: 0000000000871776 [13:52:15]line ФД: 139724 [13:52:15]line ФПД: 254643177754802 [13:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135214&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139724&fm=254643177754802&tin=02508201610067®Number=0000000000092569&sum=80000 [13:52:15]OFD Sender: Processing packet 139724 [packets to send 137, broken 136] [13:52:15]ProducePacketName [13:52:15]name=ofd_packets/00139724 [13:52:15]OFD Sender: To server: pG, [13:52:15]CommunicateWithHost lk.salyk.kg:30040 [13:52:15]ConnectInit lk.salyk.kg [13:52:15]written 0, free lines is 4095 [13:52:15]Connected sock=10 [13:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 DC 61 00 01 0D 9F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 6E 2D 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 8E 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 C4 00 00 00 F4 03 04 00 8E 9F C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 21 02 00 35 04 06 00 E7 98 BC 27 90 B2 9F E5 28 A5 D6 1B 9C 9F [13:52:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BC EB 47 00 5C B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 21 02 00 F4 03 04 00 21 46 C4 66 B6 04 01 00 00 E4 E9 54 0F 34 9C 37 EA [13:52:16]CommunicateWithHost err = 0 [13:52:16]CheckOFDResponse [13:52:16]1017 (14) - 77093643461234 [13:52:16]1041 (16) - 0000000000871776 [13:52:16]1040 (4) - 139724 [13:52:16]1012 (4) - 20.08.2024 07:30 [13:52:16]1206 (1) - 0 [13:52:16]OFD Sender: Remove packet 139724 [13:52:16]ProducePacketName [13:52:16]name=ofd_packets/00139724 [13:52:16]NVStorageDeleteData [13:52:16]Write to MH i2c: 01 00 00 69 0F 78 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: 01 07 00 69 0F 00 00 00 00 00 C5 0C 50 [13:52:16]RasterBufferAndPrint [13:52:16]line [13:52:16]line [13:52:16]line [13:52:16]line [13:52:16]line [13:52:16]written 0, free lines is 3275 [13:52:16]MH_Cut [13:52:16]Write to MH i2c: D1 01 00 70 0F 01 51 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: D1 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: D1 01 00 [13:52:16]MH_I2C_Read... [13:52:16]Read from MH i2c: D1 01 00 70 0F 00 50 [13:52:16]Write to MH i2c: 01 00 00 71 0F 80 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:16]OFD Sender: No OFD packet to send [13:52:16]*** Cut start [13:52:16]*** Partial cut [13:52:16]*** CUTSNS_PIN = 1 [13:52:17]*** CUTSNS_PIN = 0 [13:52:17]*** Brake cut motor [13:52:17]Read from MH i2c: 01 [13:52:17]MH_I2C_Read... [13:52:17]*** Stop cut motor [13:52:17]*** Cut end [13:52:17]Read from MH i2c: 01 07 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: 01 07 00 71 0F 00 00 00 00 00 FF 0F 95 [13:52:17]process_action close_receipt done [13:52:17]requested_data is exist [13:52:17]produce_requested_data [13:52:17]requested_item fm.sn is exist - process it [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 11 00 00 [13:52:17]Write to MH i2c: E2 08 00 72 0F 80 11 00 00 00 00 00 00 FB [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 17 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 17 00 72 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 52 [13:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:52:17]wFMCommunicate OK [13:52:17]requested_item fd.num is exist - process it [13:52:17]SAM_PROTO_GetFieldsCounters [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 13 00 00 [13:52:17]Write to MH i2c: E2 08 00 73 0F 80 13 00 00 00 00 00 00 FE [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 62 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 62 00 73 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [13:52:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:17]wFMCommunicate OK [13:52:17]SAM_PROTO_GetFieldsCounters done [13:52:17]requested_item shift.num is exist - process it [13:52:17]requested_item shift.opened is exist - process it [13:52:17]req_shift_opened [13:52:17]FM_GetShiftState [13:52:17]SAM_PROTO_GetShiftState [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 13 01 00 [13:52:17]Write to MH i2c: E2 08 00 74 0F 80 13 01 00 00 00 00 00 00 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 0E 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 0E 00 74 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 91 [13:52:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:52:17]wFMCommunicate OK [13:52:17]SAM_PROTO_GetShiftState done [13:52:17]FM_GetShiftState done [13:52:17]req_shift_opened done [13:52:17]requested_item shift.open_date is exist - process it [13:52:17]req_shift_open_date [13:52:17]req_shift_open_date done [13:52:17]produce_requested_data done [13:52:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139724,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:52:17]process_action_free close_receipt [13:52:17]json_value_free [13:52:17]json_value_free done [13:52:17]process_json_proto returns [13:52:17]Send response to host [13:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139724,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:52:17]free response buf [13:52:17]execute_script done [13:52:17]execute_script returns [13:52:17]free content buf [13:52:17]Sock 8.Close socket [13:52:17]Sock 8.Thread stoped [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:03]accept exits with 9 [13:56:03]New connection [13:56:03]New thread 3067288932 created [13:56:03]Thread 3067145572 joined [13:56:03]Waiting for new connection... [13:56:03] Sock 9.Parse request [13:56:03]Sock 9.Check first char [13:56:03]Sock 9.First char is OK [13:56:03]request: POST /json_proto HTTP/1.0 [13:56:03]Method: POST [13:56:03]URL: /json_proto [13:56:03]Method is POST - this is cgi request [13:56:03]url: /json_proto [13:56:03]query_string will be loaded in cgi processing [13:56:03]execute_cgi json_proto POST (null) [13:56:03]execute_cgi path=json_proto method=POST [13:56:03]POST find Content-Length [13:56:03]Host: 172.17.45.67:8080 [13:56:03]Content-Length: 834 [13:56:03]Content-Type: application/json [13:56:03] [13:56:03]POST finish read [13:56:03]Found Content-Length = 834 [13:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:03]execute_script... [13:56: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)593572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:03]POST & json_proto [13:56:03]process_json_proto [13:56:03]json parsed OK: [13:56:03]protocol is kg_v1.0 [13:56:03]action value=close_receipt [13:56:03]process_action close_receipt [13:56:03]cmd_close_receipt [13:56:03]MH_GetDate [13:56:03]Write to MH i2c: F0 00 00 75 0F 73 [13:56:03]Write i2c OK [13:56:03]MH_I2C_Read... [13:56:03]Read from MH i2c: F0 [13:56:03]MH_I2C_Read... [13:56:03]Read from MH i2c: F0 09 00 [13:56:03]MH_I2C_Read... [13:56:03]Read from MH i2c: F0 09 00 75 0F 00 73 A0 C4 66 5F 7F 2B 66 28 [13:56:03]GetLastDocTimeStamp 1724161934 [13:56:03]current date 1724162163 [13:56:03]FM_GetShiftState [13:56:03]SAM_PROTO_GetShiftState [13:56:03]wFMCommunicate request_size=4 [13:56:03]MH_SAM_APDU [13:56:03]CAPDU: 80 13 01 00 [13:56:03]Write to MH i2c: E2 08 00 76 0F 80 13 01 00 00 00 00 00 02 [13:56:03]Write i2c OK [13:56:03]MH_I2C_Read... [13:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:03]Read from MH i2c: E2 [13:56:03]MH_I2C_Read... [13:56:03]Read from MH i2c: E2 0E 00 [13:56:03]MH_I2C_Read... [13:56:03]Read from MH i2c: E2 0E 00 76 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 93 [13:56:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:56:03]wFMCommunicate OK [13:56:03]SAM_PROTO_GetShiftState done [13:56:03]FM_GetShiftState done [13:56:03]opened in 1724113785 [13:56:03]opened+sec_in_day 1724200185 [13:56:03]quantity*price = 40002 [13:56:03]sum+1 = 40003 [13:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 197 20.08.2024 13:56 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139725 ФПД: 59654484746603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135603&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139725&fm=59654484746603&tin=02508201610067®Number=0000000000092569&sum=40000 [13:56:04]StoreToDocumentArchive [13:56:04]shift 453 fd 139725 [13:56:04]save to /storage/0453/doc_00139725 [13:56:04]save last doc name /storage/0453/doc_00139725 to /storage/kkm_last_doc_name [13:56:04]save OK [13:56:04]Clear old archive folders... [13:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:04]tlvbuf is 02039750 [13:56:04]SAM_PROTO_ClearQueue [13:56:04]wFMCommunicate request_size=4 [13:56:04]MH_SAM_APDU [13:56:04]CAPDU: 80 09 00 00 [13:56:04]Write to MH i2c: E2 08 00 83 0F 80 09 00 00 00 00 00 00 04 [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:04]Read from MH i2c: E2 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 03 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 03 00 83 0F 00 90 00 06 [13:56:04]RAPDU: 90 00 [13:56:04]wFMCommunicate OK [13:56:04]SAM_PROTO_ClearQueue done [13:56:04]KKMCreateOFDPacket [13:56:04]OFDProtocolAddRootSTLVToBuf [13:56:04]FM_MakeSignedData [13:56:04]FM_MakeSignedData [13:56:04]SAM_PROTO_SignData [13:56:04]wFMCommunicate request_size=4 [13:56:04]MH_SAM_APDU [13:56:04]CAPDU: 80 0D 01 02 [13:56:04]Write to MH i2c: E2 08 00 84 0F 80 0D 01 02 00 00 00 00 0C [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:04]Read from MH i2c: E2 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 03 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 03 00 84 0F 00 90 00 07 [13:56:04]RAPDU: 90 00 [13:56:04]wFMCommunicate OK [13:56:04]wFMCommunicate request_size=255 [13:56:04]MH_SAM_APDU [13:56:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 73 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 21 02 00 35 04 06 00 36 [13:56:04]Write to MH i2c: E2 02 01 85 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 73 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 21 02 00 35 04 06 00 36 00 00 68 [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:04]Read from MH i2c: E2 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 03 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 03 00 85 0F 00 90 00 08 [13:56:04]RAPDU: 90 00 [13:56:04]wFMCommunicate OK [13:56:04]wFMCommunicate request_size=10 [13:56:04]MH_SAM_APDU [13:56:04]CAPDU: 80 0D 02 02 05 41 64 5F 61 6B [13:56:04]Write to MH i2c: E2 0D 00 86 0F 80 0D 02 02 05 00 41 64 5F 61 6B 00 00 E9 [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:04]Read from MH i2c: E2 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 03 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 03 00 86 0F 00 90 00 09 [13:56:04]RAPDU: 90 00 [13:56:04]wFMCommunicate OK [13:56:04]wFMCommunicate request_size=4 [13:56:04]MH_SAM_APDU [13:56:04]CAPDU: 80 0D 03 02 [13:56:04]Write to MH i2c: E2 08 00 87 0F 80 0D 03 02 00 00 00 00 11 [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:04]Read from MH i2c: E2 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 0B 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 0B 00 87 0F 00 1D A4 41 38 22 2B 37 2F 90 00 FF [13:56:04]RAPDU: 1D A4 41 38 22 2B 37 2F 90 00 [13:56:04]wFMCommunicate OK [13:56:04]SAM_PROTO_SignData done [13:56:04]FM_MakeSignedData done [13:56:04]CreateOFDProtocolMessage [13:56:04]wFMCommunicate request_size=4 [13:56:04]MH_SAM_APDU [13:56:04]CAPDU: 80 11 00 00 [13:56:04]Write to MH i2c: E2 08 00 88 0F 80 11 00 00 00 00 00 00 11 [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:04]Read from MH i2c: E2 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 17 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: E2 17 00 88 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 68 [13:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:56:04]wFMCommunicate OK [13:56:04]CreateOFDProtocolMessage done [13:56:04]OFDSenderStorePacket 139725 [13:56:04]StoreOFDPacket docnum=139725 [13:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 F5 07 01 94 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 73 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 21 02 00 35 04 06 00 36 41 64 5F 61 6B 1D A4 41 38 22 2B 37 2F [13:56:04]CheckFolder [13:56:04]dirname=/storage/ofd_packets [13:56:04]CheckFolder done [13:56:04]ProducePacketName [13:56:04]name=ofd_packets/00139725 [13:56:04]NVStorageSaveData ofd_packets/00139725 [13:56:04]File name is /storage/ofd_packets/00139725 [13:56:04]Write 301 bytes [13:56:04]NVStorageSaveData done [13:56:04]OFDSenderStorePacket done [13:56:04]KKMCreateOFDPacket done [13:56:04]NVStorageSaveData kkm_last_timestamp [13:56:04]File name is /storage/kkm_last_timestamp [13:56:04]Write 4 bytes [13:56:04]NVStorageSaveData done [13:56:04]ExternCall_PrintAddStr [13:56:04]wPrintStart [13:56:04]Write to MH i2c: 01 00 00 89 0F 98 [13:56:04]Write i2c OK [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: 01 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: 01 07 00 [13:56:04]MH_I2C_Read... [13:56:04]Read from MH i2c: 01 07 00 89 0F 00 00 00 00 00 FF 0F AD [13:56:04]RasterBufferAndPrint [13:56:04]line Счет N : (1)593572 [13:56:04]line ИНН: 02508201610067 [13:56:04]line Контрольно-Кассовый Чек [13:56:04]line ПРОДАЖА [13:56:04]line ТРК (МРК, ГНК) : 52 [13:56:04]line Товар: 2710124130 [13:56:04]line Аи-92-К-5 [13:56:04]line 5.900 * 67.80 [13:56:04]line = 400.02 [13:56:04]line НДС 12% НСП 1% [13:56:04]line > о реализуемом товаре [13:56:04]line ОКРУГЛЕНИЕ: -0.02 [13:56:04]line ИТОГО: 400.00 [13:56:04]line НСП 1% : 3.54 [13:56:04]line НДС 12% : 42.48 [13:56:04]line Наличными: 0.00 [13:56:04]line Безнал.: 400.00 [13:56:04]line Место: АЗС № 136 "Партнер Нефть" [13:56:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:56:04]line СНО: Общий режим [13:56:04]line Чек 197 20.08.2024 13:56 [13:56:04]line Смена: 453 ФФД: 1.0 [13:56:04]line ЗНМ: 0300000067 [13:56:04]line РНМ: 0000000000092569 [13:56:04]line Версия ККМ: 001 [13:56:04]line Платежная система: Бакай Банк [13:56:04]line ФМ: 0000000000871776 [13:56:04]line ФД: 139725 [13:56:04]line ФПД: 59654484746603 [13:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135603&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139725&fm=59654484746603&tin=02508201610067®Number=0000000000092569&sum=40000 [13:56:05]written 0, free lines is 4095 [13:56:05]OFD Sender: Processing packet 139725 [packets to send 137, broken 136] [13:56:05]ProducePacketName [13:56:05]name=ofd_packets/00139725 [13:56:05]OFD Sender: To server: pG, [13:56:05]CommunicateWithHost lk.salyk.kg:30040 [13:56:05]ConnectInit lk.salyk.kg [13:56:05]Connected sock=8 [13:56:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 F5 07 01 94 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 73 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 21 02 00 35 04 06 00 36 41 64 5F 61 6B 1D A4 41 38 22 2B 37 2F [13:56:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BB F7 47 00 0E 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 21 02 00 F4 03 04 00 06 47 C4 66 B6 04 01 00 00 79 33 37 64 F3 43 1F A9 [13:56:05]CommunicateWithHost err = 0 [13:56:05]CheckOFDResponse [13:56:05]1017 (14) - 77093643461234 [13:56:05]1041 (16) - 0000000000871776 [13:56:05]1040 (4) - 139725 [13:56:05]1012 (4) - 20.08.2024 07:34 [13:56:05]1206 (1) - 0 [13:56:05]OFD Sender: Remove packet 139725 [13:56:05]ProducePacketName [13:56:05]name=ofd_packets/00139725 [13:56:05]NVStorageDeleteData [13:56:05]Write to MH i2c: 01 00 00 B4 0F C3 [13:56:05]Write i2c OK [13:56:05]MH_I2C_Read... [13:56:05]Read from MH i2c: 01 [13:56:05]MH_I2C_Read... [13:56:05]Read from MH i2c: 01 07 00 [13:56:05]MH_I2C_Read... [13:56:05]Read from MH i2c: 01 07 00 B4 0F 00 00 00 00 00 D3 0C A9 [13:56:05]RasterBufferAndPrint [13:56:05]line [13:56:05]line [13:56:05]line [13:56:05]line [13:56:05]line [13:56:05]written 0, free lines is 3289 [13:56:05]MH_Cut [13:56:05]Write to MH i2c: D1 01 00 BB 0F 01 9C [13:56:05]Write i2c OK [13:56:05]MH_I2C_Read... [13:56:05]Read from MH i2c: D1 [13:56:05]MH_I2C_Read... [13:56:05]Read from MH i2c: D1 01 00 [13:56:05]MH_I2C_Read... [13:56:05]Read from MH i2c: D1 01 00 BB 0F 00 9B [13:56:05]Write to MH i2c: 01 00 00 BC 0F CB [13:56:05]Write i2c OK [13:56:05]MH_I2C_Read... [13:56:06]OFD Sender: No OFD packet to send [13:56:06]*** Cut start [13:56:06]*** Partial cut [13:56:06]*** CUTSNS_PIN = 1 [13:56:06]*** CUTSNS_PIN = 0 [13:56:06]*** Brake cut motor [13:56:06]Read from MH i2c: 01 [13:56:06]MH_I2C_Read... [13:56:06]*** Stop cut motor [13:56:06]*** Cut end [13:56:06]Read from MH i2c: 01 07 00 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: 01 07 00 BC 0F 00 00 00 00 00 FF 0F E0 [13:56:06]process_action close_receipt done [13:56:06]requested_data is exist [13:56:06]produce_requested_data [13:56:06]requested_item fm.sn is exist - process it [13:56:06]wFMCommunicate request_size=4 [13:56:06]MH_SAM_APDU [13:56:06]CAPDU: 80 11 00 00 [13:56:06]Write to MH i2c: E2 08 00 BD 0F 80 11 00 00 00 00 00 00 46 [13:56:06]Write i2c OK [13:56:06]MH_I2C_Read... [13:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:06]Read from MH i2c: E2 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: E2 17 00 [13:56:06]MH_I2C_Read... [13:56:06]Read from MH i2c: E2 17 00 BD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9D [13:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:56:06]wFMCommunicate OK [13:56:06]requested_item fd.num is exist - process it [13:56:06]SAM_PROTO_GetFieldsCounters [13:56:06]wFMCommunicate request_size=4 [13:56:06]MH_SAM_APDU [13:56:06]CAPDU: 80 13 00 00 [13:56:06]Write to MH i2c: E2 08 00 BE 0F 80 13 00 00 00 00 00 00 49 [13:56:06]Write i2c OK [13:56:06]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 62 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 62 00 BE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [13:56:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:07]wFMCommunicate OK [13:56:07]SAM_PROTO_GetFieldsCounters done [13:56:07]requested_item shift.num is exist - process it [13:56:07]requested_item shift.opened is exist - process it [13:56:07]req_shift_opened [13:56:07]FM_GetShiftState [13:56:07]SAM_PROTO_GetShiftState [13:56:07]wFMCommunicate request_size=4 [13:56:07]MH_SAM_APDU [13:56:07]CAPDU: 80 13 01 00 [13:56:07]Write to MH i2c: E2 08 00 BF 0F 80 13 01 00 00 00 00 00 4B [13:56:07]Write i2c OK [13:56:07]MH_I2C_Read... [13:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:07]Read from MH i2c: E2 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 0E 00 [13:56:07]MH_I2C_Read... [13:56:07]Read from MH i2c: E2 0E 00 BF 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DC [13:56:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:56:07]wFMCommunicate OK [13:56:07]SAM_PROTO_GetShiftState done [13:56:07]FM_GetShiftState done [13:56:07]req_shift_opened done [13:56:07]requested_item shift.open_date is exist - process it [13:56:07]req_shift_open_date [13:56:07]req_shift_open_date done [13:56:07]produce_requested_data done [13:56:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139725,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:56:07]process_action_free close_receipt [13:56:07]json_value_free [13:56:07]json_value_free done [13:56:07]process_json_proto returns [13:56:07]Send response to host [13:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139725,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:56:07]free response buf [13:56:07]execute_script done [13:56:07]execute_script returns [13:56:07]free content buf [13:56:07]Sock 9.Close socket [13:56:07]Sock 9.Thread stoped [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:23]accept exits with 10 [13:56:23]New connection [13:56:23]New thread 3067145572 created [13:56:23]Thread 3067288932 joined [13:56:23]Waiting for new connection... [13:56:23] Sock 10.Parse request [13:56:23]Sock 10.Check first char [13:56:23]Sock 10.First char is OK [13:56:23]request: POST /json_proto HTTP/1.0 [13:56:23]Method: POST [13:56:23]URL: /json_proto [13:56:23]Method is POST - this is cgi request [13:56:23]url: /json_proto [13:56:23]query_string will be loaded in cgi processing [13:56:23]execute_cgi json_proto POST (null) [13:56:23]execute_cgi path=json_proto method=POST [13:56:23]POST find Content-Length [13:56:23]Host: 172.17.45.67:8080 [13:56:23]Content-Length: 677 [13:56:23]Content-Type: application/json [13:56:23] [13:56:23]POST finish read [13:56:23]Found Content-Length = 677 [13:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:23]execute_script... [13:56:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:23]POST & json_proto [13:56:23]process_json_proto [13:56:23]json parsed OK: [13:56:23]protocol is kg_v1.0 [13:56:23]action value=close_receipt [13:56:23]process_action close_receipt [13:56:23]cmd_close_receipt [13:56:23]MH_GetDate [13:56:23]Write to MH i2c: F0 00 00 C0 0F BE [13:56:23]Write i2c OK [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: F0 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: F0 09 00 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: F0 09 00 C0 0F 00 88 A0 C4 66 5F 7F 2B 66 88 [13:56:23]GetLastDocTimeStamp 1724162163 [13:56:23]current date 1724162184 [13:56:23]FM_GetShiftState [13:56:23]SAM_PROTO_GetShiftState [13:56:23]wFMCommunicate request_size=4 [13:56:23]MH_SAM_APDU [13:56:23]CAPDU: 80 13 01 00 [13:56:23]Write to MH i2c: E2 08 00 C1 0F 80 13 01 00 00 00 00 00 4D [13:56:23]Write i2c OK [13:56:23]MH_I2C_Read... [13:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:23]Read from MH i2c: E2 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: E2 0E 00 [13:56:23]MH_I2C_Read... [13:56:23]Read from MH i2c: E2 0E 00 C1 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DE [13:56:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:56:23]wFMCommunicate OK [13:56:23]SAM_PROTO_GetShiftState done [13:56:23]FM_GetShiftState done [13:56:23]opened in 1724113785 [13:56:23]opened+sec_in_day 1724200185 [13:56:23]quantity*price = 40002 [13:56:23]sum+1 = 40003 [13:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 198 20.08.2024 13:56 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139726 ФПД: 263506551775522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135624&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139726&fm=263506551775522&tin=02508201610067®Number=0000000000092569&sum=40000 [13:56:24]StoreToDocumentArchive [13:56:24]shift 453 fd 139726 [13:56:24]save to /storage/0453/doc_00139726 [13:56:24]save last doc name /storage/0453/doc_00139726 to /storage/kkm_last_doc_name [13:56:24]save OK [13:56:24]Clear old archive folders... [13:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:24]tlvbuf is B6FA7190 [13:56:24]SAM_PROTO_ClearQueue [13:56:24]wFMCommunicate request_size=4 [13:56:24]MH_SAM_APDU [13:56:24]CAPDU: 80 09 00 00 [13:56:24]Write to MH i2c: E2 08 00 CE 0F 80 09 00 00 00 00 00 00 4F [13:56:24]Write i2c OK [13:56:24]MH_I2C_Read... [13:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:24]Read from MH i2c: E2 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 03 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 03 00 CE 0F 00 90 00 51 [13:56:24]RAPDU: 90 00 [13:56:24]wFMCommunicate OK [13:56:24]SAM_PROTO_ClearQueue done [13:56:24]KKMCreateOFDPacket [13:56:24]OFDProtocolAddRootSTLVToBuf [13:56:24]FM_MakeSignedData [13:56:24]FM_MakeSignedData [13:56:24]SAM_PROTO_SignData [13:56:24]wFMCommunicate request_size=4 [13:56:24]MH_SAM_APDU [13:56:24]CAPDU: 80 0D 01 02 [13:56:24]Write to MH i2c: E2 08 00 CF 0F 80 0D 01 02 00 00 00 00 57 [13:56:24]Write i2c OK [13:56:24]MH_I2C_Read... [13:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:24]Read from MH i2c: E2 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 03 00 [13:56:24]MH_I2C_Read... [13:56:24]Read from MH i2c: E2 03 00 CF 0F 00 90 00 52 [13:56:24]RAPDU: 90 00 [13:56:24]wFMCommunicate OK [13:56:24]wFMCommunicate request_size=255 [13:56:24]MH_SAM_APDU [13:56:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 88 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 21 02 00 35 04 06 00 EF [13:56:24]Write to MH i2c: E2 02 01 D0 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 88 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 21 02 00 35 04 06 00 EF 00 00 83 [13:56:24]Write i2c OK [13:56:24]MH_I2C_Read... [13:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:25]Read from MH i2c: E2 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 03 00 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 03 00 D0 0F 00 90 00 53 [13:56:25]RAPDU: 90 00 [13:56:25]wFMCommunicate OK [13:56:25]wFMCommunicate request_size=10 [13:56:25]MH_SAM_APDU [13:56:25]CAPDU: 80 0D 02 02 05 A8 66 6A 21 22 [13:56:25]Write to MH i2c: E2 0D 00 D1 0F 80 0D 02 02 05 00 A8 66 6A 21 22 00 00 1F [13:56:25]Write i2c OK [13:56:25]MH_I2C_Read... [13:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:25]Read from MH i2c: E2 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 03 00 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 03 00 D1 0F 00 90 00 54 [13:56:25]RAPDU: 90 00 [13:56:25]wFMCommunicate OK [13:56:25]wFMCommunicate request_size=4 [13:56:25]MH_SAM_APDU [13:56:25]CAPDU: 80 0D 03 02 [13:56:25]Write to MH i2c: E2 08 00 D2 0F 80 0D 03 02 00 00 00 00 5C [13:56:25]Write i2c OK [13:56:25]MH_I2C_Read... [13:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:25]Read from MH i2c: E2 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 0B 00 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 0B 00 D2 0F 00 68 4C 03 2E 76 E0 35 8C 90 00 59 [13:56:25]RAPDU: 68 4C 03 2E 76 E0 35 8C 90 00 [13:56:25]wFMCommunicate OK [13:56:25]SAM_PROTO_SignData done [13:56:25]FM_MakeSignedData done [13:56:25]CreateOFDProtocolMessage [13:56:25]wFMCommunicate request_size=4 [13:56:25]MH_SAM_APDU [13:56:25]CAPDU: 80 11 00 00 [13:56:25]Write to MH i2c: E2 08 00 D3 0F 80 11 00 00 00 00 00 00 5C [13:56:25]Write i2c OK [13:56:25]MH_I2C_Read... [13:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:25]Read from MH i2c: E2 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 17 00 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 17 00 D3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B3 [13:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:56:25]wFMCommunicate OK [13:56:25]CreateOFDProtocolMessage done [13:56:25]OFDSenderStorePacket 139726 [13:56:25]StoreOFDPacket docnum=139726 [13:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 17 13 07 01 00 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C6 00 00 00 F4 03 04 00 88 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 21 02 00 35 04 06 00 EF A8 66 6A 21 22 68 4C 03 2E 76 E0 35 8C [13:56:25]CheckFolder [13:56:25]dirname=/storage/ofd_packets [13:56:25]CheckFolder done [13:56:25]ProducePacketName [13:56:25]name=ofd_packets/00139726 [13:56:25]NVStorageSaveData ofd_packets/00139726 [13:56:25]File name is /storage/ofd_packets/00139726 [13:56:25]Write 301 bytes [13:56:25]NVStorageSaveData done [13:56:25]OFDSenderStorePacket done [13:56:25]KKMCreateOFDPacket done [13:56:25]NVStorageSaveData kkm_last_timestamp [13:56:25]File name is /storage/kkm_last_timestamp [13:56:25]Write 4 bytes [13:56:25]NVStorageSaveData done [13:56:25]ExternCall_PrintAddStr [13:56:25]wPrintStart [13:56:25]Write to MH i2c: 01 00 00 D4 0F E3 [13:56:25]Write i2c OK [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: 01 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: 01 07 00 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: 01 07 00 D4 0F 00 00 00 00 00 FF 0F F8 [13:56:25]RasterBufferAndPrint [13:56:25]line Счет N : (1)593573 [13:56:25]line ИНН: 02508201610067 [13:56:25]line Контрольно-Кассовый Чек [13:56:25]line ПРОДАЖА [13:56:25]line ТРК (МРК, ГНК) : 42 [13:56:25]line Товар: 2710124130 [13:56:25]line Аи-92-К-5 [13:56:25]line 5.900 * 67.80 [13:56:25]line = 400.02 [13:56:25]line НДС 12% НСП 1% [13:56:25]line > о реализуемом товаре [13:56:25]line ОКРУГЛЕНИЕ: -0.02 [13:56:25]line ИТОГО: 400.00 [13:56:25]line Внесено: 400.00 [13:56:25]line СДАЧА: 0.00 [13:56:25]line НСП 1% : 3.54 [13:56:25]line НДС 12% : 42.48 [13:56:25]line Наличными: 400.00 [13:56:25]line Безнал.: 0.00 [13:56:25]line Место: АЗС № 136 "Партнер Нефть" [13:56:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:56:25]line СНО: Общий режим [13:56:25]line Чек 198 20.08.2024 13:56 [13:56:25]line Смена: 453 ФФД: 1.0 [13:56:25]line ЗНМ: 0300000067 [13:56:25]line РНМ: 0000000000092569 [13:56:25]line Версия ККМ: 001 [13:56:25]line ФМ: 0000000000871776 [13:56:25]line ФД: 139726 [13:56:25]line ФПД: 263506551775522 [13:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135624&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139726&fm=263506551775522&tin=02508201610067®Number=0000000000092569&sum=40000 [13:56:25]OFD Sender: Processing packet 139726 [packets to send 137, broken 136] [13:56:25]ProducePacketName [13:56:25]name=ofd_packets/00139726 [13:56:25]OFD Sender: To server: pG, [13:56:25]CommunicateWithHost lk.salyk.kg:30040 [13:56:25]ConnectInit lk.salyk.kg [13:56:25]written 0, free lines is 4095 [13:56:25]Connected sock=9 [13:56:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 17 13 07 01 00 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 C6 00 00 00 F4 03 04 00 88 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 21 02 00 35 04 06 00 EF A8 66 6A 21 22 68 4C 03 2E 76 E0 35 8C [13:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 52 65 47 00 21 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 21 02 00 F4 03 04 00 1B 47 C4 66 B6 04 01 00 00 50 A5 A6 C9 43 0D 2F 96 [13:56:26]CommunicateWithHost err = 0 [13:56:26]CheckOFDResponse [13:56:26]1017 (14) - 77093643461234 [13:56:26]1041 (16) - 0000000000871776 [13:56:26]1040 (4) - 139726 [13:56:26]1012 (4) - 20.08.2024 07:34 [13:56:26]1206 (1) - 0 [13:56:26]OFD Sender: Remove packet 139726 [13:56:26]ProducePacketName [13:56:26]name=ofd_packets/00139726 [13:56:26]NVStorageDeleteData [13:56:26]Write to MH i2c: 01 00 00 FF 0F 0E [13:56:26]Write i2c OK [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: 01 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: 01 07 00 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: 01 07 00 FF 0F 00 00 00 00 00 CD 0C EE [13:56:26]RasterBufferAndPrint [13:56:26]line [13:56:26]line [13:56:26]line [13:56:26]line [13:56:26]line [13:56:26]written 0, free lines is 3281 [13:56:26]MH_Cut [13:56:26]Write to MH i2c: D1 01 00 06 10 01 E8 [13:56:26]Write i2c OK [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: D1 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: D1 01 00 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: D1 01 00 06 10 00 E7 [13:56:26]Write to MH i2c: 01 00 00 07 10 17 [13:56:26]Write i2c OK [13:56:26]MH_I2C_Read... [13:56:26]OFD Sender: No OFD packet to send [13:56:26]*** Cut start [13:56:26]*** Partial cut [13:56:26]*** CUTSNS_PIN = 1 [13:56:26]*** CUTSNS_PIN = 0 [13:56:27]*** Brake cut motor [13:56:27]Read from MH i2c: 01 [13:56:27]*** Stop cut motor [13:56:27]*** Cut end [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 07 10 00 00 00 00 00 FF 0F 2C [13:56:27]process_action close_receipt done [13:56:27]requested_data is exist [13:56:27]produce_requested_data [13:56:27]requested_item fm.sn is exist - process it [13:56:27]wFMCommunicate request_size=4 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 11 00 00 [13:56:27]Write to MH i2c: E2 08 00 08 10 80 11 00 00 00 00 00 00 92 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 17 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 17 00 08 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E9 [13:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:56:27]wFMCommunicate OK [13:56:27]requested_item fd.num is exist - process it [13:56:27]SAM_PROTO_GetFieldsCounters [13:56:27]wFMCommunicate request_size=4 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 13 00 00 [13:56:27]Write to MH i2c: E2 08 00 09 10 80 13 00 00 00 00 00 00 95 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 62 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 62 00 09 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [13:56:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:27]wFMCommunicate OK [13:56:27]SAM_PROTO_GetFieldsCounters done [13:56:27]requested_item shift.num is exist - process it [13:56:27]requested_item shift.opened is exist - process it [13:56:27]req_shift_opened [13:56:27]FM_GetShiftState [13:56:27]SAM_PROTO_GetShiftState [13:56:27]wFMCommunicate request_size=4 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 13 01 00 [13:56:27]Write to MH i2c: E2 08 00 0A 10 80 13 01 00 00 00 00 00 97 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 0E 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 0E 00 0A 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 28 [13:56:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:56:27]wFMCommunicate OK [13:56:27]SAM_PROTO_GetShiftState done [13:56:27]FM_GetShiftState done [13:56:27]req_shift_opened done [13:56:27]requested_item shift.open_date is exist - process it [13:56:27]req_shift_open_date [13:56:27]req_shift_open_date done [13:56:27]produce_requested_data done [13:56:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139726,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:56:27]process_action_free close_receipt [13:56:27]json_value_free [13:56:27]json_value_free done [13:56:27]process_json_proto returns [13:56:27]Send response to host [13:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139726,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:56:27]free response buf [13:56:27]execute_script done [13:56:27]execute_script returns [13:56:27]free content buf [13:56:27]Sock 10.Close socket [13:56:27]Sock 10.Thread stoped [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:11]int [13:57:11]Write to MH i2c: 01 00 00 0B 10 1B [13:57:11]*** FLAG_PRN_KEY set [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 07 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 07 00 0B 10 00 08 00 00 00 FF 0F 38 [13:57:11]state=0 [13:57:11]Key pressed [13:57:11]Feed [13:57:11]Write to MH i2c: D8 00 00 0C 10 F3 [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: D8 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: D8 01 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: D8 01 00 0C 10 00 F4 [13:57:11]int [13:57:11]Write to MH i2c: 01 00 00 0D 10 1D [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 07 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 07 00 0D 10 00 48 00 00 00 3C 00 A8 [13:57:11]state=2 [13:57:11]Key pressed [13:57:11]int [13:57:11]Write to MH i2c: 01 00 00 0E 10 1E [13:57:11]*** FLAG_PRN_KEY reset [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 07 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 07 00 0E 10 00 00 00 00 00 F5 0F 29 [13:57:11]state=2 [13:57:11]Stop feed [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:29]accept exits with 8 [13:57:29]New connection [13:57:29]New thread 3067288932 created [13:57:29]Thread 3067145572 joined [13:57:29]Waiting for new connection... [13:57:29] Sock 8.Parse request [13:57:29]Sock 8.Check first char [13:57:29]Sock 8.First char is OK [13:57:29]request: POST /json_proto HTTP/1.0 [13:57:29]Method: POST [13:57:29]URL: /json_proto [13:57:29]Method is POST - this is cgi request [13:57:29]url: /json_proto [13:57:29]query_string will be loaded in cgi processing [13:57:29]execute_cgi json_proto POST (null) [13:57:29]execute_cgi path=json_proto method=POST [13:57:29]POST find Content-Length [13:57:29]Host: 172.17.45.67:8080 [13:57:29]Content-Length: 677 [13:57:29]Content-Type: application/json [13:57:29] [13:57:29]POST finish read [13:57:29]Found Content-Length = 677 [13:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:29]execute_script... [13:57: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)593574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:29]POST & json_proto [13:57:29]process_json_proto [13:57:29]json parsed OK: [13:57:29]protocol is kg_v1.0 [13:57:29]action value=close_receipt [13:57:29]process_action close_receipt [13:57:29]cmd_close_receipt [13:57:29]MH_GetDate [13:57:29]Write to MH i2c: F0 00 00 0F 10 0E [13:57:29]Write i2c OK [13:57:29]MH_I2C_Read... [13:57:29]Read from MH i2c: F0 [13:57:29]MH_I2C_Read... [13:57:29]Read from MH i2c: F0 09 00 [13:57:29]MH_I2C_Read... [13:57:29]Read from MH i2c: F0 09 00 0F 10 00 CA A0 C4 66 5F 7F 2B 66 1A [13:57:29]GetLastDocTimeStamp 1724162184 [13:57:29]current date 1724162250 [13:57:29]FM_GetShiftState [13:57:29]SAM_PROTO_GetShiftState [13:57:29]wFMCommunicate request_size=4 [13:57:29]MH_SAM_APDU [13:57:29]CAPDU: 80 13 01 00 [13:57:29]Write to MH i2c: E2 08 00 10 10 80 13 01 00 00 00 00 00 9D [13:57:29]Write i2c OK [13:57:29]MH_I2C_Read... [13:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:29]Read from MH i2c: E2 [13:57:29]MH_I2C_Read... [13:57:29]Read from MH i2c: E2 0E 00 [13:57:29]MH_I2C_Read... [13:57:29]Read from MH i2c: E2 0E 00 10 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2E [13:57:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:57:29]wFMCommunicate OK [13:57:29]SAM_PROTO_GetShiftState done [13:57:29]FM_GetShiftState done [13:57:29]opened in 1724113785 [13:57:29]opened+sec_in_day 1724200185 [13:57:29]quantity*price = 30035 [13:57:29]sum+1 = 30036 [13:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 199 20.08.2024 13:57 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139727 ФПД: 62803492938355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135730&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139727&fm=62803492938355&tin=02508201610067®Number=0000000000092569&sum=30000 [13:57:30]StoreToDocumentArchive [13:57:30]shift 453 fd 139727 [13:57:30]save to /storage/0453/doc_00139727 [13:57:30]save last doc name /storage/0453/doc_00139727 to /storage/kkm_last_doc_name [13:57:30]save OK [13:57:30]Clear old archive folders... [13:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:30]tlvbuf is 020061E0 [13:57:30]SAM_PROTO_ClearQueue [13:57:30]wFMCommunicate request_size=4 [13:57:30]MH_SAM_APDU [13:57:30]CAPDU: 80 09 00 00 [13:57:30]Write to MH i2c: E2 08 00 1D 10 80 09 00 00 00 00 00 00 9F [13:57:30]Write i2c OK [13:57:30]MH_I2C_Read... [13:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:30]Read from MH i2c: E2 [13:57:30]MH_I2C_Read... [13:57:30]Read from MH i2c: E2 03 00 [13:57:30]MH_I2C_Read... [13:57:30]Read from MH i2c: E2 03 00 1D 10 00 90 00 A1 [13:57:30]RAPDU: 90 00 [13:57:30]wFMCommunicate OK [13:57:30]SAM_PROTO_ClearQueue done [13:57:30]KKMCreateOFDPacket [13:57:30]OFDProtocolAddRootSTLVToBuf [13:57:30]FM_MakeSignedData [13:57:30]FM_MakeSignedData [13:57:30]SAM_PROTO_SignData [13:57:30]wFMCommunicate request_size=4 [13:57:30]MH_SAM_APDU [13:57:30]CAPDU: 80 0D 01 02 [13:57:30]Write to MH i2c: E2 08 00 1E 10 80 0D 01 02 00 00 00 00 A7 [13:57:30]Write i2c OK [13:57:30]MH_I2C_Read... [13:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:30]Read from MH i2c: E2 [13:57:30]MH_I2C_Read... [13:57:30]Read from MH i2c: E2 03 00 [13:57:30]MH_I2C_Read... [13:57:30]Read from MH i2c: E2 03 00 1E 10 00 90 00 A2 [13:57:30]RAPDU: 90 00 [13:57:30]wFMCommunicate OK [13:57:30]wFMCommunicate request_size=255 [13:57:30]MH_SAM_APDU [13:57:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CA A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 21 02 00 35 04 06 00 39 [13:57:30]Write to MH i2c: E2 02 01 1F 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CA A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 21 02 00 35 04 06 00 39 00 00 9B [13:57:30]Write i2c OK [13:57:30]MH_I2C_Read... [13:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:31]Read from MH i2c: E2 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 03 00 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 03 00 1F 10 00 90 00 A3 [13:57:31]RAPDU: 90 00 [13:57:31]wFMCommunicate OK [13:57:31]wFMCommunicate request_size=10 [13:57:31]MH_SAM_APDU [13:57:31]CAPDU: 80 0D 02 02 05 1E 93 E3 22 73 [13:57:31]Write to MH i2c: E2 0D 00 20 10 80 0D 02 02 05 00 1E 93 E3 22 73 00 00 DD [13:57:31]Write i2c OK [13:57:31]MH_I2C_Read... [13:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:31]Read from MH i2c: E2 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 03 00 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 03 00 20 10 00 90 00 A4 [13:57:31]RAPDU: 90 00 [13:57:31]wFMCommunicate OK [13:57:31]wFMCommunicate request_size=4 [13:57:31]MH_SAM_APDU [13:57:31]CAPDU: 80 0D 03 02 [13:57:31]Write to MH i2c: E2 08 00 21 10 80 0D 03 02 00 00 00 00 AC [13:57:31]Write i2c OK [13:57:31]MH_I2C_Read... [13:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:31]Read from MH i2c: E2 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 0B 00 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 0B 00 21 10 00 09 DD 92 58 7F 79 10 11 90 00 96 [13:57:31]RAPDU: 09 DD 92 58 7F 79 10 11 90 00 [13:57:31]wFMCommunicate OK [13:57:31]SAM_PROTO_SignData done [13:57:31]FM_MakeSignedData done [13:57:31]CreateOFDProtocolMessage [13:57:31]wFMCommunicate request_size=4 [13:57:31]MH_SAM_APDU [13:57:31]CAPDU: 80 11 00 00 [13:57:31]Write to MH i2c: E2 08 00 22 10 80 11 00 00 00 00 00 00 AC [13:57:31]Write i2c OK [13:57:31]MH_I2C_Read... [13:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:31]Read from MH i2c: E2 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 17 00 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: E2 17 00 22 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 03 [13:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:57:31]wFMCommunicate OK [13:57:31]CreateOFDProtocolMessage done [13:57:31]OFDSenderStorePacket 139727 [13:57:31]StoreOFDPacket docnum=139727 [13:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CB A9 07 01 55 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CA A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 21 02 00 35 04 06 00 39 1E 93 E3 22 73 09 DD 92 58 7F 79 10 11 [13:57:31]CheckFolder [13:57:31]dirname=/storage/ofd_packets [13:57:31]CheckFolder done [13:57:31]ProducePacketName [13:57:31]name=ofd_packets/00139727 [13:57:31]NVStorageSaveData ofd_packets/00139727 [13:57:31]File name is /storage/ofd_packets/00139727 [13:57:31]Write 301 bytes [13:57:31]NVStorageSaveData done [13:57:31]OFDSenderStorePacket done [13:57:31]KKMCreateOFDPacket done [13:57:31]NVStorageSaveData kkm_last_timestamp [13:57:31]File name is /storage/kkm_last_timestamp [13:57:31]Write 4 bytes [13:57:31]NVStorageSaveData done [13:57:31]ExternCall_PrintAddStr [13:57:31]wPrintStart [13:57:31]Write to MH i2c: 01 00 00 23 10 33 [13:57:31]Write i2c OK [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: 01 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: 01 07 00 [13:57:31]MH_I2C_Read... [13:57:31]Read from MH i2c: 01 07 00 23 10 00 00 00 00 00 FF 0F 48 [13:57:31]RasterBufferAndPrint [13:57:31]line Счет N : (1)593574 [13:57:31]line ИНН: 02508201610067 [13:57:31]line Контрольно-Кассовый Чек [13:57:31]line ПРОДАЖА [13:57:31]line ТРК (МРК, ГНК) : 52 [13:57:31]line Товар: 2710124130 [13:57:31]line Аи-92-К-5 [13:57:31]line 4.430 * 67.80 [13:57:31]line = 300.35 [13:57:31]line НДС 12% НСП 1% [13:57:31]line > о реализуемом товаре [13:57:31]line ОКРУГЛЕНИЕ: -0.35 [13:57:31]line ИТОГО: 300.00 [13:57:31]line Внесено: 300.00 [13:57:31]line СДАЧА: 0.00 [13:57:31]line НСП 1% : 2.66 [13:57:31]line НДС 12% : 31.90 [13:57:31]line Наличными: 300.00 [13:57:31]line Безнал.: 0.00 [13:57:31]line Место: АЗС № 136 "Партнер Нефть" [13:57:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:57:31]line СНО: Общий режим [13:57:31]line Чек 199 20.08.2024 13:57 [13:57:31]line Смена: 453 ФФД: 1.0 [13:57:31]line ЗНМ: 0300000067 [13:57:31]line РНМ: 0000000000092569 [13:57:31]line Версия ККМ: 001 [13:57:31]line ФМ: 0000000000871776 [13:57:31]line ФД: 139727 [13:57:31]line ФПД: 62803492938355 [13:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135730&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139727&fm=62803492938355&tin=02508201610067®Number=0000000000092569&sum=30000 [13:57:31]OFD Sender: Processing packet 139727 [packets to send 137, broken 136] [13:57:31]ProducePacketName [13:57:31]name=ofd_packets/00139727 [13:57:31]OFD Sender: To server: pG, [13:57:31]CommunicateWithHost lk.salyk.kg:30040 [13:57:31]ConnectInit lk.salyk.kg [13:57:31]written 0, free lines is 4095 [13:57:31]Connected sock=10 [13:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CB A9 07 01 55 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CA A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 21 02 00 35 04 06 00 39 1E 93 E3 22 73 09 DD 92 58 7F 79 10 11 [13:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 85 33 47 00 9C B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 21 02 00 F4 03 04 00 5D 47 C4 66 B6 04 01 00 00 48 B0 DD 5C EE 1F 16 BA [13:57:32]CommunicateWithHost err = 0 [13:57:32]CheckOFDResponse [13:57:32]1017 (14) - 77093643461234 [13:57:32]1041 (16) - 0000000000871776 [13:57:32]1040 (4) - 139727 [13:57:32]1012 (4) - 20.08.2024 07:35 [13:57:32]1206 (1) - 0 [13:57:32]OFD Sender: Remove packet 139727 [13:57:32]ProducePacketName [13:57:32]name=ofd_packets/00139727 [13:57:32]NVStorageDeleteData [13:57:32]Write to MH i2c: 01 00 00 4E 10 5E [13:57:32]Write i2c OK [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: 01 [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: 01 07 00 [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: 01 07 00 4E 10 00 00 00 00 00 DD 0C 4E [13:57:32]RasterBufferAndPrint [13:57:32]line [13:57:32]line [13:57:32]line [13:57:32]line [13:57:32]line [13:57:32]written 0, free lines is 3299 [13:57:32]MH_Cut [13:57:32]Write to MH i2c: D1 01 00 55 10 01 37 [13:57:32]Write i2c OK [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: D1 [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: D1 01 00 [13:57:32]MH_I2C_Read... [13:57:32]Read from MH i2c: D1 01 00 55 10 00 36 [13:57:32]Write to MH i2c: 01 00 00 56 10 66 [13:57:32]Write i2c OK [13:57:32]MH_I2C_Read... [13:57:32]OFD Sender: No OFD packet to send [13:57:32]*** Cut start [13:57:32]*** Partial cut [13:57:32]*** CUTSNS_PIN = 1 [13:57:32]*** CUTSNS_PIN = 0 [13:57:33]*** Brake cut motor [13:57:33]Read from MH i2c: 01 [13:57:33]MH_I2C_Read... [13:57:33]*** Stop cut motor [13:57:33]*** Cut end [13:57:33]Read from MH i2c: 01 07 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: 01 07 00 56 10 00 00 00 00 00 FF 0F 7B [13:57:33]process_action close_receipt done [13:57:33]requested_data is exist [13:57:33]produce_requested_data [13:57:33]requested_item fm.sn is exist - process it [13:57:33]wFMCommunicate request_size=4 [13:57:33]MH_SAM_APDU [13:57:33]CAPDU: 80 11 00 00 [13:57:33]Write to MH i2c: E2 08 00 57 10 80 11 00 00 00 00 00 00 E1 [13:57:33]Write i2c OK [13:57:33]MH_I2C_Read... [13:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:33]Read from MH i2c: E2 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 17 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 17 00 57 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 38 [13:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:57:33]wFMCommunicate OK [13:57:33]requested_item fd.num is exist - process it [13:57:33]SAM_PROTO_GetFieldsCounters [13:57:33]wFMCommunicate request_size=4 [13:57:33]MH_SAM_APDU [13:57:33]CAPDU: 80 13 00 00 [13:57:33]Write to MH i2c: E2 08 00 58 10 80 13 00 00 00 00 00 00 E4 [13:57:33]Write i2c OK [13:57:33]MH_I2C_Read... [13:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:33]Read from MH i2c: E2 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 62 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 62 00 58 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [13:57:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:33]wFMCommunicate OK [13:57:33]SAM_PROTO_GetFieldsCounters done [13:57:33]requested_item shift.num is exist - process it [13:57:33]requested_item shift.opened is exist - process it [13:57:33]req_shift_opened [13:57:33]FM_GetShiftState [13:57:33]SAM_PROTO_GetShiftState [13:57:33]wFMCommunicate request_size=4 [13:57:33]MH_SAM_APDU [13:57:33]CAPDU: 80 13 01 00 [13:57:33]Write to MH i2c: E2 08 00 59 10 80 13 01 00 00 00 00 00 E6 [13:57:33]Write i2c OK [13:57:33]MH_I2C_Read... [13:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:33]Read from MH i2c: E2 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 0E 00 [13:57:33]MH_I2C_Read... [13:57:33]Read from MH i2c: E2 0E 00 59 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 77 [13:57:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:57:33]wFMCommunicate OK [13:57:33]SAM_PROTO_GetShiftState done [13:57:33]FM_GetShiftState done [13:57:33]req_shift_opened done [13:57:33]requested_item shift.open_date is exist - process it [13:57:33]req_shift_open_date [13:57:33]req_shift_open_date done [13:57:33]produce_requested_data done [13:57:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139727,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:57:33]process_action_free close_receipt [13:57:33]json_value_free [13:57:33]json_value_free done [13:57:33]process_json_proto returns [13:57:33]Send response to host [13:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139727,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:57:33]free response buf [13:57:33]execute_script done [13:57:33]execute_script returns [13:57:33]free content buf [13:57:33]Sock 8.Close socket [13:57:33]Sock 8.Thread stoped [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:00]accept exits with 9 [13:58:00]New connection [13:58:00]New thread 3067145572 created [13:58:00]Thread 3067288932 joined [13:58:00]Waiting for new connection... [13:58:00] Sock 9.Parse request [13:58:00]Sock 9.Check first char [13:58:00]Sock 9.First char is OK [13:58:00]request: POST /json_proto HTTP/1.0 [13:58:00]Method: POST [13:58:00]URL: /json_proto [13:58:00]Method is POST - this is cgi request [13:58:00]url: /json_proto [13:58:00]query_string will be loaded in cgi processing [13:58:00]execute_cgi json_proto POST (null) [13:58:00]execute_cgi path=json_proto method=POST [13:58:00]POST find Content-Length [13:58:00]Host: 172.17.45.67:8080 [13:58:00]Content-Length: 677 [13:58:00]Content-Type: application/json [13:58:00] [13:58:00]POST finish read [13:58:00]Found Content-Length = 677 [13:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:00]execute_script... [13:58: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)593575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:00]POST & json_proto [13:58:00]process_json_proto [13:58:00]json parsed OK: [13:58:00]protocol is kg_v1.0 [13:58:00]action value=close_receipt [13:58:00]process_action close_receipt [13:58:00]cmd_close_receipt [13:58:00]MH_GetDate [13:58:00]Write to MH i2c: F0 00 00 5A 10 59 [13:58:00]Write i2c OK [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: F0 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: F0 09 00 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: F0 09 00 5A 10 00 E8 A0 C4 66 5F 7F 2B 66 83 [13:58:00]GetLastDocTimeStamp 1724162250 [13:58:00]current date 1724162280 [13:58:00]FM_GetShiftState [13:58:00]SAM_PROTO_GetShiftState [13:58:00]wFMCommunicate request_size=4 [13:58:00]MH_SAM_APDU [13:58:00]CAPDU: 80 13 01 00 [13:58:00]Write to MH i2c: E2 08 00 5B 10 80 13 01 00 00 00 00 00 E8 [13:58:00]Write i2c OK [13:58:00]MH_I2C_Read... [13:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:00]Read from MH i2c: E2 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: E2 0E 00 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: E2 0E 00 5B 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 79 [13:58:00]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:58:00]wFMCommunicate OK [13:58:00]SAM_PROTO_GetShiftState done [13:58:00]FM_GetShiftState done [13:58:00]opened in 1724113785 [13:58:00]opened+sec_in_day 1724200185 [13:58:00]quantity*price = 50036 [13:58:00]sum+1 = 50037 [13:58:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 200 20.08.2024 13:58 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139728 ФПД: 29541508193892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135800&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139728&fm=29541508193892&tin=02508201610067®Number=0000000000092569&sum=50000 [13:58:01]StoreToDocumentArchive [13:58:01]shift 453 fd 139728 [13:58:01]save to /storage/0453/doc_00139728 [13:58:01]save last doc name /storage/0453/doc_00139728 to /storage/kkm_last_doc_name [13:58:01]save OK [13:58:01]Clear old archive folders... [13:58:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:01]tlvbuf is 01FDDFD0 [13:58:01]SAM_PROTO_ClearQueue [13:58:01]wFMCommunicate request_size=4 [13:58:01]MH_SAM_APDU [13:58:01]CAPDU: 80 09 00 00 [13:58:01]Write to MH i2c: E2 08 00 68 10 80 09 00 00 00 00 00 00 EA [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:01]Read from MH i2c: E2 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: E2 03 00 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: E2 03 00 68 10 00 90 00 EC [13:58:01]RAPDU: 90 00 [13:58:01]wFMCommunicate OK [13:58:01]SAM_PROTO_ClearQueue done [13:58:01]KKMCreateOFDPacket [13:58:01]OFDProtocolAddRootSTLVToBuf [13:58:01]FM_MakeSignedData [13:58:01]FM_MakeSignedData [13:58:01]SAM_PROTO_SignData [13:58:01]wFMCommunicate request_size=4 [13:58:01]MH_SAM_APDU [13:58:01]CAPDU: 80 0D 01 02 [13:58:01]Write to MH i2c: E2 08 00 69 10 80 0D 01 02 00 00 00 00 F2 [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:01]Read from MH i2c: E2 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: E2 03 00 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: E2 03 00 69 10 00 90 00 ED [13:58:01]RAPDU: 90 00 [13:58:01]wFMCommunicate OK [13:58:01]wFMCommunicate request_size=255 [13:58:01]MH_SAM_APDU [13:58:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E8 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 21 02 00 35 04 06 00 1A [13:58:01]Write to MH i2c: E2 02 01 6A 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E8 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 21 02 00 35 04 06 00 1A 00 00 C8 [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:02]Read from MH i2c: E2 03 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 6A 10 00 90 00 EE [13:58:02]RAPDU: 90 00 [13:58:02]wFMCommunicate OK [13:58:02]wFMCommunicate request_size=10 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 0D 02 02 05 DE 2B 1A 1E 64 [13:58:02]Write to MH i2c: E2 0D 00 6B 10 80 0D 02 02 05 00 DE 2B 1A 1E 64 00 00 A4 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:02]Read from MH i2c: E2 03 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 03 00 6B 10 00 90 00 EF [13:58:02]RAPDU: 90 00 [13:58:02]wFMCommunicate OK [13:58:02]wFMCommunicate request_size=4 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 0D 03 02 [13:58:02]Write to MH i2c: E2 08 00 6C 10 80 0D 03 02 00 00 00 00 F7 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 0B 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 0B 00 6C 10 00 AC 36 32 EF C7 AA B0 0A 90 00 26 [13:58:02]RAPDU: AC 36 32 EF C7 AA B0 0A 90 00 [13:58:02]wFMCommunicate OK [13:58:02]SAM_PROTO_SignData done [13:58:02]FM_MakeSignedData done [13:58:02]CreateOFDProtocolMessage [13:58:02]wFMCommunicate request_size=4 [13:58:02]MH_SAM_APDU [13:58:02]CAPDU: 80 11 00 00 [13:58:02]Write to MH i2c: E2 08 00 6D 10 80 11 00 00 00 00 00 00 F7 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:02]Read from MH i2c: E2 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 17 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: E2 17 00 6D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4E [13:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:58:02]wFMCommunicate OK [13:58:02]CreateOFDProtocolMessage done [13:58:02]OFDSenderStorePacket 139728 [13:58:02]StoreOFDPacket docnum=139728 [13:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CA 0E 07 01 AE 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E8 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 21 02 00 35 04 06 00 1A DE 2B 1A 1E 64 AC 36 32 EF C7 AA B0 0A [13:58:02]CheckFolder [13:58:02]dirname=/storage/ofd_packets [13:58:02]CheckFolder done [13:58:02]ProducePacketName [13:58:02]name=ofd_packets/00139728 [13:58:02]NVStorageSaveData ofd_packets/00139728 [13:58:02]File name is /storage/ofd_packets/00139728 [13:58:02]Write 301 bytes [13:58:02]NVStorageSaveData done [13:58:02]OFDSenderStorePacket done [13:58:02]KKMCreateOFDPacket done [13:58:02]NVStorageSaveData kkm_last_timestamp [13:58:02]File name is /storage/kkm_last_timestamp [13:58:02]Write 4 bytes [13:58:02]NVStorageSaveData done [13:58:02]ExternCall_PrintAddStr [13:58:02]wPrintStart [13:58:02]Write to MH i2c: 01 00 00 6E 10 7E [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: 01 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: 01 07 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: 01 07 00 6E 10 00 00 00 00 00 FF 0F 93 [13:58:02]RasterBufferAndPrint [13:58:02]line Счет N : (1)593575 [13:58:02]line ИНН: 02508201610067 [13:58:02]line Контрольно-Кассовый Чек [13:58:02]line ПРОДАЖА [13:58:02]line ТРК (МРК, ГНК) : 32 [13:58:02]line Товар: 2710124130 [13:58:02]line Аи-92-К-5 [13:58:02]line 7.380 * 67.80 [13:58:02]line = 500.36 [13:58:02]line НДС 12% НСП 1% [13:58:02]line > о реализуемом товаре [13:58:02]line ОКРУГЛЕНИЕ: -0.36 [13:58:02]line ИТОГО: 500.00 [13:58:02]line Внесено: 500.00 [13:58:02]line СДАЧА: 0.00 [13:58:02]line НСП 1% : 4.43 [13:58:02]line НДС 12% : 53.14 [13:58:02]line Наличными: 500.00 [13:58:02]line Безнал.: 0.00 [13:58:02]line Место: АЗС № 136 "Партнер Нефть" [13:58:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:58:02]line СНО: Общий режим [13:58:02]line Чек 200 20.08.2024 13:58 [13:58:02]line Смена: 453 ФФД: 1.0 [13:58:02]line ЗНМ: 0300000067 [13:58:02]line РНМ: 0000000000092569 [13:58:02]line Версия ККМ: 001 [13:58:02]line ФМ: 0000000000871776 [13:58:02]line ФД: 139728 [13:58:02]line ФПД: 29541508193892 [13:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T135800&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139728&fm=29541508193892&tin=02508201610067®Number=0000000000092569&sum=50000 [13:58:02]written 0, free lines is 4095 [13:58:02]OFD Sender: Processing packet 139728 [packets to send 137, broken 136] [13:58:02]ProducePacketName [13:58:02]name=ofd_packets/00139728 [13:58:02]OFD Sender: To server: pG, [13:58:02]CommunicateWithHost lk.salyk.kg:30040 [13:58:02]ConnectInit lk.salyk.kg [13:58:02]Connected sock=10 [13:58:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CA 0E 07 01 AE 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 E8 A0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 21 02 00 35 04 06 00 1A DE 2B 1A 1E 64 AC 36 32 EF C7 AA B0 0A [13:58:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BE 37 47 00 37 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 21 02 00 F4 03 04 00 7B 47 C4 66 B6 04 01 00 00 01 CB 02 B5 37 95 0D 6F [13:58:02]CommunicateWithHost err = 0 [13:58:02]CheckOFDResponse [13:58:02]1017 (14) - 77093643461234 [13:58:02]1041 (16) - 0000000000871776 [13:58:02]1040 (4) - 139728 [13:58:02]1012 (4) - 20.08.2024 07:36 [13:58:02]1206 (1) - 0 [13:58:02]OFD Sender: Remove packet 139728 [13:58:02]ProducePacketName [13:58:02]name=ofd_packets/00139728 [13:58:02]NVStorageDeleteData [13:58:02]Write to MH i2c: 01 00 00 99 10 A9 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: 01 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: 01 07 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: 01 07 00 99 10 00 00 00 00 00 EA 0C A6 [13:58:02]RasterBufferAndPrint [13:58:02]line [13:58:02]line [13:58:02]line [13:58:02]line [13:58:02]line [13:58:02]written 0, free lines is 3312 [13:58:02]MH_Cut [13:58:02]Write to MH i2c: D1 01 00 A0 10 01 82 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: D1 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: D1 01 00 [13:58:02]MH_I2C_Read... [13:58:02]Read from MH i2c: D1 01 00 A0 10 00 81 [13:58:02]Write to MH i2c: 01 00 00 A1 10 B1 [13:58:02]Write i2c OK [13:58:02]MH_I2C_Read... [13:58:03]OFD Sender: No OFD packet to send [13:58:03]*** Cut start [13:58:03]*** Partial cut [13:58:03]*** CUTSNS_PIN = 1 [13:58:03]*** CUTSNS_PIN = 0 [13:58:03]*** Brake cut motor [13:58:03]Read from MH i2c: 01 [13:58:03]MH_I2C_Read... [13:58:03]*** Stop cut motor [13:58:03]*** Cut end [13:58:03]Read from MH i2c: 01 07 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 07 00 A1 10 00 00 00 00 00 FF 0F C6 [13:58:03]process_action close_receipt done [13:58:03]requested_data is exist [13:58:03]produce_requested_data [13:58:03]requested_item fm.sn is exist - process it [13:58:03]wFMCommunicate request_size=4 [13:58:03]MH_SAM_APDU [13:58:03]CAPDU: 80 11 00 00 [13:58:03]Write to MH i2c: E2 08 00 A2 10 80 11 00 00 00 00 00 00 2C [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:04]Read from MH i2c: E2 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 17 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 17 00 A2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 83 [13:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:58:04]wFMCommunicate OK [13:58:04]requested_item fd.num is exist - process it [13:58:04]SAM_PROTO_GetFieldsCounters [13:58:04]wFMCommunicate request_size=4 [13:58:04]MH_SAM_APDU [13:58:04]CAPDU: 80 13 00 00 [13:58:04]Write to MH i2c: E2 08 00 A3 10 80 13 00 00 00 00 00 00 2F [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:04]Read from MH i2c: E2 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 62 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 62 00 A3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [13:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:04]wFMCommunicate OK [13:58:04]SAM_PROTO_GetFieldsCounters done [13:58:04]requested_item shift.num is exist - process it [13:58:04]requested_item shift.opened is exist - process it [13:58:04]req_shift_opened [13:58:04]FM_GetShiftState [13:58:04]SAM_PROTO_GetShiftState [13:58:04]wFMCommunicate request_size=4 [13:58:04]MH_SAM_APDU [13:58:04]CAPDU: 80 13 01 00 [13:58:04]Write to MH i2c: E2 08 00 A4 10 80 13 01 00 00 00 00 00 31 [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:04]Read from MH i2c: E2 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 0E 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 0E 00 A4 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C2 [13:58:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [13:58:04]wFMCommunicate OK [13:58:04]SAM_PROTO_GetShiftState done [13:58:04]FM_GetShiftState done [13:58:04]req_shift_opened done [13:58:04]requested_item shift.open_date is exist - process it [13:58:04]req_shift_open_date [13:58:04]req_shift_open_date done [13:58:04]produce_requested_data done [13:58:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139728,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [13:58:04]process_action_free close_receipt [13:58:04]json_value_free [13:58:04]json_value_free done [13:58:04]process_json_proto returns [13:58:04]Send response to host [13:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139728,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [13:58:04]free response buf [13:58:04]execute_script done [13:58:04]execute_script returns [13:58:04]free content buf [13:58:04]Sock 9.Close socket [13:58:04]Sock 9.Thread stoped [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:02]accept exits with 8 [14:02:02]New connection [14:02:02]New thread 3067288932 created [14:02:02]Thread 3067145572 joined [14:02:02]Waiting for new connection... [14:02:02] Sock 8.Parse request [14:02:02]Sock 8.Check first char [14:02:02]Sock 8.First char is OK [14:02:02]request: POST /json_proto HTTP/1.0 [14:02:02]Method: POST [14:02:02]URL: /json_proto [14:02:02]Method is POST - this is cgi request [14:02:02]url: /json_proto [14:02:02]query_string will be loaded in cgi processing [14:02:02]execute_cgi json_proto POST (null) [14:02:02]execute_cgi path=json_proto method=POST [14:02:02]POST find Content-Length [14:02:02]Host: 172.17.45.67:8080 [14:02:02]Content-Length: 822 [14:02:02]Content-Type: application/json [14:02:02] [14:02:02]POST finish read [14:02:02]Found Content-Length = 822 [14:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:02]execute_script... [14:02: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)593577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:02]POST & json_proto [14:02:02]process_json_proto [14:02:02]json parsed OK: [14:02:02]protocol is kg_v1.0 [14:02:02]action value=close_receipt [14:02:02]process_action close_receipt [14:02:02]cmd_close_receipt [14:02:02]MH_GetDate [14:02:02]Write to MH i2c: F0 00 00 A5 10 A4 [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: F0 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: F0 09 00 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: F0 09 00 A5 10 00 DB A1 C4 66 5F 7F 2B 66 C2 [14:02:02]GetLastDocTimeStamp 1724162280 [14:02:02]current date 1724162523 [14:02:02]FM_GetShiftState [14:02:02]SAM_PROTO_GetShiftState [14:02:02]wFMCommunicate request_size=4 [14:02:02]MH_SAM_APDU [14:02:02]CAPDU: 80 13 01 00 [14:02:02]Write to MH i2c: E2 08 00 A6 10 80 13 01 00 00 00 00 00 33 [14:02:02]Write i2c OK [14:02:02]MH_I2C_Read... [14:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:02]Read from MH i2c: E2 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 0E 00 [14:02:02]MH_I2C_Read... [14:02:02]Read from MH i2c: E2 0E 00 A6 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C4 [14:02:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:02:02]wFMCommunicate OK [14:02:02]SAM_PROTO_GetShiftState done [14:02:02]FM_GetShiftState done [14:02:02]opened in 1724113785 [14:02:02]opened+sec_in_day 1724200185 [14:02:02]quantity*price = 100021 [14:02:02]sum+1 = 100023 [14:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 201 20.08.2024 14:02 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139729 ФПД: 97854555672622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139729&fm=97854555672622&tin=02508201610067®Number=0000000000092569&sum=100000 [14:02:03]StoreToDocumentArchive [14:02:03]shift 453 fd 139729 [14:02:03]save to /storage/0453/doc_00139729 [14:02:03]save last doc name /storage/0453/doc_00139729 to /storage/kkm_last_doc_name [14:02:03]save OK [14:02:03]Clear old archive folders... [14:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:03]tlvbuf is 01FFEDD0 [14:02:03]SAM_PROTO_ClearQueue [14:02:03]wFMCommunicate request_size=4 [14:02:03]MH_SAM_APDU [14:02:03]CAPDU: 80 09 00 00 [14:02:03]Write to MH i2c: E2 08 00 B3 10 80 09 00 00 00 00 00 00 35 [14:02:03]Write i2c OK [14:02:03]MH_I2C_Read... [14:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:03]Read from MH i2c: E2 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: E2 03 00 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: E2 03 00 B3 10 00 90 00 37 [14:02:03]RAPDU: 90 00 [14:02:03]wFMCommunicate OK [14:02:03]SAM_PROTO_ClearQueue done [14:02:03]KKMCreateOFDPacket [14:02:03]OFDProtocolAddRootSTLVToBuf [14:02:03]FM_MakeSignedData [14:02:03]FM_MakeSignedData [14:02:03]SAM_PROTO_SignData [14:02:03]wFMCommunicate request_size=4 [14:02:03]MH_SAM_APDU [14:02:03]CAPDU: 80 0D 01 02 [14:02:03]Write to MH i2c: E2 08 00 B4 10 80 0D 01 02 00 00 00 00 3D [14:02:03]Write i2c OK [14:02:03]MH_I2C_Read... [14:02:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:03]Read from MH i2c: E2 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: E2 03 00 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: E2 03 00 B4 10 00 90 00 38 [14:02:03]RAPDU: 90 00 [14:02:03]wFMCommunicate OK [14:02:03]wFMCommunicate request_size=255 [14:02:03]MH_SAM_APDU [14:02:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 DB A1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 21 02 00 35 04 06 00 58 [14:02:03]Write to MH i2c: E2 02 01 B5 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 DB A1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 21 02 00 35 04 06 00 58 00 00 74 [14:02:03]Write i2c OK [14:02:03]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 03 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 03 00 B5 10 00 90 00 39 [14:02:04]RAPDU: 90 00 [14:02:04]wFMCommunicate OK [14:02:04]wFMCommunicate request_size=10 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 0D 02 02 05 FF 8A 07 D0 2E [14:02:04]Write to MH i2c: E2 0D 00 B6 10 80 0D 02 02 05 00 FF 8A 07 D0 2E 00 00 D8 [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 03 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 03 00 B6 10 00 90 00 3A [14:02:04]RAPDU: 90 00 [14:02:04]wFMCommunicate OK [14:02:04]wFMCommunicate request_size=4 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 0D 03 02 [14:02:04]Write to MH i2c: E2 08 00 B7 10 80 0D 03 02 00 00 00 00 42 [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0B 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0B 00 B7 10 00 2C 47 53 91 97 1F 95 ED 90 00 D2 [14:02:04]RAPDU: 2C 47 53 91 97 1F 95 ED 90 00 [14:02:04]wFMCommunicate OK [14:02:04]SAM_PROTO_SignData done [14:02:04]FM_MakeSignedData done [14:02:04]CreateOFDProtocolMessage [14:02:04]wFMCommunicate request_size=4 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 11 00 00 [14:02:04]Write to MH i2c: E2 08 00 B8 10 80 11 00 00 00 00 00 00 42 [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 17 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 17 00 B8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 99 [14:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:02:04]wFMCommunicate OK [14:02:04]CreateOFDProtocolMessage done [14:02:04]OFDSenderStorePacket 139729 [14:02:04]StoreOFDPacket docnum=139729 [14:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 01 27 07 01 9D 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 DB A1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 21 02 00 35 04 06 00 58 FF 8A 07 D0 2E 2C 47 53 91 97 1F 95 ED [14:02:04]CheckFolder [14:02:04]dirname=/storage/ofd_packets [14:02:04]CheckFolder done [14:02:04]ProducePacketName [14:02:04]name=ofd_packets/00139729 [14:02:04]NVStorageSaveData ofd_packets/00139729 [14:02:04]File name is /storage/ofd_packets/00139729 [14:02:04]Write 301 bytes [14:02:04]NVStorageSaveData done [14:02:04]OFDSenderStorePacket done [14:02:04]KKMCreateOFDPacket done [14:02:04]NVStorageSaveData kkm_last_timestamp [14:02:04]File name is /storage/kkm_last_timestamp [14:02:04]Write 4 bytes [14:02:04]NVStorageSaveData done [14:02:04]ExternCall_PrintAddStr [14:02:04]wPrintStart [14:02:04]Write to MH i2c: 01 00 00 B9 10 C9 [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: 01 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: 01 07 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: 01 07 00 B9 10 00 00 00 00 00 FF 0F DE [14:02:04]RasterBufferAndPrint [14:02:04]line Счет N : (1)593577 [14:02:04]line ИНН: 02508201610067 [14:02:04]line Контрольно-Кассовый Чек [14:02:04]line ПРОДАЖА [14:02:04]line ТРК (МРК, ГНК) : 51 [14:02:04]line Товар: 2710124500 [14:02:04]line Аи-95-К-5 [14:02:04]line 13.480 * 74.20 [14:02:04]line = 1000.22 [14:02:04]line НДС 12% НСП 1% [14:02:04]line > о реализуемом товаре [14:02:04]line ОКРУГЛЕНИЕ: -0.22 [14:02:04]line ИТОГО: 1000.00 [14:02:04]line НСП 1% : 8.85 [14:02:04]line НДС 12% : 106.22 [14:02:04]line Наличными: 0.00 [14:02:04]line Безнал.: 1000.00 [14:02:04]line Место: АЗС № 136 "Партнер Нефть" [14:02:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:02:04]line СНО: Общий режим [14:02:04]line Чек 201 20.08.2024 14:02 [14:02:04]line Смена: 453 ФФД: 1.0 [14:02:04]line ЗНМ: 0300000067 [14:02:04]line РНМ: 0000000000092569 [14:02:04]line Версия ККМ: 001 [14:02:04]line Платежная система: O! деньги [14:02:04]line ФМ: 0000000000871776 [14:02:04]line ФД: 139729 [14:02:04]line ФПД: 97854555672622 [14:02:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139729&fm=97854555672622&tin=02508201610067®Number=0000000000092569&sum=100000 [14:02:04]written 0, free lines is 4095 [14:02:04]OFD Sender: Processing packet 139729 [packets to send 137, broken 136] [14:02:04]ProducePacketName [14:02:04]name=ofd_packets/00139729 [14:02:04]OFD Sender: To server: pG, [14:02:04]CommunicateWithHost lk.salyk.kg:30040 [14:02:04]ConnectInit lk.salyk.kg [14:02:04]Connected sock=9 [14:02:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 01 27 07 01 9D 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 DB A1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 21 02 00 35 04 06 00 58 FF 8A 07 D0 2E 2C 47 53 91 97 1F 95 ED [14:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E3 77 47 00 95 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 21 02 00 F4 03 04 00 6E 48 C4 66 B6 04 01 00 00 E0 95 81 0E B3 BC 9E 7B [14:02:05]CommunicateWithHost err = 0 [14:02:05]CheckOFDResponse [14:02:05]1017 (14) - 77093643461234 [14:02:05]1041 (16) - 0000000000871776 [14:02:05]1040 (4) - 139729 [14:02:05]1012 (4) - 20.08.2024 07:40 [14:02:05]1206 (1) - 0 [14:02:05]OFD Sender: Remove packet 139729 [14:02:05]ProducePacketName [14:02:05]name=ofd_packets/00139729 [14:02:05]NVStorageDeleteData [14:02:05]Write to MH i2c: 01 00 00 E4 10 F4 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: 01 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: 01 07 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: 01 07 00 E4 10 00 00 00 00 00 E3 0C EA [14:02:05]RasterBufferAndPrint [14:02:05]line [14:02:05]line [14:02:05]line [14:02:05]line [14:02:05]line [14:02:05]written 0, free lines is 3305 [14:02:05]MH_Cut [14:02:05]Write to MH i2c: D1 01 00 EB 10 01 CD [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: D1 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: D1 01 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: D1 01 00 EB 10 00 CC [14:02:05]Write to MH i2c: 01 00 00 EC 10 FC [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]OFD Sender: No OFD packet to send [14:02:05]*** Cut start [14:02:05]*** Partial cut [14:02:05]*** CUTSNS_PIN = 1 [14:02:05]*** CUTSNS_PIN = 0 [14:02:06]*** Brake cut motor [14:02:06]Read from MH i2c: 01 [14:02:06]MH_I2C_Read... [14:02:06]*** Stop cut motor [14:02:06]*** Cut end [14:02:06]Read from MH i2c: 01 07 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 FF 0F 11 [14:02:06]process_action close_receipt done [14:02:06]requested_data is exist [14:02:06]produce_requested_data [14:02:06]requested_item fm.sn is exist - process it [14:02:06]wFMCommunicate request_size=4 [14:02:06]MH_SAM_APDU [14:02:06]CAPDU: 80 11 00 00 [14:02:06]Write to MH i2c: E2 08 00 ED 10 80 11 00 00 00 00 00 00 77 [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:06]Read from MH i2c: E2 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 17 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 17 00 ED 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CE [14:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:02:06]wFMCommunicate OK [14:02:06]requested_item fd.num is exist - process it [14:02:06]SAM_PROTO_GetFieldsCounters [14:02:06]wFMCommunicate request_size=4 [14:02:06]MH_SAM_APDU [14:02:06]CAPDU: 80 13 00 00 [14:02:06]Write to MH i2c: E2 08 00 EE 10 80 13 00 00 00 00 00 00 7A [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:06]Read from MH i2c: E2 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 62 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 62 00 EE 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [14:02:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:06]wFMCommunicate OK [14:02:06]SAM_PROTO_GetFieldsCounters done [14:02:06]requested_item shift.num is exist - process it [14:02:06]requested_item shift.opened is exist - process it [14:02:06]req_shift_opened [14:02:06]FM_GetShiftState [14:02:06]SAM_PROTO_GetShiftState [14:02:06]wFMCommunicate request_size=4 [14:02:06]MH_SAM_APDU [14:02:06]CAPDU: 80 13 01 00 [14:02:06]Write to MH i2c: E2 08 00 EF 10 80 13 01 00 00 00 00 00 7C [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:06]Read from MH i2c: E2 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 0E 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 0E 00 EF 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0D [14:02:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:02:06]wFMCommunicate OK [14:02:06]SAM_PROTO_GetShiftState done [14:02:06]FM_GetShiftState done [14:02:06]req_shift_opened done [14:02:06]requested_item shift.open_date is exist - process it [14:02:06]req_shift_open_date [14:02:06]req_shift_open_date done [14:02:06]produce_requested_data done [14:02:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139729,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:02:06]process_action_free close_receipt [14:02:06]json_value_free [14:02:06]json_value_free done [14:02:06]process_json_proto returns [14:02:06]Send response to host [14:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139729,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:02:06]free response buf [14:02:06]execute_script done [14:02:06]execute_script returns [14:02:06]free content buf [14:02:06]Sock 8.Close socket [14:02:06]Sock 8.Thread stoped [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:01]accept exits with 10 [14:03:01]New connection [14:03:01]New thread 3067145572 created [14:03:01]Thread 3067288932 joined [14:03:01]Waiting for new connection... [14:03:01] Sock 10.Parse request [14:03:01]Sock 10.Check first char [14:03:01]Sock 10.First char is OK [14:03:01]request: POST /json_proto HTTP/1.0 [14:03:01]Method: POST [14:03:01]URL: /json_proto [14:03:01]Method is POST - this is cgi request [14:03:01]url: /json_proto [14:03:01]query_string will be loaded in cgi processing [14:03:01]execute_cgi json_proto POST (null) [14:03:01]execute_cgi path=json_proto method=POST [14:03:01]POST find Content-Length [14:03:01]Host: 172.17.45.67:8080 [14:03:01]Content-Length: 754 [14:03:01]Content-Type: application/json [14:03:01] [14:03:01]POST finish read [14:03:01]Found Content-Length = 754 [14:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 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\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:01]execute_script... [14:03: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)593576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 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\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:01]POST & json_proto [14:03:01]process_json_proto [14:03:01]json parsed OK: [14:03:01]protocol is kg_v1.0 [14:03:01]action value=close_receipt [14:03:01]process_action close_receipt [14:03:01]cmd_close_receipt [14:03:01]MH_GetDate [14:03:01]Write to MH i2c: F0 00 00 F0 10 EF [14:03:01]Write i2c OK [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: F0 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: F0 09 00 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: F0 09 00 F0 10 00 15 A2 C4 66 5F 7F 2B 66 48 [14:03:01]GetLastDocTimeStamp 1724162523 [14:03:01]current date 1724162581 [14:03:01]FM_GetShiftState [14:03:01]SAM_PROTO_GetShiftState [14:03:01]wFMCommunicate request_size=4 [14:03:01]MH_SAM_APDU [14:03:01]CAPDU: 80 13 01 00 [14:03:01]Write to MH i2c: E2 08 00 F1 10 80 13 01 00 00 00 00 00 7E [14:03:01]Write i2c OK [14:03:01]MH_I2C_Read... [14:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:01]Read from MH i2c: E2 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: E2 0E 00 [14:03:01]MH_I2C_Read... [14:03:01]Read from MH i2c: E2 0E 00 F1 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0F [14:03:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:03:01]wFMCommunicate OK [14:03:01]SAM_PROTO_GetShiftState done [14:03:01]FM_GetShiftState done [14:03:01]opened in 1724113785 [14:03:01]opened+sec_in_day 1724200185 [14:03:01]quantity*price = 0 [14:03:01]sum+1 = 1 [14:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 202 20.08.2024 14:03 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104261 ФМ: 0000000000871776 ФД: 139730 ФПД: 244456898684023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140301&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139730&fm=244456898684023&tin=02508201610067®Number=0000000000092569&sum=0 [14:03:02]StoreToDocumentArchive [14:03:02]shift 453 fd 139730 [14:03:02]save to /storage/0453/doc_00139730 [14:03:02]save last doc name /storage/0453/doc_00139730 to /storage/kkm_last_doc_name [14:03:02]save OK [14:03:02]Clear old archive folders... [14:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:02]tlvbuf is 02056EB0 [14:03:02]SAM_PROTO_ClearQueue [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 09 00 00 [14:03:02]Write to MH i2c: E2 08 00 FE 10 80 09 00 00 00 00 00 00 80 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 FE 10 00 90 00 82 [14:03:02]RAPDU: 90 00 [14:03:02]wFMCommunicate OK [14:03:02]SAM_PROTO_ClearQueue done [14:03:02]KKMCreateOFDPacket [14:03:02]OFDProtocolAddRootSTLVToBuf [14:03:02]FM_MakeSignedData [14:03:02]FM_MakeSignedData [14:03:02]SAM_PROTO_SignData [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 0D 01 02 [14:03:02]Write to MH i2c: E2 08 00 FF 10 80 0D 01 02 00 00 00 00 88 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 FF 10 00 90 00 83 [14:03:02]RAPDU: 90 00 [14:03:02]wFMCommunicate OK [14:03:02]wFMCommunicate request_size=255 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 15 A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 21 02 00 35 04 06 00 DE [14:03:02]Write to MH i2c: E2 02 01 00 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 15 A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 21 02 00 35 04 06 00 DE 00 00 86 [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 00 11 00 90 00 85 [14:03:02]RAPDU: 90 00 [14:03:02]wFMCommunicate OK [14:03:02]wFMCommunicate request_size=10 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 0D 02 02 05 55 0E 9B E4 77 [14:03:02]Write to MH i2c: E2 0D 00 01 11 80 0D 02 02 05 00 55 0E 9B E4 77 00 00 EF [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:02]Read from MH i2c: E2 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 [14:03:02]MH_I2C_Read... [14:03:02]Read from MH i2c: E2 03 00 01 11 00 90 00 86 [14:03:02]RAPDU: 90 00 [14:03:02]wFMCommunicate OK [14:03:02]wFMCommunicate request_size=4 [14:03:02]MH_SAM_APDU [14:03:02]CAPDU: 80 0D 03 02 [14:03:02]Write to MH i2c: E2 08 00 02 11 80 0D 03 02 00 00 00 00 8E [14:03:02]Write i2c OK [14:03:02]MH_I2C_Read... [14:03:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0B 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 0B 00 02 11 00 38 6F 96 49 1D DD 9F 69 90 00 17 [14:03:03]RAPDU: 38 6F 96 49 1D DD 9F 69 90 00 [14:03:03]wFMCommunicate OK [14:03:03]SAM_PROTO_SignData done [14:03:03]FM_MakeSignedData done [14:03:03]CreateOFDProtocolMessage [14:03:03]wFMCommunicate request_size=4 [14:03:03]MH_SAM_APDU [14:03:03]CAPDU: 80 11 00 00 [14:03:03]Write to MH i2c: E2 08 00 03 11 80 11 00 00 00 00 00 00 8E [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:03]Read from MH i2c: E2 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 17 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: E2 17 00 03 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E5 [14:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:03:03]wFMCommunicate OK [14:03:03]CreateOFDProtocolMessage done [14:03:03]OFDSenderStorePacket 139730 [14:03:03]StoreOFDPacket docnum=139730 [14:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6B B1 07 01 01 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 15 A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 21 02 00 35 04 06 00 DE 55 0E 9B E4 77 38 6F 96 49 1D DD 9F 69 [14:03:03]CheckFolder [14:03:03]dirname=/storage/ofd_packets [14:03:03]CheckFolder done [14:03:03]ProducePacketName [14:03:03]name=ofd_packets/00139730 [14:03:03]NVStorageSaveData ofd_packets/00139730 [14:03:03]File name is /storage/ofd_packets/00139730 [14:03:03]Write 301 bytes [14:03:03]NVStorageSaveData done [14:03:03]OFDSenderStorePacket done [14:03:03]KKMCreateOFDPacket done [14:03:03]NVStorageSaveData kkm_last_timestamp [14:03:03]File name is /storage/kkm_last_timestamp [14:03:03]Write 4 bytes [14:03:03]NVStorageSaveData done [14:03:03]ExternCall_PrintAddStr [14:03:03]wPrintStart [14:03:03]Write to MH i2c: 01 00 00 04 11 15 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: 01 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: 01 07 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: 01 07 00 04 11 00 00 00 00 00 FF 0F 2A [14:03:03]RasterBufferAndPrint [14:03:03]line Счет N : (1)593576 [14:03:03]line ИНН: 02508201610067 [14:03:03]line Контрольно-Кассовый Чек [14:03:03]line ПРОДАЖА [14:03:03]line ТРК (МРК, ГНК) : 42 [14:03:03]line Товар: 2710124130 [14:03:03]line Аи-92-К-5 [14:03:03]line 30.000 * 0.00 [14:03:03]line = 0.00 [14:03:03]line НДС 12% НСП 1% [14:03:03]line > о реализуемом товаре [14:03:03]line ИТОГО: 0.00 [14:03:03]line НСП 1% : 0.00 [14:03:03]line НДС 12% : 0.00 [14:03:03]line Наличными: 0.00 [14:03:03]line Безнал.: 0.00 [14:03:03]line Место: АЗС № 136 "Партнер Нефть" [14:03:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:03:03]line СНО: Общий режим [14:03:03]line Чек 202 20.08.2024 14:03 [14:03:03]line Смена: 453 ФФД: 1.0 [14:03:03]line ЗНМ: 0300000067 [14:03:03]line РНМ: 0000000000092569 [14:03:03]line Версия ККМ: 001 [14:03:03]line Талоны: ТК ГПНА Online [14:03:03]line 30104261 [14:03:03]line ФМ: 0000000000871776 [14:03:03]line ФД: 139730 [14:03:03]line ФПД: 244456898684023 [14:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140301&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139730&fm=244456898684023&tin=02508201610067®Number=0000000000092569&sum=0 [14:03:03]written 0, free lines is 4095 [14:03:03]OFD Sender: Processing packet 139730 [packets to send 137, broken 136] [14:03:03]ProducePacketName [14:03:03]name=ofd_packets/00139730 [14:03:03]OFD Sender: To server: pG, [14:03:03]CommunicateWithHost lk.salyk.kg:30040 [14:03:03]ConnectInit lk.salyk.kg [14:03:03]Write to MH i2c: 01 00 00 2E 11 3F [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: 01 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: 01 07 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 E1 0C 33 [14:03:03]RasterBufferAndPrint [14:03:03]line [14:03:03]line [14:03:03]line [14:03:03]line [14:03:03]line [14:03:03]written 0, free lines is 3304 [14:03:03]MH_Cut [14:03:03]Write to MH i2c: D1 01 00 35 11 01 18 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: D1 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: D1 01 00 [14:03:03]MH_I2C_Read... [14:03:03]Read from MH i2c: D1 01 00 35 11 00 17 [14:03:03]Write to MH i2c: 01 00 00 36 11 47 [14:03:03]Write i2c OK [14:03:03]MH_I2C_Read... [14:03:03]Connected sock=8 [14:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6B B1 07 01 01 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 15 A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 21 02 00 35 04 06 00 DE 55 0E 9B E4 77 38 6F 96 49 1D DD 9F 69 [14:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 92 12 47 00 3E E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 21 02 00 F4 03 04 00 A9 48 C4 66 B6 04 01 00 00 8D 77 17 6A 4B 04 D4 1C [14:03:03]CommunicateWithHost err = 0 [14:03:03]CheckOFDResponse [14:03:03]1017 (14) - 77093643461234 [14:03:03]1041 (16) - 0000000000871776 [14:03:03]1040 (4) - 139730 [14:03:03]1012 (4) - 20.08.2024 07:41 [14:03:03]1206 (1) - 0 [14:03:03]OFD Sender: Remove packet 139730 [14:03:03]ProducePacketName [14:03:03]name=ofd_packets/00139730 [14:03:03]NVStorageDeleteData [14:03:04]*** Cut start [14:03:04]*** Partial cut [14:03:04]*** CUTSNS_PIN = 1 [14:03:04]*** CUTSNS_PIN = 0 [14:03:04]OFD Sender: No OFD packet to send [14:03:04]*** Brake cut motor [14:03:04]Read from MH i2c: 01 [14:03:04]MH_I2C_Read... [14:03:04]*** Stop cut motor [14:03:04]*** Cut end [14:03:04]Read from MH i2c: 01 07 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: 01 07 00 36 11 00 00 00 00 00 FF 0F 5C [14:03:04]process_action close_receipt done [14:03:04]requested_data is exist [14:03:04]produce_requested_data [14:03:04]requested_item fm.sn is exist - process it [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 11 00 00 [14:03:04]Write to MH i2c: E2 08 00 37 11 80 11 00 00 00 00 00 00 C2 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 17 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 17 00 37 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 19 [14:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:03:04]wFMCommunicate OK [14:03:04]requested_item fd.num is exist - process it [14:03:04]SAM_PROTO_GetFieldsCounters [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 13 00 00 [14:03:04]Write to MH i2c: E2 08 00 38 11 80 13 00 00 00 00 00 00 C5 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:04]Read from MH i2c: E2 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 62 00 [14:03:04]MH_I2C_Read... [14:03:04]Read from MH i2c: E2 62 00 38 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [14:03:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:04]wFMCommunicate OK [14:03:04]SAM_PROTO_GetFieldsCounters done [14:03:04]requested_item shift.num is exist - process it [14:03:04]requested_item shift.opened is exist - process it [14:03:04]req_shift_opened [14:03:04]FM_GetShiftState [14:03:04]SAM_PROTO_GetShiftState [14:03:04]wFMCommunicate request_size=4 [14:03:04]MH_SAM_APDU [14:03:04]CAPDU: 80 13 01 00 [14:03:04]Write to MH i2c: E2 08 00 39 11 80 13 01 00 00 00 00 00 C7 [14:03:04]Write i2c OK [14:03:04]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 [14:03:05]MH_I2C_Read... [14:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:05]Read from MH i2c: E2 0E 00 [14:03:05]MH_I2C_Read... [14:03:05]Read from MH i2c: E2 0E 00 39 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 58 [14:03:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:03:05]wFMCommunicate OK [14:03:05]SAM_PROTO_GetShiftState done [14:03:05]FM_GetShiftState done [14:03:05]req_shift_opened done [14:03:05]requested_item shift.open_date is exist - process it [14:03:05]req_shift_open_date [14:03:05]req_shift_open_date done [14:03:05]produce_requested_data done [14:03:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139730,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:03:05]process_action_free close_receipt [14:03:05]json_value_free [14:03:05]json_value_free done [14:03:05]process_json_proto returns [14:03:05]Send response to host [14:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139730,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:03:05]free response buf [14:03:05]execute_script done [14:03:05]execute_script returns [14:03:05]free content buf [14:03:05]Sock 10.Close socket [14:03:05]Sock 10.Thread stoped [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [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:29]accept exits with 9 [14:04:29]New connection [14:04:29]New thread 3067288932 created [14:04:29]Thread 3067145572 joined [14:04:29]Waiting for new connection... [14:04:29] Sock 9.Parse request [14:04:29]Sock 9.Check first char [14:04:29]Sock 9.First char is OK [14:04:29]request: POST /json_proto HTTP/1.0 [14:04:29]Method: POST [14:04:29]URL: /json_proto [14:04:29]Method is POST - this is cgi request [14:04:29]url: /json_proto [14:04:29]query_string will be loaded in cgi processing [14:04:29]execute_cgi json_proto POST (null) [14:04:29]execute_cgi path=json_proto method=POST [14:04:29]POST find Content-Length [14:04:29]Host: 172.17.45.67:8080 [14:04:29]Content-Length: 677 [14:04:29]Content-Type: application/json [14:04:29] [14:04:29]POST finish read [14:04:29]Found Content-Length = 677 [14:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:29]execute_script... [14:04: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)593578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:29]POST & json_proto [14:04:29]process_json_proto [14:04:29]json parsed OK: [14:04:29]protocol is kg_v1.0 [14:04:29]action value=close_receipt [14:04:29]process_action close_receipt [14:04:29]cmd_close_receipt [14:04:29]MH_GetDate [14:04:29]Write to MH i2c: F0 00 00 3A 11 3A [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: F0 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: F0 09 00 [14:04:29]MH_I2C_Read... [14:04:29]Read from MH i2c: F0 09 00 3A 11 00 6E A2 C4 66 5F 7F 2B 66 EC [14:04:29]GetLastDocTimeStamp 1724162581 [14:04:29]current date 1724162670 [14:04:29]FM_GetShiftState [14:04:29]SAM_PROTO_GetShiftState [14:04:29]wFMCommunicate request_size=4 [14:04:29]MH_SAM_APDU [14:04:29]CAPDU: 80 13 01 00 [14:04:29]Write to MH i2c: E2 08 00 3B 11 80 13 01 00 00 00 00 00 C9 [14:04:29]Write i2c OK [14:04:29]MH_I2C_Read... [14:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:30]Read from MH i2c: E2 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: E2 0E 00 [14:04:30]MH_I2C_Read... [14:04:30]Read from MH i2c: E2 0E 00 3B 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5A [14:04:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:04:30]wFMCommunicate OK [14:04:30]SAM_PROTO_GetShiftState done [14:04:30]FM_GetShiftState done [14:04:30]opened in 1724113785 [14:04:30]opened+sec_in_day 1724200185 [14:04:30]quantity*price = 25018 [14:04:30]sum+1 = 25019 [14:04:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 203 20.08.2024 14:04 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139731 ФПД: 37187765089379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139731&fm=37187765089379&tin=02508201610067®Number=0000000000092569&sum=25000 [14:04:31]StoreToDocumentArchive [14:04:31]shift 453 fd 139731 [14:04:31]save to /storage/0453/doc_00139731 [14:04:31]save last doc name /storage/0453/doc_00139731 to /storage/kkm_last_doc_name [14:04:31]save OK [14:04:31]Clear old archive folders... [14:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:31]tlvbuf is 01FFED80 [14:04:31]SAM_PROTO_ClearQueue [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 09 00 00 [14:04:31]Write to MH i2c: E2 08 00 48 11 80 09 00 00 00 00 00 00 CB [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 48 11 00 90 00 CD [14:04:31]RAPDU: 90 00 [14:04:31]wFMCommunicate OK [14:04:31]SAM_PROTO_ClearQueue done [14:04:31]KKMCreateOFDPacket [14:04:31]OFDProtocolAddRootSTLVToBuf [14:04:31]FM_MakeSignedData [14:04:31]FM_MakeSignedData [14:04:31]SAM_PROTO_SignData [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 0D 01 02 [14:04:31]Write to MH i2c: E2 08 00 49 11 80 0D 01 02 00 00 00 00 D3 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 49 11 00 90 00 CE [14:04:31]RAPDU: 90 00 [14:04:31]wFMCommunicate OK [14:04:31]wFMCommunicate request_size=255 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6E A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 21 02 00 35 04 06 00 21 [14:04:31]Write to MH i2c: E2 02 01 4A 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6E A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 21 02 00 35 04 06 00 21 00 00 4C [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 4A 11 00 90 00 CF [14:04:31]RAPDU: 90 00 [14:04:31]wFMCommunicate OK [14:04:31]wFMCommunicate request_size=10 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 0D 02 02 05 D2 73 87 34 63 [14:04:31]Write to MH i2c: E2 0D 00 4B 11 80 0D 02 02 05 00 D2 73 87 34 63 00 00 43 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 03 00 4B 11 00 90 00 D0 [14:04:31]RAPDU: 90 00 [14:04:31]wFMCommunicate OK [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 0D 03 02 [14:04:31]Write to MH i2c: E2 08 00 4C 11 80 0D 03 02 00 00 00 00 D8 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 0B 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 0B 00 4C 11 00 06 AA 43 F4 6C 80 6F 88 90 00 A3 [14:04:31]RAPDU: 06 AA 43 F4 6C 80 6F 88 90 00 [14:04:31]wFMCommunicate OK [14:04:31]SAM_PROTO_SignData done [14:04:31]FM_MakeSignedData done [14:04:31]CreateOFDProtocolMessage [14:04:31]wFMCommunicate request_size=4 [14:04:31]MH_SAM_APDU [14:04:31]CAPDU: 80 11 00 00 [14:04:31]Write to MH i2c: E2 08 00 4D 11 80 11 00 00 00 00 00 00 D8 [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:31]Read from MH i2c: E2 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 17 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: E2 17 00 4D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [14:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:04:31]wFMCommunicate OK [14:04:31]CreateOFDProtocolMessage done [14:04:31]OFDSenderStorePacket 139731 [14:04:31]StoreOFDPacket docnum=139731 [14:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 82 07 01 10 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6E A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 21 02 00 35 04 06 00 21 D2 73 87 34 63 06 AA 43 F4 6C 80 6F 88 [14:04:31]CheckFolder [14:04:31]dirname=/storage/ofd_packets [14:04:31]CheckFolder done [14:04:31]ProducePacketName [14:04:31]name=ofd_packets/00139731 [14:04:31]NVStorageSaveData ofd_packets/00139731 [14:04:31]File name is /storage/ofd_packets/00139731 [14:04:31]Write 301 bytes [14:04:31]NVStorageSaveData done [14:04:31]OFDSenderStorePacket done [14:04:31]KKMCreateOFDPacket done [14:04:31]NVStorageSaveData kkm_last_timestamp [14:04:31]File name is /storage/kkm_last_timestamp [14:04:31]Write 4 bytes [14:04:31]NVStorageSaveData done [14:04:31]ExternCall_PrintAddStr [14:04:31]wPrintStart [14:04:31]Write to MH i2c: 01 00 00 4E 11 5F [14:04:31]Write i2c OK [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: 01 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: 01 07 00 [14:04:31]MH_I2C_Read... [14:04:31]Read from MH i2c: 01 07 00 4E 11 00 00 00 00 00 FF 0F 74 [14:04:31]RasterBufferAndPrint [14:04:31]line Счет N : (1)593578 [14:04:31]line ИНН: 02508201610067 [14:04:31]line Контрольно-Кассовый Чек [14:04:31]line ПРОДАЖА [14:04:31]line ТРК (МРК, ГНК) : 52 [14:04:31]line Товар: 2710124130 [14:04:31]line Аи-92-К-5 [14:04:31]line 3.690 * 67.80 [14:04:31]line = 250.18 [14:04:31]line НДС 12% НСП 1% [14:04:31]line > о реализуемом товаре [14:04:31]line ОКРУГЛЕНИЕ: -0.18 [14:04:31]line ИТОГО: 250.00 [14:04:31]line Внесено: 250.00 [14:04:31]line СДАЧА: 0.00 [14:04:31]line НСП 1% : 2.21 [14:04:31]line НДС 12% : 26.57 [14:04:31]line Наличными: 250.00 [14:04:31]line Безнал.: 0.00 [14:04:31]line Место: АЗС № 136 "Партнер Нефть" [14:04:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:04:31]line СНО: Общий режим [14:04:31]line Чек 203 20.08.2024 14:04 [14:04:31]line Смена: 453 ФФД: 1.0 [14:04:31]line ЗНМ: 0300000067 [14:04:31]line РНМ: 0000000000092569 [14:04:31]line Версия ККМ: 001 [14:04:31]line ФМ: 0000000000871776 [14:04:31]line ФД: 139731 [14:04:31]line ФПД: 37187765089379 [14:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139731&fm=37187765089379&tin=02508201610067®Number=0000000000092569&sum=25000 [14:04:32]written 0, free lines is 4095 [14:04:32]OFD Sender: Processing packet 139731 [packets to send 137, broken 136] [14:04:32]ProducePacketName [14:04:32]name=ofd_packets/00139731 [14:04:32]OFD Sender: To server: pG, [14:04:32]CommunicateWithHost lk.salyk.kg:30040 [14:04:32]ConnectInit lk.salyk.kg [14:04:32]Connected sock=10 [14:04:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 82 07 01 10 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6E A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 21 02 00 35 04 06 00 21 D2 73 87 34 63 06 AA 43 F4 6C 80 6F 88 [14:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 65 85 47 00 C9 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 21 02 00 F4 03 04 00 01 49 C4 66 B6 04 01 00 00 2A 3F 84 69 5D 8C 33 CA [14:04:32]CommunicateWithHost err = 0 [14:04:32]CheckOFDResponse [14:04:32]1017 (14) - 77093643461234 [14:04:32]1041 (16) - 0000000000871776 [14:04:32]1040 (4) - 139731 [14:04:32]1012 (4) - 20.08.2024 07:42 [14:04:32]1206 (1) - 0 [14:04:32]OFD Sender: Remove packet 139731 [14:04:32]ProducePacketName [14:04:32]name=ofd_packets/00139731 [14:04:32]NVStorageDeleteData [14:04:32]Write to MH i2c: 01 00 00 79 11 8A [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: 01 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: 01 07 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: 01 07 00 79 11 00 00 00 00 00 DD 0C 7A [14:04:32]RasterBufferAndPrint [14:04:32]line [14:04:32]line [14:04:32]line [14:04:32]line [14:04:32]line [14:04:32]written 0, free lines is 3302 [14:04:32]MH_Cut [14:04:32]Write to MH i2c: D1 01 00 80 11 01 63 [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: D1 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: D1 01 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: D1 01 00 80 11 00 62 [14:04:32]Write to MH i2c: 01 00 00 81 11 92 [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]OFD Sender: No OFD packet to send [14:04:33]*** Cut start [14:04:33]*** Partial cut [14:04:33]*** CUTSNS_PIN = 1 [14:04:33]*** CUTSNS_PIN = 0 [14:04:33]*** Brake cut motor [14:04:33]Read from MH i2c: 01 [14:04:33]MH_I2C_Read... [14:04:33]*** Stop cut motor [14:04:33]*** Cut end [14:04:33]Read from MH i2c: 01 07 00 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: 01 07 00 81 11 00 00 00 00 00 FF 0F A7 [14:04:33]process_action close_receipt done [14:04:33]requested_data is exist [14:04:33]produce_requested_data [14:04:33]requested_item fm.sn is exist - process it [14:04:33]wFMCommunicate request_size=4 [14:04:33]MH_SAM_APDU [14:04:33]CAPDU: 80 11 00 00 [14:04:33]Write to MH i2c: E2 08 00 82 11 80 11 00 00 00 00 00 00 0D [14:04:33]Write i2c OK [14:04:33]MH_I2C_Read... [14:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:33]Read from MH i2c: E2 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: E2 17 00 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: E2 17 00 82 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 64 [14:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:04:33]wFMCommunicate OK [14:04:33]requested_item fd.num is exist - process it [14:04:33]SAM_PROTO_GetFieldsCounters [14:04:33]wFMCommunicate request_size=4 [14:04:33]MH_SAM_APDU [14:04:33]CAPDU: 80 13 00 00 [14:04:33]Write to MH i2c: E2 08 00 83 11 80 13 00 00 00 00 00 00 10 [14:04:33]Write i2c OK [14:04:33]MH_I2C_Read... [14:04:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 62 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 62 00 83 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [14:04:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:34]wFMCommunicate OK [14:04:34]SAM_PROTO_GetFieldsCounters done [14:04:34]requested_item shift.num is exist - process it [14:04:34]requested_item shift.opened is exist - process it [14:04:34]req_shift_opened [14:04:34]FM_GetShiftState [14:04:34]SAM_PROTO_GetShiftState [14:04:34]wFMCommunicate request_size=4 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 13 01 00 [14:04:34]Write to MH i2c: E2 08 00 84 11 80 13 01 00 00 00 00 00 12 [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0E 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0E 00 84 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A3 [14:04:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:04:34]wFMCommunicate OK [14:04:34]SAM_PROTO_GetShiftState done [14:04:34]FM_GetShiftState done [14:04:34]req_shift_opened done [14:04:34]requested_item shift.open_date is exist - process it [14:04:34]req_shift_open_date [14:04:34]req_shift_open_date done [14:04:34]produce_requested_data done [14:04:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139731,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:04:34]process_action_free close_receipt [14:04:34]json_value_free [14:04:34]json_value_free done [14:04:34]process_json_proto returns [14:04:34]Send response to host [14:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139731,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:04:34]free response buf [14:04:34]execute_script done [14:04:34]execute_script returns [14:04:34]free content buf [14:04:34]Sock 9.Close socket [14:04:34]Sock 9.Thread stoped [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:55]accept exits with 8 [14:05:55]New connection [14:05:55]New thread 3067145572 created [14:05:55]Thread 3067288932 joined [14:05:55]Waiting for new connection... [14:05:55] Sock 8.Parse request [14:05:55]Sock 8.Check first char [14:05:55]Sock 8.First char is OK [14:05:55]request: POST /json_proto HTTP/1.0 [14:05:55]Method: POST [14:05:55]URL: /json_proto [14:05:55]Method is POST - this is cgi request [14:05:55]url: /json_proto [14:05:55]query_string will be loaded in cgi processing [14:05:55]execute_cgi json_proto POST (null) [14:05:55]execute_cgi path=json_proto method=POST [14:05:55]POST find Content-Length [14:05:55]Host: 172.17.45.67:8080 [14:05:55]Content-Length: 677 [14:05:55]Content-Type: application/json [14:05:55] [14:05:55]POST finish read [14:05:55]Found Content-Length = 677 [14:05:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:55]execute_script... [14:05: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)593579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:55]POST & json_proto [14:05:55]process_json_proto [14:05:55]json parsed OK: [14:05:55]protocol is kg_v1.0 [14:05:55]action value=close_receipt [14:05:55]process_action close_receipt [14:05:55]cmd_close_receipt [14:05:55]MH_GetDate [14:05:55]Write to MH i2c: F0 00 00 85 11 85 [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: F0 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: F0 09 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: F0 09 00 85 11 00 C4 A2 C4 66 5F 7F 2B 66 8D [14:05:55]GetLastDocTimeStamp 1724162670 [14:05:55]current date 1724162756 [14:05:55]FM_GetShiftState [14:05:55]SAM_PROTO_GetShiftState [14:05:55]wFMCommunicate request_size=4 [14:05:55]MH_SAM_APDU [14:05:55]CAPDU: 80 13 01 00 [14:05:55]Write to MH i2c: E2 08 00 86 11 80 13 01 00 00 00 00 00 14 [14:05:55]Write i2c OK [14:05:55]MH_I2C_Read... [14:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:55]Read from MH i2c: E2 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 0E 00 [14:05:55]MH_I2C_Read... [14:05:55]Read from MH i2c: E2 0E 00 86 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A5 [14:05:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:05:55]wFMCommunicate OK [14:05:55]SAM_PROTO_GetShiftState done [14:05:55]FM_GetShiftState done [14:05:55]opened in 1724113785 [14:05:55]opened+sec_in_day 1724200185 [14:05:55]quantity*price = 40002 [14:05:55]sum+1 = 40003 [14:05:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 204 20.08.2024 14:05 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139732 ФПД: 45601719147823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140556&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139732&fm=45601719147823&tin=02508201610067®Number=0000000000092569&sum=40000 [14:05:56]StoreToDocumentArchive [14:05:56]shift 453 fd 139732 [14:05:56]save to /storage/0453/doc_00139732 [14:05:56]save last doc name /storage/0453/doc_00139732 to /storage/kkm_last_doc_name [14:05:56]save OK [14:05:56]Clear old archive folders... [14:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:56]tlvbuf is 02006230 [14:05:56]SAM_PROTO_ClearQueue [14:05:56]wFMCommunicate request_size=4 [14:05:56]MH_SAM_APDU [14:05:56]CAPDU: 80 09 00 00 [14:05:56]Write to MH i2c: E2 08 00 93 11 80 09 00 00 00 00 00 00 16 [14:05:56]Write i2c OK [14:05:56]MH_I2C_Read... [14:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:56]Read from MH i2c: E2 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 03 00 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 03 00 93 11 00 90 00 18 [14:05:56]RAPDU: 90 00 [14:05:56]wFMCommunicate OK [14:05:56]SAM_PROTO_ClearQueue done [14:05:56]KKMCreateOFDPacket [14:05:56]OFDProtocolAddRootSTLVToBuf [14:05:56]FM_MakeSignedData [14:05:56]FM_MakeSignedData [14:05:56]SAM_PROTO_SignData [14:05:56]wFMCommunicate request_size=4 [14:05:56]MH_SAM_APDU [14:05:56]CAPDU: 80 0D 01 02 [14:05:56]Write to MH i2c: E2 08 00 94 11 80 0D 01 02 00 00 00 00 1E [14:05:56]Write i2c OK [14:05:56]MH_I2C_Read... [14:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:56]Read from MH i2c: E2 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 03 00 [14:05:56]MH_I2C_Read... [14:05:56]Read from MH i2c: E2 03 00 94 11 00 90 00 19 [14:05:56]RAPDU: 90 00 [14:05:56]wFMCommunicate OK [14:05:56]wFMCommunicate request_size=255 [14:05:56]MH_SAM_APDU [14:05:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C4 A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 21 02 00 35 04 06 00 29 [14:05:56]Write to MH i2c: E2 02 01 95 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C4 A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 21 02 00 35 04 06 00 29 00 00 CE [14:05:56]Write i2c OK [14:05:56]MH_I2C_Read... [14:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:57]Read from MH i2c: E2 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: E2 03 00 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: E2 03 00 95 11 00 90 00 1A [14:05:57]RAPDU: 90 00 [14:05:57]wFMCommunicate OK [14:05:57]wFMCommunicate request_size=10 [14:05:57]MH_SAM_APDU [14:05:57]CAPDU: 80 0D 02 02 05 79 7A 45 5D 2F [14:05:57]Write to MH i2c: E2 0D 00 96 11 80 0D 02 02 05 00 79 7A 45 5D 2F 00 00 EF [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:57]Read from MH i2c: E2 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: E2 03 00 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: E2 03 00 96 11 00 90 00 1B [14:05:57]RAPDU: 90 00 [14:05:57]wFMCommunicate OK [14:05:57]wFMCommunicate request_size=4 [14:05:57]MH_SAM_APDU [14:05:57]CAPDU: 80 0D 03 02 [14:05:57]Write to MH i2c: E2 08 00 97 11 80 0D 03 02 00 00 00 00 23 [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:57]Read from MH i2c: E2 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: E2 0B 00 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: E2 0B 00 97 11 00 A3 17 46 52 32 6E 91 2A 90 00 D1 [14:05:57]RAPDU: A3 17 46 52 32 6E 91 2A 90 00 [14:05:57]wFMCommunicate OK [14:05:57]SAM_PROTO_SignData done [14:05:57]FM_MakeSignedData done [14:05:57]CreateOFDProtocolMessage [14:05:57]wFMCommunicate request_size=4 [14:05:57]MH_SAM_APDU [14:05:57]CAPDU: 80 11 00 00 [14:05:57]Write to MH i2c: E2 08 00 98 11 80 11 00 00 00 00 00 00 23 [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:57]Read from MH i2c: E2 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: E2 17 00 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: E2 17 00 98 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [14:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:05:57]wFMCommunicate OK [14:05:57]CreateOFDProtocolMessage done [14:05:57]OFDSenderStorePacket 139732 [14:05:57]StoreOFDPacket docnum=139732 [14:05:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AA 16 07 01 A8 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C4 A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 21 02 00 35 04 06 00 29 79 7A 45 5D 2F A3 17 46 52 32 6E 91 2A [14:05:57]CheckFolder [14:05:57]dirname=/storage/ofd_packets [14:05:57]CheckFolder done [14:05:57]ProducePacketName [14:05:57]name=ofd_packets/00139732 [14:05:57]NVStorageSaveData ofd_packets/00139732 [14:05:57]File name is /storage/ofd_packets/00139732 [14:05:57]Write 301 bytes [14:05:57]NVStorageSaveData done [14:05:57]OFDSenderStorePacket done [14:05:57]KKMCreateOFDPacket done [14:05:57]NVStorageSaveData kkm_last_timestamp [14:05:57]File name is /storage/kkm_last_timestamp [14:05:57]Write 4 bytes [14:05:57]NVStorageSaveData done [14:05:57]ExternCall_PrintAddStr [14:05:57]wPrintStart [14:05:57]Write to MH i2c: 01 00 00 99 11 AA [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: 01 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: 01 07 00 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: 01 07 00 99 11 00 00 00 00 00 FF 0F BF [14:05:57]RasterBufferAndPrint [14:05:57]line Счет N : (1)593579 [14:05:57]line ИНН: 02508201610067 [14:05:57]line Контрольно-Кассовый Чек [14:05:57]line ПРОДАЖА [14:05:57]line ТРК (МРК, ГНК) : 62 [14:05:57]line Товар: 2710124130 [14:05:57]line Аи-92-К-5 [14:05:57]line 5.900 * 67.80 [14:05:57]line = 400.02 [14:05:57]line НДС 12% НСП 1% [14:05:57]line > о реализуемом товаре [14:05:57]line ОКРУГЛЕНИЕ: -0.02 [14:05:57]line ИТОГО: 400.00 [14:05:57]line Внесено: 400.00 [14:05:57]line СДАЧА: 0.00 [14:05:57]line НСП 1% : 3.54 [14:05:57]line НДС 12% : 42.48 [14:05:57]line Наличными: 400.00 [14:05:57]line Безнал.: 0.00 [14:05:57]line Место: АЗС № 136 "Партнер Нефть" [14:05:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:05:57]line СНО: Общий режим [14:05:57]line Чек 204 20.08.2024 14:05 [14:05:57]line Смена: 453 ФФД: 1.0 [14:05:57]line ЗНМ: 0300000067 [14:05:57]line РНМ: 0000000000092569 [14:05:57]line Версия ККМ: 001 [14:05:57]line ФМ: 0000000000871776 [14:05:57]line ФД: 139732 [14:05:57]line ФПД: 45601719147823 [14:05:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140556&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139732&fm=45601719147823&tin=02508201610067®Number=0000000000092569&sum=40000 [14:05:57]written 0, free lines is 4095 [14:05:57]OFD Sender: Processing packet 139732 [packets to send 137, broken 136] [14:05:57]ProducePacketName [14:05:57]name=ofd_packets/00139732 [14:05:57]OFD Sender: To server: pG, [14:05:57]CommunicateWithHost lk.salyk.kg:30040 [14:05:57]ConnectInit lk.salyk.kg [14:05:57]Connected sock=10 [14:05:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AA 16 07 01 A8 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 C4 A2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 21 02 00 35 04 06 00 29 79 7A 45 5D 2F A3 17 46 52 32 6E 91 2A [14:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 05 DC 47 00 C7 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 21 02 00 F4 03 04 00 57 49 C4 66 B6 04 01 00 00 C7 2E 2D 5E 5C F3 A3 1C [14:05:57]CommunicateWithHost err = 0 [14:05:57]CheckOFDResponse [14:05:57]1017 (14) - 77093643461234 [14:05:57]1041 (16) - 0000000000871776 [14:05:57]1040 (4) - 139732 [14:05:57]1012 (4) - 20.08.2024 07:44 [14:05:57]1206 (1) - 0 [14:05:57]OFD Sender: Remove packet 139732 [14:05:57]ProducePacketName [14:05:57]name=ofd_packets/00139732 [14:05:57]NVStorageDeleteData [14:05:57]Write to MH i2c: 01 00 00 C4 11 D5 [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: 01 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: 01 07 00 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: 01 07 00 C4 11 00 00 00 00 00 ED 0C D5 [14:05:57]RasterBufferAndPrint [14:05:57]line [14:05:57]line [14:05:57]line [14:05:57]line [14:05:57]line [14:05:57]written 0, free lines is 3315 [14:05:57]MH_Cut [14:05:57]Write to MH i2c: D1 01 00 CB 11 01 AE [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: D1 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: D1 01 00 [14:05:57]MH_I2C_Read... [14:05:57]Read from MH i2c: D1 01 00 CB 11 00 AD [14:05:57]Write to MH i2c: 01 00 00 CC 11 DD [14:05:57]Write i2c OK [14:05:57]MH_I2C_Read... [14:05:58]int [14:05:58]*** FLAG_PRN_PAP2 set [14:05:58]*** Cut start [14:05:58]*** Partial cut [14:05:58]*** CUTSNS_PIN = 1 [14:05:58]*** CUTSNS_PIN = 0 [14:05:58]*** Brake cut motor [14:05:58]OFD Sender: No OFD packet to send [14:05:58]Read from MH i2c: 01 [14:05:58]MH_I2C_Read... [14:05:58]*** Stop cut motor [14:05:58]*** Cut end [14:05:58]Read from MH i2c: 01 07 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: 01 07 00 CC 11 00 02 00 00 00 FF 0F F4 [14:05:58]process_action close_receipt done [14:05:58]requested_data is exist [14:05:58]produce_requested_data [14:05:58]requested_item fm.sn is exist - process it [14:05:58]wFMCommunicate request_size=4 [14:05:58]MH_SAM_APDU [14:05:58]CAPDU: 80 11 00 00 [14:05:58]Write to MH i2c: E2 08 00 CD 11 80 11 00 00 00 00 00 00 58 [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:58]Read from MH i2c: E2 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 17 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 17 00 CD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AF [14:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:05:58]wFMCommunicate OK [14:05:58]requested_item fd.num is exist - process it [14:05:58]SAM_PROTO_GetFieldsCounters [14:05:58]wFMCommunicate request_size=4 [14:05:58]MH_SAM_APDU [14:05:58]CAPDU: 80 13 00 00 [14:05:58]Write to MH i2c: E2 08 00 CE 11 80 13 00 00 00 00 00 00 5B [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:58]Read from MH i2c: E2 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 62 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 62 00 CE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [14:05:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:58]wFMCommunicate OK [14:05:58]SAM_PROTO_GetFieldsCounters done [14:05:58]requested_item shift.num is exist - process it [14:05:58]requested_item shift.opened is exist - process it [14:05:58]req_shift_opened [14:05:58]FM_GetShiftState [14:05:58]SAM_PROTO_GetShiftState [14:05:58]wFMCommunicate request_size=4 [14:05:58]MH_SAM_APDU [14:05:58]CAPDU: 80 13 01 00 [14:05:58]Write to MH i2c: E2 08 00 CF 11 80 13 01 00 00 00 00 00 5D [14:05:58]Write i2c OK [14:05:58]MH_I2C_Read... [14:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:58]Read from MH i2c: E2 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 0E 00 [14:05:58]MH_I2C_Read... [14:05:58]Read from MH i2c: E2 0E 00 CF 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EE [14:05:58]RAPDU: Write to MH i2c: 09 01 00 00 01 00 79 D0 E3 11 C3 E1 66 [14:05:58]00 00 00 00 90 00 [14:05:58]wFMCommunicate OK [14:05:58]SAM_PROTO_GetShiftState done [14:05:58]FM_GetShiftState done [14:05:58]req_shift_opened done [14:05:58]requested_item shift.open_date is exist - process it [14:05:58]req_shift_open_date [14:05:58]Write i2c OK [14:05:58]req_shift_open_date done [14:05:58]MH_I2C_Read... [14:05:58]produce_requested_data done [14:05:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139732,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:05:58]Read from MH i2c: process_action_free close_receipt [14:05:58]01 json_value_free [14:05:58] [14:05:58]MH_I2C_Read... [14:05:58]json_value_free done [14:05:58]process_json_proto returns [14:05:58]Read from MH i2c: Send response to host [14:05:58]01 07 00 [14:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139732,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:05:58]MH_I2C_Read... [14:05:58]free response buf [14:05:58]execute_script done [14:05:58]execute_script returns [14:05:58]Read from MH i2c: free content buf [14:05:58]01 Sock 8.Close socket [14:05:58]07 00 Sock 8.Thread stoped [14:05:58]D0 11 00 02 00 00 00 FF 0F F8 [14:05:58]state=0 [14:05:58]Cover opened [14:06:03]OFD Sender: No OFD packet to send [14:06:03]Write to MH i2c: 01 00 00 D1 11 E2 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 07 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 07 00 D1 11 00 02 00 00 00 FF 0F F9 [14:06:03]state=3 [14:06:03]Cover opened [14:06:08]OFD Sender: No OFD packet to send [14:06:08]Write to MH i2c: 01 00 00 D2 11 E3 [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: 01 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: 01 07 00 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: 01 07 00 D2 11 00 02 00 00 00 FF 0F FA [14:06:08]state=3 [14:06:08]Cover opened [14:06:13]OFD Sender: No OFD packet to send [14:06:13]Write to MH i2c: 01 00 00 D3 11 E4 [14:06:13]Write i2c OK [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: 01 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: 01 07 00 [14:06:13]MH_I2C_Read... [14:06:13]Read from MH i2c: 01 07 00 D3 11 00 02 00 00 00 FF 0F FB [14:06:13]state=3 [14:06:13]Cover opened [14:06:18]OFD Sender: No OFD packet to send [14:06:18]Write to MH i2c: 01 00 00 D4 11 E5 [14:06:18]Write i2c OK [14:06:18]MH_I2C_Read... [14:06:18]Read from MH i2c: 01 [14:06:18]MH_I2C_Read... [14:06:18]Read from MH i2c: 01 07 00 [14:06:18]MH_I2C_Read... [14:06:18]Read from MH i2c: 01 07 00 D4 11 00 02 00 00 00 FF 0F FC [14:06:18]state=3 [14:06:18]Cover opened [14:06:23]OFD Sender: No OFD packet to send [14:06:23]Write to MH i2c: 01 00 00 D5 11 E6 [14:06:23]Write i2c OK [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 07 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 07 00 D5 11 00 02 00 00 00 FF 0F FD [14:06:23]state=3 [14:06:23]Cover opened [14:06:28]OFD Sender: No OFD packet to send [14:06:28]Write to MH i2c: 01 00 00 D6 11 E7 [14:06:28]Write i2c OK [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 [14:06:28]MH_I2C_Read... [14:06:28]Read from MH i2c: 01 07 00 D6 11 00 02 00 00 00 FF 0F FE [14:06:28]state=3 [14:06:28]Cover opened [14:06:33]OFD Sender: No OFD packet to send [14:06:33]Write to MH i2c: 01 00 00 D7 11 E8 [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 07 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 07 00 D7 11 00 02 00 00 00 FF 0F FF [14:06:33]state=3 [14:06:33]Cover opened [14:06:38]OFD Sender: No OFD packet to send [14:06:38]Write to MH i2c: 01 00 00 D8 11 E9 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 D8 11 00 02 00 00 00 FF 0F 00 [14:06:38]state=3 [14:06:38]Cover opened [14:06:43]OFD Sender: No OFD packet to send [14:06:43]Write to MH i2c: 01 00 00 D9 11 EA [14:06:43]Write i2c OK [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: 01 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: 01 07 00 [14:06:43]MH_I2C_Read... [14:06:43]Read from MH i2c: 01 07 00 D9 11 00 02 00 00 00 FF 0F 01 [14:06:43]state=3 [14:06:43]Cover opened [14:06:48]OFD Sender: No OFD packet to send [14:06:48]Write to MH i2c: 01 00 00 DA 11 EB [14:06:48]Write i2c OK [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: 01 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: 01 07 00 [14:06:48]MH_I2C_Read... [14:06:48]Read from MH i2c: 01 07 00 DA 11 00 02 00 00 00 FF 0F 02 [14:06:48]state=3 [14:06:48]Cover opened [14:06:53]OFD Sender: No OFD packet to send [14:06:53]Write to MH i2c: 01 00 00 DB 11 EC [14:06:53]Write i2c OK [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: 01 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: 01 07 00 [14:06:53]MH_I2C_Read... [14:06:53]Read from MH i2c: 01 07 00 DB 11 00 02 00 00 00 FF 0F 03 [14:06:53]state=3 [14:06:53]Cover opened [14:06:58]OFD Sender: No OFD packet to send [14:06:58]Write to MH i2c: 01 00 00 DC 11 ED [14:06:58]Write i2c OK [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: 01 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: 01 07 00 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: 01 07 00 DC 11 00 02 00 00 00 FF 0F 04 [14:06:58]state=3 [14:06:58]Cover opened [14:07:03]OFD Sender: No OFD packet to send [14:07:03]Write to MH i2c: 01 00 00 DD 11 EE [14:07:03]Write i2c OK [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: 01 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: 01 07 00 [14:07:03]MH_I2C_Read... [14:07:03]Read from MH i2c: 01 07 00 DD 11 00 02 00 00 00 FF 0F 05 [14:07:03]state=3 [14:07:03]Cover opened [14:07:08]OFD Sender: No OFD packet to send [14:07:08]Write to MH i2c: 01 00 00 DE 11 EF [14:07:08]Write i2c OK [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: 01 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: 01 07 00 [14:07:08]MH_I2C_Read... [14:07:08]Read from MH i2c: 01 07 00 DE 11 00 02 00 00 00 FF 0F 06 [14:07:08]state=3 [14:07:08]Cover opened [14:07:11]accept exits with 9 [14:07:11]New connection [14:07:11]New thread 3067288932 created [14:07:11]Thread 3067145572 joined [14:07:11]Waiting for new connection... [14:07:11] Sock 9.Parse request [14:07:11]Sock 9.Check first char [14:07:11]Sock 9.First char is OK [14:07:11]request: POST /json_proto HTTP/1.0 [14:07:11]Method: POST [14:07:11]URL: /json_proto [14:07:11]Method is POST - this is cgi request [14:07:11]url: /json_proto [14:07:11]query_string will be loaded in cgi processing [14:07:11]execute_cgi json_proto POST (null) [14:07:11]execute_cgi path=json_proto method=POST [14:07:11]POST find Content-Length [14:07:11]Host: 172.17.45.67:8080 [14:07:11]Content-Length: 677 [14:07:11]Content-Type: application/json [14:07:11] [14:07:11]POST finish read [14:07:11]Found Content-Length = 677 [14:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:11]execute_script... [14:07: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)593580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:11]POST & json_proto [14:07:11]process_json_proto [14:07:11]json parsed OK: [14:07:11]protocol is kg_v1.0 [14:07:11]action value=close_receipt [14:07:11]process_action close_receipt [14:07:11]cmd_close_receipt [14:07:11]MH_GetDate [14:07:11]Write to MH i2c: F0 00 00 DF 11 DF [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: F0 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: F0 09 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: F0 09 00 DF 11 00 10 A3 C4 66 5F 7F 2B 66 34 [14:07:11]GetLastDocTimeStamp 1724162756 [14:07:11]current date 1724162832 [14:07:11]FM_GetShiftState [14:07:11]SAM_PROTO_GetShiftState [14:07:11]wFMCommunicate request_size=4 [14:07:11]MH_SAM_APDU [14:07:11]CAPDU: 80 13 01 00 [14:07:11]Write to MH i2c: E2 08 00 E0 11 80 13 01 00 00 00 00 00 6E [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:11]Read from MH i2c: E2 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0E 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0E 00 E0 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FF [14:07:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:07:11]wFMCommunicate OK [14:07:11]SAM_PROTO_GetShiftState done [14:07:11]FM_GetShiftState done [14:07:11]opened in 1724113785 [14:07:11]opened+sec_in_day 1724200185 [14:07:11]quantity*price = 50036 [14:07:11]sum+1 = 50037 [14:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 205 20.08.2024 14:07 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139733 ФПД: 10160544459033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140712&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139733&fm=10160544459033&tin=02508201610067®Number=0000000000092569&sum=50000 [14:07:12]StoreToDocumentArchive [14:07:12]shift 453 fd 139733 [14:07:12]save to /storage/0453/doc_00139733 [14:07:12]save last doc name /storage/0453/doc_00139733 to /storage/kkm_last_doc_name [14:07:12]save OK [14:07:12]Clear old archive folders... [14:07:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:12]tlvbuf is 02057560 [14:07:12]SAM_PROTO_ClearQueue [14:07:12]wFMCommunicate request_size=4 [14:07:12]MH_SAM_APDU [14:07:12]CAPDU: 80 09 00 00 [14:07:12]Write to MH i2c: E2 08 00 ED 11 80 09 00 00 00 00 00 00 70 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:12]Read from MH i2c: E2 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [14:07:12]RAPDU: 90 00 [14:07:12]wFMCommunicate OK [14:07:12]SAM_PROTO_ClearQueue done [14:07:12]KKMCreateOFDPacket [14:07:12]OFDProtocolAddRootSTLVToBuf [14:07:12]FM_MakeSignedData [14:07:12]FM_MakeSignedData [14:07:12]SAM_PROTO_SignData [14:07:12]wFMCommunicate request_size=4 [14:07:12]MH_SAM_APDU [14:07:12]CAPDU: 80 0D 01 02 [14:07:12]Write to MH i2c: E2 08 00 EE 11 80 0D 01 02 00 00 00 00 78 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:12]Read from MH i2c: E2 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 [14:07:12]MH_I2C_Read... [14:07:12]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [14:07:12]RAPDU: 90 00 [14:07:12]wFMCommunicate OK [14:07:12]wFMCommunicate request_size=255 [14:07:12]MH_SAM_APDU [14:07:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 10 A3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 21 02 00 35 04 06 00 09 [14:07:12]Write to MH i2c: E2 02 01 EF 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 10 A3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 21 02 00 35 04 06 00 09 00 00 72 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [14:07:13]RAPDU: 90 00 [14:07:13]wFMCommunicate OK [14:07:13]wFMCommunicate request_size=10 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 0D 02 02 05 3D AF A4 A9 19 [14:07:13]Write to MH i2c: E2 0D 00 F0 11 80 0D 02 02 05 00 3D AF A4 A9 19 00 00 D7 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [14:07:13]RAPDU: 90 00 [14:07:13]wFMCommunicate OK [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 0D 03 02 [14:07:13]Write to MH i2c: E2 08 00 F1 11 80 0D 03 02 00 00 00 00 7D [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0B 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0B 00 F1 11 00 05 20 90 1D AA 52 8B FF 90 00 D6 [14:07:13]RAPDU: 05 20 90 1D AA 52 8B FF 90 00 [14:07:13]wFMCommunicate OK [14:07:13]SAM_PROTO_SignData done [14:07:13]FM_MakeSignedData done [14:07:13]CreateOFDProtocolMessage [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 11 00 00 [14:07:13]Write to MH i2c: E2 08 00 F2 11 80 11 00 00 00 00 00 00 7D [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 17 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 17 00 F2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [14:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:07:13]wFMCommunicate OK [14:07:13]CreateOFDProtocolMessage done [14:07:13]OFDSenderStorePacket 139733 [14:07:13]StoreOFDPacket docnum=139733 [14:07:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 58 F0 07 01 58 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 10 A3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 21 02 00 35 04 06 00 09 3D AF A4 A9 19 05 20 90 1D AA 52 8B FF [14:07:13]CheckFolder [14:07:13]dirname=/storage/ofd_packets [14:07:13]CheckFolder done [14:07:13]ProducePacketName [14:07:13]name=ofd_packets/00139733 [14:07:13]NVStorageSaveData ofd_packets/00139733 [14:07:13]File name is /storage/ofd_packets/00139733 [14:07:13]Write 301 bytes [14:07:13]NVStorageSaveData done [14:07:13]OFDSenderStorePacket done [14:07:13]KKMCreateOFDPacket done [14:07:13]NVStorageSaveData kkm_last_timestamp [14:07:13]File name is /storage/kkm_last_timestamp [14:07:13]Write 4 bytes [14:07:13]NVStorageSaveData done [14:07:13]OFD Sender: Processing packet 139733 [packets to send 137, broken 136] [14:07:13]ProducePacketName [14:07:13]name=ofd_packets/00139733 [14:07:13]OFD Sender: To server: pG, [14:07:13]CommunicateWithHost lk.salyk.kg:30040 [14:07:13]ConnectInit lk.salyk.kg [14:07:13]ExternCall_PrintAddStr [14:07:13]wPrintStart [14:07:13]Write to MH i2c: 01 00 00 F3 11 04 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 F3 11 00 02 00 00 00 FF 0F 1B [14:07:13]RasterBufferAndPrint [14:07:13]line Счет N : (1)593580 [14:07:13]line ИНН: 02508201610067 [14:07:13]line Контрольно-Кассовый Чек [14:07:13]line ПРОДАЖА [14:07:13]line ТРК (МРК, ГНК) : 42 [14:07:13]line Товар: 2710124130 [14:07:13]line Аи-92-К-5 [14:07:13]line 7.380 * 67.80 [14:07:13]line = 500.36 [14:07:13]line НДС 12% НСП 1% [14:07:13]line > о реализуемом товаре [14:07:13]line ОКРУГЛЕНИЕ: -0.36 [14:07:13]line ИТОГО: 500.00 [14:07:13]line Внесено: 500.00 [14:07:13]line СДАЧА: 0.00 [14:07:13]line НСП 1% : 4.43 [14:07:13]line НДС 12% : 53.14 [14:07:13]line Наличными: 500.00 [14:07:13]line Безнал.: 0.00 [14:07:13]line Место: АЗС № 136 "Партнер Нефть" [14:07:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:07:13]line СНО: Общий режим [14:07:13]line Чек 205 20.08.2024 14:07 [14:07:13]line Смена: 453 ФФД: 1.0 [14:07:13]line ЗНМ: 0300000067 [14:07:13]line РНМ: 0000000000092569 [14:07:13]line Версия ККМ: 001 [14:07:13]line ФМ: 0000000000871776 [14:07:13]line ФД: 139733 [14:07:13]line ФПД: 10160544459033 [14:07:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140712&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139733&fm=10160544459033&tin=02508201610067®Number=0000000000092569&sum=50000 [14:07:13]Connected sock=11 [14:07:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 58 F0 07 01 58 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 10 A3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 21 02 00 35 04 06 00 09 3D AF A4 A9 19 05 20 90 1D AA 52 8B FF [14:07:13]written 0, free lines is 4095 [14:07:13]Error from MH - 05 [14:07:13]process_action_free close_receipt [14:07:13]json_value_free [14:07:13]json_value_free done [14:07:13]process_json_proto returns [14:07:13]Send response to host [14:07:13]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [14:07:13]free response buf [14:07:13]execute_script done [14:07:13]execute_script returns [14:07:13]free content buf [14:07:13]Sock 9.Close socket [14:07:13]Sock 9.Thread stoped [14:07:13]Write to MH i2c: 01 00 00 F6 11 07 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 F6 11 00 02 00 00 00 FF 0F 1E [14:07:13]state=3 [14:07:13]Cover opened [14:07:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4A D4 47 00 91 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 21 02 00 F4 03 04 00 A3 49 C4 66 B6 04 01 00 00 23 73 76 41 49 E6 75 FB [14:07:13]CommunicateWithHost err = 0 [14:07:13]CheckOFDResponse [14:07:13]1017 (14) - 77093643461234 [14:07:13]1041 (16) - 0000000000871776 [14:07:13]1040 (4) - 139733 [14:07:13]1012 (4) - 20.08.2024 07:45 [14:07:13]1206 (1) - 0 [14:07:13]OFD Sender: Remove packet 139733 [14:07:13]ProducePacketName [14:07:13]name=ofd_packets/00139733 [14:07:13]NVStorageDeleteData [14:07:14]OFD Sender: No OFD packet to send [14:07:18]Write to MH i2c: 01 00 00 F7 11 08 [14:07:18]Write i2c OK [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 07 00 [14:07:18]MH_I2C_Read... [14:07:18]Read from MH i2c: 01 07 00 F7 11 00 02 00 00 00 FF 0F 1F [14:07:18]state=3 [14:07:18]Cover opened [14:07:19]OFD Sender: No OFD packet to send [14:07:23]Write to MH i2c: 01 00 00 F8 11 09 [14:07:23]Write i2c OK [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: 01 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: 01 07 00 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: 01 07 00 F8 11 00 02 00 00 00 FF 0F 20 [14:07:23]state=3 [14:07:23]Cover opened [14:07:24]OFD Sender: No OFD packet to send [14:07:28]Write to MH i2c: 01 00 00 F9 11 0A [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 07 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: 01 07 00 F9 11 00 02 00 00 00 FF 0F 21 [14:07:28]state=3 [14:07:28]Cover opened [14:07:29]OFD Sender: No OFD packet to send [14:07:33]Write to MH i2c: 01 00 00 FA 11 0B [14:07:33]Write i2c OK [14:07:33]MH_I2C_Read... [14:07:33]Read from MH i2c: 01 [14:07:33]MH_I2C_Read... [14:07:33]Read from MH i2c: 01 07 00 [14:07:33]MH_I2C_Read... [14:07:33]Read from MH i2c: 01 07 00 FA 11 00 02 00 00 00 FF 0F 22 [14:07:33]state=3 [14:07:33]Cover opened [14:07:34]OFD Sender: No OFD packet to send [14:07:38]Write to MH i2c: 01 00 00 FB 11 0C [14:07:38]Write i2c OK [14:07:38]MH_I2C_Read... [14:07:38]Read from MH i2c: 01 [14:07:38]MH_I2C_Read... [14:07:38]Read from MH i2c: 01 07 00 [14:07:38]MH_I2C_Read... [14:07:38]Read from MH i2c: 01 07 00 FB 11 00 02 00 00 00 FF 0F 23 [14:07:38]state=3 [14:07:38]Cover opened [14:07:39]OFD Sender: No OFD packet to send [14:07:43]Write to MH i2c: 01 00 00 FC 11 0D [14:07:43]Write i2c OK [14:07:43]MH_I2C_Read... [14:07:43]Read from MH i2c: 01 [14:07:43]MH_I2C_Read... [14:07:43]Read from MH i2c: 01 07 00 [14:07:43]MH_I2C_Read... [14:07:43]Read from MH i2c: 01 07 00 FC 11 00 02 00 00 00 FF 0F 24 [14:07:43]state=3 [14:07:43]Cover opened [14:07:44]OFD Sender: No OFD packet to send [14:07:48]Write to MH i2c: 01 00 00 FD 11 0E [14:07:48]Write i2c OK [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 [14:07:48]MH_I2C_Read... [14:07:48]Read from MH i2c: 01 07 00 FD 11 00 02 00 00 00 FF 0F 25 [14:07:48]state=3 [14:07:48]Cover opened [14:07:49]OFD Sender: No OFD packet to send [14:07:53]Write to MH i2c: 01 00 00 FE 11 0F [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 FE 11 00 02 00 00 00 FF 0F 26 [14:07:53]state=3 [14:07:53]Cover opened [14:07:54]OFD Sender: No OFD packet to send [14:07:58]Write to MH i2c: 01 00 00 FF 11 10 [14:07:58]Write i2c OK [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: 01 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: 01 07 00 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: 01 07 00 FF 11 00 02 00 00 00 FF 0F 27 [14:07:58]state=3 [14:07:58]Cover opened [14:07:59]OFD Sender: No OFD packet to send [14:08:03]Write to MH i2c: 01 00 00 00 12 12 [14:08:03]Write i2c OK [14:08:03]MH_I2C_Read... [14:08:03]Read from MH i2c: 01 [14:08:03]MH_I2C_Read... [14:08:03]Read from MH i2c: 01 07 00 [14:08:03]MH_I2C_Read... [14:08:03]Read from MH i2c: 01 07 00 00 12 00 02 00 00 00 FF 0F 29 [14:08:03]state=3 [14:08:03]Cover opened [14:08:04]OFD Sender: No OFD packet to send [14:08:08]int [14:08:08]Write to MH i2c: 01 00 00 01 12 13 [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: 01 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: 01 07 00 [14:08:08]MH_I2C_Read... [14:08:08]*** FLAG_PRN_PAP1 set [14:08:08]*** FLAG_PRN_PAP1 reset [14:08:08]Read from MH i2c: 01 07 00 01 12 00 02 00 00 00 FF 0F 2A [14:08:08]state=3 [14:08:08]Cover opened [14:08:08]int [14:08:08]Write to MH i2c: 01 00 00 02 12 14 [14:08:08]*** FLAG_PRN_PAP1 set [14:08:08]Write i2c OK [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: 01 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: 01 07 00 [14:08:08]MH_I2C_Read... [14:08:08]Read from MH i2c: 01 07 00 02 12 00 03 00 00 00 FF 0F 2C [14:08:08]state=3 [14:08:08]No paper [14:08:08]Cover opened [14:08:09]OFD Sender: No OFD packet to send [14:08:13]Write to MH i2c: 01 00 00 03 12 15 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 07 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 07 00 03 12 00 03 00 00 00 FF 0F 2D [14:08:13]state=3 [14:08:13]No paper [14:08:13]Cover opened [14:08:14]OFD Sender: No OFD packet to send [14:08:18]Write to MH i2c: 01 00 00 04 12 16 [14:08:18]Write i2c OK [14:08:18]MH_I2C_Read... [14:08:18]Read from MH i2c: 01 [14:08:18]MH_I2C_Read... [14:08:18]Read from MH i2c: 01 07 00 [14:08:18]MH_I2C_Read... [14:08:18]Read from MH i2c: 01 07 00 04 12 00 03 00 00 00 FF 0F 2E [14:08:18]state=3 [14:08:18]No paper [14:08:18]Cover opened [14:08:19]OFD Sender: No OFD packet to send [14:08:23]int [14:08:23]Write to MH i2c: 01 00 00 05 12 17 [14:08:23]*** FLAG_PRN_PAP2 reset [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 07 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 07 00 05 12 00 01 00 00 00 FF 0F 2D [14:08:23]state=3 [14:08:23]No paper [14:08:23]Cover closed [14:08:23]int [14:08:23]Write to MH i2c: 01 00 00 06 12 18 [14:08:23]*** FLAG_PRN_PAP1 reset [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 07 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 07 00 06 12 00 00 00 00 00 FF 0F 2D [14:08:23]state=0 [14:08:23]int [14:08:23]Write to MH i2c: 01 00 00 07 12 19 [14:08:23]*** FLAG_PRN_KEY set [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 07 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 07 00 07 12 00 08 00 00 00 FF 0F 36 [14:08:23]state=0 [14:08:23]Key pressed [14:08:23]Feed [14:08:23]Write to MH i2c: D8 00 00 08 12 F1 [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: D8 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: D8 01 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: D8 01 00 08 12 00 F2 [14:08:23]int [14:08:23]Write to MH i2c: 01 00 00 09 12 1B [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:24]Read from MH i2c: 01 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: 01 07 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: 01 07 00 09 12 00 48 00 00 00 3C 00 A6 [14:08:24]state=2 [14:08:24]Key pressed [14:08:24]int [14:08:24]Write to MH i2c: 01 00 00 0A 12 1C [14:08:24]*** FLAG_PRN_KEY reset [14:08:24]Write i2c OK [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: 01 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: 01 07 00 [14:08:24]MH_I2C_Read... [14:08:24]Read from MH i2c: 01 07 00 0A 12 00 00 00 00 00 FD 0F 2F [14:08:24]state=2 [14:08:24]Stop feed [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 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10036318+1714126687=1724163005 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 BE A3 C4 66 5F 7F 2B 66 F9 [14:10:06]Current date/time: 20.08.2024 14:10 [14:10:06]FM_Init [14:10:06]wFMConnect [14:10:06]MH_SAM_On [14:10:06]Write to MH i2c: E0 00 00 08 00 E7 [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_init finished! [14:10:06]*** atr: [14:10:06]*** 0F 3B D5 18 FF 81 91 FE [14:10:06]*** 1F C3 80 73 C8 21 10 0A [14:10:06]*** 00 00 00 00 00 00 00 00 [14:10:06]*** 00 00 00 00 00 00 00 00 [14:10:06]*** 00 00 00 00 00 00 00 00 [14:10:06]*** 00 00 00 00 00 00 00 00 [14:10:06]*** 00 00 00 00 00 00 00 00 [14:10:06]*** 00 00 00 00 00 00 00 00 [14:10:06]Read from MH i2c: E0 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E0 10 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [14:10:06]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:10:06]wFMCommunicate request_size=10 [14:10:06]MH_SAM_APDU [14:10:06]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:10:06]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:10:06]Read from MH i2c: E2 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 03 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:10:06]RAPDU: 90 00 [14:10:06]wFMCommunicate OK [14:10:06]wFMCommunicate request_size=4 [14:10:06]MH_SAM_APDU [14:10:06]CAPDU: 80 11 00 00 [14:10:06]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:06]Read from MH i2c: E2 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 17 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [14:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:10:06]wFMCommunicate OK [14:10:06]Detected FM SN is 0000000000871776 [14:10:06]Stored FM SN is 0000000000871776 [14:10:06]wFMCommunicate request_size=9 [14:10:06]MH_SAM_APDU [14:10:06]CAPDU: 80 16 00 00 04 3F B1 00 00 [14:10:06]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:10:06]Read from MH i2c: E2 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 03 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:10:06]RAPDU: 90 00 [14:10:06]wFMCommunicate OK [14:10:06]FM PIN OK [14:10:06]wFMCommunicate request_size=8 [14:10:06]MH_SAM_APDU [14:10:06]CAPDU: 80 14 04 00 03 02 00 01 [14:10:06]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:10:06]Read from MH i2c: E2 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 03 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:10:06]RAPDU: 90 00 [14:10:06]wFMCommunicate OK [14:10:06]wFMCommunicate request_size=13 [14:10:06]MH_SAM_APDU [14:10:06]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:10:06]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:10:06]Read from MH i2c: E2 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 03 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:10:06]RAPDU: 90 00 [14:10:06]wFMCommunicate OK [14:10:06]wFMCommunicate request_size=4 [14:10:06]MH_SAM_APDU [14:10:06]CAPDU: 80 11 00 00 [14:10:06]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:06]Read from MH i2c: E2 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 17 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [14:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:10:06]wFMCommunicate OK [14:10:06]DocumentArchiveInit [14:10:06]Start Httpd... [14:10:06]Httpd thread 3067469156 created [14:10:06]Write to MH i2c: 01 00 00 0F 00 0F [14:10:06]Write i2c OK [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: 01 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: 01 07 00 [14:10:06]MH_I2C_Read... [14:10:06]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:10:06]MH Int Process started [14:10:06]Allocated Socket 8 [14:10:06]Bind OK [14:10:06]Listen OK [14:10:06]httpd running on port 8080 [14:10:06]Waiting for new connection... [14:10:06]OFD Sender: No OFD packet to send [14:10:08]accept exits with 9 [14:10:08]New connection [14:10:08]New thread 3067182436 created [14:10:08]Waiting for new connection... [14:10:08] Sock 9.Parse request [14:10:08]Sock 9.Check first char [14:10:08]Sock 9.First char is OK [14:10:08]request: POST /json_proto HTTP/1.0 [14:10:08]Method: POST [14:10:08]URL: /json_proto [14:10:08]Method is POST - this is cgi request [14:10:08]url: /json_proto [14:10:08]query_string will be loaded in cgi processing [14:10:08]execute_cgi json_proto POST (null) [14:10:08]execute_cgi path=json_proto method=POST [14:10:08]POST find Content-Length [14:10:08]Host: 172.17.45.67:8080 [14:10:08]Content-Length: 215 [14:10:08]Content-Type: application/json [14:10:08] [14:10:08]POST finish read [14:10:08]Found Content-Length = 215 [14:10:08]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" ] } } [14:10:08]execute_script... [14:10:08]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" ] } } [14:10:08]POST & json_proto [14:10:08]process_json_proto [14:10:08]json parsed OK: [14:10:08]protocol is kg_v1.0 [14:10:08]action value=get_value [14:10:08]process_action get_value [14:10:08]cmd_get_value [14:10:08]process_action get_value done [14:10:08]requested_data is exist [14:10:08]produce_requested_data [14:10:08]requested_item kkm.sn is exist - process it [14:10:08]requested_item kkm.ver is exist - process it [14:10:08]requested_item fm.sn is exist - process it [14:10:08]wFMCommunicate request_size=4 [14:10:08]MH_SAM_APDU [14:10:08]CAPDU: 80 11 00 00 [14:10:08]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:10:08]Write i2c OK [14:10:08]MH_I2C_Read... [14:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:08]Read from MH i2c: E2 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 17 00 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [14:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:10:08]wFMCommunicate OK [14:10:08]requested_item fd.num is exist - process it [14:10:08]SAM_PROTO_GetFieldsCounters [14:10:08]wFMCommunicate request_size=4 [14:10:08]MH_SAM_APDU [14:10:08]CAPDU: 80 13 00 00 [14:10:08]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:10:08]Write i2c OK [14:10:08]MH_I2C_Read... [14:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:08]Read from MH i2c: E2 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 62 00 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [14:10:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:08]wFMCommunicate OK [14:10:08]SAM_PROTO_GetFieldsCounters done [14:10:08]requested_item shift.num is exist - process it [14:10:08]requested_item shift.opened is exist - process it [14:10:08]req_shift_opened [14:10:08]FM_GetShiftState [14:10:08]SAM_PROTO_GetShiftState [14:10:08]wFMCommunicate request_size=4 [14:10:08]MH_SAM_APDU [14:10:08]CAPDU: 80 13 01 00 [14:10:08]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:10:08]Write i2c OK [14:10:08]MH_I2C_Read... [14:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:08]Read from MH i2c: E2 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 0E 00 [14:10:08]MH_I2C_Read... [14:10:08]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 20 [14:10:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:10:08]wFMCommunicate OK [14:10:08]SAM_PROTO_GetShiftState done [14:10:08]FM_GetShiftState done [14:10:08]req_shift_opened done [14:10:08]requested_item shift.open_date is exist - process it [14:10:08]req_shift_open_date [14:10:08]req_shift_open_date done [14:10:08]produce_requested_data done [14:10:08]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139733,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:10:08]process_action_free get_value [14:10:08]json_value_free [14:10:08]json_value_free done [14:10:08]process_json_proto returns [14:10:08]Send response to host [14:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139733,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:10:08]free response buf [14:10:08]execute_script done [14:10:08]execute_script returns [14:10:08]free content buf [14:10:08]Sock 9.Close socket [14:10:08]Sock 9.Thread stoped [14:10:08]accept exits with 6 [14:10:08]New connection [14:10:08]New thread 3067039076 created [14:10:08]Thread 3067182436 joined [14:10:08]Waiting for new connection... [14:10:08] Sock 6.Parse request [14:10:08]Sock 6.Check first char [14:10:08]Sock 6.First char is OK [14:10:08]request: POST /json_proto HTTP/1.0 [14:10:08]Method: POST [14:10:08]URL: /json_proto [14:10:08]Method is POST - this is cgi request [14:10:08]url: /json_proto [14:10:08]query_string will be loaded in cgi processing [14:10:08]execute_cgi json_proto POST (null) [14:10:08]execute_cgi path=json_proto method=POST [14:10:08]POST find Content-Length [14:10:08]Host: 172.17.45.67:8080 [14:10:08]Content-Length: 331 [14:10:08]Content-Type: application/json [14:10:08] [14:10:08]POST finish read [14:10:08]Found Content-Length = 331 [14:10:08]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" ] } } [14:10:08]execute_script... [14:10:08]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" ] } } [14:10:08]POST & json_proto [14:10:08]process_json_proto [14:10:08]json parsed OK: [14:10:08]protocol is kg_v1.0 [14:10:08]action value=get_value [14:10:08]process_action get_value [14:10:08]cmd_get_value [14:10:08]process_action get_value done [14:10:08]requested_data is exist [14:10:08]produce_requested_data [14:10:08]requested_item fm.sale.total is exist - process it [14:10:08]SAM_PROTO_GetFMData [14:10:08]wFMCommunicate request_size=4 [14:10:08]MH_SAM_APDU [14:10:08]CAPDU: 80 13 03 00 [14:10:08]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:10:09]Read from MH i2c: E2 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 FD 00 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 4A 1E 02 00 69 04 A3 00 6F 04 04 00 C9 1D 02 00 B1 04 05 00 2B 53 04 3B 02 70 04 05 00 04 85 D9 F0 01 72 04 04 00 27 CE 2A 4A 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 25 D5 AA 3C 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 2A 1D 0E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 0D [14:10:09]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4A 1E 02 00 69 04 A3 00 6F 04 04 00 C9 1D 02 00 B1 04 05 00 2B 53 04 3B 02 70 04 05 00 04 85 D9 F0 01 72 04 04 00 27 CE 2A 4A 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 25 D5 AA 3C 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 2A 1D 0E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [14:10:09]wFMCommunicate OK [14:10:09]wFMCommunicate request_size=4 [14:10:09]MH_SAM_APDU [14:10:09]CAPDU: 80 17 00 00 [14:10:09]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:09]Read from MH i2c: E2 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 FD 00 [14:10:09]MH_I2C_Read... [14:10:09]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 99 [14:10:09]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [14:10:09]wFMCommunicate OK [14:10:09]wFMCommunicate request_size=4 [14:10:09]MH_SAM_APDU [14:10:09]CAPDU: 80 17 00 00 [14:10:09]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:10:09]Write i2c OK [14:10:09]MH_I2C_Read... [14:10:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 FD 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [14:10:10]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 17 00 00 [14:10:10]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 FD 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [14:10:10]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [14:10:10]wFMCommunicate OK [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 17 00 00 [14:10:10]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [14:10:10]Read from MH i2c: E2 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 E1 00 [14:10:10]MH_I2C_Read... [14:10:10]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [14:10:10]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:10:10]wFMCommunicate OK [14:10:10]SAM_PROTO_GetFMData done [14:10:10]requested_item fm.sale_refund.total is exist - process it [14:10:10]requested_item fm.buy.total is exist - process it [14:10:10]requested_item shift.sale.total is exist - process it [14:10:10]SAM_PROTO_GetShiftData [14:10:10]wFMCommunicate request_size=4 [14:10:10]MH_SAM_APDU [14:10:10]CAPDU: 80 13 02 00 [14:10:10]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:10:10]Write i2c OK [14:10:10]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 FD 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 4C E2 BC 70 04 03 00 FC 9E AF 72 04 03 00 50 43 0D 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 14 11 14 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 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 D5 [14:10:11]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 4C E2 BC 70 04 03 00 FC 9E AF 72 04 03 00 50 43 0D 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 14 11 14 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 1C AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:10:11]wFMCommunicate OK [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 17 00 00 [14:10:11]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 FD 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [14:10:11]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [14:10:11]wFMCommunicate OK [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 17 00 00 [14:10:11]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 FD 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [14:10:11]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [14:10:11]wFMCommunicate OK [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 17 00 00 [14:10:11]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:10:11]OFD Sender: No OFD packet to send [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 FD 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [14:10:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [14:10:12]wFMCommunicate OK [14:10:12]wFMCommunicate request_size=4 [14:10:12]MH_SAM_APDU [14:10:12]CAPDU: 80 17 00 00 [14:10:12]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 CC 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [14:10:12]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:10:12]wFMCommunicate OK [14:10:12]SAM_PROTO_GetShiftData done [14:10:12]requested_item shift.sale.total_cash is exist - process it [14:10:12]requested_item shift.sale_refund.total is exist - process it [14:10:12]requested_item shift.sale_refund.total_cash is exist - process it [14:10:12]requested_item shift.buy.total is exist - process it [14:10:12]requested_item shift.buy.total_cash is exist - process it [14:10:12]produce_requested_data done [14:10:12]produce_requested_data return {"fm.sale.total":95800737.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":123787.00,"shift.sale.total_cash":115095.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} [14:10:12]process_action_free get_value [14:10:12]json_value_free [14:10:12]json_value_free done [14:10:12]process_json_proto returns [14:10:12]Send response to host [14:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95800737.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":123787.00,"shift.sale.total_cash":115095.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}}} [14:10:12]free response buf [14:10:12]execute_script done [14:10:12]execute_script returns [14:10:12]free content buf [14:10:12]Sock 6.Close socket [14:10:12]Sock 6.Thread stoped [14:10:12]accept exits with 9 [14:10:12]New connection [14:10:12]New thread 3067182436 created [14:10:12]Thread 3067039076 joined [14:10:12]Waiting for new connection... [14:10:12] Sock 9.Parse request [14:10:12]Sock 9.Check first char [14:10:12]Sock 9.First char is OK [14:10:12]request: POST /json_proto HTTP/1.0 [14:10:12]Method: POST [14:10:12]URL: /json_proto [14:10:12]Method is POST - this is cgi request [14:10:12]url: /json_proto [14:10:12]query_string will be loaded in cgi processing [14:10:12]execute_cgi json_proto POST (null) [14:10:12]execute_cgi path=json_proto method=POST [14:10:12]POST find Content-Length [14:10:12]Host: 172.17.45.67:8080 [14:10:12]Content-Length: 144 [14:10:12]Content-Type: application/json [14:10:12] [14:10:12]POST finish read [14:10:12]Found Content-Length = 144 [14:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:10:12]execute_script... [14:10:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:10:12]POST & json_proto [14:10:12]process_json_proto [14:10:12]json parsed OK: [14:10:12]protocol is kg_v1.0 [14:10:12]action value=print_doc [14:10:12]process_action print_doc [14:10:12]ExternCall_PrintAddStr [14:10:12]wPrintStart [14:10:12]Write to MH i2c: 01 00 00 1D 00 1D [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: 01 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: 01 07 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [14:10:12]RasterBufferAndPrint [14:10:12]line Счет N : (1)593580 [14:10:12]line ИНН: 02508201610067 [14:10:12]line Контрольно-Кассовый Чек [14:10:12]line ПРОДАЖА [14:10:12]line ТРК (МРК, ГНК) : 42 [14:10:12]line Товар: 2710124130 [14:10:12]line Аи-92-К-5 [14:10:12]line 7.380 * 67.80 [14:10:12]line = 500.36 [14:10:12]line НДС 12% НСП 1% [14:10:12]line > о реализуемом товаре [14:10:12]line ОКРУГЛЕНИЕ: -0.36 [14:10:12]line ИТОГО: 500.00 [14:10:12]line Внесено: 500.00 [14:10:12]line СДАЧА: 0.00 [14:10:12]line НСП 1% : 4.43 [14:10:12]line НДС 12% : 53.14 [14:10:12]line Наличными: 500.00 [14:10:12]line Безнал.: 0.00 [14:10:12]line Место: АЗС № 136 "Партнер Нефть" [14:10:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:10:12]line СНО: Общий режим [14:10:12]line Чек 205 20.08.2024 14:07 [14:10:12]line Смена: 453 ФФД: 1.0 [14:10:12]line ЗНМ: 0300000067 [14:10:12]line РНМ: 0000000000092569 [14:10:12]line Версия ККМ: 001 [14:10:12]line ФМ: 0000000000871776 [14:10:12]line ФД: 139733 [14:10:12]line ФПД: 10160544459033 [14:10:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T140712&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139733&fm=10160544459033&tin=02508201610067®Number=0000000000092569&sum=50000 [14:10:12]written 0, free lines is 4095 [14:10:13]Write to MH i2c: 01 00 00 48 00 48 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: 01 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: 01 07 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D3 0C 2E [14:10:13]RasterBufferAndPrint [14:10:13]line [14:10:13]line [14:10:13]line [14:10:13]line [14:10:13]line [14:10:13]written 0, free lines is 3299 [14:10:13]MH_Cut [14:10:13]Write to MH i2c: D1 01 00 4F 00 01 21 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: D1 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: D1 01 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: D1 01 00 4F 00 00 20 [14:10:13]Write to MH i2c: 01 00 00 50 00 50 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]*** Cut start [14:10:13]*** Partial cut [14:10:13]*** CUTSNS_PIN = 1 [14:10:13]*** CUTSNS_PIN = 0 [14:10:13]*** Brake cut motor [14:10:14]Read from MH i2c: 01 [14:10:14]MH_I2C_Read... [14:10:14]*** Stop cut motor [14:10:14]*** Cut end [14:10:14]Read from MH i2c: 01 07 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [14:10:14]process_action print_doc done [14:10:14]requested_data is exist [14:10:14]produce_requested_data [14:10:14]produce_requested_data return (null) [14:10:14]process_action_free print_doc [14:10:14]json_value_free [14:10:14]json_value_free done [14:10:14]process_json_proto returns [14:10:14]Send response to host [14:10:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:10:14]free response buf [14:10:14]execute_script done [14:10:14]execute_script returns [14:10:14]free content buf [14:10:14]Sock 9.Close socket [14:10:14]Sock 9.Thread stoped [14:10:14]accept exits with 6 [14:10:14]New connection [14:10:14]New thread 3067039076 created [14:10:14]Thread 3067182436 joined [14:10:14]Waiting for new connection... [14:10:14] Sock 6.Parse request [14:10:14]Sock 6.Check first char [14:10:14]Sock 6.First char is OK [14:10:14]request: POST /json_proto HTTP/1.0 [14:10:14]Method: POST [14:10:14]URL: /json_proto [14:10:14]Method is POST - this is cgi request [14:10:14]url: /json_proto [14:10:14]query_string will be loaded in cgi processing [14:10:14]execute_cgi json_proto POST (null) [14:10:14]execute_cgi path=json_proto method=POST [14:10:14]POST find Content-Length [14:10:14]Host: 172.17.45.67:8080 [14:10:14]Content-Length: 678 [14:10:14]Content-Type: application/json [14:10:14] [14:10:14]POST finish read [14:10:14]Found Content-Length = 678 [14:10:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:14]execute_script... [14:10:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:14]POST & json_proto [14:10:14]process_json_proto [14:10:14]json parsed OK: [14:10:14]protocol is kg_v1.0 [14:10:14]action value=close_receipt [14:10:14]process_action close_receipt [14:10:14]cmd_close_receipt [14:10:14]MH_GetDate [14:10:14]Write to MH i2c: F0 00 00 51 00 40 [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: F0 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: F0 09 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: F0 09 00 51 00 00 C6 A3 C4 66 5F 7F 2B 66 4B [14:10:14]GetLastDocTimeStamp 1724162832 [14:10:14]current date 1724163014 [14:10:14]FM_GetShiftState [14:10:14]SAM_PROTO_GetShiftState [14:10:14]wFMCommunicate request_size=4 [14:10:14]MH_SAM_APDU [14:10:14]CAPDU: 80 13 01 00 [14:10:14]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:14]Read from MH i2c: E2 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 0E 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 60 [14:10:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:10:14]wFMCommunicate OK [14:10:14]SAM_PROTO_GetShiftState done [14:10:14]FM_GetShiftState done [14:10:14]opened in 1724113785 [14:10:14]opened+sec_in_day 1724200185 [14:10:14]quantity*price = 70037 [14:10:14]sum+1 = 70038 [14:10:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 206 20.08.2024 14:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139734 ФПД: 259440231749449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T141014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139734&fm=259440231749449&tin=02508201610067®Number=0000000000092569&sum=70000 [14:10:15]StoreToDocumentArchive [14:10:15]shift 453 fd 139734 [14:10:15]save to /storage/0453/doc_00139734 [14:10:15]save last doc name /storage/0453/doc_00139734 to /storage/kkm_last_doc_name [14:10:15]save OK [14:10:15]Clear old archive folders... [14:10:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:15]tlvbuf is 01696330 [14:10:15]SAM_PROTO_ClearQueue [14:10:15]wFMCommunicate request_size=4 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 09 00 00 [14:10:15]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [14:10:15]RAPDU: 90 00 [14:10:15]wFMCommunicate OK [14:10:15]SAM_PROTO_ClearQueue done [14:10:15]KKMCreateOFDPacket [14:10:15]OFDProtocolAddRootSTLVToBuf [14:10:15]FM_MakeSignedData [14:10:15]FM_MakeSignedData [14:10:15]SAM_PROTO_SignData [14:10:15]wFMCommunicate request_size=4 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 0D 01 02 [14:10:15]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [14:10:15]RAPDU: 90 00 [14:10:15]wFMCommunicate OK [14:10:15]wFMCommunicate request_size=255 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C6 A3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 21 02 00 35 04 06 00 EB [14:10:15]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C6 A3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 21 02 00 35 04 06 00 EB 00 00 54 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:16]Read from MH i2c: E2 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 03 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [14:10:16]RAPDU: 90 00 [14:10:16]wFMCommunicate OK [14:10:16]wFMCommunicate request_size=10 [14:10:16]MH_SAM_APDU [14:10:16]CAPDU: 80 0D 02 02 05 F5 A2 DA 97 49 [14:10:16]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 F5 A2 DA 97 49 00 00 37 [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:16]Read from MH i2c: E2 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 03 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [14:10:16]RAPDU: 90 00 [14:10:16]wFMCommunicate OK [14:10:16]wFMCommunicate request_size=4 [14:10:16]MH_SAM_APDU [14:10:16]CAPDU: 80 0D 03 02 [14:10:16]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:16]Read from MH i2c: E2 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 0B 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 0B 00 63 00 00 0D F9 C1 75 FD F9 69 86 90 00 00 [14:10:16]RAPDU: 0D F9 C1 75 FD F9 69 86 90 00 [14:10:16]wFMCommunicate OK [14:10:16]SAM_PROTO_SignData done [14:10:16]FM_MakeSignedData done [14:10:16]CreateOFDProtocolMessage [14:10:16]wFMCommunicate request_size=4 [14:10:16]MH_SAM_APDU [14:10:16]CAPDU: 80 11 00 00 [14:10:16]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:16]Read from MH i2c: E2 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 17 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [14:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:10:16]wFMCommunicate OK [14:10:16]CreateOFDProtocolMessage done [14:10:16]OFDSenderStorePacket 139734 [14:10:16]StoreOFDPacket docnum=139734 [14:10:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 E7 07 01 69 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C6 A3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 21 02 00 35 04 06 00 EB F5 A2 DA 97 49 0D F9 C1 75 FD F9 69 86 [14:10:16]CheckFolder [14:10:16]dirname=/storage/ofd_packets [14:10:16]CheckFolder done [14:10:16]ProducePacketName [14:10:16]name=ofd_packets/00139734 [14:10:16]NVStorageSaveData ofd_packets/00139734 [14:10:16]File name is /storage/ofd_packets/00139734 [14:10:16]Write 301 bytes [14:10:16]NVStorageSaveData done [14:10:16]OFDSenderStorePacket done [14:10:16]KKMCreateOFDPacket done [14:10:16]NVStorageSaveData kkm_last_timestamp [14:10:16]File name is /storage/kkm_last_timestamp [14:10:16]Write 4 bytes [14:10:16]NVStorageSaveData done [14:10:16]ExternCall_PrintAddStr [14:10:16]wPrintStart [14:10:16]Write to MH i2c: 01 00 00 65 00 65 [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: 01 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: 01 07 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [14:10:16]RasterBufferAndPrint [14:10:16]line Счет N : (1)593581 [14:10:16]line ИНН: 02508201610067 [14:10:16]line Контрольно-Кассовый Чек [14:10:16]line ПРОДАЖА [14:10:16]line ТРК (МРК, ГНК) : 52 [14:10:16]line Товар: 2710124130 [14:10:16]line Аи-92-К-5 [14:10:16]line 10.330 * 67.80 [14:10:16]line = 700.37 [14:10:16]line НДС 12% НСП 1% [14:10:16]line > о реализуемом товаре [14:10:16]line ОКРУГЛЕНИЕ: -0.37 [14:10:16]line ИТОГО: 700.00 [14:10:16]line Внесено: 700.00 [14:10:16]line СДАЧА: 0.00 [14:10:16]line НСП 1% : 6.20 [14:10:16]line НДС 12% : 74.38 [14:10:16]line Наличными: 700.00 [14:10:16]line Безнал.: 0.00 [14:10:16]line Место: АЗС № 136 "Партнер Нефть" [14:10:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:10:16]line СНО: Общий режим [14:10:16]line Чек 206 20.08.2024 14:10 [14:10:16]line Смена: 453 ФФД: 1.0 [14:10:16]line ЗНМ: 0300000067 [14:10:16]line РНМ: 0000000000092569 [14:10:16]line Версия ККМ: 001 [14:10:16]line ФМ: 0000000000871776 [14:10:16]line ФД: 139734 [14:10:16]line ФПД: 259440231749449 [14:10:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T141014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139734&fm=259440231749449&tin=02508201610067®Number=0000000000092569&sum=70000 [14:10:16]OFD Sender: Processing packet 139734 [packets to send 137, broken 136] [14:10:16]ProducePacketName [14:10:16]name=ofd_packets/00139734 [14:10:16]OFD Sender: To server: pG, [14:10:16]CommunicateWithHost lk.salyk.kg:30040 [14:10:16]ConnectInit lk.salyk.kg [14:10:16]written 0, free lines is 4095 [14:10:16]Connected sock=7 [14:10:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 E7 07 01 69 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C6 A3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 21 02 00 35 04 06 00 EB F5 A2 DA 97 49 0D F9 C1 75 FD F9 69 86 [14:10:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5B 6A 47 00 D6 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 21 02 00 F4 03 04 00 59 4A C4 66 B6 04 01 00 00 8B 51 F7 F0 5E 56 AB 49 [14:10:17]CommunicateWithHost err = 0 [14:10:17]CheckOFDResponse [14:10:17]1017 (14) - 77093643461234 [14:10:17]1041 (16) - 0000000000871776 [14:10:17]1040 (4) - 139734 [14:10:17]1012 (4) - 20.08.2024 07:48 [14:10:17]1206 (1) - 0 [14:10:17]OFD Sender: Remove packet 139734 [14:10:17]ProducePacketName [14:10:17]name=ofd_packets/00139734 [14:10:17]NVStorageDeleteData [14:10:17]Write to MH i2c: 01 00 00 90 00 90 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 07 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 40 0D E4 [14:10:17]RasterBufferAndPrint [14:10:17]line [14:10:17]line [14:10:17]line [14:10:17]line [14:10:17]line [14:10:17]written 0, free lines is 3413 [14:10:17]MH_Cut [14:10:17]Write to MH i2c: D1 01 00 97 00 01 69 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: D1 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: D1 01 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: D1 01 00 97 00 00 68 [14:10:17]Write to MH i2c: 01 00 00 98 00 98 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]OFD Sender: No OFD packet to send [14:10:17]*** Cut start [14:10:17]*** Partial cut [14:10:17]*** CUTSNS_PIN = 1 [14:10:17]*** CUTSNS_PIN = 0 [14:10:18]*** Brake cut motor [14:10:18]Read from MH i2c: 01 [14:10:18]MH_I2C_Read... [14:10:18]*** Stop cut motor [14:10:18]*** Cut end [14:10:18]Read from MH i2c: 01 07 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [14:10:18]process_action close_receipt done [14:10:18]requested_data is exist [14:10:18]produce_requested_data [14:10:18]requested_item fm.sn is exist - process it [14:10:18]wFMCommunicate request_size=4 [14:10:18]MH_SAM_APDU [14:10:18]CAPDU: 80 11 00 00 [14:10:18]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 17 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [14:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:10:18]wFMCommunicate OK [14:10:18]requested_item fd.num is exist - process it [14:10:18]SAM_PROTO_GetFieldsCounters [14:10:18]wFMCommunicate request_size=4 [14:10:18]MH_SAM_APDU [14:10:18]CAPDU: 80 13 00 00 [14:10:18]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 62 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [14:10:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:18]wFMCommunicate OK [14:10:18]SAM_PROTO_GetFieldsCounters done [14:10:18]requested_item shift.num is exist - process it [14:10:18]requested_item shift.opened is exist - process it [14:10:18]req_shift_opened [14:10:18]FM_GetShiftState [14:10:18]SAM_PROTO_GetShiftState [14:10:18]wFMCommunicate request_size=4 [14:10:18]MH_SAM_APDU [14:10:18]CAPDU: 80 13 01 00 [14:10:18]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 0E 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A9 [14:10:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:10:18]wFMCommunicate OK [14:10:18]SAM_PROTO_GetShiftState done [14:10:18]FM_GetShiftState done [14:10:18]req_shift_opened done [14:10:18]requested_item shift.open_date is exist - process it [14:10:18]req_shift_open_date [14:10:18]req_shift_open_date done [14:10:18]produce_requested_data done [14:10:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139734,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:10:18]process_action_free close_receipt [14:10:18]json_value_free [14:10:18]json_value_free done [14:10:18]process_json_proto returns [14:10:18]Send response to host [14:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139734,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:10:18]free response buf [14:10:18]execute_script done [14:10:18]execute_script returns [14:10:18]free content buf [14:10:18]Sock 6.Close socket [14:10:18]Sock 6.Thread stoped [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]accept exits with 9 [14:11:27]New connection [14:11:27]New thread 3067182436 created [14:11:27]Thread 3067039076 joined [14:11:27]Waiting for new connection... [14:11:27] Sock 9.Parse request [14:11:27]Sock 9.Check first char [14:11:27]Sock 9.First char is OK [14:11:27]request: POST /json_proto HTTP/1.0 [14:11:27]Method: POST [14:11:27]URL: /json_proto [14:11:27]Method is POST - this is cgi request [14:11:27]url: /json_proto [14:11:27]query_string will be loaded in cgi processing [14:11:27]execute_cgi json_proto POST (null) [14:11:27]execute_cgi path=json_proto method=POST [14:11:27]POST find Content-Length [14:11:27]Host: 172.17.45.67:8080 [14:11:27]Content-Length: 682 [14:11:27]Content-Type: application/json [14:11:27] [14:11:27]POST finish read [14:11:27]Found Content-Length = 682 [14:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:27]execute_script... [14:11: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)593582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:27]POST & json_proto [14:11:27]process_json_proto [14:11:27]json parsed OK: [14:11:27]protocol is kg_v1.0 [14:11:27]action value=close_receipt [14:11:27]process_action close_receipt [14:11:27]cmd_close_receipt [14:11:27]MH_GetDate [14:11:27]Write to MH i2c: F0 00 00 9C 00 8B [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: F0 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: F0 09 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: F0 09 00 9C 00 00 0F A4 C4 66 5F 7F 2B 66 E0 [14:11:27]GetLastDocTimeStamp 1724163014 [14:11:27]current date 1724163087 [14:11:27]FM_GetShiftState [14:11:27]SAM_PROTO_GetShiftState [14:11:27]wFMCommunicate request_size=4 [14:11:27]MH_SAM_APDU [14:11:27]CAPDU: 80 13 01 00 [14:11:27]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:27]OFD Sender: No OFD packet to send [14:11:27]Read from MH i2c: E2 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 0E 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AB [14:11:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:11:27]wFMCommunicate OK [14:11:27]SAM_PROTO_GetShiftState done [14:11:27]FM_GetShiftState done [14:11:27]opened in 1724113785 [14:11:27]opened+sec_in_day 1724200185 [14:11:27]quantity*price = 100005 [14:11:27]sum+1 = 100006 [14:11:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 207 20.08.2024 14:11 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139735 ФПД: 136115029722253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T141127&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139735&fm=136115029722253&tin=02508201610067®Number=0000000000092569&sum=100000 [14:11:28]StoreToDocumentArchive [14:11:28]shift 453 fd 139735 [14:11:28]save to /storage/0453/doc_00139735 [14:11:28]save last doc name /storage/0453/doc_00139735 to /storage/kkm_last_doc_name [14:11:28]save OK [14:11:28]Clear old archive folders... [14:11:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:28]tlvbuf is 01697C50 [14:11:28]SAM_PROTO_ClearQueue [14:11:28]wFMCommunicate request_size=4 [14:11:28]MH_SAM_APDU [14:11:28]CAPDU: 80 09 00 00 [14:11:28]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [14:11:28]Write i2c OK [14:11:28]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [14:11:29]RAPDU: 90 00 [14:11:29]wFMCommunicate OK [14:11:29]SAM_PROTO_ClearQueue done [14:11:29]KKMCreateOFDPacket [14:11:29]OFDProtocolAddRootSTLVToBuf [14:11:29]FM_MakeSignedData [14:11:29]FM_MakeSignedData [14:11:29]SAM_PROTO_SignData [14:11:29]wFMCommunicate request_size=4 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 0D 01 02 [14:11:29]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [14:11:29]RAPDU: 90 00 [14:11:29]wFMCommunicate OK [14:11:29]wFMCommunicate request_size=255 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0F A4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 21 02 00 35 04 06 00 7B [14:11:29]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0F A4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 21 02 00 35 04 06 00 7B 00 00 23 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [14:11:29]RAPDU: 90 00 [14:11:29]wFMCommunicate OK [14:11:29]wFMCommunicate request_size=10 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 0D 02 02 05 CB BF FE C4 8D [14:11:29]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 CB BF FE C4 8D 00 00 0A [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [14:11:29]RAPDU: 90 00 [14:11:29]wFMCommunicate OK [14:11:29]wFMCommunicate request_size=4 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 0D 03 02 [14:11:29]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 0B 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 0B 00 AE 00 00 D3 6F 64 13 E6 D5 BA C9 90 00 21 [14:11:29]RAPDU: D3 6F 64 13 E6 D5 BA C9 90 00 [14:11:29]wFMCommunicate OK [14:11:29]SAM_PROTO_SignData done [14:11:29]FM_MakeSignedData done [14:11:29]CreateOFDProtocolMessage [14:11:29]wFMCommunicate request_size=4 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 11 00 00 [14:11:29]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 17 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [14:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:11:29]wFMCommunicate OK [14:11:29]CreateOFDProtocolMessage done [14:11:29]OFDSenderStorePacket 139735 [14:11:29]StoreOFDPacket docnum=139735 [14:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E5 47 07 01 4A 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0F A4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 21 02 00 35 04 06 00 7B CB BF FE C4 8D D3 6F 64 13 E6 D5 BA C9 [14:11:29]CheckFolder [14:11:29]dirname=/storage/ofd_packets [14:11:29]CheckFolder done [14:11:29]ProducePacketName [14:11:29]name=ofd_packets/00139735 [14:11:29]NVStorageSaveData ofd_packets/00139735 [14:11:29]File name is /storage/ofd_packets/00139735 [14:11:29]Write 301 bytes [14:11:29]NVStorageSaveData done [14:11:29]OFDSenderStorePacket done [14:11:29]KKMCreateOFDPacket done [14:11:29]NVStorageSaveData kkm_last_timestamp [14:11:29]File name is /storage/kkm_last_timestamp [14:11:29]Write 4 bytes [14:11:29]NVStorageSaveData done [14:11:29]ExternCall_PrintAddStr [14:11:29]wPrintStart [14:11:29]Write to MH i2c: 01 00 00 B0 00 B0 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: 01 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: 01 07 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [14:11:29]RasterBufferAndPrint [14:11:29]line Счет N : (1)593582 [14:11:29]line ИНН: 02508201610067 [14:11:29]line Контрольно-Кассовый Чек [14:11:29]line ПРОДАЖА [14:11:29]line ТРК (МРК, ГНК) : 52 [14:11:29]line Товар: 2710124130 [14:11:29]line Аи-92-К-5 [14:11:29]line 14.750 * 67.80 [14:11:29]line = 1000.05 [14:11:29]line НДС 12% НСП 1% [14:11:29]line > о реализуемом товаре [14:11:29]line ОКРУГЛЕНИЕ: -0.05 [14:11:29]line ИТОГО: 1000.00 [14:11:29]line Внесено: 1000.00 [14:11:29]line СДАЧА: 0.00 [14:11:29]line НСП 1% : 8.85 [14:11:29]line НДС 12% : 106.20 [14:11:29]line Наличными: 1000.00 [14:11:29]line Безнал.: 0.00 [14:11:29]line Место: АЗС № 136 "Партнер Нефть" [14:11:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:11:29]line СНО: Общий режим [14:11:29]line Чек 207 20.08.2024 14:11 [14:11:29]line Смена: 453 ФФД: 1.0 [14:11:29]line ЗНМ: 0300000067 [14:11:29]line РНМ: 0000000000092569 [14:11:29]line Версия ККМ: 001 [14:11:29]line ФМ: 0000000000871776 [14:11:29]line ФД: 139735 [14:11:29]line ФПД: 136115029722253 [14:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T141127&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139735&fm=136115029722253&tin=02508201610067®Number=0000000000092569&sum=100000 [14:11:29]OFD Sender: Processing packet 139735 [packets to send 137, broken 136] [14:11:29]ProducePacketName [14:11:29]name=ofd_packets/00139735 [14:11:29]OFD Sender: To server: pG, [14:11:29]CommunicateWithHost lk.salyk.kg:30040 [14:11:29]ConnectInit lk.salyk.kg [14:11:29]written 0, free lines is 4095 [14:11:29]Connected sock=10 [14:11:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E5 47 07 01 4A 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 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0F A4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 21 02 00 35 04 06 00 7B CB BF FE C4 8D D3 6F 64 13 E6 D5 BA C9 [14:11:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 27 E9 47 00 9F 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 21 02 00 F4 03 04 00 A3 4A C4 66 B6 04 01 00 00 E4 A5 E0 88 BE 86 9B 28 [14:11:30]CommunicateWithHost err = 0 [14:11:30]CheckOFDResponse [14:11:30]1017 (14) - 77093643461234 [14:11:30]1041 (16) - 0000000000871776 [14:11:30]1040 (4) - 139735 [14:11:30]1012 (4) - 20.08.2024 07:49 [14:11:30]1206 (1) - 0 [14:11:30]OFD Sender: Remove packet 139735 [14:11:30]ProducePacketName [14:11:30]name=ofd_packets/00139735 [14:11:30]NVStorageDeleteData [14:11:30]Write to MH i2c: 01 00 00 DB 00 DB [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: 01 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: 01 07 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 C7 0C B5 [14:11:30]RasterBufferAndPrint [14:11:30]line [14:11:30]line [14:11:30]line [14:11:30]line [14:11:30]line [14:11:30]written 0, free lines is 3277 [14:11:30]MH_Cut [14:11:30]Write to MH i2c: D1 01 00 E2 00 01 B4 [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: D1 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: D1 01 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: D1 01 00 E2 00 00 B3 [14:11:30]Write to MH i2c: 01 00 00 E3 00 E3 [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]OFD Sender: No OFD packet to send [14:11:31]*** Cut start [14:11:31]*** Partial cut [14:11:31]*** CUTSNS_PIN = 1 [14:11:31]*** CUTSNS_PIN = 0 [14:11:31]*** Brake cut motor [14:11:31]Read from MH i2c: 01 [14:11:31]MH_I2C_Read... [14:11:31]*** Stop cut motor [14:11:31]*** Cut end [14:11:31]Read from MH i2c: 01 07 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [14:11:31]process_action close_receipt done [14:11:31]requested_data is exist [14:11:31]produce_requested_data [14:11:31]requested_item fm.sn is exist - process it [14:11:31]wFMCommunicate request_size=4 [14:11:31]MH_SAM_APDU [14:11:31]CAPDU: 80 11 00 00 [14:11:31]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [14:11:31]Write i2c OK [14:11:31]MH_I2C_Read... [14:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:31]Read from MH i2c: E2 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 17 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [14:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:11:31]wFMCommunicate OK [14:11:31]requested_item fd.num is exist - process it [14:11:31]SAM_PROTO_GetFieldsCounters [14:11:31]wFMCommunicate request_size=4 [14:11:31]MH_SAM_APDU [14:11:31]CAPDU: 80 13 00 00 [14:11:31]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [14:11:31]Write i2c OK [14:11:31]MH_I2C_Read... [14:11:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:31]Read from MH i2c: E2 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 62 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [14:11:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:31]wFMCommunicate OK [14:11:31]SAM_PROTO_GetFieldsCounters done [14:11:31]requested_item shift.num is exist - process it [14:11:31]requested_item shift.opened is exist - process it [14:11:31]req_shift_opened [14:11:31]FM_GetShiftState [14:11:31]SAM_PROTO_GetShiftState [14:11:31]wFMCommunicate request_size=4 [14:11:31]MH_SAM_APDU [14:11:31]CAPDU: 80 13 01 00 [14:11:31]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [14:11:31]Write i2c OK [14:11:31]MH_I2C_Read... [14:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:31]Read from MH i2c: E2 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 0E 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F4 [14:11:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:11:31]wFMCommunicate OK [14:11:31]SAM_PROTO_GetShiftState done [14:11:31]FM_GetShiftState done [14:11:31]req_shift_opened done [14:11:31]requested_item shift.open_date is exist - process it [14:11:31]req_shift_open_date [14:11:31]req_shift_open_date done [14:11:31]produce_requested_data done [14:11:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139735,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:11:31]process_action_free close_receipt [14:11:31]json_value_free [14:11:31]json_value_free done [14:11:31]process_json_proto returns [14:11:31]Send response to host [14:11:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139735,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:11:31]free response buf [14:11:31]execute_script done [14:11:31]execute_script returns [14:11:31]free content buf [14:11:31]Sock 9.Close socket [14:11:31]Sock 9.Thread stoped [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:37]accept exits with 7 [14:17:37]New connection [14:17:37]New thread 3067039076 created [14:17:37]Thread 3067182436 joined [14:17:37]Waiting for new connection... [14:17:37] Sock 7.Parse request [14:17:37]Sock 7.Check first char [14:17:37]Sock 7.First char is OK [14:17:37]request: POST /json_proto HTTP/1.0 [14:17:37]Method: POST [14:17:37]URL: /json_proto [14:17:37]Method is POST - this is cgi request [14:17:37]url: /json_proto [14:17:37]query_string will be loaded in cgi processing [14:17:37]execute_cgi json_proto POST (null) [14:17:37]execute_cgi path=json_proto method=POST [14:17:37]POST find Content-Length [14:17:37]Host: 172.17.45.67:8080 [14:17:37]Content-Length: 792 [14:17:37]Content-Type: application/json [14:17:37] [14:17:37]POST finish read [14:17:37]Found Content-Length = 792 [14:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:37]execute_script... [14:17: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)593584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:37]POST & json_proto [14:17:37]process_json_proto [14:17:37]json parsed OK: [14:17:37]protocol is kg_v1.0 [14:17:37]action value=close_receipt [14:17:37]process_action close_receipt [14:17:37]cmd_close_receipt [14:17:37]MH_GetDate [14:17:37]Write to MH i2c: F0 00 00 E7 00 D6 [14:17:37]Write i2c OK [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: F0 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: F0 09 00 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: F0 09 00 E7 00 00 81 A5 C4 66 5F 7F 2B 66 9E [14:17:37]GetLastDocTimeStamp 1724163087 [14:17:37]current date 1724163457 [14:17:37]FM_GetShiftState [14:17:37]SAM_PROTO_GetShiftState [14:17:37]wFMCommunicate request_size=4 [14:17:37]MH_SAM_APDU [14:17:37]CAPDU: 80 13 01 00 [14:17:37]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [14:17:37]Write i2c OK [14:17:37]MH_I2C_Read... [14:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:37]Read from MH i2c: E2 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: E2 0E 00 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F6 [14:17:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:17:37]wFMCommunicate OK [14:17:37]SAM_PROTO_GetShiftState done [14:17:37]FM_GetShiftState done [14:17:37]opened in 1724113785 [14:17:37]opened+sec_in_day 1724200185 [14:17:37]quantity*price = 0 [14:17:37]sum+1 = 1 [14:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 208 20.08.2024 14:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139736 ФПД: 244561429424624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T141737&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139736&fm=244561429424624&tin=02508201610067®Number=0000000000092569&sum=0 [14:17:38]StoreToDocumentArchive [14:17:38]shift 453 fd 139736 [14:17:38]save to /storage/0453/doc_00139736 [14:17:38]save last doc name /storage/0453/doc_00139736 to /storage/kkm_last_doc_name [14:17:38]save OK [14:17:38]Clear old archive folders... [14:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:38]tlvbuf is 016EA8A0 [14:17:38]SAM_PROTO_ClearQueue [14:17:38]wFMCommunicate request_size=4 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 09 00 00 [14:17:38]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [14:17:38]RAPDU: 90 00 [14:17:38]wFMCommunicate OK [14:17:38]SAM_PROTO_ClearQueue done [14:17:38]KKMCreateOFDPacket [14:17:38]OFDProtocolAddRootSTLVToBuf [14:17:38]FM_MakeSignedData [14:17:38]FM_MakeSignedData [14:17:38]SAM_PROTO_SignData [14:17:38]wFMCommunicate request_size=4 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 0D 01 02 [14:17:38]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [14:17:38]RAPDU: 90 00 [14:17:38]wFMCommunicate OK [14:17:38]wFMCommunicate request_size=255 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 81 A5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 21 02 00 35 04 06 00 DE [14:17:38]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 81 A5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 21 02 00 35 04 06 00 DE 00 00 0F [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [14:17:38]RAPDU: 90 00 [14:17:38]wFMCommunicate OK [14:17:38]wFMCommunicate request_size=10 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 0D 02 02 05 6D 65 20 69 F0 [14:17:38]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 6D 65 20 69 F0 00 00 C7 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [14:17:38]RAPDU: 90 00 [14:17:38]wFMCommunicate OK [14:17:38]wFMCommunicate request_size=4 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 0D 03 02 [14:17:38]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 0B 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 0B 00 F9 00 00 9B F5 C1 42 ED 62 6C F1 90 00 B4 [14:17:38]RAPDU: 9B F5 C1 42 ED 62 6C F1 90 00 [14:17:38]wFMCommunicate OK [14:17:38]SAM_PROTO_SignData done [14:17:38]FM_MakeSignedData done [14:17:38]CreateOFDProtocolMessage [14:17:38]wFMCommunicate request_size=4 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 11 00 00 [14:17:38]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 17 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [14:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:17:38]wFMCommunicate OK [14:17:38]CreateOFDProtocolMessage done [14:17:38]OFDSenderStorePacket 139736 [14:17:38]StoreOFDPacket docnum=139736 [14:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A7 71 07 01 1F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 81 A5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 21 02 00 35 04 06 00 DE 6D 65 20 69 F0 9B F5 C1 42 ED 62 6C F1 [14:17:38]CheckFolder [14:17:38]dirname=/storage/ofd_packets [14:17:38]CheckFolder done [14:17:38]ProducePacketName [14:17:38]name=ofd_packets/00139736 [14:17:38]NVStorageSaveData ofd_packets/00139736 [14:17:38]File name is /storage/ofd_packets/00139736 [14:17:38]Write 301 bytes [14:17:38]NVStorageSaveData done [14:17:38]OFDSenderStorePacket done [14:17:38]KKMCreateOFDPacket done [14:17:38]NVStorageSaveData kkm_last_timestamp [14:17:38]File name is /storage/kkm_last_timestamp [14:17:38]Write 4 bytes [14:17:38]NVStorageSaveData done [14:17:38]ExternCall_PrintAddStr [14:17:38]wPrintStart [14:17:38]Write to MH i2c: 01 00 00 FB 00 FB [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: 01 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: 01 07 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [14:17:38]RasterBufferAndPrint [14:17:38]line Счет N : (1)593584 [14:17:38]line ИНН: 02508201610067 [14:17:38]line Контрольно-Кассовый Чек [14:17:38]line ПРОДАЖА [14:17:38]line ТРК (МРК, ГНК) : 32 [14:17:38]line Товар: 2710124130 [14:17:38]line Аи-92-К-5 [14:17:38]line 28.000 * 0.00 [14:17:38]line = 0.00 [14:17:38]line НДС 12% НСП 1% [14:17:38]line > о реализуемом товаре [14:17:38]line ИТОГО: 0.00 [14:17:38]line НСП 1% : 0.00 [14:17:38]line НДС 12% : 0.00 [14:17:38]line Наличными: 0.00 [14:17:38]line Безнал.: 0.00 [14:17:38]line Место: АЗС № 136 "Партнер Нефть" [14:17:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:17:38]line СНО: Общий режим [14:17:38]line Чек 208 20.08.2024 14:17 [14:17:38]line Смена: 453 ФФД: 1.0 [14:17:38]line ЗНМ: 0300000067 [14:17:38]line РНМ: 0000000000092569 [14:17:38]line Версия ККМ: 001 [14:17:38]line Талоны: Топливная Карта [14:17:38]line 99761 [14:17:38]line ФМ: 0000000000871776 [14:17:38]line ФД: 139736 [14:17:38]line ФПД: 244561429424624 [14:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T141737&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139736&fm=244561429424624&tin=02508201610067®Number=0000000000092569&sum=0 [14:17:38]written 0, free lines is 4095 [14:17:38]OFD Sender: Processing packet 139736 [packets to send 137, broken 136] [14:17:38]ProducePacketName [14:17:38]name=ofd_packets/00139736 [14:17:38]OFD Sender: To server: pG, [14:17:38]CommunicateWithHost lk.salyk.kg:30040 [14:17:38]ConnectInit lk.salyk.kg [14:17:39]Connected sock=10 [14:17:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A7 71 07 01 1F BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 81 A5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 21 02 00 35 04 06 00 DE 6D 65 20 69 F0 9B F5 C1 42 ED 62 6C F1 [14:17:39]Write to MH i2c: 01 00 00 25 01 26 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 07 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 E2 0C 1B [14:17:39]RasterBufferAndPrint [14:17:39]line [14:17:39]line [14:17:39]line [14:17:39]line [14:17:39]line [14:17:39]written 0, free lines is 3305 [14:17:39]MH_Cut [14:17:39]Write to MH i2c: D1 01 00 2C 01 01 FF [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: D1 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: D1 01 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: D1 01 00 2C 01 00 FE [14:17:39]Write to MH i2c: 01 00 00 2D 01 2E [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 87 79 47 00 1B C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 21 02 00 F4 03 04 00 14 4C C4 66 B6 04 01 00 00 70 CE 2D 88 7F E5 50 26 [14:17:39]CommunicateWithHost err = 0 [14:17:39]CheckOFDResponse [14:17:39]1017 (14) - 77093643461234 [14:17:39]1041 (16) - 0000000000871776 [14:17:39]1040 (4) - 139736 [14:17:39]1012 (4) - 20.08.2024 07:56 [14:17:39]1206 (1) - 0 [14:17:39]OFD Sender: Remove packet 139736 [14:17:39]ProducePacketName [14:17:39]name=ofd_packets/00139736 [14:17:39]NVStorageDeleteData [14:17:39]OFD Sender: No OFD packet to send [14:17:40]*** Cut start [14:17:40]*** Partial cut [14:17:40]*** CUTSNS_PIN = 1 [14:17:40]*** CUTSNS_PIN = 0 [14:17:40]*** Brake cut motor [14:17:40]Read from MH i2c: 01 [14:17:40]MH_I2C_Read... [14:17:40]*** Stop cut motor [14:17:40]*** Cut end [14:17:40]Read from MH i2c: 01 07 00 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [14:17:40]process_action close_receipt done [14:17:40]requested_data is exist [14:17:40]produce_requested_data [14:17:40]requested_item fm.sn is exist - process it [14:17:40]wFMCommunicate request_size=4 [14:17:40]MH_SAM_APDU [14:17:40]CAPDU: 80 11 00 00 [14:17:40]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [14:17:40]Write i2c OK [14:17:40]MH_I2C_Read... [14:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:40]Read from MH i2c: E2 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: E2 17 00 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 00 [14:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:17:40]wFMCommunicate OK [14:17:40]requested_item fd.num is exist - process it [14:17:40]SAM_PROTO_GetFieldsCounters [14:17:40]wFMCommunicate request_size=4 [14:17:40]MH_SAM_APDU [14:17:40]CAPDU: 80 13 00 00 [14:17:40]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [14:17:40]Write i2c OK [14:17:40]MH_I2C_Read... [14:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:40]Read from MH i2c: E2 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: E2 62 00 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [14:17:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:40]wFMCommunicate OK [14:17:40]SAM_PROTO_GetFieldsCounters done [14:17:40]requested_item shift.num is exist - process it [14:17:40]requested_item shift.opened is exist - process it [14:17:40]req_shift_opened [14:17:40]FM_GetShiftState [14:17:40]SAM_PROTO_GetShiftState [14:17:40]wFMCommunicate request_size=4 [14:17:40]MH_SAM_APDU [14:17:40]CAPDU: 80 13 01 00 [14:17:40]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [14:17:40]Write i2c OK [14:17:40]MH_I2C_Read... [14:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:40]Read from MH i2c: E2 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: E2 0E 00 [14:17:40]MH_I2C_Read... [14:17:40]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3F [14:17:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:17:40]wFMCommunicate OK [14:17:40]SAM_PROTO_GetShiftState done [14:17:40]FM_GetShiftState done [14:17:40]req_shift_opened done [14:17:40]requested_item shift.open_date is exist - process it [14:17:40]req_shift_open_date [14:17:40]req_shift_open_date done [14:17:40]produce_requested_data done [14:17:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139736,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:17:40]process_action_free close_receipt [14:17:40]json_value_free [14:17:40]json_value_free done [14:17:40]process_json_proto returns [14:17:40]Send response to host [14:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139736,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:17:40]free response buf [14:17:40]execute_script done [14:17:40]execute_script returns [14:17:40]free content buf [14:17:40]Sock 7.Close socket [14:17:40]Sock 7.Thread stoped [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [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:01]accept exits with 9 [14:21:01]New connection [14:21:01]New thread 3067182436 created [14:21:01]Thread 3067039076 joined [14:21:01]Waiting for new connection... [14:21:01] Sock 9.Parse request [14:21:01]Sock 9.Check first char [14:21:01]Sock 9.First char is OK [14:21:01]request: POST /json_proto HTTP/1.0 [14:21:01]Method: POST [14:21:01]URL: /json_proto [14:21:01]Method is POST - this is cgi request [14:21:01]url: /json_proto [14:21:01]query_string will be loaded in cgi processing [14:21:01]execute_cgi json_proto POST (null) [14:21:01]execute_cgi path=json_proto method=POST [14:21:01]POST find Content-Length [14:21:01]Host: 172.17.45.67:8080 [14:21:01]Content-Length: 659 [14:21:01]Content-Type: application/json [14:21:01] [14:21:01]POST finish read [14:21:01]Found Content-Length = 659 [14:21:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:21:01]execute_script... [14:21: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)593586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:21:01]POST & json_proto [14:21:01]process_json_proto [14:21:01]json parsed OK: [14:21:01]protocol is kg_v1.0 [14:21:01]action value=close_receipt [14:21:01]process_action close_receipt [14:21:01]cmd_close_receipt [14:21:01]MH_GetDate [14:21:01]Write to MH i2c: F0 00 00 31 01 21 [14:21:01]Write i2c OK [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: F0 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: F0 09 00 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: F0 09 00 31 01 00 4D A6 C4 66 5F 7F 2B 66 B6 [14:21:01]GetLastDocTimeStamp 1724163457 [14:21:01]current date 1724163661 [14:21:01]FM_GetShiftState [14:21:01]SAM_PROTO_GetShiftState [14:21:01]wFMCommunicate request_size=4 [14:21:01]MH_SAM_APDU [14:21:01]CAPDU: 80 13 01 00 [14:21:01]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [14:21:01]Write i2c OK [14:21:01]MH_I2C_Read... [14:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:01]Read from MH i2c: E2 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: E2 0E 00 [14:21:01]MH_I2C_Read... [14:21:01]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 41 [14:21:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:21:01]wFMCommunicate OK [14:21:01]SAM_PROTO_GetShiftState done [14:21:01]FM_GetShiftState done [14:21:01]opened in 1724113785 [14:21:01]opened+sec_in_day 1724200185 [14:21:01]quantity*price = 70038 [14:21:01]sum+1 = 70039 [14:21:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 209 20.08.2024 14:21 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139737 ФПД: 269019608351901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T142101&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139737&fm=269019608351901&tin=02508201610067®Number=0000000000092569&sum=70000 [14:21:02]StoreToDocumentArchive [14:21:02]shift 453 fd 139737 [14:21:02]save to /storage/0453/doc_00139737 [14:21:02]save last doc name /storage/0453/doc_00139737 to /storage/kkm_last_doc_name [14:21:02]save OK [14:21:02]Clear old archive folders... [14:21:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:21:02]tlvbuf is 016987A0 [14:21:02]SAM_PROTO_ClearQueue [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 09 00 00 [14:21:02]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]SAM_PROTO_ClearQueue done [14:21:02]KKMCreateOFDPacket [14:21:02]OFDProtocolAddRootSTLVToBuf [14:21:02]FM_MakeSignedData [14:21:02]FM_MakeSignedData [14:21:02]SAM_PROTO_SignData [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 0D 01 02 [14:21:02]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]wFMCommunicate request_size=253 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 D1 00 00 00 F4 03 04 00 4D A6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 21 02 00 35 04 06 00 F4 AC 02 31 84 9D [14:21:02]Write to MH i2c: E2 00 01 41 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 D1 00 00 00 F4 03 04 00 4D A6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 21 02 00 35 04 06 00 F4 AC 02 31 84 9D 00 00 4A [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [14:21:02]RAPDU: 90 00 [14:21:02]wFMCommunicate OK [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 0D 03 02 [14:21:02]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 0B 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 0B 00 42 01 00 5F AF AD FB F2 79 BB 9D 90 00 38 [14:21:02]RAPDU: 5F AF AD FB F2 79 BB 9D 90 00 [14:21:02]wFMCommunicate OK [14:21:02]SAM_PROTO_SignData done [14:21:02]FM_MakeSignedData done [14:21:02]CreateOFDProtocolMessage [14:21:02]wFMCommunicate request_size=4 [14:21:02]MH_SAM_APDU [14:21:02]CAPDU: 80 11 00 00 [14:21:02]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:02]Read from MH i2c: E2 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 17 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [14:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:21:02]wFMCommunicate OK [14:21:02]CreateOFDProtocolMessage done [14:21:02]OFDSenderStorePacket 139737 [14:21:02]StoreOFDPacket docnum=139737 [14:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 D7 9A 00 01 CB A7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 D1 00 00 00 F4 03 04 00 4D A6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 21 02 00 35 04 06 00 F4 AC 02 31 84 9D 5F AF AD FB F2 79 BB 9D [14:21:02]CheckFolder [14:21:02]dirname=/storage/ofd_packets [14:21:02]CheckFolder done [14:21:02]ProducePacketName [14:21:02]name=ofd_packets/00139737 [14:21:02]NVStorageSaveData ofd_packets/00139737 [14:21:02]File name is /storage/ofd_packets/00139737 [14:21:02]Write 294 bytes [14:21:02]NVStorageSaveData done [14:21:02]OFDSenderStorePacket done [14:21:02]KKMCreateOFDPacket done [14:21:02]NVStorageSaveData kkm_last_timestamp [14:21:02]File name is /storage/kkm_last_timestamp [14:21:02]Write 4 bytes [14:21:02]NVStorageSaveData done [14:21:02]ExternCall_PrintAddStr [14:21:02]wPrintStart [14:21:02]Write to MH i2c: 01 00 00 44 01 45 [14:21:02]Write i2c OK [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: 01 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: 01 07 00 [14:21:02]MH_I2C_Read... [14:21:02]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [14:21:02]RasterBufferAndPrint [14:21:02]line Счет N : (1)593586 [14:21:02]line ИНН: 02508201610067 [14:21:02]line Контрольно-Кассовый Чек [14:21:02]line ПРОДАЖА [14:21:02]line ТРК (МРК, ГНК) : 53 [14:21:02]line Товар: 2710124130 [14:21:02]line SU-92 [14:21:02]line 10.180 * 68.80 [14:21:02]line = 700.38 [14:21:02]line НДС 12% НСП 1% [14:21:02]line > о реализуемом товаре [14:21:02]line ОКРУГЛЕНИЕ: -0.38 [14:21:02]line ИТОГО: 700.00 [14:21:02]line Внесено: 700.00 [14:21:02]line СДАЧА: 0.00 [14:21:02]line НСП 1% : 6.20 [14:21:02]line НДС 12% : 74.38 [14:21:02]line Наличными: 700.00 [14:21:02]line Безнал.: 0.00 [14:21:02]line Место: АЗС № 136 "Партнер Нефть" [14:21:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:21:02]line СНО: Общий режим [14:21:02]line Чек 209 20.08.2024 14:21 [14:21:02]line Смена: 453 ФФД: 1.0 [14:21:02]line ЗНМ: 0300000067 [14:21:02]line РНМ: 0000000000092569 [14:21:02]line Версия ККМ: 001 [14:21:02]line ФМ: 0000000000871776 [14:21:02]line ФД: 139737 [14:21:02]line ФПД: 269019608351901 [14:21:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T142101&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139737&fm=269019608351901&tin=02508201610067®Number=0000000000092569&sum=70000 [14:21:03]OFD Sender: Processing packet 139737 [packets to send 137, broken 136] [14:21:03]ProducePacketName [14:21:03]name=ofd_packets/00139737 [14:21:03]OFD Sender: To server: pG, [14:21:03]CommunicateWithHost lk.salyk.kg:30040 [14:21:03]ConnectInit lk.salyk.kg [14:21:03]written 0, free lines is 4095 [14:21:03]Connected sock=10 [14:21:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 D7 9A 00 01 CB A7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 D1 00 00 00 F4 03 04 00 4D A6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 21 02 00 35 04 06 00 F4 AC 02 31 84 9D 5F AF AD FB F2 79 BB 9D [14:21:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 82 CE 47 00 00 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 21 02 00 F4 03 04 00 E0 4C C4 66 B6 04 01 00 00 08 14 87 F8 ED 0C E3 3C [14:21:03]CommunicateWithHost err = 0 [14:21:03]CheckOFDResponse [14:21:03]1017 (14) - 77093643461234 [14:21:03]1041 (16) - 0000000000871776 [14:21:03]1040 (4) - 139737 [14:21:03]1012 (4) - 20.08.2024 07:59 [14:21:03]1206 (1) - 0 [14:21:03]OFD Sender: Remove packet 139737 [14:21:03]ProducePacketName [14:21:03]name=ofd_packets/00139737 [14:21:03]NVStorageDeleteData [14:21:03]Write to MH i2c: 01 00 00 6F 01 70 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 07 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 C5 0C 48 [14:21:03]RasterBufferAndPrint [14:21:03]line [14:21:03]line [14:21:03]line [14:21:03]line [14:21:03]line [14:21:03]written 0, free lines is 3275 [14:21:03]MH_Cut [14:21:03]Write to MH i2c: D1 01 00 76 01 01 49 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: D1 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: D1 01 00 [14:21:03]MH_I2C_Read... [14:21:03]Read from MH i2c: D1 01 00 76 01 00 48 [14:21:03]Write to MH i2c: 01 00 00 77 01 78 [14:21:03]Write i2c OK [14:21:03]MH_I2C_Read... [14:21:03]OFD Sender: No OFD packet to send [14:21:04]*** Cut start [14:21:04]*** Partial cut [14:21:04]*** CUTSNS_PIN = 1 [14:21:04]*** CUTSNS_PIN = 0 [14:21:04]*** Brake cut motor [14:21:04]Read from MH i2c: 01 [14:21:04]MH_I2C_Read... [14:21:04]*** Stop cut motor [14:21:04]*** Cut end [14:21:04]Read from MH i2c: 01 07 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [14:21:04]process_action close_receipt done [14:21:04]requested_data is exist [14:21:04]produce_requested_data [14:21:04]requested_item fm.sn is exist - process it [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 11 00 00 [14:21:04]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 17 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4A [14:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:21:04]wFMCommunicate OK [14:21:04]requested_item fd.num is exist - process it [14:21:04]SAM_PROTO_GetFieldsCounters [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 13 00 00 [14:21:04]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:04]Read from MH i2c: E2 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 62 00 [14:21:04]MH_I2C_Read... [14:21:04]Read from MH i2c: E2 62 00 79 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [14:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:04]wFMCommunicate OK [14:21:04]SAM_PROTO_GetFieldsCounters done [14:21:04]requested_item shift.num is exist - process it [14:21:04]requested_item shift.opened is exist - process it [14:21:04]req_shift_opened [14:21:04]FM_GetShiftState [14:21:04]SAM_PROTO_GetShiftState [14:21:04]wFMCommunicate request_size=4 [14:21:04]MH_SAM_APDU [14:21:04]CAPDU: 80 13 01 00 [14:21:04]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [14:21:04]Write i2c OK [14:21:04]MH_I2C_Read... [14:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:05]Read from MH i2c: E2 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: E2 0E 00 [14:21:05]MH_I2C_Read... [14:21:05]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 89 [14:21:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:21:05]wFMCommunicate OK [14:21:05]SAM_PROTO_GetShiftState done [14:21:05]FM_GetShiftState done [14:21:05]req_shift_opened done [14:21:05]requested_item shift.open_date is exist - process it [14:21:05]req_shift_open_date [14:21:05]req_shift_open_date done [14:21:05]produce_requested_data done [14:21:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139737,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:21:05]process_action_free close_receipt [14:21:05]json_value_free [14:21:05]json_value_free done [14:21:05]process_json_proto returns [14:21:05]Send response to host [14:21:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139737,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:21:05]free response buf [14:21:05]execute_script done [14:21:05]execute_script returns [14:21:05]free content buf [14:21:05]Sock 9.Close socket [14:21:05]Sock 9.Thread stoped [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:19]accept exits with 7 [14:21:19]New connection [14:21:19]New thread 3067039076 created [14:21:19]Thread 3067182436 joined [14:21:19]Waiting for new connection... [14:21:19] Sock 7.Parse request [14:21:19]Sock 7.Check first char [14:21:19]Sock 7.First char is OK [14:21:19]request: POST /json_proto HTTP/1.0 [14:21:19]Method: POST [14:21:19]URL: /json_proto [14:21:19]Method is POST - this is cgi request [14:21:19]url: /json_proto [14:21:19]query_string will be loaded in cgi processing [14:21:19]execute_cgi json_proto POST (null) [14:21:19]execute_cgi path=json_proto method=POST [14:21:19]POST find Content-Length [14:21:19]Host: 172.17.45.67:8080 [14:21:19]Content-Length: 677 [14:21:19]Content-Type: application/json [14:21:19] [14:21:19]POST finish read [14:21:19]Found Content-Length = 677 [14:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.050, "sum" : 410.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:19]execute_script... [14:21:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.050, "sum" : 410.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:19]POST & json_proto [14:21:19]process_json_proto [14:21:19]json parsed OK: [14:21:19]protocol is kg_v1.0 [14:21:19]action value=close_receipt [14:21:19]process_action close_receipt [14:21:19]cmd_close_receipt [14:21:19]MH_GetDate [14:21:19]Write to MH i2c: F0 00 00 7B 01 6B [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: F0 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: F0 09 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: F0 09 00 7B 01 00 5F A6 C4 66 5F 7F 2B 66 12 [14:21:19]GetLastDocTimeStamp 1724163661 [14:21:19]current date 1724163679 [14:21:19]FM_GetShiftState [14:21:19]SAM_PROTO_GetShiftState [14:21:19]wFMCommunicate request_size=4 [14:21:19]MH_SAM_APDU [14:21:19]CAPDU: 80 13 01 00 [14:21:19]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [14:21:19]Write i2c OK [14:21:19]MH_I2C_Read... [14:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:19]Read from MH i2c: E2 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0E 00 [14:21:19]MH_I2C_Read... [14:21:19]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8B [14:21:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:21:19]wFMCommunicate OK [14:21:19]SAM_PROTO_GetShiftState done [14:21:19]FM_GetShiftState done [14:21:19]opened in 1724113785 [14:21:19]opened+sec_in_day 1724200185 [14:21:19]quantity*price = 41019 [14:21:19]sum+1 = 41020 [14:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.56 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 210 20.08.2024 14:21 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139738 ФПД: 24476391218411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T142119&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139738&fm=24476391218411&tin=02508201610067®Number=0000000000092569&sum=41000 [14:21:20]StoreToDocumentArchive [14:21:20]shift 453 fd 139738 [14:21:20]save to /storage/0453/doc_00139738 [14:21:20]save last doc name /storage/0453/doc_00139738 to /storage/kkm_last_doc_name [14:21:20]save OK [14:21:20]Clear old archive folders... [14:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:20]tlvbuf is 0169C700 [14:21:20]SAM_PROTO_ClearQueue [14:21:20]wFMCommunicate request_size=4 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 09 00 00 [14:21:20]Write to MH i2c: E2 08 00 89 01 80 09 00 00 00 00 00 00 FC [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [14:21:20]RAPDU: 90 00 [14:21:20]wFMCommunicate OK [14:21:20]SAM_PROTO_ClearQueue done [14:21:20]KKMCreateOFDPacket [14:21:20]OFDProtocolAddRootSTLVToBuf [14:21:20]FM_MakeSignedData [14:21:20]FM_MakeSignedData [14:21:20]SAM_PROTO_SignData [14:21:20]wFMCommunicate request_size=4 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 0D 01 02 [14:21:20]Write to MH i2c: E2 08 00 8A 01 80 0D 01 02 00 00 00 00 04 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [14:21:20]RAPDU: 90 00 [14:21:20]wFMCommunicate OK [14:21:20]wFMCommunicate request_size=255 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5F A6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 21 02 00 35 04 06 00 16 [14:21:20]Write to MH i2c: E2 02 01 8B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5F A6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 21 02 00 35 04 06 00 16 00 00 2D [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [14:21:20]RAPDU: 90 00 [14:21:20]wFMCommunicate OK [14:21:20]wFMCommunicate request_size=10 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 0D 02 02 05 42 DA 9A 9C EB [14:21:20]Write to MH i2c: E2 0D 00 8C 01 80 0D 02 02 05 00 42 DA 9A 9C EB 00 00 4E [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [14:21:20]RAPDU: 90 00 [14:21:20]wFMCommunicate OK [14:21:20]wFMCommunicate request_size=4 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 0D 03 02 [14:21:20]Write to MH i2c: E2 08 00 8D 01 80 0D 03 02 00 00 00 00 09 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 0B 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 0B 00 8D 01 00 63 9A 3A 32 7F FD F4 A8 90 00 8B [14:21:20]RAPDU: 63 9A 3A 32 7F FD F4 A8 90 00 [14:21:20]wFMCommunicate OK [14:21:20]SAM_PROTO_SignData done [14:21:20]FM_MakeSignedData done [14:21:20]CreateOFDProtocolMessage [14:21:20]wFMCommunicate request_size=4 [14:21:20]MH_SAM_APDU [14:21:20]CAPDU: 80 11 00 00 [14:21:20]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:20]Read from MH i2c: E2 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 17 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 60 [14:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:21:20]wFMCommunicate OK [14:21:20]CreateOFDProtocolMessage done [14:21:20]OFDSenderStorePacket 139738 [14:21:20]StoreOFDPacket docnum=139738 [14:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7D 20 07 01 C4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5F A6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 21 02 00 35 04 06 00 16 42 DA 9A 9C EB 63 9A 3A 32 7F FD F4 A8 [14:21:20]CheckFolder [14:21:20]dirname=/storage/ofd_packets [14:21:20]CheckFolder done [14:21:20]ProducePacketName [14:21:20]name=ofd_packets/00139738 [14:21:20]NVStorageSaveData ofd_packets/00139738 [14:21:20]File name is /storage/ofd_packets/00139738 [14:21:20]Write 301 bytes [14:21:20]NVStorageSaveData done [14:21:20]OFDSenderStorePacket done [14:21:20]KKMCreateOFDPacket done [14:21:20]NVStorageSaveData kkm_last_timestamp [14:21:20]File name is /storage/kkm_last_timestamp [14:21:20]Write 4 bytes [14:21:20]NVStorageSaveData done [14:21:20]ExternCall_PrintAddStr [14:21:20]wPrintStart [14:21:20]Write to MH i2c: 01 00 00 8F 01 90 [14:21:20]Write i2c OK [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 07 00 [14:21:20]MH_I2C_Read... [14:21:20]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [14:21:20]RasterBufferAndPrint [14:21:20]line Счет N : (1)593585 [14:21:20]line ИНН: 02508201610067 [14:21:20]line Контрольно-Кассовый Чек [14:21:20]line ПРОДАЖА [14:21:20]line ТРК (МРК, ГНК) : 62 [14:21:20]line Товар: 2710124130 [14:21:20]line Аи-92-К-5 [14:21:20]line 6.050 * 67.80 [14:21:20]line = 410.19 [14:21:20]line НДС 12% НСП 1% [14:21:20]line > о реализуемом товаре [14:21:20]line ОКРУГЛЕНИЕ: -0.19 [14:21:20]line ИТОГО: 410.00 [14:21:20]line Внесено: 410.00 [14:21:20]line СДАЧА: 0.00 [14:21:20]line НСП 1% : 3.63 [14:21:20]line НДС 12% : 43.56 [14:21:20]line Наличными: 410.00 [14:21:20]line Безнал.: 0.00 [14:21:20]line Место: АЗС № 136 "Партнер Нефть" [14:21:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:21:20]line СНО: Общий режим [14:21:20]line Чек 210 20.08.2024 14:21 [14:21:20]line Смена: 453 ФФД: 1.0 [14:21:20]line ЗНМ: 0300000067 [14:21:20]line РНМ: 0000000000092569 [14:21:20]line Версия ККМ: 001 [14:21:20]line ФМ: 0000000000871776 [14:21:20]line ФД: 139738 [14:21:20]line ФПД: 24476391218411 [14:21:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T142119&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139738&fm=24476391218411&tin=02508201610067®Number=0000000000092569&sum=41000 [14:21:21]OFD Sender: Processing packet 139738 [packets to send 137, broken 136] [14:21:21]ProducePacketName [14:21:21]name=ofd_packets/00139738 [14:21:21]OFD Sender: To server: pG, [14:21:21]CommunicateWithHost lk.salyk.kg:30040 [14:21:21]ConnectInit lk.salyk.kg [14:21:21]written 0, free lines is 4095 [14:21:21]Connected sock=11 [14:21:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7D 20 07 01 C4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5F A6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 21 02 00 35 04 06 00 16 42 DA 9A 9C EB 63 9A 3A 32 7F FD F4 A8 [14:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C3 89 47 00 5C 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 38 37 31 37 37 36 10 04 04 00 DA 21 02 00 F4 03 04 00 F2 4C C4 66 B6 04 01 00 00 DE 0C 38 74 2C 9C AD 59 [14:21:21]CommunicateWithHost err = 0 [14:21:21]CheckOFDResponse [14:21:21]1017 (14) - 77093643461234 [14:21:21]1041 (16) - 0000000000871776 [14:21:21]1040 (4) - 139738 [14:21:21]1012 (4) - 20.08.2024 07:59 [14:21:21]1206 (1) - 0 [14:21:21]OFD Sender: Remove packet 139738 [14:21:21]ProducePacketName [14:21:21]name=ofd_packets/00139738 [14:21:21]NVStorageDeleteData [14:21:21]Write to MH i2c: 01 00 00 BA 01 BB [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 07 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 D3 0C A1 [14:21:21]RasterBufferAndPrint [14:21:21]line [14:21:21]line [14:21:21]line [14:21:21]line [14:21:21]line [14:21:21]written 0, free lines is 3291 [14:21:21]MH_Cut [14:21:21]Write to MH i2c: D1 01 00 C1 01 01 94 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: D1 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: D1 01 00 [14:21:21]MH_I2C_Read... [14:21:21]Read from MH i2c: D1 01 00 C1 01 00 93 [14:21:21]Write to MH i2c: 01 00 00 C2 01 C3 [14:21:21]Write i2c OK [14:21:21]MH_I2C_Read... [14:21:22]OFD Sender: No OFD packet to send [14:21:22]*** Cut start [14:21:22]*** Partial cut [14:21:22]*** CUTSNS_PIN = 1 [14:21:22]*** CUTSNS_PIN = 0 [14:21:22]*** Brake cut motor [14:21:22]Read from MH i2c: 01 [14:21:22]MH_I2C_Read... [14:21:22]*** Stop cut motor [14:21:22]*** Cut end [14:21:22]Read from MH i2c: 01 07 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 FF 0F D8 [14:21:22]process_action close_receipt done [14:21:22]requested_data is exist [14:21:22]produce_requested_data [14:21:22]requested_item fm.sn is exist - process it [14:21:22]wFMCommunicate request_size=4 [14:21:22]MH_SAM_APDU [14:21:22]CAPDU: 80 11 00 00 [14:21:22]Write to MH i2c: E2 08 00 C3 01 80 11 00 00 00 00 00 00 3E [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:22]Read from MH i2c: E2 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 17 00 [14:21:22]MH_I2C_Read... [14:21:22]Read from MH i2c: E2 17 00 C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 95 [14:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:21:22]wFMCommunicate OK [14:21:22]requested_item fd.num is exist - process it [14:21:22]SAM_PROTO_GetFieldsCounters [14:21:22]wFMCommunicate request_size=4 [14:21:22]MH_SAM_APDU [14:21:22]CAPDU: 80 13 00 00 [14:21:22]Write to MH i2c: E2 08 00 C4 01 80 13 00 00 00 00 00 00 41 [14:21:22]Write i2c OK [14:21:22]MH_I2C_Read... [14:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:23]Read from MH i2c: E2 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 62 00 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 62 00 C4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [14:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:23]wFMCommunicate OK [14:21:23]SAM_PROTO_GetFieldsCounters done [14:21:23]requested_item shift.num is exist - process it [14:21:23]requested_item shift.opened is exist - process it [14:21:23]req_shift_opened [14:21:23]FM_GetShiftState [14:21:23]SAM_PROTO_GetShiftState [14:21:23]wFMCommunicate request_size=4 [14:21:23]MH_SAM_APDU [14:21:23]CAPDU: 80 13 01 00 [14:21:23]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [14:21:23]Write i2c OK [14:21:23]MH_I2C_Read... [14:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:23]Read from MH i2c: E2 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 0E 00 [14:21:23]MH_I2C_Read... [14:21:23]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D4 [14:21:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:21:23]wFMCommunicate OK [14:21:23]SAM_PROTO_GetShiftState done [14:21:23]FM_GetShiftState done [14:21:23]req_shift_opened done [14:21:23]requested_item shift.open_date is exist - process it [14:21:23]req_shift_open_date [14:21:23]req_shift_open_date done [14:21:23]produce_requested_data done [14:21:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139738,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:21:23]process_action_free close_receipt [14:21:23]json_value_free [14:21:23]json_value_free done [14:21:23]process_json_proto returns [14:21:23]Send response to host [14:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139738,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:21:23]free response buf [14:21:23]execute_script done [14:21:23]execute_script returns [14:21:23]free content buf [14:21:23]Sock 7.Close socket [14:21:23]Sock 7.Thread stoped [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:56]recv_with_timeout no data received [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:40]accept exits with 9 [14:31:40]New connection [14:31:40]New thread 3067182436 created [14:31:40]Thread 3067039076 joined [14:31:40]Waiting for new connection... [14:31:40] Sock 9.Parse request [14:31:40]Sock 9.Check first char [14:31:40]Sock 9.First char is OK [14:31:40]request: POST /json_proto HTTP/1.0 [14:31:40]Method: POST [14:31:40]URL: /json_proto [14:31:40]Method is POST - this is cgi request [14:31:40]url: /json_proto [14:31:40]query_string will be loaded in cgi processing [14:31:40]execute_cgi json_proto POST (null) [14:31:40]execute_cgi path=json_proto method=POST [14:31:40]POST find Content-Length [14:31:40]Host: 172.17.45.67:8080 [14:31:40]Content-Length: 687 [14:31:40]Content-Type: application/json [14:31:40] [14:31:40]POST finish read [14:31:40]Found Content-Length = 687 [14:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:31:40]execute_script... [14:31:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:31:40]POST & json_proto [14:31:40]process_json_proto [14:31:40]json parsed OK: [14:31:40]protocol is kg_v1.0 [14:31:40]action value=close_receipt [14:31:40]process_action close_receipt [14:31:40]cmd_close_receipt [14:31:40]MH_GetDate [14:31:40]Write to MH i2c: F0 00 00 C6 01 B6 [14:31:40]Write i2c OK [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: F0 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: F0 09 00 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: F0 09 00 C6 01 00 CC A8 C4 66 5F 7F 2B 66 CC [14:31:40]GetLastDocTimeStamp 1724163679 [14:31:40]current date 1724164300 [14:31:40]FM_GetShiftState [14:31:40]SAM_PROTO_GetShiftState [14:31:40]wFMCommunicate request_size=4 [14:31:40]MH_SAM_APDU [14:31:40]CAPDU: 80 13 01 00 [14:31:40]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [14:31:40]Write i2c OK [14:31:40]MH_I2C_Read... [14:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:40]Read from MH i2c: E2 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 0E 00 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D6 [14:31:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:31:40]wFMCommunicate OK [14:31:40]SAM_PROTO_GetShiftState done [14:31:40]FM_GetShiftState done [14:31:40]opened in 1724113785 [14:31:40]opened+sec_in_day 1724200185 [14:31:40]quantity*price = 100050 [14:31:40]sum+1 = 100052 [14:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 211 20.08.2024 14:31 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139739 ФПД: 13973073230970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T143140&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139739&fm=13973073230970&tin=02508201610067®Number=0000000000092569&sum=100000 [14:31:41]StoreToDocumentArchive [14:31:41]shift 453 fd 139739 [14:31:41]save to /storage/0453/doc_00139739 [14:31:41]save last doc name /storage/0453/doc_00139739 to /storage/kkm_last_doc_name [14:31:41]save OK [14:31:41]Clear old archive folders... [14:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:31:41]tlvbuf is 0169E020 [14:31:41]SAM_PROTO_ClearQueue [14:31:41]wFMCommunicate request_size=4 [14:31:41]MH_SAM_APDU [14:31:41]CAPDU: 80 09 00 00 [14:31:41]Write to MH i2c: E2 08 00 D4 01 80 09 00 00 00 00 00 00 47 [14:31:41]Write i2c OK [14:31:41]MH_I2C_Read... [14:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:41]Read from MH i2c: E2 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 03 00 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [14:31:41]RAPDU: 90 00 [14:31:41]wFMCommunicate OK [14:31:41]SAM_PROTO_ClearQueue done [14:31:41]KKMCreateOFDPacket [14:31:41]OFDProtocolAddRootSTLVToBuf [14:31:41]FM_MakeSignedData [14:31:41]FM_MakeSignedData [14:31:41]SAM_PROTO_SignData [14:31:41]wFMCommunicate request_size=4 [14:31:41]MH_SAM_APDU [14:31:41]CAPDU: 80 0D 01 02 [14:31:41]Write to MH i2c: E2 08 00 D5 01 80 0D 01 02 00 00 00 00 4F [14:31:41]Write i2c OK [14:31:41]MH_I2C_Read... [14:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:41]Read from MH i2c: E2 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 03 00 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [14:31:41]RAPDU: 90 00 [14:31:41]wFMCommunicate OK [14:31:41]wFMCommunicate request_size=255 [14:31:41]MH_SAM_APDU [14:31:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 D3 00 00 00 F4 03 04 00 CC A8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 21 02 00 35 04 06 00 [14:31:41]Write to MH i2c: E2 02 01 D6 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 D3 00 00 00 F4 03 04 00 CC A8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 21 02 00 35 04 06 00 00 00 FB [14:31:41]Write i2c OK [14:31:41]MH_I2C_Read... [14:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:41]Read from MH i2c: E2 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 03 00 [14:31:41]MH_I2C_Read... [14:31:41]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [14:31:41]RAPDU: 90 00 [14:31:41]wFMCommunicate OK [14:31:41]wFMCommunicate request_size=11 [14:31:41]MH_SAM_APDU [14:31:41]CAPDU: 80 0D 02 02 06 0C B5 5C 10 FC 7A [14:31:41]Write to MH i2c: E2 0E 00 D7 01 80 0D 02 02 06 00 0C B5 5C 10 FC 7A 00 00 01 [14:31:41]Write i2c OK [14:31:41]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [14:31:42]RAPDU: 90 00 [14:31:42]wFMCommunicate OK [14:31:42]wFMCommunicate request_size=4 [14:31:42]MH_SAM_APDU [14:31:42]CAPDU: 80 0D 03 02 [14:31:42]Write to MH i2c: E2 08 00 D8 01 80 0D 03 02 00 00 00 00 54 [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 0B 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 0B 00 D8 01 00 3B AD 69 64 EC BF E3 FD 90 00 95 [14:31:42]RAPDU: 3B AD 69 64 EC BF E3 FD 90 00 [14:31:42]wFMCommunicate OK [14:31:42]SAM_PROTO_SignData done [14:31:42]FM_MakeSignedData done [14:31:42]CreateOFDProtocolMessage [14:31:42]wFMCommunicate request_size=4 [14:31:42]MH_SAM_APDU [14:31:42]CAPDU: 80 11 00 00 [14:31:42]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 17 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AB [14:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:31:42]wFMCommunicate OK [14:31:42]CreateOFDProtocolMessage done [14:31:42]OFDSenderStorePacket 139739 [14:31:42]StoreOFDPacket docnum=139739 [14:31:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 F9 EB 08 01 CB 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 D3 00 00 00 F4 03 04 00 CC A8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 21 02 00 35 04 06 00 0C B5 5C 10 FC 7A 3B AD 69 64 EC BF E3 FD [14:31:42]CheckFolder [14:31:42]dirname=/storage/ofd_packets [14:31:42]CheckFolder done [14:31:42]ProducePacketName [14:31:42]name=ofd_packets/00139739 [14:31:42]NVStorageSaveData ofd_packets/00139739 [14:31:42]File name is /storage/ofd_packets/00139739 [14:31:42]Write 302 bytes [14:31:42]NVStorageSaveData done [14:31:42]OFDSenderStorePacket done [14:31:42]KKMCreateOFDPacket done [14:31:42]NVStorageSaveData kkm_last_timestamp [14:31:42]File name is /storage/kkm_last_timestamp [14:31:42]Write 4 bytes [14:31:42]NVStorageSaveData done [14:31:42]ExternCall_PrintAddStr [14:31:42]wPrintStart [14:31:42]Write to MH i2c: 01 00 00 DA 01 DB [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: 01 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: 01 07 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [14:31:42]RasterBufferAndPrint [14:31:42]line Счет N : (1)593587 [14:31:42]line ИНН: 02508201610067 [14:31:42]line Контрольно-Кассовый Чек [14:31:42]line ПРОДАЖА [14:31:42]line ТРК (МРК, ГНК) : 54 [14:31:42]line Товар: 2710194210 [14:31:42]line ДТ(л)-К-5 [14:31:42]line 13.130 * 76.20 [14:31:42]line = 1000.51 [14:31:42]line НДС 12% НСП 1% [14:31:42]line > о реализуемом товаре [14:31:42]line ОКРУГЛЕНИЕ: -0.51 [14:31:42]line ИТОГО: 1000.00 [14:31:42]line Внесено: 1000.00 [14:31:42]line СДАЧА: 0.00 [14:31:42]line НСП 1% : 8.85 [14:31:42]line НДС 12% : 106.25 [14:31:42]line Наличными: 1000.00 [14:31:42]line Безнал.: 0.00 [14:31:42]line Место: АЗС № 136 "Партнер Нефть" [14:31:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:31:42]line СНО: Общий режим [14:31:42]line Чек 211 20.08.2024 14:31 [14:31:42]line Смена: 453 ФФД: 1.0 [14:31:42]line ЗНМ: 0300000067 [14:31:42]line РНМ: 0000000000092569 [14:31:42]line Версия ККМ: 001 [14:31:42]line ФМ: 0000000000871776 [14:31:42]line ФД: 139739 [14:31:42]line ФПД: 13973073230970 [14:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T143140&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139739&fm=13973073230970&tin=02508201610067®Number=0000000000092569&sum=100000 [14:31:42]OFD Sender: Processing packet 139739 [packets to send 137, broken 136] [14:31:42]ProducePacketName [14:31:42]name=ofd_packets/00139739 [14:31:42]OFD Sender: To server: pG, [14:31:42]CommunicateWithHost lk.salyk.kg:30040 [14:31:42]ConnectInit lk.salyk.kg [14:31:42]written 0, free lines is 4095 [14:31:42]Connected sock=10 [14:31:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 F9 EB 08 01 CB 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 D3 00 00 00 F4 03 04 00 CC A8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 21 02 00 35 04 06 00 0C B5 5C 10 FC 7A 3B AD 69 64 EC BF E3 FD [14:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E0 9A 47 00 E4 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 21 02 00 F4 03 04 00 5F 4F C4 66 B6 04 01 00 00 82 AE EB DA 97 80 11 24 [14:31:42]CommunicateWithHost err = 0 [14:31:42]CheckOFDResponse [14:31:42]1017 (14) - 77093643461234 [14:31:42]1041 (16) - 0000000000871776 [14:31:42]1040 (4) - 139739 [14:31:42]1012 (4) - 20.08.2024 08:10 [14:31:42]1206 (1) - 0 [14:31:42]OFD Sender: Remove packet 139739 [14:31:42]ProducePacketName [14:31:42]name=ofd_packets/00139739 [14:31:42]NVStorageDeleteData [14:31:42]Write to MH i2c: 01 00 00 05 02 07 [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: 01 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: 01 07 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: 01 07 00 05 02 00 00 00 00 00 CC 0C E6 [14:31:42]RasterBufferAndPrint [14:31:42]line [14:31:42]line [14:31:42]line [14:31:42]line [14:31:42]line [14:31:42]written 0, free lines is 3282 [14:31:42]MH_Cut [14:31:42]Write to MH i2c: D1 01 00 0C 02 01 E0 [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: D1 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: D1 01 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: D1 01 00 0C 02 00 DF [14:31:42]Write to MH i2c: 01 00 00 0D 02 0F [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:43]OFD Sender: No OFD packet to send [14:31:43]*** Cut start [14:31:43]*** Partial cut [14:31:43]*** CUTSNS_PIN = 1 [14:31:43]*** CUTSNS_PIN = 0 [14:31:43]*** Brake cut motor [14:31:44]Read from MH i2c: 01 [14:31:44]MH_I2C_Read... [14:31:44]*** Stop cut motor [14:31:44]*** Cut end [14:31:44]Read from MH i2c: 01 07 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 FF 0F 24 [14:31:44]process_action close_receipt done [14:31:44]requested_data is exist [14:31:44]produce_requested_data [14:31:44]requested_item fm.sn is exist - process it [14:31:44]wFMCommunicate request_size=4 [14:31:44]MH_SAM_APDU [14:31:44]CAPDU: 80 11 00 00 [14:31:44]Write to MH i2c: E2 08 00 0E 02 80 11 00 00 00 00 00 00 8A [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:44]Read from MH i2c: E2 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 17 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 17 00 0E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [14:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:31:44]wFMCommunicate OK [14:31:44]requested_item fd.num is exist - process it [14:31:44]SAM_PROTO_GetFieldsCounters [14:31:44]wFMCommunicate request_size=4 [14:31:44]MH_SAM_APDU [14:31:44]CAPDU: 80 13 00 00 [14:31:44]Write to MH i2c: E2 08 00 0F 02 80 13 00 00 00 00 00 00 8D [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:44]Read from MH i2c: E2 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 62 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 62 00 0F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [14:31:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:44]wFMCommunicate OK [14:31:44]SAM_PROTO_GetFieldsCounters done [14:31:44]requested_item shift.num is exist - process it [14:31:44]requested_item shift.opened is exist - process it [14:31:44]req_shift_opened [14:31:44]FM_GetShiftState [14:31:44]SAM_PROTO_GetShiftState [14:31:44]wFMCommunicate request_size=4 [14:31:44]MH_SAM_APDU [14:31:44]CAPDU: 80 13 01 00 [14:31:44]Write to MH i2c: E2 08 00 10 02 80 13 01 00 00 00 00 00 8F [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:44]Read from MH i2c: E2 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 0E 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 0E 00 10 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 20 [14:31:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:31:44]wFMCommunicate OK [14:31:44]SAM_PROTO_GetShiftState done [14:31:44]FM_GetShiftState done [14:31:44]req_shift_opened done [14:31:44]requested_item shift.open_date is exist - process it [14:31:44]req_shift_open_date [14:31:44]req_shift_open_date done [14:31:44]produce_requested_data done [14:31:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139739,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:31:44]process_action_free close_receipt [14:31:44]json_value_free [14:31:44]json_value_free done [14:31:44]process_json_proto returns [14:31:44]Send response to host [14:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139739,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:31:44]free response buf [14:31:44]execute_script done [14:31:44]execute_script returns [14:31:44]free content buf [14:31:44]Sock 9.Close socket [14:31:44]Sock 9.Thread stoped [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:09]accept exits with 7 [14:36:09]New connection [14:36:09]New thread 3067039076 created [14:36:09]Thread 3067182436 joined [14:36:09]Waiting for new connection... [14:36:09] Sock 7.Parse request [14:36:09]Sock 7.Check first char [14:36:09]Sock 7.First char is OK [14:36:09]request: POST /json_proto HTTP/1.0 [14:36:09]Method: POST [14:36:09]URL: /json_proto [14:36:09]Method is POST - this is cgi request [14:36:09]url: /json_proto [14:36:09]query_string will be loaded in cgi processing [14:36:09]execute_cgi json_proto POST (null) [14:36:09]execute_cgi path=json_proto method=POST [14:36:09]POST find Content-Length [14:36:09]Host: 172.17.45.67:8080 [14:36:09]Content-Length: 677 [14:36:09]Content-Type: application/json [14:36:09] [14:36:09]POST finish read [14:36:09]Found Content-Length = 677 [14:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.670, "sum" : 181.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 181.00, "payments": [ { "type": 0, "sum" : 181.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:09]execute_script... [14:36: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)593588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.670, "sum" : 181.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 181.00, "payments": [ { "type": 0, "sum" : 181.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:09]POST & json_proto [14:36:09]process_json_proto [14:36:09]json parsed OK: [14:36:09]protocol is kg_v1.0 [14:36:09]action value=close_receipt [14:36:09]process_action close_receipt [14:36:09]cmd_close_receipt [14:36:09]MH_GetDate [14:36:09]Write to MH i2c: F0 00 00 11 02 02 [14:36:09]Write i2c OK [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: F0 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: F0 09 00 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: F0 09 00 11 02 00 D9 A9 C4 66 5F 7F 2B 66 26 [14:36:09]GetLastDocTimeStamp 1724164300 [14:36:09]current date 1724164569 [14:36:09]FM_GetShiftState [14:36:09]SAM_PROTO_GetShiftState [14:36:09]wFMCommunicate request_size=4 [14:36:09]MH_SAM_APDU [14:36:09]CAPDU: 80 13 01 00 [14:36:09]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [14:36:09]Write i2c OK [14:36:09]MH_I2C_Read... [14:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:09]Read from MH i2c: E2 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 0E 00 [14:36:09]MH_I2C_Read... [14:36:09]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 22 [14:36:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:36:09]wFMCommunicate OK [14:36:09]SAM_PROTO_GetShiftState done [14:36:09]FM_GetShiftState done [14:36:09]opened in 1724113785 [14:36:09]opened+sec_in_day 1724200185 [14:36:09]quantity*price = 18102 [14:36:09]sum+1 = 18104 [14:36:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 181.00 Внесено: 200.00 СДАЧА: 19.00 НСП 1% : 1.60 НДС 12% : 19.22 Наличными: 181.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 212 20.08.2024 14:36 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139740 ФПД: 170570183989406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T143609&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139740&fm=170570183989406&tin=02508201610067®Number=0000000000092569&sum=18100 [14:36:10]StoreToDocumentArchive [14:36:10]shift 453 fd 139740 [14:36:10]save to /storage/0453/doc_00139740 [14:36:10]save last doc name /storage/0453/doc_00139740 to /storage/kkm_last_doc_name [14:36:10]save OK [14:36:10]Clear old archive folders... [14:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:10]tlvbuf is 0169AE30 [14:36:10]SAM_PROTO_ClearQueue [14:36:10]wFMCommunicate request_size=4 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 09 00 00 [14:36:10]Write to MH i2c: E2 08 00 1F 02 80 09 00 00 00 00 00 00 93 [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [14:36:10]RAPDU: 90 00 [14:36:10]wFMCommunicate OK [14:36:10]SAM_PROTO_ClearQueue done [14:36:10]KKMCreateOFDPacket [14:36:10]OFDProtocolAddRootSTLVToBuf [14:36:10]FM_MakeSignedData [14:36:10]FM_MakeSignedData [14:36:10]SAM_PROTO_SignData [14:36:10]wFMCommunicate request_size=4 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 0D 01 02 [14:36:10]Write to MH i2c: E2 08 00 20 02 80 0D 01 02 00 00 00 00 9B [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [14:36:10]RAPDU: 90 00 [14:36:10]wFMCommunicate OK [14:36:10]wFMCommunicate request_size=255 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B7 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 D9 A9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 21 02 00 35 04 06 00 9B [14:36:10]Write to MH i2c: E2 02 01 21 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B7 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 D9 A9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 21 02 00 35 04 06 00 9B 00 00 B7 [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:10]Read from MH i2c: E2 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 [14:36:10]MH_I2C_Read... [14:36:10]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [14:36:10]RAPDU: 90 00 [14:36:10]wFMCommunicate OK [14:36:10]wFMCommunicate request_size=10 [14:36:10]MH_SAM_APDU [14:36:10]CAPDU: 80 0D 02 02 05 21 F7 39 D8 9E [14:36:10]Write to MH i2c: E2 0D 00 22 02 80 0D 02 02 05 00 21 F7 39 D8 9E 00 00 6F [14:36:10]Write i2c OK [14:36:10]MH_I2C_Read... [14:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:11]Read from MH i2c: E2 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 03 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [14:36:11]RAPDU: 90 00 [14:36:11]wFMCommunicate OK [14:36:11]wFMCommunicate request_size=4 [14:36:11]MH_SAM_APDU [14:36:11]CAPDU: 80 0D 03 02 [14:36:11]Write to MH i2c: E2 08 00 23 02 80 0D 03 02 00 00 00 00 A0 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:11]Read from MH i2c: E2 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 0B 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 0B 00 23 02 00 7E D2 7D DB B8 54 D7 24 90 00 50 [14:36:11]RAPDU: 7E D2 7D DB B8 54 D7 24 90 00 [14:36:11]wFMCommunicate OK [14:36:11]SAM_PROTO_SignData done [14:36:11]FM_MakeSignedData done [14:36:11]CreateOFDProtocolMessage [14:36:11]wFMCommunicate request_size=4 [14:36:11]MH_SAM_APDU [14:36:11]CAPDU: 80 11 00 00 [14:36:11]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:11]Read from MH i2c: E2 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 17 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F7 [14:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:36:11]wFMCommunicate OK [14:36:11]CreateOFDProtocolMessage done [14:36:11]OFDSenderStorePacket 139740 [14:36:11]StoreOFDPacket docnum=139740 [14:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 40 30 07 01 18 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B7 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 D9 A9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 21 02 00 35 04 06 00 9B 21 F7 39 D8 9E 7E D2 7D DB B8 54 D7 24 [14:36:11]CheckFolder [14:36:11]dirname=/storage/ofd_packets [14:36:11]CheckFolder done [14:36:11]ProducePacketName [14:36:11]name=ofd_packets/00139740 [14:36:11]NVStorageSaveData ofd_packets/00139740 [14:36:11]File name is /storage/ofd_packets/00139740 [14:36:11]Write 301 bytes [14:36:11]NVStorageSaveData done [14:36:11]OFDSenderStorePacket done [14:36:11]KKMCreateOFDPacket done [14:36:11]NVStorageSaveData kkm_last_timestamp [14:36:11]File name is /storage/kkm_last_timestamp [14:36:11]Write 4 bytes [14:36:11]NVStorageSaveData done [14:36:11]ExternCall_PrintAddStr [14:36:11]wPrintStart [14:36:11]Write to MH i2c: 01 00 00 25 02 27 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 07 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [14:36:11]RasterBufferAndPrint [14:36:11]line Счет N : (1)593588 [14:36:11]line ИНН: 02508201610067 [14:36:11]line Контрольно-Кассовый Чек [14:36:11]line ПРОДАЖА [14:36:11]line ТРК (МРК, ГНК) : 42 [14:36:11]line Товар: 2710124130 [14:36:11]line Аи-92-К-5 [14:36:11]line 2.670 * 67.80 [14:36:11]line = 181.03 [14:36:11]line НДС 12% НСП 1% [14:36:11]line > о реализуемом товаре [14:36:11]line ОКРУГЛЕНИЕ: -0.03 [14:36:11]line ИТОГО: 181.00 [14:36:11]line Внесено: 200.00 [14:36:11]line СДАЧА: 19.00 [14:36:11]line НСП 1% : 1.60 [14:36:11]line НДС 12% : 19.22 [14:36:11]line Наличными: 181.00 [14:36:11]line Безнал.: 0.00 [14:36:11]line Место: АЗС № 136 "Партнер Нефть" [14:36:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:36:11]line СНО: Общий режим [14:36:11]line Чек 212 20.08.2024 14:36 [14:36:11]line Смена: 453 ФФД: 1.0 [14:36:11]line ЗНМ: 0300000067 [14:36:11]line РНМ: 0000000000092569 [14:36:11]line Версия ККМ: 001 [14:36:11]line ФМ: 0000000000871776 [14:36:11]line ФД: 139740 [14:36:11]line ФПД: 170570183989406 [14:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T143609&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139740&fm=170570183989406&tin=02508201610067®Number=0000000000092569&sum=18100 [14:36:11]OFD Sender: Processing packet 139740 [packets to send 137, broken 136] [14:36:11]ProducePacketName [14:36:11]name=ofd_packets/00139740 [14:36:11]OFD Sender: To server: pG, [14:36:11]CommunicateWithHost lk.salyk.kg:30040 [14:36:11]ConnectInit lk.salyk.kg [14:36:11]written 0, free lines is 4095 [14:36:11]Connected sock=10 [14:36:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 40 30 07 01 18 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6E 0A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B7 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 07 00 00 00 00 07 04 06 00 B4 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 D9 A9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 21 02 00 35 04 06 00 9B 21 F7 39 D8 9E 7E D2 7D DB B8 54 D7 24 [14:36:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 54 2B 47 00 66 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 21 02 00 F4 03 04 00 6C 50 C4 66 B6 04 01 00 00 E5 A0 F9 BE F8 A7 CF 08 [14:36:11]CommunicateWithHost err = 0 [14:36:11]CheckOFDResponse [14:36:11]1017 (14) - 77093643461234 [14:36:11]1041 (16) - 0000000000871776 [14:36:11]1040 (4) - 139740 [14:36:11]1012 (4) - 20.08.2024 08:14 [14:36:11]1206 (1) - 0 [14:36:11]OFD Sender: Remove packet 139740 [14:36:11]ProducePacketName [14:36:11]name=ofd_packets/00139740 [14:36:11]NVStorageDeleteData [14:36:11]Write to MH i2c: 01 00 00 50 02 52 [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 07 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: 01 07 00 50 02 00 00 00 00 00 CD 0C 32 [14:36:11]RasterBufferAndPrint [14:36:11]line [14:36:11]line [14:36:11]line [14:36:11]line [14:36:11]line [14:36:11]written 0, free lines is 3283 [14:36:11]MH_Cut [14:36:11]Write to MH i2c: D1 01 00 57 02 01 2B [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: D1 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: D1 01 00 [14:36:11]MH_I2C_Read... [14:36:11]Read from MH i2c: D1 01 00 57 02 00 2A [14:36:11]Write to MH i2c: 01 00 00 58 02 5A [14:36:11]Write i2c OK [14:36:11]MH_I2C_Read... [14:36:12]OFD Sender: No OFD packet to send [14:36:12]*** Cut start [14:36:12]*** Partial cut [14:36:12]*** CUTSNS_PIN = 1 [14:36:12]*** CUTSNS_PIN = 0 [14:36:12]*** Brake cut motor [14:36:13]Read from MH i2c: 01 [14:36:13]MH_I2C_Read... [14:36:13]*** Stop cut motor [14:36:13]*** Cut end [14:36:13]Read from MH i2c: 01 07 00 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 FF 0F 6F [14:36:13]process_action close_receipt done [14:36:13]requested_data is exist [14:36:13]produce_requested_data [14:36:13]requested_item fm.sn is exist - process it [14:36:13]wFMCommunicate request_size=4 [14:36:13]MH_SAM_APDU [14:36:13]CAPDU: 80 11 00 00 [14:36:13]Write to MH i2c: E2 08 00 59 02 80 11 00 00 00 00 00 00 D5 [14:36:13]Write i2c OK [14:36:13]MH_I2C_Read... [14:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:13]Read from MH i2c: E2 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: E2 17 00 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: E2 17 00 59 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2C [14:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:36:13]wFMCommunicate OK [14:36:13]requested_item fd.num is exist - process it [14:36:13]SAM_PROTO_GetFieldsCounters [14:36:13]wFMCommunicate request_size=4 [14:36:13]MH_SAM_APDU [14:36:13]CAPDU: 80 13 00 00 [14:36:13]Write to MH i2c: E2 08 00 5A 02 80 13 00 00 00 00 00 00 D8 [14:36:13]Write i2c OK [14:36:13]MH_I2C_Read... [14:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:13]Read from MH i2c: E2 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: E2 62 00 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: E2 62 00 5A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [14:36:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:13]wFMCommunicate OK [14:36:13]SAM_PROTO_GetFieldsCounters done [14:36:13]requested_item shift.num is exist - process it [14:36:13]requested_item shift.opened is exist - process it [14:36:13]req_shift_opened [14:36:13]FM_GetShiftState [14:36:13]SAM_PROTO_GetShiftState [14:36:13]wFMCommunicate request_size=4 [14:36:13]MH_SAM_APDU [14:36:13]CAPDU: 80 13 01 00 [14:36:13]Write to MH i2c: E2 08 00 5B 02 80 13 01 00 00 00 00 00 DA [14:36:13]Write i2c OK [14:36:13]MH_I2C_Read... [14:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:13]Read from MH i2c: E2 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: E2 0E 00 [14:36:13]MH_I2C_Read... [14:36:13]Read from MH i2c: E2 0E 00 5B 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6B [14:36:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:36:13]wFMCommunicate OK [14:36:13]SAM_PROTO_GetShiftState done [14:36:13]FM_GetShiftState done [14:36:13]req_shift_opened done [14:36:13]requested_item shift.open_date is exist - process it [14:36:13]req_shift_open_date [14:36:13]req_shift_open_date done [14:36:13]produce_requested_data done [14:36:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139740,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:36:13]process_action_free close_receipt [14:36:13]json_value_free [14:36:13]json_value_free done [14:36:13]process_json_proto returns [14:36:13]Send response to host [14:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139740,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:36:13]free response buf [14:36:13]execute_script done [14:36:13]execute_script returns [14:36:13]free content buf [14:36:13]Sock 7.Close socket [14:36:13]Sock 7.Thread stoped [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:33]int [14:36:33]Write to MH i2c: 01 00 00 5C 02 5E [14:36:33]*** FLAG_PRN_KEY set [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: 01 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: 01 07 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: 01 07 00 5C 02 00 08 00 00 00 FF 0F 7B [14:36:33]state=0 [14:36:33]Key pressed [14:36:33]Feed [14:36:33]Write to MH i2c: D8 00 00 5D 02 36 [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: D8 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: D8 01 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: D8 01 00 5D 02 00 37 [14:36:33]int [14:36:33]Write to MH i2c: 01 00 00 5E 02 60 [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: 01 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: 01 07 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: 01 07 00 5E 02 00 48 00 00 00 3C 00 EB [14:36:33]state=2 [14:36:33]Key pressed [14:36:34]int [14:36:34]Write to MH i2c: 01 00 00 5F 02 61 [14:36:34]*** FLAG_PRN_KEY reset [14:36:34]Write i2c OK [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 07 00 [14:36:34]MH_I2C_Read... [14:36:34]Read from MH i2c: 01 07 00 5F 02 00 00 00 00 00 F5 0F 6C [14:36:34]state=2 [14:36:34]Stop feed [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:09]accept exits with 9 [14:38:09]New connection [14:38:09]New thread 3067182436 created [14:38:09]Thread 3067039076 joined [14:38:09]Waiting for new connection... [14:38:09] Sock 9.Parse request [14:38:09]Sock 9.Check first char [14:38:09]Sock 9.First char is OK [14:38:09]request: POST /json_proto HTTP/1.0 [14:38:09]Method: POST [14:38:09]URL: /json_proto [14:38:09]Method is POST - this is cgi request [14:38:09]url: /json_proto [14:38:09]query_string will be loaded in cgi processing [14:38:09]execute_cgi json_proto POST (null) [14:38:09]execute_cgi path=json_proto method=POST [14:38:09]POST find Content-Length [14:38:09]Host: 172.17.45.67:8080 [14:38:09]Content-Length: 687 [14:38:09]Content-Type: application/json [14:38:09] [14:38:09]POST finish read [14:38:09]Found Content-Length = 687 [14:38:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:38:09]execute_script... [14:38: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)593589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:38:09]POST & json_proto [14:38:09]process_json_proto [14:38:09]json parsed OK: [14:38:09]protocol is kg_v1.0 [14:38:09]action value=close_receipt [14:38:09]process_action close_receipt [14:38:09]cmd_close_receipt [14:38:09]MH_GetDate [14:38:09]Write to MH i2c: F0 00 00 60 02 51 [14:38:09]Write i2c OK [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: F0 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: F0 09 00 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: F0 09 00 60 02 00 51 AA C4 66 5F 7F 2B 66 EE [14:38:09]GetLastDocTimeStamp 1724164569 [14:38:09]current date 1724164689 [14:38:09]FM_GetShiftState [14:38:09]SAM_PROTO_GetShiftState [14:38:09]wFMCommunicate request_size=4 [14:38:09]MH_SAM_APDU [14:38:09]CAPDU: 80 13 01 00 [14:38:09]Write to MH i2c: E2 08 00 61 02 80 13 01 00 00 00 00 00 E0 [14:38:09]Write i2c OK [14:38:09]MH_I2C_Read... [14:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:09]Read from MH i2c: E2 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: E2 0E 00 [14:38:09]MH_I2C_Read... [14:38:09]Read from MH i2c: E2 0E 00 61 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 71 [14:38:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:38:09]wFMCommunicate OK [14:38:09]SAM_PROTO_GetShiftState done [14:38:09]FM_GetShiftState done [14:38:09]opened in 1724113785 [14:38:09]opened+sec_in_day 1724200185 [14:38:09]quantity*price = 100050 [14:38:09]sum+1 = 100052 [14:38:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 213 20.08.2024 14:38 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139741 ФПД: 184250220296798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T143809&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139741&fm=184250220296798&tin=02508201610067®Number=0000000000092569&sum=100000 [14:38:10]StoreToDocumentArchive [14:38:10]shift 453 fd 139741 [14:38:10]save to /storage/0453/doc_00139741 [14:38:10]save last doc name /storage/0453/doc_00139741 to /storage/kkm_last_doc_name [14:38:10]save OK [14:38:10]Clear old archive folders... [14:38:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:38:10]tlvbuf is 0169C750 [14:38:10]SAM_PROTO_ClearQueue [14:38:10]wFMCommunicate request_size=4 [14:38:10]MH_SAM_APDU [14:38:10]CAPDU: 80 09 00 00 [14:38:10]Write to MH i2c: E2 08 00 6E 02 80 09 00 00 00 00 00 00 E2 [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:10]Read from MH i2c: E2 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 03 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [14:38:10]RAPDU: 90 00 [14:38:10]wFMCommunicate OK [14:38:10]SAM_PROTO_ClearQueue done [14:38:10]KKMCreateOFDPacket [14:38:10]OFDProtocolAddRootSTLVToBuf [14:38:10]FM_MakeSignedData [14:38:10]FM_MakeSignedData [14:38:10]SAM_PROTO_SignData [14:38:10]wFMCommunicate request_size=4 [14:38:10]MH_SAM_APDU [14:38:10]CAPDU: 80 0D 01 02 [14:38:10]Write to MH i2c: E2 08 00 6F 02 80 0D 01 02 00 00 00 00 EA [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:10]Read from MH i2c: E2 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 03 00 [14:38:10]MH_I2C_Read... [14:38:10]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [14:38:10]RAPDU: 90 00 [14:38:10]wFMCommunicate OK [14:38:10]wFMCommunicate request_size=255 [14:38:10]MH_SAM_APDU [14:38:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 D5 00 00 00 F4 03 04 00 51 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 21 02 00 35 04 06 00 [14:38:10]Write to MH i2c: E2 02 01 70 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 D5 00 00 00 F4 03 04 00 51 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 21 02 00 35 04 06 00 00 00 21 [14:38:10]Write i2c OK [14:38:10]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [14:38:11]RAPDU: 90 00 [14:38:11]wFMCommunicate OK [14:38:11]wFMCommunicate request_size=11 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 0D 02 02 06 A7 93 18 EE 3A 5E [14:38:11]Write to MH i2c: E2 0E 00 71 02 80 0D 02 02 06 00 A7 93 18 EE 3A 5E 00 00 D1 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [14:38:11]RAPDU: 90 00 [14:38:11]wFMCommunicate OK [14:38:11]wFMCommunicate request_size=4 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 0D 03 02 [14:38:11]Write to MH i2c: E2 08 00 72 02 80 0D 03 02 00 00 00 00 EF [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 0B 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 0B 00 72 02 00 54 6D B8 FC 28 E6 AA 97 90 00 B4 [14:38:11]RAPDU: 54 6D B8 FC 28 E6 AA 97 90 00 [14:38:11]wFMCommunicate OK [14:38:11]SAM_PROTO_SignData done [14:38:11]FM_MakeSignedData done [14:38:11]CreateOFDProtocolMessage [14:38:11]wFMCommunicate request_size=4 [14:38:11]MH_SAM_APDU [14:38:11]CAPDU: 80 11 00 00 [14:38:11]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:11]Read from MH i2c: E2 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 17 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 46 [14:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:38:11]wFMCommunicate OK [14:38:11]CreateOFDProtocolMessage done [14:38:11]OFDSenderStorePacket 139741 [14:38:11]StoreOFDPacket docnum=139741 [14:38:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B9 2C 08 01 07 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 D5 00 00 00 F4 03 04 00 51 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 21 02 00 35 04 06 00 A7 93 18 EE 3A 5E 54 6D B8 FC 28 E6 AA 97 [14:38:11]CheckFolder [14:38:11]dirname=/storage/ofd_packets [14:38:11]CheckFolder done [14:38:11]ProducePacketName [14:38:11]name=ofd_packets/00139741 [14:38:11]NVStorageSaveData ofd_packets/00139741 [14:38:11]File name is /storage/ofd_packets/00139741 [14:38:11]Write 302 bytes [14:38:11]NVStorageSaveData done [14:38:11]OFDSenderStorePacket done [14:38:11]KKMCreateOFDPacket done [14:38:11]NVStorageSaveData kkm_last_timestamp [14:38:11]File name is /storage/kkm_last_timestamp [14:38:11]Write 4 bytes [14:38:11]NVStorageSaveData done [14:38:11]ExternCall_PrintAddStr [14:38:11]wPrintStart [14:38:11]Write to MH i2c: 01 00 00 74 02 76 [14:38:11]Write i2c OK [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: 01 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: 01 07 00 [14:38:11]MH_I2C_Read... [14:38:11]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [14:38:11]RasterBufferAndPrint [14:38:11]line Счет N : (1)593589 [14:38:11]line ИНН: 02508201610067 [14:38:11]line Контрольно-Кассовый Чек [14:38:11]line ПРОДАЖА [14:38:11]line ТРК (МРК, ГНК) : 64 [14:38:11]line Товар: 2710194210 [14:38:11]line ДТ(л)-К-5 [14:38:11]line 13.130 * 76.20 [14:38:11]line = 1000.51 [14:38:11]line НДС 12% НСП 1% [14:38:11]line > о реализуемом товаре [14:38:11]line ОКРУГЛЕНИЕ: -0.51 [14:38:11]line ИТОГО: 1000.00 [14:38:11]line Внесено: 1000.00 [14:38:11]line СДАЧА: 0.00 [14:38:11]line НСП 1% : 8.85 [14:38:11]line НДС 12% : 106.25 [14:38:11]line Наличными: 1000.00 [14:38:11]line Безнал.: 0.00 [14:38:11]line Место: АЗС № 136 "Партнер Нефть" [14:38:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:38:11]line СНО: Общий режим [14:38:11]line Чек 213 20.08.2024 14:38 [14:38:11]line Смена: 453 ФФД: 1.0 [14:38:11]line ЗНМ: 0300000067 [14:38:11]line РНМ: 0000000000092569 [14:38:11]line Версия ККМ: 001 [14:38:11]line ФМ: 0000000000871776 [14:38:11]line ФД: 139741 [14:38:11]line ФПД: 184250220296798 [14:38:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T143809&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139741&fm=184250220296798&tin=02508201610067®Number=0000000000092569&sum=100000 [14:38:11]OFD Sender: Processing packet 139741 [packets to send 137, broken 136] [14:38:11]ProducePacketName [14:38:11]name=ofd_packets/00139741 [14:38:11]OFD Sender: To server: pG, [14:38:11]CommunicateWithHost lk.salyk.kg:30040 [14:38:11]ConnectInit lk.salyk.kg [14:38:11]written 0, free lines is 4095 [14:38:11]Connected sock=11 [14:38:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B9 2C 08 01 07 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 D5 00 00 00 F4 03 04 00 51 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 21 02 00 35 04 06 00 A7 93 18 EE 3A 5E 54 6D B8 FC 28 E6 AA 97 [14:38:12]Write to MH i2c: 01 00 00 9F 02 A1 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 07 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 E0 0C 94 [14:38:12]RasterBufferAndPrint [14:38:12]line [14:38:12]line [14:38:12]line [14:38:12]line [14:38:12]line [14:38:12]written 0, free lines is 3302 [14:38:12]MH_Cut [14:38:12]Write to MH i2c: D1 01 00 A6 02 01 7A [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: D1 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: D1 01 00 [14:38:12]MH_I2C_Read... [14:38:12]Read from MH i2c: D1 01 00 A6 02 00 79 [14:38:12]Write to MH i2c: 01 00 00 A7 02 A9 [14:38:12]Write i2c OK [14:38:12]MH_I2C_Read... [14:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 0F BF 47 00 57 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 21 02 00 F4 03 04 00 E4 50 C4 66 B6 04 01 00 00 81 5B 80 E3 75 20 85 FD [14:38:12]CommunicateWithHost err = 0 [14:38:12]CheckOFDResponse [14:38:12]1017 (14) - 77093643461234 [14:38:12]1041 (16) - 0000000000871776 [14:38:12]1040 (4) - 139741 [14:38:12]1012 (4) - 20.08.2024 08:16 [14:38:12]1206 (1) - 0 [14:38:12]OFD Sender: Remove packet 139741 [14:38:12]ProducePacketName [14:38:12]name=ofd_packets/00139741 [14:38:12]NVStorageDeleteData [14:38:12]OFD Sender: No OFD packet to send [14:38:12]*** Cut start [14:38:12]*** Partial cut [14:38:12]*** CUTSNS_PIN = 1 [14:38:12]*** CUTSNS_PIN = 0 [14:38:12]*** Brake cut motor [14:38:13]Read from MH i2c: 01 [14:38:13]MH_I2C_Read... [14:38:13]*** Stop cut motor [14:38:13]*** Cut end [14:38:13]Read from MH i2c: 01 07 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 FF 0F BE [14:38:13]process_action close_receipt done [14:38:13]requested_data is exist [14:38:13]produce_requested_data [14:38:13]requested_item fm.sn is exist - process it [14:38:13]wFMCommunicate request_size=4 [14:38:13]MH_SAM_APDU [14:38:13]CAPDU: 80 11 00 00 [14:38:13]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:13]Read from MH i2c: E2 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 17 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7B [14:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:38:13]wFMCommunicate OK [14:38:13]requested_item fd.num is exist - process it [14:38:13]SAM_PROTO_GetFieldsCounters [14:38:13]wFMCommunicate request_size=4 [14:38:13]MH_SAM_APDU [14:38:13]CAPDU: 80 13 00 00 [14:38:13]Write to MH i2c: E2 08 00 A9 02 80 13 00 00 00 00 00 00 27 [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:13]Read from MH i2c: E2 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 62 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 62 00 A9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [14:38:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 21 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:13]wFMCommunicate OK [14:38:13]SAM_PROTO_GetFieldsCounters done [14:38:13]requested_item shift.num is exist - process it [14:38:13]requested_item shift.opened is exist - process it [14:38:13]req_shift_opened [14:38:13]FM_GetShiftState [14:38:13]SAM_PROTO_GetShiftState [14:38:13]wFMCommunicate request_size=4 [14:38:13]MH_SAM_APDU [14:38:13]CAPDU: 80 13 01 00 [14:38:13]Write to MH i2c: E2 08 00 AA 02 80 13 01 00 00 00 00 00 29 [14:38:13]Write i2c OK [14:38:13]MH_I2C_Read... [14:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:13]Read from MH i2c: E2 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 0E 00 [14:38:13]MH_I2C_Read... [14:38:13]Read from MH i2c: E2 0E 00 AA 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BA [14:38:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:38:13]wFMCommunicate OK [14:38:13]SAM_PROTO_GetShiftState done [14:38:13]FM_GetShiftState done [14:38:13]req_shift_opened done [14:38:13]requested_item shift.open_date is exist - process it [14:38:13]req_shift_open_date [14:38:13]req_shift_open_date done [14:38:13]produce_requested_data done [14:38:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139741,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:38:13]process_action_free close_receipt [14:38:13]json_value_free [14:38:13]json_value_free done [14:38:13]process_json_proto returns [14:38:13]Send response to host [14:38:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139741,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:38:13]free response buf [14:38:13]execute_script done [14:38:13]execute_script returns [14:38:13]free content buf [14:38:13]Sock 9.Close socket [14:38:13]Sock 9.Thread stoped [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:25]accept exits with 7 [14:38:25]New connection [14:38:25]New thread 3067039076 created [14:38:25]Thread 3067182436 joined [14:38:25]Waiting for new connection... [14:38:25] Sock 7.Parse request [14:38:25]Sock 7.Check first char [14:38:25]Sock 7.First char is OK [14:38:25]request: POST /json_proto HTTP/1.0 [14:38:25]Method: POST [14:38:25]URL: /json_proto [14:38:25]Method is POST - this is cgi request [14:38:25]url: /json_proto [14:38:25]query_string will be loaded in cgi processing [14:38:25]execute_cgi json_proto POST (null) [14:38:25]execute_cgi path=json_proto method=POST [14:38:25]POST find Content-Length [14:38:25]Host: 172.17.45.67:8080 [14:38:25]Content-Length: 677 [14:38:25]Content-Type: application/json [14:38:25] [14:38:25]POST finish read [14:38:25]Found Content-Length = 677 [14:38:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:25]execute_script... [14:38: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)593590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:25]POST & json_proto [14:38:25]process_json_proto [14:38:25]json parsed OK: [14:38:25]protocol is kg_v1.0 [14:38:25]action value=close_receipt [14:38:25]process_action close_receipt [14:38:25]cmd_close_receipt [14:38:25]MH_GetDate [14:38:25]Write to MH i2c: F0 00 00 AB 02 9C [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: F0 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: F0 09 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: F0 09 00 AB 02 00 62 AA C4 66 5F 7F 2B 66 4A [14:38:25]GetLastDocTimeStamp 1724164689 [14:38:25]current date 1724164706 [14:38:25]FM_GetShiftState [14:38:25]SAM_PROTO_GetShiftState [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 13 01 00 [14:38:25]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:25]Read from MH i2c: E2 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 0E 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BC [14:38:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:38:25]wFMCommunicate OK [14:38:25]SAM_PROTO_GetShiftState done [14:38:25]FM_GetShiftState done [14:38:25]opened in 1724113785 [14:38:25]opened+sec_in_day 1724200185 [14:38:25]quantity*price = 40002 [14:38:25]sum+1 = 40003 [14:38:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 214 20.08.2024 14:38 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139742 ФПД: 98958239610818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T143826&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139742&fm=98958239610818&tin=02508201610067®Number=0000000000092569&sum=40000 [14:38:27]StoreToDocumentArchive [14:38:27]shift 453 fd 139742 [14:38:27]save to /storage/0453/doc_00139742 [14:38:27]save last doc name /storage/0453/doc_00139742 to /storage/kkm_last_doc_name [14:38:27]save OK [14:38:27]Clear old archive folders... [14:38:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:27]tlvbuf is 016958C0 [14:38:27]SAM_PROTO_ClearQueue [14:38:27]wFMCommunicate request_size=4 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 09 00 00 [14:38:27]Write to MH i2c: E2 08 00 B9 02 80 09 00 00 00 00 00 00 2D [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 03 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [14:38:27]RAPDU: 90 00 [14:38:27]wFMCommunicate OK [14:38:27]SAM_PROTO_ClearQueue done [14:38:27]KKMCreateOFDPacket [14:38:27]OFDProtocolAddRootSTLVToBuf [14:38:27]FM_MakeSignedData [14:38:27]FM_MakeSignedData [14:38:27]SAM_PROTO_SignData [14:38:27]wFMCommunicate request_size=4 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 0D 01 02 [14:38:27]Write to MH i2c: E2 08 00 BA 02 80 0D 01 02 00 00 00 00 35 [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 03 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [14:38:27]RAPDU: 90 00 [14:38:27]wFMCommunicate OK [14:38:27]wFMCommunicate request_size=255 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 62 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 21 02 00 35 04 06 00 5A [14:38:27]Write to MH i2c: E2 02 01 BB 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 62 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 21 02 00 35 04 06 00 5A 00 00 D0 [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 03 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [14:38:27]RAPDU: 90 00 [14:38:27]wFMCommunicate OK [14:38:27]wFMCommunicate request_size=10 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 0D 02 02 05 00 82 B8 37 C2 [14:38:27]Write to MH i2c: E2 0D 00 BC 02 80 0D 02 02 05 00 00 82 B8 37 C2 00 00 75 [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 03 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [14:38:27]RAPDU: 90 00 [14:38:27]wFMCommunicate OK [14:38:27]wFMCommunicate request_size=4 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 0D 03 02 [14:38:27]Write to MH i2c: E2 08 00 BD 02 80 0D 03 02 00 00 00 00 3A [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 0B 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 0B 00 BD 02 00 2B C5 A6 42 7A 4E 56 7F 90 00 B0 [14:38:27]RAPDU: 2B C5 A6 42 7A 4E 56 7F 90 00 [14:38:27]wFMCommunicate OK [14:38:27]SAM_PROTO_SignData done [14:38:27]FM_MakeSignedData done [14:38:27]CreateOFDProtocolMessage [14:38:27]wFMCommunicate request_size=4 [14:38:27]MH_SAM_APDU [14:38:27]CAPDU: 80 11 00 00 [14:38:27]Write to MH i2c: E2 08 00 BE 02 80 11 00 00 00 00 00 00 3A [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:27]Read from MH i2c: E2 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 17 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: E2 17 00 BE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 91 [14:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:38:27]wFMCommunicate OK [14:38:27]CreateOFDProtocolMessage done [14:38:27]OFDSenderStorePacket 139742 [14:38:27]StoreOFDPacket docnum=139742 [14:38:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 65 BC 07 01 6A 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 62 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 21 02 00 35 04 06 00 5A 00 82 B8 37 C2 2B C5 A6 42 7A 4E 56 7F [14:38:27]CheckFolder [14:38:27]dirname=/storage/ofd_packets [14:38:27]CheckFolder done [14:38:27]ProducePacketName [14:38:27]name=ofd_packets/00139742 [14:38:27]NVStorageSaveData ofd_packets/00139742 [14:38:27]File name is /storage/ofd_packets/00139742 [14:38:27]Write 301 bytes [14:38:27]NVStorageSaveData done [14:38:27]OFDSenderStorePacket done [14:38:27]KKMCreateOFDPacket done [14:38:27]NVStorageSaveData kkm_last_timestamp [14:38:27]File name is /storage/kkm_last_timestamp [14:38:27]Write 4 bytes [14:38:27]NVStorageSaveData done [14:38:27]ExternCall_PrintAddStr [14:38:27]wPrintStart [14:38:27]Write to MH i2c: 01 00 00 BF 02 C1 [14:38:27]Write i2c OK [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: 01 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: 01 07 00 [14:38:27]MH_I2C_Read... [14:38:27]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [14:38:27]RasterBufferAndPrint [14:38:27]line Счет N : (1)593590 [14:38:27]line ИНН: 02508201610067 [14:38:27]line Контрольно-Кассовый Чек [14:38:27]line ПРОДАЖА [14:38:27]line ТРК (МРК, ГНК) : 52 [14:38:27]line Товар: 2710124130 [14:38:27]line Аи-92-К-5 [14:38:27]line 5.900 * 67.80 [14:38:27]line = 400.02 [14:38:27]line НДС 12% НСП 1% [14:38:27]line > о реализуемом товаре [14:38:27]line ОКРУГЛЕНИЕ: -0.02 [14:38:27]line ИТОГО: 400.00 [14:38:27]line Внесено: 400.00 [14:38:27]line СДАЧА: 0.00 [14:38:27]line НСП 1% : 3.54 [14:38:27]line НДС 12% : 42.48 [14:38:27]line Наличными: 400.00 [14:38:27]line Безнал.: 0.00 [14:38:27]line Место: АЗС № 136 "Партнер Нефть" [14:38:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:38:27]line СНО: Общий режим [14:38:27]line Чек 214 20.08.2024 14:38 [14:38:27]line Смена: 453 ФФД: 1.0 [14:38:27]line ЗНМ: 0300000067 [14:38:27]line РНМ: 0000000000092569 [14:38:27]line Версия ККМ: 001 [14:38:27]line ФМ: 0000000000871776 [14:38:27]line ФД: 139742 [14:38:27]line ФПД: 98958239610818 [14:38:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T143826&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139742&fm=98958239610818&tin=02508201610067®Number=0000000000092569&sum=40000 [14:38:27]OFD Sender: Processing packet 139742 [packets to send 137, broken 136] [14:38:27]ProducePacketName [14:38:27]name=ofd_packets/00139742 [14:38:27]OFD Sender: To server: pG, [14:38:27]CommunicateWithHost lk.salyk.kg:30040 [14:38:27]ConnectInit lk.salyk.kg [14:38:27]written 0, free lines is 4095 [14:38:28]Connected sock=11 [14:38:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 65 BC 07 01 6A 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 62 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 21 02 00 35 04 06 00 5A 00 82 B8 37 C2 2B C5 A6 42 7A 4E 56 7F [14:38:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F5 23 47 00 F2 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 21 02 00 F4 03 04 00 F5 50 C4 66 B6 04 01 00 00 A4 7E 41 1C 56 7C EE D0 [14:38:28]CommunicateWithHost err = 0 [14:38:28]CheckOFDResponse [14:38:28]1017 (14) - 77093643461234 [14:38:28]1041 (16) - 0000000000871776 [14:38:28]1040 (4) - 139742 [14:38:28]1012 (4) - 20.08.2024 08:16 [14:38:28]1206 (1) - 0 [14:38:28]OFD Sender: Remove packet 139742 [14:38:28]ProducePacketName [14:38:28]name=ofd_packets/00139742 [14:38:28]NVStorageDeleteData [14:38:28]Write to MH i2c: 01 00 00 EA 02 EC [14:38:28]Write i2c OK [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: 01 [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: 01 07 00 [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 D4 0C D3 [14:38:28]RasterBufferAndPrint [14:38:28]line [14:38:28]line [14:38:28]line [14:38:28]line [14:38:28]line [14:38:28]written 0, free lines is 3292 [14:38:28]MH_Cut [14:38:28]Write to MH i2c: D1 01 00 F1 02 01 C5 [14:38:28]Write i2c OK [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: D1 [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: D1 01 00 [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: D1 01 00 F1 02 00 C4 [14:38:28]Write to MH i2c: 01 00 00 F2 02 F4 [14:38:28]Write i2c OK [14:38:28]MH_I2C_Read... [14:38:28]OFD Sender: No OFD packet to send [14:38:29]*** Cut start [14:38:29]*** Partial cut [14:38:29]*** CUTSNS_PIN = 1 [14:38:29]*** CUTSNS_PIN = 0 [14:38:29]*** Brake cut motor [14:38:29]Read from MH i2c: 01 [14:38:29]MH_I2C_Read... [14:38:29]*** Stop cut motor [14:38:29]*** Cut end [14:38:29]Read from MH i2c: 01 07 00 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 FF 0F 09 [14:38:29]process_action close_receipt done [14:38:29]requested_data is exist [14:38:29]produce_requested_data [14:38:29]requested_item fm.sn is exist - process it [14:38:29]wFMCommunicate request_size=4 [14:38:29]MH_SAM_APDU [14:38:29]CAPDU: 80 11 00 00 [14:38:29]Write to MH i2c: E2 08 00 F3 02 80 11 00 00 00 00 00 00 6F [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:29]Read from MH i2c: E2 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 17 00 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 17 00 F3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C6 [14:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:38:29]wFMCommunicate OK [14:38:29]requested_item fd.num is exist - process it [14:38:29]SAM_PROTO_GetFieldsCounters [14:38:29]wFMCommunicate request_size=4 [14:38:29]MH_SAM_APDU [14:38:29]CAPDU: 80 13 00 00 [14:38:29]Write to MH i2c: E2 08 00 F4 02 80 13 00 00 00 00 00 00 72 [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:29]Read from MH i2c: E2 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 62 00 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 62 00 F4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 21 02 00 0E 04 04 00 C5 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 E6 [14:38:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 21 02 00 0E 04 04 00 C5 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 [14:38:29]wFMCommunicate OK [14:38:29]SAM_PROTO_GetFieldsCounters done [14:38:29]requested_item shift.num is exist - process it [14:38:29]requested_item shift.opened is exist - process it [14:38:29]req_shift_opened [14:38:29]FM_GetShiftState [14:38:29]SAM_PROTO_GetShiftState [14:38:29]wFMCommunicate request_size=4 [14:38:29]MH_SAM_APDU [14:38:29]CAPDU: 80 13 01 00 [14:38:29]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:29]Read from MH i2c: E2 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 0E 00 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 05 [14:38:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:38:29]wFMCommunicate OK [14:38:29]SAM_PROTO_GetShiftState done [14:38:29]FM_GetShiftState done [14:38:29]req_shift_opened done [14:38:29]requested_item shift.open_date is exist - process it [14:38:29]req_shift_open_date [14:38:29]req_shift_open_date done [14:38:29]produce_requested_data done [14:38:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139742,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:38:29]process_action_free close_receipt [14:38:29]json_value_free [14:38:29]json_value_free done [14:38:29]process_json_proto returns [14:38:29]Send response to host [14:38:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139742,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:38:29]free response buf [14:38:29]execute_script done [14:38:29]execute_script returns [14:38:29]free content buf [14:38:29]Sock 7.Close socket [14:38:29]Sock 7.Thread stoped [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:33]accept exits with 9 [14:40:33]New connection [14:40:33]New thread 3067182436 created [14:40:33]Thread 3067039076 joined [14:40:33]Waiting for new connection... [14:40:33] Sock 9.Parse request [14:40:33]Sock 9.Check first char [14:40:33]Sock 9.First char is OK [14:40:33]request: POST /json_proto HTTP/1.0 [14:40:33]Method: POST [14:40:33]URL: /json_proto [14:40:33]Method is POST - this is cgi request [14:40:33]url: /json_proto [14:40:33]query_string will be loaded in cgi processing [14:40:33]execute_cgi json_proto POST (null) [14:40:33]execute_cgi path=json_proto method=POST [14:40:33]POST find Content-Length [14:40:33]Host: 172.17.45.67:8080 [14:40:33]Content-Length: 677 [14:40:33]Content-Type: application/json [14:40:33] [14:40:33]POST finish read [14:40:33]Found Content-Length = 677 [14:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:33]execute_script... [14:40: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)593591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:33]POST & json_proto [14:40:33]process_json_proto [14:40:33]json parsed OK: [14:40:33]protocol is kg_v1.0 [14:40:33]action value=close_receipt [14:40:33]process_action close_receipt [14:40:33]cmd_close_receipt [14:40:33]MH_GetDate [14:40:33]Write to MH i2c: F0 00 00 F6 02 E7 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: F0 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: F0 09 00 [14:40:33]MH_I2C_Read... [14:40:33]Read from MH i2c: F0 09 00 F6 02 00 E2 AA C4 66 5F 7F 2B 66 15 [14:40:33]GetLastDocTimeStamp 1724164706 [14:40:33]current date 1724164834 [14:40:33]FM_GetShiftState [14:40:33]SAM_PROTO_GetShiftState [14:40:33]wFMCommunicate request_size=4 [14:40:33]MH_SAM_APDU [14:40:33]CAPDU: 80 13 01 00 [14:40:33]Write to MH i2c: E2 08 00 F7 02 80 13 01 00 00 00 00 00 76 [14:40:33]Write i2c OK [14:40:33]MH_I2C_Read... [14:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:34]Read from MH i2c: E2 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: E2 0E 00 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: E2 0E 00 F7 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 07 [14:40:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:40:34]wFMCommunicate OK [14:40:34]SAM_PROTO_GetShiftState done [14:40:34]FM_GetShiftState done [14:40:34]opened in 1724113785 [14:40:34]opened+sec_in_day 1724200185 [14:40:34]quantity*price = 30035 [14:40:34]sum+1 = 30036 [14:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 215 20.08.2024 14:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139743 ФПД: 238583308874996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T144034&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139743&fm=238583308874996&tin=02508201610067®Number=0000000000092569&sum=30000 [14:40:35]StoreToDocumentArchive [14:40:35]shift 453 fd 139743 [14:40:35]save to /storage/0453/doc_00139743 [14:40:35]save last doc name /storage/0453/doc_00139743 to /storage/kkm_last_doc_name [14:40:35]save OK [14:40:35]Clear old archive folders... [14:40:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:35]tlvbuf is 0169A5B0 [14:40:35]SAM_PROTO_ClearQueue [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 09 00 00 [14:40:35]Write to MH i2c: E2 08 00 04 03 80 09 00 00 00 00 00 00 79 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]SAM_PROTO_ClearQueue done [14:40:35]KKMCreateOFDPacket [14:40:35]OFDProtocolAddRootSTLVToBuf [14:40:35]FM_MakeSignedData [14:40:35]FM_MakeSignedData [14:40:35]SAM_PROTO_SignData [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 01 02 [14:40:35]Write to MH i2c: E2 08 00 05 03 80 0D 01 02 00 00 00 00 81 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]wFMCommunicate request_size=255 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 E2 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 21 02 00 35 04 06 00 D8 [14:40:35]Write to MH i2c: E2 02 01 06 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 E2 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 21 02 00 35 04 06 00 D8 00 00 56 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]wFMCommunicate request_size=10 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 02 02 05 FD 81 5F F4 F4 [14:40:35]Write to MH i2c: E2 0D 00 07 03 80 0D 02 02 05 00 FD 81 5F F4 F4 00 00 53 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 03 02 [14:40:35]Write to MH i2c: E2 08 00 08 03 80 0D 03 02 00 00 00 00 86 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 0B 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 0B 00 08 03 00 B3 50 49 6C 0C 82 E0 F6 90 00 A3 [14:40:35]RAPDU: B3 50 49 6C 0C 82 E0 F6 90 00 [14:40:35]wFMCommunicate OK [14:40:35]SAM_PROTO_SignData done [14:40:35]FM_MakeSignedData done [14:40:35]CreateOFDProtocolMessage [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 11 00 00 [14:40:35]Write to MH i2c: E2 08 00 09 03 80 11 00 00 00 00 00 00 86 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 09 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DD [14:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:40:35]wFMCommunicate OK [14:40:35]CreateOFDProtocolMessage done [14:40:35]OFDSenderStorePacket 139743 [14:40:35]StoreOFDPacket docnum=139743 [14:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 46 C3 07 01 3E 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 E2 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 21 02 00 35 04 06 00 D8 FD 81 5F F4 F4 B3 50 49 6C 0C 82 E0 F6 [14:40:35]CheckFolder [14:40:35]dirname=/storage/ofd_packets [14:40:35]CheckFolder done [14:40:35]ProducePacketName [14:40:35]name=ofd_packets/00139743 [14:40:35]NVStorageSaveData ofd_packets/00139743 [14:40:35]File name is /storage/ofd_packets/00139743 [14:40:35]Write 301 bytes [14:40:35]NVStorageSaveData done [14:40:35]OFDSenderStorePacket done [14:40:35]KKMCreateOFDPacket done [14:40:35]NVStorageSaveData kkm_last_timestamp [14:40:35]File name is /storage/kkm_last_timestamp [14:40:35]Write 4 bytes [14:40:35]NVStorageSaveData done [14:40:35]OFD Sender: Processing packet 139743 [packets to send 137, broken 136] [14:40:35]ProducePacketName [14:40:35]name=ofd_packets/00139743 [14:40:35]OFD Sender: To server: pG, [14:40:35]CommunicateWithHost lk.salyk.kg:30040 [14:40:35]ConnectInit lk.salyk.kg [14:40:35]ExternCall_PrintAddStr [14:40:35]wPrintStart [14:40:35]Write to MH i2c: 01 00 00 0A 03 0D [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 07 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 FF 0F 22 [14:40:35]RasterBufferAndPrint [14:40:35]line Счет N : (1)593591 [14:40:35]line ИНН: 02508201610067 [14:40:35]line Контрольно-Кассовый Чек [14:40:35]line ПРОДАЖА [14:40:35]line ТРК (МРК, ГНК) : 42 [14:40:35]line Товар: 2710124130 [14:40:35]line Аи-92-К-5 [14:40:35]line 4.430 * 67.80 [14:40:35]line = 300.35 [14:40:35]line НДС 12% НСП 1% [14:40:35]line > о реализуемом товаре [14:40:35]line ОКРУГЛЕНИЕ: -0.35 [14:40:35]line ИТОГО: 300.00 [14:40:35]line Внесено: 300.00 [14:40:35]line СДАЧА: 0.00 [14:40:35]line НСП 1% : 2.66 [14:40:35]line НДС 12% : 31.90 [14:40:35]line Наличными: 300.00 [14:40:35]line Безнал.: 0.00 [14:40:35]line Место: АЗС № 136 "Партнер Нефть" [14:40:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:40:35]line СНО: Общий режим [14:40:35]line Чек 215 20.08.2024 14:40 [14:40:35]line Смена: 453 ФФД: 1.0 [14:40:35]line ЗНМ: 0300000067 [14:40:35]line РНМ: 0000000000092569 [14:40:35]line Версия ККМ: 001 [14:40:35]line ФМ: 0000000000871776 [14:40:35]line ФД: 139743 [14:40:35]line ФПД: 238583308874996 [14:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T144034&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139743&fm=238583308874996&tin=02508201610067®Number=0000000000092569&sum=30000 [14:40:36]Connected sock=11 [14:40:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 46 C3 07 01 3E 59 5A 03 01 written 0, free lines is 4095 [14:40:36]00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 E2 AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 21 02 00 35 04 06 00 D8 FD 81 5F F4 F4 B3 50 49 6C 0C 82 E0 F6 [14:40:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AB B1 47 00 C7 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 21 02 00 F4 03 04 00 75 51 C4 66 B6 04 01 00 00 73 61 67 C8 5D 83 4F AB [14:40:36]CommunicateWithHost err = 0 [14:40:36]CheckOFDResponse [14:40:36]1017 (14) - 77093643461234 [14:40:36]1041 (16) - 0000000000871776 [14:40:36]1040 (4) - 139743 [14:40:36]1012 (4) - 20.08.2024 08:19 [14:40:36]1206 (1) - 0 [14:40:36]OFD Sender: Remove packet 139743 [14:40:36]ProducePacketName [14:40:36]name=ofd_packets/00139743 [14:40:36]NVStorageDeleteData [14:40:36]Write to MH i2c: 01 00 00 35 03 38 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 07 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 07 00 35 03 00 00 00 00 00 CD 0C 18 [14:40:36]RasterBufferAndPrint [14:40:36]line [14:40:36]line [14:40:36]line [14:40:36]line [14:40:36]line [14:40:36]written 0, free lines is 3287 [14:40:36]MH_Cut [14:40:36]Write to MH i2c: D1 01 00 3C 03 01 11 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: D1 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: D1 01 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: D1 01 00 3C 03 00 10 [14:40:36]Write to MH i2c: 01 00 00 3D 03 40 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]OFD Sender: No OFD packet to send [14:40:37]*** Cut start [14:40:37]*** Partial cut [14:40:37]*** CUTSNS_PIN = 1 [14:40:37]*** CUTSNS_PIN = 0 [14:40:37]*** Brake cut motor [14:40:37]Read from MH i2c: 01 [14:40:37]MH_I2C_Read... [14:40:37]*** Stop cut motor [14:40:37]*** Cut end [14:40:37]Read from MH i2c: 01 07 00 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 FF 0F 55 [14:40:37]process_action close_receipt done [14:40:37]requested_data is exist [14:40:37]produce_requested_data [14:40:37]requested_item fm.sn is exist - process it [14:40:37]wFMCommunicate request_size=4 [14:40:37]MH_SAM_APDU [14:40:37]CAPDU: 80 11 00 00 [14:40:37]Write to MH i2c: E2 08 00 3E 03 80 11 00 00 00 00 00 00 BB [14:40:37]Write i2c OK [14:40:37]MH_I2C_Read... [14:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:37]Read from MH i2c: E2 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: E2 17 00 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: E2 17 00 3E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 12 [14:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:40:37]wFMCommunicate OK [14:40:37]requested_item fd.num is exist - process it [14:40:37]SAM_PROTO_GetFieldsCounters [14:40:37]wFMCommunicate request_size=4 [14:40:37]MH_SAM_APDU [14:40:37]CAPDU: 80 13 00 00 [14:40:37]Write to MH i2c: E2 08 00 3F 03 80 13 00 00 00 00 00 00 BE [14:40:37]Write i2c OK [14:40:37]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:38]Read from MH i2c: E2 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 62 00 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 62 00 3F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 21 02 00 0E 04 04 00 C5 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 36 [14:40:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 21 02 00 0E 04 04 00 C5 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 [14:40:38]wFMCommunicate OK [14:40:38]SAM_PROTO_GetFieldsCounters done [14:40:38]requested_item shift.num is exist - process it [14:40:38]requested_item shift.opened is exist - process it [14:40:38]req_shift_opened [14:40:38]FM_GetShiftState [14:40:38]SAM_PROTO_GetShiftState [14:40:38]wFMCommunicate request_size=4 [14:40:38]MH_SAM_APDU [14:40:38]CAPDU: 80 13 01 00 [14:40:38]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [14:40:38]Write i2c OK [14:40:38]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:38]Read from MH i2c: E2 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 0E 00 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 51 [14:40:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:40:38]wFMCommunicate OK [14:40:38]SAM_PROTO_GetShiftState done [14:40:38]FM_GetShiftState done [14:40:38]req_shift_opened done [14:40:38]requested_item shift.open_date is exist - process it [14:40:38]req_shift_open_date [14:40:38]req_shift_open_date done [14:40:38]produce_requested_data done [14:40:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139743,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:40:38]process_action_free close_receipt [14:40:38]json_value_free [14:40:38]json_value_free done [14:40:38]process_json_proto returns [14:40:38]Send response to host [14:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139743,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:40:38]free response buf [14:40:38]execute_script done [14:40:38]execute_script returns [14:40:38]free content buf [14:40:38]Sock 9.Close socket [14:40:38]Sock 9.Thread stoped [14:40:41]OFD Sender: No OFD packet to send [14:40:43]accept exits with 7 [14:40:43]New connection [14:40:43]New thread 3067039076 created [14:40:43]Thread 3067182436 joined [14:40:43]Waiting for new connection... [14:40:43] Sock 7.Parse request [14:40:43]Sock 7.Check first char [14:40:43]Sock 7.First char is OK [14:40:43]request: POST /json_proto HTTP/1.0 [14:40:43]Method: POST [14:40:43]URL: /json_proto [14:40:43]Method is POST - this is cgi request [14:40:43]url: /json_proto [14:40:43]query_string will be loaded in cgi processing [14:40:43]execute_cgi json_proto POST (null) [14:40:43]execute_cgi path=json_proto method=POST [14:40:43]POST find Content-Length [14:40:43]Host: 172.17.45.67:8080 [14:40:43]Content-Length: 677 [14:40:43]Content-Type: application/json [14:40:43] [14:40:43]POST finish read [14:40:43]Found Content-Length = 677 [14:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:43]execute_script... [14:40: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)593592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:43]POST & json_proto [14:40:43]process_json_proto [14:40:43]json parsed OK: [14:40:43]protocol is kg_v1.0 [14:40:43]action value=close_receipt [14:40:43]process_action close_receipt [14:40:43]cmd_close_receipt [14:40:43]MH_GetDate [14:40:43]Write to MH i2c: F0 00 00 41 03 33 [14:40:43]Write i2c OK [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: F0 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: F0 09 00 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: F0 09 00 41 03 00 EB AA C4 66 5F 7F 2B 66 6A [14:40:43]GetLastDocTimeStamp 1724164834 [14:40:43]current date 1724164843 [14:40:43]FM_GetShiftState [14:40:43]SAM_PROTO_GetShiftState [14:40:43]wFMCommunicate request_size=4 [14:40:43]MH_SAM_APDU [14:40:43]CAPDU: 80 13 01 00 [14:40:43]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [14:40:43]Write i2c OK [14:40:43]MH_I2C_Read... [14:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:43]Read from MH i2c: E2 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 0E 00 [14:40:43]MH_I2C_Read... [14:40:43]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 53 [14:40:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:40:43]wFMCommunicate OK [14:40:43]SAM_PROTO_GetShiftState done [14:40:43]FM_GetShiftState done [14:40:43]opened in 1724113785 [14:40:43]opened+sec_in_day 1724200185 [14:40:43]quantity*price = 50036 [14:40:43]sum+1 = 50037 [14:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 216 20.08.2024 14:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139744 ФПД: 168455890330537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T144043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139744&fm=168455890330537&tin=02508201610067®Number=0000000000092569&sum=50000 [14:40:44]StoreToDocumentArchive [14:40:44]shift 453 fd 139744 [14:40:44]save to /storage/0453/doc_00139744 [14:40:44]save last doc name /storage/0453/doc_00139744 to /storage/kkm_last_doc_name [14:40:44]save OK [14:40:44]Clear old archive folders... [14:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:44]tlvbuf is 016E5EA0 [14:40:44]SAM_PROTO_ClearQueue [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 09 00 00 [14:40:44]Write to MH i2c: E2 08 00 4F 03 80 09 00 00 00 00 00 00 C4 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [14:40:44]RAPDU: 90 00 [14:40:44]wFMCommunicate OK [14:40:44]SAM_PROTO_ClearQueue done [14:40:44]KKMCreateOFDPacket [14:40:44]OFDProtocolAddRootSTLVToBuf [14:40:44]FM_MakeSignedData [14:40:44]FM_MakeSignedData [14:40:44]SAM_PROTO_SignData [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 0D 01 02 [14:40:44]Write to MH i2c: E2 08 00 50 03 80 0D 01 02 00 00 00 00 CC [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [14:40:44]RAPDU: 90 00 [14:40:44]wFMCommunicate OK [14:40:44]wFMCommunicate request_size=255 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EB AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 21 02 00 35 04 06 00 99 [14:40:44]Write to MH i2c: E2 02 01 51 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EB AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 21 02 00 35 04 06 00 99 00 00 4E [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [14:40:45]RAPDU: 90 00 [14:40:45]wFMCommunicate OK [14:40:45]wFMCommunicate request_size=10 [14:40:45]MH_SAM_APDU [14:40:45]CAPDU: 80 0D 02 02 05 35 B1 80 E3 A9 [14:40:45]Write to MH i2c: E2 0D 00 52 03 80 0D 02 02 05 00 35 B1 80 E3 A9 00 00 CB [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [14:40:45]RAPDU: 90 00 [14:40:45]wFMCommunicate OK [14:40:45]wFMCommunicate request_size=4 [14:40:45]MH_SAM_APDU [14:40:45]CAPDU: 80 0D 03 02 [14:40:45]Write to MH i2c: E2 08 00 53 03 80 0D 03 02 00 00 00 00 D1 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 0B 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 0B 00 53 03 00 68 87 DA E5 C6 D2 BD 3B 90 00 10 [14:40:45]RAPDU: 68 87 DA E5 C6 D2 BD 3B 90 00 [14:40:45]wFMCommunicate OK [14:40:45]SAM_PROTO_SignData done [14:40:45]FM_MakeSignedData done [14:40:45]CreateOFDProtocolMessage [14:40:45]wFMCommunicate request_size=4 [14:40:45]MH_SAM_APDU [14:40:45]CAPDU: 80 11 00 00 [14:40:45]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 17 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 17 00 54 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 28 [14:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:40:45]wFMCommunicate OK [14:40:45]CreateOFDProtocolMessage done [14:40:45]OFDSenderStorePacket 139744 [14:40:45]StoreOFDPacket docnum=139744 [14:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A4 60 07 01 3A FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EB AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 21 02 00 35 04 06 00 99 35 B1 80 E3 A9 68 87 DA E5 C6 D2 BD 3B [14:40:45]CheckFolder [14:40:45]dirname=/storage/ofd_packets [14:40:45]CheckFolder done [14:40:45]ProducePacketName [14:40:45]name=ofd_packets/00139744 [14:40:45]NVStorageSaveData ofd_packets/00139744 [14:40:45]File name is /storage/ofd_packets/00139744 [14:40:45]Write 301 bytes [14:40:45]NVStorageSaveData done [14:40:45]OFDSenderStorePacket done [14:40:45]KKMCreateOFDPacket done [14:40:45]NVStorageSaveData kkm_last_timestamp [14:40:45]File name is /storage/kkm_last_timestamp [14:40:45]Write 4 bytes [14:40:45]NVStorageSaveData done [14:40:45]ExternCall_PrintAddStr [14:40:45]wPrintStart [14:40:45]Write to MH i2c: 01 00 00 55 03 58 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 FF 0F 6D [14:40:45]RasterBufferAndPrint [14:40:45]line Счет N : (1)593592 [14:40:45]line ИНН: 02508201610067 [14:40:45]line Контрольно-Кассовый Чек [14:40:45]line ПРОДАЖА [14:40:45]line ТРК (МРК, ГНК) : 62 [14:40:45]line Товар: 2710124130 [14:40:45]line Аи-92-К-5 [14:40:45]line 7.380 * 67.80 [14:40:45]line = 500.36 [14:40:45]line НДС 12% НСП 1% [14:40:45]line > о реализуемом товаре [14:40:45]line ОКРУГЛЕНИЕ: -0.36 [14:40:45]line ИТОГО: 500.00 [14:40:45]line Внесено: 500.00 [14:40:45]line СДАЧА: 0.00 [14:40:45]line НСП 1% : 4.43 [14:40:45]line НДС 12% : 53.14 [14:40:45]line Наличными: 500.00 [14:40:45]line Безнал.: 0.00 [14:40:45]line Место: АЗС № 136 "Партнер Нефть" [14:40:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:40:45]line СНО: Общий режим [14:40:45]line Чек 216 20.08.2024 14:40 [14:40:45]line Смена: 453 ФФД: 1.0 [14:40:45]line ЗНМ: 0300000067 [14:40:45]line РНМ: 0000000000092569 [14:40:45]line Версия ККМ: 001 [14:40:45]line ФМ: 0000000000871776 [14:40:45]line ФД: 139744 [14:40:45]line ФПД: 168455890330537 [14:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T144043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139744&fm=168455890330537&tin=02508201610067®Number=0000000000092569&sum=50000 [14:40:45]written 0, free lines is 4095 [14:40:45]OFD Sender: Processing packet 139744 [packets to send 137, broken 136] [14:40:45]ProducePacketName [14:40:45]name=ofd_packets/00139744 [14:40:45]OFD Sender: To server: pG, [14:40:45]CommunicateWithHost lk.salyk.kg:30040 [14:40:45]ConnectInit lk.salyk.kg [14:40:45]Connected sock=10 [14:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A4 60 07 01 3A FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EB AA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 21 02 00 35 04 06 00 99 35 B1 80 E3 A9 68 87 DA E5 C6 D2 BD 3B [14:40:45]Write to MH i2c: 01 00 00 80 03 83 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: 01 07 00 80 03 00 00 00 00 00 DD 0C 73 [14:40:45]RasterBufferAndPrint [14:40:45]line [14:40:45]line [14:40:45]line [14:40:45]line [14:40:45]line [14:40:45]written 0, free lines is 3302 [14:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2D D9 47 00 2A CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 21 02 00 F4 03 04 00 7E 51 C4 66 B6 04 01 00 00 4A F1 1F D3 0A E6 1F 25 [14:40:45]CommunicateWithHost err = 0 [14:40:45]CheckOFDResponse [14:40:45]1017 (14) - 77093643461234 [14:40:45]1041 (16) - 0000000000871776 [14:40:45]1040 (4) - 139744 [14:40:45]1012 (4) - 20.08.2024 08:19 [14:40:45]1206 (1) - 0 [14:40:45]OFD Sender: Remove packet 139744 [14:40:45]ProducePacketName [14:40:45]name=ofd_packets/00139744 [14:40:45]NVStorageDeleteData [14:40:45]MH_Cut [14:40:45]Write to MH i2c: D1 01 00 87 03 01 5C [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: D1 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: D1 01 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: D1 01 00 87 03 00 5B [14:40:45]Write to MH i2c: 01 00 00 88 03 8B [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:46]OFD Sender: No OFD packet to send [14:40:46]*** Cut start [14:40:46]*** Partial cut [14:40:46]*** CUTSNS_PIN = 1 [14:40:46]*** CUTSNS_PIN = 0 [14:40:46]*** Brake cut motor [14:40:46]Read from MH i2c: 01 [14:40:46]MH_I2C_Read... [14:40:46]*** Stop cut motor [14:40:46]*** Cut end [14:40:46]Read from MH i2c: 01 07 00 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 FF 0F A0 [14:40:46]process_action close_receipt done [14:40:46]requested_data is exist [14:40:46]produce_requested_data [14:40:46]requested_item fm.sn is exist - process it [14:40:46]wFMCommunicate request_size=4 [14:40:46]MH_SAM_APDU [14:40:46]CAPDU: 80 11 00 00 [14:40:46]Write to MH i2c: E2 08 00 89 03 80 11 00 00 00 00 00 00 06 [14:40:46]Write i2c OK [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 [14:40:46]MH_I2C_Read... [14:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:46]Read from MH i2c: E2 17 00 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 17 00 89 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5D [14:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:40:46]wFMCommunicate OK [14:40:46]requested_item fd.num is exist - process it [14:40:46]SAM_PROTO_GetFieldsCounters [14:40:46]wFMCommunicate request_size=4 [14:40:46]MH_SAM_APDU [14:40:46]CAPDU: 80 13 00 00 [14:40:46]Write to MH i2c: E2 08 00 8A 03 80 13 00 00 00 00 00 00 09 [14:40:46]Write i2c OK [14:40:46]MH_I2C_Read... [14:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:47]Read from MH i2c: E2 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 62 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 62 00 8A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 21 02 00 0E 04 04 00 C5 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 85 [14:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 21 02 00 0E 04 04 00 C5 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 [14:40:47]wFMCommunicate OK [14:40:47]SAM_PROTO_GetFieldsCounters done [14:40:47]requested_item shift.num is exist - process it [14:40:47]requested_item shift.opened is exist - process it [14:40:47]req_shift_opened [14:40:47]FM_GetShiftState [14:40:47]SAM_PROTO_GetShiftState [14:40:47]wFMCommunicate request_size=4 [14:40:47]MH_SAM_APDU [14:40:47]CAPDU: 80 13 01 00 [14:40:47]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [14:40:47]Write i2c OK [14:40:47]MH_I2C_Read... [14:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:47]Read from MH i2c: E2 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 0E 00 [14:40:47]MH_I2C_Read... [14:40:47]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9C [14:40:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:40:47]wFMCommunicate OK [14:40:47]SAM_PROTO_GetShiftState done [14:40:47]FM_GetShiftState done [14:40:47]req_shift_opened done [14:40:47]requested_item shift.open_date is exist - process it [14:40:47]req_shift_open_date [14:40:47]req_shift_open_date done [14:40:47]produce_requested_data done [14:40:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139744,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:40:47]process_action_free close_receipt [14:40:47]json_value_free [14:40:47]json_value_free done [14:40:47]process_json_proto returns [14:40:47]Send response to host [14:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139744,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:40:47]free response buf [14:40:47]execute_script done [14:40:47]execute_script returns [14:40:47]free content buf [14:40:47]Sock 7.Close socket [14:40:47]Sock 7.Thread stoped [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:39]int [14:41:39]Write to MH i2c: 01 00 00 8C 03 8F [14:41:39]*** FLAG_PRN_KEY set [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 8C 03 00 08 00 00 00 FF 0F AC [14:41:39]state=0 [14:41:39]Key pressed [14:41:39]Feed [14:41:39]Write to MH i2c: D8 00 00 8D 03 67 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: D8 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: D8 01 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: D8 01 00 8D 03 00 68 [14:41:39]int [14:41:39]Write to MH i2c: 01 00 00 8E 03 91 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 8E 03 00 48 00 00 00 3C 00 1C [14:41:39]state=2 [14:41:39]Key pressed [14:41:39]int [14:41:39]Write to MH i2c: 01 00 00 8F 03 92 [14:41:39]*** FLAG_PRN_KEY reset [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 F6 0F 9E [14:41:39]state=2 [14:41:39]Stop feed [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:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:44:57]accept exits with 9 [14:44:57]New connection [14:44:57]New thread 3067182436 created [14:44:57]Thread 3067039076 joined [14:44:57]Waiting for new connection... [14:44:57] Sock 9.Parse request [14:44:57]Sock 9.Check first char [14:44:57]Sock 9.First char is OK [14:44:57]request: POST /json_proto HTTP/1.0 [14:44:57]Method: POST [14:44:57]URL: /json_proto [14:44:57]Method is POST - this is cgi request [14:44:57]url: /json_proto [14:44:57]query_string will be loaded in cgi processing [14:44:57]execute_cgi json_proto POST (null) [14:44:57]execute_cgi path=json_proto method=POST [14:44:57]POST find Content-Length [14:44:57]Host: 172.17.45.67:8080 [14:44:57]Content-Length: 822 [14:44:57]Content-Type: application/json [14:44:57] [14:44:57]POST finish read [14:44:57]Found Content-Length = 822 [14:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:57]execute_script... [14:44: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)593593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:57]POST & json_proto [14:44:57]process_json_proto [14:44:57]json parsed OK: [14:44:57]protocol is kg_v1.0 [14:44:57]action value=close_receipt [14:44:57]process_action close_receipt [14:44:57]cmd_close_receipt [14:44:57]MH_GetDate [14:44:57]Write to MH i2c: F0 00 00 90 03 82 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: F0 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: F0 09 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: F0 09 00 90 03 00 E9 AB C4 66 5F 7F 2B 66 B8 [14:44:57]GetLastDocTimeStamp 1724164843 [14:44:57]current date 1724165097 [14:44:57]FM_GetShiftState [14:44:57]SAM_PROTO_GetShiftState [14:44:57]wFMCommunicate request_size=4 [14:44:57]MH_SAM_APDU [14:44:57]CAPDU: 80 13 01 00 [14:44:57]Write to MH i2c: E2 08 00 91 03 80 13 01 00 00 00 00 00 11 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:57]Read from MH i2c: E2 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 0E 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 0E 00 91 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A2 [14:44:57]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:44:57]wFMCommunicate OK [14:44:57]SAM_PROTO_GetShiftState done [14:44:57]FM_GetShiftState done [14:44:57]opened in 1724113785 [14:44:57]opened+sec_in_day 1724200185 [14:44:57]quantity*price = 150041 [14:44:57]sum+1 = 150042 [14:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 217 20.08.2024 14:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139745 ФПД: 200132772283323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T144457&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139745&fm=200132772283323&tin=02508201610067®Number=0000000000092569&sum=150000 [14:44:58]StoreToDocumentArchive [14:44:58]shift 453 fd 139745 [14:44:58]save to /storage/0453/doc_00139745 [14:44:58]save last doc name /storage/0453/doc_00139745 to /storage/kkm_last_doc_name [14:44:58]save OK [14:44:58]Clear old archive folders... [14:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:58]tlvbuf is 016E45F0 [14:44:58]SAM_PROTO_ClearQueue [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 09 00 00 [14:44:58]Write to MH i2c: E2 08 00 9E 03 80 09 00 00 00 00 00 00 13 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [14:44:58]RAPDU: 90 00 [14:44:58]wFMCommunicate OK [14:44:58]SAM_PROTO_ClearQueue done [14:44:58]KKMCreateOFDPacket [14:44:58]OFDProtocolAddRootSTLVToBuf [14:44:58]FM_MakeSignedData [14:44:58]FM_MakeSignedData [14:44:58]SAM_PROTO_SignData [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 0D 01 02 [14:44:58]Write to MH i2c: E2 08 00 9F 03 80 0D 01 02 00 00 00 00 1B [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 03 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [14:44:59]RAPDU: 90 00 [14:44:59]wFMCommunicate OK [14:44:59]wFMCommunicate request_size=255 [14:44:59]MH_SAM_APDU [14:44:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E9 AB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 21 02 00 35 04 06 00 B6 [14:44:59]Write to MH i2c: E2 02 01 A0 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E9 AB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 21 02 00 35 04 06 00 B6 00 00 30 [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 03 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [14:44:59]RAPDU: 90 00 [14:44:59]wFMCommunicate OK [14:44:59]wFMCommunicate request_size=10 [14:44:59]MH_SAM_APDU [14:44:59]CAPDU: 80 0D 02 02 05 05 0A CC C3 BB [14:44:59]Write to MH i2c: E2 0D 00 A1 03 80 0D 02 02 05 00 05 0A CC C3 BB 00 00 81 [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 03 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [14:44:59]RAPDU: 90 00 [14:44:59]wFMCommunicate OK [14:44:59]wFMCommunicate request_size=4 [14:44:59]MH_SAM_APDU [14:44:59]CAPDU: 80 0D 03 02 [14:44:59]Write to MH i2c: E2 08 00 A2 03 80 0D 03 02 00 00 00 00 20 [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0B 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0B 00 A2 03 00 69 C9 AB 6B 3E 23 26 61 90 00 51 [14:44:59]RAPDU: 69 C9 AB 6B 3E 23 26 61 90 00 [14:44:59]wFMCommunicate OK [14:44:59]SAM_PROTO_SignData done [14:44:59]FM_MakeSignedData done [14:44:59]CreateOFDProtocolMessage [14:44:59]wFMCommunicate request_size=4 [14:44:59]MH_SAM_APDU [14:44:59]CAPDU: 80 11 00 00 [14:44:59]Write to MH i2c: E2 08 00 A3 03 80 11 00 00 00 00 00 00 20 [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 17 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 17 00 A3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 77 [14:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:44:59]wFMCommunicate OK [14:44:59]CreateOFDProtocolMessage done [14:44:59]OFDSenderStorePacket 139745 [14:44:59]StoreOFDPacket docnum=139745 [14:44:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 D1 07 01 DD DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E9 AB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 21 02 00 35 04 06 00 B6 05 0A CC C3 BB 69 C9 AB 6B 3E 23 26 61 [14:44:59]CheckFolder [14:44:59]dirname=/storage/ofd_packets [14:44:59]CheckFolder done [14:44:59]ProducePacketName [14:44:59]name=ofd_packets/00139745 [14:44:59]NVStorageSaveData ofd_packets/00139745 [14:44:59]File name is /storage/ofd_packets/00139745 [14:44:59]Write 301 bytes [14:44:59]NVStorageSaveData done [14:44:59]OFDSenderStorePacket done [14:44:59]KKMCreateOFDPacket done [14:44:59]NVStorageSaveData kkm_last_timestamp [14:44:59]File name is /storage/kkm_last_timestamp [14:44:59]Write 4 bytes [14:44:59]NVStorageSaveData done [14:44:59]ExternCall_PrintAddStr [14:44:59]wPrintStart [14:44:59]Write to MH i2c: 01 00 00 A4 03 A7 [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: 01 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: 01 07 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 FF 0F BC [14:44:59]RasterBufferAndPrint [14:44:59]line Счет N : (1)593593 [14:44:59]line ИНН: 02508201610067 [14:44:59]line Контрольно-Кассовый Чек [14:44:59]line ПРОДАЖА [14:44:59]line ТРК (МРК, ГНК) : 52 [14:44:59]line Товар: 2710124130 [14:44:59]line Аи-92-К-5 [14:44:59]line 22.130 * 67.80 [14:44:59]line = 1500.41 [14:44:59]line НДС 12% НСП 1% [14:44:59]line > о реализуемом товаре [14:44:59]line ОКРУГЛЕНИЕ: -0.41 [14:44:59]line ИТОГО: 1500.00 [14:44:59]line НСП 1% : 13.28 [14:44:59]line НДС 12% : 159.34 [14:44:59]line Наличными: 0.00 [14:44:59]line Безнал.: 1500.00 [14:44:59]line Место: АЗС № 136 "Партнер Нефть" [14:44:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:44:59]line СНО: Общий режим [14:44:59]line Чек 217 20.08.2024 14:44 [14:44:59]line Смена: 453 ФФД: 1.0 [14:44:59]line ЗНМ: 0300000067 [14:44:59]line РНМ: 0000000000092569 [14:44:59]line Версия ККМ: 001 [14:44:59]line Платежная система: O! деньги [14:44:59]line ФМ: 0000000000871776 [14:44:59]line ФД: 139745 [14:44:59]line ФПД: 200132772283323 [14:44:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T144457&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139745&fm=200132772283323&tin=02508201610067®Number=0000000000092569&sum=150000 [14:44:59]OFD Sender: Processing packet 139745 [packets to send 137, broken 136] [14:44:59]ProducePacketName [14:44:59]name=ofd_packets/00139745 [14:44:59]OFD Sender: To server: pG, [14:44:59]CommunicateWithHost lk.salyk.kg:30040 [14:44:59]ConnectInit lk.salyk.kg [14:44:59]written 0, free lines is 4095 [14:44:59]Connected sock=10 [14:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 D1 07 01 DD DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 E9 AB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 21 02 00 35 04 06 00 B6 05 0A CC C3 BB 69 C9 AB 6B 3E 23 26 61 [14:45:00]Write to MH i2c: 01 00 00 CF 03 D2 [14:45:00]Write i2c OK [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: 01 [14:45:00]MH_I2C_Read... [14:45:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4C 0C 47 00 19 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 21 02 00 F4 03 04 00 7D 52 C4 66 B6 04 01 00 00 D1 05 69 76 DE 23 19 B9 [14:45:00]CommunicateWithHost err = 0 [14:45:00]CheckOFDResponse [14:45:00]1017 (14) - 77093643461234 [14:45:00]1041 (16) - 0000000000871776 [14:45:00]1040 (4) - 139745 [14:45:00]1012 (4) - 20.08.2024 08:23 [14:45:00]1206 (1) - 0 [14:45:00]OFD Sender: Remove packet 139745 [14:45:00]ProducePacketName [14:45:00]name=ofd_packets/00139745 [14:45:00]NVStorageDeleteData [14:45:00]Read from MH i2c: 01 07 00 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 E4 0C C9 [14:45:00]RasterBufferAndPrint [14:45:00]line [14:45:00]line [14:45:00]line [14:45:00]line [14:45:00]line [14:45:00]written 0, free lines is 3344 [14:45:00]MH_Cut [14:45:00]Write to MH i2c: D1 01 00 D6 03 01 AB [14:45:00]Write i2c OK [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: D1 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: D1 01 00 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: D1 01 00 D6 03 00 AA [14:45:00]Write to MH i2c: 01 00 00 D7 03 DA [14:45:00]Write i2c OK [14:45:00]MH_I2C_Read... [14:45:00]OFD Sender: No OFD packet to send [14:45:00]*** Cut start [14:45:00]*** Partial cut [14:45:00]*** CUTSNS_PIN = 1 [14:45:01]*** CUTSNS_PIN = 0 [14:45:01]*** Brake cut motor [14:45:01]Read from MH i2c: 01 [14:45:01]MH_I2C_Read... [14:45:01]*** Stop cut motor [14:45:01]*** Cut end [14:45:01]Read from MH i2c: 01 07 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: 01 07 00 D7 03 00 00 00 00 00 FF 0F EF [14:45:01]process_action close_receipt done [14:45:01]requested_data is exist [14:45:01]produce_requested_data [14:45:01]requested_item fm.sn is exist - process it [14:45:01]wFMCommunicate request_size=4 [14:45:01]MH_SAM_APDU [14:45:01]CAPDU: 80 11 00 00 [14:45:01]Write to MH i2c: E2 08 00 D8 03 80 11 00 00 00 00 00 00 55 [14:45:01]Write i2c OK [14:45:01]MH_I2C_Read... [14:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:01]Read from MH i2c: E2 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 17 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 17 00 D8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [14:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:45:01]wFMCommunicate OK [14:45:01]requested_item fd.num is exist - process it [14:45:01]SAM_PROTO_GetFieldsCounters [14:45:01]wFMCommunicate request_size=4 [14:45:01]MH_SAM_APDU [14:45:01]CAPDU: 80 13 00 00 [14:45:01]Write to MH i2c: E2 08 00 D9 03 80 13 00 00 00 00 00 00 58 [14:45:01]Write i2c OK [14:45:01]MH_I2C_Read... [14:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:01]Read from MH i2c: E2 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 62 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 62 00 D9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 21 02 00 0E 04 04 00 C5 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 D8 [14:45:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 21 02 00 0E 04 04 00 C5 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 [14:45:01]wFMCommunicate OK [14:45:01]SAM_PROTO_GetFieldsCounters done [14:45:01]requested_item shift.num is exist - process it [14:45:01]requested_item shift.opened is exist - process it [14:45:01]req_shift_opened [14:45:01]FM_GetShiftState [14:45:01]SAM_PROTO_GetShiftState [14:45:01]wFMCommunicate request_size=4 [14:45:01]MH_SAM_APDU [14:45:01]CAPDU: 80 13 01 00 [14:45:01]Write to MH i2c: E2 08 00 DA 03 80 13 01 00 00 00 00 00 5A [14:45:01]Write i2c OK [14:45:01]MH_I2C_Read... [14:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:01]Read from MH i2c: E2 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 0E 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 0E 00 DA 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EB [14:45:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:45:01]wFMCommunicate OK [14:45:01]SAM_PROTO_GetShiftState done [14:45:01]FM_GetShiftState done [14:45:01]req_shift_opened done [14:45:01]requested_item shift.open_date is exist - process it [14:45:01]req_shift_open_date [14:45:01]req_shift_open_date done [14:45:01]produce_requested_data done [14:45:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139745,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:45:01]process_action_free close_receipt [14:45:01]json_value_free [14:45:01]json_value_free done [14:45:01]process_json_proto returns [14:45:01]Send response to host [14:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139745,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:45:01]free response buf [14:45:01]execute_script done [14:45:01]execute_script returns [14:45:01]free content buf [14:45:01]Sock 9.Close socket [14:45:01]Sock 9.Thread stoped [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:37]accept exits with 7 [14:48:37]New connection [14:48:37]New thread 3067039076 created [14:48:37]Thread 3067182436 joined [14:48:37]Waiting for new connection... [14:48:37] Sock 7.Parse request [14:48:37]Sock 7.Check first char [14:48:37]Sock 7.First char is OK [14:48:37]request: POST /json_proto HTTP/1.0 [14:48:37]Method: POST [14:48:37]URL: /json_proto [14:48:37]Method is POST - this is cgi request [14:48:37]url: /json_proto [14:48:37]query_string will be loaded in cgi processing [14:48:37]execute_cgi json_proto POST (null) [14:48:37]execute_cgi path=json_proto method=POST [14:48:37]POST find Content-Length [14:48:37]Host: 172.17.45.67:8080 [14:48:37]Content-Length: 677 [14:48:37]Content-Type: application/json [14:48:37] [14:48:37]POST finish read [14:48:37]Found Content-Length = 677 [14:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:37]execute_script... [14:48: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)593594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:37]POST & json_proto [14:48:37]process_json_proto [14:48:37]json parsed OK: [14:48:37]protocol is kg_v1.0 [14:48:37]action value=close_receipt [14:48:37]process_action close_receipt [14:48:37]cmd_close_receipt [14:48:37]MH_GetDate [14:48:37]Write to MH i2c: F0 00 00 DB 03 CD [14:48:37]Write i2c OK [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: F0 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: F0 09 00 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: F0 09 00 DB 03 00 C5 AC C4 66 5F 7F 2B 66 E0 [14:48:37]GetLastDocTimeStamp 1724165097 [14:48:37]current date 1724165317 [14:48:37]FM_GetShiftState [14:48:37]SAM_PROTO_GetShiftState [14:48:37]wFMCommunicate request_size=4 [14:48:37]MH_SAM_APDU [14:48:37]CAPDU: 80 13 01 00 [14:48:37]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [14:48:37]Write i2c OK [14:48:37]MH_I2C_Read... [14:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:37]Read from MH i2c: E2 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 0E 00 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 ED [14:48:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:48:37]wFMCommunicate OK [14:48:37]SAM_PROTO_GetShiftState done [14:48:37]FM_GetShiftState done [14:48:37]opened in 1724113785 [14:48:37]opened+sec_in_day 1724200185 [14:48:37]quantity*price = 30035 [14:48:37]sum+1 = 30036 [14:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 218 20.08.2024 14:48 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139746 ФПД: 265794096053822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T144837&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139746&fm=265794096053822&tin=02508201610067®Number=0000000000092569&sum=30000 [14:48:38]StoreToDocumentArchive [14:48:38]shift 453 fd 139746 [14:48:38]save to /storage/0453/doc_00139746 [14:48:38]save last doc name /storage/0453/doc_00139746 to /storage/kkm_last_doc_name [14:48:38]save OK [14:48:38]Clear old archive folders... [14:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:38]tlvbuf is 017036E0 [14:48:38]SAM_PROTO_ClearQueue [14:48:38]wFMCommunicate request_size=4 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 09 00 00 [14:48:38]Write to MH i2c: E2 08 00 E9 03 80 09 00 00 00 00 00 00 5E [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [14:48:38]RAPDU: 90 00 [14:48:38]wFMCommunicate OK [14:48:38]SAM_PROTO_ClearQueue done [14:48:38]KKMCreateOFDPacket [14:48:38]OFDProtocolAddRootSTLVToBuf [14:48:38]FM_MakeSignedData [14:48:38]FM_MakeSignedData [14:48:38]SAM_PROTO_SignData [14:48:38]wFMCommunicate request_size=4 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 0D 01 02 [14:48:38]Write to MH i2c: E2 08 00 EA 03 80 0D 01 02 00 00 00 00 66 [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [14:48:38]RAPDU: 90 00 [14:48:38]wFMCommunicate OK [14:48:38]wFMCommunicate request_size=255 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 C5 AC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 21 02 00 35 04 06 00 F1 [14:48:38]Write to MH i2c: E2 02 01 EB 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 C5 AC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 21 02 00 35 04 06 00 F1 00 00 3F [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [14:48:38]RAPDU: 90 00 [14:48:38]wFMCommunicate OK [14:48:38]wFMCommunicate request_size=10 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 0D 02 02 05 BD 02 AD BE 3E [14:48:38]Write to MH i2c: E2 0D 00 EC 03 80 0D 02 02 05 00 BD 02 AD BE 3E 00 00 DB [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [14:48:38]RAPDU: 90 00 [14:48:38]wFMCommunicate OK [14:48:38]wFMCommunicate request_size=4 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 0D 03 02 [14:48:38]Write to MH i2c: E2 08 00 ED 03 80 0D 03 02 00 00 00 00 6B [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:39]Read from MH i2c: E2 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 0B 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 0B 00 ED 03 00 14 C9 6D F2 A3 B7 02 EB 90 00 EF [14:48:39]RAPDU: 14 C9 6D F2 A3 B7 02 EB 90 00 [14:48:39]wFMCommunicate OK [14:48:39]SAM_PROTO_SignData done [14:48:39]FM_MakeSignedData done [14:48:39]CreateOFDProtocolMessage [14:48:39]wFMCommunicate request_size=4 [14:48:39]MH_SAM_APDU [14:48:39]CAPDU: 80 11 00 00 [14:48:39]Write to MH i2c: E2 08 00 EE 03 80 11 00 00 00 00 00 00 6B [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:39]Read from MH i2c: E2 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 17 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 17 00 EE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C2 [14:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:48:39]wFMCommunicate OK [14:48:39]CreateOFDProtocolMessage done [14:48:39]OFDSenderStorePacket 139746 [14:48:39]StoreOFDPacket docnum=139746 [14:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 75 BB 07 01 63 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 C5 AC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 21 02 00 35 04 06 00 F1 BD 02 AD BE 3E 14 C9 6D F2 A3 B7 02 EB [14:48:39]CheckFolder [14:48:39]dirname=/storage/ofd_packets [14:48:39]CheckFolder done [14:48:39]ProducePacketName [14:48:39]name=ofd_packets/00139746 [14:48:39]NVStorageSaveData ofd_packets/00139746 [14:48:39]File name is /storage/ofd_packets/00139746 [14:48:39]Write 301 bytes [14:48:39]NVStorageSaveData done [14:48:39]OFDSenderStorePacket done [14:48:39]KKMCreateOFDPacket done [14:48:39]NVStorageSaveData kkm_last_timestamp [14:48:39]File name is /storage/kkm_last_timestamp [14:48:39]Write 4 bytes [14:48:39]NVStorageSaveData done [14:48:39]ExternCall_PrintAddStr [14:48:39]wPrintStart [14:48:39]Write to MH i2c: 01 00 00 EF 03 F2 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 07 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [14:48:39]RasterBufferAndPrint [14:48:39]line Счет N : (1)593594 [14:48:39]line ИНН: 02508201610067 [14:48:39]line Контрольно-Кассовый Чек [14:48:39]line ПРОДАЖА [14:48:39]line ТРК (МРК, ГНК) : 42 [14:48:39]line Товар: 2710124130 [14:48:39]line Аи-92-К-5 [14:48:39]line 4.430 * 67.80 [14:48:39]line = 300.35 [14:48:39]line НДС 12% НСП 1% [14:48:39]line > о реализуемом товаре [14:48:39]line ОКРУГЛЕНИЕ: -0.35 [14:48:39]line ИТОГО: 300.00 [14:48:39]line Внесено: 300.00 [14:48:39]line СДАЧА: 0.00 [14:48:39]line НСП 1% : 2.66 [14:48:39]line НДС 12% : 31.90 [14:48:39]line Наличными: 300.00 [14:48:39]line Безнал.: 0.00 [14:48:39]line Место: АЗС № 136 "Партнер Нефть" [14:48:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:48:39]line СНО: Общий режим [14:48:39]line Чек 218 20.08.2024 14:48 [14:48:39]line Смена: 453 ФФД: 1.0 [14:48:39]line ЗНМ: 0300000067 [14:48:39]line РНМ: 0000000000092569 [14:48:39]line Версия ККМ: 001 [14:48:39]line ФМ: 0000000000871776 [14:48:39]line ФД: 139746 [14:48:39]line ФПД: 265794096053822 [14:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T144837&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139746&fm=265794096053822&tin=02508201610067®Number=0000000000092569&sum=30000 [14:48:39]OFD Sender: Processing packet 139746 [packets to send 137, broken 136] [14:48:39]ProducePacketName [14:48:39]name=ofd_packets/00139746 [14:48:39]OFD Sender: To server: pG, [14:48:39]CommunicateWithHost lk.salyk.kg:30040 [14:48:39]ConnectInit lk.salyk.kg [14:48:39]written 0, free lines is 4095 [14:48:39]Connected sock=10 [14:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 75 BB 07 01 63 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 C5 AC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 21 02 00 35 04 06 00 F1 BD 02 AD BE 3E 14 C9 6D F2 A3 B7 02 EB [14:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DD A8 47 00 A0 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 21 02 00 F4 03 04 00 58 53 C4 66 B6 04 01 00 00 D9 44 D0 2D 56 24 32 7F [14:48:39]CommunicateWithHost err = 0 [14:48:39]CheckOFDResponse [14:48:39]1017 (14) - 77093643461234 [14:48:39]1041 (16) - 0000000000871776 [14:48:39]1040 (4) - 139746 [14:48:39]1012 (4) - 20.08.2024 08:27 [14:48:39]1206 (1) - 0 [14:48:39]OFD Sender: Remove packet 139746 [14:48:39]ProducePacketName [14:48:39]name=ofd_packets/00139746 [14:48:39]NVStorageDeleteData [14:48:39]Write to MH i2c: 01 00 00 1A 04 1E [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 07 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 DA 0C 0B [14:48:39]RasterBufferAndPrint [14:48:39]line [14:48:39]line [14:48:39]line [14:48:39]line [14:48:39]line [14:48:39]written 0, free lines is 3298 [14:48:39]MH_Cut [14:48:39]Write to MH i2c: D1 01 00 21 04 01 F7 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: D1 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: D1 01 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: D1 01 00 21 04 00 F6 [14:48:39]Write to MH i2c: 01 00 00 22 04 26 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:40]OFD Sender: No OFD packet to send [14:48:40]*** Cut start [14:48:40]*** Partial cut [14:48:40]*** CUTSNS_PIN = 1 [14:48:40]*** CUTSNS_PIN = 0 [14:48:40]*** Brake cut motor [14:48:41]Read from MH i2c: 01 [14:48:41]MH_I2C_Read... [14:48:41]*** Stop cut motor [14:48:41]*** Cut end [14:48:41]Read from MH i2c: 01 07 00 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 FF 0F 3B [14:48:41]process_action close_receipt done [14:48:41]requested_data is exist [14:48:41]produce_requested_data [14:48:41]requested_item fm.sn is exist - process it [14:48:41]wFMCommunicate request_size=4 [14:48:41]MH_SAM_APDU [14:48:41]CAPDU: 80 11 00 00 [14:48:41]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [14:48:41]Write i2c OK [14:48:41]MH_I2C_Read... [14:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:41]Read from MH i2c: E2 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 17 00 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F8 [14:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:48:41]wFMCommunicate OK [14:48:41]requested_item fd.num is exist - process it [14:48:41]SAM_PROTO_GetFieldsCounters [14:48:41]wFMCommunicate request_size=4 [14:48:41]MH_SAM_APDU [14:48:41]CAPDU: 80 13 00 00 [14:48:41]Write to MH i2c: E2 08 00 24 04 80 13 00 00 00 00 00 00 A4 [14:48:41]Write i2c OK [14:48:41]MH_I2C_Read... [14:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:41]Read from MH i2c: E2 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 62 00 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 62 00 24 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 21 02 00 0E 04 04 00 C5 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 28 [14:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 21 02 00 0E 04 04 00 C5 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 [14:48:41]wFMCommunicate OK [14:48:41]SAM_PROTO_GetFieldsCounters done [14:48:41]requested_item shift.num is exist - process it [14:48:41]requested_item shift.opened is exist - process it [14:48:41]req_shift_opened [14:48:41]FM_GetShiftState [14:48:41]SAM_PROTO_GetShiftState [14:48:41]wFMCommunicate request_size=4 [14:48:41]MH_SAM_APDU [14:48:41]CAPDU: 80 13 01 00 [14:48:41]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [14:48:41]Write i2c OK [14:48:41]MH_I2C_Read... [14:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:41]Read from MH i2c: E2 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 0E 00 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 37 [14:48:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:48:41]wFMCommunicate OK [14:48:41]SAM_PROTO_GetShiftState done [14:48:41]FM_GetShiftState done [14:48:41]req_shift_opened done [14:48:41]requested_item shift.open_date is exist - process it [14:48:41]req_shift_open_date [14:48:41]req_shift_open_date done [14:48:41]produce_requested_data done [14:48:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139746,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:48:41]process_action_free close_receipt [14:48:41]json_value_free [14:48:41]json_value_free done [14:48:41]process_json_proto returns [14:48:41]Send response to host [14:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139746,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:48:41]free response buf [14:48:41]execute_script done [14:48:41]execute_script returns [14:48:41]free content buf [14:48:41]Sock 7.Close socket [14:48:41]Sock 7.Thread stoped [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:11]accept exits with 9 [14:53:11]New connection [14:53:11]New thread 3067182436 created [14:53:11]Thread 3067039076 joined [14:53:11]Waiting for new connection... [14:53:11] Sock 9.Parse request [14:53:11]Sock 9.Check first char [14:53:11]Sock 9.First char is OK [14:53:11]request: POST /json_proto HTTP/1.0 [14:53:11]Method: POST [14:53:11]URL: /json_proto [14:53:11]Method is POST - this is cgi request [14:53:11]url: /json_proto [14:53:11]query_string will be loaded in cgi processing [14:53:11]execute_cgi json_proto POST (null) [14:53:11]execute_cgi path=json_proto method=POST [14:53:11]POST find Content-Length [14:53:11]Host: 172.17.45.67:8080 [14:53:11]Content-Length: 687 [14:53:11]Content-Type: application/json [14:53:11] [14:53:11]POST finish read [14:53:11]Found Content-Length = 687 [14:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:53:11]execute_script... [14: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)593595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:53:11]POST & json_proto [14:53:11]process_json_proto [14:53:11]json parsed OK: [14:53:11]protocol is kg_v1.0 [14:53:11]action value=close_receipt [14:53:11]process_action close_receipt [14:53:11]cmd_close_receipt [14:53:11]MH_GetDate [14:53:11]Write to MH i2c: F0 00 00 26 04 19 [14:53:11]Write i2c OK [14:53:11]MH_I2C_Read... [14:53:11]Read from MH i2c: F0 [14:53:11]MH_I2C_Read... [14:53:11]Read from MH i2c: F0 09 00 [14:53:11]MH_I2C_Read... [14:53:11]Read from MH i2c: F0 09 00 26 04 00 D7 AD C4 66 5F 7F 2B 66 3F [14:53:11]GetLastDocTimeStamp 1724165317 [14:53:11]current date 1724165591 [14:53:11]FM_GetShiftState [14:53:11]SAM_PROTO_GetShiftState [14:53:11]wFMCommunicate request_size=4 [14:53:11]MH_SAM_APDU [14:53:11]CAPDU: 80 13 01 00 [14:53:11]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [14:53:11]Write i2c OK [14:53:11]MH_I2C_Read... [14:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:11]Read from MH i2c: E2 [14:53:11]MH_I2C_Read... [14:53:11]Read from MH i2c: E2 0E 00 [14:53:11]MH_I2C_Read... [14:53:11]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 39 [14:53:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:53:11]wFMCommunicate OK [14:53:11]SAM_PROTO_GetShiftState done [14:53:11]FM_GetShiftState done [14:53:11]opened in 1724113785 [14:53:11]opened+sec_in_day 1724200185 [14:53:11]quantity*price = 100050 [14:53:11]sum+1 = 100052 [14:53:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 219 20.08.2024 14:53 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139747 ФПД: 150334101718774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T145311&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139747&fm=150334101718774&tin=02508201610067®Number=0000000000092569&sum=100000 [14:53:12]StoreToDocumentArchive [14:53:12]shift 453 fd 139747 [14:53:12]save to /storage/0453/doc_00139747 [14:53:12]save last doc name /storage/0453/doc_00139747 to /storage/kkm_last_doc_name [14:53:12]save OK [14:53:12]Clear old archive folders... [14:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:53:12]tlvbuf is 016983E0 [14:53:12]SAM_PROTO_ClearQueue [14:53:12]wFMCommunicate request_size=4 [14:53:12]MH_SAM_APDU [14:53:12]CAPDU: 80 09 00 00 [14:53:12]Write to MH i2c: E2 08 00 34 04 80 09 00 00 00 00 00 00 AA [14:53:12]Write i2c OK [14:53:12]MH_I2C_Read... [14:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:12]Read from MH i2c: E2 [14:53:12]MH_I2C_Read... [14:53:12]Read from MH i2c: E2 03 00 [14:53:12]MH_I2C_Read... [14:53:12]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [14:53:12]RAPDU: 90 00 [14:53:12]wFMCommunicate OK [14:53:12]SAM_PROTO_ClearQueue done [14:53:12]KKMCreateOFDPacket [14:53:12]OFDProtocolAddRootSTLVToBuf [14:53:12]FM_MakeSignedData [14:53:12]FM_MakeSignedData [14:53:12]SAM_PROTO_SignData [14:53:12]wFMCommunicate request_size=4 [14:53:12]MH_SAM_APDU [14:53:12]CAPDU: 80 0D 01 02 [14:53:12]Write to MH i2c: E2 08 00 35 04 80 0D 01 02 00 00 00 00 B2 [14:53:12]Write i2c OK [14:53:12]MH_I2C_Read... [14:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:12]Read from MH i2c: E2 [14:53:12]MH_I2C_Read... [14:53:12]Read from MH i2c: E2 03 00 [14:53:12]MH_I2C_Read... [14:53:12]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [14:53:12]RAPDU: 90 00 [14:53:12]wFMCommunicate OK [14:53:12]wFMCommunicate request_size=255 [14:53:12]MH_SAM_APDU [14:53:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 DB 00 00 00 F4 03 04 00 D7 AD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 21 02 00 35 04 06 00 [14:53:12]Write to MH i2c: E2 02 01 36 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 DB 00 00 00 F4 03 04 00 D7 AD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 21 02 00 35 04 06 00 00 00 7E [14:53:12]Write i2c OK [14:53:12]MH_I2C_Read... [14:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:13]Read from MH i2c: E2 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: E2 03 00 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [14:53:13]RAPDU: 90 00 [14:53:13]wFMCommunicate OK [14:53:13]wFMCommunicate request_size=11 [14:53:13]MH_SAM_APDU [14:53:13]CAPDU: 80 0D 02 02 06 88 BA 62 BB 06 F6 [14:53:13]Write to MH i2c: E2 0E 00 37 04 80 0D 02 02 06 00 88 BA 62 BB 06 F6 00 00 1C [14:53:13]Write i2c OK [14:53:13]MH_I2C_Read... [14:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:13]Read from MH i2c: E2 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: E2 03 00 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [14:53:13]RAPDU: 90 00 [14:53:13]wFMCommunicate OK [14:53:13]wFMCommunicate request_size=4 [14:53:13]MH_SAM_APDU [14:53:13]CAPDU: 80 0D 03 02 [14:53:13]Write to MH i2c: E2 08 00 38 04 80 0D 03 02 00 00 00 00 B7 [14:53:13]Write i2c OK [14:53:13]MH_I2C_Read... [14:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:13]Read from MH i2c: E2 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: E2 0B 00 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: E2 0B 00 38 04 00 CA 4D 3B FD 7F DB 28 C4 90 00 4D [14:53:13]RAPDU: CA 4D 3B FD 7F DB 28 C4 90 00 [14:53:13]wFMCommunicate OK [14:53:13]SAM_PROTO_SignData done [14:53:13]FM_MakeSignedData done [14:53:13]CreateOFDProtocolMessage [14:53:13]wFMCommunicate request_size=4 [14:53:13]MH_SAM_APDU [14:53:13]CAPDU: 80 11 00 00 [14:53:13]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [14:53:13]Write i2c OK [14:53:13]MH_I2C_Read... [14:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:13]Read from MH i2c: E2 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: E2 17 00 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0E [14:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:53:13]wFMCommunicate OK [14:53:13]CreateOFDProtocolMessage done [14:53:13]OFDSenderStorePacket 139747 [14:53:13]StoreOFDPacket docnum=139747 [14:53:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 40 FB 08 01 BB D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 DB 00 00 00 F4 03 04 00 D7 AD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 21 02 00 35 04 06 00 88 BA 62 BB 06 F6 CA 4D 3B FD 7F DB 28 C4 [14:53:13]CheckFolder [14:53:13]dirname=/storage/ofd_packets [14:53:13]CheckFolder done [14:53:13]ProducePacketName [14:53:13]name=ofd_packets/00139747 [14:53:13]NVStorageSaveData ofd_packets/00139747 [14:53:13]File name is /storage/ofd_packets/00139747 [14:53:13]Write 302 bytes [14:53:13]NVStorageSaveData done [14:53:13]OFDSenderStorePacket done [14:53:13]KKMCreateOFDPacket done [14:53:13]NVStorageSaveData kkm_last_timestamp [14:53:13]File name is /storage/kkm_last_timestamp [14:53:13]Write 4 bytes [14:53:13]NVStorageSaveData done [14:53:13]ExternCall_PrintAddStr [14:53:13]wPrintStart [14:53:13]Write to MH i2c: 01 00 00 3A 04 3E [14:53:13]Write i2c OK [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: 01 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: 01 07 00 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [14:53:13]RasterBufferAndPrint [14:53:13]line Счет N : (1)593595 [14:53:13]line ИНН: 02508201610067 [14:53:13]line Контрольно-Кассовый Чек [14:53:13]line ПРОДАЖА [14:53:13]line ТРК (МРК, ГНК) : 34 [14:53:13]line Товар: 2710194210 [14:53:13]line ДТ(л)-К-5 [14:53:13]line 13.130 * 76.20 [14:53:13]line = 1000.51 [14:53:13]line НДС 12% НСП 1% [14:53:13]line > о реализуемом товаре [14:53:13]line ОКРУГЛЕНИЕ: -0.51 [14:53:13]line ИТОГО: 1000.00 [14:53:13]line Внесено: 1000.00 [14:53:13]line СДАЧА: 0.00 [14:53:13]line НСП 1% : 8.85 [14:53:13]line НДС 12% : 106.25 [14:53:13]line Наличными: 1000.00 [14:53:13]line Безнал.: 0.00 [14:53:13]line Место: АЗС № 136 "Партнер Нефть" [14:53:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:53:13]line СНО: Общий режим [14:53:13]line Чек 219 20.08.2024 14:53 [14:53:13]line Смена: 453 ФФД: 1.0 [14:53:13]line ЗНМ: 0300000067 [14:53:13]line РНМ: 0000000000092569 [14:53:13]line Версия ККМ: 001 [14:53:13]line ФМ: 0000000000871776 [14:53:13]line ФД: 139747 [14:53:13]line ФПД: 150334101718774 [14:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T145311&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139747&fm=150334101718774&tin=02508201610067®Number=0000000000092569&sum=100000 [14:53:13]written 0, free lines is 4095 [14:53:13]OFD Sender: Processing packet 139747 [packets to send 137, broken 136] [14:53:13]ProducePacketName [14:53:13]name=ofd_packets/00139747 [14:53:13]OFD Sender: To server: pG, [14:53:13]CommunicateWithHost lk.salyk.kg:30040 [14:53:13]ConnectInit lk.salyk.kg [14:53:13]Connected sock=11 [14:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 40 FB 08 01 BB D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 DB 00 00 00 F4 03 04 00 D7 AD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 21 02 00 35 04 06 00 88 BA 62 BB 06 F6 CA 4D 3B FD 7F DB 28 C4 [14:53:13]Write to MH i2c: 01 00 00 65 04 69 [14:53:13]Write i2c OK [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: 01 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: 01 07 00 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 CD 0C 49 [14:53:13]RasterBufferAndPrint [14:53:13]line [14:53:13]line [14:53:13]line [14:53:13]line [14:53:13]line [14:53:13]written 0, free lines is 3281 [14:53:13]MH_Cut [14:53:13]Write to MH i2c: D1 01 00 6C 04 01 42 [14:53:13]Write i2c OK [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: D1 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: D1 01 00 [14:53:13]MH_I2C_Read... [14:53:13]Read from MH i2c: D1 01 00 6C 04 00 41 [14:53:13]Write to MH i2c: 01 00 00 6D 04 71 [14:53:13]Write i2c OK [14:53:13]MH_I2C_Read... [14:53:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B4 2F 47 00 9E 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 21 02 00 F4 03 04 00 6A 54 C4 66 B6 04 01 00 00 0E 80 F4 F4 E4 9B E6 CB [14:53:13]CommunicateWithHost err = 0 [14:53:13]CheckOFDResponse [14:53:13]1017 (14) - 77093643461234 [14:53:13]1041 (16) - 0000000000871776 [14:53:13]1040 (4) - 139747 [14:53:13]1012 (4) - 20.08.2024 08:31 [14:53:13]1206 (1) - 0 [14:53:13]OFD Sender: Remove packet 139747 [14:53:13]ProducePacketName [14:53:13]name=ofd_packets/00139747 [14:53:13]NVStorageDeleteData [14:53:14]OFD Sender: No OFD packet to send [14:53:14]*** Cut start [14:53:14]*** Partial cut [14:53:14]*** CUTSNS_PIN = 1 [14:53:14]*** CUTSNS_PIN = 0 [14:53:14]*** Brake cut motor [14:53:15]Read from MH i2c: 01 [14:53:15]MH_I2C_Read... [14:53:15]*** Stop cut motor [14:53:15]*** Cut end [14:53:15]Read from MH i2c: 01 07 00 [14:53:15]MH_I2C_Read... [14:53:15]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 FF 0F 86 [14:53:15]process_action close_receipt done [14:53:15]requested_data is exist [14:53:15]produce_requested_data [14:53:15]requested_item fm.sn is exist - process it [14:53:15]wFMCommunicate request_size=4 [14:53:15]MH_SAM_APDU [14:53:15]CAPDU: 80 11 00 00 [14:53:15]Write to MH i2c: E2 08 00 6E 04 80 11 00 00 00 00 00 00 EC [14:53:15]Write i2c OK [14:53:15]MH_I2C_Read... [14:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:15]Read from MH i2c: E2 [14:53:15]MH_I2C_Read... [14:53:15]Read from MH i2c: E2 17 00 [14:53:15]MH_I2C_Read... [14:53:15]Read from MH i2c: E2 17 00 6E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [14:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:53:15]wFMCommunicate OK [14:53:15]requested_item fd.num is exist - process it [14:53:15]SAM_PROTO_GetFieldsCounters [14:53:15]wFMCommunicate request_size=4 [14:53:15]MH_SAM_APDU [14:53:15]CAPDU: 80 13 00 00 [14:53:15]Write to MH i2c: E2 08 00 6F 04 80 13 00 00 00 00 00 00 EF [14:53:15]Write i2c OK [14:53:15]MH_I2C_Read... [14:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:15]Read from MH i2c: E2 [14:53:15]MH_I2C_Read... [14:53:15]Read from MH i2c: E2 62 00 [14:53:15]MH_I2C_Read... [14:53:15]Read from MH i2c: E2 62 00 6F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 21 02 00 0E 04 04 00 C5 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 77 [14:53:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 21 02 00 0E 04 04 00 C5 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 [14:53:15]wFMCommunicate OK [14:53:15]SAM_PROTO_GetFieldsCounters done [14:53:15]requested_item shift.num is exist - process it [14:53:15]requested_item shift.opened is exist - process it [14:53:15]req_shift_opened [14:53:15]FM_GetShiftState [14:53:15]SAM_PROTO_GetShiftState [14:53:15]wFMCommunicate request_size=4 [14:53:15]MH_SAM_APDU [14:53:15]CAPDU: 80 13 01 00 [14:53:15]Write to MH i2c: E2 08 00 70 04 80 13 01 00 00 00 00 00 F1 [14:53:15]Write i2c OK [14:53:15]MH_I2C_Read... [14:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:15]Read from MH i2c: E2 [14:53:15]MH_I2C_Read... [14:53:15]Read from MH i2c: E2 0E 00 [14:53:15]MH_I2C_Read... [14:53:15]Read from MH i2c: E2 0E 00 70 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 82 [14:53:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:53:15]wFMCommunicate OK [14:53:15]SAM_PROTO_GetShiftState done [14:53:15]FM_GetShiftState done [14:53:15]req_shift_opened done [14:53:15]requested_item shift.open_date is exist - process it [14:53:15]req_shift_open_date [14:53:15]req_shift_open_date done [14:53:15]produce_requested_data done [14:53:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139747,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:53:15]process_action_free close_receipt [14:53:15]json_value_free [14:53:15]json_value_free done [14:53:15]process_json_proto returns [14:53:15]Send response to host [14:53:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139747,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:53:15]free response buf [14:53:15]execute_script done [14:53:15]execute_script returns [14:53:15]free content buf [14:53:15]Sock 9.Close socket [14:53:15]Sock 9.Thread stoped [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:10]accept exits with 7 [14:55:10]New connection [14:55:10]New thread 3067039076 created [14:55:10]Thread 3067182436 joined [14:55:10]Waiting for new connection... [14:55:10] Sock 7.Parse request [14:55:10]Sock 7.Check first char [14:55:10]Sock 7.First char is OK [14:55:10]request: POST /json_proto HTTP/1.0 [14:55:10]Method: POST [14:55:10]URL: /json_proto [14:55:10]Method is POST - this is cgi request [14:55:10]url: /json_proto [14:55:10]query_string will be loaded in cgi processing [14:55:10]execute_cgi json_proto POST (null) [14:55:10]execute_cgi path=json_proto method=POST [14:55:10]POST find Content-Length [14:55:10]Host: 172.17.45.67:8080 [14:55:10]Content-Length: 677 [14:55:10]Content-Type: application/json [14:55:10] [14:55:10]POST finish read [14:55:10]Found Content-Length = 677 [14:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:10]execute_script... [14:55: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)593596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:10]POST & json_proto [14:55:10]process_json_proto [14:55:10]json parsed OK: [14:55:10]protocol is kg_v1.0 [14:55:10]action value=close_receipt [14:55:10]process_action close_receipt [14:55:10]cmd_close_receipt [14:55:10]MH_GetDate [14:55:10]Write to MH i2c: F0 00 00 71 04 64 [14:55:10]Write i2c OK [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: F0 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: F0 09 00 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: F0 09 00 71 04 00 4E AE C4 66 5F 7F 2B 66 02 [14:55:10]GetLastDocTimeStamp 1724165591 [14:55:10]current date 1724165710 [14:55:10]FM_GetShiftState [14:55:10]SAM_PROTO_GetShiftState [14:55:10]wFMCommunicate request_size=4 [14:55:10]MH_SAM_APDU [14:55:10]CAPDU: 80 13 01 00 [14:55:10]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [14:55:10]Write i2c OK [14:55:10]MH_I2C_Read... [14:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:10]Read from MH i2c: E2 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: E2 0E 00 [14:55:10]MH_I2C_Read... [14:55:10]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 84 [14:55:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:55:10]wFMCommunicate OK [14:55:10]SAM_PROTO_GetShiftState done [14:55:10]FM_GetShiftState done [14:55:10]opened in 1724113785 [14:55:10]opened+sec_in_day 1724200185 [14:55:10]quantity*price = 40002 [14:55:10]sum+1 = 40003 [14:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 220 20.08.2024 14:55 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139748 ФПД: 112646474909280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T145510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139748&fm=112646474909280&tin=02508201610067®Number=0000000000092569&sum=40000 [14:55:11]StoreToDocumentArchive [14:55:11]shift 453 fd 139748 [14:55:11]save to /storage/0453/doc_00139748 [14:55:11]save last doc name /storage/0453/doc_00139748 to /storage/kkm_last_doc_name [14:55:11]save OK [14:55:11]Clear old archive folders... [14:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:11]tlvbuf is 0170A690 [14:55:11]SAM_PROTO_ClearQueue [14:55:11]wFMCommunicate request_size=4 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 09 00 00 [14:55:11]Write to MH i2c: E2 08 00 7F 04 80 09 00 00 00 00 00 00 F5 [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 03 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [14:55:11]RAPDU: 90 00 [14:55:11]wFMCommunicate OK [14:55:11]SAM_PROTO_ClearQueue done [14:55:11]KKMCreateOFDPacket [14:55:11]OFDProtocolAddRootSTLVToBuf [14:55:11]FM_MakeSignedData [14:55:11]FM_MakeSignedData [14:55:11]SAM_PROTO_SignData [14:55:11]wFMCommunicate request_size=4 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 0D 01 02 [14:55:11]Write to MH i2c: E2 08 00 80 04 80 0D 01 02 00 00 00 00 FD [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 03 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [14:55:11]RAPDU: 90 00 [14:55:11]wFMCommunicate OK [14:55:11]wFMCommunicate request_size=255 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 4E AE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 21 02 00 35 04 06 00 66 [14:55:11]Write to MH i2c: E2 02 01 81 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 4E AE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 21 02 00 35 04 06 00 66 00 00 A0 [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 03 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [14:55:11]RAPDU: 90 00 [14:55:11]wFMCommunicate OK [14:55:11]wFMCommunicate request_size=10 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 0D 02 02 05 73 8D 1F 46 60 [14:55:11]Write to MH i2c: E2 0D 00 82 04 80 0D 02 02 05 00 73 8D 1F 46 60 00 00 CF [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 03 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [14:55:11]RAPDU: 90 00 [14:55:11]wFMCommunicate OK [14:55:11]wFMCommunicate request_size=4 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 0D 03 02 [14:55:11]Write to MH i2c: E2 08 00 83 04 80 0D 03 02 00 00 00 00 02 [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 0B 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 0B 00 83 04 00 85 54 BE 5D 71 1E 5D 17 90 00 FA [14:55:11]RAPDU: 85 54 BE 5D 71 1E 5D 17 90 00 [14:55:11]wFMCommunicate OK [14:55:11]SAM_PROTO_SignData done [14:55:11]FM_MakeSignedData done [14:55:11]CreateOFDProtocolMessage [14:55:11]wFMCommunicate request_size=4 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 11 00 00 [14:55:11]Write to MH i2c: E2 08 00 84 04 80 11 00 00 00 00 00 00 02 [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 17 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 17 00 84 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 59 [14:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:55:11]wFMCommunicate OK [14:55:11]CreateOFDProtocolMessage done [14:55:11]OFDSenderStorePacket 139748 [14:55:11]StoreOFDPacket docnum=139748 [14:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 33 A8 07 01 81 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 4E AE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 21 02 00 35 04 06 00 66 73 8D 1F 46 60 85 54 BE 5D 71 1E 5D 17 [14:55:11]CheckFolder [14:55:11]dirname=/storage/ofd_packets [14:55:11]CheckFolder done [14:55:11]ProducePacketName [14:55:11]name=ofd_packets/00139748 [14:55:11]NVStorageSaveData ofd_packets/00139748 [14:55:11]File name is /storage/ofd_packets/00139748 [14:55:11]Write 301 bytes [14:55:11]NVStorageSaveData done [14:55:11]OFDSenderStorePacket done [14:55:11]KKMCreateOFDPacket done [14:55:11]NVStorageSaveData kkm_last_timestamp [14:55:11]File name is /storage/kkm_last_timestamp [14:55:11]Write 4 bytes [14:55:11]NVStorageSaveData done [14:55:11]ExternCall_PrintAddStr [14:55:11]wPrintStart [14:55:11]Write to MH i2c: 01 00 00 85 04 89 [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: 01 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: 01 07 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 FF 0F 9E [14:55:11]RasterBufferAndPrint [14:55:11]line Счет N : (1)593596 [14:55:11]line ИНН: 02508201610067 [14:55:11]line Контрольно-Кассовый Чек [14:55:11]line ПРОДАЖА [14:55:11]line ТРК (МРК, ГНК) : 62 [14:55:11]line Товар: 2710124130 [14:55:11]line Аи-92-К-5 [14:55:11]line 5.900 * 67.80 [14:55:11]line = 400.02 [14:55:11]line НДС 12% НСП 1% [14:55:11]line > о реализуемом товаре [14:55:11]line ОКРУГЛЕНИЕ: -0.02 [14:55:11]line ИТОГО: 400.00 [14:55:11]line Внесено: 400.00 [14:55:11]line СДАЧА: 0.00 [14:55:11]line НСП 1% : 3.54 [14:55:11]line НДС 12% : 42.48 [14:55:11]line Наличными: 400.00 [14:55:11]line Безнал.: 0.00 [14:55:11]line Место: АЗС № 136 "Партнер Нефть" [14:55:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:55:11]line СНО: Общий режим [14:55:11]line Чек 220 20.08.2024 14:55 [14:55:11]line Смена: 453 ФФД: 1.0 [14:55:11]line ЗНМ: 0300000067 [14:55:11]line РНМ: 0000000000092569 [14:55:11]line Версия ККМ: 001 [14:55:11]line ФМ: 0000000000871776 [14:55:11]line ФД: 139748 [14:55:11]line ФПД: 112646474909280 [14:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T145510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139748&fm=112646474909280&tin=02508201610067®Number=0000000000092569&sum=40000 [14:55:12]OFD Sender: Processing packet 139748 [packets to send 137, broken 136] [14:55:12]ProducePacketName [14:55:12]name=ofd_packets/00139748 [14:55:12]OFD Sender: To server: pG, [14:55:12]CommunicateWithHost lk.salyk.kg:30040 [14:55:12]ConnectInit lk.salyk.kg [14:55:12]written 0, free lines is 4095 [14:55:12]Connected sock=10 [14:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 33 A8 07 01 81 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 4E AE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 21 02 00 35 04 06 00 66 73 8D 1F 46 60 85 54 BE 5D 71 1E 5D 17 [14:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D4 61 47 00 6A E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 21 02 00 F4 03 04 00 E1 54 C4 66 B6 04 01 00 00 0C 84 B2 51 2D AF 06 AC [14:55:12]CommunicateWithHost err = 0 [14:55:12]CheckOFDResponse [14:55:12]1017 (14) - 77093643461234 [14:55:12]1041 (16) - 0000000000871776 [14:55:12]1040 (4) - 139748 [14:55:12]1012 (4) - 20.08.2024 08:33 [14:55:12]1206 (1) - 0 [14:55:12]OFD Sender: Remove packet 139748 [14:55:12]ProducePacketName [14:55:12]name=ofd_packets/00139748 [14:55:12]NVStorageDeleteData [14:55:12]Write to MH i2c: 01 00 00 B0 04 B4 [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: 01 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: 01 07 00 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 D6 0C 9D [14:55:12]RasterBufferAndPrint [14:55:12]line [14:55:12]line [14:55:12]line [14:55:12]line [14:55:12]line [14:55:12]written 0, free lines is 3293 [14:55:12]MH_Cut [14:55:12]Write to MH i2c: D1 01 00 B7 04 01 8D [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: D1 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: D1 01 00 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: D1 01 00 B7 04 00 8C [14:55:12]Write to MH i2c: 01 00 00 B8 04 BC [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:13]OFD Sender: No OFD packet to send [14:55:13]*** Cut start [14:55:13]*** Partial cut [14:55:13]*** CUTSNS_PIN = 1 [14:55:13]*** CUTSNS_PIN = 0 [14:55:13]*** Brake cut motor [14:55:13]Read from MH i2c: 01 [14:55:13]MH_I2C_Read... [14:55:13]*** Stop cut motor [14:55:13]*** Cut end [14:55:13]Read from MH i2c: 01 07 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: 01 07 00 B8 04 00 00 00 00 00 FF 0F D1 [14:55:13]process_action close_receipt done [14:55:13]requested_data is exist [14:55:13]produce_requested_data [14:55:13]requested_item fm.sn is exist - process it [14:55:13]wFMCommunicate request_size=4 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 11 00 00 [14:55:13]Write to MH i2c: E2 08 00 B9 04 80 11 00 00 00 00 00 00 37 [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 17 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 17 00 B9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8E [14:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:55:13]wFMCommunicate OK [14:55:13]requested_item fd.num is exist - process it [14:55:13]SAM_PROTO_GetFieldsCounters [14:55:13]wFMCommunicate request_size=4 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 13 00 00 [14:55:13]Write to MH i2c: E2 08 00 BA 04 80 13 00 00 00 00 00 00 3A [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:14]Read from MH i2c: E2 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 62 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 62 00 BA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 21 02 00 0E 04 04 00 C5 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 C6 [14:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 21 02 00 0E 04 04 00 C5 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 [14:55:14]wFMCommunicate OK [14:55:14]SAM_PROTO_GetFieldsCounters done [14:55:14]requested_item shift.num is exist - process it [14:55:14]requested_item shift.opened is exist - process it [14:55:14]req_shift_opened [14:55:14]FM_GetShiftState [14:55:14]SAM_PROTO_GetShiftState [14:55:14]wFMCommunicate request_size=4 [14:55:14]MH_SAM_APDU [14:55:14]CAPDU: 80 13 01 00 [14:55:14]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:14]Read from MH i2c: E2 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 0E 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CD [14:55:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:55:14]wFMCommunicate OK [14:55:14]SAM_PROTO_GetShiftState done [14:55:14]FM_GetShiftState done [14:55:14]req_shift_opened done [14:55:14]requested_item shift.open_date is exist - process it [14:55:14]req_shift_open_date [14:55:14]req_shift_open_date done [14:55:14]produce_requested_data done [14:55:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139748,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:55:14]process_action_free close_receipt [14:55:14]json_value_free [14:55:14]json_value_free done [14:55:14]process_json_proto returns [14:55:14]Send response to host [14:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139748,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:55:14]free response buf [14:55:14]execute_script done [14:55:14]execute_script returns [14:55:14]free content buf [14:55:14]Sock 7.Close socket [14:55:14]Sock 7.Thread stoped [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:56:59]accept exits with 9 [14:56:59]New connection [14:56:59]New thread 3067182436 created [14:56:59]Thread 3067039076 joined [14:56:59]Waiting for new connection... [14:56:59] Sock 9.Parse request [14:56:59]Sock 9.Check first char [14:56:59]Sock 9.First char is OK [14:56:59]request: POST /json_proto HTTP/1.0 [14:56:59]Method: POST [14:56:59]URL: /json_proto [14:56:59]Method is POST - this is cgi request [14:56:59]url: /json_proto [14:56:59]query_string will be loaded in cgi processing [14:56:59]execute_cgi json_proto POST (null) [14:56:59]execute_cgi path=json_proto method=POST [14:56:59]POST find Content-Length [14:56:59]Host: 172.17.45.67:8080 [14:56:59]Content-Length: 682 [14:56:59]Content-Type: application/json [14:56:59] [14:56:59]POST finish read [14:56:59]Found Content-Length = 682 [14:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:56:59]execute_script... [14:56: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)593597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:56:59]POST & json_proto [14:56:59]process_json_proto [14:56:59]json parsed OK: [14:56:59]protocol is kg_v1.0 [14:56:59]action value=close_receipt [14:56:59]process_action close_receipt [14:56:59]cmd_close_receipt [14:56:59]MH_GetDate [14:56:59]Write to MH i2c: F0 00 00 BC 04 AF [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: F0 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: F0 09 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: F0 09 00 BC 04 00 BB AE C4 66 5F 7F 2B 66 BA [14:56:59]GetLastDocTimeStamp 1724165710 [14:56:59]current date 1724165819 [14:56:59]FM_GetShiftState [14:56:59]SAM_PROTO_GetShiftState [14:56:59]wFMCommunicate request_size=4 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 13 01 00 [14:56:59]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 0E 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CF [14:56:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:56:59]wFMCommunicate OK [14:56:59]SAM_PROTO_GetShiftState done [14:56:59]FM_GetShiftState done [14:56:59]opened in 1724113785 [14:56:59]opened+sec_in_day 1724200185 [14:56:59]quantity*price = 50063 [14:56:59]sum+1 = 50064 [14:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 221 20.08.2024 14:56 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139749 ФПД: 55332739290608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T145659&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139749&fm=55332739290608&tin=02508201610067®Number=0000000000092569&sum=50000 [14:57:00]StoreToDocumentArchive [14:57:00]shift 453 fd 139749 [14:57:00]save to /storage/0453/doc_00139749 [14:57:00]save last doc name /storage/0453/doc_00139749 to /storage/kkm_last_doc_name [14:57:00]save OK [14:57:00]Clear old archive folders... [14:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:57:00]tlvbuf is 01693150 [14:57:00]SAM_PROTO_ClearQueue [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 09 00 00 [14:57:00]Write to MH i2c: E2 08 00 CA 04 80 09 00 00 00 00 00 00 40 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 03 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [14:57:00]RAPDU: 90 00 [14:57:00]wFMCommunicate OK [14:57:00]SAM_PROTO_ClearQueue done [14:57:00]KKMCreateOFDPacket [14:57:00]OFDProtocolAddRootSTLVToBuf [14:57:00]FM_MakeSignedData [14:57:00]FM_MakeSignedData [14:57:00]SAM_PROTO_SignData [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 0D 01 02 [14:57:00]Write to MH i2c: E2 08 00 CB 04 80 0D 01 02 00 00 00 00 48 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 03 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [14:57:00]RAPDU: 90 00 [14:57:00]wFMCommunicate OK [14:57:00]wFMCommunicate request_size=255 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 DD 00 00 00 F4 03 04 00 BB AE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 21 02 00 35 04 06 00 [14:57:00]Write to MH i2c: E2 02 01 CC 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 DD 00 00 00 F4 03 04 00 BB AE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 21 02 00 35 04 06 00 00 00 85 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 03 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [14:57:00]RAPDU: 90 00 [14:57:00]wFMCommunicate OK [14:57:00]wFMCommunicate request_size=11 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 0D 02 02 06 32 53 28 45 15 F0 [14:57:00]Write to MH i2c: E2 0E 00 CD 04 80 0D 02 02 06 00 32 53 28 45 15 F0 00 00 4E [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 03 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [14:57:00]RAPDU: 90 00 [14:57:00]wFMCommunicate OK [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 0D 03 02 [14:57:00]Write to MH i2c: E2 08 00 CE 04 80 0D 03 02 00 00 00 00 4D [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0B 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0B 00 CE 04 00 CF E7 6A F9 28 0F 28 D9 90 00 9F [14:57:00]RAPDU: CF E7 6A F9 28 0F 28 D9 90 00 [14:57:00]wFMCommunicate OK [14:57:00]SAM_PROTO_SignData done [14:57:00]FM_MakeSignedData done [14:57:00]CreateOFDProtocolMessage [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 11 00 00 [14:57:00]Write to MH i2c: E2 08 00 CF 04 80 11 00 00 00 00 00 00 4D [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 17 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 17 00 CF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A4 [14:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:57:00]wFMCommunicate OK [14:57:00]CreateOFDProtocolMessage done [14:57:00]OFDSenderStorePacket 139749 [14:57:00]StoreOFDPacket docnum=139749 [14:57:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 03 03 08 01 8D 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 DD 00 00 00 F4 03 04 00 BB AE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 21 02 00 35 04 06 00 32 53 28 45 15 F0 CF E7 6A F9 28 0F 28 D9 [14:57:00]CheckFolder [14:57:00]dirname=/storage/ofd_packets [14:57:00]CheckFolder done [14:57:00]ProducePacketName [14:57:00]name=ofd_packets/00139749 [14:57:00]NVStorageSaveData ofd_packets/00139749 [14:57:00]File name is /storage/ofd_packets/00139749 [14:57:00]Write 302 bytes [14:57:00]NVStorageSaveData done [14:57:00]OFDSenderStorePacket done [14:57:00]KKMCreateOFDPacket done [14:57:00]NVStorageSaveData kkm_last_timestamp [14:57:00]File name is /storage/kkm_last_timestamp [14:57:00]Write 4 bytes [14:57:00]NVStorageSaveData done [14:57:00]ExternCall_PrintAddStr [14:57:00]wPrintStart [14:57:00]Write to MH i2c: 01 00 00 D0 04 D4 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 07 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [14:57:00]RasterBufferAndPrint [14:57:00]line Счет N : (1)593597 [14:57:00]line ИНН: 02508201610067 [14:57:00]line Контрольно-Кассовый Чек [14:57:00]line ПРОДАЖА [14:57:00]line ТРК (МРК, ГНК) : 54 [14:57:00]line Товар: 2710194210 [14:57:00]line ДТ(л)-К-5 [14:57:00]line 6.570 * 76.20 [14:57:00]line = 500.63 [14:57:00]line НДС 12% НСП 1% [14:57:00]line > о реализуемом товаре [14:57:00]line ОКРУГЛЕНИЕ: -0.63 [14:57:00]line ИТОГО: 500.00 [14:57:00]line Внесено: 500.00 [14:57:00]line СДАЧА: 0.00 [14:57:00]line НСП 1% : 4.43 [14:57:00]line НДС 12% : 53.16 [14:57:00]line Наличными: 500.00 [14:57:00]line Безнал.: 0.00 [14:57:00]line Место: АЗС № 136 "Партнер Нефть" [14:57:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:57:00]line СНО: Общий режим [14:57:00]line Чек 221 20.08.2024 14:56 [14:57:00]line Смена: 453 ФФД: 1.0 [14:57:00]line ЗНМ: 0300000067 [14:57:00]line РНМ: 0000000000092569 [14:57:00]line Версия ККМ: 001 [14:57:00]line ФМ: 0000000000871776 [14:57:00]line ФД: 139749 [14:57:00]line ФПД: 55332739290608 [14:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T145659&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139749&fm=55332739290608&tin=02508201610067®Number=0000000000092569&sum=50000 [14:57:01]OFD Sender: Processing packet 139749 [packets to send 137, broken 136] [14:57:01]ProducePacketName [14:57:01]name=ofd_packets/00139749 [14:57:01]OFD Sender: To server: pG, [14:57:01]CommunicateWithHost lk.salyk.kg:30040 [14:57:01]ConnectInit lk.salyk.kg [14:57:01]written 0, free lines is 4095 [14:57:01]Connected sock=7 [14:57:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 03 03 08 01 8D 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 DD 00 00 00 F4 03 04 00 BB AE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 21 02 00 35 04 06 00 32 53 28 45 15 F0 CF E7 6A F9 28 0F 28 D9 [14:57:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F3 9B 47 00 C7 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 21 02 00 F4 03 04 00 4E 55 C4 66 B6 04 01 00 00 A5 0E 72 E7 95 ED 25 7E [14:57:01]CommunicateWithHost err = 0 [14:57:01]CheckOFDResponse [14:57:01]1017 (14) - 77093643461234 [14:57:01]1041 (16) - 0000000000871776 [14:57:01]1040 (4) - 139749 [14:57:01]1012 (4) - 20.08.2024 08:35 [14:57:01]1206 (1) - 0 [14:57:01]OFD Sender: Remove packet 139749 [14:57:01]ProducePacketName [14:57:01]name=ofd_packets/00139749 [14:57:01]NVStorageDeleteData [14:57:01]Write to MH i2c: 01 00 00 FB 04 FF [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: 01 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: 01 07 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 D5 0C E7 [14:57:01]RasterBufferAndPrint [14:57:01]line [14:57:01]line [14:57:01]line [14:57:01]line [14:57:01]line [14:57:01]written 0, free lines is 3292 [14:57:01]MH_Cut [14:57:01]Write to MH i2c: D1 01 00 02 05 01 D9 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: D1 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: D1 01 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: D1 01 00 02 05 00 D8 [14:57:01]Write to MH i2c: 01 00 00 03 05 08 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]OFD Sender: No OFD packet to send [14:57:02]*** Cut start [14:57:02]*** Partial cut [14:57:02]*** CUTSNS_PIN = 1 [14:57:02]*** CUTSNS_PIN = 0 [14:57:02]*** Brake cut motor [14:57:02]Read from MH i2c: 01 [14:57:02]MH_I2C_Read... [14:57:02]*** Stop cut motor [14:57:02]*** Cut end [14:57:02]Read from MH i2c: 01 07 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 FF 0F 1D [14:57:02]process_action close_receipt done [14:57:02]requested_data is exist [14:57:02]produce_requested_data [14:57:02]requested_item fm.sn is exist - process it [14:57:02]wFMCommunicate request_size=4 [14:57:02]MH_SAM_APDU [14:57:02]CAPDU: 80 11 00 00 [14:57:02]Write to MH i2c: E2 08 00 04 05 80 11 00 00 00 00 00 00 83 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 17 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 17 00 04 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DA [14:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:57:02]wFMCommunicate OK [14:57:02]requested_item fd.num is exist - process it [14:57:02]SAM_PROTO_GetFieldsCounters [14:57:02]wFMCommunicate request_size=4 [14:57:02]MH_SAM_APDU [14:57:02]CAPDU: 80 13 00 00 [14:57:02]Write to MH i2c: E2 08 00 05 05 80 13 00 00 00 00 00 00 86 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 62 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 62 00 05 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 21 02 00 0E 04 04 00 C5 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 16 [14:57:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 21 02 00 0E 04 04 00 C5 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 [14:57:03]wFMCommunicate OK [14:57:03]SAM_PROTO_GetFieldsCounters done [14:57:03]requested_item shift.num is exist - process it [14:57:03]requested_item shift.opened is exist - process it [14:57:03]req_shift_opened [14:57:03]FM_GetShiftState [14:57:03]SAM_PROTO_GetShiftState [14:57:03]wFMCommunicate request_size=4 [14:57:03]MH_SAM_APDU [14:57:03]CAPDU: 80 13 01 00 [14:57:03]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [14:57:03]Write i2c OK [14:57:03]MH_I2C_Read... [14:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:03]Read from MH i2c: E2 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 0E 00 [14:57:03]MH_I2C_Read... [14:57:03]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 19 [14:57:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [14:57:03]wFMCommunicate OK [14:57:03]SAM_PROTO_GetShiftState done [14:57:03]FM_GetShiftState done [14:57:03]req_shift_opened done [14:57:03]requested_item shift.open_date is exist - process it [14:57:03]req_shift_open_date [14:57:03]req_shift_open_date done [14:57:03]produce_requested_data done [14:57:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139749,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [14:57:03]process_action_free close_receipt [14:57:03]json_value_free [14:57:03]json_value_free done [14:57:03]process_json_proto returns [14:57:03]Send response to host [14:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139749,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [14:57:03]free response buf [14:57:03]execute_script done [14:57:03]execute_script returns [14:57:03]free content buf [14:57:03]Sock 9.Close socket [14:57:03]Sock 9.Thread stoped [14:57:06]OFD Sender: No OFD packet to send [14:57:11]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:27]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]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:37]OFD Sender: No OFD packet to send [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]accept exits with 10 [15:00:47]New connection [15:00:47]New thread 3067039076 created [15:00:47]Thread 3067182436 joined [15:00:47]Waiting for new connection... [15:00:47] Sock 10.Parse request [15:00:47]Sock 10.Check first char [15:00:47]Sock 10.First char is OK [15:00:47]request: POST /json_proto HTTP/1.0 [15:00:47]Method: POST [15:00:47]URL: /json_proto [15:00:47]Method is POST - this is cgi request [15:00:47]url: /json_proto [15:00:47]query_string will be loaded in cgi processing [15:00:47]execute_cgi json_proto POST (null) [15:00:47]execute_cgi path=json_proto method=POST [15:00:47]POST find Content-Length [15:00:47]Host: 172.17.45.67:8080 [15:00:47]Content-Length: 754 [15:00:47]Content-Type: application/json [15:00:47] [15:00:47]POST finish read [15:00:47]Found Content-Length = 754 [15:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107090", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:47]execute_script... [15:00: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)593598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30107090", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:47]POST & json_proto [15:00:47]process_json_proto [15:00:47]json parsed OK: [15:00:47]protocol is kg_v1.0 [15:00:47]action value=close_receipt [15:00:47]process_action close_receipt [15:00:47]cmd_close_receipt [15:00:47]MH_GetDate [15:00:47]Write to MH i2c: F0 00 00 07 05 FB [15:00:47]Write i2c OK [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: F0 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: F0 09 00 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: F0 09 00 07 05 00 9F AF C4 66 5F 7F 2B 66 EB [15:00:47]GetLastDocTimeStamp 1724165819 [15:00:47]current date 1724166047 [15:00:47]FM_GetShiftState [15:00:47]SAM_PROTO_GetShiftState [15:00:47]wFMCommunicate request_size=4 [15:00:47]MH_SAM_APDU [15:00:47]CAPDU: 80 13 01 00 [15:00:47]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [15:00:47]Write i2c OK [15:00:47]MH_I2C_Read... [15:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:47]Read from MH i2c: E2 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 0E 00 [15:00:47]MH_I2C_Read... [15:00:47]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1B [15:00:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:00:47]wFMCommunicate OK [15:00:47]SAM_PROTO_GetShiftState done [15:00:47]FM_GetShiftState done [15:00:47]opened in 1724113785 [15:00:47]opened+sec_in_day 1724200185 [15:00:47]quantity*price = 0 [15:00:47]sum+1 = 1 [15:00:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 222 20.08.2024 15:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107090 ФМ: 0000000000871776 ФД: 139750 ФПД: 4700930059780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T150047&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139750&fm=4700930059780&tin=02508201610067®Number=0000000000092569&sum=0 [15:00:48]StoreToDocumentArchive [15:00:48]shift 453 fd 139750 [15:00:48]save to /storage/0453/doc_00139750 [15:00:48]save last doc name /storage/0453/doc_00139750 to /storage/kkm_last_doc_name [15:00:48]save OK [15:00:48]Clear old archive folders... [15:00:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:48]tlvbuf is 016E5120 [15:00:48]SAM_PROTO_ClearQueue [15:00:48]wFMCommunicate request_size=4 [15:00:48]MH_SAM_APDU [15:00:48]CAPDU: 80 09 00 00 [15:00:48]Write to MH i2c: E2 08 00 15 05 80 09 00 00 00 00 00 00 8C [15:00:48]Write i2c OK [15:00:48]MH_I2C_Read... [15:00:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:48]Read from MH i2c: E2 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 03 00 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [15:00:48]RAPDU: 90 00 [15:00:48]wFMCommunicate OK [15:00:48]SAM_PROTO_ClearQueue done [15:00:48]KKMCreateOFDPacket [15:00:48]OFDProtocolAddRootSTLVToBuf [15:00:48]FM_MakeSignedData [15:00:48]FM_MakeSignedData [15:00:48]SAM_PROTO_SignData [15:00:48]wFMCommunicate request_size=4 [15:00:48]MH_SAM_APDU [15:00:48]CAPDU: 80 0D 01 02 [15:00:48]Write to MH i2c: E2 08 00 16 05 80 0D 01 02 00 00 00 00 94 [15:00:48]Write i2c OK [15:00:48]MH_I2C_Read... [15:00:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:48]Read from MH i2c: E2 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 03 00 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [15:00:48]RAPDU: 90 00 [15:00:48]wFMCommunicate OK [15:00:48]wFMCommunicate request_size=255 [15:00:48]MH_SAM_APDU [15:00:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 9F AF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 21 02 00 35 04 06 00 04 [15:00:48]Write to MH i2c: E2 02 01 17 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 9F AF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 21 02 00 35 04 06 00 04 00 00 A3 [15:00:48]Write i2c OK [15:00:48]MH_I2C_Read... [15:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:48]Read from MH i2c: E2 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 03 00 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [15:00:48]RAPDU: 90 00 [15:00:48]wFMCommunicate OK [15:00:48]wFMCommunicate request_size=10 [15:00:48]MH_SAM_APDU [15:00:48]CAPDU: 80 0D 02 02 05 46 85 44 2E 04 [15:00:48]Write to MH i2c: E2 0D 00 18 05 80 0D 02 02 05 00 46 85 44 2E 04 00 00 E2 [15:00:48]Write i2c OK [15:00:48]MH_I2C_Read... [15:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:48]Read from MH i2c: E2 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 03 00 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [15:00:48]RAPDU: 90 00 [15:00:48]wFMCommunicate OK [15:00:48]wFMCommunicate request_size=4 [15:00:48]MH_SAM_APDU [15:00:48]CAPDU: 80 0D 03 02 [15:00:48]Write to MH i2c: E2 08 00 19 05 80 0D 03 02 00 00 00 00 99 [15:00:48]Write i2c OK [15:00:48]MH_I2C_Read... [15:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:48]Read from MH i2c: E2 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 0B 00 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 0B 00 19 05 00 D8 E0 E9 BA 62 E6 38 B9 90 00 2E [15:00:48]RAPDU: D8 E0 E9 BA 62 E6 38 B9 90 00 [15:00:48]wFMCommunicate OK [15:00:48]SAM_PROTO_SignData done [15:00:48]FM_MakeSignedData done [15:00:48]CreateOFDProtocolMessage [15:00:48]wFMCommunicate request_size=4 [15:00:48]MH_SAM_APDU [15:00:48]CAPDU: 80 11 00 00 [15:00:48]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [15:00:48]Write i2c OK [15:00:48]MH_I2C_Read... [15:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:48]Read from MH i2c: E2 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 17 00 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F0 [15:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:00:48]wFMCommunicate OK [15:00:48]CreateOFDProtocolMessage done [15:00:48]OFDSenderStorePacket 139750 [15:00:48]StoreOFDPacket docnum=139750 [15:00:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E4 40 07 01 CB A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 9F AF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 21 02 00 35 04 06 00 04 46 85 44 2E 04 D8 E0 E9 BA 62 E6 38 B9 [15:00:48]CheckFolder [15:00:48]dirname=/storage/ofd_packets [15:00:48]CheckFolder done [15:00:48]ProducePacketName [15:00:48]name=ofd_packets/00139750 [15:00:48]NVStorageSaveData ofd_packets/00139750 [15:00:48]File name is /storage/ofd_packets/00139750 [15:00:48]Write 301 bytes [15:00:48]NVStorageSaveData done [15:00:48]OFDSenderStorePacket done [15:00:48]KKMCreateOFDPacket done [15:00:48]NVStorageSaveData kkm_last_timestamp [15:00:48]File name is /storage/kkm_last_timestamp [15:00:48]Write 4 bytes [15:00:48]NVStorageSaveData done [15:00:48]ExternCall_PrintAddStr [15:00:48]wPrintStart [15:00:48]Write to MH i2c: 01 00 00 1B 05 20 [15:00:48]Write i2c OK [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: 01 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: 01 07 00 [15:00:48]MH_I2C_Read... [15:00:48]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [15:00:48]RasterBufferAndPrint [15:00:48]line Счет N : (1)593598 [15:00:48]line ИНН: 02508201610067 [15:00:48]line Контрольно-Кассовый Чек [15:00:48]line ПРОДАЖА [15:00:48]line ТРК (МРК, ГНК) : 42 [15:00:48]line Товар: 2710124130 [15:00:48]line Аи-92-К-5 [15:00:48]line 15.000 * 0.00 [15:00:48]line = 0.00 [15:00:48]line НДС 12% НСП 1% [15:00:48]line > о реализуемом товаре [15:00:48]line ИТОГО: 0.00 [15:00:48]line НСП 1% : 0.00 [15:00:48]line НДС 12% : 0.00 [15:00:48]line Наличными: 0.00 [15:00:48]line Безнал.: 0.00 [15:00:48]line Место: АЗС № 136 "Партнер Нефть" [15:00:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:00:48]line СНО: Общий режим [15:00:48]line Чек 222 20.08.2024 15:00 [15:00:48]line Смена: 453 ФФД: 1.0 [15:00:48]line ЗНМ: 0300000067 [15:00:48]line РНМ: 0000000000092569 [15:00:48]line Версия ККМ: 001 [15:00:48]line Талоны: ТК ГПНА Online [15:00:48]line 30107090 [15:00:48]line ФМ: 0000000000871776 [15:00:48]line ФД: 139750 [15:00:48]line ФПД: 4700930059780 [15:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T150047&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139750&fm=4700930059780&tin=02508201610067®Number=0000000000092569&sum=0 [15:00:48]written 0, free lines is 4095 [15:00:48]OFD Sender: Processing packet 139750 [packets to send 137, broken 136] [15:00:48]ProducePacketName [15:00:48]name=ofd_packets/00139750 [15:00:48]OFD Sender: To server: pG, [15:00:48]CommunicateWithHost lk.salyk.kg:30040 [15:00:48]ConnectInit lk.salyk.kg [15:00:48]Connected sock=9 [15:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E4 40 07 01 CB A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 9F AF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 21 02 00 35 04 06 00 04 46 85 44 2E 04 D8 E0 E9 BA 62 E6 38 B9 [15:00:49]Write to MH i2c: 01 00 00 45 05 4A [15:00:49]Write i2c OK [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: 01 [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: 01 07 00 [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 DD 0C 3A [15:00:49]RasterBufferAndPrint [15:00:49]line [15:00:49]line [15:00:49]line [15:00:49]line [15:00:49]line [15:00:49]written 0, free lines is 3300 [15:00:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4F 95 47 00 BE A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 21 02 00 F4 03 04 00 32 56 C4 66 B6 04 01 00 00 EF AE 15 BF 5C F5 2A 62 [15:00:49]CommunicateWithHost err = 0 [15:00:49]CheckOFDResponse [15:00:49]1017 (14) - 77093643461234 [15:00:49]1041 (16) - 0000000000871776 [15:00:49]1040 (4) - 139750 [15:00:49]1012 (4) - 20.08.2024 08:39 [15:00:49]1206 (1) - 0 [15:00:49]OFD Sender: Remove packet 139750 [15:00:49]ProducePacketName [15:00:49]name=ofd_packets/00139750 [15:00:49]NVStorageDeleteData [15:00:49]MH_Cut [15:00:49]Write to MH i2c: D1 01 00 4C 05 01 23 [15:00:49]Write i2c OK [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: D1 [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: D1 01 00 [15:00:49]MH_I2C_Read... [15:00:49]Read from MH i2c: D1 01 00 4C 05 00 22 [15:00:49]Write to MH i2c: 01 00 00 4D 05 52 [15:00:49]Write i2c OK [15:00:49]MH_I2C_Read... [15:00:49]OFD Sender: No OFD packet to send [15:00:49]*** Cut start [15:00:49]*** Partial cut [15:00:49]*** CUTSNS_PIN = 1 [15:00:49]*** CUTSNS_PIN = 0 [15:00:50]*** Brake cut motor [15:00:50]Read from MH i2c: 01 [15:00:50]MH_I2C_Read... [15:00:50]*** Stop cut motor [15:00:50]*** Cut end [15:00:50]Read from MH i2c: 01 07 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FF 0F 67 [15:00:50]process_action close_receipt done [15:00:50]requested_data is exist [15:00:50]produce_requested_data [15:00:50]requested_item fm.sn is exist - process it [15:00:50]wFMCommunicate request_size=4 [15:00:50]MH_SAM_APDU [15:00:50]CAPDU: 80 11 00 00 [15:00:50]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:50]Read from MH i2c: E2 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 17 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 24 [15:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:00:50]wFMCommunicate OK [15:00:50]requested_item fd.num is exist - process it [15:00:50]SAM_PROTO_GetFieldsCounters [15:00:50]wFMCommunicate request_size=4 [15:00:50]MH_SAM_APDU [15:00:50]CAPDU: 80 13 00 00 [15:00:50]Write to MH i2c: E2 08 00 4F 05 80 13 00 00 00 00 00 00 D0 [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:50]Read from MH i2c: E2 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 62 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 62 00 4F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 21 02 00 0E 04 04 00 C5 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 64 [15:00:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 21 02 00 0E 04 04 00 C5 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 [15:00:50]wFMCommunicate OK [15:00:50]SAM_PROTO_GetFieldsCounters done [15:00:50]requested_item shift.num is exist - process it [15:00:50]requested_item shift.opened is exist - process it [15:00:50]req_shift_opened [15:00:50]FM_GetShiftState [15:00:50]SAM_PROTO_GetShiftState [15:00:50]wFMCommunicate request_size=4 [15:00:50]MH_SAM_APDU [15:00:50]CAPDU: 80 13 01 00 [15:00:50]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [15:00:50]Write i2c OK [15:00:50]MH_I2C_Read... [15:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:50]Read from MH i2c: E2 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 0E 00 [15:00:50]MH_I2C_Read... [15:00:50]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 63 [15:00:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:00:50]wFMCommunicate OK [15:00:50]SAM_PROTO_GetShiftState done [15:00:50]FM_GetShiftState done [15:00:50]req_shift_opened done [15:00:50]requested_item shift.open_date is exist - process it [15:00:50]req_shift_open_date [15:00:50]req_shift_open_date done [15:00:50]produce_requested_data done [15:00:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139750,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:00:50]process_action_free close_receipt [15:00:50]json_value_free [15:00:50]json_value_free done [15:00:50]process_json_proto returns [15:00:50]Send response to host [15:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139750,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:00:50]free response buf [15:00:50]execute_script done [15:00:50]execute_script returns [15:00:50]free content buf [15:00:50]Sock 10.Close socket [15:00:50]Sock 10.Thread stoped [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:15]accept exits with 7 [15:01:15]New connection [15:01:15]New thread 3067182436 created [15:01:15]Thread 3067039076 joined [15:01:15]Waiting for new connection... [15:01:15] Sock 7.Parse request [15:01:15]Sock 7.Check first char [15:01:15]Sock 7.First char is OK [15:01:15]request: POST /json_proto HTTP/1.0 [15:01:15]Method: POST [15:01:15]URL: /json_proto [15:01:15]Method is POST - this is cgi request [15:01:15]url: /json_proto [15:01:15]query_string will be loaded in cgi processing [15:01:15]execute_cgi json_proto POST (null) [15:01:15]execute_cgi path=json_proto method=POST [15:01:15]POST find Content-Length [15:01:15]Host: 172.17.45.67:8080 [15:01:15]Content-Length: 803 [15:01:15]Content-Type: application/json [15:01:15] [15:01:15]POST finish read [15:01:15]Found Content-Length = 803 [15:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 20.350, "sum" : 1400.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1400.00, "payments": [ { "type": 1, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:15]execute_script... [15:01: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)593599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 20.350, "sum" : 1400.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1400.00, "payments": [ { "type": 1, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:15]POST & json_proto [15:01:15]process_json_proto [15:01:15]json parsed OK: [15:01:15]protocol is kg_v1.0 [15:01:15]action value=close_receipt [15:01:15]process_action close_receipt [15:01:15]cmd_close_receipt [15:01:15]MH_GetDate [15:01:15]Write to MH i2c: F0 00 00 51 05 45 [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: F0 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: F0 09 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: F0 09 00 51 05 00 BC AF C4 66 5F 7F 2B 66 52 [15:01:15]GetLastDocTimeStamp 1724166047 [15:01:15]current date 1724166076 [15:01:15]FM_GetShiftState [15:01:15]SAM_PROTO_GetShiftState [15:01:15]wFMCommunicate request_size=4 [15:01:15]MH_SAM_APDU [15:01:15]CAPDU: 80 13 01 00 [15:01:15]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:15]Read from MH i2c: E2 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 0E 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 65 [15:01:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:01:15]wFMCommunicate OK [15:01:15]SAM_PROTO_GetShiftState done [15:01:15]FM_GetShiftState done [15:01:15]opened in 1724113785 [15:01:15]opened+sec_in_day 1724200185 [15:01:15]quantity*price = 140008 [15:01:15]sum+1 = 140009 [15:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1400.00 НСП 1% : 12.39 НДС 12% : 148.68 Наличными: 0.00 Безнал.: 1400.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 223 20.08.2024 15:01 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139751 ФПД: 195948329887998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T150116&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139751&fm=195948329887998&tin=02508201610067®Number=0000000000092569&sum=140000 [15:01:16]StoreToDocumentArchive [15:01:16]shift 453 fd 139751 [15:01:16]save to /storage/0453/doc_00139751 [15:01:16]save last doc name /storage/0453/doc_00139751 to /storage/kkm_last_doc_name [15:01:16]save OK [15:01:16]Clear old archive folders... [15:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:01:16]tlvbuf is 01697180 [15:01:16]SAM_PROTO_ClearQueue [15:01:16]wFMCommunicate request_size=4 [15:01:16]MH_SAM_APDU [15:01:16]CAPDU: 80 09 00 00 [15:01:16]Write to MH i2c: E2 08 00 5F 05 80 09 00 00 00 00 00 00 D6 [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]SAM_PROTO_ClearQueue done [15:01:17]KKMCreateOFDPacket [15:01:17]OFDProtocolAddRootSTLVToBuf [15:01:17]FM_MakeSignedData [15:01:17]FM_MakeSignedData [15:01:17]SAM_PROTO_SignData [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 01 02 [15:01:17]Write to MH i2c: E2 08 00 60 05 80 0D 01 02 00 00 00 00 DE [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]wFMCommunicate request_size=253 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 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 14 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC AF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 21 02 00 35 04 06 00 B2 36 C6 98 E8 FE [15:01:17]Write to MH i2c: E2 00 01 61 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 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 14 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC AF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 21 02 00 35 04 06 00 B2 36 C6 98 E8 FE 00 00 14 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [15:01:17]RAPDU: 90 00 [15:01:17]wFMCommunicate OK [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 0D 03 02 [15:01:17]Write to MH i2c: E2 08 00 62 05 80 0D 03 02 00 00 00 00 E2 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0B 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0B 00 62 05 00 66 67 47 4B 3D 95 0B 91 90 00 B0 [15:01:17]RAPDU: 66 67 47 4B 3D 95 0B 91 90 00 [15:01:17]wFMCommunicate OK [15:01:17]SAM_PROTO_SignData done [15:01:17]FM_MakeSignedData done [15:01:17]CreateOFDProtocolMessage [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 11 00 00 [15:01:17]Write to MH i2c: E2 08 00 63 05 80 11 00 00 00 00 00 00 E2 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 17 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 17 00 63 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [15:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:01:17]wFMCommunicate OK [15:01:17]CreateOFDProtocolMessage done [15:01:17]OFDSenderStorePacket 139751 [15:01:17]StoreOFDPacket docnum=139751 [15:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 CB 16 00 01 69 DF 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 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 14 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC AF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 21 02 00 35 04 06 00 B2 36 C6 98 E8 FE 66 67 47 4B 3D 95 0B 91 [15:01:17]CheckFolder [15:01:17]dirname=/storage/ofd_packets [15:01:17]CheckFolder done [15:01:17]ProducePacketName [15:01:17]name=ofd_packets/00139751 [15:01:17]NVStorageSaveData ofd_packets/00139751 [15:01:17]File name is /storage/ofd_packets/00139751 [15:01:17]Write 294 bytes [15:01:17]NVStorageSaveData done [15:01:17]OFDSenderStorePacket done [15:01:17]KKMCreateOFDPacket done [15:01:17]NVStorageSaveData kkm_last_timestamp [15:01:17]File name is /storage/kkm_last_timestamp [15:01:17]Write 4 bytes [15:01:17]NVStorageSaveData done [15:01:17]ExternCall_PrintAddStr [15:01:17]wPrintStart [15:01:17]Write to MH i2c: 01 00 00 64 05 69 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 07 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 07 00 64 05 00 00 00 00 00 FF 0F 7E [15:01:17]RasterBufferAndPrint [15:01:17]line Счет N : (1)593599 [15:01:17]line ИНН: 02508201610067 [15:01:17]line Контрольно-Кассовый Чек [15:01:17]line ПРОДАЖА [15:01:17]line ТРК (МРК, ГНК) : 63 [15:01:17]line Товар: 2710124130 [15:01:17]line SU-92 [15:01:17]line 20.350 * 68.80 [15:01:17]line = 1400.08 [15:01:17]line НДС 12% НСП 1% [15:01:17]line > о реализуемом товаре [15:01:17]line ОКРУГЛЕНИЕ: -0.08 [15:01:17]line ИТОГО: 1400.00 [15:01:17]line НСП 1% : 12.39 [15:01:17]line НДС 12% : 148.68 [15:01:17]line Наличными: 0.00 [15:01:17]line Безнал.: 1400.00 [15:01:17]line Место: АЗС № 136 "Партнер Нефть" [15:01:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:01:17]line СНО: Общий режим [15:01:17]line Чек 223 20.08.2024 15:01 [15:01:17]line Смена: 453 ФФД: 1.0 [15:01:17]line ЗНМ: 0300000067 [15:01:17]line РНМ: 0000000000092569 [15:01:17]line Версия ККМ: 001 [15:01:17]line Платежная система: O! деньги [15:01:17]line ФМ: 0000000000871776 [15:01:17]line ФД: 139751 [15:01:17]line ФПД: 195948329887998 [15:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T150116&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139751&fm=195948329887998&tin=02508201610067®Number=0000000000092569&sum=140000 [15:01:17]OFD Sender: Processing packet 139751 [packets to send 137, broken 136] [15:01:17]ProducePacketName [15:01:17]name=ofd_packets/00139751 [15:01:17]OFD Sender: To server: pG, [15:01:17]CommunicateWithHost lk.salyk.kg:30040 [15:01:17]ConnectInit lk.salyk.kg [15:01:17]written 0, free lines is 4095 [15:01:18]Connected sock=11 [15:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 CB 16 00 01 69 DF 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 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 14 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 BC AF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 21 02 00 35 04 06 00 B2 36 C6 98 E8 FE 66 67 47 4B 3D 95 0B 91 [15:01:18]Write to MH i2c: 01 00 00 8F 05 94 [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 07 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 DC 0C 83 [15:01:18]RasterBufferAndPrint [15:01:18]line [15:01:18]line [15:01:18]line [15:01:18]line [15:01:18]line [15:01:18]written 0, free lines is 3295 [15:01:18]MH_Cut [15:01:18]Write to MH i2c: D1 01 00 96 05 01 6D [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: D1 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: D1 01 00 [15:01:18]MH_I2C_Read... [15:01:18]Read from MH i2c: D1 01 00 96 05 00 6C [15:01:18]Write to MH i2c: 01 00 00 97 05 9C [15:01:18]Write i2c OK [15:01:18]MH_I2C_Read... [15:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4D 46 47 00 5F 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 21 02 00 F4 03 04 00 4F 56 C4 66 B6 04 01 00 00 61 4B E2 C1 30 2A 13 ED [15:01:18]CommunicateWithHost err = 0 [15:01:18]CheckOFDResponse [15:01:18]1017 (14) - 77093643461234 [15:01:18]1041 (16) - 0000000000871776 [15:01:18]1040 (4) - 139751 [15:01:18]1012 (4) - 20.08.2024 08:39 [15:01:18]1206 (1) - 0 [15:01:18]OFD Sender: Remove packet 139751 [15:01:18]ProducePacketName [15:01:18]name=ofd_packets/00139751 [15:01:18]NVStorageDeleteData [15:01:18]OFD Sender: No OFD packet to send [15:01:19]*** Cut start [15:01:19]*** Partial cut [15:01:19]*** CUTSNS_PIN = 1 [15:01:19]*** CUTSNS_PIN = 0 [15:01:19]*** Brake cut motor [15:01:19]Read from MH i2c: 01 [15:01:19]MH_I2C_Read... [15:01:19]*** Stop cut motor [15:01:19]*** Cut end [15:01:19]Read from MH i2c: 01 07 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [15:01:19]process_action close_receipt done [15:01:19]requested_data is exist [15:01:19]produce_requested_data [15:01:19]requested_item fm.sn is exist - process it [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 11 00 00 [15:01:19]Write to MH i2c: E2 08 00 98 05 80 11 00 00 00 00 00 00 17 [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 17 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 17 00 98 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6E [15:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:01:19]wFMCommunicate OK [15:01:19]requested_item fd.num is exist - process it [15:01:19]SAM_PROTO_GetFieldsCounters [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 13 00 00 [15:01:19]Write to MH i2c: E2 08 00 99 05 80 13 00 00 00 00 00 00 1A [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 62 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 62 00 99 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 21 02 00 0E 04 04 00 C5 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 B2 [15:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 21 02 00 0E 04 04 00 C5 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 [15:01:19]wFMCommunicate OK [15:01:19]SAM_PROTO_GetFieldsCounters done [15:01:19]requested_item shift.num is exist - process it [15:01:19]requested_item shift.opened is exist - process it [15:01:19]req_shift_opened [15:01:19]FM_GetShiftState [15:01:19]SAM_PROTO_GetShiftState [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 13 01 00 [15:01:19]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 0E 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AD [15:01:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:01:19]wFMCommunicate OK [15:01:19]SAM_PROTO_GetShiftState done [15:01:19]FM_GetShiftState done [15:01:19]req_shift_opened done [15:01:19]requested_item shift.open_date is exist - process it [15:01:19]req_shift_open_date [15:01:19]req_shift_open_date done [15:01:19]produce_requested_data done [15:01:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139751,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:01:19]process_action_free close_receipt [15:01:19]json_value_free [15:01:19]json_value_free done [15:01:19]process_json_proto returns [15:01:19]Send response to host [15:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139751,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:01:19]free response buf [15:01:19]execute_script done [15:01:19]execute_script returns [15:01:19]free content buf [15:01:19]Sock 7.Close socket [15:01:19]Sock 7.Thread stoped [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]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:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:09:59]accept exits with 9 [15:09:59]New connection [15:09:59]New thread 3067039076 created [15:09:59]Thread 3067182436 joined [15:09:59]Waiting for new connection... [15:09:59] Sock 9.Parse request [15:09:59]Sock 9.Check first char [15:09:59]Sock 9.First char is OK [15:09:59]request: POST /json_proto HTTP/1.0 [15:09:59]Method: POST [15:09:59]URL: /json_proto [15:09:59]Method is POST - this is cgi request [15:09:59]url: /json_proto [15:09:59]query_string will be loaded in cgi processing [15:09:59]execute_cgi json_proto POST (null) [15:09:59]execute_cgi path=json_proto method=POST [15:09:59]POST find Content-Length [15:09:59]Host: 172.17.45.67:8080 [15:09:59]Content-Length: 677 [15:09:59]Content-Type: application/json [15:09:59] [15:09:59]POST finish read [15:09:59]Found Content-Length = 677 [15:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:59]execute_script... [15:09: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)593600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:59]POST & json_proto [15:09:59]process_json_proto [15:09:59]json parsed OK: [15:09:59]protocol is kg_v1.0 [15:09:59]action value=close_receipt [15:09:59]process_action close_receipt [15:09:59]cmd_close_receipt [15:09:59]MH_GetDate [15:09:59]Write to MH i2c: F0 00 00 9B 05 8F [15:09:59]Write i2c OK [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: F0 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: F0 09 00 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: F0 09 00 9B 05 00 C8 B1 C4 66 5F 7F 2B 66 AA [15:09:59]GetLastDocTimeStamp 1724166076 [15:09:59]current date 1724166600 [15:09:59]FM_GetShiftState [15:09:59]SAM_PROTO_GetShiftState [15:09:59]wFMCommunicate request_size=4 [15:09:59]MH_SAM_APDU [15:09:59]CAPDU: 80 13 01 00 [15:09:59]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [15:09:59]Write i2c OK [15:09:59]MH_I2C_Read... [15:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:59]Read from MH i2c: E2 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: E2 0E 00 [15:09:59]MH_I2C_Read... [15:09:59]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AF [15:09:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:09:59]wFMCommunicate OK [15:09:59]SAM_PROTO_GetShiftState done [15:09:59]FM_GetShiftState done [15:09:59]opened in 1724113785 [15:09:59]opened+sec_in_day 1724200185 [15:09:59]quantity*price = 60003 [15:09:59]sum+1 = 60004 [15:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 224 20.08.2024 15:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139752 ФПД: 48911765203708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151000&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139752&fm=48911765203708&tin=02508201610067®Number=0000000000092569&sum=60000 [15:10:01]StoreToDocumentArchive [15:10:01]shift 453 fd 139752 [15:10:01]save to /storage/0453/doc_00139752 [15:10:01]save last doc name /storage/0453/doc_00139752 to /storage/kkm_last_doc_name [15:10:01]save OK [15:10:01]Clear old archive folders... [15:10:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:01]tlvbuf is 01704950 [15:10:01]SAM_PROTO_ClearQueue [15:10:01]wFMCommunicate request_size=4 [15:10:01]MH_SAM_APDU [15:10:01]CAPDU: 80 09 00 00 [15:10:01]Write to MH i2c: E2 08 00 A9 05 80 09 00 00 00 00 00 00 20 [15:10:01]Write i2c OK [15:10:01]MH_I2C_Read... [15:10:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:01]Read from MH i2c: E2 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 03 00 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [15:10:01]RAPDU: 90 00 [15:10:01]wFMCommunicate OK [15:10:01]SAM_PROTO_ClearQueue done [15:10:01]KKMCreateOFDPacket [15:10:01]OFDProtocolAddRootSTLVToBuf [15:10:01]FM_MakeSignedData [15:10:01]FM_MakeSignedData [15:10:01]SAM_PROTO_SignData [15:10:01]wFMCommunicate request_size=4 [15:10:01]MH_SAM_APDU [15:10:01]CAPDU: 80 0D 01 02 [15:10:01]Write to MH i2c: E2 08 00 AA 05 80 0D 01 02 00 00 00 00 28 [15:10:01]Write i2c OK [15:10:01]MH_I2C_Read... [15:10:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:01]Read from MH i2c: E2 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 03 00 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [15:10:01]RAPDU: 90 00 [15:10:01]wFMCommunicate OK [15:10:01]wFMCommunicate request_size=255 [15:10:01]MH_SAM_APDU [15:10:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C8 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 21 02 00 35 04 06 00 2C [15:10:01]Write to MH i2c: E2 02 01 AB 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C8 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 21 02 00 35 04 06 00 2C 00 00 F8 [15:10:01]Write i2c OK [15:10:01]MH_I2C_Read... [15:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:01]Read from MH i2c: E2 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 03 00 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [15:10:01]RAPDU: 90 00 [15:10:01]wFMCommunicate OK [15:10:01]wFMCommunicate request_size=10 [15:10:01]MH_SAM_APDU [15:10:01]CAPDU: 80 0D 02 02 05 7C 28 63 EA FC [15:10:01]Write to MH i2c: E2 0D 00 AC 05 80 0D 02 02 05 00 7C 28 63 EA FC 00 00 22 [15:10:01]Write i2c OK [15:10:01]MH_I2C_Read... [15:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:01]Read from MH i2c: E2 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 03 00 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [15:10:01]RAPDU: 90 00 [15:10:01]wFMCommunicate OK [15:10:01]wFMCommunicate request_size=4 [15:10:01]MH_SAM_APDU [15:10:01]CAPDU: 80 0D 03 02 [15:10:01]Write to MH i2c: E2 08 00 AD 05 80 0D 03 02 00 00 00 00 2D [15:10:01]Write i2c OK [15:10:01]MH_I2C_Read... [15:10:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:01]Read from MH i2c: E2 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 0B 00 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 0B 00 AD 05 00 0E 64 3D 9A 0A 74 B8 04 90 00 B1 [15:10:01]RAPDU: 0E 64 3D 9A 0A 74 B8 04 90 00 [15:10:01]wFMCommunicate OK [15:10:01]SAM_PROTO_SignData done [15:10:01]FM_MakeSignedData done [15:10:01]CreateOFDProtocolMessage [15:10:01]wFMCommunicate request_size=4 [15:10:01]MH_SAM_APDU [15:10:01]CAPDU: 80 11 00 00 [15:10:01]Write to MH i2c: E2 08 00 AE 05 80 11 00 00 00 00 00 00 2D [15:10:01]Write i2c OK [15:10:01]MH_I2C_Read... [15:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:01]Read from MH i2c: E2 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 17 00 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 17 00 AE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [15:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:10:01]wFMCommunicate OK [15:10:01]CreateOFDProtocolMessage done [15:10:01]OFDSenderStorePacket 139752 [15:10:01]StoreOFDPacket docnum=139752 [15:10:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8F 22 07 01 08 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C8 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 21 02 00 35 04 06 00 2C 7C 28 63 EA FC 0E 64 3D 9A 0A 74 B8 04 [15:10:01]CheckFolder [15:10:01]dirname=/storage/ofd_packets [15:10:01]CheckFolder done [15:10:01]ProducePacketName [15:10:01]name=ofd_packets/00139752 [15:10:01]NVStorageSaveData ofd_packets/00139752 [15:10:01]File name is /storage/ofd_packets/00139752 [15:10:01]Write 301 bytes [15:10:01]NVStorageSaveData done [15:10:01]OFDSenderStorePacket done [15:10:01]KKMCreateOFDPacket done [15:10:01]NVStorageSaveData kkm_last_timestamp [15:10:01]File name is /storage/kkm_last_timestamp [15:10:01]Write 4 bytes [15:10:01]NVStorageSaveData done [15:10:01]OFD Sender: Processing packet 139752 [packets to send 137, broken 136] [15:10:01]ProducePacketName [15:10:01]name=ofd_packets/00139752 [15:10:01]OFD Sender: To server: pG, [15:10:01]CommunicateWithHost lk.salyk.kg:30040 [15:10:01]ConnectInit lk.salyk.kg [15:10:01]ExternCall_PrintAddStr [15:10:01]wPrintStart [15:10:01]Write to MH i2c: 01 00 00 AF 05 B4 [15:10:01]Write i2c OK [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: 01 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: 01 07 00 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: 01 07 00 AF 05 00 00 00 00 00 FF 0F C9 [15:10:01]RasterBufferAndPrint [15:10:01]line Счет N : (1)593600 [15:10:01]line ИНН: 02508201610067 [15:10:01]line Контрольно-Кассовый Чек [15:10:01]line ПРОДАЖА [15:10:01]line ТРК (МРК, ГНК) : 52 [15:10:01]line Товар: 2710124130 [15:10:01]line Аи-92-К-5 [15:10:01]line 8.850 * 67.80 [15:10:01]line = 600.03 [15:10:01]line НДС 12% НСП 1% [15:10:01]line > о реализуемом товаре [15:10:01]line ОКРУГЛЕНИЕ: -0.03 [15:10:01]line ИТОГО: 600.00 [15:10:01]line Внесено: 600.00 [15:10:01]line СДАЧА: 0.00 [15:10:01]line НСП 1% : 5.31 [15:10:01]line НДС 12% : 63.72 [15:10:01]line Наличными: 600.00 [15:10:01]line Безнал.: 0.00 [15:10:01]line Место: АЗС № 136 "Партнер Нефть" [15:10:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:10:01]line СНО: Общий режим [15:10:01]line Чек 224 20.08.2024 15:10 [15:10:01]line Смена: 453 ФФД: 1.0 [15:10:01]line ЗНМ: 0300000067 [15:10:01]line РНМ: 0000000000092569 [15:10:01]line Версия ККМ: 001 [15:10:01]line ФМ: 0000000000871776 [15:10:01]line ФД: 139752 [15:10:01]line ФПД: 48911765203708 [15:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151000&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139752&fm=48911765203708&tin=02508201610067®Number=0000000000092569&sum=60000 [15:10:01]Connected sock=11 [15:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8F 22 07 01 08 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C8 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 21 02 00 35 04 06 00 2C 7C 28 63 EA FC 0E 64 3D 9A 0A 74 B8 04 [15:10:01]written 0, free lines is 4095 [15:10:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6F 08 47 00 5B AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 21 02 00 F4 03 04 00 5B 58 C4 66 B6 04 01 00 00 FA 25 68 F7 80 E0 77 52 [15:10:02]CommunicateWithHost err = 0 [15:10:02]CheckOFDResponse [15:10:02]1017 (14) - 77093643461234 [15:10:02]1041 (16) - 0000000000871776 [15:10:02]1040 (4) - 139752 [15:10:02]1012 (4) - 20.08.2024 08:48 [15:10:02]1206 (1) - 0 [15:10:02]OFD Sender: Remove packet 139752 [15:10:02]ProducePacketName [15:10:02]name=ofd_packets/00139752 [15:10:02]NVStorageDeleteData [15:10:02]Write to MH i2c: 01 00 00 DA 05 DF [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: 01 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: 01 07 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: 01 07 00 DA 05 00 00 00 00 00 C8 0C BA [15:10:02]RasterBufferAndPrint [15:10:02]line [15:10:02]line [15:10:02]line [15:10:02]line [15:10:02]line [15:10:02]written 0, free lines is 3278 [15:10:02]MH_Cut [15:10:02]Write to MH i2c: D1 01 00 E1 05 01 B8 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: D1 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: D1 01 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: D1 01 00 E1 05 00 B7 [15:10:02]Write to MH i2c: 01 00 00 E2 05 E7 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]OFD Sender: No OFD packet to send [15:10:03]*** Cut start [15:10:03]*** Partial cut [15:10:03]*** CUTSNS_PIN = 1 [15:10:03]*** CUTSNS_PIN = 0 [15:10:03]*** Brake cut motor [15:10:03]Read from MH i2c: 01 [15:10:03]MH_I2C_Read... [15:10:03]*** Stop cut motor [15:10:03]*** Cut end [15:10:03]Read from MH i2c: 01 07 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: 01 07 00 E2 05 00 00 00 00 00 FF 0F FC [15:10:03]process_action close_receipt done [15:10:03]requested_data is exist [15:10:03]produce_requested_data [15:10:03]requested_item fm.sn is exist - process it [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 11 00 00 [15:10:03]Write to MH i2c: E2 08 00 E3 05 80 11 00 00 00 00 00 00 62 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 17 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 17 00 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B9 [15:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:10:03]wFMCommunicate OK [15:10:03]requested_item fd.num is exist - process it [15:10:03]SAM_PROTO_GetFieldsCounters [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 13 00 00 [15:10:03]Write to MH i2c: E2 08 00 E4 05 80 13 00 00 00 00 00 00 65 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 62 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 62 00 E4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 21 02 00 0E 04 04 00 C5 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 01 [15:10:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 21 02 00 0E 04 04 00 C5 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 [15:10:03]wFMCommunicate OK [15:10:03]SAM_PROTO_GetFieldsCounters done [15:10:03]requested_item shift.num is exist - process it [15:10:03]requested_item shift.opened is exist - process it [15:10:03]req_shift_opened [15:10:03]FM_GetShiftState [15:10:03]SAM_PROTO_GetShiftState [15:10:03]wFMCommunicate request_size=4 [15:10:03]MH_SAM_APDU [15:10:03]CAPDU: 80 13 01 00 [15:10:03]Write to MH i2c: E2 08 00 E5 05 80 13 01 00 00 00 00 00 67 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:03]Read from MH i2c: E2 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 0E 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: E2 0E 00 E5 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F8 [15:10:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:10:03]wFMCommunicate OK [15:10:03]SAM_PROTO_GetShiftState done [15:10:03]FM_GetShiftState done [15:10:03]req_shift_opened done [15:10:03]requested_item shift.open_date is exist - process it [15:10:03]req_shift_open_date [15:10:03]req_shift_open_date done [15:10:03]produce_requested_data done [15:10:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139752,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:10:03]process_action_free close_receipt [15:10:03]json_value_free [15:10:03]json_value_free done [15:10:03]process_json_proto returns [15:10:03]Send response to host [15:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139752,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:10:03]free response buf [15:10:03]execute_script done [15:10:03]execute_script returns [15:10:03]free content buf [15:10:03]Sock 9.Close socket [15:10:03]Sock 9.Thread stoped [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:24]accept exits with 7 [15:10:24]New connection [15:10:24]New thread 3067182436 created [15:10:24]Thread 3067039076 joined [15:10:24]Waiting for new connection... [15:10:24] Sock 7.Parse request [15:10:24]Sock 7.Check first char [15:10:24]Sock 7.First char is OK [15:10:24]request: POST /json_proto HTTP/1.0 [15:10:24]Method: POST [15:10:24]URL: /json_proto [15:10:24]Method is POST - this is cgi request [15:10:24]url: /json_proto [15:10:24]query_string will be loaded in cgi processing [15:10:24]execute_cgi json_proto POST (null) [15:10:24]execute_cgi path=json_proto method=POST [15:10:24]POST find Content-Length [15:10:24]Host: 172.17.45.67:8080 [15:10:24]Content-Length: 677 [15:10:24]Content-Type: application/json [15:10:24] [15:10:24]POST finish read [15:10:24]Found Content-Length = 677 [15:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:24]execute_script... [15:10:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:24]POST & json_proto [15:10:24]process_json_proto [15:10:24]json parsed OK: [15:10:24]protocol is kg_v1.0 [15:10:24]action value=close_receipt [15:10:24]process_action close_receipt [15:10:24]cmd_close_receipt [15:10:24]MH_GetDate [15:10:24]Write to MH i2c: F0 00 00 E6 05 DA [15:10:24]Write i2c OK [15:10:24]MH_I2C_Read... [15:10:24]Read from MH i2c: F0 [15:10:24]MH_I2C_Read... [15:10:24]Read from MH i2c: F0 09 00 [15:10:24]MH_I2C_Read... [15:10:24]Read from MH i2c: F0 09 00 E6 05 00 E0 B1 C4 66 5F 7F 2B 66 0D [15:10:24]GetLastDocTimeStamp 1724166600 [15:10:24]current date 1724166624 [15:10:24]FM_GetShiftState [15:10:24]SAM_PROTO_GetShiftState [15:10:24]wFMCommunicate request_size=4 [15:10:24]MH_SAM_APDU [15:10:24]CAPDU: 80 13 01 00 [15:10:24]Write to MH i2c: E2 08 00 E7 05 80 13 01 00 00 00 00 00 69 [15:10:24]Write i2c OK [15:10:24]MH_I2C_Read... [15:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:24]Read from MH i2c: E2 [15:10:24]MH_I2C_Read... [15:10:24]Read from MH i2c: E2 0E 00 [15:10:24]MH_I2C_Read... [15:10:24]Read from MH i2c: E2 0E 00 E7 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FA [15:10:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:10:24]wFMCommunicate OK [15:10:24]SAM_PROTO_GetShiftState done [15:10:24]FM_GetShiftState done [15:10:24]opened in 1724113785 [15:10:24]opened+sec_in_day 1724200185 [15:10:24]quantity*price = 50036 [15:10:24]sum+1 = 50037 [15:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 225 20.08.2024 15:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139753 ФПД: 92773150496294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151024&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139753&fm=92773150496294&tin=02508201610067®Number=0000000000092569&sum=50000 [15:10:25]StoreToDocumentArchive [15:10:25]shift 453 fd 139753 [15:10:25]save to /storage/0453/doc_00139753 [15:10:25]save last doc name /storage/0453/doc_00139753 to /storage/kkm_last_doc_name [15:10:25]save OK [15:10:25]Clear old archive folders... [15:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:25]tlvbuf is 01692400 [15:10:25]SAM_PROTO_ClearQueue [15:10:25]wFMCommunicate request_size=4 [15:10:25]MH_SAM_APDU [15:10:25]CAPDU: 80 09 00 00 [15:10:25]Write to MH i2c: E2 08 00 F4 05 80 09 00 00 00 00 00 00 6B [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [15:10:25]RAPDU: 90 00 [15:10:25]wFMCommunicate OK [15:10:25]SAM_PROTO_ClearQueue done [15:10:25]KKMCreateOFDPacket [15:10:25]OFDProtocolAddRootSTLVToBuf [15:10:25]FM_MakeSignedData [15:10:25]FM_MakeSignedData [15:10:25]SAM_PROTO_SignData [15:10:25]wFMCommunicate request_size=4 [15:10:25]MH_SAM_APDU [15:10:25]CAPDU: 80 0D 01 02 [15:10:25]Write to MH i2c: E2 08 00 F5 05 80 0D 01 02 00 00 00 00 73 [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [15:10:25]RAPDU: 90 00 [15:10:25]wFMCommunicate OK [15:10:25]wFMCommunicate request_size=255 [15:10:25]MH_SAM_APDU [15:10:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 E0 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 21 02 00 35 04 06 00 54 [15:10:25]Write to MH i2c: E2 02 01 F6 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E0 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 21 02 00 35 04 06 00 54 00 00 BE [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [15:10:25]RAPDU: 90 00 [15:10:25]wFMCommunicate OK [15:10:25]wFMCommunicate request_size=10 [15:10:25]MH_SAM_APDU [15:10:25]CAPDU: 80 0D 02 02 05 60 6E AE 16 26 [15:10:25]Write to MH i2c: E2 0D 00 F7 05 80 0D 02 02 05 00 60 6E AE 16 26 00 00 38 [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [15:10:25]RAPDU: 90 00 [15:10:25]wFMCommunicate OK [15:10:25]wFMCommunicate request_size=4 [15:10:25]MH_SAM_APDU [15:10:25]CAPDU: 80 0D 03 02 [15:10:25]Write to MH i2c: E2 08 00 F8 05 80 0D 03 02 00 00 00 00 78 [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 0B 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 0B 00 F8 05 00 C9 49 71 E0 C2 85 0A 3B 90 00 68 [15:10:25]RAPDU: C9 49 71 E0 C2 85 0A 3B 90 00 [15:10:25]wFMCommunicate OK [15:10:25]SAM_PROTO_SignData done [15:10:25]FM_MakeSignedData done [15:10:25]CreateOFDProtocolMessage [15:10:25]wFMCommunicate request_size=4 [15:10:25]MH_SAM_APDU [15:10:25]CAPDU: 80 11 00 00 [15:10:25]Write to MH i2c: E2 08 00 F9 05 80 11 00 00 00 00 00 00 78 [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:25]Read from MH i2c: E2 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 17 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: E2 17 00 F9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [15:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:10:25]wFMCommunicate OK [15:10:25]CreateOFDProtocolMessage done [15:10:25]OFDSenderStorePacket 139753 [15:10:25]StoreOFDPacket docnum=139753 [15:10:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1B 6B 07 01 9E 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E0 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 21 02 00 35 04 06 00 54 60 6E AE 16 26 C9 49 71 E0 C2 85 0A 3B [15:10:25]CheckFolder [15:10:25]dirname=/storage/ofd_packets [15:10:25]CheckFolder done [15:10:25]ProducePacketName [15:10:25]name=ofd_packets/00139753 [15:10:25]NVStorageSaveData ofd_packets/00139753 [15:10:25]File name is /storage/ofd_packets/00139753 [15:10:25]Write 301 bytes [15:10:25]NVStorageSaveData done [15:10:25]OFDSenderStorePacket done [15:10:25]KKMCreateOFDPacket done [15:10:25]NVStorageSaveData kkm_last_timestamp [15:10:25]File name is /storage/kkm_last_timestamp [15:10:25]Write 4 bytes [15:10:25]NVStorageSaveData done [15:10:25]ExternCall_PrintAddStr [15:10:25]wPrintStart [15:10:25]Write to MH i2c: 01 00 00 FA 05 FF [15:10:25]Write i2c OK [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: 01 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: 01 07 00 [15:10:25]MH_I2C_Read... [15:10:25]Read from MH i2c: 01 07 00 FA 05 00 00 00 00 00 FF 0F 14 [15:10:25]RasterBufferAndPrint [15:10:25]line Счет N : (1)593603 [15:10:25]line ИНН: 02508201610067 [15:10:25]line Контрольно-Кассовый Чек [15:10:25]line ПРОДАЖА [15:10:25]line ТРК (МРК, ГНК) : 32 [15:10:25]line Товар: 2710124130 [15:10:25]line Аи-92-К-5 [15:10:25]line 7.380 * 67.80 [15:10:25]line = 500.36 [15:10:25]line НДС 12% НСП 1% [15:10:25]line > о реализуемом товаре [15:10:25]line ОКРУГЛЕНИЕ: -0.36 [15:10:25]line ИТОГО: 500.00 [15:10:25]line Внесено: 500.00 [15:10:25]line СДАЧА: 0.00 [15:10:25]line НСП 1% : 4.43 [15:10:25]line НДС 12% : 53.14 [15:10:25]line Наличными: 500.00 [15:10:25]line Безнал.: 0.00 [15:10:25]line Место: АЗС № 136 "Партнер Нефть" [15:10:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:10:25]line СНО: Общий режим [15:10:25]line Чек 225 20.08.2024 15:10 [15:10:25]line Смена: 453 ФФД: 1.0 [15:10:25]line ЗНМ: 0300000067 [15:10:25]line РНМ: 0000000000092569 [15:10:25]line Версия ККМ: 001 [15:10:25]line ФМ: 0000000000871776 [15:10:25]line ФД: 139753 [15:10:25]line ФПД: 92773150496294 [15:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151024&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139753&fm=92773150496294&tin=02508201610067®Number=0000000000092569&sum=50000 [15:10:26]OFD Sender: Processing packet 139753 [packets to send 137, broken 136] [15:10:26]ProducePacketName [15:10:26]name=ofd_packets/00139753 [15:10:26]OFD Sender: To server: pG, [15:10:26]CommunicateWithHost lk.salyk.kg:30040 [15:10:26]ConnectInit lk.salyk.kg [15:10:26]written 0, free lines is 4095 [15:10:26]Connected sock=10 [15:10:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1B 6B 07 01 9E 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E0 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 21 02 00 35 04 06 00 54 60 6E AE 16 26 C9 49 71 E0 C2 85 0A 3B [15:10:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 25 D7 47 00 CE 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 21 02 00 F4 03 04 00 73 58 C4 66 B6 04 01 00 00 38 27 49 E0 CC F0 6F 89 [15:10:26]CommunicateWithHost err = 0 [15:10:26]CheckOFDResponse [15:10:26]1017 (14) - 77093643461234 [15:10:26]1041 (16) - 0000000000871776 [15:10:26]1040 (4) - 139753 [15:10:26]1012 (4) - 20.08.2024 08:48 [15:10:26]1206 (1) - 0 [15:10:26]OFD Sender: Remove packet 139753 [15:10:26]ProducePacketName [15:10:26]name=ofd_packets/00139753 [15:10:26]NVStorageDeleteData [15:10:26]Write to MH i2c: 01 00 00 25 06 2B [15:10:26]Write i2c OK [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: 01 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: 01 07 00 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 DA 0C 18 [15:10:26]RasterBufferAndPrint [15:10:26]line [15:10:26]line [15:10:26]line [15:10:26]line [15:10:26]line [15:10:26]written 0, free lines is 3297 [15:10:26]MH_Cut [15:10:26]Write to MH i2c: D1 01 00 2C 06 01 04 [15:10:26]Write i2c OK [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: D1 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: D1 01 00 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: D1 01 00 2C 06 00 03 [15:10:26]Write to MH i2c: 01 00 00 2D 06 33 [15:10:26]Write i2c OK [15:10:26]MH_I2C_Read... [15:10:27]OFD Sender: No OFD packet to send [15:10:27]*** Cut start [15:10:27]*** Partial cut [15:10:27]*** CUTSNS_PIN = 1 [15:10:27]*** CUTSNS_PIN = 0 [15:10:27]*** Brake cut motor [15:10:27]Read from MH i2c: 01 [15:10:27]MH_I2C_Read... [15:10:27]*** Stop cut motor [15:10:27]*** Cut end [15:10:27]Read from MH i2c: 01 07 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 FF 0F 48 [15:10:27]process_action close_receipt done [15:10:27]requested_data is exist [15:10:27]produce_requested_data [15:10:27]requested_item fm.sn is exist - process it [15:10:27]wFMCommunicate request_size=4 [15:10:27]MH_SAM_APDU [15:10:27]CAPDU: 80 11 00 00 [15:10:27]Write to MH i2c: E2 08 00 2E 06 80 11 00 00 00 00 00 00 AE [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:27]Read from MH i2c: E2 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 17 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 17 00 2E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 05 [15:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:10:27]wFMCommunicate OK [15:10:27]requested_item fd.num is exist - process it [15:10:27]SAM_PROTO_GetFieldsCounters [15:10:27]wFMCommunicate request_size=4 [15:10:27]MH_SAM_APDU [15:10:27]CAPDU: 80 13 00 00 [15:10:27]Write to MH i2c: E2 08 00 2F 06 80 13 00 00 00 00 00 00 B1 [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 62 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 62 00 2F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 21 02 00 0E 04 04 00 C5 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 51 [15:10:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 21 02 00 0E 04 04 00 C5 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 [15:10:28]wFMCommunicate OK [15:10:28]SAM_PROTO_GetFieldsCounters done [15:10:28]requested_item shift.num is exist - process it [15:10:28]requested_item shift.opened is exist - process it [15:10:28]req_shift_opened [15:10:28]FM_GetShiftState [15:10:28]SAM_PROTO_GetShiftState [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 13 01 00 [15:10:28]Write to MH i2c: E2 08 00 30 06 80 13 01 00 00 00 00 00 B3 [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0E 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0E 00 30 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 44 [15:10:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:10:28]wFMCommunicate OK [15:10:28]SAM_PROTO_GetShiftState done [15:10:28]FM_GetShiftState done [15:10:28]req_shift_opened done [15:10:28]requested_item shift.open_date is exist - process it [15:10:28]req_shift_open_date [15:10:28]req_shift_open_date done [15:10:28]produce_requested_data done [15:10:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139753,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:10:28]process_action_free close_receipt [15:10:28]json_value_free [15:10:28]json_value_free done [15:10:28]process_json_proto returns [15:10:28]Send response to host [15:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139753,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:10:28]free response buf [15:10:28]execute_script done [15:10:28]execute_script returns [15:10:28]free content buf [15:10:28]Sock 7.Close socket [15:10:28]Sock 7.Thread stoped [15:10:28]accept exits with 9 [15:10:28]New connection [15:10:28]New thread 3067039076 created [15:10:28]Thread 3067182436 joined [15:10:28]Waiting for new connection... [15:10:28] Sock 9.Parse request [15:10:28]Sock 9.Check first char [15:10:28]Sock 9.First char is OK [15:10:28]request: POST /json_proto HTTP/1.0 [15:10:28]Method: POST [15:10:28]URL: /json_proto [15:10:28]Method is POST - this is cgi request [15:10:28]url: /json_proto [15:10:28]query_string will be loaded in cgi processing [15:10:28]execute_cgi json_proto POST (null) [15:10:28]execute_cgi path=json_proto method=POST [15:10:28]POST find Content-Length [15:10:28]Host: 172.17.45.67:8080 [15:10:28]Content-Length: 682 [15:10:28]Content-Type: application/json [15:10:28] [15:10:28]POST finish read [15:10:28]Found Content-Length = 682 [15:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:28]execute_script... [15:10: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)593601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:28]POST & json_proto [15:10:28]process_json_proto [15:10:28]json parsed OK: [15:10:28]protocol is kg_v1.0 [15:10:28]action value=close_receipt [15:10:28]process_action close_receipt [15:10:28]cmd_close_receipt [15:10:28]MH_GetDate [15:10:28]Write to MH i2c: F0 00 00 31 06 26 [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: F0 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: F0 09 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: F0 09 00 31 06 00 E4 B1 C4 66 5F 7F 2B 66 5D [15:10:28]GetLastDocTimeStamp 1724166624 [15:10:28]current date 1724166628 [15:10:28]FM_GetShiftState [15:10:28]SAM_PROTO_GetShiftState [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 13 01 00 [15:10:28]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0E 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 46 [15:10:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:10:28]wFMCommunicate OK [15:10:28]SAM_PROTO_GetShiftState done [15:10:28]FM_GetShiftState done [15:10:28]opened in 1724113785 [15:10:28]opened+sec_in_day 1724200185 [15:10:28]quantity*price = 100021 [15:10:28]sum+1 = 100023 [15:10:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 226 20.08.2024 15:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139754 ФПД: 82929313550131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151028&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139754&fm=82929313550131&tin=02508201610067®Number=0000000000092569&sum=100000 [15:10:29]StoreToDocumentArchive [15:10:29]shift 453 fd 139754 [15:10:29]save to /storage/0453/doc_00139754 [15:10:29]save last doc name /storage/0453/doc_00139754 to /storage/kkm_last_doc_name [15:10:29]save OK [15:10:29]Clear old archive folders... [15:10:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:29]tlvbuf is 016ED920 [15:10:29]SAM_PROTO_ClearQueue [15:10:29]wFMCommunicate request_size=4 [15:10:29]MH_SAM_APDU [15:10:29]CAPDU: 80 09 00 00 [15:10:29]Write to MH i2c: E2 08 00 3F 06 80 09 00 00 00 00 00 00 B7 [15:10:29]Write i2c OK [15:10:29]MH_I2C_Read... [15:10:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:29]Read from MH i2c: E2 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: E2 03 00 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [15:10:29]RAPDU: 90 00 [15:10:29]wFMCommunicate OK [15:10:29]SAM_PROTO_ClearQueue done [15:10:29]KKMCreateOFDPacket [15:10:29]OFDProtocolAddRootSTLVToBuf [15:10:29]FM_MakeSignedData [15:10:29]FM_MakeSignedData [15:10:29]SAM_PROTO_SignData [15:10:29]wFMCommunicate request_size=4 [15:10:29]MH_SAM_APDU [15:10:29]CAPDU: 80 0D 01 02 [15:10:29]Write to MH i2c: E2 08 00 40 06 80 0D 01 02 00 00 00 00 BF [15:10:29]Write i2c OK [15:10:29]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [15:10:30]RAPDU: 90 00 [15:10:30]wFMCommunicate OK [15:10:30]wFMCommunicate request_size=255 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 E4 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 21 02 00 35 04 06 00 4B [15:10:30]Write to MH i2c: E2 02 01 41 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 E4 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 21 02 00 35 04 06 00 4B 00 00 34 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [15:10:30]RAPDU: 90 00 [15:10:30]wFMCommunicate OK [15:10:30]wFMCommunicate request_size=10 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 0D 02 02 05 6C 7C 46 8F 33 [15:10:30]Write to MH i2c: E2 0D 00 42 06 80 0D 02 02 05 00 6C 7C 46 8F 33 00 00 BC [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [15:10:30]RAPDU: 90 00 [15:10:30]wFMCommunicate OK [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 0D 03 02 [15:10:30]Write to MH i2c: E2 08 00 43 06 80 0D 03 02 00 00 00 00 C4 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 0B 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 0B 00 43 06 00 F9 6B B2 89 3E FF 78 24 90 00 3D [15:10:30]RAPDU: F9 6B B2 89 3E FF 78 24 90 00 [15:10:30]wFMCommunicate OK [15:10:30]SAM_PROTO_SignData done [15:10:30]FM_MakeSignedData done [15:10:30]CreateOFDProtocolMessage [15:10:30]wFMCommunicate request_size=4 [15:10:30]MH_SAM_APDU [15:10:30]CAPDU: 80 11 00 00 [15:10:30]Write to MH i2c: E2 08 00 44 06 80 11 00 00 00 00 00 00 C4 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:30]Read from MH i2c: E2 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 17 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: E2 17 00 44 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1B [15:10:30]RAPDU: [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 10040068+1714126687=1724166755 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 64 B2 C4 66 5F 7F 2B 66 AE [15:12:36]Current date/time: 20.08.2024 15:12 [15:12:36]FM_Init [15:12:36]wFMConnect [15:12:36]MH_SAM_On [15:12:36]Write to MH i2c: E0 00 00 08 00 E7 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_init finished! [15:12:36]*** atr: [15:12:36]*** 0F 3B D5 18 FF 81 91 FE [15:12:36]*** 1F C3 80 73 C8 21 10 0A [15:12:36]*** 00 00 00 00 00 00 00 00 [15:12:36]*** 00 00 00 00 00 00 00 00 [15:12:36]*** 00 00 00 00 00 00 00 00 [15:12:36]*** 00 00 00 00 00 00 00 00 [15:12:36]*** 00 00 00 00 00 00 00 00 [15:12:36]*** 00 00 00 00 00 00 00 00 [15:12:36]Read from MH i2c: E0 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E0 10 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [15:12:36]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:12:36]wFMCommunicate request_size=10 [15:12:36]MH_SAM_APDU [15:12:36]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:12:36]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:12:36]RAPDU: 90 00 [15:12:36]wFMCommunicate OK [15:12:36]wFMCommunicate request_size=4 [15:12:36]MH_SAM_APDU [15:12:36]CAPDU: 80 11 00 00 [15:12:36]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 17 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [15:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:12:36]wFMCommunicate OK [15:12:36]Detected FM SN is 0000000000871776 [15:12:36]Stored FM SN is 0000000000871776 [15:12:36]wFMCommunicate request_size=9 [15:12:36]MH_SAM_APDU [15:12:36]CAPDU: 80 16 00 00 04 3F B1 00 00 [15:12:36]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:12:36]RAPDU: 90 00 [15:12:36]wFMCommunicate OK [15:12:36]FM PIN OK [15:12:36]wFMCommunicate request_size=8 [15:12:36]MH_SAM_APDU [15:12:36]CAPDU: 80 14 04 00 03 02 00 01 [15:12:36]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:12:36]RAPDU: 90 00 [15:12:36]wFMCommunicate OK [15:12:36]wFMCommunicate request_size=13 [15:12:36]MH_SAM_APDU [15:12:36]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:12:36]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:12:36]RAPDU: 90 00 [15:12:36]wFMCommunicate OK [15:12:36]wFMCommunicate request_size=4 [15:12:36]MH_SAM_APDU [15:12:36]CAPDU: 80 11 00 00 [15:12:36]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 17 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [15:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:12:36]wFMCommunicate OK [15:12:36]DocumentArchiveInit [15:12:36]Start Httpd... [15:12:36]Httpd thread 3067080036 created [15:12:36]Write to MH i2c: 01 00 00 0F 00 0F [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 07 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:12:36]MH Int Process started [15:12:36]Allocated Socket 7 [15:12:36]Bind OK [15:12:36]Listen OK [15:12:36]httpd running on port 8080 [15:12:36]Waiting for new connection... [15:12:36]OFD Sender: Processing packet 139755 [packets to send 137, broken 136] [15:12:36]ProducePacketName [15:12:36]name=ofd_packets/00139755 [15:12:36]OFD Sender: To server: pG, [15:12:36]CommunicateWithHost lk.salyk.kg:30040 [15:12:36]ConnectInit lk.salyk.kg [15:12:36]Connected sock=6 [15:12:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9E 87 07 01 D8 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 E3 00 00 00 F4 03 04 00 F6 B1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 21 02 00 35 04 06 00 6A 4E AF A6 2E 7A 12 0C 29 53 64 B1 1B FE [15:12:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BF AC 47 00 B6 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 21 02 00 F4 03 04 00 F5 58 C4 66 B6 04 01 00 00 A3 F2 D3 BF 78 D0 4F A1 [15:12:37]CommunicateWithHost err = 0 [15:12:37]CheckOFDResponse [15:12:37]1017 (14) - 77093643461234 [15:12:37]1041 (16) - 0000000000871776 [15:12:37]1040 (4) - 139755 [15:12:37]1012 (4) - 20.08.2024 08:51 [15:12:37]1206 (1) - 0 [15:12:37]OFD Sender: Remove packet 139755 [15:12:37]ProducePacketName [15:12:37]name=ofd_packets/00139755 [15:12:37]NVStorageDeleteData [15:12:37]accept exits with 8 [15:12:37]New connection [15:12:37]New thread 3066793316 created [15:12:37]Waiting for new connection... [15:12:37] Sock 8.Parse request [15:12:37]Sock 8.Check first char [15:12:37]Sock 8.First char is OK [15:12:37]request: POST /json_proto HTTP/1.0 [15:12:37]Method: POST [15:12:37]URL: /json_proto [15:12:37]Method is POST - this is cgi request [15:12:37]url: /json_proto [15:12:37]query_string will be loaded in cgi processing [15:12:37]execute_cgi json_proto POST (null) [15:12:37]execute_cgi path=json_proto method=POST [15:12:37]POST find Content-Length [15:12:37]Host: 172.17.45.67:8080 [15:12:37]Content-Length: 215 [15:12:37]Content-Type: application/json [15:12:37] [15:12:37]POST finish read [15:12:37]Found Content-Length = 215 [15:12:37]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" ] } } [15:12:37]execute_script... [15:12:37]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" ] } } [15:12:37]POST & json_proto [15:12:37]process_json_proto [15:12:37]json parsed OK: [15:12:37]protocol is kg_v1.0 [15:12:37]action value=get_value [15:12:37]process_action get_value [15:12:37]cmd_get_value [15:12:37]process_action get_value done [15:12:37]requested_data is exist [15:12:37]produce_requested_data [15:12:37]requested_item kkm.sn is exist - process it [15:12:37]requested_item kkm.ver is exist - process it [15:12:37]requested_item fm.sn is exist - process it [15:12:37]wFMCommunicate request_size=4 [15:12:37]MH_SAM_APDU [15:12:37]CAPDU: 80 11 00 00 [15:12:37]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:12:37]Write i2c OK [15:12:37]MH_I2C_Read... [15:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:37]Read from MH i2c: E2 [15:12:37]MH_I2C_Read... [15:12:37]Read from MH i2c: E2 17 00 [15:12:37]MH_I2C_Read... [15:12:37]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [15:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:12:37]wFMCommunicate OK [15:12:37]requested_item fd.num is exist - process it [15:12:37]SAM_PROTO_GetFieldsCounters [15:12:37]wFMCommunicate request_size=4 [15:12:37]MH_SAM_APDU [15:12:37]CAPDU: 80 13 00 00 [15:12:37]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:12:37]Write i2c OK [15:12:37]MH_I2C_Read... [15:12:37]OFD Sender: No OFD packet to send [15:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:37]Read from MH i2c: E2 [15:12:37]MH_I2C_Read... [15:12:37]Read from MH i2c: E2 62 00 [15:12:37]MH_I2C_Read... [15:12:37]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 21 02 00 0E 04 04 00 C5 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 35 [15:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 21 02 00 0E 04 04 00 C5 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 [15:12:37]wFMCommunicate OK [15:12:37]SAM_PROTO_GetFieldsCounters done [15:12:37]requested_item shift.num is exist - process it [15:12:37]requested_item shift.opened is exist - process it [15:12:37]req_shift_opened [15:12:37]FM_GetShiftState [15:12:37]SAM_PROTO_GetShiftState [15:12:37]wFMCommunicate request_size=4 [15:12:37]MH_SAM_APDU [15:12:37]CAPDU: 80 13 01 00 [15:12:37]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:12:37]Write i2c OK [15:12:37]MH_I2C_Read... [15:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:37]Read from MH i2c: E2 [15:12:37]MH_I2C_Read... [15:12:37]Read from MH i2c: E2 0E 00 [15:12:37]MH_I2C_Read... [15:12:37]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 20 [15:12:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:12:37]wFMCommunicate OK [15:12:37]SAM_PROTO_GetShiftState done [15:12:37]FM_GetShiftState done [15:12:37]req_shift_opened done [15:12:37]requested_item shift.open_date is exist - process it [15:12:37]req_shift_open_date [15:12:37]req_shift_open_date done [15:12:37]produce_requested_data done [15:12:37]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139755,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:12:37]process_action_free get_value [15:12:37]json_value_free [15:12:37]json_value_free done [15:12:37]process_json_proto returns [15:12:37]Send response to host [15:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139755,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:12:37]free response buf [15:12:37]execute_script done [15:12:37]execute_script returns [15:12:37]free content buf [15:12:37]Sock 8.Close socket [15:12:37]Sock 8.Thread stoped [15:12:37]accept exits with 6 [15:12:37]New connection [15:12:37]New thread 3066649956 created [15:12:37]Thread 3066793316 joined [15:12:37]Waiting for new connection... [15:12:37] Sock 6.Parse request [15:12:37]Sock 6.Check first char [15:12:37]Sock 6.First char is OK [15:12:37]request: POST /json_proto HTTP/1.0 [15:12:37]Method: POST [15:12:37]URL: /json_proto [15:12:37]Method is POST - this is cgi request [15:12:37]url: /json_proto [15:12:37]query_string will be loaded in cgi processing [15:12:37]execute_cgi json_proto POST (null) [15:12:37]execute_cgi path=json_proto method=POST [15:12:37]POST find Content-Length [15:12:37]Host: 172.17.45.67:8080 [15:12:37]Content-Length: 331 [15:12:37]Content-Type: application/json [15:12:37] [15:12:37]POST finish read [15:12:37]Found Content-Length = 331 [15:12:37]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" ] } } [15:12:37]execute_script... [15:12:37]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" ] } } [15:12:37]POST & json_proto [15:12:37]process_json_proto [15:12:37]json parsed OK: [15:12:37]protocol is kg_v1.0 [15:12:37]action value=get_value [15:12:37]process_action get_value [15:12:37]cmd_get_value [15:12:37]process_action get_value done [15:12:37]requested_data is exist [15:12:37]produce_requested_data [15:12:37]requested_item fm.sale.total is exist - process it [15:12:37]SAM_PROTO_GetFMData [15:12:37]wFMCommunicate request_size=4 [15:12:37]MH_SAM_APDU [15:12:37]CAPDU: 80 13 03 00 [15:12:37]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:12:37]Write i2c OK [15:12:37]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 FD 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 60 1E 02 00 69 04 A3 00 6F 04 04 00 DF 1D 02 00 B1 04 05 00 A7 48 1A 3B 02 70 04 05 00 B0 0D EB F0 01 72 04 04 00 F7 3A 2F 4A 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 5C 2A AD 3C 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 EE 4E 0E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 CB [15:12:38]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 60 1E 02 00 69 04 A3 00 6F 04 04 00 DF 1D 02 00 B1 04 05 00 A7 48 1A 3B 02 70 04 05 00 B0 0D EB F0 01 72 04 04 00 F7 3A 2F 4A 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 5C 2A AD 3C 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 EE 4E 0E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [15:12:38]wFMCommunicate OK [15:12:38]wFMCommunicate request_size=4 [15:12:38]MH_SAM_APDU [15:12:38]CAPDU: 80 17 00 00 [15:12:38]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 FD 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 99 [15:12:38]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [15:12:38]wFMCommunicate OK [15:12:38]wFMCommunicate request_size=4 [15:12:38]MH_SAM_APDU [15:12:38]CAPDU: 80 17 00 00 [15:12:38]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 FD 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [15:12:38]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [15:12:38]wFMCommunicate OK [15:12:38]wFMCommunicate request_size=4 [15:12:38]MH_SAM_APDU [15:12:38]CAPDU: 80 17 00 00 [15:12:38]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:39]Read from MH i2c: E2 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 FD 00 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [15:12:39]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [15:12:39]wFMCommunicate OK [15:12:39]wFMCommunicate request_size=4 [15:12:39]MH_SAM_APDU [15:12:39]CAPDU: 80 17 00 00 [15:12:39]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:12:39]Write i2c OK [15:12:39]MH_I2C_Read... [15:12:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [15:12:39]Read from MH i2c: E2 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 E1 00 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [15:12:39]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:12:39]wFMCommunicate OK [15:12:39]SAM_PROTO_GetFMData done [15:12:39]requested_item fm.sale_refund.total is exist - process it [15:12:39]requested_item fm.buy.total is exist - process it [15:12:39]requested_item shift.sale.total is exist - process it [15:12:39]SAM_PROTO_GetShiftData [15:12:39]wFMCommunicate request_size=4 [15:12:39]MH_SAM_APDU [15:12:39]CAPDU: 80 13 02 00 [15:12:39]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:12:39]Write i2c OK [15:12:39]MH_I2C_Read... [15:12:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:12:39]Read from MH i2c: E2 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 FD 00 [15:12:39]MH_I2C_Read... [15:12:39]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 E3 00 00 00 69 04 9C 00 6F 04 04 00 E3 00 00 00 B1 04 03 00 C8 D7 D2 70 04 03 00 A8 27 C1 72 04 03 00 20 B0 11 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 4B 66 16 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 E0 DD 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 93 [15:12:39]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 E3 00 00 00 69 04 9C 00 6F 04 04 00 E3 00 00 00 B1 04 03 00 C8 D7 D2 70 04 03 00 A8 27 C1 72 04 03 00 20 B0 11 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 4B 66 16 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 E0 DD 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [15:12:39]wFMCommunicate OK [15:12:39]wFMCommunicate request_size=4 [15:12:39]MH_SAM_APDU [15:12:39]CAPDU: 80 17 00 00 [15:12:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:12:39]Write i2c OK [15:12:39]MH_I2C_Read... [15:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:40]Read from MH i2c: E2 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 FD 00 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [15:12:40]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [15:12:40]wFMCommunicate OK [15:12:40]wFMCommunicate request_size=4 [15:12:40]MH_SAM_APDU [15:12:40]CAPDU: 80 17 00 00 [15:12:40]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:12:40]Write i2c OK [15:12:40]MH_I2C_Read... [15:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:40]Read from MH i2c: E2 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 FD 00 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [15:12:40]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [15:12:40]wFMCommunicate OK [15:12:40]wFMCommunicate request_size=4 [15:12:40]MH_SAM_APDU [15:12:40]CAPDU: 80 17 00 00 [15:12:40]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:12:40]Write i2c OK [15:12:40]MH_I2C_Read... [15:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:40]Read from MH i2c: E2 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 FD 00 [15:12:40]MH_I2C_Read... [15:12:40]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [15:12:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [15:12:40]wFMCommunicate OK [15:12:40]wFMCommunicate request_size=4 [15:12:40]MH_SAM_APDU [15:12:40]CAPDU: 80 17 00 00 [15:12:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:12:40]Write i2c OK [15:12:40]MH_I2C_Read... [15:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:12:41]Read from MH i2c: E2 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: E2 CC 00 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [15:12:41]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:12:41]wFMCommunicate OK [15:12:41]SAM_PROTO_GetShiftData done [15:12:41]requested_item shift.sale.total_cash is exist - process it [15:12:41]requested_item shift.sale_refund.total is exist - process it [15:12:41]requested_item shift.sale_refund.total_cash is exist - process it [15:12:41]requested_item shift.buy.total is exist - process it [15:12:41]requested_item shift.buy.total_cash is exist - process it [15:12:41]produce_requested_data done [15:12:41]produce_requested_data return {"fm.sale.total":95815128.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":138178.00,"shift.sale.total_cash":126586.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} [15:12:41]process_action_free get_value [15:12:41]json_value_free [15:12:41]json_value_free done [15:12:41]process_json_proto returns [15:12:41]Send response to host [15:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95815128.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":138178.00,"shift.sale.total_cash":126586.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}}} [15:12:41]free response buf [15:12:41]execute_script done [15:12:41]execute_script returns [15:12:41]free content buf [15:12:41]Sock 6.Close socket [15:12:41]Sock 6.Thread stoped [15:12:41]accept exits with 8 [15:12:41]New connection [15:12:41]New thread 3066793316 created [15:12:41]Thread 3066649956 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.45.67:8080 [15:12:41]Content-Length: 144 [15:12:41]Content-Type: application/json [15:12:41] [15:12:41]POST finish read [15:12:41]Found Content-Length = 144 [15:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [15:12:41]execute_script... [15:12:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [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=print_doc [15:12:41]process_action print_doc [15:12:41]ExternCall_PrintAddStr [15:12:41]wPrintStart [15:12:41]Write to MH i2c: 01 00 00 1D 00 1D [15:12:41]Write i2c OK [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: 01 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: 01 07 00 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [15:12:41]RasterBufferAndPrint [15:12:41]line Счет N : (1)593602 [15:12:41]line ИНН: 02508201610067 [15:12:41]line Контрольно-Кассовый Чек [15:12:41]line ПРОДАЖА [15:12:41]line ТРК (МРК, ГНК) : 61 [15:12:41]line Товар: 2710124500 [15:12:41]line Аи-95-К-5 [15:12:41]line 13.480 * 74.20 [15:12:41]line = 1000.22 [15:12:41]line НДС 12% НСП 1% [15:12:41]line > о реализуемом товаре [15:12:41]line ОКРУГЛЕНИЕ: -0.22 [15:12:41]line ИТОГО: 1000.00 [15:12:41]line Внесено: 1000.00 [15:12:41]line СДАЧА: 0.00 [15:12:41]line НСП 1% : 8.85 [15:12:41]line НДС 12% : 106.22 [15:12:41]line Наличными: 1000.00 [15:12:41]line Безнал.: 0.00 [15:12:41]line Место: АЗС № 136 "Партнер Нефть" [15:12:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:12:41]line СНО: Общий режим [15:12:41]line Чек 227 20.08.2024 15:10 [15:12:41]line Смена: 453 ФФД: 1.0 [15:12:41]line ЗНМ: 0300000067 [15:12:41]line РНМ: 0000000000092569 [15:12:41]line Версия ККМ: 001 [15:12:41]line ФМ: 0000000000871776 [15:12:41]line ФД: 139755 [15:12:41]line ФПД: 116886186897018 [15:12:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151046&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139755&fm=116886186897018&tin=02508201610067®Number=0000000000092569&sum=100000 [15:12:41]written 0, free lines is 4095 [15:12:41]Write to MH i2c: 01 00 00 48 00 48 [15:12:41]Write i2c OK [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: 01 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: 01 07 00 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D6 0C 31 [15:12:41]RasterBufferAndPrint [15:12:41]line [15:12:41]line [15:12:41]line [15:12:41]line [15:12:41]line [15:12:41]written 0, free lines is 3305 [15:12:41]MH_Cut [15:12:41]Write to MH i2c: D1 01 00 4F 00 01 21 [15:12:41]Write i2c OK [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: D1 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: D1 01 00 [15:12:41]MH_I2C_Read... [15:12:41]Read from MH i2c: D1 01 00 4F 00 00 20 [15:12:41]Write to MH i2c: 01 00 00 50 00 50 [15:12:41]Write i2c OK [15:12:41]MH_I2C_Read... [15:12:42]*** Cut start [15:12:42]*** Partial cut [15:12:42]*** CUTSNS_PIN = 1 [15:12:42]*** CUTSNS_PIN = 0 [15:12:42]*** Brake cut motor [15:12:42]OFD Sender: No OFD packet to send [15:12:42]Read from MH i2c: 01 [15:12:42]MH_I2C_Read... [15:12:42]*** Stop cut motor [15:12:42]*** Cut end [15:12:42]Read from MH i2c: 01 07 00 [15:12:42]MH_I2C_Read... [15:12:42]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [15:12:42]process_action print_doc done [15:12:42]requested_data is exist [15:12:42]produce_requested_data [15:12:42]produce_requested_data return (null) [15:12:42]process_action_free print_doc [15:12:42]json_value_free [15:12:42]json_value_free done [15:12:42]process_json_proto returns [15:12:42]Send response to host [15:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [15:12:42]free response buf [15:12:42]execute_script done [15:12:42]execute_script returns [15:12:42]free content buf [15:12:42]Sock 8.Close socket [15:12:42]Sock 8.Thread stoped [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:33]accept exits with 6 [15:13:33]New connection [15:13:33]New thread 3066649956 created [15:13:33]Thread 3066793316 joined [15:13:33]Waiting for new connection... [15:13:33] Sock 6.Parse request [15:13:33]Sock 6.Check first char [15:13:33]Sock 6.First char is OK [15:13:33]request: POST /json_proto HTTP/1.0 [15:13:33]Method: POST [15:13:33]URL: /json_proto [15:13:33]Method is POST - this is cgi request [15:13:33]url: /json_proto [15:13:33]query_string will be loaded in cgi processing [15:13:33]execute_cgi json_proto POST (null) [15:13:33]execute_cgi path=json_proto method=POST [15:13:33]POST find Content-Length [15:13:33]Host: 172.17.45.67:8080 [15:13:33]Content-Length: 677 [15:13:33]Content-Type: application/json [15:13:33] [15:13:33]POST finish read [15:13:33]Found Content-Length = 677 [15:13:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:33]execute_script... [15:13: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)593604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:33]POST & json_proto [15:13:33]process_json_proto [15:13:33]json parsed OK: [15:13:33]protocol is kg_v1.0 [15:13:33]action value=close_receipt [15:13:33]process_action close_receipt [15:13:33]cmd_close_receipt [15:13:33]MH_GetDate [15:13:33]Write to MH i2c: F0 00 00 51 00 40 [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 09 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: F0 09 00 51 00 00 9D B2 C4 66 5F 7F 2B 66 31 [15:13:33]GetLastDocTimeStamp 1724166646 [15:13:33]current date 1724166813 [15:13:33]FM_GetShiftState [15:13:33]SAM_PROTO_GetShiftState [15:13:33]wFMCommunicate request_size=4 [15:13:33]MH_SAM_APDU [15:13:33]CAPDU: 80 13 01 00 [15:13:33]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:33]Read from MH i2c: E2 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 0E 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 60 [15:13:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:13:33]wFMCommunicate OK [15:13:33]SAM_PROTO_GetShiftState done [15:13:33]FM_GetShiftState done [15:13:33]opened in 1724113785 [15:13:33]opened+sec_in_day 1724200185 [15:13:33]quantity*price = 30035 [15:13:33]sum+1 = 30036 [15:13:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 228 20.08.2024 15:13 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139756 ФПД: 27193829586772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151333&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139756&fm=27193829586772&tin=02508201610067®Number=0000000000092569&sum=30000 [15:13:34]StoreToDocumentArchive [15:13:34]shift 453 fd 139756 [15:13:34]save to /storage/0453/doc_00139756 [15:13:34]save last doc name /storage/0453/doc_00139756 to /storage/kkm_last_doc_name [15:13:34]save OK [15:13:34]Clear old archive folders... [15:13:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:34]tlvbuf is 00D533A0 [15:13:34]SAM_PROTO_ClearQueue [15:13:34]wFMCommunicate request_size=4 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 09 00 00 [15:13:34]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:34]Read from MH i2c: E2 03 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [15:13:34]RAPDU: 90 00 [15:13:34]wFMCommunicate OK [15:13:34]SAM_PROTO_ClearQueue done [15:13:34]KKMCreateOFDPacket [15:13:34]OFDProtocolAddRootSTLVToBuf [15:13:34]FM_MakeSignedData [15:13:34]FM_MakeSignedData [15:13:34]SAM_PROTO_SignData [15:13:34]wFMCommunicate request_size=4 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 0D 01 02 [15:13:34]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [15:13:34]RAPDU: 90 00 [15:13:34]wFMCommunicate OK [15:13:34]wFMCommunicate request_size=255 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 9D B2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 21 02 00 35 04 06 00 18 [15:13:34]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 9D B2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 21 02 00 35 04 06 00 18 00 00 CB [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [15:13:34]RAPDU: 90 00 [15:13:34]wFMCommunicate OK [15:13:34]wFMCommunicate request_size=10 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 0D 02 02 05 BB 8E 8D 77 54 [15:13:34]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 BB 8E 8D 77 54 00 00 87 [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [15:13:34]RAPDU: 90 00 [15:13:34]wFMCommunicate OK [15:13:34]wFMCommunicate request_size=4 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 0D 03 02 [15:13:34]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 0B 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 0B 00 63 00 00 B4 A7 92 12 52 B1 A8 B2 90 00 3B [15:13:35]RAPDU: B4 A7 92 12 52 B1 A8 B2 90 00 [15:13:35]wFMCommunicate OK [15:13:35]SAM_PROTO_SignData done [15:13:35]FM_MakeSignedData done [15:13:35]CreateOFDProtocolMessage [15:13:35]wFMCommunicate request_size=4 [15:13:35]MH_SAM_APDU [15:13:35]CAPDU: 80 11 00 00 [15:13:35]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 17 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [15:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:13:35]wFMCommunicate OK [15:13:35]CreateOFDProtocolMessage done [15:13:35]OFDSenderStorePacket 139756 [15:13:35]StoreOFDPacket docnum=139756 [15:13:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9D 81 07 01 1F 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 9D B2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 21 02 00 35 04 06 00 18 BB 8E 8D 77 54 B4 A7 92 12 52 B1 A8 B2 [15:13:35]CheckFolder [15:13:35]dirname=/storage/ofd_packets [15:13:35]CheckFolder done [15:13:35]ProducePacketName [15:13:35]name=ofd_packets/00139756 [15:13:35]NVStorageSaveData ofd_packets/00139756 [15:13:35]File name is /storage/ofd_packets/00139756 [15:13:35]Write 301 bytes [15:13:35]NVStorageSaveData done [15:13:35]OFDSenderStorePacket done [15:13:35]KKMCreateOFDPacket done [15:13:35]NVStorageSaveData kkm_last_timestamp [15:13:35]File name is /storage/kkm_last_timestamp [15:13:35]Write 4 bytes [15:13:35]NVStorageSaveData done [15:13:35]ExternCall_PrintAddStr [15:13:35]wPrintStart [15:13:35]Write to MH i2c: 01 00 00 65 00 65 [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 07 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [15:13:35]RasterBufferAndPrint [15:13:35]line Счет N : (1)593604 [15:13:35]line ИНН: 02508201610067 [15:13:35]line Контрольно-Кассовый Чек [15:13:35]line ПРОДАЖА [15:13:35]line ТРК (МРК, ГНК) : 32 [15:13:35]line Товар: 2710124130 [15:13:35]line Аи-92-К-5 [15:13:35]line 4.430 * 67.80 [15:13:35]line = 300.35 [15:13:35]line НДС 12% НСП 1% [15:13:35]line > о реализуемом товаре [15:13:35]line ОКРУГЛЕНИЕ: -0.35 [15:13:35]line ИТОГО: 300.00 [15:13:35]line Внесено: 300.00 [15:13:35]line СДАЧА: 0.00 [15:13:35]line НСП 1% : 2.66 [15:13:35]line НДС 12% : 31.90 [15:13:35]line Наличными: 300.00 [15:13:35]line Безнал.: 0.00 [15:13:35]line Место: АЗС № 136 "Партнер Нефть" [15:13:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:13:35]line СНО: Общий режим [15:13:35]line Чек 228 20.08.2024 15:13 [15:13:35]line Смена: 453 ФФД: 1.0 [15:13:35]line ЗНМ: 0300000067 [15:13:35]line РНМ: 0000000000092569 [15:13:35]line Версия ККМ: 001 [15:13:35]line ФМ: 0000000000871776 [15:13:35]line ФД: 139756 [15:13:35]line ФПД: 27193829586772 [15:13:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151333&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139756&fm=27193829586772&tin=02508201610067®Number=0000000000092569&sum=30000 [15:13:35]written 0, free lines is 4095 [15:13:35]OFD Sender: Processing packet 139756 [packets to send 137, broken 136] [15:13:35]ProducePacketName [15:13:35]name=ofd_packets/00139756 [15:13:35]OFD Sender: To server: pG, [15:13:35]CommunicateWithHost lk.salyk.kg:30040 [15:13:35]ConnectInit lk.salyk.kg [15:13:35]Connected sock=10 [15:13:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9D 81 07 01 1F 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 9D B2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 21 02 00 35 04 06 00 18 BB 8E 8D 77 54 B4 A7 92 12 52 B1 A8 B2 [15:13:35]Write to MH i2c: 01 00 00 90 00 90 [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 07 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 D4 0C 77 [15:13:35]RasterBufferAndPrint [15:13:35]line [15:13:35]line [15:13:35]line [15:13:35]line [15:13:35]line [15:13:35]written 0, free lines is 3289 [15:13:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FC 85 47 00 49 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 21 02 00 F4 03 04 00 30 59 C4 66 B6 04 01 00 00 81 24 49 7D EF 5D D3 F3 [15:13:35]CommunicateWithHost err = 0 [15:13:35]CheckOFDResponse [15:13:35]1017 (14) - 77093643461234 [15:13:35]1041 (16) - 0000000000871776 [15:13:35]1040 (4) - 139756 [15:13:35]1012 (4) - 20.08.2024 08:52 [15:13:35]1206 (1) - 0 [15:13:35]OFD Sender: Remove packet 139756 [15:13:35]ProducePacketName [15:13:35]name=ofd_packets/00139756 [15:13:35]NVStorageDeleteData [15:13:35]MH_Cut [15:13:35]Write to MH i2c: D1 01 00 97 00 01 69 [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: D1 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: D1 01 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: D1 01 00 97 00 00 68 [15:13:35]Write to MH i2c: 01 00 00 98 00 98 [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:36]OFD Sender: No OFD packet to send [15:13:36]*** Cut start [15:13:36]*** Partial cut [15:13:36]*** CUTSNS_PIN = 1 [15:13:36]*** CUTSNS_PIN = 0 [15:13:36]*** Brake cut motor [15:13:36]Read from MH i2c: 01 [15:13:36]MH_I2C_Read... [15:13:36]*** Stop cut motor [15:13:36]*** Cut end [15:13:36]Read from MH i2c: 01 07 00 [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [15:13:36]process_action close_receipt done [15:13:36]requested_data is exist [15:13:36]produce_requested_data [15:13:36]requested_item fm.sn is exist - process it [15:13:36]wFMCommunicate request_size=4 [15:13:36]MH_SAM_APDU [15:13:36]CAPDU: 80 11 00 00 [15:13:36]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [15:13:36]Write i2c OK [15:13:36]MH_I2C_Read... [15:13:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:36]Read from MH i2c: E2 [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: E2 17 00 [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [15:13:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:13:36]wFMCommunicate OK [15:13:36]requested_item fd.num is exist - process it [15:13:36]SAM_PROTO_GetFieldsCounters [15:13:36]wFMCommunicate request_size=4 [15:13:36]MH_SAM_APDU [15:13:36]CAPDU: 80 13 00 00 [15:13:36]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [15:13:36]Write i2c OK [15:13:36]MH_I2C_Read... [15:13:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:37]Read from MH i2c: E2 [15:13:37]MH_I2C_Read... [15:13:37]Read from MH i2c: E2 62 00 [15:13:37]MH_I2C_Read... [15:13:37]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 21 02 00 0E 04 04 00 C5 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 C2 [15:13:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 21 02 00 0E 04 04 00 C5 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 [15:13:37]wFMCommunicate OK [15:13:37]SAM_PROTO_GetFieldsCounters done [15:13:37]requested_item shift.num is exist - process it [15:13:37]requested_item shift.opened is exist - process it [15:13:37]req_shift_opened [15:13:37]FM_GetShiftState [15:13:37]SAM_PROTO_GetShiftState [15:13:37]wFMCommunicate request_size=4 [15:13:37]MH_SAM_APDU [15:13:37]CAPDU: 80 13 01 00 [15:13:37]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [15:13:37]Write i2c OK [15:13:37]MH_I2C_Read... [15:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:37]Read from MH i2c: E2 [15:13:37]MH_I2C_Read... [15:13:37]Read from MH i2c: E2 0E 00 [15:13:37]MH_I2C_Read... [15:13:37]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A9 [15:13:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:13:37]wFMCommunicate OK [15:13:37]SAM_PROTO_GetShiftState done [15:13:37]FM_GetShiftState done [15:13:37]req_shift_opened done [15:13:37]requested_item shift.open_date is exist - process it [15:13:37]req_shift_open_date [15:13:37]req_shift_open_date done [15:13:37]produce_requested_data done [15:13:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139756,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:13:37]process_action_free close_receipt [15:13:37]json_value_free [15:13:37]json_value_free done [15:13:37]process_json_proto returns [15:13:37]Send response to host [15:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139756,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:13:37]free response buf [15:13:37]execute_script done [15:13:37]execute_script returns [15:13:37]free content buf [15:13:37]Sock 6.Close socket [15:13:37]Sock 6.Thread stoped [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:09]accept exits with 9 [15:15:09]New connection [15:15:09]New thread 3066793316 created [15:15:09]Thread 3066649956 joined [15:15:09]Waiting for new connection... [15:15:09] Sock 9.Parse request [15:15:09]Sock 9.Check first char [15:15:09]Sock 9.First char is OK [15:15:09]request: POST /json_proto HTTP/1.0 [15:15:09]Method: POST [15:15:09]URL: /json_proto [15:15:09]Method is POST - this is cgi request [15:15:09]url: /json_proto [15:15:09]query_string will be loaded in cgi processing [15:15:09]execute_cgi json_proto POST (null) [15:15:09]execute_cgi path=json_proto method=POST [15:15:09]POST find Content-Length [15:15:09]Host: 172.17.45.67:8080 [15:15:09]Content-Length: 677 [15:15:09]Content-Type: application/json [15:15:09] [15:15:09]POST finish read [15:15:09]Found Content-Length = 677 [15:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:09]execute_script... [15:15: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)593605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:09]POST & json_proto [15:15:09]process_json_proto [15:15:09]json parsed OK: [15:15:09]protocol is kg_v1.0 [15:15:09]action value=close_receipt [15:15:09]process_action close_receipt [15:15:09]cmd_close_receipt [15:15:09]MH_GetDate [15:15:09]Write to MH i2c: F0 00 00 9C 00 8B [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: F0 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: F0 09 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: F0 09 00 9C 00 00 FE B2 C4 66 5F 7F 2B 66 DD [15:15:09]GetLastDocTimeStamp 1724166813 [15:15:09]current date 1724166910 [15:15:09]FM_GetShiftState [15:15:09]SAM_PROTO_GetShiftState [15:15:09]wFMCommunicate request_size=4 [15:15:09]MH_SAM_APDU [15:15:09]CAPDU: 80 13 01 00 [15:15:09]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:10]Read from MH i2c: E2 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: E2 0E 00 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AB [15:15:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:15:10]wFMCommunicate OK [15:15:10]SAM_PROTO_GetShiftState done [15:15:10]FM_GetShiftState done [15:15:10]opened in 1724113785 [15:15:10]opened+sec_in_day 1724200185 [15:15:10]quantity*price = 50036 [15:15:10]sum+1 = 50037 [15:15:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 229 20.08.2024 15:15 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139757 ФПД: 201203108414887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139757&fm=201203108414887&tin=02508201610067®Number=0000000000092569&sum=50000 [15:15:11]StoreToDocumentArchive [15:15:11]shift 453 fd 139757 [15:15:11]save to /storage/0453/doc_00139757 [15:15:11]save last doc name /storage/0453/doc_00139757 to /storage/kkm_last_doc_name [15:15:11]save OK [15:15:11]Clear old archive folders... [15:15:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:11]tlvbuf is 00CFAE10 [15:15:11]SAM_PROTO_ClearQueue [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 09 00 00 [15:15:11]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [15:15:11]RAPDU: 90 00 [15:15:11]wFMCommunicate OK [15:15:11]SAM_PROTO_ClearQueue done [15:15:11]KKMCreateOFDPacket [15:15:11]OFDProtocolAddRootSTLVToBuf [15:15:11]FM_MakeSignedData [15:15:11]FM_MakeSignedData [15:15:11]SAM_PROTO_SignData [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 0D 01 02 [15:15:11]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]OFD Sender: No OFD packet to send [15:15:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [15:15:11]RAPDU: 90 00 [15:15:11]wFMCommunicate OK [15:15:11]wFMCommunicate request_size=255 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 FE B2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 21 02 00 35 04 06 00 B6 [15:15:11]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 FE B2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 21 02 00 35 04 06 00 B6 00 00 F8 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [15:15:11]RAPDU: 90 00 [15:15:11]wFMCommunicate OK [15:15:11]wFMCommunicate request_size=10 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 0D 02 02 05 FE 3F CE 05 A7 [15:15:11]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 FE 3F CE 05 A7 00 00 E8 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [15:15:11]RAPDU: 90 00 [15:15:11]wFMCommunicate OK [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 0D 03 02 [15:15:11]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0B 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 0B 00 AE 00 00 B9 D6 2B FE 2F 26 E7 D6 90 00 F4 [15:15:11]RAPDU: B9 D6 2B FE 2F 26 E7 D6 90 00 [15:15:11]wFMCommunicate OK [15:15:11]SAM_PROTO_SignData done [15:15:11]FM_MakeSignedData done [15:15:11]CreateOFDProtocolMessage [15:15:11]wFMCommunicate request_size=4 [15:15:11]MH_SAM_APDU [15:15:11]CAPDU: 80 11 00 00 [15:15:11]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:11]Read from MH i2c: E2 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 17 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [15:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:15:11]wFMCommunicate OK [15:15:11]CreateOFDProtocolMessage done [15:15:11]OFDSenderStorePacket 139757 [15:15:11]StoreOFDPacket docnum=139757 [15:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 98 CA 07 01 10 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 FE B2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 21 02 00 35 04 06 00 B6 FE 3F CE 05 A7 B9 D6 2B FE 2F 26 E7 D6 [15:15:11]CheckFolder [15:15:11]dirname=/storage/ofd_packets [15:15:11]CheckFolder done [15:15:11]ProducePacketName [15:15:11]name=ofd_packets/00139757 [15:15:11]NVStorageSaveData ofd_packets/00139757 [15:15:11]File name is /storage/ofd_packets/00139757 [15:15:11]Write 301 bytes [15:15:11]NVStorageSaveData done [15:15:11]OFDSenderStorePacket done [15:15:11]KKMCreateOFDPacket done [15:15:11]NVStorageSaveData kkm_last_timestamp [15:15:11]File name is /storage/kkm_last_timestamp [15:15:11]Write 4 bytes [15:15:11]NVStorageSaveData done [15:15:11]ExternCall_PrintAddStr [15:15:11]wPrintStart [15:15:11]Write to MH i2c: 01 00 00 B0 00 B0 [15:15:11]Write i2c OK [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: 01 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: 01 07 00 [15:15:11]MH_I2C_Read... [15:15:11]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [15:15:11]RasterBufferAndPrint [15:15:11]line Счет N : (1)593605 [15:15:11]line ИНН: 02508201610067 [15:15:11]line Контрольно-Кассовый Чек [15:15:11]line ПРОДАЖА [15:15:11]line ТРК (МРК, ГНК) : 42 [15:15:11]line Товар: 2710124130 [15:15:11]line Аи-92-К-5 [15:15:11]line 7.380 * 67.80 [15:15:11]line = 500.36 [15:15:11]line НДС 12% НСП 1% [15:15:11]line > о реализуемом товаре [15:15:11]line ОКРУГЛЕНИЕ: -0.36 [15:15:11]line ИТОГО: 500.00 [15:15:11]line Внесено: 500.00 [15:15:11]line СДАЧА: 0.00 [15:15:11]line НСП 1% : 4.43 [15:15:11]line НДС 12% : 53.14 [15:15:11]line Наличными: 500.00 [15:15:11]line Безнал.: 0.00 [15:15:11]line Место: АЗС № 136 "Партнер Нефть" [15:15:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:15:11]line СНО: Общий режим [15:15:11]line Чек 229 20.08.2024 15:15 [15:15:11]line Смена: 453 ФФД: 1.0 [15:15:11]line ЗНМ: 0300000067 [15:15:11]line РНМ: 0000000000092569 [15:15:11]line Версия ККМ: 001 [15:15:11]line ФМ: 0000000000871776 [15:15:11]line ФД: 139757 [15:15:11]line ФПД: 201203108414887 [15:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139757&fm=201203108414887&tin=02508201610067®Number=0000000000092569&sum=50000 [15:15:12]OFD Sender: Processing packet 139757 [packets to send 137, broken 136] [15:15:12]ProducePacketName [15:15:12]name=ofd_packets/00139757 [15:15:12]OFD Sender: To server: pG, [15:15:12]CommunicateWithHost lk.salyk.kg:30040 [15:15:12]ConnectInit lk.salyk.kg [15:15:12]written 0, free lines is 4095 [15:15:12]Connected sock=10 [15:15:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 98 CA 07 01 10 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 FE B2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 21 02 00 35 04 06 00 B6 FE 3F CE 05 A7 B9 D6 2B FE 2F 26 E7 D6 [15:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C9 B6 47 00 63 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 21 02 00 F4 03 04 00 91 59 C4 66 B6 04 01 00 00 14 EF D8 43 B5 94 59 D1 [15:15:12]CommunicateWithHost err = 0 [15:15:12]CheckOFDResponse [15:15:12]1017 (14) - 77093643461234 [15:15:12]1041 (16) - 0000000000871776 [15:15:12]1040 (4) - 139757 [15:15:12]1012 (4) - 20.08.2024 08:53 [15:15:12]1206 (1) - 0 [15:15:12]OFD Sender: Remove packet 139757 [15:15:12]ProducePacketName [15:15:12]name=ofd_packets/00139757 [15:15:12]NVStorageDeleteData [15:15:12]Write to MH i2c: 01 00 00 DB 00 DB [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: 01 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: 01 07 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 CD 0C BB [15:15:12]RasterBufferAndPrint [15:15:12]line [15:15:12]line [15:15:12]line [15:15:12]line [15:15:12]line [15:15:12]written 0, free lines is 3283 [15:15:12]MH_Cut [15:15:12]Write to MH i2c: D1 01 00 E2 00 01 B4 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: D1 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: D1 01 00 [15:15:12]MH_I2C_Read... [15:15:12]Read from MH i2c: D1 01 00 E2 00 00 B3 [15:15:12]Write to MH i2c: 01 00 00 E3 00 E3 [15:15:12]Write i2c OK [15:15:12]MH_I2C_Read... [15:15:12]OFD Sender: No OFD packet to send [15:15:13]*** Cut start [15:15:13]*** Partial cut [15:15:13]*** CUTSNS_PIN = 1 [15:15:13]*** CUTSNS_PIN = 0 [15:15:13]*** Brake cut motor [15:15:13]Read from MH i2c: 01 [15:15:13]MH_I2C_Read... [15:15:13]*** Stop cut motor [15:15:13]*** Cut end [15:15:13]Read from MH i2c: 01 07 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [15:15:13]process_action close_receipt done [15:15:13]requested_data is exist [15:15:13]produce_requested_data [15:15:13]requested_item fm.sn is exist - process it [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 11 00 00 [15:15:13]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 17 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [15:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:15:13]wFMCommunicate OK [15:15:13]requested_item fd.num is exist - process it [15:15:13]SAM_PROTO_GetFieldsCounters [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 13 00 00 [15:15:13]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 62 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 21 02 00 0E 04 04 00 C5 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 11 [15:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 21 02 00 0E 04 04 00 C5 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 [15:15:13]wFMCommunicate OK [15:15:13]SAM_PROTO_GetFieldsCounters done [15:15:13]requested_item shift.num is exist - process it [15:15:13]requested_item shift.opened is exist - process it [15:15:13]req_shift_opened [15:15:13]FM_GetShiftState [15:15:13]SAM_PROTO_GetShiftState [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 13 01 00 [15:15:13]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0E 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F4 [15:15:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:15:13]wFMCommunicate OK [15:15:13]SAM_PROTO_GetShiftState done [15:15:13]FM_GetShiftState done [15:15:13]req_shift_opened done [15:15:13]requested_item shift.open_date is exist - process it [15:15:13]req_shift_open_date [15:15:13]req_shift_open_date done [15:15:13]produce_requested_data done [15:15:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139757,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:15:13]process_action_free close_receipt [15:15:13]json_value_free [15:15:13]json_value_free done [15:15:13]process_json_proto returns [15:15:13]Send response to host [15:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139757,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:15:13]free response buf [15:15:13]execute_script done [15:15:13]execute_script returns [15:15:13]free content buf [15:15:13]Sock 9.Close socket [15:15:13]Sock 9.Thread stoped [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [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:53]accept exits with 8 [15:16:53]New connection [15:16:53]New thread 3066649956 created [15:16:53]Thread 3066793316 joined [15:16:53]Waiting for new connection... [15:16:53] Sock 8.Parse request [15:16:53]Sock 8.Check first char [15:16:53]Sock 8.First char is OK [15:16:53]request: POST /json_proto HTTP/1.0 [15:16:53]Method: POST [15:16:53]URL: /json_proto [15:16:53]Method is POST - this is cgi request [15:16:53]url: /json_proto [15:16:53]query_string will be loaded in cgi processing [15:16:53]execute_cgi json_proto POST (null) [15:16:53]execute_cgi path=json_proto method=POST [15:16:53]POST find Content-Length [15:16:53]Host: 172.17.45.67:8080 [15:16:53]Content-Length: 682 [15:16:53]Content-Type: application/json [15:16:53] [15:16:53]POST finish read [15:16:53]Found Content-Length = 682 [15:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:53]execute_script... [15:16: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)593606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:53]POST & json_proto [15:16:53]process_json_proto [15:16:53]json parsed OK: [15:16:53]protocol is kg_v1.0 [15:16:53]action value=close_receipt [15:16:53]process_action close_receipt [15:16:53]cmd_close_receipt [15:16:53]MH_GetDate [15:16:53]Write to MH i2c: F0 00 00 E7 00 D6 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: F0 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: F0 09 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: F0 09 00 E7 00 00 65 B3 C4 66 5F 7F 2B 66 90 [15:16:53]GetLastDocTimeStamp 1724166910 [15:16:53]current date 1724167013 [15:16:53]FM_GetShiftState [15:16:53]SAM_PROTO_GetShiftState [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 13 01 00 [15:16:53]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 0E 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F6 [15:16:53]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:16:53]wFMCommunicate OK [15:16:53]SAM_PROTO_GetShiftState done [15:16:53]FM_GetShiftState done [15:16:53]opened in 1724113785 [15:16:53]opened+sec_in_day 1724200185 [15:16:53]quantity*price = 100021 [15:16:53]sum+1 = 100023 [15:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 230 20.08.2024 15:16 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139758 ФПД: 133821851805675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151653&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139758&fm=133821851805675&tin=02508201610067®Number=0000000000092569&sum=100000 [15:16:54]StoreToDocumentArchive [15:16:54]shift 453 fd 139758 [15:16:54]save to /storage/0453/doc_00139758 [15:16:54]save last doc name /storage/0453/doc_00139758 to /storage/kkm_last_doc_name [15:16:54]save OK [15:16:54]Clear old archive folders... [15:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:54]tlvbuf is 00D046B0 [15:16:54]SAM_PROTO_ClearQueue [15:16:54]wFMCommunicate request_size=4 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 09 00 00 [15:16:54]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [15:16:54]RAPDU: 90 00 [15:16:54]wFMCommunicate OK [15:16:54]SAM_PROTO_ClearQueue done [15:16:54]KKMCreateOFDPacket [15:16:54]OFDProtocolAddRootSTLVToBuf [15:16:54]FM_MakeSignedData [15:16:54]FM_MakeSignedData [15:16:54]SAM_PROTO_SignData [15:16:54]wFMCommunicate request_size=4 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 0D 01 02 [15:16:54]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [15:16:54]RAPDU: 90 00 [15:16:54]wFMCommunicate OK [15:16:54]wFMCommunicate request_size=255 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 E6 00 00 00 F4 03 04 00 65 B3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 21 02 00 35 04 06 00 79 [15:16:54]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 E6 00 00 00 F4 03 04 00 65 B3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 21 02 00 35 04 06 00 79 00 00 9D [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:55]Read from MH i2c: E2 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 03 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [15:16:55]RAPDU: 90 00 [15:16:55]wFMCommunicate OK [15:16:55]wFMCommunicate request_size=10 [15:16:55]MH_SAM_APDU [15:16:55]CAPDU: 80 0D 02 02 05 B5 D3 F0 A7 EB [15:16:55]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 B5 D3 F0 A7 EB 00 00 86 [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:55]Read from MH i2c: E2 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 03 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [15:16:55]RAPDU: 90 00 [15:16:55]wFMCommunicate OK [15:16:55]wFMCommunicate request_size=4 [15:16:55]MH_SAM_APDU [15:16:55]CAPDU: 80 0D 03 02 [15:16:55]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:55]Read from MH i2c: E2 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 0B 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 0B 00 F9 00 00 4C 75 92 BD CE 45 36 60 90 00 2E [15:16:55]RAPDU: 4C 75 92 BD CE 45 36 60 90 00 [15:16:55]wFMCommunicate OK [15:16:55]SAM_PROTO_SignData done [15:16:55]FM_MakeSignedData done [15:16:55]CreateOFDProtocolMessage [15:16:55]wFMCommunicate request_size=4 [15:16:55]MH_SAM_APDU [15:16:55]CAPDU: 80 11 00 00 [15:16:55]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:55]Read from MH i2c: E2 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 17 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [15:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:16:55]wFMCommunicate OK [15:16:55]CreateOFDProtocolMessage done [15:16:55]OFDSenderStorePacket 139758 [15:16:55]StoreOFDPacket docnum=139758 [15:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 00 67 07 01 C3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 65 B3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 21 02 00 35 04 06 00 79 B5 D3 F0 A7 EB 4C 75 92 BD CE 45 36 60 [15:16:55]CheckFolder [15:16:55]dirname=/storage/ofd_packets [15:16:55]CheckFolder done [15:16:55]ProducePacketName [15:16:55]name=ofd_packets/00139758 [15:16:55]NVStorageSaveData ofd_packets/00139758 [15:16:55]File name is /storage/ofd_packets/00139758 [15:16:55]Write 301 bytes [15:16:55]NVStorageSaveData done [15:16:55]OFDSenderStorePacket done [15:16:55]KKMCreateOFDPacket done [15:16:55]NVStorageSaveData kkm_last_timestamp [15:16:55]File name is /storage/kkm_last_timestamp [15:16:55]Write 4 bytes [15:16:55]NVStorageSaveData done [15:16:55]OFD Sender: Processing packet 139758 [packets to send 137, broken 136] [15:16:55]ProducePacketName [15:16:55]name=ofd_packets/00139758 [15:16:55]OFD Sender: To server: pG, [15:16:55]CommunicateWithHost lk.salyk.kg:30040 [15:16:55]ConnectInit lk.salyk.kg [15:16:55]ExternCall_PrintAddStr [15:16:55]wPrintStart [15:16:55]Write to MH i2c: 01 00 00 FB 00 FB [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 07 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [15:16:55]RasterBufferAndPrint [15:16:55]line Счет N : (1)593606 [15:16:55]line ИНН: 02508201610067 [15:16:55]line Контрольно-Кассовый Чек [15:16:55]line ПРОДАЖА [15:16:55]line ТРК (МРК, ГНК) : 61 [15:16:55]line Товар: 2710124500 [15:16:55]line Аи-95-К-5 [15:16:55]line 13.480 * 74.20 [15:16:55]line = 1000.22 [15:16:55]line НДС 12% НСП 1% [15:16:55]line > о реализуемом товаре [15:16:55]line ОКРУГЛЕНИЕ: -0.22 [15:16:55]line ИТОГО: 1000.00 [15:16:55]line Внесено: 1000.00 [15:16:55]line СДАЧА: 0.00 [15:16:55]line НСП 1% : 8.85 [15:16:55]line НДС 12% : 106.22 [15:16:55]line Наличными: 1000.00 [15:16:55]line Безнал.: 0.00 [15:16:55]line Место: АЗС № 136 "Партнер Нефть" [15:16:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:16:55]line СНО: Общий режим [15:16:55]line Чек 230 20.08.2024 15:16 [15:16:55]line Смена: 453 ФФД: 1.0 [15:16:55]line ЗНМ: 0300000067 [15:16:55]line РНМ: 0000000000092569 [15:16:55]line Версия ККМ: 001 [15:16:55]line ФМ: 0000000000871776 [15:16:55]line ФД: 139758 [15:16:55]line ФПД: 133821851805675 [15:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151653&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139758&fm=133821851805675&tin=02508201610067®Number=0000000000092569&sum=100000 [15:16:55]Connected sock=11 [15:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 00 67 07 01 C3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 65 B3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 21 02 00 35 04 06 00 79 B5 D3 F0 A7 EB 4C 75 92 BD CE 45 36 60 [15:16:55]written 0, free lines is 4095 [15:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E1 4A 47 00 55 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 21 02 00 F4 03 04 00 F8 59 C4 66 B6 04 01 00 00 59 F0 E4 7F 6B 88 84 2C [15:16:55]CommunicateWithHost err = 0 [15:16:55]CheckOFDResponse [15:16:55]1017 (14) - 77093643461234 [15:16:55]1041 (16) - 0000000000871776 [15:16:55]1040 (4) - 139758 [15:16:55]1012 (4) - 20.08.2024 08:55 [15:16:55]1206 (1) - 0 [15:16:55]OFD Sender: Remove packet 139758 [15:16:55]ProducePacketName [15:16:55]name=ofd_packets/00139758 [15:16:55]NVStorageDeleteData [15:16:55]Write to MH i2c: 01 00 00 26 01 27 [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: 01 07 00 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 CE 0C 08 [15:16:56]RasterBufferAndPrint [15:16:56]line [15:16:56]line [15:16:56]line [15:16:56]line [15:16:56]line [15:16:56]written 0, free lines is 3284 [15:16:56]MH_Cut [15:16:56]Write to MH i2c: D1 01 00 2D 01 01 00 [15:16:56]Write i2c OK [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: D1 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: D1 01 00 [15:16:56]MH_I2C_Read... [15:16:56]Read from MH i2c: D1 01 00 2D 01 00 FF [15:16:56]Write to MH i2c: 01 00 00 2E 01 2F [15:16:56]Write i2c OK [15:16:56]MH_I2C_Read... [15:16:56]OFD Sender: No OFD packet to send [15:16:56]*** Cut start [15:16:56]*** Partial cut [15:16:56]*** CUTSNS_PIN = 1 [15:16:56]*** CUTSNS_PIN = 0 [15:16:56]*** Brake cut motor [15:16:57]Read from MH i2c: 01 [15:16:57]MH_I2C_Read... [15:16:57]*** Stop cut motor [15:16:57]*** Cut end [15:16:57]Read from MH i2c: 01 07 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [15:16:57]process_action close_receipt done [15:16:57]requested_data is exist [15:16:57]produce_requested_data [15:16:57]requested_item fm.sn is exist - process it [15:16:57]wFMCommunicate request_size=4 [15:16:57]MH_SAM_APDU [15:16:57]CAPDU: 80 11 00 00 [15:16:57]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:57]Read from MH i2c: E2 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 17 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [15:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:16:57]wFMCommunicate OK [15:16:57]requested_item fd.num is exist - process it [15:16:57]SAM_PROTO_GetFieldsCounters [15:16:57]wFMCommunicate request_size=4 [15:16:57]MH_SAM_APDU [15:16:57]CAPDU: 80 13 00 00 [15:16:57]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:57]Read from MH i2c: E2 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 62 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 21 02 00 0E 04 04 00 C5 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 61 [15:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 21 02 00 0E 04 04 00 C5 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 [15:16:57]wFMCommunicate OK [15:16:57]SAM_PROTO_GetFieldsCounters done [15:16:57]requested_item shift.num is exist - process it [15:16:57]requested_item shift.opened is exist - process it [15:16:57]req_shift_opened [15:16:57]FM_GetShiftState [15:16:57]SAM_PROTO_GetShiftState [15:16:57]wFMCommunicate request_size=4 [15:16:57]MH_SAM_APDU [15:16:57]CAPDU: 80 13 01 00 [15:16:57]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:57]Read from MH i2c: E2 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 0E 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 40 [15:16:57]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:16:57]wFMCommunicate OK [15:16:57]SAM_PROTO_GetShiftState done [15:16:57]FM_GetShiftState done [15:16:57]req_shift_opened done [15:16:57]requested_item shift.open_date is exist - process it [15:16:57]req_shift_open_date [15:16:57]req_shift_open_date done [15:16:57]produce_requested_data done [15:16:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139758,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:16:57]process_action_free close_receipt [15:16:57]json_value_free [15:16:57]json_value_free done [15:16:57]process_json_proto returns [15:16:57]Send response to host [15:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139758,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:16:57]free response buf [15:16:57]execute_script done [15:16:57]execute_script returns [15:16:57]free content buf [15:16:57]Sock 8.Close socket [15:16:57]Sock 8.Thread stoped [15:16:57]int [15:16:57]Write to MH i2c: 01 00 00 32 01 33 [15:16:57]*** FLAG_PRN_KEY set [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 07 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 07 00 32 01 00 08 00 00 00 FF 0F 50 [15:16:57]state=0 [15:16:57]Key pressed [15:16:57]Feed [15:16:57]Write to MH i2c: D8 00 00 33 01 0B [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: D8 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: D8 01 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: D8 01 00 33 01 00 0C [15:16:57]int [15:16:57]Write to MH i2c: 01 00 00 34 01 35 [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 07 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 07 00 34 01 00 48 00 00 00 3C 00 C0 [15:16:57]state=2 [15:16:57]Key pressed [15:16:57]int [15:16:57]Write to MH i2c: 01 00 00 35 01 36 [15:16:57]*** FLAG_PRN_KEY reset [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 07 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: 01 07 00 35 01 00 00 00 00 00 F8 0F 44 [15:16:57]state=2 [15:16:57]Stop feed [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:48]accept exits with 9 [15:18:48]New connection [15:18:48]New thread 3066793316 created [15:18:48]Thread 3066649956 joined [15:18:48]Waiting for new connection... [15:18:48] Sock 9.Parse request [15:18:48]Sock 9.Check first char [15:18:48]Sock 9.First char is OK [15:18:48]request: POST /json_proto HTTP/1.0 [15:18:48]Method: POST [15:18:48]URL: /json_proto [15:18:48]Method is POST - this is cgi request [15:18:48]url: /json_proto [15:18:48]query_string will be loaded in cgi processing [15:18:48]execute_cgi json_proto POST (null) [15:18:48]execute_cgi path=json_proto method=POST [15:18:48]POST find Content-Length [15:18:48]Host: 172.17.45.67:8080 [15:18:48]Content-Length: 682 [15:18:48]Content-Type: application/json [15:18:48] [15:18:48]POST finish read [15:18:48]Found Content-Length = 682 [15:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:18:48]execute_script... [15:18: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)593607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:18:48]POST & json_proto [15:18:48]process_json_proto [15:18:48]json parsed OK: [15:18:48]protocol is kg_v1.0 [15:18:48]action value=close_receipt [15:18:48]process_action close_receipt [15:18:48]cmd_close_receipt [15:18:48]MH_GetDate [15:18:48]Write to MH i2c: F0 00 00 36 01 26 [15:18:48]Write i2c OK [15:18:48]MH_I2C_Read... [15:18:48]Read from MH i2c: F0 [15:18:48]MH_I2C_Read... [15:18:48]Read from MH i2c: F0 09 00 [15:18:48]MH_I2C_Read... [15:18:48]Read from MH i2c: F0 09 00 36 01 00 D9 B3 C4 66 5F 7F 2B 66 54 [15:18:48]GetLastDocTimeStamp 1724167013 [15:18:48]current date 1724167129 [15:18:48]FM_GetShiftState [15:18:48]SAM_PROTO_GetShiftState [15:18:48]wFMCommunicate request_size=4 [15:18:48]MH_SAM_APDU [15:18:48]CAPDU: 80 13 01 00 [15:18:48]Write to MH i2c: E2 08 00 37 01 80 13 01 00 00 00 00 00 B5 [15:18:48]Write i2c OK [15:18:48]MH_I2C_Read... [15:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:48]Read from MH i2c: E2 [15:18:48]MH_I2C_Read... [15:18:48]Read from MH i2c: E2 0E 00 [15:18:48]MH_I2C_Read... [15:18:48]Read from MH i2c: E2 0E 00 37 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 46 [15:18:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:18:48]wFMCommunicate OK [15:18:48]SAM_PROTO_GetShiftState done [15:18:48]FM_GetShiftState done [15:18:48]opened in 1724113785 [15:18:48]opened+sec_in_day 1724200185 [15:18:48]quantity*price = 30022 [15:18:48]sum+1 = 30024 [15:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 231 20.08.2024 15:18 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139759 ФПД: 39859027933565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151849&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139759&fm=39859027933565&tin=02508201610067®Number=0000000000092569&sum=30000 [15:18:49]StoreToDocumentArchive [15:18:49]shift 453 fd 139759 [15:18:49]save to /storage/0453/doc_00139759 [15:18:49]save last doc name /storage/0453/doc_00139759 to /storage/kkm_last_doc_name [15:18:49]save OK [15:18:49]Clear old archive folders... [15:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:18:49]tlvbuf is 00D0DFF0 [15:18:49]SAM_PROTO_ClearQueue [15:18:49]wFMCommunicate request_size=4 [15:18:49]MH_SAM_APDU [15:18:49]CAPDU: 80 09 00 00 [15:18:49]Write to MH i2c: E2 08 00 44 01 80 09 00 00 00 00 00 00 B7 [15:18:49]Write i2c OK [15:18:49]MH_I2C_Read... [15:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:49]Read from MH i2c: E2 [15:18:49]MH_I2C_Read... [15:18:49]Read from MH i2c: E2 03 00 [15:18:49]MH_I2C_Read... [15:18:49]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [15:18:49]RAPDU: 90 00 [15:18:49]wFMCommunicate OK [15:18:49]SAM_PROTO_ClearQueue done [15:18:49]KKMCreateOFDPacket [15:18:49]OFDProtocolAddRootSTLVToBuf [15:18:49]FM_MakeSignedData [15:18:49]FM_MakeSignedData [15:18:49]SAM_PROTO_SignData [15:18:49]wFMCommunicate request_size=4 [15:18:49]MH_SAM_APDU [15:18:49]CAPDU: 80 0D 01 02 [15:18:49]Write to MH i2c: E2 08 00 45 01 80 0D 01 02 00 00 00 00 BF [15:18:49]Write i2c OK [15:18:49]MH_I2C_Read... [15:18:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:50]Read from MH i2c: E2 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 03 00 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [15:18:50]RAPDU: 90 00 [15:18:50]wFMCommunicate OK [15:18:50]wFMCommunicate request_size=255 [15:18:50]MH_SAM_APDU [15:18:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E7 00 00 00 F4 03 04 00 D9 B3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 21 02 00 35 04 06 00 [15:18:50]Write to MH i2c: E2 02 01 46 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E7 00 00 00 F4 03 04 00 D9 B3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 21 02 00 35 04 06 00 00 00 68 [15:18:50]Write i2c OK [15:18:50]MH_I2C_Read... [15:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:50]Read from MH i2c: E2 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 03 00 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [15:18:50]RAPDU: 90 00 [15:18:50]wFMCommunicate OK [15:18:50]wFMCommunicate request_size=11 [15:18:50]MH_SAM_APDU [15:18:50]CAPDU: 80 0D 02 02 06 24 40 67 33 79 7D [15:18:50]Write to MH i2c: E2 0E 00 47 01 80 0D 02 02 06 00 24 40 67 33 79 7D 00 00 C2 [15:18:50]Write i2c OK [15:18:50]MH_I2C_Read... [15:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:50]Read from MH i2c: E2 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 03 00 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [15:18:50]RAPDU: 90 00 [15:18:50]wFMCommunicate OK [15:18:50]wFMCommunicate request_size=4 [15:18:50]MH_SAM_APDU [15:18:50]CAPDU: 80 0D 03 02 [15:18:50]Write to MH i2c: E2 08 00 48 01 80 0D 03 02 00 00 00 00 C4 [15:18:50]Write i2c OK [15:18:50]MH_I2C_Read... [15:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:50]Read from MH i2c: E2 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 0B 00 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 0B 00 48 01 00 53 76 47 F3 89 52 AF 71 90 00 C3 [15:18:50]RAPDU: 53 76 47 F3 89 52 AF 71 90 00 [15:18:50]wFMCommunicate OK [15:18:50]SAM_PROTO_SignData done [15:18:50]FM_MakeSignedData done [15:18:50]CreateOFDProtocolMessage [15:18:50]wFMCommunicate request_size=4 [15:18:50]MH_SAM_APDU [15:18:50]CAPDU: 80 11 00 00 [15:18:50]Write to MH i2c: E2 08 00 49 01 80 11 00 00 00 00 00 00 C4 [15:18:50]Write i2c OK [15:18:50]MH_I2C_Read... [15:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:50]Read from MH i2c: E2 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 17 00 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: E2 17 00 49 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1B [15:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:18:50]wFMCommunicate OK [15:18:50]CreateOFDProtocolMessage done [15:18:50]OFDSenderStorePacket 139759 [15:18:50]StoreOFDPacket docnum=139759 [15:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 75 29 08 01 2A 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E7 00 00 00 F4 03 04 00 D9 B3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 21 02 00 35 04 06 00 24 40 67 33 79 7D 53 76 47 F3 89 52 AF 71 [15:18:50]CheckFolder [15:18:50]dirname=/storage/ofd_packets [15:18:50]CheckFolder done [15:18:50]ProducePacketName [15:18:50]name=ofd_packets/00139759 [15:18:50]NVStorageSaveData ofd_packets/00139759 [15:18:50]File name is /storage/ofd_packets/00139759 [15:18:50]Write 302 bytes [15:18:50]NVStorageSaveData done [15:18:50]OFDSenderStorePacket done [15:18:50]KKMCreateOFDPacket done [15:18:50]NVStorageSaveData kkm_last_timestamp [15:18:50]File name is /storage/kkm_last_timestamp [15:18:50]Write 4 bytes [15:18:50]NVStorageSaveData done [15:18:50]ExternCall_PrintAddStr [15:18:50]wPrintStart [15:18:50]Write to MH i2c: 01 00 00 4A 01 4B [15:18:50]Write i2c OK [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: 01 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: 01 07 00 [15:18:50]MH_I2C_Read... [15:18:50]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 FF 0F 60 [15:18:50]RasterBufferAndPrint [15:18:50]line Счет N : (1)593607 [15:18:50]line ИНН: 02508201610067 [15:18:50]line Контрольно-Кассовый Чек [15:18:50]line ПРОДАЖА [15:18:50]line ТРК (МРК, ГНК) : 34 [15:18:50]line Товар: 2710194210 [15:18:50]line ДТ(л)-К-5 [15:18:50]line 3.940 * 76.20 [15:18:50]line = 300.23 [15:18:50]line НДС 12% НСП 1% [15:18:50]line > о реализуемом товаре [15:18:50]line ОКРУГЛЕНИЕ: -0.23 [15:18:50]line ИТОГО: 300.00 [15:18:50]line Внесено: 300.00 [15:18:50]line СДАЧА: 0.00 [15:18:50]line НСП 1% : 2.66 [15:18:50]line НДС 12% : 31.88 [15:18:50]line Наличными: 300.00 [15:18:50]line Безнал.: 0.00 [15:18:50]line Место: АЗС № 136 "Партнер Нефть" [15:18:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:18:50]line СНО: Общий режим [15:18:50]line Чек 231 20.08.2024 15:18 [15:18:50]line Смена: 453 ФФД: 1.0 [15:18:50]line ЗНМ: 0300000067 [15:18:50]line РНМ: 0000000000092569 [15:18:50]line Версия ККМ: 001 [15:18:50]line ФМ: 0000000000871776 [15:18:50]line ФД: 139759 [15:18:50]line ФПД: 39859027933565 [15:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151849&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139759&fm=39859027933565&tin=02508201610067®Number=0000000000092569&sum=30000 [15:18:50]written 0, free lines is 4095 [15:18:50]OFD Sender: Processing packet 139759 [packets to send 137, broken 136] [15:18:50]ProducePacketName [15:18:50]name=ofd_packets/00139759 [15:18:50]OFD Sender: To server: pG, [15:18:50]CommunicateWithHost lk.salyk.kg:30040 [15:18:50]ConnectInit lk.salyk.kg [15:18:50]Connected sock=10 [15:18:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 75 29 08 01 2A 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 E7 00 00 00 F4 03 04 00 D9 B3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 21 02 00 35 04 06 00 24 40 67 33 79 7D 53 76 47 F3 89 52 AF 71 [15:18:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D6 28 47 00 5F C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 21 02 00 F4 03 04 00 6C 5A C4 66 B6 04 01 00 00 30 B9 20 30 4F DB 0B C6 [15:18:51]CommunicateWithHost err = 0 [15:18:51]CheckOFDResponse [15:18:51]1017 (14) - 77093643461234 [15:18:51]1041 (16) - 0000000000871776 [15:18:51]1040 (4) - 139759 [15:18:51]1012 (4) - 20.08.2024 08:57 [15:18:51]1206 (1) - 0 [15:18:51]OFD Sender: Remove packet 139759 [15:18:51]ProducePacketName [15:18:51]name=ofd_packets/00139759 [15:18:51]NVStorageDeleteData [15:18:51]Write to MH i2c: 01 00 00 75 01 76 [15:18:51]Write i2c OK [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: 01 [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: 01 07 00 [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: 01 07 00 75 01 00 00 00 00 00 DD 0C 66 [15:18:51]RasterBufferAndPrint [15:18:51]line [15:18:51]line [15:18:51]line [15:18:51]line [15:18:51]line [15:18:51]written 0, free lines is 3299 [15:18:51]MH_Cut [15:18:51]Write to MH i2c: D1 01 00 7C 01 01 4F [15:18:51]Write i2c OK [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: D1 [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: D1 01 00 [15:18:51]MH_I2C_Read... [15:18:51]Read from MH i2c: D1 01 00 7C 01 00 4E [15:18:51]Write to MH i2c: 01 00 00 7D 01 7E [15:18:51]Write i2c OK [15:18:51]MH_I2C_Read... [15:18:51]OFD Sender: No OFD packet to send [15:18:51]*** Cut start [15:18:51]*** Partial cut [15:18:51]*** CUTSNS_PIN = 1 [15:18:52]*** CUTSNS_PIN = 0 [15:18:52]*** Brake cut motor [15:18:52]Read from MH i2c: 01 [15:18:52]MH_I2C_Read... [15:18:52]*** Stop cut motor [15:18:52]*** Cut end [15:18:52]Read from MH i2c: 01 07 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 FF 0F 93 [15:18:52]process_action close_receipt done [15:18:52]requested_data is exist [15:18:52]produce_requested_data [15:18:52]requested_item fm.sn is exist - process it [15:18:52]wFMCommunicate request_size=4 [15:18:52]MH_SAM_APDU [15:18:52]CAPDU: 80 11 00 00 [15:18:52]Write to MH i2c: E2 08 00 7E 01 80 11 00 00 00 00 00 00 F9 [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:52]Read from MH i2c: E2 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 17 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 17 00 7E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 50 [15:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:18:52]wFMCommunicate OK [15:18:52]requested_item fd.num is exist - process it [15:18:52]SAM_PROTO_GetFieldsCounters [15:18:52]wFMCommunicate request_size=4 [15:18:52]MH_SAM_APDU [15:18:52]CAPDU: 80 13 00 00 [15:18:52]Write to MH i2c: E2 08 00 7F 01 80 13 00 00 00 00 00 00 FC [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:52]Read from MH i2c: E2 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 62 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 62 00 7F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 21 02 00 0E 04 04 00 C5 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 B4 [15:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 21 02 00 0E 04 04 00 C5 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 [15:18:52]wFMCommunicate OK [15:18:52]SAM_PROTO_GetFieldsCounters done [15:18:52]requested_item shift.num is exist - process it [15:18:52]requested_item shift.opened is exist - process it [15:18:52]req_shift_opened [15:18:52]FM_GetShiftState [15:18:52]SAM_PROTO_GetShiftState [15:18:52]wFMCommunicate request_size=4 [15:18:52]MH_SAM_APDU [15:18:52]CAPDU: 80 13 01 00 [15:18:52]Write to MH i2c: E2 08 00 80 01 80 13 01 00 00 00 00 00 FE [15:18:52]Write i2c OK [15:18:52]MH_I2C_Read... [15:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:52]Read from MH i2c: E2 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 0E 00 [15:18:52]MH_I2C_Read... [15:18:52]Read from MH i2c: E2 0E 00 80 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8F [15:18:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:18:52]wFMCommunicate OK [15:18:52]SAM_PROTO_GetShiftState done [15:18:52]FM_GetShiftState done [15:18:52]req_shift_opened done [15:18:52]requested_item shift.open_date is exist - process it [15:18:52]req_shift_open_date [15:18:52]req_shift_open_date done [15:18:52]produce_requested_data done [15:18:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139759,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:18:52]process_action_free close_receipt [15:18:52]json_value_free [15:18:52]json_value_free done [15:18:52]process_json_proto returns [15:18:52]Send response to host [15:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139759,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:18:52]free response buf [15:18:52]execute_script done [15:18:52]execute_script returns [15:18:52]free content buf [15:18:52]Sock 9.Close socket [15:18:52]Sock 9.Thread stoped [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]accept exits with 8 [15:19:36]New connection [15:19:36]New thread 3066649956 created [15:19:36]Thread 3066793316 joined [15:19:36]Waiting for new connection... [15:19:36] Sock 8.Parse request [15:19:36]Sock 8.Check first char [15:19:36]Sock 8.First char is OK [15:19:36]request: POST /json_proto HTTP/1.0 [15:19:36]Method: POST [15:19:36]URL: /json_proto [15:19:36]Method is POST - this is cgi request [15:19:36]url: /json_proto [15:19:36]query_string will be loaded in cgi processing [15:19:36]execute_cgi json_proto POST (null) [15:19:36]execute_cgi path=json_proto method=POST [15:19:36]POST find Content-Length [15:19:36]Host: 172.17.45.67:8080 [15:19:36]Content-Length: 677 [15:19:36]Content-Type: application/json [15:19:36] [15:19:36]POST finish read [15:19:36]Found Content-Length = 677 [15:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:36]execute_script... [15:19: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)593608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:36]POST & json_proto [15:19:36]process_json_proto [15:19:36]json parsed OK: [15:19:36]protocol is kg_v1.0 [15:19:36]action value=close_receipt [15:19:36]process_action close_receipt [15:19:36]cmd_close_receipt [15:19:36]MH_GetDate [15:19:36]Write to MH i2c: F0 00 00 81 01 71 [15:19:36]Write i2c OK [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: F0 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: F0 09 00 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: F0 09 00 81 01 00 08 B4 C4 66 5F 7F 2B 66 CF [15:19:36]GetLastDocTimeStamp 1724167129 [15:19:36]current date 1724167176 [15:19:36]FM_GetShiftState [15:19:36]SAM_PROTO_GetShiftState [15:19:36]wFMCommunicate request_size=4 [15:19:36]MH_SAM_APDU [15:19:36]CAPDU: 80 13 01 00 [15:19:36]Write to MH i2c: E2 08 00 82 01 80 13 01 00 00 00 00 00 00 [15:19:36]Write i2c OK [15:19:36]MH_I2C_Read... [15:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:36]Read from MH i2c: E2 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: E2 0E 00 [15:19:36]MH_I2C_Read... [15:19:36]Read from MH i2c: E2 0E 00 82 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 91 [15:19:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:19:36]wFMCommunicate OK [15:19:36]SAM_PROTO_GetShiftState done [15:19:36]FM_GetShiftState done [15:19:36]opened in 1724113785 [15:19:36]opened+sec_in_day 1724200185 [15:19:36]quantity*price = 60003 [15:19:36]sum+1 = 60004 [15:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 232 20.08.2024 15:19 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139760 ФПД: 29244567614994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151936&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139760&fm=29244567614994&tin=02508201610067®Number=0000000000092569&sum=60000 [15:19:37]StoreToDocumentArchive [15:19:37]shift 453 fd 139760 [15:19:37]save to /storage/0453/doc_00139760 [15:19:37]save last doc name /storage/0453/doc_00139760 to /storage/kkm_last_doc_name [15:19:37]save OK [15:19:37]Clear old archive folders... [15:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:37]tlvbuf is 00D03890 [15:19:37]SAM_PROTO_ClearQueue [15:19:37]wFMCommunicate request_size=4 [15:19:37]MH_SAM_APDU [15:19:37]CAPDU: 80 09 00 00 [15:19:37]Write to MH i2c: E2 08 00 8F 01 80 09 00 00 00 00 00 00 02 [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 03 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [15:19:37]RAPDU: 90 00 [15:19:37]wFMCommunicate OK [15:19:37]SAM_PROTO_ClearQueue done [15:19:37]KKMCreateOFDPacket [15:19:37]OFDProtocolAddRootSTLVToBuf [15:19:37]FM_MakeSignedData [15:19:37]FM_MakeSignedData [15:19:37]SAM_PROTO_SignData [15:19:37]wFMCommunicate request_size=4 [15:19:37]MH_SAM_APDU [15:19:37]CAPDU: 80 0D 01 02 [15:19:37]Write to MH i2c: E2 08 00 90 01 80 0D 01 02 00 00 00 00 0A [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 03 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [15:19:37]RAPDU: 90 00 [15:19:37]wFMCommunicate OK [15:19:37]wFMCommunicate request_size=255 [15:19:37]MH_SAM_APDU [15:19:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 08 B4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 21 02 00 35 04 06 00 1A [15:19:37]Write to MH i2c: E2 02 01 91 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 08 B4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 21 02 00 35 04 06 00 1A 00 00 1B [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 03 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [15:19:37]RAPDU: 90 00 [15:19:37]wFMCommunicate OK [15:19:37]wFMCommunicate request_size=10 [15:19:37]MH_SAM_APDU [15:19:37]CAPDU: 80 0D 02 02 05 99 08 10 76 12 [15:19:37]Write to MH i2c: E2 0D 00 92 01 80 0D 02 02 05 00 99 08 10 76 12 00 00 50 [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 03 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [15:19:37]RAPDU: 90 00 [15:19:37]wFMCommunicate OK [15:19:37]wFMCommunicate request_size=4 [15:19:37]MH_SAM_APDU [15:19:37]CAPDU: 80 0D 03 02 [15:19:37]Write to MH i2c: E2 08 00 93 01 80 0D 03 02 00 00 00 00 0F [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 0B 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 0B 00 93 01 00 28 63 69 94 83 06 D6 0D 90 00 04 [15:19:37]RAPDU: 28 63 69 94 83 06 D6 0D 90 00 [15:19:37]wFMCommunicate OK [15:19:37]SAM_PROTO_SignData done [15:19:37]FM_MakeSignedData done [15:19:37]CreateOFDProtocolMessage [15:19:37]wFMCommunicate request_size=4 [15:19:37]MH_SAM_APDU [15:19:37]CAPDU: 80 11 00 00 [15:19:37]Write to MH i2c: E2 08 00 94 01 80 11 00 00 00 00 00 00 0F [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:37]Read from MH i2c: E2 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 17 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 66 [15:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:19:37]wFMCommunicate OK [15:19:37]CreateOFDProtocolMessage done [15:19:37]OFDSenderStorePacket 139760 [15:19:37]StoreOFDPacket docnum=139760 [15:19:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4F 27 07 01 78 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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 08 B4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 21 02 00 35 04 06 00 1A 99 08 10 76 12 28 63 69 94 83 06 D6 0D [15:19:37]CheckFolder [15:19:37]dirname=/storage/ofd_packets [15:19:37]CheckFolder done [15:19:37]ProducePacketName [15:19:37]name=ofd_packets/00139760 [15:19:37]NVStorageSaveData ofd_packets/00139760 [15:19:37]File name is /storage/ofd_packets/00139760 [15:19:37]Write 301 bytes [15:19:37]NVStorageSaveData done [15:19:37]OFDSenderStorePacket done [15:19:37]KKMCreateOFDPacket done [15:19:37]NVStorageSaveData kkm_last_timestamp [15:19:37]File name is /storage/kkm_last_timestamp [15:19:37]Write 4 bytes [15:19:37]NVStorageSaveData done [15:19:37]ExternCall_PrintAddStr [15:19:37]wPrintStart [15:19:37]Write to MH i2c: 01 00 00 95 01 96 [15:19:37]Write i2c OK [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: 01 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: 01 07 00 [15:19:37]MH_I2C_Read... [15:19:37]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 FF 0F AB [15:19:37]RasterBufferAndPrint [15:19:37]line Счет N : (1)593608 [15:19:37]line ИНН: 02508201610067 [15:19:37]line Контрольно-Кассовый Чек [15:19:37]line ПРОДАЖА [15:19:37]line ТРК (МРК, ГНК) : 52 [15:19:37]line Товар: 2710124130 [15:19:37]line Аи-92-К-5 [15:19:37]line 8.850 * 67.80 [15:19:37]line = 600.03 [15:19:37]line НДС 12% НСП 1% [15:19:37]line > о реализуемом товаре [15:19:37]line ОКРУГЛЕНИЕ: -0.03 [15:19:37]line ИТОГО: 600.00 [15:19:37]line Внесено: 600.00 [15:19:37]line СДАЧА: 0.00 [15:19:37]line НСП 1% : 5.31 [15:19:37]line НДС 12% : 63.72 [15:19:37]line Наличными: 600.00 [15:19:37]line Безнал.: 0.00 [15:19:37]line Место: АЗС № 136 "Партнер Нефть" [15:19:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:19:37]line СНО: Общий режим [15:19:37]line Чек 232 20.08.2024 15:19 [15:19:37]line Смена: 453 ФФД: 1.0 [15:19:37]line ЗНМ: 0300000067 [15:19:37]line РНМ: 0000000000092569 [15:19:37]line Версия ККМ: 001 [15:19:37]line ФМ: 0000000000871776 [15:19:37]line ФД: 139760 [15:19:37]line ФПД: 29244567614994 [15:19:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T151936&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139760&fm=29244567614994&tin=02508201610067®Number=0000000000092569&sum=60000 [15:19:38]written 0, free lines is 4095 [15:19:38]OFD Sender: Processing packet 139760 [packets to send 137, broken 136] [15:19:38]ProducePacketName [15:19:38]name=ofd_packets/00139760 [15:19:38]OFD Sender: To server: pG, [15:19:38]CommunicateWithHost lk.salyk.kg:30040 [15:19:38]ConnectInit lk.salyk.kg [15:19:38]Connected sock=10 [15:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4F 27 07 01 78 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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 08 B4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 21 02 00 35 04 06 00 1A 99 08 10 76 12 28 63 69 94 83 06 D6 0D [15:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EC 72 47 00 BC 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 21 02 00 F4 03 04 00 9B 5A C4 66 B6 04 01 00 00 8A 39 80 3B 6F F2 59 08 [15:19:38]CommunicateWithHost err = 0 [15:19:38]CheckOFDResponse [15:19:38]1017 (14) - 77093643461234 [15:19:38]1041 (16) - 0000000000871776 [15:19:38]1040 (4) - 139760 [15:19:38]1012 (4) - 20.08.2024 08:58 [15:19:38]1206 (1) - 0 [15:19:38]OFD Sender: Remove packet 139760 [15:19:38]ProducePacketName [15:19:38]name=ofd_packets/00139760 [15:19:38]NVStorageDeleteData [15:19:38]Write to MH i2c: 01 00 00 C0 01 C1 [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: 01 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: 01 07 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 D1 0C A5 [15:19:38]RasterBufferAndPrint [15:19:38]line [15:19:38]line [15:19:38]line [15:19:38]line [15:19:38]line [15:19:38]written 0, free lines is 3289 [15:19:38]MH_Cut [15:19:38]Write to MH i2c: D1 01 00 C7 01 01 9A [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: D1 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: D1 01 00 [15:19:38]MH_I2C_Read... [15:19:38]Read from MH i2c: D1 01 00 C7 01 00 99 [15:19:38]Write to MH i2c: 01 00 00 C8 01 C9 [15:19:38]Write i2c OK [15:19:38]MH_I2C_Read... [15:19:39]OFD Sender: No OFD packet to send [15:19:39]*** Cut start [15:19:39]*** Partial cut [15:19:39]*** CUTSNS_PIN = 1 [15:19:39]*** CUTSNS_PIN = 0 [15:19:39]*** Brake cut motor [15:19:40]Read from MH i2c: 01 [15:19:40]MH_I2C_Read... [15:19:40]*** Stop cut motor [15:19:40]*** Cut end [15:19:40]Read from MH i2c: 01 07 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: 01 07 00 C8 01 00 00 00 00 00 FF 0F DE [15:19:40]process_action close_receipt done [15:19:40]requested_data is exist [15:19:40]produce_requested_data [15:19:40]requested_item fm.sn is exist - process it [15:19:40]wFMCommunicate request_size=4 [15:19:40]MH_SAM_APDU [15:19:40]CAPDU: 80 11 00 00 [15:19:40]Write to MH i2c: E2 08 00 C9 01 80 11 00 00 00 00 00 00 44 [15:19:40]Write i2c OK [15:19:40]MH_I2C_Read... [15:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:40]Read from MH i2c: E2 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 17 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 17 00 C9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [15:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:19:40]wFMCommunicate OK [15:19:40]requested_item fd.num is exist - process it [15:19:40]SAM_PROTO_GetFieldsCounters [15:19:40]wFMCommunicate request_size=4 [15:19:40]MH_SAM_APDU [15:19:40]CAPDU: 80 13 00 00 [15:19:40]Write to MH i2c: E2 08 00 CA 01 80 13 00 00 00 00 00 00 47 [15:19:40]Write i2c OK [15:19:40]MH_I2C_Read... [15:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:40]Read from MH i2c: E2 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 62 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 62 00 CA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 21 02 00 0E 04 04 00 C5 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 03 [15:19:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 21 02 00 0E 04 04 00 C5 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 [15:19:40]wFMCommunicate OK [15:19:40]SAM_PROTO_GetFieldsCounters done [15:19:40]requested_item shift.num is exist - process it [15:19:40]requested_item shift.opened is exist - process it [15:19:40]req_shift_opened [15:19:40]FM_GetShiftState [15:19:40]SAM_PROTO_GetShiftState [15:19:40]wFMCommunicate request_size=4 [15:19:40]MH_SAM_APDU [15:19:40]CAPDU: 80 13 01 00 [15:19:40]Write to MH i2c: E2 08 00 CB 01 80 13 01 00 00 00 00 00 49 [15:19:40]Write i2c OK [15:19:40]MH_I2C_Read... [15:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:40]Read from MH i2c: E2 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 0E 00 [15:19:40]MH_I2C_Read... [15:19:40]Read from MH i2c: E2 0E 00 CB 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DA [15:19:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:19:40]wFMCommunicate OK [15:19:40]SAM_PROTO_GetShiftState done [15:19:40]FM_GetShiftState done [15:19:40]req_shift_opened done [15:19:40]requested_item shift.open_date is exist - process it [15:19:40]req_shift_open_date [15:19:40]req_shift_open_date done [15:19:40]produce_requested_data done [15:19:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139760,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:19:40]process_action_free close_receipt [15:19:40]json_value_free [15:19:40]json_value_free done [15:19:40]process_json_proto returns [15:19:40]Send response to host [15:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139760,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:19:40]free response buf [15:19:40]execute_script done [15:19:40]execute_script returns [15:19:40]free content buf [15:19:40]Sock 8.Close socket [15:19:40]Sock 8.Thread stoped [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:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:43]accept exits with 9 [15:25:43]New connection [15:25:43]New thread 3066793316 created [15:25:43]Thread 3066649956 joined [15:25:43]Waiting for new connection... [15:25:43] Sock 9.Parse request [15:25:43]Sock 9.Check first char [15:25:43]Sock 9.First char is OK [15:25:43]request: POST /json_proto HTTP/1.0 [15:25:43]Method: POST [15:25:43]URL: /json_proto [15:25:43]Method is POST - this is cgi request [15:25:43]url: /json_proto [15:25:43]query_string will be loaded in cgi processing [15:25:43]execute_cgi json_proto POST (null) [15:25:43]execute_cgi path=json_proto method=POST [15:25:43]POST find Content-Length [15:25:43]Host: 172.17.45.67:8080 [15:25:43]Content-Length: 677 [15:25:43]Content-Type: application/json [15:25:43] [15:25:43]POST finish read [15:25:43]Found Content-Length = 677 [15:25:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:43]execute_script... [15:25: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)593609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:43]POST & json_proto [15:25:43]process_json_proto [15:25:43]json parsed OK: [15:25:43]protocol is kg_v1.0 [15:25:43]action value=close_receipt [15:25:43]process_action close_receipt [15:25:43]cmd_close_receipt [15:25:43]MH_GetDate [15:25:43]Write to MH i2c: F0 00 00 CC 01 BC [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: F0 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: F0 09 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: F0 09 00 CC 01 00 77 B5 C4 66 5F 7F 2B 66 8A [15:25:43]GetLastDocTimeStamp 1724167176 [15:25:43]current date 1724167543 [15:25:43]FM_GetShiftState [15:25:43]SAM_PROTO_GetShiftState [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 13 01 00 [15:25:43]Write to MH i2c: E2 08 00 CD 01 80 13 01 00 00 00 00 00 4B [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0E 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0E 00 CD 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DC [15:25:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:25:43]wFMCommunicate OK [15:25:43]SAM_PROTO_GetShiftState done [15:25:43]FM_GetShiftState done [15:25:43]opened in 1724113785 [15:25:43]opened+sec_in_day 1724200185 [15:25:43]quantity*price = 60003 [15:25:43]sum+1 = 60004 [15:25:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 233 20.08.2024 15:25 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139761 ФПД: 78727558909385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T152543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139761&fm=78727558909385&tin=02508201610067®Number=0000000000092569&sum=60000 [15:25:44]StoreToDocumentArchive [15:25:44]shift 453 fd 139761 [15:25:44]save to /storage/0453/doc_00139761 [15:25:44]save last doc name /storage/0453/doc_00139761 to /storage/kkm_last_doc_name [15:25:44]save OK [15:25:44]Clear old archive folders... [15:25:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:44]tlvbuf is 00D0D1E0 [15:25:44]SAM_PROTO_ClearQueue [15:25:44]wFMCommunicate request_size=4 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 09 00 00 [15:25:44]Write to MH i2c: E2 08 00 DA 01 80 09 00 00 00 00 00 00 4D [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]OFD Sender: No OFD packet to send [15:25:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]SAM_PROTO_ClearQueue done [15:25:44]KKMCreateOFDPacket [15:25:44]OFDProtocolAddRootSTLVToBuf [15:25:44]FM_MakeSignedData [15:25:44]FM_MakeSignedData [15:25:44]SAM_PROTO_SignData [15:25:44]wFMCommunicate request_size=4 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 01 02 [15:25:44]Write to MH i2c: E2 08 00 DB 01 80 0D 01 02 00 00 00 00 55 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]wFMCommunicate request_size=255 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 77 B5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 21 02 00 35 04 06 00 47 [15:25:44]Write to MH i2c: E2 02 01 DC 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 77 B5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 21 02 00 35 04 06 00 47 00 00 05 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:44]Read from MH i2c: E2 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [15:25:44]RAPDU: 90 00 [15:25:44]wFMCommunicate OK [15:25:44]wFMCommunicate request_size=10 [15:25:44]MH_SAM_APDU [15:25:44]CAPDU: 80 0D 02 02 05 9A 30 2E CD C9 [15:25:44]Write to MH i2c: E2 0D 00 DD 01 80 0D 02 02 05 00 9A 30 2E CD C9 00 00 F0 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 03 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [15:25:45]RAPDU: 90 00 [15:25:45]wFMCommunicate OK [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 0D 03 02 [15:25:45]Write to MH i2c: E2 08 00 DE 01 80 0D 03 02 00 00 00 00 5A [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0B 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0B 00 DE 01 00 1B 2A C2 03 44 CE F0 9A 90 00 01 [15:25:45]RAPDU: 1B 2A C2 03 44 CE F0 9A 90 00 [15:25:45]wFMCommunicate OK [15:25:45]SAM_PROTO_SignData done [15:25:45]FM_MakeSignedData done [15:25:45]CreateOFDProtocolMessage [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 11 00 00 [15:25:45]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 17 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B1 [15:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:25:45]wFMCommunicate OK [15:25:45]CreateOFDProtocolMessage done [15:25:45]OFDSenderStorePacket 139761 [15:25:45]StoreOFDPacket docnum=139761 [15:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9E 12 07 01 75 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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 77 B5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 21 02 00 35 04 06 00 47 9A 30 2E CD C9 1B 2A C2 03 44 CE F0 9A [15:25:45]CheckFolder [15:25:45]dirname=/storage/ofd_packets [15:25:45]CheckFolder done [15:25:45]ProducePacketName [15:25:45]name=ofd_packets/00139761 [15:25:45]NVStorageSaveData ofd_packets/00139761 [15:25:45]File name is /storage/ofd_packets/00139761 [15:25:45]Write 301 bytes [15:25:45]NVStorageSaveData done [15:25:45]OFDSenderStorePacket done [15:25:45]KKMCreateOFDPacket done [15:25:45]NVStorageSaveData kkm_last_timestamp [15:25:45]File name is /storage/kkm_last_timestamp [15:25:45]Write 4 bytes [15:25:45]NVStorageSaveData done [15:25:45]ExternCall_PrintAddStr [15:25:45]wPrintStart [15:25:45]Write to MH i2c: 01 00 00 E0 01 E1 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [15:25:45]RasterBufferAndPrint [15:25:45]line Счет N : (1)593609 [15:25:45]line ИНН: 02508201610067 [15:25:45]line Контрольно-Кассовый Чек [15:25:45]line ПРОДАЖА [15:25:45]line ТРК (МРК, ГНК) : 62 [15:25:45]line Товар: 2710124130 [15:25:45]line Аи-92-К-5 [15:25:45]line 8.850 * 67.80 [15:25:45]line = 600.03 [15:25:45]line НДС 12% НСП 1% [15:25:45]line > о реализуемом товаре [15:25:45]line ОКРУГЛЕНИЕ: -0.03 [15:25:45]line ИТОГО: 600.00 [15:25:45]line Внесено: 600.00 [15:25:45]line СДАЧА: 0.00 [15:25:45]line НСП 1% : 5.31 [15:25:45]line НДС 12% : 63.72 [15:25:45]line Наличными: 600.00 [15:25:45]line Безнал.: 0.00 [15:25:45]line Место: АЗС № 136 "Партнер Нефть" [15:25:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:25:45]line СНО: Общий режим [15:25:45]line Чек 233 20.08.2024 15:25 [15:25:45]line Смена: 453 ФФД: 1.0 [15:25:45]line ЗНМ: 0300000067 [15:25:45]line РНМ: 0000000000092569 [15:25:45]line Версия ККМ: 001 [15:25:45]line ФМ: 0000000000871776 [15:25:45]line ФД: 139761 [15:25:45]line ФПД: 78727558909385 [15:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T152543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139761&fm=78727558909385&tin=02508201610067®Number=0000000000092569&sum=60000 [15:25:45]OFD Sender: Processing packet 139761 [packets to send 137, broken 136] [15:25:45]ProducePacketName [15:25:45]name=ofd_packets/00139761 [15:25:45]OFD Sender: To server: pG, [15:25:45]CommunicateWithHost lk.salyk.kg:30040 [15:25:45]ConnectInit lk.salyk.kg [15:25:45]written 0, free lines is 4095 [15:25:45]Connected sock=8 [15:25:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9E 12 07 01 75 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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 77 B5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 21 02 00 35 04 06 00 47 9A 30 2E CD C9 1B 2A C2 03 44 CE F0 9A [15:25:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 63 31 47 00 A1 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 21 02 00 F4 03 04 00 0A 5C C4 66 B6 04 01 00 00 03 57 FA 0C C6 30 01 2D [15:25:45]CommunicateWithHost err = 0 [15:25:45]CheckOFDResponse [15:25:45]1017 (14) - 77093643461234 [15:25:45]1041 (16) - 0000000000871776 [15:25:45]1040 (4) - 139761 [15:25:45]1012 (4) - 20.08.2024 09:04 [15:25:45]1206 (1) - 0 [15:25:45]OFD Sender: Remove packet 139761 [15:25:45]ProducePacketName [15:25:45]name=ofd_packets/00139761 [15:25:45]NVStorageDeleteData [15:25:45]Write to MH i2c: 01 00 00 0B 02 0D [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 D0 0C F0 [15:25:45]RasterBufferAndPrint [15:25:45]line [15:25:45]line [15:25:45]line [15:25:45]line [15:25:45]line [15:25:45]written 0, free lines is 3287 [15:25:45]MH_Cut [15:25:45]Write to MH i2c: D1 01 00 12 02 01 E6 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: D1 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: D1 01 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: D1 01 00 12 02 00 E5 [15:25:45]Write to MH i2c: 01 00 00 13 02 15 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:46]OFD Sender: No OFD packet to send [15:25:46]*** Cut start [15:25:46]*** Partial cut [15:25:46]*** CUTSNS_PIN = 1 [15:25:46]*** CUTSNS_PIN = 0 [15:25:46]*** Brake cut motor [15:25:47]Read from MH i2c: 01 [15:25:47]MH_I2C_Read... [15:25:47]*** Stop cut motor [15:25:47]*** Cut end [15:25:47]Read from MH i2c: 01 07 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 FF 0F 2A [15:25:47]process_action close_receipt done [15:25:47]requested_data is exist [15:25:47]produce_requested_data [15:25:47]requested_item fm.sn is exist - process it [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 11 00 00 [15:25:47]Write to MH i2c: E2 08 00 14 02 80 11 00 00 00 00 00 00 90 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 17 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 17 00 14 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E7 [15:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:25:47]wFMCommunicate OK [15:25:47]requested_item fd.num is exist - process it [15:25:47]SAM_PROTO_GetFieldsCounters [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 13 00 00 [15:25:47]Write to MH i2c: E2 08 00 15 02 80 13 00 00 00 00 00 00 93 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 62 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 62 00 15 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F1 21 02 00 0E 04 04 00 C5 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 53 [15:25:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F1 21 02 00 0E 04 04 00 C5 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 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_GetFieldsCounters done [15:25:47]requested_item shift.num is exist - process it [15:25:47]requested_item shift.opened is exist - process it [15:25:47]req_shift_opened [15:25:47]FM_GetShiftState [15:25:47]SAM_PROTO_GetShiftState [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 13 01 00 [15:25:47]Write to MH i2c: E2 08 00 16 02 80 13 01 00 00 00 00 00 95 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0E 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0E 00 16 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 26 [15:25:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_GetShiftState done [15:25:47]FM_GetShiftState done [15:25:47]req_shift_opened done [15:25:47]requested_item shift.open_date is exist - process it [15:25:47]req_shift_open_date [15:25:47]req_shift_open_date done [15:25:47]produce_requested_data done [15:25:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139761,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:25:47]process_action_free close_receipt [15:25:47]json_value_free [15:25:47]json_value_free done [15:25:47]process_json_proto returns [15:25:47]Send response to host [15:25:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139761,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:25:47]free response buf [15:25:47]execute_script done [15:25:47]execute_script returns [15:25:47]free content buf [15:25:47]Sock 9.Close socket [15:25:47]Sock 9.Thread stoped [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:30]accept exits with 10 [15:26:30]New connection [15:26:30]New thread 3066649956 created [15:26:30]Thread 3066793316 joined [15:26:30]Waiting for new connection... [15:26:30] Sock 10.Parse request [15:26:30]Sock 10.Check first char [15:26:30]Sock 10.First char is OK [15:26:30]request: POST /json_proto HTTP/1.0 [15:26:30]Method: POST [15:26:30]URL: /json_proto [15:26:30]Method is POST - this is cgi request [15:26:30]url: /json_proto [15:26:30]query_string will be loaded in cgi processing [15:26:30]execute_cgi json_proto POST (null) [15:26:30]execute_cgi path=json_proto method=POST [15:26:30]POST find Content-Length [15:26:30]Host: 172.17.45.67:8080 [15:26:30]Content-Length: 682 [15:26:30]Content-Type: application/json [15:26:30] [15:26:30]POST finish read [15:26:30]Found Content-Length = 682 [15:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:30]execute_script... [15:26: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)593610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:30]POST & json_proto [15:26:30]process_json_proto [15:26:30]json parsed OK: [15:26:30]protocol is kg_v1.0 [15:26:30]action value=close_receipt [15:26:30]process_action close_receipt [15:26:30]cmd_close_receipt [15:26:30]MH_GetDate [15:26:30]Write to MH i2c: F0 00 00 17 02 08 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: F0 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: F0 09 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: F0 09 00 17 02 00 A7 B5 C4 66 5F 7F 2B 66 06 [15:26:30]GetLastDocTimeStamp 1724167543 [15:26:30]current date 1724167591 [15:26:30]FM_GetShiftState [15:26:30]SAM_PROTO_GetShiftState [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 13 01 00 [15:26:30]Write to MH i2c: E2 08 00 18 02 80 13 01 00 00 00 00 00 97 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0E 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0E 00 18 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 28 [15:26:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:26:30]wFMCommunicate OK [15:26:30]SAM_PROTO_GetShiftState done [15:26:30]FM_GetShiftState done [15:26:30]opened in 1724113785 [15:26:30]opened+sec_in_day 1724200185 [15:26:30]quantity*price = 120006 [15:26:30]sum+1 = 120007 [15:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 234 20.08.2024 15:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139762 ФПД: 11623504590282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T152631&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139762&fm=11623504590282&tin=02508201610067®Number=0000000000092569&sum=120000 [15:26:31]StoreToDocumentArchive [15:26:31]shift 453 fd 139762 [15:26:31]save to /storage/0453/doc_00139762 [15:26:31]save last doc name /storage/0453/doc_00139762 to /storage/kkm_last_doc_name [15:26:31]save OK [15:26:31]Clear old archive folders... [15:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:31]tlvbuf is 00CDF5E0 [15:26:31]SAM_PROTO_ClearQueue [15:26:31]wFMCommunicate request_size=4 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 09 00 00 [15:26:31]Write to MH i2c: E2 08 00 25 02 80 09 00 00 00 00 00 00 99 [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [15:26:31]RAPDU: 90 00 [15:26:31]wFMCommunicate OK [15:26:31]SAM_PROTO_ClearQueue done [15:26:31]KKMCreateOFDPacket [15:26:31]OFDProtocolAddRootSTLVToBuf [15:26:31]FM_MakeSignedData [15:26:31]FM_MakeSignedData [15:26:31]SAM_PROTO_SignData [15:26:31]wFMCommunicate request_size=4 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 0D 01 02 [15:26:31]Write to MH i2c: E2 08 00 26 02 80 0D 01 02 00 00 00 00 A1 [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 [15:26:31]MH_I2C_Read... [15:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:31]Read from MH i2c: E2 03 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [15:26:31]RAPDU: 90 00 [15:26:31]wFMCommunicate OK [15:26:31]wFMCommunicate request_size=255 [15:26:31]MH_SAM_APDU [15:26:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 A7 B5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 21 02 00 35 04 06 00 0A [15:26:31]Write to MH i2c: E2 02 01 27 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 A7 B5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 21 02 00 35 04 06 00 0A 00 00 F1 [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:32]Read from MH i2c: E2 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 03 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [15:26:32]RAPDU: 90 00 [15:26:32]wFMCommunicate OK [15:26:32]wFMCommunicate request_size=10 [15:26:32]MH_SAM_APDU [15:26:32]CAPDU: 80 0D 02 02 05 92 4E DC B5 CA [15:26:32]Write to MH i2c: E2 0D 00 28 02 80 0D 02 02 05 00 92 4E DC B5 CA 00 00 E9 [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:32]Read from MH i2c: E2 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 03 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [15:26:32]RAPDU: 90 00 [15:26:32]wFMCommunicate OK [15:26:32]wFMCommunicate request_size=4 [15:26:32]MH_SAM_APDU [15:26:32]CAPDU: 80 0D 03 02 [15:26:32]Write to MH i2c: E2 08 00 29 02 80 0D 03 02 00 00 00 00 A6 [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:32]Read from MH i2c: E2 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0B 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0B 00 29 02 00 9F E7 87 3A E9 BE AD 07 90 00 49 [15:26:32]RAPDU: 9F E7 87 3A E9 BE AD 07 90 00 [15:26:32]wFMCommunicate OK [15:26:32]SAM_PROTO_SignData done [15:26:32]FM_MakeSignedData done [15:26:32]CreateOFDProtocolMessage [15:26:32]wFMCommunicate request_size=4 [15:26:32]MH_SAM_APDU [15:26:32]CAPDU: 80 11 00 00 [15:26:32]Write to MH i2c: E2 08 00 2A 02 80 11 00 00 00 00 00 00 A6 [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:32]Read from MH i2c: E2 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 17 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 17 00 2A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FD [15:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:26:32]wFMCommunicate OK [15:26:32]CreateOFDProtocolMessage done [15:26:32]OFDSenderStorePacket 139762 [15:26:32]StoreOFDPacket docnum=139762 [15:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 64 CC 07 01 46 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 A7 B5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 21 02 00 35 04 06 00 0A 92 4E DC B5 CA 9F E7 87 3A E9 BE AD 07 [15:26:32]CheckFolder [15:26:32]dirname=/storage/ofd_packets [15:26:32]CheckFolder done [15:26:32]ProducePacketName [15:26:32]name=ofd_packets/00139762 [15:26:32]NVStorageSaveData ofd_packets/00139762 [15:26:32]File name is /storage/ofd_packets/00139762 [15:26:32]Write 301 bytes [15:26:32]NVStorageSaveData done [15:26:32]OFDSenderStorePacket done [15:26:32]KKMCreateOFDPacket done [15:26:32]NVStorageSaveData kkm_last_timestamp [15:26:32]File name is /storage/kkm_last_timestamp [15:26:32]Write 4 bytes [15:26:32]NVStorageSaveData done [15:26:32]ExternCall_PrintAddStr [15:26:32]wPrintStart [15:26:32]Write to MH i2c: 01 00 00 2B 02 2D [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: 01 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: 01 07 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [15:26:32]RasterBufferAndPrint [15:26:32]line Счет N : (1)593610 [15:26:32]line ИНН: 02508201610067 [15:26:32]line Контрольно-Кассовый Чек [15:26:32]line ПРОДАЖА [15:26:32]line ТРК (МРК, ГНК) : 42 [15:26:32]line Товар: 2710124130 [15:26:32]line Аи-92-К-5 [15:26:32]line 17.700 * 67.80 [15:26:32]line = 1200.06 [15:26:32]line НДС 12% НСП 1% [15:26:32]line > о реализуемом товаре [15:26:32]line ОКРУГЛЕНИЕ: -0.06 [15:26:32]line ИТОГО: 1200.00 [15:26:32]line Внесено: 1200.00 [15:26:32]line СДАЧА: 0.00 [15:26:32]line НСП 1% : 10.62 [15:26:32]line НДС 12% : 127.44 [15:26:32]line Наличными: 1200.00 [15:26:32]line Безнал.: 0.00 [15:26:32]line Место: АЗС № 136 "Партнер Нефть" [15:26:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:26:32]line СНО: Общий режим [15:26:32]line Чек 234 20.08.2024 15:26 [15:26:32]line Смена: 453 ФФД: 1.0 [15:26:32]line ЗНМ: 0300000067 [15:26:32]line РНМ: 0000000000092569 [15:26:32]line Версия ККМ: 001 [15:26:32]line ФМ: 0000000000871776 [15:26:32]line ФД: 139762 [15:26:32]line ФПД: 11623504590282 [15:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T152631&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139762&fm=11623504590282&tin=02508201610067®Number=0000000000092569&sum=120000 [15:26:32]OFD Sender: Processing packet 139762 [packets to send 137, broken 136] [15:26:32]ProducePacketName [15:26:32]name=ofd_packets/00139762 [15:26:32]OFD Sender: To server: pG, [15:26:32]CommunicateWithHost lk.salyk.kg:30040 [15:26:32]ConnectInit lk.salyk.kg [15:26:32]written 0, free lines is 4095 [15:26:32]Connected sock=9 [15:26:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 64 CC 07 01 46 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 A7 B5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 21 02 00 35 04 06 00 0A 92 4E DC B5 CA 9F E7 87 3A E9 BE AD 07 [15:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 29 63 47 00 39 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 21 02 00 F4 03 04 00 3A 5C C4 66 B6 04 01 00 00 27 F1 20 98 C0 27 DD 1C [15:26:33]CommunicateWithHost err = 0 [15:26:33]CheckOFDResponse [15:26:33]1017 (14) - 77093643461234 [15:26:33]1041 (16) - 0000000000871776 [15:26:33]1040 (4) - 139762 [15:26:33]1012 (4) - 20.08.2024 09:04 [15:26:33]1206 (1) - 0 [15:26:33]OFD Sender: Remove packet 139762 [15:26:33]ProducePacketName [15:26:33]name=ofd_packets/00139762 [15:26:33]NVStorageDeleteData [15:26:33]Write to MH i2c: 01 00 00 56 02 58 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 07 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 07 00 56 02 00 00 00 00 00 CF 0C 3A [15:26:33]RasterBufferAndPrint [15:26:33]line [15:26:33]line [15:26:33]line [15:26:33]line [15:26:33]line [15:26:33]written 0, free lines is 3284 [15:26:33]MH_Cut [15:26:33]Write to MH i2c: D1 01 00 5D 02 01 31 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: D1 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: D1 01 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: D1 01 00 5D 02 00 30 [15:26:33]Write to MH i2c: 01 00 00 5E 02 60 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]OFD Sender: No OFD packet to send [15:26:33]*** Cut start [15:26:33]*** Partial cut [15:26:33]*** CUTSNS_PIN = 1 [15:26:33]*** CUTSNS_PIN = 0 [15:26:34]*** Brake cut motor [15:26:34]Read from MH i2c: 01 [15:26:34]MH_I2C_Read... [15:26:34]*** Stop cut motor [15:26:34]*** Cut end [15:26:34]Read from MH i2c: 01 07 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 5E 02 00 00 00 00 00 FF 0F 75 [15:26:34]process_action close_receipt done [15:26:34]requested_data is exist [15:26:34]produce_requested_data [15:26:34]requested_item fm.sn is exist - process it [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 11 00 00 [15:26:34]Write to MH i2c: E2 08 00 5F 02 80 11 00 00 00 00 00 00 DB [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 17 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 17 00 5F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 32 [15:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:26:34]wFMCommunicate OK [15:26:34]requested_item fd.num is exist - process it [15:26:34]SAM_PROTO_GetFieldsCounters [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 13 00 00 [15:26:34]Write to MH i2c: E2 08 00 60 02 80 13 00 00 00 00 00 00 DE [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 62 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 62 00 60 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 21 02 00 0E 04 04 00 C5 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 A2 [15:26:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 21 02 00 0E 04 04 00 C5 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 [15:26:34]wFMCommunicate OK [15:26:34]SAM_PROTO_GetFieldsCounters done [15:26:34]requested_item shift.num is exist - process it [15:26:34]requested_item shift.opened is exist - process it [15:26:34]req_shift_opened [15:26:34]FM_GetShiftState [15:26:34]SAM_PROTO_GetShiftState [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 13 01 00 [15:26:34]Write to MH i2c: E2 08 00 61 02 80 13 01 00 00 00 00 00 E0 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0E 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0E 00 61 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 71 [15:26:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:26:34]wFMCommunicate OK [15:26:34]SAM_PROTO_GetShiftState done [15:26:34]FM_GetShiftState done [15:26:34]req_shift_opened done [15:26:34]requested_item shift.open_date is exist - process it [15:26:34]req_shift_open_date [15:26:34]req_shift_open_date done [15:26:34]produce_requested_data done [15:26:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139762,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:26:34]process_action_free close_receipt [15:26:34]json_value_free [15:26:34]json_value_free done [15:26:34]process_json_proto returns [15:26:34]Send response to host [15:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139762,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:26:34]free response buf [15:26:34]execute_script done [15:26:34]execute_script returns [15:26:34]free content buf [15:26:34]Sock 10.Close socket [15:26:34]Sock 10.Thread stoped [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]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:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:02]accept exits with 8 [15:30:02]New connection [15:30:02]New thread 3066793316 created [15:30:02]Thread 3066649956 joined [15:30:02]Waiting for new connection... [15:30:02] Sock 8.Parse request [15:30:02]Sock 8.Check first char [15:30:02]Sock 8.First char is OK [15:30:02]request: POST /json_proto HTTP/1.0 [15:30:02]Method: POST [15:30:02]URL: /json_proto [15:30:02]Method is POST - this is cgi request [15:30:02]url: /json_proto [15:30:02]query_string will be loaded in cgi processing [15:30:02]execute_cgi json_proto POST (null) [15:30:02]execute_cgi path=json_proto method=POST [15:30:02]POST find Content-Length [15:30:02]Host: 172.17.45.67:8080 [15:30:02]Content-Length: 682 [15:30:02]Content-Type: application/json [15:30:02] [15:30:02]POST finish read [15:30:02]Found Content-Length = 682 [15:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 29.650, "sum" : 2200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:02]execute_script... [15:30: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)593611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 29.650, "sum" : 2200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:02]POST & json_proto [15:30:02]process_json_proto [15:30:02]json parsed OK: [15:30:02]protocol is kg_v1.0 [15:30:02]action value=close_receipt [15:30:02]process_action close_receipt [15:30:02]cmd_close_receipt [15:30:02]MH_GetDate [15:30:02]Write to MH i2c: F0 00 00 62 02 53 [15:30:02]Write i2c OK [15:30:02]MH_I2C_Read... [15:30:02]Read from MH i2c: F0 [15:30:02]MH_I2C_Read... [15:30:02]Read from MH i2c: F0 09 00 [15:30:02]MH_I2C_Read... [15:30:02]Read from MH i2c: F0 09 00 62 02 00 7A B6 C4 66 5F 7F 2B 66 25 [15:30:02]GetLastDocTimeStamp 1724167591 [15:30:02]current date 1724167802 [15:30:02]FM_GetShiftState [15:30:02]SAM_PROTO_GetShiftState [15:30:02]wFMCommunicate request_size=4 [15:30:02]MH_SAM_APDU [15:30:02]CAPDU: 80 13 01 00 [15:30:02]Write to MH i2c: E2 08 00 63 02 80 13 01 00 00 00 00 00 E2 [15:30:02]Write i2c OK [15:30:02]MH_I2C_Read... [15:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:02]Read from MH i2c: E2 [15:30:02]MH_I2C_Read... [15:30:02]Read from MH i2c: E2 0E 00 [15:30:02]MH_I2C_Read... [15:30:02]Read from MH i2c: E2 0E 00 63 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 73 [15:30:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:30:02]wFMCommunicate OK [15:30:02]SAM_PROTO_GetShiftState done [15:30:02]FM_GetShiftState done [15:30:02]opened in 1724113785 [15:30:02]opened+sec_in_day 1724200185 [15:30:02]quantity*price = 220003 [15:30:02]sum+1 = 220004 [15:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 2200.00 Внесено: 2500.00 СДАЧА: 300.00 НСП 1% : 19.47 НДС 12% : 233.63 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 235 20.08.2024 15:30 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139763 ФПД: 236435427733954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139763&fm=236435427733954&tin=02508201610067®Number=0000000000092569&sum=220000 [15:30:03]StoreToDocumentArchive [15:30:03]shift 453 fd 139763 [15:30:03]save to /storage/0453/doc_00139763 [15:30:03]save last doc name /storage/0453/doc_00139763 to /storage/kkm_last_doc_name [15:30:03]save OK [15:30:03]Clear old archive folders... [15:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:03]tlvbuf is 00CDF4A0 [15:30:03]SAM_PROTO_ClearQueue [15:30:03]wFMCommunicate request_size=4 [15:30:03]MH_SAM_APDU [15:30:03]CAPDU: 80 09 00 00 [15:30:03]Write to MH i2c: E2 08 00 70 02 80 09 00 00 00 00 00 00 E4 [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:03]Read from MH i2c: E2 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [15:30:03]RAPDU: 90 00 [15:30:03]wFMCommunicate OK [15:30:03]SAM_PROTO_ClearQueue done [15:30:03]KKMCreateOFDPacket [15:30:03]OFDProtocolAddRootSTLVToBuf [15:30:03]FM_MakeSignedData [15:30:03]FM_MakeSignedData [15:30:03]SAM_PROTO_SignData [15:30:03]wFMCommunicate request_size=4 [15:30:03]MH_SAM_APDU [15:30:03]CAPDU: 80 0D 01 02 [15:30:03]Write to MH i2c: E2 08 00 71 02 80 0D 01 02 00 00 00 00 EC [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:03]Read from MH i2c: E2 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 [15:30:03]MH_I2C_Read... [15:30:03]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [15:30:03]RAPDU: 90 00 [15:30:03]wFMCommunicate OK [15:30:03]wFMCommunicate request_size=255 [15:30:03]MH_SAM_APDU [15:30:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 7A B6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 21 02 00 35 04 06 00 D7 [15:30:03]Write to MH i2c: E2 02 01 72 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 7A B6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 21 02 00 35 04 06 00 D7 00 00 D6 [15:30:03]Write i2c OK [15:30:03]MH_I2C_Read... [15:30:03]OFD Sender: No OFD packet to send [15:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:04]Read from MH i2c: E2 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 03 00 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [15:30:04]RAPDU: 90 00 [15:30:04]wFMCommunicate OK [15:30:04]wFMCommunicate request_size=10 [15:30:04]MH_SAM_APDU [15:30:04]CAPDU: 80 0D 02 02 05 09 69 AE B1 C2 [15:30:04]Write to MH i2c: E2 0D 00 73 02 80 0D 02 02 05 00 09 69 AE B1 C2 00 00 8C [15:30:04]Write i2c OK [15:30:04]MH_I2C_Read... [15:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:04]Read from MH i2c: E2 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 03 00 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 03 00 73 02 00 90 00 E9 [15:30:04]RAPDU: 90 00 [15:30:04]wFMCommunicate OK [15:30:04]wFMCommunicate request_size=4 [15:30:04]MH_SAM_APDU [15:30:04]CAPDU: 80 0D 03 02 [15:30:04]Write to MH i2c: E2 08 00 74 02 80 0D 03 02 00 00 00 00 F1 [15:30:04]Write i2c OK [15:30:04]MH_I2C_Read... [15:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:04]Read from MH i2c: E2 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 0B 00 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 0B 00 74 02 00 B7 65 13 AA F4 8B 54 49 90 00 E7 [15:30:04]RAPDU: B7 65 13 AA F4 8B 54 49 90 00 [15:30:04]wFMCommunicate OK [15:30:04]SAM_PROTO_SignData done [15:30:04]FM_MakeSignedData done [15:30:04]CreateOFDProtocolMessage [15:30:04]wFMCommunicate request_size=4 [15:30:04]MH_SAM_APDU [15:30:04]CAPDU: 80 11 00 00 [15:30:04]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [15:30:04]Write i2c OK [15:30:04]MH_I2C_Read... [15:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:04]Read from MH i2c: E2 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 17 00 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 48 [15:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:30:04]wFMCommunicate OK [15:30:04]CreateOFDProtocolMessage done [15:30:04]OFDSenderStorePacket 139763 [15:30:04]StoreOFDPacket docnum=139763 [15:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E7 10 07 01 8A 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 7A B6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 21 02 00 35 04 06 00 D7 09 69 AE B1 C2 B7 65 13 AA F4 8B 54 49 [15:30:04]CheckFolder [15:30:04]dirname=/storage/ofd_packets [15:30:04]CheckFolder done [15:30:04]ProducePacketName [15:30:04]name=ofd_packets/00139763 [15:30:04]NVStorageSaveData ofd_packets/00139763 [15:30:04]File name is /storage/ofd_packets/00139763 [15:30:04]Write 301 bytes [15:30:04]NVStorageSaveData done [15:30:04]OFDSenderStorePacket done [15:30:04]KKMCreateOFDPacket done [15:30:04]NVStorageSaveData kkm_last_timestamp [15:30:04]File name is /storage/kkm_last_timestamp [15:30:04]Write 4 bytes [15:30:04]NVStorageSaveData done [15:30:04]ExternCall_PrintAddStr [15:30:04]wPrintStart [15:30:04]Write to MH i2c: 01 00 00 76 02 78 [15:30:04]Write i2c OK [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: 01 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: 01 07 00 [15:30:04]MH_I2C_Read... [15:30:04]Read from MH i2c: 01 07 00 76 02 00 00 00 00 00 FF 0F 8D [15:30:04]RasterBufferAndPrint [15:30:04]line Счет N : (1)593611 [15:30:04]line ИНН: 02508201610067 [15:30:04]line Контрольно-Кассовый Чек [15:30:04]line ПРОДАЖА [15:30:04]line ТРК (МРК, ГНК) : 41 [15:30:04]line Товар: 2710124500 [15:30:04]line Аи-95-К-5 [15:30:04]line 29.650 * 74.20 [15:30:04]line = 2200.03 [15:30:04]line НДС 12% НСП 1% [15:30:04]line > о реализуемом товаре [15:30:04]line ОКРУГЛЕНИЕ: -0.03 [15:30:04]line ИТОГО: 2200.00 [15:30:04]line Внесено: 2500.00 [15:30:04]line СДАЧА: 300.00 [15:30:04]line НСП 1% : 19.47 [15:30:04]line НДС 12% : 233.63 [15:30:04]line Наличными: 2200.00 [15:30:04]line Безнал.: 0.00 [15:30:04]line Место: АЗС № 136 "Партнер Нефть" [15:30:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:30:04]line СНО: Общий режим [15:30:04]line Чек 235 20.08.2024 15:30 [15:30:04]line Смена: 453 ФФД: 1.0 [15:30:04]line ЗНМ: 0300000067 [15:30:04]line РНМ: 0000000000092569 [15:30:04]line Версия ККМ: 001 [15:30:04]line ФМ: 0000000000871776 [15:30:04]line ФД: 139763 [15:30:04]line ФПД: 236435427733954 [15:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139763&fm=236435427733954&tin=02508201610067®Number=0000000000092569&sum=220000 [15:30:04]OFD Sender: Processing packet 139763 [packets to send 137, broken 136] [15:30:04]ProducePacketName [15:30:04]name=ofd_packets/00139763 [15:30:04]OFD Sender: To server: pG, [15:30:04]CommunicateWithHost lk.salyk.kg:30040 [15:30:04]ConnectInit lk.salyk.kg [15:30:04]written 0, free lines is 4095 [15:30:04]Connected sock=10 [15:30:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E7 10 07 01 8A 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 73 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 7A B6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 21 02 00 35 04 06 00 D7 09 69 AE B1 C2 B7 65 13 AA F4 8B 54 49 [15:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F8 03 47 00 48 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 21 02 00 F4 03 04 00 0D 5D C4 66 B6 04 01 00 00 4E 1B EC C2 85 6C 30 E7 [15:30:05]CommunicateWithHost err = 0 [15:30:05]CheckOFDResponse [15:30:05]1017 (14) - 77093643461234 [15:30:05]1041 (16) - 0000000000871776 [15:30:05]1040 (4) - 139763 [15:30:05]1012 (4) - 20.08.2024 09:08 [15:30:05]1206 (1) - 0 [15:30:05]OFD Sender: Remove packet 139763 [15:30:05]ProducePacketName [15:30:05]name=ofd_packets/00139763 [15:30:05]NVStorageDeleteData [15:30:05]Write to MH i2c: 01 00 00 A1 02 A3 [15:30:05]Write i2c OK [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: 01 [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: 01 07 00 [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 D8 0C 8E [15:30:05]RasterBufferAndPrint [15:30:05]line [15:30:05]line [15:30:05]line [15:30:05]line [15:30:05]line [15:30:05]written 0, free lines is 3296 [15:30:05]MH_Cut [15:30:05]Write to MH i2c: D1 01 00 A8 02 01 7C [15:30:05]Write i2c OK [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: D1 [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: D1 01 00 [15:30:05]MH_I2C_Read... [15:30:05]Read from MH i2c: D1 01 00 A8 02 00 7B [15:30:05]Write to MH i2c: 01 00 00 A9 02 AB [15:30:05]Write i2c OK [15:30:05]MH_I2C_Read... [15:30:05]OFD Sender: No OFD packet to send [15:30:05]*** Cut start [15:30:05]*** Partial cut [15:30:05]*** CUTSNS_PIN = 1 [15:30:05]*** CUTSNS_PIN = 0 [15:30:06]*** Brake cut motor [15:30:06]Read from MH i2c: 01 [15:30:06]MH_I2C_Read... [15:30:06]*** Stop cut motor [15:30:06]*** Cut end [15:30:06]Read from MH i2c: 01 07 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [15:30:06]process_action close_receipt done [15:30:06]requested_data is exist [15:30:06]produce_requested_data [15:30:06]requested_item fm.sn is exist - process it [15:30:06]wFMCommunicate request_size=4 [15:30:06]MH_SAM_APDU [15:30:06]CAPDU: 80 11 00 00 [15:30:06]Write to MH i2c: E2 08 00 AA 02 80 11 00 00 00 00 00 00 26 [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:06]Read from MH i2c: E2 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 17 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 17 00 AA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [15:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:30:06]wFMCommunicate OK [15:30:06]requested_item fd.num is exist - process it [15:30:06]SAM_PROTO_GetFieldsCounters [15:30:06]wFMCommunicate request_size=4 [15:30:06]MH_SAM_APDU [15:30:06]CAPDU: 80 13 00 00 [15:30:06]Write to MH i2c: E2 08 00 AB 02 80 13 00 00 00 00 00 00 29 [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:06]Read from MH i2c: E2 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 62 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 62 00 AB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 21 02 00 0E 04 04 00 C5 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 F1 [15:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 21 02 00 0E 04 04 00 C5 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 [15:30:06]wFMCommunicate OK [15:30:06]SAM_PROTO_GetFieldsCounters done [15:30:06]requested_item shift.num is exist - process it [15:30:06]requested_item shift.opened is exist - process it [15:30:06]req_shift_opened [15:30:06]FM_GetShiftState [15:30:06]SAM_PROTO_GetShiftState [15:30:06]wFMCommunicate request_size=4 [15:30:06]MH_SAM_APDU [15:30:06]CAPDU: 80 13 01 00 [15:30:06]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [15:30:06]Write i2c OK [15:30:06]MH_I2C_Read... [15:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:06]Read from MH i2c: E2 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 0E 00 [15:30:06]MH_I2C_Read... [15:30:06]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BC [15:30:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:30:06]wFMCommunicate OK [15:30:06]SAM_PROTO_GetShiftState done [15:30:06]FM_GetShiftState done [15:30:06]req_shift_opened done [15:30:06]requested_item shift.open_date is exist - process it [15:30:06]req_shift_open_date [15:30:06]req_shift_open_date done [15:30:06]produce_requested_data done [15:30:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139763,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:30:06]process_action_free close_receipt [15:30:06]json_value_free [15:30:06]json_value_free done [15:30:06]process_json_proto returns [15:30:06]Send response to host [15:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139763,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:30:06]free response buf [15:30:06]execute_script done [15:30:06]execute_script returns [15:30:06]free content buf [15:30:06]Sock 8.Close socket [15:30:06]Sock 8.Thread stoped [15:30:10]OFD Sender: No OFD packet to send [15:30:13]int [15:30:13]Write to MH i2c: 01 00 00 AD 02 AF [15:30:13]*** FLAG_PRN_KEY set [15:30:13]Write i2c OK [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 07 00 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 07 00 AD 02 00 08 00 00 00 FF 0F CC [15:30:13]state=0 [15:30:13]Key pressed [15:30:13]Feed [15:30:13]Write to MH i2c: D8 00 00 AE 02 87 [15:30:13]Write i2c OK [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: D8 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: D8 01 00 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: D8 01 00 AE 02 00 88 [15:30:13]int [15:30:13]Write to MH i2c: 01 00 00 AF 02 B1 [15:30:13]Write i2c OK [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 07 00 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 07 00 AF 02 00 48 00 00 00 3C 00 3C [15:30:13]state=2 [15:30:13]Key pressed [15:30:13]int [15:30:13]Write to MH i2c: 01 00 00 B0 02 B2 [15:30:13]*** FLAG_PRN_KEY reset [15:30:13]Write i2c OK [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 07 00 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 F9 0F C1 [15:30:13]state=2 [15:30:13]Stop feed [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:18]accept exits with 9 [15:36:18]New connection [15:36:18]New thread 3066649956 created [15:36:18]Thread 3066793316 joined [15:36:18]Waiting for new connection... [15:36:18] Sock 9.Parse request [15:36:18]Sock 9.Check first char [15:36:18]Sock 9.First char is OK [15:36:18]request: POST /json_proto HTTP/1.0 [15:36:18]Method: POST [15:36:18]URL: /json_proto [15:36:18]Method is POST - this is cgi request [15:36:18]url: /json_proto [15:36:18]query_string will be loaded in cgi processing [15:36:18]execute_cgi json_proto POST (null) [15:36:18]execute_cgi path=json_proto method=POST [15:36:18]POST find Content-Length [15:36:18]Host: 172.17.45.67:8080 [15:36:18]Content-Length: 753 [15:36:18]Content-Type: application/json [15:36:18] [15:36:18]POST finish read [15:36:18]Found Content-Length = 753 [15:36:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.370, "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\u000A30029054", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:18]execute_script... [15:36: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)593612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.370, "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\u000A30029054", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:18]POST & json_proto [15:36:18]process_json_proto [15:36:18]json parsed OK: [15:36:18]protocol is kg_v1.0 [15:36:18]action value=close_receipt [15:36:18]process_action close_receipt [15:36:18]cmd_close_receipt [15:36:18]MH_GetDate [15:36:18]Write to MH i2c: F0 00 00 B1 02 A2 [15:36:18]Write i2c OK [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: F0 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: F0 09 00 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: F0 09 00 B1 02 00 F3 B7 C4 66 5F 7F 2B 66 EE [15:36:18]GetLastDocTimeStamp 1724167802 [15:36:18]current date 1724168179 [15:36:18]FM_GetShiftState [15:36:18]SAM_PROTO_GetShiftState [15:36:18]wFMCommunicate request_size=4 [15:36:18]MH_SAM_APDU [15:36:18]CAPDU: 80 13 01 00 [15:36:18]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [15:36:18]Write i2c OK [15:36:18]MH_I2C_Read... [15:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:18]Read from MH i2c: E2 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 0E 00 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C2 [15:36:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:36:18]wFMCommunicate OK [15:36:18]SAM_PROTO_GetShiftState done [15:36:18]FM_GetShiftState done [15:36:18]opened in 1724113785 [15:36:18]opened+sec_in_day 1724200185 [15:36:18]quantity*price = 0 [15:36:18]sum+1 = 1 [15:36:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 236 20.08.2024 15:36 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30029054 ФМ: 0000000000871776 ФД: 139764 ФПД: 267166006817730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153619&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139764&fm=267166006817730&tin=02508201610067®Number=0000000000092569&sum=0 [15:36:20]StoreToDocumentArchive [15:36:20]shift 453 fd 139764 [15:36:20]save to /storage/0453/doc_00139764 [15:36:20]save last doc name /storage/0453/doc_00139764 to /storage/kkm_last_doc_name [15:36:20]save OK [15:36:20]Clear old archive folders... [15:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:20]tlvbuf is 00D0E7F0 [15:36:20]SAM_PROTO_ClearQueue [15:36:20]wFMCommunicate request_size=4 [15:36:20]MH_SAM_APDU [15:36:20]CAPDU: 80 09 00 00 [15:36:20]Write to MH i2c: E2 08 00 BF 02 80 09 00 00 00 00 00 00 33 [15:36:20]Write i2c OK [15:36:20]MH_I2C_Read... [15:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:20]Read from MH i2c: E2 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 03 00 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [15:36:20]RAPDU: 90 00 [15:36:20]wFMCommunicate OK [15:36:20]SAM_PROTO_ClearQueue done [15:36:20]KKMCreateOFDPacket [15:36:20]OFDProtocolAddRootSTLVToBuf [15:36:20]FM_MakeSignedData [15:36:20]FM_MakeSignedData [15:36:20]SAM_PROTO_SignData [15:36:20]wFMCommunicate request_size=4 [15:36:20]MH_SAM_APDU [15:36:20]CAPDU: 80 0D 01 02 [15:36:20]Write to MH i2c: E2 08 00 C0 02 80 0D 01 02 00 00 00 00 3B [15:36:20]Write i2c OK [15:36:20]MH_I2C_Read... [15:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:20]Read from MH i2c: E2 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 03 00 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [15:36:20]RAPDU: 90 00 [15:36:20]wFMCommunicate OK [15:36:20]wFMCommunicate request_size=255 [15:36:20]MH_SAM_APDU [15:36:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F3 B7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 21 02 00 35 04 06 00 F2 [15:36:20]Write to MH i2c: E2 02 01 C1 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F3 B7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 21 02 00 35 04 06 00 F2 00 00 C4 [15:36:20]Write i2c OK [15:36:20]MH_I2C_Read... [15:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:20]Read from MH i2c: E2 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 03 00 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [15:36:20]RAPDU: 90 00 [15:36:20]wFMCommunicate OK [15:36:20]wFMCommunicate request_size=10 [15:36:20]MH_SAM_APDU [15:36:20]CAPDU: 80 0D 02 02 05 FC 6E EE B3 C2 [15:36:20]Write to MH i2c: E2 0D 00 C2 02 80 0D 02 02 05 00 FC 6E EE B3 C2 00 00 15 [15:36:20]Write i2c OK [15:36:20]MH_I2C_Read... [15:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:20]Read from MH i2c: E2 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 03 00 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [15:36:20]RAPDU: 90 00 [15:36:20]wFMCommunicate OK [15:36:20]wFMCommunicate request_size=4 [15:36:20]MH_SAM_APDU [15:36:20]CAPDU: 80 0D 03 02 [15:36:20]Write to MH i2c: E2 08 00 C3 02 80 0D 03 02 00 00 00 00 40 [15:36:20]Write i2c OK [15:36:20]MH_I2C_Read... [15:36:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:20]Read from MH i2c: E2 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 0B 00 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 0B 00 C3 02 00 66 81 F8 73 31 B4 94 BC 90 00 C8 [15:36:20]RAPDU: 66 81 F8 73 31 B4 94 BC 90 00 [15:36:20]wFMCommunicate OK [15:36:20]SAM_PROTO_SignData done [15:36:20]FM_MakeSignedData done [15:36:20]CreateOFDProtocolMessage [15:36:20]wFMCommunicate request_size=4 [15:36:20]MH_SAM_APDU [15:36:20]CAPDU: 80 11 00 00 [15:36:20]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [15:36:20]Write i2c OK [15:36:20]MH_I2C_Read... [15:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:20]Read from MH i2c: E2 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 17 00 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [15:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:36:20]wFMCommunicate OK [15:36:20]CreateOFDProtocolMessage done [15:36:20]OFDSenderStorePacket 139764 [15:36:20]StoreOFDPacket docnum=139764 [15:36:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 1E 07 01 2B 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F3 B7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 21 02 00 35 04 06 00 F2 FC 6E EE B3 C2 66 81 F8 73 31 B4 94 BC [15:36:20]CheckFolder [15:36:20]dirname=/storage/ofd_packets [15:36:20]CheckFolder done [15:36:20]ProducePacketName [15:36:20]name=ofd_packets/00139764 [15:36:20]NVStorageSaveData ofd_packets/00139764 [15:36:20]File name is /storage/ofd_packets/00139764 [15:36:20]Write 301 bytes [15:36:20]NVStorageSaveData done [15:36:20]OFDSenderStorePacket done [15:36:20]KKMCreateOFDPacket done [15:36:20]NVStorageSaveData kkm_last_timestamp [15:36:20]File name is /storage/kkm_last_timestamp [15:36:20]Write 4 bytes [15:36:20]NVStorageSaveData done [15:36:20]ExternCall_PrintAddStr [15:36:20]wPrintStart [15:36:20]Write to MH i2c: 01 00 00 C5 02 C7 [15:36:20]Write i2c OK [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: 01 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: 01 07 00 [15:36:20]MH_I2C_Read... [15:36:20]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 FF 0F DC [15:36:20]RasterBufferAndPrint [15:36:20]line Счет N : (1)593612 [15:36:20]line ИНН: 02508201610067 [15:36:20]line Контрольно-Кассовый Чек [15:36:20]line ПРОДАЖА [15:36:20]line ТРК (МРК, ГНК) : 32 [15:36:20]line Товар: 2710124130 [15:36:20]line Аи-92-К-5 [15:36:20]line 7.370 * 0.00 [15:36:20]line = 0.00 [15:36:20]line НДС 12% НСП 1% [15:36:20]line > о реализуемом товаре [15:36:20]line ИТОГО: 0.00 [15:36:20]line НСП 1% : 0.00 [15:36:20]line НДС 12% : 0.00 [15:36:20]line Наличными: 0.00 [15:36:20]line Безнал.: 0.00 [15:36:20]line Место: АЗС № 136 "Партнер Нефть" [15:36:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:36:20]line СНО: Общий режим [15:36:20]line Чек 236 20.08.2024 15:36 [15:36:20]line Смена: 453 ФФД: 1.0 [15:36:20]line ЗНМ: 0300000067 [15:36:20]line РНМ: 0000000000092569 [15:36:20]line Версия ККМ: 001 [15:36:20]line Талоны: ТК ГПНА Online [15:36:20]line 30029054 [15:36:20]line ФМ: 0000000000871776 [15:36:20]line ФД: 139764 [15:36:20]line ФПД: 267166006817730 [15:36:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153619&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139764&fm=267166006817730&tin=02508201610067®Number=0000000000092569&sum=0 [15:36:20]written 0, free lines is 4095 [15:36:20]OFD Sender: Processing packet 139764 [packets to send 137, broken 136] [15:36:20]ProducePacketName [15:36:20]name=ofd_packets/00139764 [15:36:20]OFD Sender: To server: pG, [15:36:20]CommunicateWithHost lk.salyk.kg:30040 [15:36:20]ConnectInit lk.salyk.kg [15:36:20]Connected sock=10 [15:36:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 1E 07 01 2B 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 F3 B7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 21 02 00 35 04 06 00 F2 FC 6E EE B3 C2 66 81 F8 73 31 B4 94 BC [15:36:21]Write to MH i2c: 01 00 00 EF 02 F1 [15:36:21]Write i2c OK [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: 01 [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: 01 07 00 [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 ED 0C F1 [15:36:21]RasterBufferAndPrint [15:36:21]line [15:36:21]line [15:36:21]line [15:36:21]line [15:36:21]line [15:36:21]written 0, free lines is 3315 [15:36:21]MH_Cut [15:36:21]Write to MH i2c: D1 01 00 F6 02 01 CA [15:36:21]Write i2c OK [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: D1 [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: D1 01 00 [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: D1 01 00 F6 02 00 C9 [15:36:21]Write to MH i2c: 01 00 00 F7 02 F9 [15:36:21]Write i2c OK [15:36:21]MH_I2C_Read... [15:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BA 0C 47 00 74 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 21 02 00 F4 03 04 00 85 5E C4 66 B6 04 01 00 00 C3 AA D2 08 A9 8A 47 8F [15:36:21]CommunicateWithHost err = 0 [15:36:21]CheckOFDResponse [15:36:21]1017 (14) - 77093643461234 [15:36:21]1041 (16) - 0000000000871776 [15:36:21]1040 (4) - 139764 [15:36:21]1012 (4) - 20.08.2024 09:14 [15:36:21]1206 (1) - 0 [15:36:21]OFD Sender: Remove packet 139764 [15:36:21]ProducePacketName [15:36:21]name=ofd_packets/00139764 [15:36:21]NVStorageDeleteData [15:36:21]OFD Sender: No OFD packet to send [15:36:21]*** Cut start [15:36:21]*** Partial cut [15:36:21]*** CUTSNS_PIN = 1 [15:36:21]*** CUTSNS_PIN = 0 [15:36:21]*** Brake cut motor [15:36:22]Read from MH i2c: 01 [15:36:22]MH_I2C_Read... [15:36:22]*** Stop cut motor [15:36:22]*** Cut end [15:36:22]Read from MH i2c: 01 07 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 FF 0F 0E [15:36:22]process_action close_receipt done [15:36:22]requested_data is exist [15:36:22]produce_requested_data [15:36:22]requested_item fm.sn is exist - process it [15:36:22]wFMCommunicate request_size=4 [15:36:22]MH_SAM_APDU [15:36:22]CAPDU: 80 11 00 00 [15:36:22]Write to MH i2c: E2 08 00 F8 02 80 11 00 00 00 00 00 00 74 [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:22]Read from MH i2c: E2 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 17 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 17 00 F8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [15:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:36:22]wFMCommunicate OK [15:36:22]requested_item fd.num is exist - process it [15:36:22]SAM_PROTO_GetFieldsCounters [15:36:22]wFMCommunicate request_size=4 [15:36:22]MH_SAM_APDU [15:36:22]CAPDU: 80 13 00 00 [15:36:22]Write to MH i2c: E2 08 00 F9 02 80 13 00 00 00 00 00 00 77 [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:22]Read from MH i2c: E2 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 62 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 62 00 F9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 21 02 00 0E 04 04 00 C5 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 43 [15:36:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 21 02 00 0E 04 04 00 C5 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 [15:36:22]wFMCommunicate OK [15:36:22]SAM_PROTO_GetFieldsCounters done [15:36:22]requested_item shift.num is exist - process it [15:36:22]requested_item shift.opened is exist - process it [15:36:22]req_shift_opened [15:36:22]FM_GetShiftState [15:36:22]SAM_PROTO_GetShiftState [15:36:22]wFMCommunicate request_size=4 [15:36:22]MH_SAM_APDU [15:36:22]CAPDU: 80 13 01 00 [15:36:22]Write to MH i2c: E2 08 00 FA 02 80 13 01 00 00 00 00 00 79 [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:22]Read from MH i2c: E2 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 0E 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 0E 00 FA 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0A [15:36:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:36:22]wFMCommunicate OK [15:36:22]SAM_PROTO_GetShiftState done [15:36:22]FM_GetShiftState done [15:36:22]req_shift_opened done [15:36:22]requested_item shift.open_date is exist - process it [15:36:22]req_shift_open_date [15:36:22]req_shift_open_date done [15:36:22]produce_requested_data done [15:36:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139764,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:36:22]process_action_free close_receipt [15:36:22]json_value_free [15:36:22]json_value_free done [15:36:22]process_json_proto returns [15:36:22]Send response to host [15:36:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139764,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:36:22]free response buf [15:36:22]execute_script done [15:36:22]execute_script returns [15:36:22]free content buf [15:36:22]Sock 9.Close socket [15:36:22]Sock 9.Thread stoped [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:47]accept exits with 8 [15:37:47]New connection [15:37:47]New thread 3066793316 created [15:37:47]Thread 3066649956 joined [15:37:47]Waiting for new connection... [15:37:47] Sock 8.Parse request [15:37:47]Sock 8.Check first char [15:37:47]Sock 8.First char is OK [15:37:47]request: POST /json_proto HTTP/1.0 [15:37:47]Method: POST [15:37:47]URL: /json_proto [15:37:47]Method is POST - this is cgi request [15:37:47]url: /json_proto [15:37:47]query_string will be loaded in cgi processing [15:37:47]execute_cgi json_proto POST (null) [15:37:47]execute_cgi path=json_proto method=POST [15:37:47]POST find Content-Length [15:37:47]Host: 172.17.45.67:8080 [15:37:47]Content-Length: 753 [15:37:47]Content-Type: application/json [15:37:47] [15:37:47]POST finish read [15:37:47]Found Content-Length = 753 [15:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.370, "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\u000A30029054", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:47]execute_script... [15:37:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.370, "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\u000A30029054", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:47]POST & json_proto [15:37:47]process_json_proto [15:37:47]json parsed OK: [15:37:47]protocol is kg_v1.0 [15:37:47]action value=close_receipt [15:37:47]process_action close_receipt [15:37:47]cmd_close_receipt [15:37:47]MH_GetDate [15:37:47]Write to MH i2c: F0 00 00 FB 02 EC [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: F0 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: F0 09 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: F0 09 00 FB 02 00 4C B8 C4 66 5F 7F 2B 66 92 [15:37:47]GetLastDocTimeStamp 1724168179 [15:37:47]current date 1724168268 [15:37:47]FM_GetShiftState [15:37:47]SAM_PROTO_GetShiftState [15:37:47]wFMCommunicate request_size=4 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 13 01 00 [15:37:47]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 0E 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0C [15:37:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:37:47]wFMCommunicate OK [15:37:47]SAM_PROTO_GetShiftState done [15:37:47]FM_GetShiftState done [15:37:47]opened in 1724113785 [15:37:47]opened+sec_in_day 1724200185 [15:37:47]quantity*price = 0 [15:37:47]sum+1 = 1 [15:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 237 20.08.2024 15:37 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30029054 ФМ: 0000000000871776 ФД: 139765 ФПД: 123287168117125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153748&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139765&fm=123287168117125&tin=02508201610067®Number=0000000000092569&sum=0 [15:37:48]StoreToDocumentArchive [15:37:48]shift 453 fd 139765 [15:37:48]save to /storage/0453/doc_00139765 [15:37:48]save last doc name /storage/0453/doc_00139765 to /storage/kkm_last_doc_name [15:37:48]save OK [15:37:48]Clear old archive folders... [15:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:48]tlvbuf is 00D49140 [15:37:48]SAM_PROTO_ClearQueue [15:37:48]wFMCommunicate request_size=4 [15:37:48]MH_SAM_APDU [15:37:48]CAPDU: 80 09 00 00 [15:37:48]Write to MH i2c: E2 08 00 09 03 80 09 00 00 00 00 00 00 7E [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:48]Read from MH i2c: E2 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [15:37:48]RAPDU: 90 00 [15:37:48]wFMCommunicate OK [15:37:48]SAM_PROTO_ClearQueue done [15:37:48]KKMCreateOFDPacket [15:37:48]OFDProtocolAddRootSTLVToBuf [15:37:48]FM_MakeSignedData [15:37:48]FM_MakeSignedData [15:37:48]SAM_PROTO_SignData [15:37:48]wFMCommunicate request_size=4 [15:37:48]MH_SAM_APDU [15:37:48]CAPDU: 80 0D 01 02 [15:37:48]Write to MH i2c: E2 08 00 0A 03 80 0D 01 02 00 00 00 00 86 [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:48]Read from MH i2c: E2 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [15:37:48]RAPDU: 90 00 [15:37:48]wFMCommunicate OK [15:37:48]wFMCommunicate request_size=255 [15:37:48]MH_SAM_APDU [15:37:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 4C B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 21 02 00 35 04 06 00 70 [15:37:48]Write to MH i2c: E2 02 01 0B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 4C B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 21 02 00 35 04 06 00 70 00 00 E9 [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 03 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [15:37:49]RAPDU: 90 00 [15:37:49]wFMCommunicate OK [15:37:49]wFMCommunicate request_size=10 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 0D 02 02 05 21 07 DC 69 85 [15:37:49]Write to MH i2c: E2 0D 00 0C 03 80 0D 02 02 05 00 21 07 DC 69 85 00 00 85 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 03 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [15:37:49]RAPDU: 90 00 [15:37:49]wFMCommunicate OK [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 0D 03 02 [15:37:49]Write to MH i2c: E2 08 00 0D 03 80 0D 03 02 00 00 00 00 8B [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 0B 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 0B 00 0D 03 00 4D 98 96 A5 A5 15 9B 51 90 00 52 [15:37:49]RAPDU: 4D 98 96 A5 A5 15 9B 51 90 00 [15:37:49]wFMCommunicate OK [15:37:49]SAM_PROTO_SignData done [15:37:49]FM_MakeSignedData done [15:37:49]CreateOFDProtocolMessage [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 11 00 00 [15:37:49]Write to MH i2c: E2 08 00 0E 03 80 11 00 00 00 00 00 00 8B [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 17 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 17 00 0E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [15:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:37:49]wFMCommunicate OK [15:37:49]CreateOFDProtocolMessage done [15:37:49]OFDSenderStorePacket 139765 [15:37:49]StoreOFDPacket docnum=139765 [15:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 82 CD 07 01 98 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 4C B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 21 02 00 35 04 06 00 70 21 07 DC 69 85 4D 98 96 A5 A5 15 9B 51 [15:37:49]CheckFolder [15:37:49]dirname=/storage/ofd_packets [15:37:49]CheckFolder done [15:37:49]ProducePacketName [15:37:49]name=ofd_packets/00139765 [15:37:49]NVStorageSaveData ofd_packets/00139765 [15:37:49]File name is /storage/ofd_packets/00139765 [15:37:49]Write 301 bytes [15:37:49]NVStorageSaveData done [15:37:49]OFDSenderStorePacket done [15:37:49]KKMCreateOFDPacket done [15:37:49]NVStorageSaveData kkm_last_timestamp [15:37:49]File name is /storage/kkm_last_timestamp [15:37:49]Write 4 bytes [15:37:49]NVStorageSaveData done [15:37:49]ExternCall_PrintAddStr [15:37:49]wPrintStart [15:37:49]Write to MH i2c: 01 00 00 0F 03 12 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 07 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 FF 0F 27 [15:37:49]RasterBufferAndPrint [15:37:49]line Счет N : (1)593613 [15:37:49]line ИНН: 02508201610067 [15:37:49]line Контрольно-Кассовый Чек [15:37:49]line ПРОДАЖА [15:37:49]line ТРК (МРК, ГНК) : 62 [15:37:49]line Товар: 2710124130 [15:37:49]line Аи-92-К-5 [15:37:49]line 7.370 * 0.00 [15:37:49]line = 0.00 [15:37:49]line НДС 12% НСП 1% [15:37:49]line > о реализуемом товаре [15:37:49]line ИТОГО: 0.00 [15:37:49]line НСП 1% : 0.00 [15:37:49]line НДС 12% : 0.00 [15:37:49]line Наличными: 0.00 [15:37:49]line Безнал.: 0.00 [15:37:49]line Место: АЗС № 136 "Партнер Нефть" [15:37:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:37:49]line СНО: Общий режим [15:37:49]line Чек 237 20.08.2024 15:37 [15:37:49]line Смена: 453 ФФД: 1.0 [15:37:49]line ЗНМ: 0300000067 [15:37:49]line РНМ: 0000000000092569 [15:37:49]line Версия ККМ: 001 [15:37:49]line Талоны: ТК ГПНА Online [15:37:49]line 30029054 [15:37:49]line ФМ: 0000000000871776 [15:37:49]line ФД: 139765 [15:37:49]line ФПД: 123287168117125 [15:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153748&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139765&fm=123287168117125&tin=02508201610067®Number=0000000000092569&sum=0 [15:37:49]written 0, free lines is 4095 [15:37:49]OFD Sender: Processing packet 139765 [packets to send 137, broken 136] [15:37:49]ProducePacketName [15:37:49]name=ofd_packets/00139765 [15:37:49]OFD Sender: To server: pG, [15:37:49]CommunicateWithHost lk.salyk.kg:30040 [15:37:49]ConnectInit lk.salyk.kg [15:37:49]Connected sock=9 [15:37:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 82 CD 07 01 98 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 4C B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 21 02 00 35 04 06 00 70 21 07 DC 69 85 4D 98 96 A5 A5 15 9B 51 [15:37:49]Write to MH i2c: 01 00 00 39 03 3C [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 07 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 E4 0C 33 [15:37:49]RasterBufferAndPrint [15:37:49]line [15:37:49]line [15:37:49]line [15:37:49]line [15:37:49]line [15:37:49]written 0, free lines is 3306 [15:37:49]MH_Cut [15:37:49]Write to MH i2c: D1 01 00 40 03 01 15 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: D1 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: D1 01 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: D1 01 00 40 03 00 14 [15:37:49]Write to MH i2c: 01 00 00 41 03 44 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E1 5E 47 00 3E 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 21 02 00 F4 03 04 00 DE 5E C4 66 B6 04 01 00 00 DE 21 E6 D4 2C 58 5C 4C [15:37:49]CommunicateWithHost err = 0 [15:37:49]CheckOFDResponse [15:37:49]1017 (14) - 77093643461234 [15:37:49]1041 (16) - 0000000000871776 [15:37:49]1040 (4) - 139765 [15:37:49]1012 (4) - 20.08.2024 09:16 [15:37:49]1206 (1) - 0 [15:37:49]OFD Sender: Remove packet 139765 [15:37:49]ProducePacketName [15:37:49]name=ofd_packets/00139765 [15:37:49]NVStorageDeleteData [15:37:50]OFD Sender: No OFD packet to send [15:37:50]*** Cut start [15:37:50]*** Partial cut [15:37:50]*** CUTSNS_PIN = 1 [15:37:50]*** CUTSNS_PIN = 0 [15:37:50]*** Brake cut motor [15:37:51]Read from MH i2c: 01 [15:37:51]MH_I2C_Read... [15:37:51]*** Stop cut motor [15:37:51]*** Cut end [15:37:51]Read from MH i2c: 01 07 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 FF 0F 59 [15:37:51]process_action close_receipt done [15:37:51]requested_data is exist [15:37:51]produce_requested_data [15:37:51]requested_item fm.sn is exist - process it [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 11 00 00 [15:37:51]Write to MH i2c: E2 08 00 42 03 80 11 00 00 00 00 00 00 BF [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 17 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 17 00 42 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 16 [15:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:37:51]wFMCommunicate OK [15:37:51]requested_item fd.num is exist - process it [15:37:51]SAM_PROTO_GetFieldsCounters [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 13 00 00 [15:37:51]Write to MH i2c: E2 08 00 43 03 80 13 00 00 00 00 00 00 C2 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 62 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 62 00 43 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 21 02 00 0E 04 04 00 C5 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 92 [15:37:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 21 02 00 0E 04 04 00 C5 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 [15:37:51]wFMCommunicate OK [15:37:51]SAM_PROTO_GetFieldsCounters done [15:37:51]requested_item shift.num is exist - process it [15:37:51]requested_item shift.opened is exist - process it [15:37:51]req_shift_opened [15:37:51]FM_GetShiftState [15:37:51]SAM_PROTO_GetShiftState [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 13 01 00 [15:37:51]Write to MH i2c: E2 08 00 44 03 80 13 01 00 00 00 00 00 C4 [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 0E 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 0E 00 44 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 55 [15:37:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:37:51]wFMCommunicate OK [15:37:51]SAM_PROTO_GetShiftState done [15:37:51]FM_GetShiftState done [15:37:51]req_shift_opened done [15:37:51]requested_item shift.open_date is exist - process it [15:37:51]req_shift_open_date [15:37:51]req_shift_open_date done [15:37:51]produce_requested_data done [15:37:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139765,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:37:51]process_action_free close_receipt [15:37:51]json_value_free [15:37:51]json_value_free done [15:37:51]process_json_proto returns [15:37:51]Send response to host [15:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139765,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:37:51]free response buf [15:37:51]execute_script done [15:37:51]execute_script returns [15:37:51]free content buf [15:37:51]Sock 8.Close socket [15:37:51]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [15:39:32]accept exits with 10 [15:39:32]New connection [15:39:32]New thread 3066649956 created [15:39:32]Thread 3066793316 joined [15:39:32]Waiting for new connection... [15:39:32] Sock 10.Parse request [15:39:32]Sock 10.Check first char [15:39:32]Sock 10.First char is OK [15:39:32]request: POST /json_proto HTTP/1.0 [15:39:32]Method: POST [15:39:32]URL: /json_proto [15:39:32]Method is POST - this is cgi request [15:39:32]url: /json_proto [15:39:32]query_string will be loaded in cgi processing [15:39:32]execute_cgi json_proto POST (null) [15:39:32]execute_cgi path=json_proto method=POST [15:39:32]POST find Content-Length [15:39:32]Host: 172.17.45.67:8080 [15:39:32]Content-Length: 682 [15:39:32]Content-Type: application/json [15:39:32] [15:39:32]POST finish read [15:39:32]Found Content-Length = 682 [15:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:32]execute_script... [15:39: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)593615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:32]POST & json_proto [15:39:32]process_json_proto [15:39:32]json parsed OK: [15:39:32]protocol is kg_v1.0 [15:39:32]action value=close_receipt [15:39:32]process_action close_receipt [15:39:32]cmd_close_receipt [15:39:32]MH_GetDate [15:39:32]Write to MH i2c: F0 00 00 45 03 37 [15:39:32]Write i2c OK [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: F0 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: F0 09 00 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: F0 09 00 45 03 00 B4 B8 C4 66 5F 7F 2B 66 45 [15:39:32]GetLastDocTimeStamp 1724168268 [15:39:32]current date 1724168372 [15:39:32]FM_GetShiftState [15:39:32]SAM_PROTO_GetShiftState [15:39:32]wFMCommunicate request_size=4 [15:39:32]MH_SAM_APDU [15:39:32]CAPDU: 80 13 01 00 [15:39:32]Write to MH i2c: E2 08 00 46 03 80 13 01 00 00 00 00 00 C6 [15:39:32]Write i2c OK [15:39:32]MH_I2C_Read... [15:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:32]Read from MH i2c: E2 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: E2 0E 00 [15:39:32]MH_I2C_Read... [15:39:32]Read from MH i2c: E2 0E 00 46 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 57 [15:39:32]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:39:32]wFMCommunicate OK [15:39:32]SAM_PROTO_GetShiftState done [15:39:32]FM_GetShiftState done [15:39:32]opened in 1724113785 [15:39:32]opened+sec_in_day 1724200185 [15:39:32]quantity*price = 100021 [15:39:32]sum+1 = 100023 [15:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 238 20.08.2024 15:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139766 ФПД: 245748456447892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153932&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139766&fm=245748456447892&tin=02508201610067®Number=0000000000092569&sum=100000 [15:39:33]StoreToDocumentArchive [15:39:33]shift 453 fd 139766 [15:39:33]save to /storage/0453/doc_00139766 [15:39:33]save last doc name /storage/0453/doc_00139766 to /storage/kkm_last_doc_name [15:39:33]save OK [15:39:33]Clear old archive folders... [15:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:33]tlvbuf is 00D0CD80 [15:39:33]SAM_PROTO_ClearQueue [15:39:33]wFMCommunicate request_size=4 [15:39:33]MH_SAM_APDU [15:39:33]CAPDU: 80 09 00 00 [15:39:33]Write to MH i2c: E2 08 00 53 03 80 09 00 00 00 00 00 00 C8 [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:33]Read from MH i2c: E2 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 03 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [15:39:33]RAPDU: 90 00 [15:39:33]wFMCommunicate OK [15:39:33]SAM_PROTO_ClearQueue done [15:39:33]KKMCreateOFDPacket [15:39:33]OFDProtocolAddRootSTLVToBuf [15:39:33]FM_MakeSignedData [15:39:33]FM_MakeSignedData [15:39:33]SAM_PROTO_SignData [15:39:33]wFMCommunicate request_size=4 [15:39:33]MH_SAM_APDU [15:39:33]CAPDU: 80 0D 01 02 [15:39:33]Write to MH i2c: E2 08 00 54 03 80 0D 01 02 00 00 00 00 D0 [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:33]Read from MH i2c: E2 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 03 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [15:39:33]RAPDU: 90 00 [15:39:33]wFMCommunicate OK [15:39:33]wFMCommunicate request_size=255 [15:39:33]MH_SAM_APDU [15:39:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 B4 B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 21 02 00 35 04 06 00 DF [15:39:33]Write to MH i2c: E2 02 01 55 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 EE 00 00 00 F4 03 04 00 B4 B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 21 02 00 35 04 06 00 DF 00 00 C8 [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:33]Read from MH i2c: E2 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 03 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [15:39:33]RAPDU: 90 00 [15:39:33]wFMCommunicate OK [15:39:33]wFMCommunicate request_size=10 [15:39:33]MH_SAM_APDU [15:39:33]CAPDU: 80 0D 02 02 05 81 C5 73 5F 94 [15:39:33]Write to MH i2c: E2 0D 00 56 03 80 0D 02 02 05 00 81 C5 73 5F 94 00 00 89 [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:33]Read from MH i2c: E2 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 03 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [15:39:33]RAPDU: 90 00 [15:39:33]wFMCommunicate OK [15:39:33]wFMCommunicate request_size=4 [15:39:33]MH_SAM_APDU [15:39:33]CAPDU: 80 0D 03 02 [15:39:33]Write to MH i2c: E2 08 00 57 03 80 0D 03 02 00 00 00 00 D5 [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:33]Read from MH i2c: E2 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 0B 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 0B 00 57 03 00 FD F2 B3 CA 8D F2 B3 31 90 00 A5 [15:39:33]RAPDU: FD F2 B3 CA 8D F2 B3 31 90 00 [15:39:33]wFMCommunicate OK [15:39:33]SAM_PROTO_SignData done [15:39:33]FM_MakeSignedData done [15:39:33]CreateOFDProtocolMessage [15:39:33]wFMCommunicate request_size=4 [15:39:33]MH_SAM_APDU [15:39:33]CAPDU: 80 11 00 00 [15:39:33]Write to MH i2c: E2 08 00 58 03 80 11 00 00 00 00 00 00 D5 [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:33]Read from MH i2c: E2 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 17 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: E2 17 00 58 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2C [15:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:39:33]wFMCommunicate OK [15:39:33]CreateOFDProtocolMessage done [15:39:33]OFDSenderStorePacket 139766 [15:39:33]StoreOFDPacket docnum=139766 [15:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EA 4E 07 01 BE 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 B4 B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 21 02 00 35 04 06 00 DF 81 C5 73 5F 94 FD F2 B3 CA 8D F2 B3 31 [15:39:33]CheckFolder [15:39:33]dirname=/storage/ofd_packets [15:39:33]CheckFolder done [15:39:33]ProducePacketName [15:39:33]name=ofd_packets/00139766 [15:39:33]NVStorageSaveData ofd_packets/00139766 [15:39:33]File name is /storage/ofd_packets/00139766 [15:39:33]Write 301 bytes [15:39:33]NVStorageSaveData done [15:39:33]OFDSenderStorePacket done [15:39:33]KKMCreateOFDPacket done [15:39:33]NVStorageSaveData kkm_last_timestamp [15:39:33]File name is /storage/kkm_last_timestamp [15:39:33]Write 4 bytes [15:39:33]NVStorageSaveData done [15:39:33]ExternCall_PrintAddStr [15:39:33]wPrintStart [15:39:33]Write to MH i2c: 01 00 00 59 03 5C [15:39:33]Write i2c OK [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: 01 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: 01 07 00 [15:39:33]MH_I2C_Read... [15:39:33]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 FF 0F 71 [15:39:33]RasterBufferAndPrint [15:39:33]line Счет N : (1)593615 [15:39:33]line ИНН: 02508201610067 [15:39:33]line Контрольно-Кассовый Чек [15:39:33]line ПРОДАЖА [15:39:33]line ТРК (МРК, ГНК) : 41 [15:39:33]line Товар: 2710124500 [15:39:33]line Аи-95-К-5 [15:39:33]line 13.480 * 74.20 [15:39:33]line = 1000.22 [15:39:33]line НДС 12% НСП 1% [15:39:33]line > о реализуемом товаре [15:39:33]line ОКРУГЛЕНИЕ: -0.22 [15:39:33]line ИТОГО: 1000.00 [15:39:33]line Внесено: 1000.00 [15:39:33]line СДАЧА: 0.00 [15:39:33]line НСП 1% : 8.85 [15:39:33]line НДС 12% : 106.22 [15:39:33]line Наличными: 1000.00 [15:39:33]line Безнал.: 0.00 [15:39:33]line Место: АЗС № 136 "Партнер Нефть" [15:39:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:39:33]line СНО: Общий режим [15:39:33]line Чек 238 20.08.2024 15:39 [15:39:33]line Смена: 453 ФФД: 1.0 [15:39:33]line ЗНМ: 0300000067 [15:39:33]line РНМ: 0000000000092569 [15:39:33]line Версия ККМ: 001 [15:39:33]line ФМ: 0000000000871776 [15:39:33]line ФД: 139766 [15:39:33]line ФПД: 245748456447892 [15:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153932&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139766&fm=245748456447892&tin=02508201610067®Number=0000000000092569&sum=100000 [15:39:34]OFD Sender: Processing packet 139766 [packets to send 137, broken 136] [15:39:34]ProducePacketName [15:39:34]name=ofd_packets/00139766 [15:39:34]OFD Sender: To server: pG, [15:39:34]CommunicateWithHost lk.salyk.kg:30040 [15:39:34]ConnectInit lk.salyk.kg [15:39:34]written 0, free lines is 4095 [15:39:34]Connected sock=9 [15:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EA 4E 07 01 BE 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 B4 B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 21 02 00 35 04 06 00 DF 81 C5 73 5F 94 FD F2 B3 CA 8D F2 B3 31 [15:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F0 83 47 00 30 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 21 02 00 F4 03 04 00 47 5F C4 66 B6 04 01 00 00 28 92 EA 4F 76 D3 78 39 [15:39:34]CommunicateWithHost err = 0 [15:39:34]CheckOFDResponse [15:39:34]1017 (14) - 77093643461234 [15:39:34]1041 (16) - 0000000000871776 [15:39:34]1040 (4) - 139766 [15:39:34]1012 (4) - 20.08.2024 09:17 [15:39:34]1206 (1) - 0 [15:39:34]OFD Sender: Remove packet 139766 [15:39:34]ProducePacketName [15:39:34]name=ofd_packets/00139766 [15:39:34]NVStorageDeleteData [15:39:34]Write to MH i2c: 01 00 00 84 03 87 [15:39:34]Write i2c OK [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: 01 [15:39:34]MH_I2C_Read... [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 84 03 00 00 00 00 00 D2 0C 6C [15:39:34]RasterBufferAndPrint [15:39:34]line [15:39:34]line [15:39:34]line [15:39:34]line [15:39:34]line [15:39:34]written 0, free lines is 3287 [15:39:34]MH_Cut [15:39:34]Write to MH i2c: D1 01 00 8B 03 01 60 [15:39:34]Write i2c OK [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: D1 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: D1 01 00 [15:39:34]MH_I2C_Read... [15:39:34]Read from MH i2c: D1 01 00 8B 03 00 5F [15:39:34]Write to MH i2c: 01 00 00 8C 03 8F [15:39:34]Write i2c OK [15:39:34]MH_I2C_Read... [15:39:35]OFD Sender: No OFD packet to send [15:39:35]*** Cut start [15:39:35]*** Partial cut [15:39:35]*** CUTSNS_PIN = 1 [15:39:35]*** CUTSNS_PIN = 0 [15:39:35]*** Brake cut motor [15:39:36]Read from MH i2c: 01 [15:39:36]MH_I2C_Read... [15:39:36]*** Stop cut motor [15:39:36]*** Cut end [15:39:36]Read from MH i2c: 01 07 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: 01 07 00 8C 03 00 00 00 00 00 FF 0F A4 [15:39:36]process_action close_receipt done [15:39:36]requested_data is exist [15:39:36]produce_requested_data [15:39:36]requested_item fm.sn is exist - process it [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 11 00 00 [15:39:36]Write to MH i2c: E2 08 00 8D 03 80 11 00 00 00 00 00 00 0A [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 17 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 17 00 8D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 61 [15:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:39:36]wFMCommunicate OK [15:39:36]requested_item fd.num is exist - process it [15:39:36]SAM_PROTO_GetFieldsCounters [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 13 00 00 [15:39:36]Write to MH i2c: E2 08 00 8E 03 80 13 00 00 00 00 00 00 0D [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 62 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 62 00 8E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 21 02 00 0E 04 04 00 C5 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 E1 [15:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 21 02 00 0E 04 04 00 C5 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 [15:39:36]wFMCommunicate OK [15:39:36]SAM_PROTO_GetFieldsCounters done [15:39:36]requested_item shift.num is exist - process it [15:39:36]requested_item shift.opened is exist - process it [15:39:36]req_shift_opened [15:39:36]FM_GetShiftState [15:39:36]SAM_PROTO_GetShiftState [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 13 01 00 [15:39:36]Write to MH i2c: E2 08 00 8F 03 80 13 01 00 00 00 00 00 0F [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 0E 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 0E 00 8F 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A0 [15:39:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:39:36]wFMCommunicate OK [15:39:36]SAM_PROTO_GetShiftState done [15:39:36]FM_GetShiftState done [15:39:36]req_shift_opened done [15:39:36]requested_item shift.open_date is exist - process it [15:39:36]req_shift_open_date [15:39:36]req_shift_open_date done [15:39:36]produce_requested_data done [15:39:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139766,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:39:36]process_action_free close_receipt [15:39:36]json_value_free [15:39:36]json_value_free done [15:39:36]process_json_proto returns [15:39:36]Send response to host [15:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139766,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:39:36]free response buf [15:39:36]execute_script done [15:39:36]execute_script returns [15:39:36]free content buf [15:39:36]Sock 10.Close socket [15:39:36]Sock 10.Thread stoped [15:39:40]OFD Sender: No OFD packet to send [15:39:41]accept exits with 8 [15:39:41]New connection [15:39:41]New thread 3066793316 created [15:39:41]Thread 3066649956 joined [15:39:41]Waiting for new connection... [15:39:41] Sock 8.Parse request [15:39:41]Sock 8.Check first char [15:39:41]Sock 8.First char is OK [15:39:41]request: POST /json_proto HTTP/1.0 [15:39:41]Method: POST [15:39:41]URL: /json_proto [15:39:41]Method is POST - this is cgi request [15:39:41]url: /json_proto [15:39:41]query_string will be loaded in cgi processing [15:39:41]execute_cgi json_proto POST (null) [15:39:41]execute_cgi path=json_proto method=POST [15:39:41]POST find Content-Length [15:39:41]Host: 172.17.45.67:8080 [15:39:41]Content-Length: 754 [15:39:41]Content-Type: application/json [15:39:41] [15:39:41]POST finish read [15:39:41]Found Content-Length = 754 [15:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30029054", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:41]execute_script... [15:39: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)593614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30029054", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:41]POST & json_proto [15:39:41]process_json_proto [15:39:41]json parsed OK: [15:39:41]protocol is kg_v1.0 [15:39:41]action value=close_receipt [15:39:41]process_action close_receipt [15:39:41]cmd_close_receipt [15:39:41]MH_GetDate [15:39:41]Write to MH i2c: F0 00 00 90 03 82 [15:39:41]Write i2c OK [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: F0 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: F0 09 00 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: F0 09 00 90 03 00 BD B8 C4 66 5F 7F 2B 66 99 [15:39:41]GetLastDocTimeStamp 1724168372 [15:39:41]current date 1724168381 [15:39:41]FM_GetShiftState [15:39:41]SAM_PROTO_GetShiftState [15:39:41]wFMCommunicate request_size=4 [15:39:41]MH_SAM_APDU [15:39:41]CAPDU: 80 13 01 00 [15:39:41]Write to MH i2c: E2 08 00 91 03 80 13 01 00 00 00 00 00 11 [15:39:41]Write i2c OK [15:39:41]MH_I2C_Read... [15:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:41]Read from MH i2c: E2 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: E2 0E 00 [15:39:41]MH_I2C_Read... [15:39:41]Read from MH i2c: E2 0E 00 91 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A2 [15:39:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:39:41]wFMCommunicate OK [15:39:41]SAM_PROTO_GetShiftState done [15:39:41]FM_GetShiftState done [15:39:41]opened in 1724113785 [15:39:41]opened+sec_in_day 1724200185 [15:39:41]quantity*price = 0 [15:39:41]sum+1 = 1 [15:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 239 20.08.2024 15:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30029054 ФМ: 0000000000871776 ФД: 139767 ФПД: 216322968483918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153941&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139767&fm=216322968483918&tin=02508201610067®Number=0000000000092569&sum=0 [15:39:42]StoreToDocumentArchive [15:39:42]shift 453 fd 139767 [15:39:42]save to /storage/0453/doc_00139767 [15:39:42]save last doc name /storage/0453/doc_00139767 to /storage/kkm_last_doc_name [15:39:42]save OK [15:39:42]Clear old archive folders... [15:39:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:42]tlvbuf is 00D36E40 [15:39:42]SAM_PROTO_ClearQueue [15:39:42]wFMCommunicate request_size=4 [15:39:42]MH_SAM_APDU [15:39:42]CAPDU: 80 09 00 00 [15:39:42]Write to MH i2c: E2 08 00 9E 03 80 09 00 00 00 00 00 00 13 [15:39:42]Write i2c OK [15:39:42]MH_I2C_Read... [15:39:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:42]Read from MH i2c: E2 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 03 00 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [15:39:42]RAPDU: 90 00 [15:39:42]wFMCommunicate OK [15:39:42]SAM_PROTO_ClearQueue done [15:39:42]KKMCreateOFDPacket [15:39:42]OFDProtocolAddRootSTLVToBuf [15:39:42]FM_MakeSignedData [15:39:42]FM_MakeSignedData [15:39:42]SAM_PROTO_SignData [15:39:42]wFMCommunicate request_size=4 [15:39:42]MH_SAM_APDU [15:39:42]CAPDU: 80 0D 01 02 [15:39:42]Write to MH i2c: E2 08 00 9F 03 80 0D 01 02 00 00 00 00 1B [15:39:42]Write i2c OK [15:39:42]MH_I2C_Read... [15:39:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:42]Read from MH i2c: E2 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 03 00 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [15:39:42]RAPDU: 90 00 [15:39:42]wFMCommunicate OK [15:39:42]wFMCommunicate request_size=255 [15:39:42]MH_SAM_APDU [15:39:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 BD B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 21 02 00 35 04 06 00 C4 [15:39:42]Write to MH i2c: E2 02 01 A0 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 BD B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 21 02 00 35 04 06 00 C4 00 00 CF [15:39:42]Write i2c OK [15:39:42]MH_I2C_Read... [15:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:42]Read from MH i2c: E2 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 03 00 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [15:39:42]RAPDU: 90 00 [15:39:42]wFMCommunicate OK [15:39:42]wFMCommunicate request_size=10 [15:39:42]MH_SAM_APDU [15:39:42]CAPDU: 80 0D 02 02 05 BE 9D B1 78 4E [15:39:42]Write to MH i2c: E2 0D 00 A1 03 80 0D 02 02 05 00 BE 9D B1 78 4E 00 00 FA [15:39:42]Write i2c OK [15:39:42]MH_I2C_Read... [15:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:42]Read from MH i2c: E2 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 03 00 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [15:39:42]RAPDU: 90 00 [15:39:42]wFMCommunicate OK [15:39:42]wFMCommunicate request_size=4 [15:39:42]MH_SAM_APDU [15:39:42]CAPDU: 80 0D 03 02 [15:39:42]Write to MH i2c: E2 08 00 A2 03 80 0D 03 02 00 00 00 00 20 [15:39:42]Write i2c OK [15:39:42]MH_I2C_Read... [15:39:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:42]Read from MH i2c: E2 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 0B 00 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 0B 00 A2 03 00 DD 37 8C AF 6D 0E 46 72 90 00 A3 [15:39:42]RAPDU: DD 37 8C AF 6D 0E 46 72 90 00 [15:39:42]wFMCommunicate OK [15:39:42]SAM_PROTO_SignData done [15:39:42]FM_MakeSignedData done [15:39:42]CreateOFDProtocolMessage [15:39:42]wFMCommunicate request_size=4 [15:39:42]MH_SAM_APDU [15:39:42]CAPDU: 80 11 00 00 [15:39:42]Write to MH i2c: E2 08 00 A3 03 80 11 00 00 00 00 00 00 20 [15:39:42]Write i2c OK [15:39:42]MH_I2C_Read... [15:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:42]Read from MH i2c: E2 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 17 00 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: E2 17 00 A3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 77 [15:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:39:42]wFMCommunicate OK [15:39:42]CreateOFDProtocolMessage done [15:39:42]OFDSenderStorePacket 139767 [15:39:42]StoreOFDPacket docnum=139767 [15:39:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C0 C8 07 01 A1 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 BD B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 21 02 00 35 04 06 00 C4 BE 9D B1 78 4E DD 37 8C AF 6D 0E 46 72 [15:39:42]CheckFolder [15:39:42]dirname=/storage/ofd_packets [15:39:42]CheckFolder done [15:39:42]ProducePacketName [15:39:42]name=ofd_packets/00139767 [15:39:42]NVStorageSaveData ofd_packets/00139767 [15:39:42]File name is /storage/ofd_packets/00139767 [15:39:42]Write 301 bytes [15:39:42]NVStorageSaveData done [15:39:42]OFDSenderStorePacket done [15:39:42]KKMCreateOFDPacket done [15:39:42]NVStorageSaveData kkm_last_timestamp [15:39:42]File name is /storage/kkm_last_timestamp [15:39:42]Write 4 bytes [15:39:42]NVStorageSaveData done [15:39:42]ExternCall_PrintAddStr [15:39:42]wPrintStart [15:39:42]Write to MH i2c: 01 00 00 A4 03 A7 [15:39:42]Write i2c OK [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: 01 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: 01 07 00 [15:39:42]MH_I2C_Read... [15:39:42]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 FF 0F BC [15:39:42]RasterBufferAndPrint [15:39:42]line Счет N : (1)593614 [15:39:42]line ИНН: 02508201610067 [15:39:42]line Контрольно-Кассовый Чек [15:39:42]line ПРОДАЖА [15:39:42]line ТРК (МРК, ГНК) : 52 [15:39:42]line Товар: 2710124130 [15:39:42]line Аи-92-К-5 [15:39:42]line 20.000 * 0.00 [15:39:42]line = 0.00 [15:39:42]line НДС 12% НСП 1% [15:39:42]line > о реализуемом товаре [15:39:42]line ИТОГО: 0.00 [15:39:42]line НСП 1% : 0.00 [15:39:42]line НДС 12% : 0.00 [15:39:42]line Наличными: 0.00 [15:39:42]line Безнал.: 0.00 [15:39:42]line Место: АЗС № 136 "Партнер Нефть" [15:39:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:39:42]line СНО: Общий режим [15:39:42]line Чек 239 20.08.2024 15:39 [15:39:42]line Смена: 453 ФФД: 1.0 [15:39:42]line ЗНМ: 0300000067 [15:39:42]line РНМ: 0000000000092569 [15:39:42]line Версия ККМ: 001 [15:39:42]line Талоны: ТК ГПНА Online [15:39:42]line 30029054 [15:39:42]line ФМ: 0000000000871776 [15:39:42]line ФД: 139767 [15:39:42]line ФПД: 216322968483918 [15:39:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T153941&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139767&fm=216322968483918&tin=02508201610067®Number=0000000000092569&sum=0 [15:39:43]written 0, free lines is 4095 [15:39:43]OFD Sender: Processing packet 139767 [packets to send 137, broken 136] [15:39:43]ProducePacketName [15:39:43]name=ofd_packets/00139767 [15:39:43]OFD Sender: To server: pG, [15:39:43]CommunicateWithHost lk.salyk.kg:30040 [15:39:43]ConnectInit lk.salyk.kg [15:39:43]Connected sock=10 [15:39:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C0 C8 07 01 A1 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 BD B8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 21 02 00 35 04 06 00 C4 BE 9D B1 78 4E DD 37 8C AF 6D 0E 46 72 [15:39:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D9 7E 47 00 36 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 21 02 00 F4 03 04 00 50 5F C4 66 B6 04 01 00 00 AD 15 81 DA F3 D8 A6 E8 [15:39:43]CommunicateWithHost err = 0 [15:39:43]CheckOFDResponse [15:39:43]1017 (14) - 77093643461234 [15:39:43]1041 (16) - 0000000000871776 [15:39:43]1040 (4) - 139767 [15:39:43]1012 (4) - 20.08.2024 09:18 [15:39:43]1206 (1) - 0 [15:39:43]OFD Sender: Remove packet 139767 [15:39:43]ProducePacketName [15:39:43]name=ofd_packets/00139767 [15:39:43]NVStorageDeleteData [15:39:43]Write to MH i2c: 01 00 00 CE 03 D1 [15:39:43]Write i2c OK [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: 01 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: 01 07 00 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: 01 07 00 CE 03 00 00 00 00 00 EC 0C D0 [15:39:43]RasterBufferAndPrint [15:39:43]line [15:39:43]line [15:39:43]line [15:39:43]line [15:39:43]line [15:39:43]written 0, free lines is 3316 [15:39:43]MH_Cut [15:39:43]Write to MH i2c: D1 01 00 D5 03 01 AA [15:39:43]Write i2c OK [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: D1 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: D1 01 00 [15:39:43]MH_I2C_Read... [15:39:43]Read from MH i2c: D1 01 00 D5 03 00 A9 [15:39:43]Write to MH i2c: 01 00 00 D6 03 D9 [15:39:43]Write i2c OK [15:39:43]MH_I2C_Read... [15:39:43]OFD Sender: No OFD packet to send [15:39:44]*** Cut start [15:39:44]*** Partial cut [15:39:44]*** CUTSNS_PIN = 1 [15:39:44]*** CUTSNS_PIN = 0 [15:39:44]*** Brake cut motor [15:39:44]Read from MH i2c: 01 [15:39:44]MH_I2C_Read... [15:39:44]*** Stop cut motor [15:39:44]*** Cut end [15:39:44]Read from MH i2c: 01 07 00 [15:39:44]MH_I2C_Read... [15:39:44]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 FF 0F EE [15:39:44]process_action close_receipt done [15:39:44]requested_data is exist [15:39:44]produce_requested_data [15:39:44]requested_item fm.sn is exist - process it [15:39:44]wFMCommunicate request_size=4 [15:39:44]MH_SAM_APDU [15:39:44]CAPDU: 80 11 00 00 [15:39:44]Write to MH i2c: E2 08 00 D7 03 80 11 00 00 00 00 00 00 54 [15:39:44]Write i2c OK [15:39:44]MH_I2C_Read... [15:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:44]Read from MH i2c: E2 [15:39:44]MH_I2C_Read... [15:39:44]Read from MH i2c: E2 17 00 [15:39:44]MH_I2C_Read... [15:39:44]Read from MH i2c: E2 17 00 D7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AB [15:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:39:44]wFMCommunicate OK [15:39:44]requested_item fd.num is exist - process it [15:39:44]SAM_PROTO_GetFieldsCounters [15:39:44]wFMCommunicate request_size=4 [15:39:44]MH_SAM_APDU [15:39:44]CAPDU: 80 13 00 00 [15:39:44]Write to MH i2c: E2 08 00 D8 03 80 13 00 00 00 00 00 00 57 [15:39:44]Write i2c OK [15:39:44]MH_I2C_Read... [15:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:44]Read from MH i2c: E2 [15:39:44]MH_I2C_Read... [15:39:44]Read from MH i2c: E2 62 00 [15:39:44]MH_I2C_Read... [15:39:44]Read from MH i2c: E2 62 00 D8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 21 02 00 0E 04 04 00 C5 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 2F [15:39:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 21 02 00 0E 04 04 00 C5 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 [15:39:44]wFMCommunicate OK [15:39:44]SAM_PROTO_GetFieldsCounters done [15:39:44]requested_item shift.num is exist - process it [15:39:44]requested_item shift.opened is exist - process it [15:39:44]req_shift_opened [15:39:44]FM_GetShiftState [15:39:44]SAM_PROTO_GetShiftState [15:39:44]wFMCommunicate request_size=4 [15:39:44]MH_SAM_APDU [15:39:44]CAPDU: 80 13 01 00 [15:39:44]Write to MH i2c: E2 08 00 D9 03 80 13 01 00 00 00 00 00 59 [15:39:44]Write i2c OK [15:39:44]MH_I2C_Read... [15:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:44]Read from MH i2c: E2 [15:39:44]MH_I2C_Read... [15:39:44]Read from MH i2c: E2 0E 00 [15:39:44]MH_I2C_Read... [15:39:44]Read from MH i2c: E2 0E 00 D9 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EA [15:39:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:39:44]wFMCommunicate OK [15:39:44]SAM_PROTO_GetShiftState done [15:39:44]FM_GetShiftState done [15:39:44]req_shift_opened done [15:39:44]requested_item shift.open_date is exist - process it [15:39:44]req_shift_open_date [15:39:44]req_shift_open_date done [15:39:44]produce_requested_data done [15:39:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139767,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:39:44]process_action_free close_receipt [15:39:44]json_value_free [15:39:44]json_value_free done [15:39:44]process_json_proto returns [15:39:44]Send response to host [15:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139767,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:39:44]free response buf [15:39:44]execute_script done [15:39:44]execute_script returns [15:39:44]free content buf [15:39:44]Sock 8.Close socket [15:39:44]Sock 8.Thread stoped [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]accept exits with 9 [15:40:48]New connection [15:40:48]New thread 3066649956 created [15:40:48]Thread 3066793316 joined [15:40:48]Waiting for new connection... [15:40:48] Sock 9.Parse request [15:40:48]Sock 9.Check first char [15:40:48]Sock 9.First char is OK [15:40:48]request: POST /json_proto HTTP/1.0 [15:40:48]Method: POST [15:40:48]URL: /json_proto [15:40:48]Method is POST - this is cgi request [15:40:48]url: /json_proto [15:40:48]query_string will be loaded in cgi processing [15:40:48]execute_cgi json_proto POST (null) [15:40:48]execute_cgi path=json_proto method=POST [15:40:48]POST find Content-Length [15:40:48]Host: 172.17.45.67:8080 [15:40:48]Content-Length: 678 [15:40:48]Content-Type: application/json [15:40:48] [15:40:48]POST finish read [15:40:48]Found Content-Length = 678 [15:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:48]execute_script... [15:40:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:48]POST & json_proto [15:40:48]process_json_proto [15:40:48]json parsed OK: [15:40:48]protocol is kg_v1.0 [15:40:48]action value=close_receipt [15:40:48]process_action close_receipt [15:40:48]cmd_close_receipt [15:40:48]MH_GetDate [15:40:48]Write to MH i2c: F0 00 00 DA 03 CC [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: F0 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: F0 09 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: F0 09 00 DA 03 00 01 B9 C4 66 5F 7F 2B 66 28 [15:40:48]GetLastDocTimeStamp 1724168381 [15:40:48]current date 1724168449 [15:40:48]FM_GetShiftState [15:40:48]SAM_PROTO_GetShiftState [15:40:48]wFMCommunicate request_size=4 [15:40:48]MH_SAM_APDU [15:40:48]CAPDU: 80 13 01 00 [15:40:48]Write to MH i2c: E2 08 00 DB 03 80 13 01 00 00 00 00 00 5B [15:40:48]Write i2c OK [15:40:48]MH_I2C_Read... [15:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:48]Read from MH i2c: E2 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 0E 00 [15:40:48]MH_I2C_Read... [15:40:48]Read from MH i2c: E2 0E 00 DB 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EC [15:40:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:40:48]wFMCommunicate OK [15:40:48]SAM_PROTO_GetShiftState done [15:40:48]FM_GetShiftState done [15:40:48]opened in 1724113785 [15:40:48]opened+sec_in_day 1724200185 [15:40:48]quantity*price = 90004 [15:40:48]sum+1 = 90006 [15:40:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 240 20.08.2024 15:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139768 ФПД: 55448179966411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154049&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139768&fm=55448179966411&tin=02508201610067®Number=0000000000092569&sum=90000 [15:40:49]StoreToDocumentArchive [15:40:49]shift 453 fd 139768 [15:40:49]save to /storage/0453/doc_00139768 [15:40:49]save last doc name /storage/0453/doc_00139768 to /storage/kkm_last_doc_name [15:40:49]save OK [15:40:49]Clear old archive folders... [15:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:49]tlvbuf is 00CFF660 [15:40:49]SAM_PROTO_ClearQueue [15:40:49]wFMCommunicate request_size=4 [15:40:49]MH_SAM_APDU [15:40:49]CAPDU: 80 09 00 00 [15:40:49]Write to MH i2c: E2 08 00 E8 03 80 09 00 00 00 00 00 00 5D [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:49]Read from MH i2c: E2 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 03 00 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [15:40:49]RAPDU: 90 00 [15:40:49]wFMCommunicate OK [15:40:49]SAM_PROTO_ClearQueue done [15:40:49]KKMCreateOFDPacket [15:40:49]OFDProtocolAddRootSTLVToBuf [15:40:49]FM_MakeSignedData [15:40:49]FM_MakeSignedData [15:40:49]SAM_PROTO_SignData [15:40:49]wFMCommunicate request_size=4 [15:40:49]MH_SAM_APDU [15:40:49]CAPDU: 80 0D 01 02 [15:40:49]Write to MH i2c: E2 08 00 E9 03 80 0D 01 02 00 00 00 00 65 [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:49]Read from MH i2c: E2 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 03 00 [15:40:49]MH_I2C_Read... [15:40:49]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [15:40:49]RAPDU: 90 00 [15:40:49]wFMCommunicate OK [15:40:49]wFMCommunicate request_size=255 [15:40:49]MH_SAM_APDU [15:40:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 01 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 21 02 00 35 04 06 00 32 [15:40:49]Write to MH i2c: E2 02 01 EA 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 01 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 21 02 00 35 04 06 00 32 00 00 7C [15:40:49]Write i2c OK [15:40:49]MH_I2C_Read... [15:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:50]Read from MH i2c: E2 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 03 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [15:40:50]RAPDU: 90 00 [15:40:50]wFMCommunicate OK [15:40:50]wFMCommunicate request_size=10 [15:40:50]MH_SAM_APDU [15:40:50]CAPDU: 80 0D 02 02 05 6E 09 12 01 CB [15:40:50]Write to MH i2c: E2 0D 00 EB 03 80 0D 02 02 05 00 6E 09 12 01 CB 00 00 C7 [15:40:50]Write i2c OK [15:40:50]MH_I2C_Read... [15:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:50]Read from MH i2c: E2 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 03 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [15:40:50]RAPDU: 90 00 [15:40:50]wFMCommunicate OK [15:40:50]wFMCommunicate request_size=4 [15:40:50]MH_SAM_APDU [15:40:50]CAPDU: 80 0D 03 02 [15:40:50]Write to MH i2c: E2 08 00 EC 03 80 0D 03 02 00 00 00 00 6A [15:40:50]Write i2c OK [15:40:50]MH_I2C_Read... [15:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:50]Read from MH i2c: E2 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 0B 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 0B 00 EC 03 00 0C 89 CF 9C 1B 57 15 9D 90 00 8F [15:40:50]RAPDU: 0C 89 CF 9C 1B 57 15 9D 90 00 [15:40:50]wFMCommunicate OK [15:40:50]SAM_PROTO_SignData done [15:40:50]FM_MakeSignedData done [15:40:50]CreateOFDProtocolMessage [15:40:50]wFMCommunicate request_size=4 [15:40:50]MH_SAM_APDU [15:40:50]CAPDU: 80 11 00 00 [15:40:50]Write to MH i2c: E2 08 00 ED 03 80 11 00 00 00 00 00 00 6A [15:40:50]Write i2c OK [15:40:50]MH_I2C_Read... [15:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:50]Read from MH i2c: E2 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 17 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: E2 17 00 ED 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C1 [15:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:40:50]wFMCommunicate OK [15:40:50]CreateOFDProtocolMessage done [15:40:50]OFDSenderStorePacket 139768 [15:40:50]StoreOFDPacket docnum=139768 [15:40:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E7 75 07 01 60 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 01 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 21 02 00 35 04 06 00 32 6E 09 12 01 CB 0C 89 CF 9C 1B 57 15 9D [15:40:50]CheckFolder [15:40:50]dirname=/storage/ofd_packets [15:40:50]CheckFolder done [15:40:50]ProducePacketName [15:40:50]name=ofd_packets/00139768 [15:40:50]NVStorageSaveData ofd_packets/00139768 [15:40:50]File name is /storage/ofd_packets/00139768 [15:40:50]Write 301 bytes [15:40:50]NVStorageSaveData done [15:40:50]OFDSenderStorePacket done [15:40:50]KKMCreateOFDPacket done [15:40:50]NVStorageSaveData kkm_last_timestamp [15:40:50]File name is /storage/kkm_last_timestamp [15:40:50]Write 4 bytes [15:40:50]NVStorageSaveData done [15:40:50]ExternCall_PrintAddStr [15:40:50]wPrintStart [15:40:50]Write to MH i2c: 01 00 00 EE 03 F1 [15:40:50]Write i2c OK [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: 01 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: 01 07 00 [15:40:50]MH_I2C_Read... [15:40:50]Read from MH i2c: 01 07 00 EE 03 00 00 00 00 00 FF 0F 06 [15:40:50]RasterBufferAndPrint [15:40:50]line Счет N : (1)593616 [15:40:50]line ИНН: 02508201610067 [15:40:50]line Контрольно-Кассовый Чек [15:40:50]line ПРОДАЖА [15:40:50]line ТРК (МРК, ГНК) : 51 [15:40:50]line Товар: 2710124500 [15:40:50]line Аи-95-К-5 [15:40:50]line 12.130 * 74.20 [15:40:50]line = 900.05 [15:40:50]line НДС 12% НСП 1% [15:40:50]line > о реализуемом товаре [15:40:50]line ОКРУГЛЕНИЕ: -0.05 [15:40:50]line ИТОГО: 900.00 [15:40:50]line Внесено: 900.00 [15:40:50]line СДАЧА: 0.00 [15:40:50]line НСП 1% : 7.96 [15:40:50]line НДС 12% : 95.58 [15:40:50]line Наличными: 900.00 [15:40:50]line Безнал.: 0.00 [15:40:50]line Место: АЗС № 136 "Партнер Нефть" [15:40:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:40:50]line СНО: Общий режим [15:40:50]line Чек 240 20.08.2024 15:40 [15:40:50]line Смена: 453 ФФД: 1.0 [15:40:50]line ЗНМ: 0300000067 [15:40:50]line РНМ: 0000000000092569 [15:40:50]line Версия ККМ: 001 [15:40:50]line ФМ: 0000000000871776 [15:40:50]line ФД: 139768 [15:40:50]line ФПД: 55448179966411 [15:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154049&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139768&fm=55448179966411&tin=02508201610067®Number=0000000000092569&sum=90000 [15:40:50]written 0, free lines is 4095 [15:40:50]OFD Sender: Processing packet 139768 [packets to send 137, broken 136] [15:40:50]ProducePacketName [15:40:50]name=ofd_packets/00139768 [15:40:50]OFD Sender: To server: pG, [15:40:50]CommunicateWithHost lk.salyk.kg:30040 [15:40:50]ConnectInit lk.salyk.kg [15:40:50]Connected sock=10 [15:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E7 75 07 01 60 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 01 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 21 02 00 35 04 06 00 32 6E 09 12 01 CB 0C 89 CF 9C 1B 57 15 9D [15:40:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 44 26 47 00 FA 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 21 02 00 F4 03 04 00 94 5F C4 66 B6 04 01 00 00 0C 80 5E 9F 04 93 39 3C [15:40:51]CommunicateWithHost err = 0 [15:40:51]CheckOFDResponse [15:40:51]1017 (14) - 77093643461234 [15:40:51]1041 (16) - 0000000000871776 [15:40:51]1040 (4) - 139768 [15:40:51]1012 (4) - 20.08.2024 09:19 [15:40:51]1206 (1) - 0 [15:40:51]OFD Sender: Remove packet 139768 [15:40:51]ProducePacketName [15:40:51]name=ofd_packets/00139768 [15:40:51]NVStorageDeleteData [15:40:51]Write to MH i2c: 01 00 00 19 04 1D [15:40:51]Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: 01 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: 01 07 00 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: 01 07 00 19 04 00 00 00 00 00 D2 0C 02 [15:40:51]RasterBufferAndPrint [15:40:51]line [15:40:51]line [15:40:51]line [15:40:51]line [15:40:51]line [15:40:51]written 0, free lines is 3289 [15:40:51]MH_Cut [15:40:51]Write to MH i2c: D1 01 00 20 04 01 F6 [15:40:51]Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: D1 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: D1 01 00 [15:40:51]MH_I2C_Read... [15:40:51]Read from MH i2c: D1 01 00 20 04 00 F5 [15:40:51]Write to MH i2c: 01 00 00 21 04 25 [15:40:51]Write i2c OK [15:40:51]MH_I2C_Read... [15:40:51]OFD Sender: No OFD packet to send [15:40:51]*** Cut start [15:40:51]*** Partial cut [15:40:51]*** CUTSNS_PIN = 1 [15:40:51]*** CUTSNS_PIN = 0 [15:40:52]*** Brake cut motor [15:40:52]Read from MH i2c: 01 [15:40:52]MH_I2C_Read... [15:40:52]*** Stop cut motor [15:40:52]*** Cut end [15:40:52]Read from MH i2c: 01 07 00 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: 01 07 00 21 04 00 00 00 00 00 FF 0F 3A [15:40:52]process_action close_receipt done [15:40:52]requested_data is exist [15:40:52]produce_requested_data [15:40:52]requested_item fm.sn is exist - process it [15:40:52]wFMCommunicate request_size=4 [15:40:52]MH_SAM_APDU [15:40:52]CAPDU: 80 11 00 00 [15:40:52]Write to MH i2c: E2 08 00 22 04 80 11 00 00 00 00 00 00 A0 [15:40:52]Write i2c OK [15:40:52]MH_I2C_Read... [15:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:52]Read from MH i2c: E2 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: E2 17 00 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: E2 17 00 22 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F7 [15:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:40:52]wFMCommunicate OK [15:40:52]requested_item fd.num is exist - process it [15:40:52]SAM_PROTO_GetFieldsCounters [15:40:52]wFMCommunicate request_size=4 [15:40:52]MH_SAM_APDU [15:40:52]CAPDU: 80 13 00 00 [15:40:52]Write to MH i2c: E2 08 00 23 04 80 13 00 00 00 00 00 00 A3 [15:40:52]Write i2c OK [15:40:52]MH_I2C_Read... [15:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:52]Read from MH i2c: E2 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: E2 62 00 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: E2 62 00 23 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 21 02 00 0E 04 04 00 C5 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 7F [15:40:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 21 02 00 0E 04 04 00 C5 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 [15:40:52]wFMCommunicate OK [15:40:52]SAM_PROTO_GetFieldsCounters done [15:40:52]requested_item shift.num is exist - process it [15:40:52]requested_item shift.opened is exist - process it [15:40:52]req_shift_opened [15:40:52]FM_GetShiftState [15:40:52]SAM_PROTO_GetShiftState [15:40:52]wFMCommunicate request_size=4 [15:40:52]MH_SAM_APDU [15:40:52]CAPDU: 80 13 01 00 [15:40:52]Write to MH i2c: E2 08 00 24 04 80 13 01 00 00 00 00 00 A5 [15:40:52]Write i2c OK [15:40:52]MH_I2C_Read... [15:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:52]Read from MH i2c: E2 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: E2 0E 00 [15:40:52]MH_I2C_Read... [15:40:52]Read from MH i2c: E2 0E 00 24 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 36 [15:40:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:40:52]wFMCommunicate OK [15:40:52]SAM_PROTO_GetShiftState done [15:40:52]FM_GetShiftState done [15:40:52]req_shift_opened done [15:40:52]requested_item shift.open_date is exist - process it [15:40:52]req_shift_open_date [15:40:52]req_shift_open_date done [15:40:52]produce_requested_data done [15:40:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139768,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:40:52]process_action_free close_receipt [15:40:52]json_value_free [15:40:52]json_value_free done [15:40:52]process_json_proto returns [15:40:52]Send response to host [15:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139768,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:40:52]free response buf [15:40:52]execute_script done [15:40:52]execute_script returns [15:40:52]free content buf [15:40:52]Sock 9.Close socket [15:40:52]Sock 9.Thread stoped [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:44]accept exits with 8 [15:43:44]New connection [15:43:44]New thread 3066793316 created [15:43:44]Thread 3066649956 joined [15:43:44]Waiting for new connection... [15:43:44] Sock 8.Parse request [15:43:44]Sock 8.Check first char [15:43:44]Sock 8.First char is OK [15:43:44]request: POST /json_proto HTTP/1.0 [15:43:44]Method: POST [15:43:44]URL: /json_proto [15:43:44]Method is POST - this is cgi request [15:43:44]url: /json_proto [15:43:44]query_string will be loaded in cgi processing [15:43:44]execute_cgi json_proto POST (null) [15:43:44]execute_cgi path=json_proto method=POST [15:43:44]POST find Content-Length [15:43:44]Host: 172.17.45.67:8080 [15:43:44]Content-Length: 682 [15:43:44]Content-Type: application/json [15:43:44] [15:43:44]POST finish read [15:43:44]Found Content-Length = 682 [15:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:44]execute_script... [15: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)593618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:44]POST & json_proto [15:43:44]process_json_proto [15:43:44]json parsed OK: [15:43:44]protocol is kg_v1.0 [15:43:44]action value=close_receipt [15:43:44]process_action close_receipt [15:43:44]cmd_close_receipt [15:43:44]MH_GetDate [15:43:44]Write to MH i2c: F0 00 00 25 04 18 [15:43:44]Write i2c OK [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: F0 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: F0 09 00 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: F0 09 00 25 04 00 B1 B9 C4 66 5F 7F 2B 66 24 [15:43:44]GetLastDocTimeStamp 1724168449 [15:43:44]current date 1724168625 [15:43:44]FM_GetShiftState [15:43:44]SAM_PROTO_GetShiftState [15:43:44]wFMCommunicate request_size=4 [15:43:44]MH_SAM_APDU [15:43:44]CAPDU: 80 13 01 00 [15:43:44]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [15:43:44]Write i2c OK [15:43:44]MH_I2C_Read... [15:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:44]Read from MH i2c: E2 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: E2 0E 00 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 38 [15:43:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:43:44]wFMCommunicate OK [15:43:44]SAM_PROTO_GetShiftState done [15:43:44]FM_GetShiftState done [15:43:44]opened in 1724113785 [15:43:44]opened+sec_in_day 1724200185 [15:43:44]quantity*price = 40005 [15:43:44]sum+1 = 40006 [15:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 241 20.08.2024 15:43 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139769 ФПД: 114613286662876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154345&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139769&fm=114613286662876&tin=02508201610067®Number=0000000000092569&sum=40000 [15:43:46]StoreToDocumentArchive [15:43:46]shift 453 fd 139769 [15:43:46]save to /storage/0453/doc_00139769 [15:43:46]save last doc name /storage/0453/doc_00139769 to /storage/kkm_last_doc_name [15:43:46]save OK [15:43:46]Clear old archive folders... [15:43:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:43:46]tlvbuf is 00D477A0 [15:43:46]SAM_PROTO_ClearQueue [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 09 00 00 [15:43:46]Write to MH i2c: E2 08 00 33 04 80 09 00 00 00 00 00 00 A9 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]SAM_PROTO_ClearQueue done [15:43:46]KKMCreateOFDPacket [15:43:46]OFDProtocolAddRootSTLVToBuf [15:43:46]FM_MakeSignedData [15:43:46]FM_MakeSignedData [15:43:46]SAM_PROTO_SignData [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 01 02 [15:43:46]Write to MH i2c: E2 08 00 34 04 80 0D 01 02 00 00 00 00 B1 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]wFMCommunicate request_size=255 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 B1 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 21 02 00 35 04 06 00 [15:43:46]Write to MH i2c: E2 02 01 35 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 B1 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 21 02 00 35 04 06 00 00 00 82 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]wFMCommunicate request_size=11 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 02 02 06 68 3D 7C 3C F2 DC [15:43:46]Write to MH i2c: E2 0E 00 36 04 80 0D 02 02 06 00 68 3D 7C 3C F2 DC 00 00 EB [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [15:43:46]RAPDU: 90 00 [15:43:46]wFMCommunicate OK [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 0D 03 02 [15:43:46]Write to MH i2c: E2 08 00 37 04 80 0D 03 02 00 00 00 00 B6 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0B 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0B 00 37 04 00 31 08 26 A8 57 F0 67 6E 90 00 DA [15:43:46]RAPDU: 31 08 26 A8 57 F0 67 6E 90 00 [15:43:46]wFMCommunicate OK [15:43:46]SAM_PROTO_SignData done [15:43:46]FM_MakeSignedData done [15:43:46]CreateOFDProtocolMessage [15:43:46]wFMCommunicate request_size=4 [15:43:46]MH_SAM_APDU [15:43:46]CAPDU: 80 11 00 00 [15:43:46]Write to MH i2c: E2 08 00 38 04 80 11 00 00 00 00 00 00 B6 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 17 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 17 00 38 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0D [15:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:43:46]wFMCommunicate OK [15:43:46]CreateOFDProtocolMessage done [15:43:46]OFDSenderStorePacket 139769 [15:43:46]StoreOFDPacket docnum=139769 [15:43:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 E8 7D 08 01 CB 29 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 B1 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 21 02 00 35 04 06 00 68 3D 7C 3C F2 DC 31 08 26 A8 57 F0 67 6E [15:43:46]CheckFolder [15:43:46]dirname=/storage/ofd_packets [15:43:46]CheckFolder done [15:43:46]ProducePacketName [15:43:46]name=ofd_packets/00139769 [15:43:46]NVStorageSaveData ofd_packets/00139769 [15:43:46]File name is /storage/ofd_packets/00139769 [15:43:46]Write 302 bytes [15:43:46]NVStorageSaveData done [15:43:46]OFDSenderStorePacket done [15:43:46]KKMCreateOFDPacket done [15:43:46]NVStorageSaveData kkm_last_timestamp [15:43:46]File name is /storage/kkm_last_timestamp [15:43:46]Write 4 bytes [15:43:46]NVStorageSaveData done [15:43:46]ExternCall_PrintAddStr [15:43:46]wPrintStart [15:43:46]Write to MH i2c: 01 00 00 39 04 3D [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: 01 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: 01 07 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [15:43:46]RasterBufferAndPrint [15:43:46]line Счет N : (1)593618 [15:43:46]line ИНН: 02508201610067 [15:43:46]line Контрольно-Кассовый Чек [15:43:46]line ПРОДАЖА [15:43:46]line ТРК (МРК, ГНК) : 34 [15:43:46]line Товар: 2710194210 [15:43:46]line ДТ(л)-К-5 [15:43:46]line 5.250 * 76.20 [15:43:46]line = 400.05 [15:43:46]line НДС 12% НСП 1% [15:43:46]line > о реализуемом товаре [15:43:46]line ОКРУГЛЕНИЕ: -0.05 [15:43:46]line ИТОГО: 400.00 [15:43:46]line Внесено: 400.00 [15:43:46]line СДАЧА: 0.00 [15:43:46]line НСП 1% : 3.54 [15:43:46]line НДС 12% : 42.48 [15:43:46]line Наличными: 400.00 [15:43:46]line Безнал.: 0.00 [15:43:46]line Место: АЗС № 136 "Партнер Нефть" [15:43:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:43:46]line СНО: Общий режим [15:43:46]line Чек 241 20.08.2024 15:43 [15:43:46]line Смена: 453 ФФД: 1.0 [15:43:46]line ЗНМ: 0300000067 [15:43:46]line РНМ: 0000000000092569 [15:43:46]line Версия ККМ: 001 [15:43:46]line ФМ: 0000000000871776 [15:43:46]line ФД: 139769 [15:43:46]line ФПД: 114613286662876 [15:43:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154345&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139769&fm=114613286662876&tin=02508201610067®Number=0000000000092569&sum=40000 [15:43:46]OFD Sender: Processing packet 139769 [packets to send 137, broken 136] [15:43:46]ProducePacketName [15:43:46]name=ofd_packets/00139769 [15:43:46]OFD Sender: To server: pG, [15:43:46]CommunicateWithHost lk.salyk.kg:30040 [15:43:46]ConnectInit lk.salyk.kg [15:43:46]written 0, free lines is 4095 [15:43:47]Connected sock=10 [15:43:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 E8 7D 08 01 CB 29 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 B1 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 21 02 00 35 04 06 00 68 3D 7C 3C F2 DC 31 08 26 A8 57 F0 67 6E [15:43:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F3 B3 47 00 9D 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 21 02 00 F4 03 04 00 44 60 C4 66 B6 04 01 00 00 A9 68 7E 0F 38 45 51 B9 [15:43:47]CommunicateWithHost err = 0 [15:43:47]CheckOFDResponse [15:43:47]1017 (14) - 77093643461234 [15:43:47]1041 (16) - 0000000000871776 [15:43:47]1040 (4) - 139769 [15:43:47]1012 (4) - 20.08.2024 09:22 [15:43:47]1206 (1) - 0 [15:43:47]OFD Sender: Remove packet 139769 [15:43:47]ProducePacketName [15:43:47]name=ofd_packets/00139769 [15:43:47]NVStorageDeleteData [15:43:47]Write to MH i2c: 01 00 00 64 04 68 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 DA 0C 55 [15:43:47]RasterBufferAndPrint [15:43:47]line [15:43:47]line [15:43:47]line [15:43:47]line [15:43:47]line [15:43:47]written 0, free lines is 3298 [15:43:47]MH_Cut [15:43:47]Write to MH i2c: D1 01 00 6B 04 01 41 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: D1 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: D1 01 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: D1 01 00 6B 04 00 40 [15:43:47]Write to MH i2c: 01 00 00 6C 04 70 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]OFD Sender: No OFD packet to send [15:43:48]*** Cut start [15:43:48]*** Partial cut [15:43:48]*** CUTSNS_PIN = 1 [15:43:48]*** CUTSNS_PIN = 0 [15:43:48]*** Brake cut motor [15:43:48]Read from MH i2c: 01 [15:43:48]MH_I2C_Read... [15:43:48]*** Stop cut motor [15:43:48]*** Cut end [15:43:48]Read from MH i2c: 01 07 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [15:43:48]process_action close_receipt done [15:43:48]requested_data is exist [15:43:48]produce_requested_data [15:43:48]requested_item fm.sn is exist - process it [15:43:48]wFMCommunicate request_size=4 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 11 00 00 [15:43:48]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 17 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 42 [15:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:43:48]wFMCommunicate OK [15:43:48]requested_item fd.num is exist - process it [15:43:48]SAM_PROTO_GetFieldsCounters [15:43:48]wFMCommunicate request_size=4 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 13 00 00 [15:43:48]Write to MH i2c: E2 08 00 6E 04 80 13 00 00 00 00 00 00 EE [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 62 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 62 00 6E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 21 02 00 0E 04 04 00 C5 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 CE [15:43:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 21 02 00 0E 04 04 00 C5 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 [15:43:48]wFMCommunicate OK [15:43:48]SAM_PROTO_GetFieldsCounters done [15:43:48]requested_item shift.num is exist - process it [15:43:48]requested_item shift.opened is exist - process it [15:43:48]req_shift_opened [15:43:48]FM_GetShiftState [15:43:48]SAM_PROTO_GetShiftState [15:43:48]wFMCommunicate request_size=4 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 13 01 00 [15:43:48]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 0E 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 81 [15:43:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:43:48]wFMCommunicate OK [15:43:48]SAM_PROTO_GetShiftState done [15:43:48]FM_GetShiftState done [15:43:48]req_shift_opened done [15:43:48]requested_item shift.open_date is exist - process it [15:43:48]req_shift_open_date [15:43:48]req_shift_open_date done [15:43:48]produce_requested_data done [15:43:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139769,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:43:48]process_action_free close_receipt [15:43:48]json_value_free [15:43:48]json_value_free done [15:43:48]process_json_proto returns [15:43:48]Send response to host [15:43:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139769,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:43:48]free response buf [15:43:48]execute_script done [15:43:48]execute_script returns [15:43:48]free content buf [15:43:48]Sock 8.Close socket [15:43:48]Sock 8.Thread stoped [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:05]accept exits with 9 [15:44:05]New connection [15:44:05]New thread 3066649956 created [15:44:05]Thread 3066793316 joined [15:44:05]Waiting for new connection... [15:44:05] Sock 9.Parse request [15:44:05]Sock 9.Check first char [15:44:05]Sock 9.First char is OK [15:44:05]request: POST /json_proto HTTP/1.0 [15:44:05]Method: POST [15:44:05]URL: /json_proto [15:44:05]Method is POST - this is cgi request [15:44:05]url: /json_proto [15:44:05]query_string will be loaded in cgi processing [15:44:05]execute_cgi json_proto POST (null) [15:44:05]execute_cgi path=json_proto method=POST [15:44:05]POST find Content-Length [15:44:05]Host: 172.17.45.67:8080 [15:44:05]Content-Length: 819 [15:44:05]Content-Type: application/json [15:44:05] [15:44:05]POST finish read [15:44:05]Found Content-Length = 819 [15:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 700.00, "payments": [ { "type": 1, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:05]execute_script... [15: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)593619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 700.00, "payments": [ { "type": 1, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:05]POST & json_proto [15:44:05]process_json_proto [15:44:05]json parsed OK: [15:44:05]protocol is kg_v1.0 [15:44:05]action value=close_receipt [15:44:05]process_action close_receipt [15:44:05]cmd_close_receipt [15:44:05]MH_GetDate [15:44:05]Write to MH i2c: F0 00 00 70 04 63 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: F0 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: F0 09 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: F0 09 00 70 04 00 C5 B9 C4 66 5F 7F 2B 66 83 [15:44:05]GetLastDocTimeStamp 1724168625 [15:44:05]current date 1724168645 [15:44:05]FM_GetShiftState [15:44:05]SAM_PROTO_GetShiftState [15:44:05]wFMCommunicate request_size=4 [15:44:05]MH_SAM_APDU [15:44:05]CAPDU: 80 13 01 00 [15:44:05]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [15:44:05]Write i2c OK [15:44:05]MH_I2C_Read... [15:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:05]Read from MH i2c: E2 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 0E 00 [15:44:05]MH_I2C_Read... [15:44:05]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 83 [15:44:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:44:05]wFMCommunicate OK [15:44:05]SAM_PROTO_GetShiftState done [15:44:05]FM_GetShiftState done [15:44:05]opened in 1724113785 [15:44:05]opened+sec_in_day 1724200185 [15:44:05]quantity*price = 70037 [15:44:05]sum+1 = 70038 [15:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 242 20.08.2024 15:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139770 ФПД: 10430156115238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139770&fm=10430156115238&tin=02508201610067®Number=0000000000092569&sum=70000 [15:44:06]StoreToDocumentArchive [15:44:06]shift 453 fd 139770 [15:44:06]save to /storage/0453/doc_00139770 [15:44:06]save last doc name /storage/0453/doc_00139770 to /storage/kkm_last_doc_name [15:44:06]save OK [15:44:06]Clear old archive folders... [15:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:06]tlvbuf is 00D47660 [15:44:06]SAM_PROTO_ClearQueue [15:44:06]wFMCommunicate request_size=4 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 09 00 00 [15:44:06]Write to MH i2c: E2 08 00 7E 04 80 09 00 00 00 00 00 00 F4 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:06]Read from MH i2c: E2 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 03 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [15:44:06]RAPDU: 90 00 [15:44:06]wFMCommunicate OK [15:44:06]SAM_PROTO_ClearQueue done [15:44:06]KKMCreateOFDPacket [15:44:06]OFDProtocolAddRootSTLVToBuf [15:44:06]FM_MakeSignedData [15:44:06]FM_MakeSignedData [15:44:06]SAM_PROTO_SignData [15:44:06]wFMCommunicate request_size=4 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 0D 01 02 [15:44:06]Write to MH i2c: E2 08 00 7F 04 80 0D 01 02 00 00 00 00 FC [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:06]Read from MH i2c: E2 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 03 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [15:44:06]RAPDU: 90 00 [15:44:06]wFMCommunicate OK [15:44:06]wFMCommunicate request_size=255 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 C5 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 21 02 00 35 04 06 00 09 [15:44:06]Write to MH i2c: E2 02 01 80 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 C5 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 21 02 00 35 04 06 00 09 00 00 F2 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:06]Read from MH i2c: E2 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 03 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [15:44:06]RAPDU: 90 00 [15:44:06]wFMCommunicate OK [15:44:06]wFMCommunicate request_size=10 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 0D 02 02 05 7C 75 C0 0D 26 [15:44:06]Write to MH i2c: E2 0D 00 81 04 80 0D 02 02 05 00 7C 75 C0 0D 26 00 00 ED [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:06]Read from MH i2c: E2 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 03 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [15:44:06]RAPDU: 90 00 [15:44:06]wFMCommunicate OK [15:44:06]wFMCommunicate request_size=4 [15:44:06]MH_SAM_APDU [15:44:06]CAPDU: 80 0D 03 02 [15:44:06]Write to MH i2c: E2 08 00 82 04 80 0D 03 02 00 00 00 00 01 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:06]Read from MH i2c: E2 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 0B 00 [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: E2 0B 00 82 04 00 1B AE 40 84 0D 64 01 FC 90 00 FD [15:44:06]RAPDU: 1B AE 40 84 0D 64 01 FC 90 00 [15:44:06]wFMCommunicate OK [15:44:06]SAM_PROTO_SignData done [15:44:06]FM_MakeSignedData done [15:44:06]CreateOFDProtocolMessage [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 83 04 80 11 00 00 00 00 00 00 01 [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 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [15:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:44:06]wFMCommunicate OK [15:44:06]CreateOFDProtocolMessage done [15:44:06]OFDSenderStorePacket 139770 [15:44:06]StoreOFDPacket docnum=139770 [15:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 44 80 07 01 02 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 C5 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 21 02 00 35 04 06 00 09 7C 75 C0 0D 26 1B AE 40 84 0D 64 01 FC [15:44:06]CheckFolder [15:44:06]dirname=/storage/ofd_packets [15:44:06]CheckFolder done [15:44:06]ProducePacketName [15:44:06]name=ofd_packets/00139770 [15:44:06]NVStorageSaveData ofd_packets/00139770 [15:44:06]File name is /storage/ofd_packets/00139770 [15:44:06]Write 301 bytes [15:44:06]NVStorageSaveData done [15:44:06]OFDSenderStorePacket done [15:44:06]KKMCreateOFDPacket done [15:44:06]NVStorageSaveData kkm_last_timestamp [15:44:06]File name is /storage/kkm_last_timestamp [15:44:06]Write 4 bytes [15:44:06]NVStorageSaveData done [15:44:06]ExternCall_PrintAddStr [15:44:06]wPrintStart [15:44:06]Write to MH i2c: 01 00 00 84 04 88 [15:44:06]Write i2c OK [15:44:06]MH_I2C_Read... [15:44:06]Read from MH i2c: 01 [15:44:06]MH_I2C_Read... [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 84 04 00 00 00 00 00 FF 0F 9D [15:44:06]RasterBufferAndPrint [15:44:06]line Счет N : (1)593619 [15:44:06]line ИНН: 02508201610067 [15:44:06]line Контрольно-Кассовый Чек [15:44:06]line ПРОДАЖА [15:44:06]line ТРК (МРК, ГНК) : 62 [15:44:06]line Товар: 2710124130 [15:44:06]line Аи-92-К-5 [15:44:06]line 10.330 * 67.80 [15:44:06]line = 700.37 [15:44:06]line НДС 12% НСП 1% [15:44:06]line > о реализуемом товаре [15:44:06]line ОКРУГЛЕНИЕ: -0.37 [15:44:06]line ИТОГО: 700.00 [15:44:06]line НСП 1% : 6.20 [15:44:06]line НДС 12% : 74.38 [15:44:06]line Наличными: 0.00 [15:44:06]line Безнал.: 700.00 [15:44:06]line Место: АЗС № 136 "Партнер Нефть" [15:44:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:44:06]line СНО: Общий режим [15:44:06]line Чек 242 20.08.2024 15:44 [15:44:06]line Смена: 453 ФФД: 1.0 [15:44:06]line ЗНМ: 0300000067 [15:44:06]line РНМ: 0000000000092569 [15:44:06]line Версия ККМ: 001 [15:44:06]line Платежная система: O! деньги [15:44:06]line ФМ: 0000000000871776 [15:44:06]line ФД: 139770 [15:44:06]line ФПД: 10430156115238 [15:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139770&fm=10430156115238&tin=02508201610067®Number=0000000000092569&sum=70000 [15:44:07]written 0, free lines is 4095 [15:44:07]OFD Sender: Processing packet 139770 [packets to send 137, broken 136] [15:44:07]ProducePacketName [15:44:07]name=ofd_packets/00139770 [15:44:07]OFD Sender: To server: pG, [15:44:07]CommunicateWithHost lk.salyk.kg:30040 [15:44:07]ConnectInit lk.salyk.kg [15:44:07]Connected sock=10 [15:44:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 44 80 07 01 02 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 C5 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 21 02 00 35 04 06 00 09 7C 75 C0 0D 26 1B AE 40 84 0D 64 01 FC [15:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 90 37 47 00 8E A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 21 02 00 F4 03 04 00 58 60 C4 66 B6 04 01 00 00 1F C4 9E 01 A7 2B A9 14 [15:44:07]CommunicateWithHost err = 0 [15:44:07]CheckOFDResponse [15:44:07]1017 (14) - 77093643461234 [15:44:07]1041 (16) - 0000000000871776 [15:44:07]1040 (4) - 139770 [15:44:07]1012 (4) - 20.08.2024 09:22 [15:44:07]1206 (1) - 0 [15:44:07]OFD Sender: Remove packet 139770 [15:44:07]ProducePacketName [15:44:07]name=ofd_packets/00139770 [15:44:07]NVStorageDeleteData [15:44:07]Write to MH i2c: 01 00 00 AF 04 B3 [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: 01 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: 01 07 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 D0 0C 96 [15:44:07]RasterBufferAndPrint [15:44:07]line [15:44:07]line [15:44:07]line [15:44:07]line [15:44:07]line [15:44:07]written 0, free lines is 3287 [15:44:07]MH_Cut [15:44:07]Write to MH i2c: D1 01 00 B6 04 01 8C [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: D1 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: D1 01 00 [15:44:07]MH_I2C_Read... [15:44:07]Read from MH i2c: D1 01 00 B6 04 00 8B [15:44:07]Write to MH i2c: 01 00 00 B7 04 BB [15:44:07]Write i2c OK [15:44:07]MH_I2C_Read... [15:44:07]OFD Sender: No OFD packet to send [15:44:08]*** Cut start [15:44:08]*** Partial cut [15:44:08]*** CUTSNS_PIN = 1 [15:44:08]*** CUTSNS_PIN = 0 [15:44:08]*** Brake cut motor [15:44:08]Read from MH i2c: 01 [15:44:08]MH_I2C_Read... [15:44:08]*** Stop cut motor [15:44:08]*** Cut end [15:44:08]Read from MH i2c: 01 07 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 FF 0F D0 [15:44:08]process_action close_receipt done [15:44:08]requested_data is exist [15:44:08]produce_requested_data [15:44:08]requested_item fm.sn is exist - process it [15:44:08]wFMCommunicate request_size=4 [15:44:08]MH_SAM_APDU [15:44:08]CAPDU: 80 11 00 00 [15:44:08]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [15:44:08]Write i2c OK [15:44:08]MH_I2C_Read... [15:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:08]Read from MH i2c: E2 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 17 00 [15:44:08]MH_I2C_Read... [15:44:08]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8D [15:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:44:08]wFMCommunicate OK [15:44:08]requested_item fd.num is exist - process it [15:44:08]SAM_PROTO_GetFieldsCounters [15:44:08]wFMCommunicate request_size=4 [15:44:08]MH_SAM_APDU [15:44:08]CAPDU: 80 13 00 00 [15:44:08]Write to MH i2c: E2 08 00 B9 04 80 13 00 00 00 00 00 00 39 [15:44:08]Write i2c OK [15:44:08]MH_I2C_Read... [15:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:09]Read from MH i2c: E2 [15:44:09]MH_I2C_Read... [15:44:09]Read from MH i2c: E2 62 00 [15:44:09]MH_I2C_Read... [15:44:09]Read from MH i2c: E2 62 00 B9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 21 02 00 0E 04 04 00 C5 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 1D [15:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 21 02 00 0E 04 04 00 C5 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 [15:44:09]wFMCommunicate OK [15:44:09]SAM_PROTO_GetFieldsCounters done [15:44:09]requested_item shift.num is exist - process it [15:44:09]requested_item shift.opened is exist - process it [15:44:09]req_shift_opened [15:44:09]FM_GetShiftState [15:44:09]SAM_PROTO_GetShiftState [15:44:09]wFMCommunicate request_size=4 [15:44:09]MH_SAM_APDU [15:44:09]CAPDU: 80 13 01 00 [15:44:09]Write to MH i2c: E2 08 00 BA 04 80 13 01 00 00 00 00 00 3B [15:44:09]Write i2c OK [15:44:09]MH_I2C_Read... [15:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:09]Read from MH i2c: E2 [15:44:09]MH_I2C_Read... [15:44:09]Read from MH i2c: E2 0E 00 [15:44:09]MH_I2C_Read... [15:44:09]Read from MH i2c: E2 0E 00 BA 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CC [15:44:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:44:09]wFMCommunicate OK [15:44:09]SAM_PROTO_GetShiftState done [15:44:09]FM_GetShiftState done [15:44:09]req_shift_opened done [15:44:09]requested_item shift.open_date is exist - process it [15:44:09]req_shift_open_date [15:44:09]req_shift_open_date done [15:44:09]produce_requested_data done [15:44:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139770,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:44:09]process_action_free close_receipt [15:44:09]json_value_free [15:44:09]json_value_free done [15:44:09]process_json_proto returns [15:44:09]Send response to host [15:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139770,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:44:09]free response buf [15:44:09]execute_script done [15:44:09]execute_script returns [15:44:09]free content buf [15:44:09]Sock 9.Close socket [15:44:09]Sock 9.Thread stoped [15:44:10]int [15:44:10]Write to MH i2c: 01 00 00 BB 04 BF [15:44:10]*** FLAG_PRN_KEY set [15:44:10]Write i2c OK [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: 01 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: 01 07 00 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: 01 07 00 BB 04 00 08 00 00 00 FF 0F DC [15:44:10]state=0 [15:44:10]Key pressed [15:44:10]Feed [15:44:10]Write to MH i2c: D8 00 00 BC 04 97 [15:44:10]Write i2c OK [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: D8 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: D8 01 00 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: D8 01 00 BC 04 00 98 [15:44:10]int [15:44:10]Write to MH i2c: 01 00 00 BD 04 C1 [15:44:10]Write i2c OK [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: 01 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: 01 07 00 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: 01 07 00 BD 04 00 48 00 00 00 3C 00 4C [15:44:10]state=2 [15:44:10]Key pressed [15:44:10]int [15:44:10]Write to MH i2c: 01 00 00 BE 04 C2 [15:44:10]*** FLAG_PRN_KEY reset [15:44:10]Write i2c OK [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: 01 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: 01 07 00 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FA 0F D2 [15:44:10]state=2 [15:44:10]Stop feed [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:33]accept exits with 8 [15:44:33]New connection [15:44:33]New thread 3066793316 created [15:44:33]Thread 3066649956 joined [15:44:33]Waiting for new connection... [15:44:33] Sock 8.Parse request [15:44:33]Sock 8.Check first char [15:44:33]Sock 8.First char is OK [15:44:33]request: POST /json_proto HTTP/1.0 [15:44:33]Method: POST [15:44:33]URL: /json_proto [15:44:33]Method is POST - this is cgi request [15:44:33]url: /json_proto [15:44:33]query_string will be loaded in cgi processing [15:44:33]execute_cgi json_proto POST (null) [15:44:33]execute_cgi path=json_proto method=POST [15:44:33]POST find Content-Length [15:44:33]Host: 172.17.45.67:8080 [15:44:33]Content-Length: 677 [15:44:33]Content-Type: application/json [15:44:33] [15:44:33]POST finish read [15:44:33]Found Content-Length = 677 [15:44:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.100, "sum" : 210.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:33]execute_script... [15:44: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)593617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.100, "sum" : 210.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:33]POST & json_proto [15:44:33]process_json_proto [15:44:33]json parsed OK: [15:44:33]protocol is kg_v1.0 [15:44:33]action value=close_receipt [15:44:33]process_action close_receipt [15:44:33]cmd_close_receipt [15:44:33]MH_GetDate [15:44:33]Write to MH i2c: F0 00 00 BF 04 B2 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: F0 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: F0 09 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: F0 09 00 BF 04 00 E1 B9 C4 66 5F 7F 2B 66 EE [15:44:33]GetLastDocTimeStamp 1724168645 [15:44:33]current date 1724168673 [15:44:33]FM_GetShiftState [15:44:33]SAM_PROTO_GetShiftState [15:44:33]wFMCommunicate request_size=4 [15:44:33]MH_SAM_APDU [15:44:33]CAPDU: 80 13 01 00 [15:44:33]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:33]Read from MH i2c: E2 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 0E 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D2 [15:44:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:44:33]wFMCommunicate OK [15:44:33]SAM_PROTO_GetShiftState done [15:44:33]FM_GetShiftState done [15:44:33]opened in 1724113785 [15:44:33]opened+sec_in_day 1724200185 [15:44:33]quantity*price = 21018 [15:44:33]sum+1 = 21019 [15:44:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.32 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 243 20.08.2024 15:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139771 ФПД: 120366769367986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139771&fm=120366769367986&tin=02508201610067®Number=0000000000092569&sum=21000 [15:44:34]StoreToDocumentArchive [15:44:34]shift 453 fd 139771 [15:44:34]save to /storage/0453/doc_00139771 [15:44:34]save last doc name /storage/0453/doc_00139771 to /storage/kkm_last_doc_name [15:44:34]save OK [15:44:34]Clear old archive folders... [15:44:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:34]tlvbuf is 00D48160 [15:44:34]SAM_PROTO_ClearQueue [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 09 00 00 [15:44:34]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [15:44:34]RAPDU: 90 00 [15:44:34]wFMCommunicate OK [15:44:34]SAM_PROTO_ClearQueue done [15:44:34]KKMCreateOFDPacket [15:44:34]OFDProtocolAddRootSTLVToBuf [15:44:34]FM_MakeSignedData [15:44:34]FM_MakeSignedData [15:44:34]SAM_PROTO_SignData [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 0D 01 02 [15:44:34]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [15:44:34]RAPDU: 90 00 [15:44:34]wFMCommunicate OK [15:44:34]wFMCommunicate request_size=255 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 08 00 00 00 00 07 04 06 00 08 52 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 E1 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 21 02 00 35 04 06 00 6D [15:44:34]Write to MH i2c: E2 02 01 CF 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 08 00 00 00 00 07 04 06 00 08 52 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 E1 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 21 02 00 35 04 06 00 6D 00 00 BF [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [15:44:34]RAPDU: 90 00 [15:44:34]wFMCommunicate OK [15:44:34]wFMCommunicate request_size=10 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 0D 02 02 05 79 12 87 EB B2 [15:44:34]Write to MH i2c: E2 0D 00 D0 04 80 0D 02 02 05 00 79 12 87 EB B2 00 00 07 [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:34]Read from MH i2c: E2 03 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [15:44:34]RAPDU: 90 00 [15:44:34]wFMCommunicate OK [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 0D 03 02 [15:44:34]Write to MH i2c: E2 08 00 D1 04 80 0D 03 02 00 00 00 00 50 [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0B 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0B 00 D1 04 00 1C 0D EC 69 57 06 54 08 90 00 88 [15:44:35]RAPDU: 1C 0D EC 69 57 06 54 08 90 00 [15:44:35]wFMCommunicate OK [15:44:35]SAM_PROTO_SignData done [15:44:35]FM_MakeSignedData done [15:44:35]CreateOFDProtocolMessage [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 11 00 00 [15:44:35]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 17 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A7 [15:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:44:35]wFMCommunicate OK [15:44:35]CreateOFDProtocolMessage done [15:44:35]OFDSenderStorePacket 139771 [15:44:35]StoreOFDPacket docnum=139771 [15:44:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 37 2D 07 01 4C 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 08 00 00 00 00 07 04 06 00 08 52 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 E1 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 21 02 00 35 04 06 00 6D 79 12 87 EB B2 1C 0D EC 69 57 06 54 08 [15:44:35]CheckFolder [15:44:35]dirname=/storage/ofd_packets [15:44:35]CheckFolder done [15:44:35]ProducePacketName [15:44:35]name=ofd_packets/00139771 [15:44:35]NVStorageSaveData ofd_packets/00139771 [15:44:35]File name is /storage/ofd_packets/00139771 [15:44:35]Write 301 bytes [15:44:35]NVStorageSaveData done [15:44:35]OFDSenderStorePacket done [15:44:35]KKMCreateOFDPacket done [15:44:35]NVStorageSaveData kkm_last_timestamp [15:44:35]File name is /storage/kkm_last_timestamp [15:44:35]Write 4 bytes [15:44:35]NVStorageSaveData done [15:44:35]ExternCall_PrintAddStr [15:44:35]wPrintStart [15:44:35]Write to MH i2c: 01 00 00 D3 04 D7 [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 07 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 07 00 D3 04 00 00 00 00 00 FF 0F EC [15:44:35]RasterBufferAndPrint [15:44:35]line Счет N : (1)593617 [15:44:35]line ИНН: 02508201610067 [15:44:35]line Контрольно-Кассовый Чек [15:44:35]line ПРОДАЖА [15:44:35]line ТРК (МРК, ГНК) : 52 [15:44:35]line Товар: 2710124130 [15:44:35]line Аи-92-К-5 [15:44:35]line 3.100 * 67.80 [15:44:35]line = 210.18 [15:44:35]line НДС 12% НСП 1% [15:44:35]line > о реализуемом товаре [15:44:35]line ОКРУГЛЕНИЕ: -0.18 [15:44:35]line ИТОГО: 210.00 [15:44:35]line Внесено: 210.00 [15:44:35]line СДАЧА: 0.00 [15:44:35]line НСП 1% : 1.86 [15:44:35]line НДС 12% : 22.32 [15:44:35]line Наличными: 210.00 [15:44:35]line Безнал.: 0.00 [15:44:35]line Место: АЗС № 136 "Партнер Нефть" [15:44:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:44:35]line СНО: Общий режим [15:44:35]line Чек 243 20.08.2024 15:44 [15:44:35]line Смена: 453 ФФД: 1.0 [15:44:35]line ЗНМ: 0300000067 [15:44:35]line РНМ: 0000000000092569 [15:44:35]line Версия ККМ: 001 [15:44:35]line ФМ: 0000000000871776 [15:44:35]line ФД: 139771 [15:44:35]line ФПД: 120366769367986 [15:44:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139771&fm=120366769367986&tin=02508201610067®Number=0000000000092569&sum=21000 [15:44:35]OFD Sender: Processing packet 139771 [packets to send 137, broken 136] [15:44:35]ProducePacketName [15:44:35]name=ofd_packets/00139771 [15:44:35]OFD Sender: To server: pG, [15:44:35]CommunicateWithHost lk.salyk.kg:30040 [15:44:35]ConnectInit lk.salyk.kg [15:44:35]written 0, free lines is 4095 [15:44:35]Connected sock=10 [15:44:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 37 2D 07 01 4C 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1A 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 08 00 00 00 00 07 04 06 00 08 52 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 E1 B9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 21 02 00 35 04 06 00 6D 79 12 87 EB B2 1C 0D EC 69 57 06 54 08 [15:44:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 47 FB 47 00 C4 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 21 02 00 F4 03 04 00 74 60 C4 66 B6 04 01 00 00 78 23 6A 59 EB 49 2E B5 [15:44:35]CommunicateWithHost err = 0 [15:44:35]CheckOFDResponse [15:44:35]1017 (14) - 77093643461234 [15:44:35]1041 (16) - 0000000000871776 [15:44:35]1040 (4) - 139771 [15:44:35]1012 (4) - 20.08.2024 09:23 [15:44:35]1206 (1) - 0 [15:44:35]OFD Sender: Remove packet 139771 [15:44:35]ProducePacketName [15:44:35]name=ofd_packets/00139771 [15:44:35]NVStorageDeleteData [15:44:35]Write to MH i2c: 01 00 00 FE 04 02 [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 07 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: 01 07 00 FE 04 00 00 00 00 00 D9 0C EE [15:44:35]RasterBufferAndPrint [15:44:35]line [15:44:35]line [15:44:35]line [15:44:35]line [15:44:35]line [15:44:35]written 0, free lines is 3296 [15:44:35]MH_Cut [15:44:35]Write to MH i2c: D1 01 00 05 05 01 DC [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: D1 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: D1 01 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: D1 01 00 05 05 00 DB [15:44:35]Write to MH i2c: 01 00 00 06 05 0B [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]OFD Sender: No OFD packet to send [15:44:36]*** Cut start [15:44:36]*** Partial cut [15:44:36]*** CUTSNS_PIN = 1 [15:44:36]*** CUTSNS_PIN = 0 [15:44:36]*** Brake cut motor [15:44:36]Read from MH i2c: 01 [15:44:36]MH_I2C_Read... [15:44:36]*** Stop cut motor [15:44:36]*** Cut end [15:44:36]Read from MH i2c: 01 07 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 FF 0F 20 [15:44:36]process_action close_receipt done [15:44:36]requested_data is exist [15:44:36]produce_requested_data [15:44:36]requested_item fm.sn is exist - process it [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 11 00 00 [15:44:36]Write to MH i2c: E2 08 00 07 05 80 11 00 00 00 00 00 00 86 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 17 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 17 00 07 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DD [15:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:44:36]wFMCommunicate OK [15:44:36]requested_item fd.num is exist - process it [15:44:36]SAM_PROTO_GetFieldsCounters [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 13 00 00 [15:44:36]Write to MH i2c: E2 08 00 08 05 80 13 00 00 00 00 00 00 89 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 62 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 62 00 08 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 21 02 00 0E 04 04 00 C5 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 71 [15:44:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 21 02 00 0E 04 04 00 C5 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 [15:44:37]wFMCommunicate OK [15:44:37]SAM_PROTO_GetFieldsCounters done [15:44:37]requested_item shift.num is exist - process it [15:44:37]requested_item shift.opened is exist - process it [15:44:37]req_shift_opened [15:44:37]FM_GetShiftState [15:44:37]SAM_PROTO_GetShiftState [15:44:37]wFMCommunicate request_size=4 [15:44:37]MH_SAM_APDU [15:44:37]CAPDU: 80 13 01 00 [15:44:37]Write to MH i2c: E2 08 00 09 05 80 13 01 00 00 00 00 00 8B [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 09 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1C [15:44:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:44:37]wFMCommunicate OK [15:44:37]SAM_PROTO_GetShiftState done [15:44:37]FM_GetShiftState done [15:44:37]req_shift_opened done [15:44:37]requested_item shift.open_date is exist - process it [15:44:37]req_shift_open_date [15:44:37]req_shift_open_date done [15:44:37]produce_requested_data done [15:44:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139771,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:44:37]process_action_free close_receipt [15:44:37]json_value_free [15:44:37]json_value_free done [15:44:37]process_json_proto returns [15:44:37]Send response to host [15:44:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139771,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:44:37]free response buf [15:44:37]execute_script done [15:44:37]execute_script returns [15:44:37]free content buf [15:44:37]Sock 8.Close socket [15:44:37]Sock 8.Thread stoped [15:44:40]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:42]accept exits with 9 [15:48:42]New connection [15:48:42]New thread 3066649956 created [15:48:42]Thread 3066793316 joined [15:48:42]Waiting for new connection... [15:48:42] Sock 9.Parse request [15:48:42]Sock 9.Check first char [15:48:42]Sock 9.First char is OK [15:48:42]request: POST /json_proto HTTP/1.0 [15:48:42]Method: POST [15:48:42]URL: /json_proto [15:48:42]Method is POST - this is cgi request [15:48:42]url: /json_proto [15:48:42]query_string will be loaded in cgi processing [15:48:42]execute_cgi json_proto POST (null) [15:48:42]execute_cgi path=json_proto method=POST [15:48:42]POST find Content-Length [15:48:42]Host: 172.17.45.67:8080 [15:48:42]Content-Length: 682 [15:48:42]Content-Type: application/json [15:48:42] [15:48:42]POST finish read [15:48:42]Found Content-Length = 682 [15:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:42]execute_script... [15: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)593620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:42]POST & json_proto [15:48:42]process_json_proto [15:48:42]json parsed OK: [15:48:42]protocol is kg_v1.0 [15:48:42]action value=close_receipt [15:48:42]process_action close_receipt [15:48:42]cmd_close_receipt [15:48:42]MH_GetDate [15:48:42]Write to MH i2c: F0 00 00 0A 05 FE [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: F0 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: F0 09 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: F0 09 00 0A 05 00 DB BA C4 66 5F 7F 2B 66 35 [15:48:42]GetLastDocTimeStamp 1724168673 [15:48:42]current date 1724168923 [15:48:42]FM_GetShiftState [15:48:42]SAM_PROTO_GetShiftState [15:48:42]wFMCommunicate request_size=4 [15:48:42]MH_SAM_APDU [15:48:42]CAPDU: 80 13 01 00 [15:48:42]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:42]Read from MH i2c: E2 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 0E 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1E [15:48:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:48:42]wFMCommunicate OK [15:48:42]SAM_PROTO_GetShiftState done [15:48:42]FM_GetShiftState done [15:48:42]opened in 1724113785 [15:48:42]opened+sec_in_day 1724200185 [15:48:42]quantity*price = 100021 [15:48:42]sum+1 = 100023 [15:48:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 244 20.08.2024 15:48 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139772 ФПД: 233377432874551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154843&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139772&fm=233377432874551&tin=02508201610067®Number=0000000000092569&sum=100000 [15:48:43]StoreToDocumentArchive [15:48:43]shift 453 fd 139772 [15:48:43]save to /storage/0453/doc_00139772 [15:48:43]save last doc name /storage/0453/doc_00139772 to /storage/kkm_last_doc_name [15:48:43]save OK [15:48:43]Clear old archive folders... [15:48:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:43]tlvbuf is 00D2A940 [15:48:43]SAM_PROTO_ClearQueue [15:48:43]wFMCommunicate request_size=4 [15:48:43]MH_SAM_APDU [15:48:43]CAPDU: 80 09 00 00 [15:48:43]Write to MH i2c: E2 08 00 18 05 80 09 00 00 00 00 00 00 8F [15:48:43]Write i2c OK [15:48:43]MH_I2C_Read... [15:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:44]Read from MH i2c: E2 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 03 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [15:48:44]RAPDU: 90 00 [15:48:44]wFMCommunicate OK [15:48:44]SAM_PROTO_ClearQueue done [15:48:44]KKMCreateOFDPacket [15:48:44]OFDProtocolAddRootSTLVToBuf [15:48:44]FM_MakeSignedData [15:48:44]FM_MakeSignedData [15:48:44]SAM_PROTO_SignData [15:48:44]wFMCommunicate request_size=4 [15:48:44]MH_SAM_APDU [15:48:44]CAPDU: 80 0D 01 02 [15:48:44]Write to MH i2c: E2 08 00 19 05 80 0D 01 02 00 00 00 00 97 [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:44]Read from MH i2c: E2 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 03 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [15:48:44]RAPDU: 90 00 [15:48:44]wFMCommunicate OK [15:48:44]wFMCommunicate request_size=255 [15:48:44]MH_SAM_APDU [15:48:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 DB BA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 21 02 00 35 04 06 00 D4 [15:48:44]Write to MH i2c: E2 02 01 1A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 F4 00 00 00 F4 03 04 00 DB BA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 21 02 00 35 04 06 00 D4 00 00 B9 [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:44]Read from MH i2c: E2 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 03 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [15:48:44]RAPDU: 90 00 [15:48:44]wFMCommunicate OK [15:48:44]wFMCommunicate request_size=10 [15:48:44]MH_SAM_APDU [15:48:44]CAPDU: 80 0D 02 02 05 41 6A FC 2E 37 [15:48:44]Write to MH i2c: E2 0D 00 1B 05 80 0D 02 02 05 00 41 6A FC 2E 37 00 00 B0 [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:44]Read from MH i2c: E2 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 03 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [15:48:44]RAPDU: 90 00 [15:48:44]wFMCommunicate OK [15:48:44]wFMCommunicate request_size=4 [15:48:44]MH_SAM_APDU [15:48:44]CAPDU: 80 0D 03 02 [15:48:44]Write to MH i2c: E2 08 00 1C 05 80 0D 03 02 00 00 00 00 9C [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:44]Read from MH i2c: E2 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 0B 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 0B 00 1C 05 00 74 11 95 C4 F3 39 03 D6 90 00 80 [15:48:44]RAPDU: 74 11 95 C4 F3 39 03 D6 90 00 [15:48:44]wFMCommunicate OK [15:48:44]SAM_PROTO_SignData done [15:48:44]FM_MakeSignedData done [15:48:44]CreateOFDProtocolMessage [15:48:44]wFMCommunicate request_size=4 [15:48:44]MH_SAM_APDU [15:48:44]CAPDU: 80 11 00 00 [15:48:44]Write to MH i2c: E2 08 00 1D 05 80 11 00 00 00 00 00 00 9C [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:44]Read from MH i2c: E2 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 17 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 17 00 1D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F3 [15:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:48:44]wFMCommunicate OK [15:48:44]CreateOFDProtocolMessage done [15:48:44]OFDSenderStorePacket 139772 [15:48:44]StoreOFDPacket docnum=139772 [15:48:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C6 73 07 01 12 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 DB BA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 21 02 00 35 04 06 00 D4 41 6A FC 2E 37 74 11 95 C4 F3 39 03 D6 [15:48:44]CheckFolder [15:48:44]dirname=/storage/ofd_packets [15:48:44]CheckFolder done [15:48:44]ProducePacketName [15:48:44]name=ofd_packets/00139772 [15:48:44]NVStorageSaveData ofd_packets/00139772 [15:48:44]File name is /storage/ofd_packets/00139772 [15:48:44]Write 301 bytes [15:48:44]NVStorageSaveData done [15:48:44]OFDSenderStorePacket done [15:48:44]KKMCreateOFDPacket done [15:48:44]NVStorageSaveData kkm_last_timestamp [15:48:44]File name is /storage/kkm_last_timestamp [15:48:44]Write 4 bytes [15:48:44]NVStorageSaveData done [15:48:44]OFD Sender: Processing packet 139772 [packets to send 137, broken 136] [15:48:44]ProducePacketName [15:48:44]name=ofd_packets/00139772 [15:48:44]OFD Sender: To server: pG, [15:48:44]CommunicateWithHost lk.salyk.kg:30040 [15:48:44]ConnectInit lk.salyk.kg [15:48:44]ExternCall_PrintAddStr [15:48:44]wPrintStart [15:48:44]Write to MH i2c: 01 00 00 1E 05 23 [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: 01 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: 01 07 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: 01 07 00 1E 05 00 00 00 00 00 FF 0F 38 [15:48:44]RasterBufferAndPrint [15:48:44]line Счет N : (1)593620 [15:48:44]line ИНН: 02508201610067 [15:48:44]line Контрольно-Кассовый Чек [15:48:44]line ПРОДАЖА [15:48:44]line ТРК (МРК, ГНК) : 51 [15:48:44]line Товар: 2710124500 [15:48:44]line Аи-95-К-5 [15:48:44]line 13.480 * 74.20 [15:48:44]line = 1000.22 [15:48:44]line НДС 12% НСП 1% [15:48:44]line > о реализуемом товаре [15:48:44]line ОКРУГЛЕНИЕ: -0.22 [15:48:44]line ИТОГО: 1000.00 [15:48:44]line Внесено: 1000.00 [15:48:44]line СДАЧА: 0.00 [15:48:44]line НСП 1% : 8.85 [15:48:44]line НДС 12% : 106.22 [15:48:44]line Наличными: 1000.00 [15:48:44]line Безнал.: 0.00 [15:48:44]line Место: АЗС № 136 "Партнер Нефть" [15:48:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:48:44]line СНО: Общий режим [15:48:44]line Чек 244 20.08.2024 15:48 [15:48:44]line Смена: 453 ФФД: 1.0 [15:48:44]line ЗНМ: 0300000067 [15:48:44]line РНМ: 0000000000092569 [15:48:44]line Версия ККМ: 001 [15:48:44]line ФМ: 0000000000871776 [15:48:44]line ФД: 139772 [15:48:44]line ФПД: 233377432874551 [15:48:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T154843&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139772&fm=233377432874551&tin=02508201610067®Number=0000000000092569&sum=100000 [15:48:44]Connected sock=11 [15:48:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C6 73 07 01 12 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 DB BA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 21 02 00 35 04 06 00 D4 41 6A FC 2E 37 74 11 95 C4 F3 39 03 D6 [15:48:44]written 0, free lines is 4095 [15:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7E 58 47 00 7B A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 21 02 00 F4 03 04 00 6E 61 C4 66 B6 04 01 00 00 29 56 32 E2 5F 8D 9B 15 [15:48:45]CommunicateWithHost err = 0 [15:48:45]CheckOFDResponse [15:48:45]1017 (14) - 77093643461234 [15:48:45]1041 (16) - 0000000000871776 [15:48:45]1040 (4) - 139772 [15:48:45]1012 (4) - 20.08.2024 09:27 [15:48:45]1206 (1) - 0 [15:48:45]OFD Sender: Remove packet 139772 [15:48:45]ProducePacketName [15:48:45]name=ofd_packets/00139772 [15:48:45]NVStorageDeleteData [15:48:45]Write to MH i2c: 01 00 00 49 05 4E [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: 01 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: 01 07 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 D5 0C 36 [15:48:45]RasterBufferAndPrint [15:48:45]line [15:48:45]line [15:48:45]line [15:48:45]line [15:48:45]line [15:48:45]written 0, free lines is 3293 [15:48:45]MH_Cut [15:48:45]Write to MH i2c: D1 01 00 50 05 01 27 [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: D1 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: D1 01 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: D1 01 00 50 05 00 26 [15:48:45]Write to MH i2c: 01 00 00 51 05 56 [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]OFD Sender: No OFD packet to send [15:48:46]*** Cut start [15:48:46]*** Partial cut [15:48:46]*** CUTSNS_PIN = 1 [15:48:46]*** CUTSNS_PIN = 0 [15:48:46]*** Brake cut motor [15:48:46]Read from MH i2c: 01 [15:48:46]MH_I2C_Read... [15:48:46]*** Stop cut motor [15:48:46]*** Cut end [15:48:46]Read from MH i2c: 01 07 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 FF 0F 6B [15:48:46]process_action close_receipt done [15:48:46]requested_data is exist [15:48:46]produce_requested_data [15:48:46]requested_item fm.sn is exist - process it [15:48:46]wFMCommunicate request_size=4 [15:48:46]MH_SAM_APDU [15:48:46]CAPDU: 80 11 00 00 [15:48:46]Write to MH i2c: E2 08 00 52 05 80 11 00 00 00 00 00 00 D1 [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:46]Read from MH i2c: E2 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 17 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 17 00 52 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 28 [15:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:48:46]wFMCommunicate OK [15:48:46]requested_item fd.num is exist - process it [15:48:46]SAM_PROTO_GetFieldsCounters [15:48:46]wFMCommunicate request_size=4 [15:48:46]MH_SAM_APDU [15:48:46]CAPDU: 80 13 00 00 [15:48:46]Write to MH i2c: E2 08 00 53 05 80 13 00 00 00 00 00 00 D4 [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:46]Read from MH i2c: E2 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 62 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 62 00 53 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 21 02 00 0E 04 04 00 C5 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 C0 [15:48:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 21 02 00 0E 04 04 00 C5 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 [15:48:46]wFMCommunicate OK [15:48:46]SAM_PROTO_GetFieldsCounters done [15:48:46]requested_item shift.num is exist - process it [15:48:46]requested_item shift.opened is exist - process it [15:48:46]req_shift_opened [15:48:46]FM_GetShiftState [15:48:46]SAM_PROTO_GetShiftState [15:48:46]wFMCommunicate request_size=4 [15:48:46]MH_SAM_APDU [15:48:46]CAPDU: 80 13 01 00 [15:48:46]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 [15:48:46]MH_I2C_Read... [15:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:46]Read from MH i2c: E2 0E 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 67 [15:48:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:48:46]wFMCommunicate OK [15:48:46]SAM_PROTO_GetShiftState done [15:48:46]FM_GetShiftState done [15:48:46]req_shift_opened done [15:48:46]requested_item shift.open_date is exist - process it [15:48:46]req_shift_open_date [15:48:46]req_shift_open_date done [15:48:46]produce_requested_data done [15:48:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139772,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:48:46]process_action_free close_receipt [15:48:46]json_value_free [15:48:46]json_value_free done [15:48:46]process_json_proto returns [15:48:46]Send response to host [15:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139772,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:48:46]free response buf [15:48:46]execute_script done [15:48:46]execute_script returns [15:48:46]free content buf [15:48:46]Sock 9.Close socket [15:48:46]Sock 9.Thread stoped [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:17]accept exits with 10 [15:53:17]New connection [15:53:17]New thread 3066793316 created [15:53:17]Thread 3066649956 joined [15:53:17]Waiting for new connection... [15:53:17] Sock 10.Parse request [15:53:17]Sock 10.Check first char [15:53:17]Sock 10.First char is OK [15:53:17]request: POST /json_proto HTTP/1.0 [15:53:17]Method: POST [15:53:17]URL: /json_proto [15:53:17]Method is POST - this is cgi request [15:53:17]url: /json_proto [15:53:17]query_string will be loaded in cgi processing [15:53:17]execute_cgi json_proto POST (null) [15:53:17]execute_cgi path=json_proto method=POST [15:53:17]POST find Content-Length [15:53:17]Host: 172.17.45.67:8080 [15:53:17]Content-Length: 677 [15:53:17]Content-Type: application/json [15:53:17] [15:53:17]POST finish read [15:53:17]Found Content-Length = 677 [15:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:17]execute_script... [15:53: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)593621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:17]POST & json_proto [15:53:17]process_json_proto [15:53:17]json parsed OK: [15:53:17]protocol is kg_v1.0 [15:53:17]action value=close_receipt [15:53:17]process_action close_receipt [15:53:17]cmd_close_receipt [15:53:17]MH_GetDate [15:53:17]Write to MH i2c: F0 00 00 55 05 49 [15:53:17]Write i2c OK [15:53:17]MH_I2C_Read... [15:53:17]Read from MH i2c: F0 [15:53:17]MH_I2C_Read... [15:53:17]Read from MH i2c: F0 09 00 [15:53:17]MH_I2C_Read... [15:53:17]Read from MH i2c: F0 09 00 55 05 00 ED BB C4 66 5F 7F 2B 66 93 [15:53:17]GetLastDocTimeStamp 1724168923 [15:53:17]current date 1724169197 [15:53:17]FM_GetShiftState [15:53:17]SAM_PROTO_GetShiftState [15:53:17]wFMCommunicate request_size=4 [15:53:17]MH_SAM_APDU [15:53:17]CAPDU: 80 13 01 00 [15:53:17]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [15:53:17]Write i2c OK [15:53:17]MH_I2C_Read... [15:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:17]Read from MH i2c: E2 [15:53:17]MH_I2C_Read... [15:53:17]Read from MH i2c: E2 0E 00 [15:53:17]MH_I2C_Read... [15:53:17]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 69 [15:53:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:53:17]wFMCommunicate OK [15:53:17]SAM_PROTO_GetShiftState done [15:53:17]FM_GetShiftState done [15:53:17]opened in 1724113785 [15:53:17]opened+sec_in_day 1724200185 [15:53:17]quantity*price = 50036 [15:53:17]sum+1 = 50037 [15:53:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 245 20.08.2024 15:53 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139773 ФПД: 264858399280872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T155317&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139773&fm=264858399280872&tin=02508201610067®Number=0000000000092569&sum=50000 [15:53:18]StoreToDocumentArchive [15:53:18]shift 453 fd 139773 [15:53:18]save to /storage/0453/doc_00139773 [15:53:18]save last doc name /storage/0453/doc_00139773 to /storage/kkm_last_doc_name [15:53:18]save OK [15:53:18]Clear old archive folders... [15:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:18]tlvbuf is 00CDEFE0 [15:53:18]SAM_PROTO_ClearQueue [15:53:18]wFMCommunicate request_size=4 [15:53:18]MH_SAM_APDU [15:53:18]CAPDU: 80 09 00 00 [15:53:18]Write to MH i2c: E2 08 00 63 05 80 09 00 00 00 00 00 00 DA [15:53:18]Write i2c OK [15:53:18]MH_I2C_Read... [15:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:18]Read from MH i2c: E2 [15:53:18]MH_I2C_Read... [15:53:18]Read from MH i2c: E2 03 00 [15:53:18]MH_I2C_Read... [15:53:18]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [15:53:18]RAPDU: 90 00 [15:53:18]wFMCommunicate OK [15:53:18]SAM_PROTO_ClearQueue done [15:53:18]KKMCreateOFDPacket [15:53:18]OFDProtocolAddRootSTLVToBuf [15:53:18]FM_MakeSignedData [15:53:18]FM_MakeSignedData [15:53:18]SAM_PROTO_SignData [15:53:18]wFMCommunicate request_size=4 [15:53:18]MH_SAM_APDU [15:53:18]CAPDU: 80 0D 01 02 [15:53:18]Write to MH i2c: E2 08 00 64 05 80 0D 01 02 00 00 00 00 E2 [15:53:18]Write i2c OK [15:53:18]MH_I2C_Read... [15:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:18]Read from MH i2c: E2 [15:53:18]MH_I2C_Read... [15:53:18]Read from MH i2c: E2 03 00 [15:53:18]MH_I2C_Read... [15:53:18]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [15:53:18]RAPDU: 90 00 [15:53:18]wFMCommunicate OK [15:53:18]wFMCommunicate request_size=255 [15:53:18]MH_SAM_APDU [15:53:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 ED BB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 21 02 00 35 04 06 00 F0 [15:53:18]Write to MH i2c: E2 02 01 65 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 ED BB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 21 02 00 35 04 06 00 F0 00 00 08 [15:53:18]Write i2c OK [15:53:18]MH_I2C_Read... [15:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:19]Read from MH i2c: E2 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 03 00 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [15:53:19]RAPDU: 90 00 [15:53:19]wFMCommunicate OK [15:53:19]wFMCommunicate request_size=10 [15:53:19]MH_SAM_APDU [15:53:19]CAPDU: 80 0D 02 02 05 E3 26 CE 0E E8 [15:53:19]Write to MH i2c: E2 0D 00 66 05 80 0D 02 02 05 00 E3 26 CE 0E E8 00 00 BC [15:53:19]Write i2c OK [15:53:19]MH_I2C_Read... [15:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:19]Read from MH i2c: E2 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 03 00 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [15:53:19]RAPDU: 90 00 [15:53:19]wFMCommunicate OK [15:53:19]wFMCommunicate request_size=4 [15:53:19]MH_SAM_APDU [15:53:19]CAPDU: 80 0D 03 02 [15:53:19]Write to MH i2c: E2 08 00 67 05 80 0D 03 02 00 00 00 00 E7 [15:53:19]Write i2c OK [15:53:19]MH_I2C_Read... [15:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:19]Read from MH i2c: E2 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 0B 00 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 0B 00 67 05 00 38 06 56 9D F0 CD 8B 55 90 00 B6 [15:53:19]RAPDU: 38 06 56 9D F0 CD 8B 55 90 00 [15:53:19]wFMCommunicate OK [15:53:19]SAM_PROTO_SignData done [15:53:19]FM_MakeSignedData done [15:53:19]CreateOFDProtocolMessage [15:53:19]wFMCommunicate request_size=4 [15:53:19]MH_SAM_APDU [15:53:19]CAPDU: 80 11 00 00 [15:53:19]Write to MH i2c: E2 08 00 68 05 80 11 00 00 00 00 00 00 E7 [15:53:19]Write i2c OK [15:53:19]MH_I2C_Read... [15:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:19]Read from MH i2c: E2 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 17 00 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 17 00 68 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [15:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:53:19]wFMCommunicate OK [15:53:19]CreateOFDProtocolMessage done [15:53:19]OFDSenderStorePacket 139773 [15:53:19]StoreOFDPacket docnum=139773 [15:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 58 9C 07 01 43 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 ED BB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 21 02 00 35 04 06 00 F0 E3 26 CE 0E E8 38 06 56 9D F0 CD 8B 55 [15:53:19]CheckFolder [15:53:19]dirname=/storage/ofd_packets [15:53:19]CheckFolder done [15:53:19]ProducePacketName [15:53:19]name=ofd_packets/00139773 [15:53:19]NVStorageSaveData ofd_packets/00139773 [15:53:19]File name is /storage/ofd_packets/00139773 [15:53:19]Write 301 bytes [15:53:19]NVStorageSaveData done [15:53:19]OFDSenderStorePacket done [15:53:19]KKMCreateOFDPacket done [15:53:19]NVStorageSaveData kkm_last_timestamp [15:53:19]File name is /storage/kkm_last_timestamp [15:53:19]Write 4 bytes [15:53:19]NVStorageSaveData done [15:53:19]ExternCall_PrintAddStr [15:53:19]wPrintStart [15:53:19]Write to MH i2c: 01 00 00 69 05 6E [15:53:19]Write i2c OK [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: 01 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: 01 07 00 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 FF 0F 83 [15:53:19]RasterBufferAndPrint [15:53:19]line Счет N : (1)593621 [15:53:19]line ИНН: 02508201610067 [15:53:19]line Контрольно-Кассовый Чек [15:53:19]line ПРОДАЖА [15:53:19]line ТРК (МРК, ГНК) : 42 [15:53:19]line Товар: 2710124130 [15:53:19]line Аи-92-К-5 [15:53:19]line 7.380 * 67.80 [15:53:19]line = 500.36 [15:53:19]line НДС 12% НСП 1% [15:53:19]line > о реализуемом товаре [15:53:19]line ОКРУГЛЕНИЕ: -0.36 [15:53:19]line ИТОГО: 500.00 [15:53:19]line Внесено: 500.00 [15:53:19]line СДАЧА: 0.00 [15:53:19]line НСП 1% : 4.43 [15:53:19]line НДС 12% : 53.14 [15:53:19]line Наличными: 500.00 [15:53:19]line Безнал.: 0.00 [15:53:19]line Место: АЗС № 136 "Партнер Нефть" [15:53:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:53:19]line СНО: Общий режим [15:53:19]line Чек 245 20.08.2024 15:53 [15:53:19]line Смена: 453 ФФД: 1.0 [15:53:19]line ЗНМ: 0300000067 [15:53:19]line РНМ: 0000000000092569 [15:53:19]line Версия ККМ: 001 [15:53:19]line ФМ: 0000000000871776 [15:53:19]line ФД: 139773 [15:53:19]line ФПД: 264858399280872 [15:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T155317&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139773&fm=264858399280872&tin=02508201610067®Number=0000000000092569&sum=50000 [15:53:19]written 0, free lines is 4095 [15:53:19]OFD Sender: Processing packet 139773 [packets to send 137, broken 136] [15:53:19]ProducePacketName [15:53:19]name=ofd_packets/00139773 [15:53:19]OFD Sender: To server: pG, [15:53:19]CommunicateWithHost lk.salyk.kg:30040 [15:53:19]ConnectInit lk.salyk.kg [15:53:19]Connected sock=9 [15:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 58 9C 07 01 43 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 ED BB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 21 02 00 35 04 06 00 F0 E3 26 CE 0E E8 38 06 56 9D F0 CD 8B 55 [15:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7B 4A 47 00 37 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 21 02 00 F4 03 04 00 80 62 C4 66 B6 04 01 00 00 85 90 E5 49 86 30 93 00 [15:53:19]CommunicateWithHost err = 0 [15:53:19]CheckOFDResponse [15:53:19]1017 (14) - 77093643461234 [15:53:19]1041 (16) - 0000000000871776 [15:53:19]1040 (4) - 139773 [15:53:19]1012 (4) - 20.08.2024 09:31 [15:53:19]1206 (1) - 0 [15:53:19]OFD Sender: Remove packet 139773 [15:53:19]ProducePacketName [15:53:19]name=ofd_packets/00139773 [15:53:19]NVStorageDeleteData [15:53:19]Write to MH i2c: 01 00 00 94 05 99 [15:53:19]Write i2c OK [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: 01 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: 01 07 00 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 D1 0C 7D [15:53:19]RasterBufferAndPrint [15:53:19]line [15:53:19]line [15:53:19]line [15:53:19]line [15:53:19]line [15:53:19]written 0, free lines is 3289 [15:53:19]MH_Cut [15:53:19]Write to MH i2c: D1 01 00 9B 05 01 72 [15:53:19]Write i2c OK [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: D1 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: D1 01 00 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: D1 01 00 9B 05 00 71 [15:53:19]Write to MH i2c: 01 00 00 9C 05 A1 [15:53:19]Write i2c OK [15:53:19]MH_I2C_Read... [15:53:20]OFD Sender: No OFD packet to send [15:53:20]*** Cut start [15:53:20]*** Partial cut [15:53:20]*** CUTSNS_PIN = 1 [15:53:20]*** CUTSNS_PIN = 0 [15:53:20]*** Brake cut motor [15:53:21]Read from MH i2c: 01 [15:53:21]MH_I2C_Read... [15:53:21]*** Stop cut motor [15:53:21]*** Cut end [15:53:21]Read from MH i2c: 01 07 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 FF 0F B6 [15:53:21]process_action close_receipt done [15:53:21]requested_data is exist [15:53:21]produce_requested_data [15:53:21]requested_item fm.sn is exist - process it [15:53:21]wFMCommunicate request_size=4 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 11 00 00 [15:53:21]Write to MH i2c: E2 08 00 9D 05 80 11 00 00 00 00 00 00 1C [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 17 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 17 00 9D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 73 [15:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:53:21]wFMCommunicate OK [15:53:21]requested_item fd.num is exist - process it [15:53:21]SAM_PROTO_GetFieldsCounters [15:53:21]wFMCommunicate request_size=4 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 13 00 00 [15:53:21]Write to MH i2c: E2 08 00 9E 05 80 13 00 00 00 00 00 00 1F [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 62 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 62 00 9E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 21 02 00 0E 04 04 00 C5 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 0F [15:53:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 21 02 00 0E 04 04 00 C5 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 [15:53:21]wFMCommunicate OK [15:53:21]SAM_PROTO_GetFieldsCounters done [15:53:21]requested_item shift.num is exist - process it [15:53:21]requested_item shift.opened is exist - process it [15:53:21]req_shift_opened [15:53:21]FM_GetShiftState [15:53:21]SAM_PROTO_GetShiftState [15:53:21]wFMCommunicate request_size=4 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 13 01 00 [15:53:21]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 0E 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B2 [15:53:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:53:21]wFMCommunicate OK [15:53:21]SAM_PROTO_GetShiftState done [15:53:21]FM_GetShiftState done [15:53:21]req_shift_opened done [15:53:21]requested_item shift.open_date is exist - process it [15:53:21]req_shift_open_date [15:53:21]req_shift_open_date done [15:53:21]produce_requested_data done [15:53:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139773,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:53:21]process_action_free close_receipt [15:53:21]json_value_free [15:53:21]json_value_free done [15:53:21]process_json_proto returns [15:53:21]Send response to host [15:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139773,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:53:21]free response buf [15:53:21]execute_script done [15:53:21]execute_script returns [15:53:21]free content buf [15:53:21]Sock 10.Close socket [15:53:21]Sock 10.Thread stoped [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:44]accept exits with 8 [15:54:44]New connection [15:54:44]New thread 3066649956 created [15:54:44]Thread 3066793316 joined [15:54:44]Waiting for new connection... [15:54:44] Sock 8.Parse request [15:54:44]Sock 8.Check first char [15:54:44]Sock 8.First char is OK [15:54:44]request: POST /json_proto HTTP/1.0 [15:54:44]Method: POST [15:54:44]URL: /json_proto [15:54:44]Method is POST - this is cgi request [15:54:44]url: /json_proto [15:54:44]query_string will be loaded in cgi processing [15:54:44]execute_cgi json_proto POST (null) [15:54:44]execute_cgi path=json_proto method=POST [15:54:44]POST find Content-Length [15:54:44]Host: 172.17.45.67:8080 [15:54:44]Content-Length: 663 [15:54:44]Content-Type: application/json [15:54:44] [15:54:44]POST finish read [15:54:44]Found Content-Length = 663 [15:54:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:44]execute_script... [15:54: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)593622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:44]POST & json_proto [15:54:44]process_json_proto [15:54:44]json parsed OK: [15:54:44]protocol is kg_v1.0 [15:54:44]action value=close_receipt [15:54:44]process_action close_receipt [15:54:44]cmd_close_receipt [15:54:44]MH_GetDate [15:54:44]Write to MH i2c: F0 00 00 A0 05 94 [15:54:44]Write i2c OK [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: F0 [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: F0 09 00 [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: F0 09 00 A0 05 00 44 BC C4 66 5F 7F 2B 66 36 [15:54:44]GetLastDocTimeStamp 1724169197 [15:54:44]current date 1724169284 [15:54:44]FM_GetShiftState [15:54:44]SAM_PROTO_GetShiftState [15:54:44]wFMCommunicate request_size=4 [15:54:44]MH_SAM_APDU [15:54:44]CAPDU: 80 13 01 00 [15:54:44]Write to MH i2c: E2 08 00 A1 05 80 13 01 00 00 00 00 00 23 [15:54:44]Write i2c OK [15:54:44]MH_I2C_Read... [15:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:44]Read from MH i2c: E2 [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: E2 0E 00 [15:54:44]MH_I2C_Read... [15:54:44]Read from MH i2c: E2 0E 00 A1 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B4 [15:54:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:54:44]wFMCommunicate OK [15:54:44]SAM_PROTO_GetShiftState done [15:54:44]FM_GetShiftState done [15:54:44]opened in 1724113785 [15:54:44]opened+sec_in_day 1724200185 [15:54:44]quantity*price = 100035 [15:54:44]sum+1 = 100036 [15:54:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 246 20.08.2024 15:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139774 ФПД: 264915757091556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T155444&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139774&fm=264915757091556&tin=02508201610067®Number=0000000000092569&sum=100000 [15:54:45]StoreToDocumentArchive [15:54:45]shift 453 fd 139774 [15:54:45]save to /storage/0453/doc_00139774 [15:54:45]save last doc name /storage/0453/doc_00139774 to /storage/kkm_last_doc_name [15:54:45]save OK [15:54:45]Clear old archive folders... [15:54:45]OFD Sender: No OFD packet to send [15:54:45]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:54:45]tlvbuf is 00D146B0 [15:54:45]SAM_PROTO_ClearQueue [15:54:45]wFMCommunicate request_size=4 [15:54:45]MH_SAM_APDU [15:54:45]CAPDU: 80 09 00 00 [15:54:45]Write to MH i2c: E2 08 00 AE 05 80 09 00 00 00 00 00 00 25 [15:54:45]Write i2c OK [15:54:45]MH_I2C_Read... [15:54:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:45]Read from MH i2c: E2 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 03 00 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [15:54:45]RAPDU: 90 00 [15:54:45]wFMCommunicate OK [15:54:45]SAM_PROTO_ClearQueue done [15:54:45]KKMCreateOFDPacket [15:54:45]OFDProtocolAddRootSTLVToBuf [15:54:45]FM_MakeSignedData [15:54:45]FM_MakeSignedData [15:54:45]SAM_PROTO_SignData [15:54:45]wFMCommunicate request_size=4 [15:54:45]MH_SAM_APDU [15:54:45]CAPDU: 80 0D 01 02 [15:54:45]Write to MH i2c: E2 08 00 AF 05 80 0D 01 02 00 00 00 00 2D [15:54:45]Write i2c OK [15:54:45]MH_I2C_Read... [15:54:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:45]Read from MH i2c: E2 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 03 00 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [15:54:45]RAPDU: 90 00 [15:54:45]wFMCommunicate OK [15:54:45]wFMCommunicate request_size=253 [15:54:45]MH_SAM_APDU [15:54:45]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 44 BC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 21 02 00 35 04 06 00 F0 F0 81 98 CA E4 [15:54:45]Write to MH i2c: E2 00 01 B0 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 44 BC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 21 02 00 35 04 06 00 F0 F0 81 98 CA E4 00 00 53 [15:54:45]Write i2c OK [15:54:45]MH_I2C_Read... [15:54:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:45]Read from MH i2c: E2 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 03 00 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [15:54:45]RAPDU: 90 00 [15:54:45]wFMCommunicate OK [15:54:45]wFMCommunicate request_size=4 [15:54:45]MH_SAM_APDU [15:54:45]CAPDU: 80 0D 03 02 [15:54:45]Write to MH i2c: E2 08 00 B1 05 80 0D 03 02 00 00 00 00 31 [15:54:45]Write i2c OK [15:54:45]MH_I2C_Read... [15:54:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:45]Read from MH i2c: E2 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 0B 00 [15:54:45]MH_I2C_Read... [15:54:45]Read from MH i2c: E2 0B 00 B1 05 00 76 C2 6A 3A 17 3D AC A6 90 00 B4 [15:54:45]RAPDU: 76 C2 6A 3A 17 3D AC A6 90 00 [15:54:45]wFMCommunicate OK [15:54:45]SAM_PROTO_SignData done [15:54:45]FM_MakeSignedData done [15:54:45]CreateOFDProtocolMessage [15:54:45]wFMCommunicate request_size=4 [15:54:45]MH_SAM_APDU [15:54:45]CAPDU: 80 11 00 00 [15:54:45]Write to MH i2c: E2 08 00 B2 05 80 11 00 00 00 00 00 00 31 [15:54:45]Write i2c OK [15:54:45]MH_I2C_Read... [15:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:46]Read from MH i2c: E2 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 17 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 17 00 B2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [15:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:54:46]wFMCommunicate OK [15:54:46]CreateOFDProtocolMessage done [15:54:46]OFDSenderStorePacket 139774 [15:54:46]StoreOFDPacket docnum=139774 [15:54:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 25 2A 00 01 FC 33 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 44 BC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 21 02 00 35 04 06 00 F0 F0 81 98 CA E4 76 C2 6A 3A 17 3D AC A6 [15:54:46]CheckFolder [15:54:46]dirname=/storage/ofd_packets [15:54:46]CheckFolder done [15:54:46]ProducePacketName [15:54:46]name=ofd_packets/00139774 [15:54:46]NVStorageSaveData ofd_packets/00139774 [15:54:46]File name is /storage/ofd_packets/00139774 [15:54:46]Write 294 bytes [15:54:46]NVStorageSaveData done [15:54:46]OFDSenderStorePacket done [15:54:46]KKMCreateOFDPacket done [15:54:46]NVStorageSaveData kkm_last_timestamp [15:54:46]File name is /storage/kkm_last_timestamp [15:54:46]Write 4 bytes [15:54:46]NVStorageSaveData done [15:54:46]ExternCall_PrintAddStr [15:54:46]wPrintStart [15:54:46]Write to MH i2c: 01 00 00 B3 05 B8 [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: 01 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: 01 07 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: 01 07 00 B3 05 00 00 00 00 00 FF 0F CD [15:54:46]RasterBufferAndPrint [15:54:46]line Счет N : (1)593622 [15:54:46]line ИНН: 02508201610067 [15:54:46]line Контрольно-Кассовый Чек [15:54:46]line ПРОДАЖА [15:54:46]line ТРК (МРК, ГНК) : 63 [15:54:46]line Товар: 2710124130 [15:54:46]line SU-92 [15:54:46]line 14.540 * 68.80 [15:54:46]line = 1000.35 [15:54:46]line НДС 12% НСП 1% [15:54:46]line > о реализуемом товаре [15:54:46]line ОКРУГЛЕНИЕ: -0.35 [15:54:46]line ИТОГО: 1000.00 [15:54:46]line Внесено: 1000.00 [15:54:46]line СДАЧА: 0.00 [15:54:46]line НСП 1% : 8.85 [15:54:46]line НДС 12% : 106.23 [15:54:46]line Наличными: 1000.00 [15:54:46]line Безнал.: 0.00 [15:54:46]line Место: АЗС № 136 "Партнер Нефть" [15:54:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:54:46]line СНО: Общий режим [15:54:46]line Чек 246 20.08.2024 15:54 [15:54:46]line Смена: 453 ФФД: 1.0 [15:54:46]line ЗНМ: 0300000067 [15:54:46]line РНМ: 0000000000092569 [15:54:46]line Версия ККМ: 001 [15:54:46]line ФМ: 0000000000871776 [15:54:46]line ФД: 139774 [15:54:46]line ФПД: 264915757091556 [15:54:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T155444&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139774&fm=264915757091556&tin=02508201610067®Number=0000000000092569&sum=100000 [15:54:46]OFD Sender: Processing packet 139774 [packets to send 137, broken 136] [15:54:46]ProducePacketName [15:54:46]name=ofd_packets/00139774 [15:54:46]OFD Sender: To server: pG, [15:54:46]CommunicateWithHost lk.salyk.kg:30040 [15:54:46]ConnectInit lk.salyk.kg [15:54:46]written 0, free lines is 4095 [15:54:46]Connected sock=10 [15:54:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 25 2A 00 01 FC 33 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 44 BC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 21 02 00 35 04 06 00 F0 F0 81 98 CA E4 76 C2 6A 3A 17 3D AC A6 [15:54:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2E D5 47 00 95 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 21 02 00 F4 03 04 00 D7 62 C4 66 B6 04 01 00 00 CB 3C AF 6F DD 87 B3 3D [15:54:46]CommunicateWithHost err = 0 [15:54:46]CheckOFDResponse [15:54:46]1017 (14) - 77093643461234 [15:54:46]1041 (16) - 0000000000871776 [15:54:46]1040 (4) - 139774 [15:54:46]1012 (4) - 20.08.2024 09:33 [15:54:46]1206 (1) - 0 [15:54:46]OFD Sender: Remove packet 139774 [15:54:46]ProducePacketName [15:54:46]name=ofd_packets/00139774 [15:54:46]NVStorageDeleteData [15:54:46]Write to MH i2c: 01 00 00 DE 05 E3 [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: 01 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: 01 07 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 CF 0C C5 [15:54:46]RasterBufferAndPrint [15:54:46]line [15:54:46]line [15:54:46]line [15:54:46]line [15:54:46]line [15:54:46]written 0, free lines is 3285 [15:54:46]MH_Cut [15:54:46]Write to MH i2c: D1 01 00 E5 05 01 BC [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: D1 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: D1 01 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: D1 01 00 E5 05 00 BB [15:54:46]Write to MH i2c: 01 00 00 E6 05 EB [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:47]OFD Sender: No OFD packet to send [15:54:47]*** Cut start [15:54:47]*** Partial cut [15:54:47]*** CUTSNS_PIN = 1 [15:54:47]*** CUTSNS_PIN = 0 [15:54:47]*** Brake cut motor [15:54:48]Read from MH i2c: 01 [15:54:48]MH_I2C_Read... [15:54:48]*** Stop cut motor [15:54:48]*** Cut end [15:54:48]Read from MH i2c: 01 07 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: 01 07 00 E6 05 00 00 00 00 00 FF 0F 00 [15:54:48]process_action close_receipt done [15:54:48]requested_data is exist [15:54:48]produce_requested_data [15:54:48]requested_item fm.sn is exist - process it [15:54:48]wFMCommunicate request_size=4 [15:54:48]MH_SAM_APDU [15:54:48]CAPDU: 80 11 00 00 [15:54:48]Write to MH i2c: E2 08 00 E7 05 80 11 00 00 00 00 00 00 66 [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:48]Read from MH i2c: E2 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 17 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 17 00 E7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [15:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:54:48]wFMCommunicate OK [15:54:48]requested_item fd.num is exist - process it [15:54:48]SAM_PROTO_GetFieldsCounters [15:54:48]wFMCommunicate request_size=4 [15:54:48]MH_SAM_APDU [15:54:48]CAPDU: 80 13 00 00 [15:54:48]Write to MH i2c: E2 08 00 E8 05 80 13 00 00 00 00 00 00 69 [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:48]Read from MH i2c: E2 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 62 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 62 00 E8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 21 02 00 0E 04 04 00 C5 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 5D [15:54:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 21 02 00 0E 04 04 00 C5 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 [15:54:48]wFMCommunicate OK [15:54:48]SAM_PROTO_GetFieldsCounters done [15:54:48]requested_item shift.num is exist - process it [15:54:48]requested_item shift.opened is exist - process it [15:54:48]req_shift_opened [15:54:48]FM_GetShiftState [15:54:48]SAM_PROTO_GetShiftState [15:54:48]wFMCommunicate request_size=4 [15:54:48]MH_SAM_APDU [15:54:48]CAPDU: 80 13 01 00 [15:54:48]Write to MH i2c: E2 08 00 E9 05 80 13 01 00 00 00 00 00 6B [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:48]Read from MH i2c: E2 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 0E 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: E2 0E 00 E9 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FC [15:54:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:54:48]wFMCommunicate OK [15:54:48]SAM_PROTO_GetShiftState done [15:54:48]FM_GetShiftState done [15:54:48]req_shift_opened done [15:54:48]requested_item shift.open_date is exist - process it [15:54:48]req_shift_open_date [15:54:48]req_shift_open_date done [15:54:48]produce_requested_data done [15:54:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139774,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [15:54:48]process_action_free close_receipt [15:54:48]json_value_free [15:54:48]json_value_free done [15:54:48]process_json_proto returns [15:54:48]Send response to host [15:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139774,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [15:54:48]free response buf [15:54:48]execute_script done [15:54:48]execute_script returns [15:54:48]free content buf [15:54:48]Sock 8.Close socket [15:54:48]Sock 8.Thread stoped [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [15:59:58]accept exits with 9 [15:59:58]New connection [15:59:58]New thread 3066793316 created [15:59:58]Thread 3066649956 joined [15:59:58]Waiting for new connection... [15:59:58] Sock 9.Parse request [15:59:58]Sock 9.Check first char [15:59:58]Sock 9.First char is OK [15:59:58]request: POST /json_proto HTTP/1.0 [15:59:58]Method: POST [15:59:58]URL: /json_proto [15:59:58]Method is POST - this is cgi request [15:59:58]url: /json_proto [15:59:58]query_string will be loaded in cgi processing [15:59:58]execute_cgi json_proto POST (null) [15:59:58]execute_cgi path=json_proto method=POST [15:59:58]POST find Content-Length [15:59:58]Host: 172.17.45.67:8080 [15:59:58]Content-Length: 677 [15:59:58]Content-Type: application/json [15:59:58] [15:59:58]POST finish read [15:59:58]Found Content-Length = 677 [15:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:58]execute_script... [15:59:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:58]POST & json_proto [15:59:58]process_json_proto [15:59:58]json parsed OK: [15:59:58]protocol is kg_v1.0 [15:59:58]action value=close_receipt [15:59:58]process_action close_receipt [15:59:58]cmd_close_receipt [15:59:58]MH_GetDate [15:59:58]Write to MH i2c: F0 00 00 EA 05 DE [15:59:58]Write i2c OK [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: F0 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: F0 09 00 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: F0 09 00 EA 05 00 7E BD C4 66 5F 7F 2B 66 BB [15:59:58]GetLastDocTimeStamp 1724169284 [15:59:58]current date 1724169598 [15:59:58]FM_GetShiftState [15:59:58]SAM_PROTO_GetShiftState [15:59:58]wFMCommunicate request_size=4 [15:59:58]MH_SAM_APDU [15:59:58]CAPDU: 80 13 01 00 [15:59:58]Write to MH i2c: E2 08 00 EB 05 80 13 01 00 00 00 00 00 6D [15:59:58]Write i2c OK [15:59:58]MH_I2C_Read... [15:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:58]Read from MH i2c: E2 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 0E 00 [15:59:58]MH_I2C_Read... [15:59:58]Read from MH i2c: E2 0E 00 EB 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FE [15:59:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [15:59:58]wFMCommunicate OK [15:59:58]SAM_PROTO_GetShiftState done [15:59:58]FM_GetShiftState done [15:59:58]opened in 1724113785 [15:59:58]opened+sec_in_day 1724200185 [15:59:58]quantity*price = 30035 [15:59:58]sum+1 = 30036 [15:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 247 20.08.2024 15:59 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139775 ФПД: 7965550006624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T155958&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139775&fm=7965550006624&tin=02508201610067®Number=0000000000092569&sum=30000 [15:59:59]StoreToDocumentArchive [15:59:59]shift 453 fd 139775 [15:59:59]save to /storage/0453/doc_00139775 [15:59:59]save last doc name /storage/0453/doc_00139775 to /storage/kkm_last_doc_name [15:59:59]save OK [15:59:59]Clear old archive folders... [15:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:59]tlvbuf is 00D0ACE0 [15:59:59]SAM_PROTO_ClearQueue [15:59:59]wFMCommunicate request_size=4 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 09 00 00 [15:59:59]Write to MH i2c: E2 08 00 F8 05 80 09 00 00 00 00 00 00 6F [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [15:59:59]RAPDU: 90 00 [15:59:59]wFMCommunicate OK [15:59:59]SAM_PROTO_ClearQueue done [15:59:59]KKMCreateOFDPacket [15:59:59]OFDProtocolAddRootSTLVToBuf [15:59:59]FM_MakeSignedData [15:59:59]FM_MakeSignedData [15:59:59]SAM_PROTO_SignData [15:59:59]wFMCommunicate request_size=4 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 0D 01 02 [15:59:59]Write to MH i2c: E2 08 00 F9 05 80 0D 01 02 00 00 00 00 77 [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [15:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:59]Read from MH i2c: E2 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 [15:59:59]MH_I2C_Read... [15:59:59]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [15:59:59]RAPDU: 90 00 [15:59:59]wFMCommunicate OK [15:59:59]wFMCommunicate request_size=255 [15:59:59]MH_SAM_APDU [15:59:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7E BD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 21 02 00 35 04 06 00 07 [15:59:59]Write to MH i2c: E2 02 01 FA 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7E BD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 21 02 00 35 04 06 00 07 00 00 6A [15:59:59]Write i2c OK [15:59:59]MH_I2C_Read... [16:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:00]Read from MH i2c: E2 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 03 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [16:00:00]RAPDU: 90 00 [16:00:00]wFMCommunicate OK [16:00:00]wFMCommunicate request_size=10 [16:00:00]MH_SAM_APDU [16:00:00]CAPDU: 80 0D 02 02 05 3E 9F C7 51 60 [16:00:00]Write to MH i2c: E2 0D 00 FB 05 80 0D 02 02 05 00 3E 9F C7 51 60 00 00 D9 [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:00]Read from MH i2c: E2 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 03 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 03 00 FB 05 00 90 00 74 [16:00:00]RAPDU: 90 00 [16:00:00]wFMCommunicate OK [16:00:00]wFMCommunicate request_size=4 [16:00:00]MH_SAM_APDU [16:00:00]CAPDU: 80 0D 03 02 [16:00:00]Write to MH i2c: E2 08 00 FC 05 80 0D 03 02 00 00 00 00 7C [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:00]Read from MH i2c: E2 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 0B 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 0B 00 FC 05 00 95 6A D1 A2 16 66 70 90 90 00 6B [16:00:00]RAPDU: 95 6A D1 A2 16 66 70 90 90 00 [16:00:00]wFMCommunicate OK [16:00:00]SAM_PROTO_SignData done [16:00:00]FM_MakeSignedData done [16:00:00]CreateOFDProtocolMessage [16:00:00]wFMCommunicate request_size=4 [16:00:00]MH_SAM_APDU [16:00:00]CAPDU: 80 11 00 00 [16:00:00]Write to MH i2c: E2 08 00 FD 05 80 11 00 00 00 00 00 00 7C [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:00]Read from MH i2c: E2 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 17 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 17 00 FD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [16:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:00:00]wFMCommunicate OK [16:00:00]CreateOFDProtocolMessage done [16:00:00]OFDSenderStorePacket 139775 [16:00:00]StoreOFDPacket docnum=139775 [16:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 89 A6 07 01 04 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7E BD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 21 02 00 35 04 06 00 07 3E 9F C7 51 60 95 6A D1 A2 16 66 70 90 [16:00:00]CheckFolder [16:00:00]dirname=/storage/ofd_packets [16:00:00]CheckFolder done [16:00:00]ProducePacketName [16:00:00]name=ofd_packets/00139775 [16:00:00]NVStorageSaveData ofd_packets/00139775 [16:00:00]File name is /storage/ofd_packets/00139775 [16:00:00]Write 301 bytes [16:00:00]NVStorageSaveData done [16:00:00]OFDSenderStorePacket done [16:00:00]KKMCreateOFDPacket done [16:00:00]NVStorageSaveData kkm_last_timestamp [16:00:00]File name is /storage/kkm_last_timestamp [16:00:00]Write 4 bytes [16:00:00]NVStorageSaveData done [16:00:00]ExternCall_PrintAddStr [16:00:00]wPrintStart [16:00:00]Write to MH i2c: 01 00 00 FE 05 03 [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: 01 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: 01 07 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: 01 07 00 FE 05 00 00 00 00 00 FF 0F 18 [16:00:00]RasterBufferAndPrint [16:00:00]line Счет N : (1)593623 [16:00:00]line ИНН: 02508201610067 [16:00:00]line Контрольно-Кассовый Чек [16:00:00]line ПРОДАЖА [16:00:00]line ТРК (МРК, ГНК) : 52 [16:00:00]line Товар: 2710124130 [16:00:00]line Аи-92-К-5 [16:00:00]line 4.430 * 67.80 [16:00:00]line = 300.35 [16:00:00]line НДС 12% НСП 1% [16:00:00]line > о реализуемом товаре [16:00:00]line ОКРУГЛЕНИЕ: -0.35 [16:00:00]line ИТОГО: 300.00 [16:00:00]line Внесено: 300.00 [16:00:00]line СДАЧА: 0.00 [16:00:00]line НСП 1% : 2.66 [16:00:00]line НДС 12% : 31.90 [16:00:00]line Наличными: 300.00 [16:00:00]line Безнал.: 0.00 [16:00:00]line Место: АЗС № 136 "Партнер Нефть" [16:00:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:00:00]line СНО: Общий режим [16:00:00]line Чек 247 20.08.2024 15:59 [16:00:00]line Смена: 453 ФФД: 1.0 [16:00:00]line ЗНМ: 0300000067 [16:00:00]line РНМ: 0000000000092569 [16:00:00]line Версия ККМ: 001 [16:00:00]line ФМ: 0000000000871776 [16:00:00]line ФД: 139775 [16:00:00]line ФПД: 7965550006624 [16:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T155958&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139775&fm=7965550006624&tin=02508201610067®Number=0000000000092569&sum=30000 [16:00:00]written 0, free lines is 4095 [16:00:00]OFD Sender: Processing packet 139775 [packets to send 137, broken 136] [16:00:00]ProducePacketName [16:00:00]name=ofd_packets/00139775 [16:00:00]OFD Sender: To server: pG, [16:00:00]CommunicateWithHost lk.salyk.kg:30040 [16:00:00]ConnectInit lk.salyk.kg [16:00:00]Connected sock=8 [16:00:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 89 A6 07 01 04 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7E BD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 21 02 00 35 04 06 00 07 3E 9F C7 51 60 95 6A D1 A2 16 66 70 90 [16:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 0B 4D 47 00 80 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 21 02 00 F4 03 04 00 11 64 C4 66 B6 04 01 00 00 13 AD 9C C4 0D 78 68 75 [16:00:00]CommunicateWithHost err = 0 [16:00:00]CheckOFDResponse [16:00:00]1017 (14) - 77093643461234 [16:00:00]1041 (16) - 0000000000871776 [16:00:00]1040 (4) - 139775 [16:00:00]1012 (4) - 20.08.2024 09:38 [16:00:00]1206 (1) - 0 [16:00:00]OFD Sender: Remove packet 139775 [16:00:00]ProducePacketName [16:00:00]name=ofd_packets/00139775 [16:00:00]NVStorageDeleteData [16:00:01]Write to MH i2c: 01 00 00 29 06 2F [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: 01 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: 01 07 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 CD 0C 0F [16:00:01]RasterBufferAndPrint [16:00:01]line [16:00:01]line [16:00:01]line [16:00:01]line [16:00:01]line [16:00:01]written 0, free lines is 3283 [16:00:01]MH_Cut [16:00:01]Write to MH i2c: D1 01 00 30 06 01 08 [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: D1 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: D1 01 00 [16:00:01]MH_I2C_Read... [16:00:01]Read from MH i2c: D1 01 00 30 06 00 07 [16:00:01]Write to MH i2c: 01 00 00 31 06 37 [16:00:01]Write i2c OK [16:00:01]MH_I2C_Read... [16:00:01]OFD Sender: No OFD packet to send [16:00:01]*** Cut start [16:00:01]*** Partial cut [16:00:01]*** CUTSNS_PIN = 1 [16:00:01]*** CUTSNS_PIN = 0 [16:00:01]*** Brake cut motor [16:00:02]Read from MH i2c: 01 [16:00:02]MH_I2C_Read... [16:00:02]*** Stop cut motor [16:00:02]*** Cut end [16:00:02]Read from MH i2c: 01 07 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: 01 07 00 31 06 00 00 00 00 00 FF 0F 4C [16:00:02]process_action close_receipt done [16:00:02]requested_data is exist [16:00:02]produce_requested_data [16:00:02]requested_item fm.sn is exist - process it [16:00:02]wFMCommunicate request_size=4 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 11 00 00 [16:00:02]Write to MH i2c: E2 08 00 32 06 80 11 00 00 00 00 00 00 B2 [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 17 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 17 00 32 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [16:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:00:02]wFMCommunicate OK [16:00:02]requested_item fd.num is exist - process it [16:00:02]SAM_PROTO_GetFieldsCounters [16:00:02]wFMCommunicate request_size=4 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 13 00 00 [16:00:02]Write to MH i2c: E2 08 00 33 06 80 13 00 00 00 00 00 00 B5 [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 62 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 62 00 33 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 21 02 00 0E 04 04 00 C5 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 AD [16:00:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 21 02 00 0E 04 04 00 C5 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 [16:00:02]wFMCommunicate OK [16:00:02]SAM_PROTO_GetFieldsCounters done [16:00:02]requested_item shift.num is exist - process it [16:00:02]requested_item shift.opened is exist - process it [16:00:02]req_shift_opened [16:00:02]FM_GetShiftState [16:00:02]SAM_PROTO_GetShiftState [16:00:02]wFMCommunicate request_size=4 [16:00:02]MH_SAM_APDU [16:00:02]CAPDU: 80 13 01 00 [16:00:02]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [16:00:02]Write i2c OK [16:00:02]MH_I2C_Read... [16:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:02]Read from MH i2c: E2 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 0E 00 [16:00:02]MH_I2C_Read... [16:00:02]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 48 [16:00:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:00:02]wFMCommunicate OK [16:00:02]SAM_PROTO_GetShiftState done [16:00:02]FM_GetShiftState done [16:00:02]req_shift_opened done [16:00:02]requested_item shift.open_date is exist - process it [16:00:02]req_shift_open_date [16:00:02]req_shift_open_date done [16:00:02]produce_requested_data done [16:00:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139775,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:00:02]process_action_free close_receipt [16:00:02]json_value_free [16:00:02]json_value_free done [16:00:02]process_json_proto returns [16:00:02]Send response to host [16:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139775,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:00:02]free response buf [16:00:02]execute_script done [16:00:02]execute_script returns [16:00:02]free content buf [16:00:02]Sock 9.Close socket [16:00:02]Sock 9.Thread stoped [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:38]accept exits with 10 [16:02:38]New connection [16:02:38]New thread 3066649956 created [16:02:38]Thread 3066793316 joined [16:02:38]Waiting for new connection... [16:02:38] Sock 10.Parse request [16:02:38]Sock 10.Check first char [16:02:38]Sock 10.First char is OK [16:02:38]request: POST /json_proto HTTP/1.0 [16:02:38]Method: POST [16:02:38]URL: /json_proto [16:02:38]Method is POST - this is cgi request [16:02:38]url: /json_proto [16:02:38]query_string will be loaded in cgi processing [16:02:38]execute_cgi json_proto POST (null) [16:02:38]execute_cgi path=json_proto method=POST [16:02:38]POST find Content-Length [16:02:38]Host: 172.17.45.67:8080 [16:02:38]Content-Length: 663 [16:02:38]Content-Type: application/json [16:02:38] [16:02:38]POST finish read [16:02:38]Found Content-Length = 663 [16:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:38]execute_script... [16:02: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)593624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:38]POST & json_proto [16:02:38]process_json_proto [16:02:38]json parsed OK: [16:02:38]protocol is kg_v1.0 [16:02:38]action value=close_receipt [16:02:38]process_action close_receipt [16:02:38]cmd_close_receipt [16:02:38]MH_GetDate [16:02:38]Write to MH i2c: F0 00 00 35 06 2A [16:02:38]Write i2c OK [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: F0 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: F0 09 00 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: F0 09 00 35 06 00 1F BE C4 66 5F 7F 2B 66 A9 [16:02:38]GetLastDocTimeStamp 1724169598 [16:02:38]current date 1724169759 [16:02:38]FM_GetShiftState [16:02:38]SAM_PROTO_GetShiftState [16:02:38]wFMCommunicate request_size=4 [16:02:38]MH_SAM_APDU [16:02:38]CAPDU: 80 13 01 00 [16:02:38]Write to MH i2c: E2 08 00 36 06 80 13 01 00 00 00 00 00 B9 [16:02:38]Write i2c OK [16:02:38]MH_I2C_Read... [16:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:38]Read from MH i2c: E2 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: E2 0E 00 [16:02:38]MH_I2C_Read... [16:02:38]Read from MH i2c: E2 0E 00 36 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4A [16:02:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:02:38]wFMCommunicate OK [16:02:38]SAM_PROTO_GetShiftState done [16:02:38]FM_GetShiftState done [16:02:38]opened in 1724113785 [16:02:38]opened+sec_in_day 1724200185 [16:02:38]quantity*price = 100035 [16:02:38]sum+1 = 100036 [16:02:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 248 20.08.2024 16:02 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139776 ФПД: 46260414291168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160239&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139776&fm=46260414291168&tin=02508201610067®Number=0000000000092569&sum=100000 [16:02:39]StoreToDocumentArchive [16:02:39]shift 453 fd 139776 [16:02:39]save to /storage/0453/doc_00139776 [16:02:39]save last doc name /storage/0453/doc_00139776 to /storage/kkm_last_doc_name [16:02:39]save OK [16:02:39]Clear old archive folders... [16:02:39]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:02:39]tlvbuf is 00D2CF50 [16:02:39]SAM_PROTO_ClearQueue [16:02:39]wFMCommunicate request_size=4 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 09 00 00 [16:02:39]Write to MH i2c: E2 08 00 43 06 80 09 00 00 00 00 00 00 BB [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:39]Read from MH i2c: E2 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 03 00 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [16:02:39]RAPDU: 90 00 [16:02:39]wFMCommunicate OK [16:02:39]SAM_PROTO_ClearQueue done [16:02:39]KKMCreateOFDPacket [16:02:39]OFDProtocolAddRootSTLVToBuf [16:02:39]FM_MakeSignedData [16:02:39]FM_MakeSignedData [16:02:39]SAM_PROTO_SignData [16:02:39]wFMCommunicate request_size=4 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 0D 01 02 [16:02:39]Write to MH i2c: E2 08 00 44 06 80 0D 01 02 00 00 00 00 C3 [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:39]Read from MH i2c: E2 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 03 00 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [16:02:39]RAPDU: 90 00 [16:02:39]wFMCommunicate OK [16:02:39]wFMCommunicate request_size=253 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1F BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 22 02 00 35 04 06 00 2A 12 D7 8F 9C E0 [16:02:39]Write to MH i2c: E2 00 01 45 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1F BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 22 02 00 35 04 06 00 2A 12 D7 8F 9C E0 00 00 42 [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 03 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [16:02:40]RAPDU: 90 00 [16:02:40]wFMCommunicate OK [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 0D 03 02 [16:02:40]Write to MH i2c: E2 08 00 46 06 80 0D 03 02 00 00 00 00 C7 [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 0B 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 0B 00 46 06 00 EF 50 58 55 B8 D2 EE 8F 90 00 BB [16:02:40]RAPDU: EF 50 58 55 B8 D2 EE 8F 90 00 [16:02:40]wFMCommunicate OK [16:02:40]SAM_PROTO_SignData done [16:02:40]FM_MakeSignedData done [16:02:40]CreateOFDProtocolMessage [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 11 00 00 [16:02:40]Write to MH i2c: E2 08 00 47 06 80 11 00 00 00 00 00 00 C7 [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 17 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 17 00 47 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [16:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:02:40]wFMCommunicate OK [16:02:40]CreateOFDProtocolMessage done [16:02:40]OFDSenderStorePacket 139776 [16:02:40]StoreOFDPacket docnum=139776 [16:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 0D CD 00 01 03 7B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1F BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 22 02 00 35 04 06 00 2A 12 D7 8F 9C E0 EF 50 58 55 B8 D2 EE 8F [16:02:40]CheckFolder [16:02:40]dirname=/storage/ofd_packets [16:02:40]CheckFolder done [16:02:40]ProducePacketName [16:02:40]name=ofd_packets/00139776 [16:02:40]NVStorageSaveData ofd_packets/00139776 [16:02:40]File name is /storage/ofd_packets/00139776 [16:02:40]Write 294 bytes [16:02:40]NVStorageSaveData done [16:02:40]OFDSenderStorePacket done [16:02:40]KKMCreateOFDPacket done [16:02:40]NVStorageSaveData kkm_last_timestamp [16:02:40]File name is /storage/kkm_last_timestamp [16:02:40]Write 4 bytes [16:02:40]NVStorageSaveData done [16:02:40]ExternCall_PrintAddStr [16:02:40]wPrintStart [16:02:40]Write to MH i2c: 01 00 00 48 06 4E [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: 01 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: 01 07 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: 01 07 00 48 06 00 00 00 00 00 FF 0F 63 [16:02:40]RasterBufferAndPrint [16:02:40]line Счет N : (1)593624 [16:02:40]line ИНН: 02508201610067 [16:02:40]line Контрольно-Кассовый Чек [16:02:40]line ПРОДАЖА [16:02:40]line ТРК (МРК, ГНК) : 43 [16:02:40]line Товар: 2710124130 [16:02:40]line SU-92 [16:02:40]line 14.540 * 68.80 [16:02:40]line = 1000.35 [16:02:40]line НДС 12% НСП 1% [16:02:40]line > о реализуемом товаре [16:02:40]line ОКРУГЛЕНИЕ: -0.35 [16:02:40]line ИТОГО: 1000.00 [16:02:40]line Внесено: 1000.00 [16:02:40]line СДАЧА: 0.00 [16:02:40]line НСП 1% : 8.85 [16:02:40]line НДС 12% : 106.23 [16:02:40]line Наличными: 1000.00 [16:02:40]line Безнал.: 0.00 [16:02:40]line Место: АЗС № 136 "Партнер Нефть" [16:02:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:02:40]line СНО: Общий режим [16:02:40]line Чек 248 20.08.2024 16:02 [16:02:40]line Смена: 453 ФФД: 1.0 [16:02:40]line ЗНМ: 0300000067 [16:02:40]line РНМ: 0000000000092569 [16:02:40]line Версия ККМ: 001 [16:02:40]line ФМ: 0000000000871776 [16:02:40]line ФД: 139776 [16:02:40]line ФПД: 46260414291168 [16:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160239&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139776&fm=46260414291168&tin=02508201610067®Number=0000000000092569&sum=100000 [16:02:40]OFD Sender: Processing packet 139776 [packets to send 137, broken 136] [16:02:40]ProducePacketName [16:02:40]name=ofd_packets/00139776 [16:02:40]OFD Sender: To server: pG, [16:02:40]CommunicateWithHost lk.salyk.kg:30040 [16:02:40]ConnectInit lk.salyk.kg [16:02:40]written 0, free lines is 4095 [16:02:40]Connected sock=9 [16:02:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 0D CD 00 01 03 7B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 1F BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 22 02 00 35 04 06 00 2A 12 D7 8F 9C E0 EF 50 58 55 B8 D2 EE 8F [16:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 0E 2B 47 00 39 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 22 02 00 F4 03 04 00 B2 64 C4 66 B6 04 01 00 00 F3 9B CA D5 AC 67 4F F0 [16:02:41]CommunicateWithHost err = 0 [16:02:41]CheckOFDResponse [16:02:41]1017 (14) - 77093643461234 [16:02:41]1041 (16) - 0000000000871776 [16:02:41]1040 (4) - 139776 [16:02:41]1012 (4) - 20.08.2024 09:41 [16:02:41]1206 (1) - 0 [16:02:41]OFD Sender: Remove packet 139776 [16:02:41]ProducePacketName [16:02:41]name=ofd_packets/00139776 [16:02:41]NVStorageDeleteData [16:02:41]Write to MH i2c: 01 00 00 73 06 79 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 07 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 07 00 73 06 00 00 00 00 00 CF 0C 5B [16:02:41]RasterBufferAndPrint [16:02:41]line [16:02:41]line [16:02:41]line [16:02:41]line [16:02:41]line [16:02:41]written 0, free lines is 3284 [16:02:41]MH_Cut [16:02:41]Write to MH i2c: D1 01 00 7A 06 01 52 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: D1 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: D1 01 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: D1 01 00 7A 06 00 51 [16:02:41]Write to MH i2c: 01 00 00 7B 06 81 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]OFD Sender: No OFD packet to send [16:02:41]*** Cut start [16:02:41]*** Partial cut [16:02:41]*** CUTSNS_PIN = 1 [16:02:41]*** CUTSNS_PIN = 0 [16:02:42]*** Brake cut motor [16:02:42]Read from MH i2c: 01 [16:02:42]MH_I2C_Read... [16:02:42]*** Stop cut motor [16:02:42]*** Cut end [16:02:42]Read from MH i2c: 01 07 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 FF 0F 96 [16:02:42]process_action close_receipt done [16:02:42]requested_data is exist [16:02:42]produce_requested_data [16:02:42]requested_item fm.sn is exist - process it [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 11 00 00 [16:02:42]Write to MH i2c: E2 08 00 7C 06 80 11 00 00 00 00 00 00 FC [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 17 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 17 00 7C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [16:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:02:42]wFMCommunicate OK [16:02:42]requested_item fd.num is exist - process it [16:02:42]SAM_PROTO_GetFieldsCounters [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 13 00 00 [16:02:42]Write to MH i2c: E2 08 00 7D 06 80 13 00 00 00 00 00 00 FF [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 62 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 62 00 7D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 22 02 00 0E 04 04 00 C5 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 FC [16:02:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 22 02 00 0E 04 04 00 C5 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 [16:02:42]wFMCommunicate OK [16:02:42]SAM_PROTO_GetFieldsCounters done [16:02:42]requested_item shift.num is exist - process it [16:02:42]requested_item shift.opened is exist - process it [16:02:42]req_shift_opened [16:02:42]FM_GetShiftState [16:02:42]SAM_PROTO_GetShiftState [16:02:42]wFMCommunicate request_size=4 [16:02:42]MH_SAM_APDU [16:02:42]CAPDU: 80 13 01 00 [16:02:42]Write to MH i2c: E2 08 00 7E 06 80 13 01 00 00 00 00 00 01 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:42]Read from MH i2c: E2 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0E 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: E2 0E 00 7E 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 92 [16:02:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:02:42]wFMCommunicate OK [16:02:42]SAM_PROTO_GetShiftState done [16:02:42]FM_GetShiftState done [16:02:42]req_shift_opened done [16:02:42]requested_item shift.open_date is exist - process it [16:02:42]req_shift_open_date [16:02:42]req_shift_open_date done [16:02:42]produce_requested_data done [16:02:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139776,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:02:42]process_action_free close_receipt [16:02:42]json_value_free [16:02:42]json_value_free done [16:02:42]process_json_proto returns [16:02:42]Send response to host [16:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139776,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:02:42]free response buf [16:02:42]execute_script done [16:02:42]execute_script returns [16:02:42]free content buf [16:02:42]Sock 10.Close socket [16:02:42]Sock 10.Thread stoped [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:24]accept exits with 8 [16:04:24]New connection [16:04:24]New thread 3066793316 created [16:04:24]Thread 3066649956 joined [16:04:24]Waiting for new connection... [16:04:24] Sock 8.Parse request [16:04:24]Sock 8.Check first char [16:04:24]Sock 8.First char is OK [16:04:24]request: POST /json_proto HTTP/1.0 [16:04:24]Method: POST [16:04:24]URL: /json_proto [16:04:24]Method is POST - this is cgi request [16:04:24]url: /json_proto [16:04:24]query_string will be loaded in cgi processing [16:04:24]execute_cgi json_proto POST (null) [16:04:24]execute_cgi path=json_proto method=POST [16:04:24]POST find Content-Length [16:04:24]Host: 172.17.45.67:8080 [16:04:24]Content-Length: 677 [16:04:24]Content-Type: application/json [16:04:24] [16:04:24]POST finish read [16:04:24]Found Content-Length = 677 [16:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:24]execute_script... [16:04: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)593625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:24]POST & json_proto [16:04:24]process_json_proto [16:04:24]json parsed OK: [16:04:24]protocol is kg_v1.0 [16:04:24]action value=close_receipt [16:04:24]process_action close_receipt [16:04:24]cmd_close_receipt [16:04:24]MH_GetDate [16:04:24]Write to MH i2c: F0 00 00 7F 06 74 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: F0 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: F0 09 00 [16:04:24]MH_I2C_Read... [16:04:24]Read from MH i2c: F0 09 00 7F 06 00 89 BE C4 66 5F 7F 2B 66 5D [16:04:24]GetLastDocTimeStamp 1724169759 [16:04:24]current date 1724169865 [16:04:24]FM_GetShiftState [16:04:24]SAM_PROTO_GetShiftState [16:04:24]wFMCommunicate request_size=4 [16:04:24]MH_SAM_APDU [16:04:24]CAPDU: 80 13 01 00 [16:04:24]Write to MH i2c: E2 08 00 80 06 80 13 01 00 00 00 00 00 03 [16:04:24]Write i2c OK [16:04:24]MH_I2C_Read... [16:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:25]Read from MH i2c: E2 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: E2 0E 00 [16:04:25]MH_I2C_Read... [16:04:25]Read from MH i2c: E2 0E 00 80 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 94 [16:04:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:04:25]wFMCommunicate OK [16:04:25]SAM_PROTO_GetShiftState done [16:04:25]FM_GetShiftState done [16:04:25]opened in 1724113785 [16:04:25]opened+sec_in_day 1724200185 [16:04:25]quantity*price = 50036 [16:04:25]sum+1 = 50037 [16:04:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 249 20.08.2024 16:04 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139777 ФПД: 110163401853175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160425&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139777&fm=110163401853175&tin=02508201610067®Number=0000000000092569&sum=50000 [16:04:26]StoreToDocumentArchive [16:04:26]shift 453 fd 139777 [16:04:26]save to /storage/0453/doc_00139777 [16:04:26]save last doc name /storage/0453/doc_00139777 to /storage/kkm_last_doc_name [16:04:26]save OK [16:04:26]Clear old archive folders... [16:04:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:26]tlvbuf is 00D28530 [16:04:26]SAM_PROTO_ClearQueue [16:04:26]wFMCommunicate request_size=4 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 09 00 00 [16:04:26]Write to MH i2c: E2 08 00 8D 06 80 09 00 00 00 00 00 00 05 [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 03 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [16:04:26]RAPDU: 90 00 [16:04:26]wFMCommunicate OK [16:04:26]SAM_PROTO_ClearQueue done [16:04:26]KKMCreateOFDPacket [16:04:26]OFDProtocolAddRootSTLVToBuf [16:04:26]FM_MakeSignedData [16:04:26]FM_MakeSignedData [16:04:26]SAM_PROTO_SignData [16:04:26]wFMCommunicate request_size=4 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 0D 01 02 [16:04:26]Write to MH i2c: E2 08 00 8E 06 80 0D 01 02 00 00 00 00 0D [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 03 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [16:04:26]RAPDU: 90 00 [16:04:26]wFMCommunicate OK [16:04:26]wFMCommunicate request_size=255 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 89 BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 22 02 00 35 04 06 00 64 [16:04:26]Write to MH i2c: E2 02 01 8F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 89 BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 22 02 00 35 04 06 00 64 00 00 4F [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 03 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [16:04:26]RAPDU: 90 00 [16:04:26]wFMCommunicate OK [16:04:26]wFMCommunicate request_size=10 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 0D 02 02 05 31 6A 6F 48 F7 [16:04:26]Write to MH i2c: E2 0D 00 90 06 80 0D 02 02 05 00 31 6A 6F 48 F7 00 00 63 [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 03 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [16:04:26]RAPDU: 90 00 [16:04:26]wFMCommunicate OK [16:04:26]wFMCommunicate request_size=4 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 0D 03 02 [16:04:26]Write to MH i2c: E2 08 00 91 06 80 0D 03 02 00 00 00 00 12 [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 0B 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 0B 00 91 06 00 50 62 94 5E E7 2C 62 88 90 00 B4 [16:04:26]RAPDU: 50 62 94 5E E7 2C 62 88 90 00 [16:04:26]wFMCommunicate OK [16:04:26]SAM_PROTO_SignData done [16:04:26]FM_MakeSignedData done [16:04:26]CreateOFDProtocolMessage [16:04:26]wFMCommunicate request_size=4 [16:04:26]MH_SAM_APDU [16:04:26]CAPDU: 80 11 00 00 [16:04:26]Write to MH i2c: E2 08 00 92 06 80 11 00 00 00 00 00 00 12 [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:26]Read from MH i2c: E2 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 17 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: E2 17 00 92 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [16:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:04:26]wFMCommunicate OK [16:04:26]CreateOFDProtocolMessage done [16:04:26]OFDSenderStorePacket 139777 [16:04:26]StoreOFDPacket docnum=139777 [16:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 87 54 07 01 E5 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 89 BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 22 02 00 35 04 06 00 64 31 6A 6F 48 F7 50 62 94 5E E7 2C 62 88 [16:04:26]CheckFolder [16:04:26]dirname=/storage/ofd_packets [16:04:26]CheckFolder done [16:04:26]ProducePacketName [16:04:26]name=ofd_packets/00139777 [16:04:26]NVStorageSaveData ofd_packets/00139777 [16:04:26]File name is /storage/ofd_packets/00139777 [16:04:26]Write 301 bytes [16:04:26]NVStorageSaveData done [16:04:26]OFDSenderStorePacket done [16:04:26]KKMCreateOFDPacket done [16:04:26]NVStorageSaveData kkm_last_timestamp [16:04:26]File name is /storage/kkm_last_timestamp [16:04:26]Write 4 bytes [16:04:26]NVStorageSaveData done [16:04:26]ExternCall_PrintAddStr [16:04:26]wPrintStart [16:04:26]Write to MH i2c: 01 00 00 93 06 99 [16:04:26]Write i2c OK [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: 01 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: 01 07 00 [16:04:26]MH_I2C_Read... [16:04:26]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FF 0F AE [16:04:26]RasterBufferAndPrint [16:04:26]line Счет N : (1)593625 [16:04:26]line ИНН: 02508201610067 [16:04:26]line Контрольно-Кассовый Чек [16:04:26]line ПРОДАЖА [16:04:26]line ТРК (МРК, ГНК) : 52 [16:04:26]line Товар: 2710124130 [16:04:26]line Аи-92-К-5 [16:04:26]line 7.380 * 67.80 [16:04:26]line = 500.36 [16:04:26]line НДС 12% НСП 1% [16:04:26]line > о реализуемом товаре [16:04:26]line ОКРУГЛЕНИЕ: -0.36 [16:04:26]line ИТОГО: 500.00 [16:04:26]line Внесено: 500.00 [16:04:26]line СДАЧА: 0.00 [16:04:26]line НСП 1% : 4.43 [16:04:26]line НДС 12% : 53.14 [16:04:26]line Наличными: 500.00 [16:04:26]line Безнал.: 0.00 [16:04:26]line Место: АЗС № 136 "Партнер Нефть" [16:04:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:04:26]line СНО: Общий режим [16:04:26]line Чек 249 20.08.2024 16:04 [16:04:26]line Смена: 453 ФФД: 1.0 [16:04:26]line ЗНМ: 0300000067 [16:04:26]line РНМ: 0000000000092569 [16:04:26]line Версия ККМ: 001 [16:04:26]line ФМ: 0000000000871776 [16:04:26]line ФД: 139777 [16:04:26]line ФПД: 110163401853175 [16:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160425&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139777&fm=110163401853175&tin=02508201610067®Number=0000000000092569&sum=50000 [16:04:27]OFD Sender: Processing packet 139777 [packets to send 137, broken 136] [16:04:27]ProducePacketName [16:04:27]name=ofd_packets/00139777 [16:04:27]OFD Sender: To server: pG, [16:04:27]CommunicateWithHost lk.salyk.kg:30040 [16:04:27]ConnectInit lk.salyk.kg [16:04:27]written 0, free lines is 4095 [16:04:27]Connected sock=11 [16:04:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 87 54 07 01 E5 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 89 BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 22 02 00 35 04 06 00 64 31 6A 6F 48 F7 50 62 94 5E E7 2C 62 88 [16:04:27]Write to MH i2c: 01 00 00 BE 06 C4 [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: 01 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: 01 07 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: 01 07 00 BE 06 00 00 00 00 00 D8 0C AF [16:04:27]RasterBufferAndPrint [16:04:27]line [16:04:27]line [16:04:27]line [16:04:27]line [16:04:27]line [16:04:27]written 0, free lines is 3295 [16:04:27]MH_Cut [16:04:27]Write to MH i2c: D1 01 00 C5 06 01 9D [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: D1 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: D1 01 00 [16:04:27]MH_I2C_Read... [16:04:27]Read from MH i2c: D1 01 00 C5 06 00 9C [16:04:27]Write to MH i2c: 01 00 00 C6 06 CC [16:04:27]Write i2c OK [16:04:27]MH_I2C_Read... [16:04:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 37 71 47 00 5D FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 22 02 00 F4 03 04 00 1C 65 C4 66 B6 04 01 00 00 58 91 F8 CF 6D 23 E2 9B [16:04:27]CommunicateWithHost err = 0 [16:04:27]CheckOFDResponse [16:04:27]1017 (14) - 77093643461234 [16:04:27]1041 (16) - 0000000000871776 [16:04:27]1040 (4) - 139777 [16:04:27]1012 (4) - 20.08.2024 09:42 [16:04:27]1206 (1) - 0 [16:04:27]OFD Sender: Remove packet 139777 [16:04:27]ProducePacketName [16:04:27]name=ofd_packets/00139777 [16:04:27]NVStorageDeleteData [16:04:28]OFD Sender: No OFD packet to send [16:04:28]*** Cut start [16:04:28]*** Partial cut [16:04:28]*** CUTSNS_PIN = 1 [16:04:28]*** CUTSNS_PIN = 0 [16:04:28]*** Brake cut motor [16:04:28]Read from MH i2c: 01 [16:04:28]MH_I2C_Read... [16:04:28]*** Stop cut motor [16:04:28]*** Cut end [16:04:28]Read from MH i2c: 01 07 00 [16:04:28]MH_I2C_Read... [16:04:28]Read from MH i2c: 01 07 00 C6 06 00 00 00 00 00 FF 0F E1 [16:04:28]process_action close_receipt done [16:04:28]requested_data is exist [16:04:28]produce_requested_data [16:04:28]requested_item fm.sn is exist - process it [16:04:28]wFMCommunicate request_size=4 [16:04:28]MH_SAM_APDU [16:04:28]CAPDU: 80 11 00 00 [16:04:28]Write to MH i2c: E2 08 00 C7 06 80 11 00 00 00 00 00 00 47 [16:04:28]Write i2c OK [16:04:28]MH_I2C_Read... [16:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:28]Read from MH i2c: E2 [16:04:28]MH_I2C_Read... [16:04:28]Read from MH i2c: E2 17 00 [16:04:28]MH_I2C_Read... [16:04:28]Read from MH i2c: E2 17 00 C7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [16:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:04:28]wFMCommunicate OK [16:04:28]requested_item fd.num is exist - process it [16:04:28]SAM_PROTO_GetFieldsCounters [16:04:28]wFMCommunicate request_size=4 [16:04:28]MH_SAM_APDU [16:04:28]CAPDU: 80 13 00 00 [16:04:28]Write to MH i2c: E2 08 00 C8 06 80 13 00 00 00 00 00 00 4A [16:04:28]Write i2c OK [16:04:28]MH_I2C_Read... [16:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:28]Read from MH i2c: E2 [16:04:28]MH_I2C_Read... [16:04:28]Read from MH i2c: E2 62 00 [16:04:28]MH_I2C_Read... [16:04:28]Read from MH i2c: E2 62 00 C8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 22 02 00 0E 04 04 00 C5 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 4B [16:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 22 02 00 0E 04 04 00 C5 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 [16:04:28]wFMCommunicate OK [16:04:28]SAM_PROTO_GetFieldsCounters done [16:04:28]requested_item shift.num is exist - process it [16:04:28]requested_item shift.opened is exist - process it [16:04:28]req_shift_opened [16:04:28]FM_GetShiftState [16:04:28]SAM_PROTO_GetShiftState [16:04:28]wFMCommunicate request_size=4 [16:04:28]MH_SAM_APDU [16:04:28]CAPDU: 80 13 01 00 [16:04:28]Write to MH i2c: E2 08 00 C9 06 80 13 01 00 00 00 00 00 4C [16:04:29]Write i2c OK [16:04:29]MH_I2C_Read... [16:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:29]Read from MH i2c: E2 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 0E 00 [16:04:29]MH_I2C_Read... [16:04:29]Read from MH i2c: E2 0E 00 C9 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DD [16:04:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:04:29]wFMCommunicate OK [16:04:29]SAM_PROTO_GetShiftState done [16:04:29]FM_GetShiftState done [16:04:29]req_shift_opened done [16:04:29]requested_item shift.open_date is exist - process it [16:04:29]req_shift_open_date [16:04:29]req_shift_open_date done [16:04:29]produce_requested_data done [16:04:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139777,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:04:29]process_action_free close_receipt [16:04:29]json_value_free [16:04:29]json_value_free done [16:04:29]process_json_proto returns [16:04:29]Send response to host [16:04:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139777,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:04:29]free response buf [16:04:29]execute_script done [16:04:29]execute_script returns [16:04:29]free content buf [16:04:29]Sock 8.Close socket [16:04:29]Sock 8.Thread stoped [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:23]accept exits with 9 [16:05:23]New connection [16:05:23]New thread 3066649956 created [16:05:23]Thread 3066793316 joined [16:05:23]Waiting for new connection... [16:05:23] Sock 9.Parse request [16:05:23]Sock 9.Check first char [16:05:23]Sock 9.First char is OK [16:05:23]request: POST /json_proto HTTP/1.0 [16:05:23]Method: POST [16:05:23]URL: /json_proto [16:05:23]Method is POST - this is cgi request [16:05:23]url: /json_proto [16:05:23]query_string will be loaded in cgi processing [16:05:23]execute_cgi json_proto POST (null) [16:05:23]execute_cgi path=json_proto method=POST [16:05:23]POST find Content-Length [16:05:23]Host: 172.17.45.67:8080 [16:05:23]Content-Length: 687 [16:05:23]Content-Type: application/json [16:05:23] [16:05:23]POST finish read [16:05:23]Found Content-Length = 687 [16:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:05:23]execute_script... [16:05: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)593626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:05:23]POST & json_proto [16:05:23]process_json_proto [16:05:23]json parsed OK: [16:05:23]protocol is kg_v1.0 [16:05:23]action value=close_receipt [16:05:23]process_action close_receipt [16:05:23]cmd_close_receipt [16:05:23]MH_GetDate [16:05:23]Write to MH i2c: F0 00 00 CA 06 BF [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: F0 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: F0 09 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: F0 09 00 CA 06 00 C3 BE C4 66 5F 7F 2B 66 E2 [16:05:23]GetLastDocTimeStamp 1724169865 [16:05:23]current date 1724169923 [16:05:23]FM_GetShiftState [16:05:23]SAM_PROTO_GetShiftState [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 13 01 00 [16:05:23]Write to MH i2c: E2 08 00 CB 06 80 13 01 00 00 00 00 00 4E [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0E 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0E 00 CB 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DF [16:05:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:05:23]wFMCommunicate OK [16:05:23]SAM_PROTO_GetShiftState done [16:05:23]FM_GetShiftState done [16:05:23]opened in 1724113785 [16:05:23]opened+sec_in_day 1724200185 [16:05:23]quantity*price = 100050 [16:05:23]sum+1 = 100052 [16:05:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 250 20.08.2024 16:05 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139778 ФПД: 43955226912195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160523&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139778&fm=43955226912195&tin=02508201610067®Number=0000000000092569&sum=100000 [16:05:24]StoreToDocumentArchive [16:05:24]shift 453 fd 139778 [16:05:24]save to /storage/0453/doc_00139778 [16:05:24]save last doc name /storage/0453/doc_00139778 to /storage/kkm_last_doc_name [16:05:24]save OK [16:05:24]Clear old archive folders... [16:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:05:24]tlvbuf is 00D15380 [16:05:24]SAM_PROTO_ClearQueue [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 09 00 00 [16:05:24]Write to MH i2c: E2 08 00 D8 06 80 09 00 00 00 00 00 00 50 [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 D8 06 00 90 00 52 [16:05:24]RAPDU: 90 00 [16:05:24]wFMCommunicate OK [16:05:24]SAM_PROTO_ClearQueue done [16:05:24]KKMCreateOFDPacket [16:05:24]OFDProtocolAddRootSTLVToBuf [16:05:24]FM_MakeSignedData [16:05:24]FM_MakeSignedData [16:05:24]SAM_PROTO_SignData [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 0D 01 02 [16:05:24]Write to MH i2c: E2 08 00 D9 06 80 0D 01 02 00 00 00 00 58 [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [16:05:24]RAPDU: 90 00 [16:05:24]wFMCommunicate OK [16:05:24]wFMCommunicate request_size=255 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 C3 BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 22 02 00 35 04 06 00 [16:05:24]Write to MH i2c: E2 02 01 DA 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 C3 BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 22 02 00 35 04 06 00 00 00 60 [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [16:05:24]RAPDU: 90 00 [16:05:24]wFMCommunicate OK [16:05:24]wFMCommunicate request_size=11 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 0D 02 02 06 27 FA 1F AF A5 C3 [16:05:24]Write to MH i2c: E2 0E 00 DB 06 80 0D 02 02 06 00 27 FA 1F AF A5 C3 00 00 BE [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [16:05:24]RAPDU: 90 00 [16:05:24]wFMCommunicate OK [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 0D 03 02 [16:05:24]Write to MH i2c: E2 08 00 DC 06 80 0D 03 02 00 00 00 00 5D [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 0B 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 0B 00 DC 06 00 28 EC ED 7F 4D D6 6B 4E 90 00 BA [16:05:24]RAPDU: 28 EC ED 7F 4D D6 6B 4E 90 00 [16:05:24]wFMCommunicate OK [16:05:24]SAM_PROTO_SignData done [16:05:24]FM_MakeSignedData done [16:05:24]CreateOFDProtocolMessage [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 11 00 00 [16:05:24]Write to MH i2c: E2 08 00 DD 06 80 11 00 00 00 00 00 00 5D [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:25]Read from MH i2c: E2 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 17 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 17 00 DD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [16:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:05:25]wFMCommunicate OK [16:05:25]CreateOFDProtocolMessage done [16:05:25]OFDSenderStorePacket 139778 [16:05:25]StoreOFDPacket docnum=139778 [16:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 9E 07 08 01 CB 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 C3 BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 22 02 00 35 04 06 00 27 FA 1F AF A5 C3 28 EC ED 7F 4D D6 6B 4E [16:05:25]CheckFolder [16:05:25]dirname=/storage/ofd_packets [16:05:25]CheckFolder done [16:05:25]ProducePacketName [16:05:25]name=ofd_packets/00139778 [16:05:25]NVStorageSaveData ofd_packets/00139778 [16:05:25]File name is /storage/ofd_packets/00139778 [16:05:25]Write 302 bytes [16:05:25]NVStorageSaveData done [16:05:25]OFDSenderStorePacket done [16:05:25]KKMCreateOFDPacket done [16:05:25]NVStorageSaveData kkm_last_timestamp [16:05:25]File name is /storage/kkm_last_timestamp [16:05:25]Write 4 bytes [16:05:25]NVStorageSaveData done [16:05:25]ExternCall_PrintAddStr [16:05:25]wPrintStart [16:05:25]Write to MH i2c: 01 00 00 DE 06 E4 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 07 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 07 00 DE 06 00 00 00 00 00 FF 0F F9 [16:05:25]RasterBufferAndPrint [16:05:25]line Счет N : (1)593626 [16:05:25]line ИНН: 02508201610067 [16:05:25]line Контрольно-Кассовый Чек [16:05:25]line ПРОДАЖА [16:05:25]line ТРК (МРК, ГНК) : 64 [16:05:25]line Товар: 2710194210 [16:05:25]line ДТ(л)-К-5 [16:05:25]line 13.130 * 76.20 [16:05:25]line = 1000.51 [16:05:25]line НДС 12% НСП 1% [16:05:25]line > о реализуемом товаре [16:05:25]line ОКРУГЛЕНИЕ: -0.51 [16:05:25]line ИТОГО: 1000.00 [16:05:25]line Внесено: 1000.00 [16:05:25]line СДАЧА: 0.00 [16:05:25]line НСП 1% : 8.85 [16:05:25]line НДС 12% : 106.25 [16:05:25]line Наличными: 1000.00 [16:05:25]line Безнал.: 0.00 [16:05:25]line Место: АЗС № 136 "Партнер Нефть" [16:05:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:05:25]line СНО: Общий режим [16:05:25]line Чек 250 20.08.2024 16:05 [16:05:25]line Смена: 453 ФФД: 1.0 [16:05:25]line ЗНМ: 0300000067 [16:05:25]line РНМ: 0000000000092569 [16:05:25]line Версия ККМ: 001 [16:05:25]line ФМ: 0000000000871776 [16:05:25]line ФД: 139778 [16:05:25]line ФПД: 43955226912195 [16:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160523&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139778&fm=43955226912195&tin=02508201610067®Number=0000000000092569&sum=100000 [16:05:25]OFD Sender: Processing packet 139778 [packets to send 137, broken 136] [16:05:25]ProducePacketName [16:05:25]name=ofd_packets/00139778 [16:05:25]OFD Sender: To server: pG, [16:05:25]CommunicateWithHost lk.salyk.kg:30040 [16:05:25]ConnectInit lk.salyk.kg [16:05:25]written 0, free lines is 4095 [16:05:25]Connected sock=10 [16:05:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 9E 07 08 01 CB 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 C3 BE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 22 02 00 35 04 06 00 27 FA 1F AF A5 C3 28 EC ED 7F 4D D6 6B 4E [16:05:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 16 8D 47 00 73 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 22 02 00 F4 03 04 00 56 65 C4 66 B6 04 01 00 00 1B 93 4A E9 DB 11 8E 89 [16:05:25]CommunicateWithHost err = 0 [16:05:25]CheckOFDResponse [16:05:25]1017 (14) - 77093643461234 [16:05:25]1041 (16) - 0000000000871776 [16:05:25]1040 (4) - 139778 [16:05:25]1012 (4) - 20.08.2024 09:43 [16:05:25]1206 (1) - 0 [16:05:25]OFD Sender: Remove packet 139778 [16:05:25]ProducePacketName [16:05:25]name=ofd_packets/00139778 [16:05:25]NVStorageDeleteData [16:05:25]Write to MH i2c: 01 00 00 09 07 10 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 07 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 07 00 09 07 00 00 00 00 00 CF 0C F2 [16:05:25]RasterBufferAndPrint [16:05:25]line [16:05:25]line [16:05:25]line [16:05:25]line [16:05:25]line [16:05:25]written 0, free lines is 3285 [16:05:25]MH_Cut [16:05:25]Write to MH i2c: D1 01 00 10 07 01 E9 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: D1 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: D1 01 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: D1 01 00 10 07 00 E8 [16:05:25]Write to MH i2c: 01 00 00 11 07 18 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:26]OFD Sender: No OFD packet to send [16:05:26]*** Cut start [16:05:26]*** Partial cut [16:05:26]*** CUTSNS_PIN = 1 [16:05:26]*** CUTSNS_PIN = 0 [16:05:26]*** Brake cut motor [16:05:27]Read from MH i2c: 01 [16:05:27]MH_I2C_Read... [16:05:27]*** Stop cut motor [16:05:27]*** Cut end [16:05:27]Read from MH i2c: 01 07 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 11 07 00 00 00 00 00 FF 0F 2D [16:05:27]process_action close_receipt done [16:05:27]requested_data is exist [16:05:27]produce_requested_data [16:05:27]requested_item fm.sn is exist - process it [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 11 00 00 [16:05:27]Write to MH i2c: E2 08 00 12 07 80 11 00 00 00 00 00 00 93 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 17 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 17 00 12 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [16:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:05:27]wFMCommunicate OK [16:05:27]requested_item fd.num is exist - process it [16:05:27]SAM_PROTO_GetFieldsCounters [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 13 00 00 [16:05:27]Write to MH i2c: E2 08 00 13 07 80 13 00 00 00 00 00 00 96 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 62 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 62 00 13 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 22 02 00 0E 04 04 00 C5 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 9B [16:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 22 02 00 0E 04 04 00 C5 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 [16:05:27]wFMCommunicate OK [16:05:27]SAM_PROTO_GetFieldsCounters done [16:05:27]requested_item shift.num is exist - process it [16:05:27]requested_item shift.opened is exist - process it [16:05:27]req_shift_opened [16:05:27]FM_GetShiftState [16:05:27]SAM_PROTO_GetShiftState [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 13 01 00 [16:05:27]Write to MH i2c: E2 08 00 14 07 80 13 01 00 00 00 00 00 98 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 0E 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 0E 00 14 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 29 [16:05:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:05:27]wFMCommunicate OK [16:05:27]SAM_PROTO_GetShiftState done [16:05:27]FM_GetShiftState done [16:05:27]req_shift_opened done [16:05:27]requested_item shift.open_date is exist - process it [16:05:27]req_shift_open_date [16:05:27]req_shift_open_date done [16:05:27]produce_requested_data done [16:05:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139778,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:05:27]process_action_free close_receipt [16:05:27]json_value_free [16:05:27]json_value_free done [16:05:27]process_json_proto returns [16:05:27]Send response to host [16:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139778,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:05:27]free response buf [16:05:27]execute_script done [16:05:27]execute_script returns [16:05:27]free content buf [16:05:27]Sock 9.Close socket [16:05:27]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [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:37]accept exits with 8 [16:06:37]New connection [16:06:37]New thread 3066793316 created [16:06:37]Thread 3066649956 joined [16:06:37]Waiting for new connection... [16:06:37] Sock 8.Parse request [16:06:37]Sock 8.Check first char [16:06:37]Sock 8.First char is OK [16:06:37]request: POST /json_proto HTTP/1.0 [16:06:37]Method: POST [16:06:37]URL: /json_proto [16:06:37]Method is POST - this is cgi request [16:06:37]url: /json_proto [16:06:37]query_string will be loaded in cgi processing [16:06:37]execute_cgi json_proto POST (null) [16:06:37]execute_cgi path=json_proto method=POST [16:06:37]POST find Content-Length [16:06:37]Host: 172.17.45.67:8080 [16:06:37]Content-Length: 687 [16:06:37]Content-Type: application/json [16:06:37] [16:06:37]POST finish read [16:06:37]Found Content-Length = 687 [16:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 36.880, "sum" : 2810.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2810.00, "total" : 2810.00, "payments": [ { "type": 0, "sum" : 2810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:37]execute_script... [16:06: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)593627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 36.880, "sum" : 2810.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2810.00, "total" : 2810.00, "payments": [ { "type": 0, "sum" : 2810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:37]POST & json_proto [16:06:37]process_json_proto [16:06:37]json parsed OK: [16:06:37]protocol is kg_v1.0 [16:06:37]action value=close_receipt [16:06:37]process_action close_receipt [16:06:37]cmd_close_receipt [16:06:37]MH_GetDate [16:06:37]Write to MH i2c: F0 00 00 15 07 0B [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: F0 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: F0 09 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: F0 09 00 15 07 00 0D BF C4 66 5F 7F 2B 66 79 [16:06:37]GetLastDocTimeStamp 1724169923 [16:06:37]current date 1724169997 [16:06:37]FM_GetShiftState [16:06:37]SAM_PROTO_GetShiftState [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 13 01 00 [16:06:37]Write to MH i2c: E2 08 00 16 07 80 13 01 00 00 00 00 00 9A [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 0E 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 0E 00 16 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2B [16:06:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:06:37]wFMCommunicate OK [16:06:37]SAM_PROTO_GetShiftState done [16:06:37]FM_GetShiftState done [16:06:37]opened in 1724113785 [16:06:37]opened+sec_in_day 1724200185 [16:06:37]quantity*price = 281025 [16:06:37]sum+1 = 281027 [16:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2810.00 Внесено: 2810.00 СДАЧА: 0.00 НСП 1% : 24.87 НДС 12% : 298.43 Наличными: 2810.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 251 20.08.2024 16:06 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139779 ФПД: 268593831719979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160637&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139779&fm=268593831719979&tin=02508201610067®Number=0000000000092569&sum=281000 [16:06:38]StoreToDocumentArchive [16:06:38]shift 453 fd 139779 [16:06:38]save to /storage/0453/doc_00139779 [16:06:38]save last doc name /storage/0453/doc_00139779 to /storage/kkm_last_doc_name [16:06:38]save OK [16:06:38]Clear old archive folders... [16:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:06:38]tlvbuf is 00D0DE00 [16:06:38]SAM_PROTO_ClearQueue [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 09 00 00 [16:06:38]Write to MH i2c: E2 08 00 23 07 80 09 00 00 00 00 00 00 9C [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [16:06:38]RAPDU: 90 00 [16:06:38]wFMCommunicate OK [16:06:38]SAM_PROTO_ClearQueue done [16:06:38]KKMCreateOFDPacket [16:06:38]OFDProtocolAddRootSTLVToBuf [16:06:38]FM_MakeSignedData [16:06:38]FM_MakeSignedData [16:06:38]SAM_PROTO_SignData [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 0D 01 02 [16:06:38]Write to MH i2c: E2 08 00 24 07 80 0D 01 02 00 00 00 00 A4 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [16:06:38]RAPDU: 90 00 [16:06:38]wFMCommunicate OK [16:06:38]wFMCommunicate request_size=255 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C2 49 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 49 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 74 00 00 00 00 07 04 06 00 A8 49 04 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 0D BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 22 02 00 35 04 06 00 [16:06:38]Write to MH i2c: E2 02 01 25 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C2 49 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 49 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 74 00 00 00 00 07 04 06 00 A8 49 04 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 0D BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 22 02 00 35 04 06 00 00 00 12 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [16:06:38]RAPDU: 90 00 [16:06:38]wFMCommunicate OK [16:06:38]wFMCommunicate request_size=11 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 0D 02 02 06 F4 48 DF ED B4 2B [16:06:38]Write to MH i2c: E2 0E 00 26 07 80 0D 02 02 06 00 F4 48 DF ED B4 2B 00 00 9A [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [16:06:38]RAPDU: 90 00 [16:06:38]wFMCommunicate OK [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 0D 03 02 [16:06:38]Write to MH i2c: E2 08 00 27 07 80 0D 03 02 00 00 00 00 A9 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 0B 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 0B 00 27 07 00 09 4F 24 88 5E DE F5 C0 90 00 9F [16:06:38]RAPDU: 09 4F 24 88 5E DE F5 C0 90 00 [16:06:38]wFMCommunicate OK [16:06:38]SAM_PROTO_SignData done [16:06:38]FM_MakeSignedData done [16:06:38]CreateOFDProtocolMessage [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 11 00 00 [16:06:38]Write to MH i2c: E2 08 00 28 07 80 11 00 00 00 00 00 00 A9 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 17 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 17 00 28 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 00 [16:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:06:38]wFMCommunicate OK [16:06:38]CreateOFDProtocolMessage done [16:06:38]OFDSenderStorePacket 139779 [16:06:38]StoreOFDPacket docnum=139779 [16:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 27 36 08 01 77 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C2 49 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 49 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 74 00 00 00 00 07 04 06 00 A8 49 04 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 0D BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 22 02 00 35 04 06 00 F4 48 DF ED B4 2B 09 4F 24 88 5E DE F5 C0 [16:06:38]CheckFolder [16:06:38]dirname=/storage/ofd_packets [16:06:38]CheckFolder done [16:06:38]ProducePacketName [16:06:38]name=ofd_packets/00139779 [16:06:38]NVStorageSaveData ofd_packets/00139779 [16:06:38]File name is /storage/ofd_packets/00139779 [16:06:38]Write 302 bytes [16:06:38]NVStorageSaveData done [16:06:38]OFDSenderStorePacket done [16:06:38]KKMCreateOFDPacket done [16:06:38]NVStorageSaveData kkm_last_timestamp [16:06:38]File name is /storage/kkm_last_timestamp [16:06:38]Write 4 bytes [16:06:38]NVStorageSaveData done [16:06:38]ExternCall_PrintAddStr [16:06:38]wPrintStart [16:06:38]Write to MH i2c: 01 00 00 29 07 30 [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: 01 07 00 29 07 00 00 00 00 00 FF 0F 45 [16:06:38]RasterBufferAndPrint [16:06:38]line Счет N : (1)593627 [16:06:38]line ИНН: 02508201610067 [16:06:38]line Контрольно-Кассовый Чек [16:06:38]line ПРОДАЖА [16:06:38]line ТРК (МРК, ГНК) : 21 [16:06:38]line Товар: 2710194210 [16:06:38]line ДТ(л)-К-5 [16:06:38]line 36.880 * 76.20 [16:06:38]line = 2810.26 [16:06:38]line НДС 12% НСП 1% [16:06:38]line > о реализуемом товаре [16:06:38]line ОКРУГЛЕНИЕ: -0.26 [16:06:38]line ИТОГО: 2810.00 [16:06:38]line Внесено: 2810.00 [16:06:38]line СДАЧА: 0.00 [16:06:38]line НСП 1% : 24.87 [16:06:38]line НДС 12% : 298.43 [16:06:38]line Наличными: 2810.00 [16:06:38]line Безнал.: 0.00 [16:06:38]line Место: АЗС № 136 "Партнер Нефть" [16:06:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:06:38]line СНО: Общий режим [16:06:38]line Чек 251 20.08.2024 16:06 [16:06:38]line Смена: 453 ФФД: 1.0 [16:06:38]line ЗНМ: 0300000067 [16:06:38]line РНМ: 0000000000092569 [16:06:38]line Версия ККМ: 001 [16:06:38]line ФМ: 0000000000871776 [16:06:38]line ФД: 139779 [16:06:38]line ФПД: 268593831719979 [16:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160637&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139779&fm=268593831719979&tin=02508201610067®Number=0000000000092569&sum=281000 [16:06:39]OFD Sender: Processing packet 139779 [packets to send 137, broken 136] [16:06:39]ProducePacketName [16:06:39]name=ofd_packets/00139779 [16:06:39]OFD Sender: To server: pG, [16:06:39]CommunicateWithHost lk.salyk.kg:30040 [16:06:39]ConnectInit lk.salyk.kg [16:06:39]written 0, free lines is 4095 [16:06:39]Connected sock=10 [16:06:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 27 36 08 01 77 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 C2 49 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 49 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 74 00 00 00 00 07 04 06 00 A8 49 04 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 0D BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 22 02 00 35 04 06 00 F4 48 DF ED B4 2B 09 4F 24 88 5E DE F5 C0 [16:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 98 90 47 00 60 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 22 02 00 F4 03 04 00 A0 65 C4 66 B6 04 01 00 00 B0 42 65 18 4B 00 17 5A [16:06:39]CommunicateWithHost err = 0 [16:06:39]CheckOFDResponse [16:06:39]1017 (14) - 77093643461234 [16:06:39]1041 (16) - 0000000000871776 [16:06:39]1040 (4) - 139779 [16:06:39]1012 (4) - 20.08.2024 09:45 [16:06:39]1206 (1) - 0 [16:06:39]OFD Sender: Remove packet 139779 [16:06:39]ProducePacketName [16:06:39]name=ofd_packets/00139779 [16:06:39]NVStorageDeleteData [16:06:39]Write to MH i2c: 01 00 00 54 07 5B [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: 01 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: 01 07 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: 01 07 00 54 07 00 00 00 00 00 D3 0C 41 [16:06:39]RasterBufferAndPrint [16:06:39]line [16:06:39]line [16:06:39]line [16:06:39]line [16:06:39]line [16:06:39]written 0, free lines is 3289 [16:06:39]MH_Cut [16:06:39]Write to MH i2c: D1 01 00 5B 07 01 34 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: D1 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: D1 01 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: D1 01 00 5B 07 00 33 [16:06:39]Write to MH i2c: 01 00 00 5C 07 63 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:40]OFD Sender: No OFD packet to send [16:06:40]*** Cut start [16:06:40]*** Partial cut [16:06:40]*** CUTSNS_PIN = 1 [16:06:40]*** CUTSNS_PIN = 0 [16:06:40]*** Brake cut motor [16:06:41]Read from MH i2c: 01 [16:06:41]MH_I2C_Read... [16:06:41]*** Stop cut motor [16:06:41]*** Cut end [16:06:41]Read from MH i2c: 01 07 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: 01 07 00 5C 07 00 00 00 00 00 FF 0F 78 [16:06:41]process_action close_receipt done [16:06:41]requested_data is exist [16:06:41]produce_requested_data [16:06:41]requested_item fm.sn is exist - process it [16:06:41]wFMCommunicate request_size=4 [16:06:41]MH_SAM_APDU [16:06:41]CAPDU: 80 11 00 00 [16:06:41]Write to MH i2c: E2 08 00 5D 07 80 11 00 00 00 00 00 00 DE [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 17 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 17 00 5D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [16:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:06:41]wFMCommunicate OK [16:06:41]requested_item fd.num is exist - process it [16:06:41]SAM_PROTO_GetFieldsCounters [16:06:41]wFMCommunicate request_size=4 [16:06:41]MH_SAM_APDU [16:06:41]CAPDU: 80 13 00 00 [16:06:41]Write to MH i2c: E2 08 00 5E 07 80 13 00 00 00 00 00 00 E1 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 62 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 62 00 5E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 22 02 00 0E 04 04 00 C5 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 EA [16:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 22 02 00 0E 04 04 00 C5 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 [16:06:41]wFMCommunicate OK [16:06:41]SAM_PROTO_GetFieldsCounters done [16:06:41]requested_item shift.num is exist - process it [16:06:41]requested_item shift.opened is exist - process it [16:06:41]req_shift_opened [16:06:41]FM_GetShiftState [16:06:41]SAM_PROTO_GetShiftState [16:06:41]wFMCommunicate request_size=4 [16:06:41]MH_SAM_APDU [16:06:41]CAPDU: 80 13 01 00 [16:06:41]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 0E 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 74 [16:06:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:06:41]wFMCommunicate OK [16:06:41]SAM_PROTO_GetShiftState done [16:06:41]FM_GetShiftState done [16:06:41]req_shift_opened done [16:06:41]requested_item shift.open_date is exist - process it [16:06:41]req_shift_open_date [16:06:41]req_shift_open_date done [16:06:41]produce_requested_data done [16:06:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139779,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:06:41]process_action_free close_receipt [16:06:41]json_value_free [16:06:41]json_value_free done [16:06:41]process_json_proto returns [16:06:41]Send response to host [16:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139779,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:06:41]free response buf [16:06:41]execute_script done [16:06:41]execute_script returns [16:06:41]free content buf [16:06:41]Sock 8.Close socket [16:06:41]Sock 8.Thread stoped [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:03]int [16:07:03]Write to MH i2c: 01 00 00 60 07 67 [16:07:03]*** FLAG_PRN_KEY set [16:07:03]Write i2c OK [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: 01 [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: 01 07 00 [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: 01 07 00 60 07 00 08 00 00 00 FF 0F 84 [16:07:03]state=0 [16:07:03]Key pressed [16:07:03]Feed [16:07:03]Write to MH i2c: D8 00 00 61 07 3F [16:07:03]Write i2c OK [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: D8 [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: D8 01 00 [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: D8 01 00 61 07 00 40 [16:07:03]int [16:07:03]Write to MH i2c: 01 00 00 62 07 69 [16:07:03]Write i2c OK [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: 01 [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: 01 07 00 [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: 01 07 00 62 07 00 48 00 00 00 3C 00 F4 [16:07:03]state=2 [16:07:03]Key pressed [16:07:03]int [16:07:03]Write to MH i2c: 01 00 00 63 07 6A [16:07:03]*** FLAG_PRN_KEY reset [16:07:03]Write i2c OK [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: 01 [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: 01 07 00 [16:07:03]MH_I2C_Read... [16:07:03]Read from MH i2c: 01 07 00 63 07 00 00 00 00 00 F5 0F 75 [16:07:03]state=2 [16:07:03]Stop feed [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:20]accept exits with 9 [16:09:20]New connection [16:09:20]New thread 3066649956 created [16:09:20]Thread 3066793316 joined [16:09:20]Waiting for new connection... [16:09:20] Sock 9.Parse request [16:09:20]Sock 9.Check first char [16:09:20]Sock 9.First char is OK [16:09:20]request: POST /json_proto HTTP/1.0 [16:09:20]Method: POST [16:09:20]URL: /json_proto [16:09:20]Method is POST - this is cgi request [16:09:20]url: /json_proto [16:09:20]query_string will be loaded in cgi processing [16:09:20]execute_cgi json_proto POST (null) [16:09:20]execute_cgi path=json_proto method=POST [16:09:20]POST find Content-Length [16:09:20]Host: 172.17.45.67:8080 [16:09:20]Content-Length: 678 [16:09:20]Content-Type: application/json [16:09:20] [16:09:20]POST finish read [16:09:20]Found Content-Length = 678 [16:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:20]execute_script... [16:09: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)593628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:20]POST & json_proto [16:09:20]process_json_proto [16:09:20]json parsed OK: [16:09:20]protocol is kg_v1.0 [16:09:20]action value=close_receipt [16:09:20]process_action close_receipt [16:09:20]cmd_close_receipt [16:09:20]MH_GetDate [16:09:20]Write to MH i2c: F0 00 00 64 07 5A [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: F0 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: F0 09 00 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: F0 09 00 64 07 00 B1 BF C4 66 5F 7F 2B 66 6C [16:09:20]GetLastDocTimeStamp 1724169997 [16:09:20]current date 1724170161 [16:09:20]FM_GetShiftState [16:09:20]SAM_PROTO_GetShiftState [16:09:20]wFMCommunicate request_size=4 [16:09:20]MH_SAM_APDU [16:09:20]CAPDU: 80 13 01 00 [16:09:20]Write to MH i2c: E2 08 00 65 07 80 13 01 00 00 00 00 00 E9 [16:09:20]Write i2c OK [16:09:20]MH_I2C_Read... [16:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:20]Read from MH i2c: E2 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 0E 00 [16:09:20]MH_I2C_Read... [16:09:20]Read from MH i2c: E2 0E 00 65 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7A [16:09:20]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:09:20]wFMCommunicate OK [16:09:20]SAM_PROTO_GetShiftState done [16:09:20]FM_GetShiftState done [16:09:20]opened in 1724113785 [16:09:20]opened+sec_in_day 1724200185 [16:09:20]quantity*price = 70044 [16:09:20]sum+1 = 70046 [16:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 1000.00 СДАЧА: 300.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 252 20.08.2024 16:09 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139780 ФПД: 265889825035946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160921&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139780&fm=265889825035946&tin=02508201610067®Number=0000000000092569&sum=70000 [16:09:21]StoreToDocumentArchive [16:09:21]shift 453 fd 139780 [16:09:21]save to /storage/0453/doc_00139780 [16:09:21]save last doc name /storage/0453/doc_00139780 to /storage/kkm_last_doc_name [16:09:21]save OK [16:09:21]Clear old archive folders... [16:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:21]tlvbuf is 00D0B8E0 [16:09:21]SAM_PROTO_ClearQueue [16:09:21]wFMCommunicate request_size=4 [16:09:21]MH_SAM_APDU [16:09:21]CAPDU: 80 09 00 00 [16:09:21]Write to MH i2c: E2 08 00 72 07 80 09 00 00 00 00 00 00 EB [16:09:21]Write i2c OK [16:09:21]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]SAM_PROTO_ClearQueue done [16:09:22]KKMCreateOFDPacket [16:09:22]OFDProtocolAddRootSTLVToBuf [16:09:22]FM_MakeSignedData [16:09:22]FM_MakeSignedData [16:09:22]SAM_PROTO_SignData [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 0D 01 02 [16:09:22]Write to MH i2c: E2 08 00 73 07 80 0D 01 02 00 00 00 00 F3 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]wFMCommunicate request_size=255 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B1 BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 22 02 00 35 04 06 00 F1 [16:09:22]Write to MH i2c: E2 02 01 74 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B1 BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 22 02 00 35 04 06 00 F1 00 00 E8 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 74 07 00 90 00 EF [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]wFMCommunicate request_size=10 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 0D 02 02 05 D3 4C 92 16 AA [16:09:22]Write to MH i2c: E2 0D 00 75 07 80 0D 02 02 05 00 D3 4C 92 16 AA 00 00 71 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:22]Read from MH i2c: E2 03 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 03 00 75 07 00 90 00 F0 [16:09:22]RAPDU: 90 00 [16:09:22]wFMCommunicate OK [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 0D 03 02 [16:09:22]Write to MH i2c: E2 08 00 76 07 80 0D 03 02 00 00 00 00 F8 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 0B 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 0B 00 76 07 00 74 BD BF 7C EB 3E AA 69 90 00 A1 [16:09:22]RAPDU: 74 BD BF 7C EB 3E AA 69 90 00 [16:09:22]wFMCommunicate OK [16:09:22]SAM_PROTO_SignData done [16:09:22]FM_MakeSignedData done [16:09:22]CreateOFDProtocolMessage [16:09:22]wFMCommunicate request_size=4 [16:09:22]MH_SAM_APDU [16:09:22]CAPDU: 80 11 00 00 [16:09:22]Write to MH i2c: E2 08 00 77 07 80 11 00 00 00 00 00 00 F8 [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:22]Read from MH i2c: E2 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 17 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: E2 17 00 77 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [16:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:09:22]wFMCommunicate OK [16:09:22]CreateOFDProtocolMessage done [16:09:22]OFDSenderStorePacket 139780 [16:09:22]StoreOFDPacket docnum=139780 [16:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AB 30 07 01 85 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B1 BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 22 02 00 35 04 06 00 F1 D3 4C 92 16 AA 74 BD BF 7C EB 3E AA 69 [16:09:22]CheckFolder [16:09:22]dirname=/storage/ofd_packets [16:09:22]CheckFolder done [16:09:22]ProducePacketName [16:09:22]name=ofd_packets/00139780 [16:09:22]NVStorageSaveData ofd_packets/00139780 [16:09:22]File name is /storage/ofd_packets/00139780 [16:09:22]Write 301 bytes [16:09:22]NVStorageSaveData done [16:09:22]OFDSenderStorePacket done [16:09:22]KKMCreateOFDPacket done [16:09:22]NVStorageSaveData kkm_last_timestamp [16:09:22]File name is /storage/kkm_last_timestamp [16:09:22]Write 4 bytes [16:09:22]NVStorageSaveData done [16:09:22]ExternCall_PrintAddStr [16:09:22]wPrintStart [16:09:22]Write to MH i2c: 01 00 00 78 07 7F [16:09:22]Write i2c OK [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: 01 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: 01 07 00 [16:09:22]MH_I2C_Read... [16:09:22]Read from MH i2c: 01 07 00 78 07 00 00 00 00 00 FF 0F 94 [16:09:22]RasterBufferAndPrint [16:09:22]line Счет N : (1)593628 [16:09:22]line ИНН: 02508201610067 [16:09:22]line Контрольно-Кассовый Чек [16:09:22]line ПРОДАЖА [16:09:22]line ТРК (МРК, ГНК) : 61 [16:09:22]line Товар: 2710124500 [16:09:22]line Аи-95-К-5 [16:09:22]line 9.440 * 74.20 [16:09:22]line = 700.45 [16:09:22]line НДС 12% НСП 1% [16:09:22]line > о реализуемом товаре [16:09:22]line ОКРУГЛЕНИЕ: -0.45 [16:09:22]line ИТОГО: 700.00 [16:09:22]line Внесено: 1000.00 [16:09:22]line СДАЧА: 300.00 [16:09:22]line НСП 1% : 6.20 [16:09:22]line НДС 12% : 74.38 [16:09:22]line Наличными: 700.00 [16:09:22]line Безнал.: 0.00 [16:09:22]line Место: АЗС № 136 "Партнер Нефть" [16:09:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:09:22]line СНО: Общий режим [16:09:22]line Чек 252 20.08.2024 16:09 [16:09:22]line Смена: 453 ФФД: 1.0 [16:09:22]line ЗНМ: 0300000067 [16:09:22]line РНМ: 0000000000092569 [16:09:22]line Версия ККМ: 001 [16:09:22]line ФМ: 0000000000871776 [16:09:22]line ФД: 139780 [16:09:22]line ФПД: 265889825035946 [16:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160921&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139780&fm=265889825035946&tin=02508201610067®Number=0000000000092569&sum=70000 [16:09:22]OFD Sender: Processing packet 139780 [packets to send 137, broken 136] [16:09:22]ProducePacketName [16:09:22]name=ofd_packets/00139780 [16:09:22]OFD Sender: To server: pG, [16:09:22]CommunicateWithHost lk.salyk.kg:30040 [16:09:22]ConnectInit lk.salyk.kg [16:09:22]written 0, free lines is 4095 [16:09:22]Connected sock=10 [16:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AB 30 07 01 85 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B1 BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 22 02 00 35 04 06 00 F1 D3 4C 92 16 AA 74 BD BF 7C EB 3E AA 69 [16:09:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 75 E8 47 00 8D 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 22 02 00 F4 03 04 00 44 66 C4 66 B6 04 01 00 00 E5 6E CD B2 FE E9 F3 32 [16:09:23]CommunicateWithHost err = 0 [16:09:23]CheckOFDResponse [16:09:23]1017 (14) - 77093643461234 [16:09:23]1041 (16) - 0000000000871776 [16:09:23]1040 (4) - 139780 [16:09:23]1012 (4) - 20.08.2024 09:47 [16:09:23]1206 (1) - 0 [16:09:23]OFD Sender: Remove packet 139780 [16:09:23]ProducePacketName [16:09:23]name=ofd_packets/00139780 [16:09:23]NVStorageDeleteData [16:09:23]Write to MH i2c: 01 00 00 A3 07 AA [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 07 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 E3 0C A0 [16:09:23]RasterBufferAndPrint [16:09:23]line [16:09:23]line [16:09:23]line [16:09:23]line [16:09:23]line [16:09:23]written 0, free lines is 3305 [16:09:23]MH_Cut [16:09:23]Write to MH i2c: D1 01 00 AA 07 01 83 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: D1 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: D1 01 00 [16:09:23]MH_I2C_Read... [16:09:23]Read from MH i2c: D1 01 00 AA 07 00 82 [16:09:23]Write to MH i2c: 01 00 00 AB 07 B2 [16:09:23]Write i2c OK [16:09:23]MH_I2C_Read... [16:09:23]OFD Sender: No OFD packet to send [16:09:24]*** Cut start [16:09:24]*** Partial cut [16:09:24]*** CUTSNS_PIN = 1 [16:09:24]*** CUTSNS_PIN = 0 [16:09:24]*** Brake cut motor [16:09:24]Read from MH i2c: 01 [16:09:24]MH_I2C_Read... [16:09:24]*** Stop cut motor [16:09:24]*** Cut end [16:09:24]Read from MH i2c: 01 07 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 FF 0F C7 [16:09:24]process_action close_receipt done [16:09:24]requested_data is exist [16:09:24]produce_requested_data [16:09:24]requested_item fm.sn is exist - process it [16:09:24]wFMCommunicate request_size=4 [16:09:24]MH_SAM_APDU [16:09:24]CAPDU: 80 11 00 00 [16:09:24]Write to MH i2c: E2 08 00 AC 07 80 11 00 00 00 00 00 00 2D [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:24]Read from MH i2c: E2 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 17 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 17 00 AC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [16:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:09:24]wFMCommunicate OK [16:09:24]requested_item fd.num is exist - process it [16:09:24]SAM_PROTO_GetFieldsCounters [16:09:24]wFMCommunicate request_size=4 [16:09:24]MH_SAM_APDU [16:09:24]CAPDU: 80 13 00 00 [16:09:24]Write to MH i2c: E2 08 00 AD 07 80 13 00 00 00 00 00 00 30 [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:24]Read from MH i2c: E2 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 62 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 62 00 AD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 22 02 00 0E 04 04 00 C5 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 3D [16:09:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 22 02 00 0E 04 04 00 C5 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 [16:09:24]wFMCommunicate OK [16:09:24]SAM_PROTO_GetFieldsCounters done [16:09:24]requested_item shift.num is exist - process it [16:09:24]requested_item shift.opened is exist - process it [16:09:24]req_shift_opened [16:09:24]FM_GetShiftState [16:09:24]SAM_PROTO_GetShiftState [16:09:24]wFMCommunicate request_size=4 [16:09:24]MH_SAM_APDU [16:09:24]CAPDU: 80 13 01 00 [16:09:24]Write to MH i2c: E2 08 00 AE 07 80 13 01 00 00 00 00 00 32 [16:09:24]Write i2c OK [16:09:24]MH_I2C_Read... [16:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:24]Read from MH i2c: E2 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 0E 00 [16:09:24]MH_I2C_Read... [16:09:24]Read from MH i2c: E2 0E 00 AE 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C3 [16:09:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:09:24]wFMCommunicate OK [16:09:24]SAM_PROTO_GetShiftState done [16:09:24]FM_GetShiftState done [16:09:24]req_shift_opened done [16:09:24]requested_item shift.open_date is exist - process it [16:09:24]req_shift_open_date [16:09:24]req_shift_open_date done [16:09:24]produce_requested_data done [16:09:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139780,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:09:24]process_action_free close_receipt [16:09:24]json_value_free [16:09:24]json_value_free done [16:09:24]process_json_proto returns [16:09:24]Send response to host [16:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139780,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:09:24]free response buf [16:09:24]execute_script done [16:09:24]execute_script returns [16:09:24]free content buf [16:09:24]Sock 9.Close socket [16:09:24]Sock 9.Thread stoped [16:09:28]accept exits with 8 [16:09:28]New connection [16:09:28]New thread 3066793316 created [16:09:28]Thread 3066649956 joined [16:09:28]Waiting for new connection... [16:09:28] Sock 8.Parse request [16:09:28]Sock 8.Check first char [16:09:28]Sock 8.First char is OK [16:09:28]request: POST /json_proto HTTP/1.0 [16:09:28]Method: POST [16:09:28]URL: /json_proto [16:09:28]Method is POST - this is cgi request [16:09:28]url: /json_proto [16:09:28]query_string will be loaded in cgi processing [16:09:28]execute_cgi json_proto POST (null) [16:09:28]execute_cgi path=json_proto method=POST [16:09:28]POST find Content-Length [16:09:28]Host: 172.17.45.67:8080 [16:09:28]Content-Length: 682 [16:09:28]Content-Type: application/json [16:09:28] [16:09:28]POST finish read [16:09:28]Found Content-Length = 682 [16:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:28]execute_script... [16:09:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:28]POST & json_proto [16:09:28]process_json_proto [16:09:28]json parsed OK: [16:09:28]protocol is kg_v1.0 [16:09:28]action value=close_receipt [16:09:28]process_action close_receipt [16:09:28]cmd_close_receipt [16:09:28]MH_GetDate [16:09:28]Write to MH i2c: F0 00 00 AF 07 A5 [16:09:28]Write i2c OK [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: F0 [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: F0 09 00 [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: F0 09 00 AF 07 00 B8 BF C4 66 5F 7F 2B 66 BE [16:09:28]GetLastDocTimeStamp 1724170161 [16:09:28]current date 1724170168 [16:09:28]FM_GetShiftState [16:09:28]SAM_PROTO_GetShiftState [16:09:28]wFMCommunicate request_size=4 [16:09:28]MH_SAM_APDU [16:09:28]CAPDU: 80 13 01 00 [16:09:28]Write to MH i2c: E2 08 00 B0 07 80 13 01 00 00 00 00 00 34 [16:09:28]Write i2c OK [16:09:28]MH_I2C_Read... [16:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:28]Read from MH i2c: E2 [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: E2 0E 00 [16:09:28]MH_I2C_Read... [16:09:28]Read from MH i2c: E2 0E 00 B0 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C5 [16:09:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:09:28]wFMCommunicate OK [16:09:28]SAM_PROTO_GetShiftState done [16:09:28]FM_GetShiftState done [16:09:28]opened in 1724113785 [16:09:28]opened+sec_in_day 1724200185 [16:09:28]quantity*price = 100021 [16:09:28]sum+1 = 100023 [16:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 253 20.08.2024 16:09 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139781 ФПД: 179333269211828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139781&fm=179333269211828&tin=02508201610067®Number=0000000000092569&sum=100000 [16:09:29]StoreToDocumentArchive [16:09:29]shift 453 fd 139781 [16:09:29]save to /storage/0453/doc_00139781 [16:09:29]save last doc name /storage/0453/doc_00139781 to /storage/kkm_last_doc_name [16:09:29]save OK [16:09:29]Clear old archive folders... [16:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:29]tlvbuf is 00D42E80 [16:09:29]SAM_PROTO_ClearQueue [16:09:29]wFMCommunicate request_size=4 [16:09:29]MH_SAM_APDU [16:09:29]CAPDU: 80 09 00 00 [16:09:29]Write to MH i2c: E2 08 00 BD 07 80 09 00 00 00 00 00 00 36 [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:29]Read from MH i2c: E2 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [16:09:29]RAPDU: 90 00 [16:09:29]wFMCommunicate OK [16:09:29]SAM_PROTO_ClearQueue done [16:09:29]KKMCreateOFDPacket [16:09:29]OFDProtocolAddRootSTLVToBuf [16:09:29]FM_MakeSignedData [16:09:29]FM_MakeSignedData [16:09:29]SAM_PROTO_SignData [16:09:29]wFMCommunicate request_size=4 [16:09:29]MH_SAM_APDU [16:09:29]CAPDU: 80 0D 01 02 [16:09:29]Write to MH i2c: E2 08 00 BE 07 80 0D 01 02 00 00 00 00 3E [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:29]Read from MH i2c: E2 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [16:09:29]RAPDU: 90 00 [16:09:29]wFMCommunicate OK [16:09:29]wFMCommunicate request_size=255 [16:09:29]MH_SAM_APDU [16:09:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B8 BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 22 02 00 35 04 06 00 A3 [16:09:29]Write to MH i2c: E2 02 01 BF 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 B8 BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 22 02 00 35 04 06 00 A3 00 00 24 [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:29]Read from MH i2c: E2 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 BF 07 00 90 00 3A [16:09:29]RAPDU: 90 00 [16:09:29]wFMCommunicate OK [16:09:29]wFMCommunicate request_size=10 [16:09:29]MH_SAM_APDU [16:09:29]CAPDU: 80 0D 02 02 05 1A 47 CE CA B4 [16:09:29]Write to MH i2c: E2 0D 00 C0 07 80 0D 02 02 05 00 1A 47 CE CA B4 00 00 F8 [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:29]Read from MH i2c: E2 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 03 00 C0 07 00 90 00 3B [16:09:29]RAPDU: 90 00 [16:09:29]wFMCommunicate OK [16:09:29]wFMCommunicate request_size=4 [16:09:29]MH_SAM_APDU [16:09:29]CAPDU: 80 0D 03 02 [16:09:29]Write to MH i2c: E2 08 00 C1 07 80 0D 03 02 00 00 00 00 43 [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:29]Read from MH i2c: E2 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 0B 00 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 0B 00 C1 07 00 E5 2F D9 C4 F1 3A DE 04 90 00 02 [16:09:29]RAPDU: E5 2F D9 C4 F1 3A DE 04 90 00 [16:09:29]wFMCommunicate OK [16:09:29]SAM_PROTO_SignData done [16:09:29]FM_MakeSignedData done [16:09:29]CreateOFDProtocolMessage [16:09:29]wFMCommunicate request_size=4 [16:09:29]MH_SAM_APDU [16:09:29]CAPDU: 80 11 00 00 [16:09:29]Write to MH i2c: E2 08 00 C2 07 80 11 00 00 00 00 00 00 43 [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:29]Read from MH i2c: E2 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 17 00 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: E2 17 00 C2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [16:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:09:29]wFMCommunicate OK [16:09:29]CreateOFDProtocolMessage done [16:09:29]OFDSenderStorePacket 139781 [16:09:29]StoreOFDPacket docnum=139781 [16:09:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6B EB 07 01 54 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 FD 00 00 00 F4 03 04 00 B8 BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 22 02 00 35 04 06 00 A3 1A 47 CE CA B4 E5 2F D9 C4 F1 3A DE 04 [16:09:29]CheckFolder [16:09:29]dirname=/storage/ofd_packets [16:09:29]CheckFolder done [16:09:29]ProducePacketName [16:09:29]name=ofd_packets/00139781 [16:09:29]NVStorageSaveData ofd_packets/00139781 [16:09:29]File name is /storage/ofd_packets/00139781 [16:09:29]Write 301 bytes [16:09:29]NVStorageSaveData done [16:09:29]OFDSenderStorePacket done [16:09:29]KKMCreateOFDPacket done [16:09:29]NVStorageSaveData kkm_last_timestamp [16:09:29]File name is /storage/kkm_last_timestamp [16:09:29]Write 4 bytes [16:09:29]NVStorageSaveData done [16:09:29]ExternCall_PrintAddStr [16:09:29]wPrintStart [16:09:29]Write to MH i2c: 01 00 00 C3 07 CA [16:09:29]Write i2c OK [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: 01 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: 01 07 00 [16:09:29]MH_I2C_Read... [16:09:29]Read from MH i2c: 01 07 00 C3 07 00 00 00 00 00 FF 0F DF [16:09:29]RasterBufferAndPrint [16:09:29]line Счет N : (1)593629 [16:09:29]line ИНН: 02508201610067 [16:09:29]line Контрольно-Кассовый Чек [16:09:29]line ПРОДАЖА [16:09:29]line ТРК (МРК, ГНК) : 41 [16:09:29]line Товар: 2710124500 [16:09:29]line Аи-95-К-5 [16:09:29]line 13.480 * 74.20 [16:09:29]line = 1000.22 [16:09:29]line НДС 12% НСП 1% [16:09:29]line > о реализуемом товаре [16:09:29]line ОКРУГЛЕНИЕ: -0.22 [16:09:29]line ИТОГО: 1000.00 [16:09:29]line Внесено: 1000.00 [16:09:29]line СДАЧА: 0.00 [16:09:29]line НСП 1% : 8.85 [16:09:29]line НДС 12% : 106.22 [16:09:29]line Наличными: 1000.00 [16:09:29]line Безнал.: 0.00 [16:09:29]line Место: АЗС № 136 "Партнер Нефть" [16:09:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:09:29]line СНО: Общий режим [16:09:29]line Чек 253 20.08.2024 16:09 [16:09:29]line Смена: 453 ФФД: 1.0 [16:09:29]line ЗНМ: 0300000067 [16:09:29]line РНМ: 0000000000092569 [16:09:29]line Версия ККМ: 001 [16:09:29]line ФМ: 0000000000871776 [16:09:29]line ФД: 139781 [16:09:29]line ФПД: 179333269211828 [16:09:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T160928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139781&fm=179333269211828&tin=02508201610067®Number=0000000000092569&sum=100000 [16:09:29]written 0, free lines is 4095 [16:09:29]OFD Sender: Processing packet 139781 [packets to send 137, broken 136] [16:09:29]ProducePacketName [16:09:29]name=ofd_packets/00139781 [16:09:29]OFD Sender: To server: pG, [16:09:29]CommunicateWithHost lk.salyk.kg:30040 [16:09:29]ConnectInit lk.salyk.kg [16:09:30]Connected sock=10 [16:09:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6B EB 07 01 54 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 FD 00 00 00 F4 03 04 00 B8 BF C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 22 02 00 35 04 06 00 A3 1A 47 CE CA B4 E5 2F D9 C4 F1 3A DE 04 [16:09:30]Write to MH i2c: 01 00 00 EE 07 F5 [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: 01 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: 01 07 00 [16:09:30]MH_I2C_Read... [16:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 65 91 47 00 81 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 22 02 00 F4 03 04 00 4B 66 C4 66 B6 04 01 00 00 F8 0E 54 DA 59 A5 E1 6A [16:09:30]CommunicateWithHost err = 0 [16:09:30]CheckOFDResponse [16:09:30]1017 (14) - 77093643461234 [16:09:30]1041 (16) - 0000000000871776 [16:09:30]1040 (4) - 139781 [16:09:30]1012 (4) - 20.08.2024 09:47 [16:09:30]1206 (1) - 0 [16:09:30]OFD Sender: Remove packet 139781 [16:09:30]ProducePacketName [16:09:30]name=ofd_packets/00139781 [16:09:30]NVStorageDeleteData [16:09:30]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 E3 0C EB [16:09:30]RasterBufferAndPrint [16:09:30]line [16:09:30]line [16:09:30]line [16:09:30]line [16:09:30]line [16:09:30]written 0, free lines is 3333 [16:09:30]MH_Cut [16:09:30]Write to MH i2c: D1 01 00 F5 07 01 CE [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: D1 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: D1 01 00 [16:09:30]MH_I2C_Read... [16:09:30]Read from MH i2c: D1 01 00 F5 07 00 CD [16:09:30]Write to MH i2c: 01 00 00 F6 07 FD [16:09:30]Write i2c OK [16:09:30]MH_I2C_Read... [16:09:30]OFD Sender: No OFD packet to send [16:09:31]*** Cut start [16:09:31]*** Partial cut [16:09:31]*** CUTSNS_PIN = 1 [16:09:31]*** CUTSNS_PIN = 0 [16:09:31]*** Brake cut motor [16:09:31]Read from MH i2c: 01 [16:09:31]MH_I2C_Read... [16:09:31]*** Stop cut motor [16:09:31]*** Cut end [16:09:31]Read from MH i2c: 01 07 00 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 FF 0F 12 [16:09:31]process_action close_receipt done [16:09:31]requested_data is exist [16:09:31]produce_requested_data [16:09:31]requested_item fm.sn is exist - process it [16:09:31]wFMCommunicate request_size=4 [16:09:31]MH_SAM_APDU [16:09:31]CAPDU: 80 11 00 00 [16:09:31]Write to MH i2c: E2 08 00 F7 07 80 11 00 00 00 00 00 00 78 [16:09:31]Write i2c OK [16:09:31]MH_I2C_Read... [16:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:31]Read from MH i2c: E2 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 17 00 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 17 00 F7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [16:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:09:31]wFMCommunicate OK [16:09:31]requested_item fd.num is exist - process it [16:09:31]SAM_PROTO_GetFieldsCounters [16:09:31]wFMCommunicate request_size=4 [16:09:31]MH_SAM_APDU [16:09:31]CAPDU: 80 13 00 00 [16:09:31]Write to MH i2c: E2 08 00 F8 07 80 13 00 00 00 00 00 00 7B [16:09:31]Write i2c OK [16:09:31]MH_I2C_Read... [16:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:31]Read from MH i2c: E2 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 62 00 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 62 00 F8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 22 02 00 0E 04 04 00 C5 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 8C [16:09:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 22 02 00 0E 04 04 00 C5 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 [16:09:31]wFMCommunicate OK [16:09:31]SAM_PROTO_GetFieldsCounters done [16:09:31]requested_item shift.num is exist - process it [16:09:31]requested_item shift.opened is exist - process it [16:09:31]req_shift_opened [16:09:31]FM_GetShiftState [16:09:31]SAM_PROTO_GetShiftState [16:09:31]wFMCommunicate request_size=4 [16:09:31]MH_SAM_APDU [16:09:31]CAPDU: 80 13 01 00 [16:09:31]Write to MH i2c: E2 08 00 F9 07 80 13 01 00 00 00 00 00 7D [16:09:31]Write i2c OK [16:09:31]MH_I2C_Read... [16:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:31]Read from MH i2c: E2 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 0E 00 [16:09:31]MH_I2C_Read... [16:09:31]Read from MH i2c: E2 0E 00 F9 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0E [16:09:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:09:31]wFMCommunicate OK [16:09:31]SAM_PROTO_GetShiftState done [16:09:31]FM_GetShiftState done [16:09:31]req_shift_opened done [16:09:31]requested_item shift.open_date is exist - process it [16:09:31]req_shift_open_date [16:09:31]req_shift_open_date done [16:09:31]produce_requested_data done [16:09:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139781,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:09:31]process_action_free close_receipt [16:09:31]json_value_free [16:09:31]json_value_free done [16:09:31]process_json_proto returns [16:09:31]Send response to host [16:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139781,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:09:31]free response buf [16:09:31]execute_script done [16:09:31]execute_script returns [16:09:31]free content buf [16:09:31]Sock 8.Close socket [16:09:31]Sock 8.Thread stoped [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]int [16:09:45]Write to MH i2c: 01 00 00 FA 07 01 [16:09:45]*** FLAG_PRN_KEY set [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 07 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 07 00 FA 07 00 08 00 00 00 FF 0F 1E [16:09:45]state=0 [16:09:45]Key pressed [16:09:45]Feed [16:09:45]Write to MH i2c: D8 00 00 FB 07 D9 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: D8 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: D8 01 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: D8 01 00 FB 07 00 DA [16:09:45]int [16:09:45]Write to MH i2c: 01 00 00 FC 07 03 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 07 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 07 00 FC 07 00 48 00 00 00 3C 00 8E [16:09:45]state=2 [16:09:45]Key pressed [16:09:45]int [16:09:45]Write to MH i2c: 01 00 00 FD 07 04 [16:09:45]*** FLAG_PRN_KEY reset [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 07 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 07 00 FD 07 00 00 00 00 00 F9 0F 13 [16:09:45]state=2 [16:09:45]Stop feed [16:09:45]OFD Sender: No OFD packet to send [16:09:46]int [16:09:46]Write to MH i2c: 01 00 00 FE 07 05 [16:09:46]*** FLAG_PRN_KEY set [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 FE 07 00 08 00 00 00 FF 0F 22 [16:09:46]state=0 [16:09:46]Key pressed [16:09:46]Feed [16:09:46]Write to MH i2c: D8 00 00 FF 07 DD [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: D8 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: D8 01 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: D8 01 00 FF 07 00 DE [16:09:46]int [16:09:46]Write to MH i2c: 01 00 00 00 08 08 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 00 08 00 48 00 00 00 3C 00 93 [16:09:46]state=2 [16:09:46]Key pressed [16:09:46]int [16:09:46]Write to MH i2c: 01 00 00 01 08 09 [16:09:46]*** FLAG_PRN_KEY reset [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 01 08 00 00 00 00 00 F5 0F 14 [16:09:46]state=2 [16:09:46]Stop feed [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:31]accept exits with 9 [16:14:31]New connection [16:14:31]New thread 3066649956 created [16:14:31]Thread 3066793316 joined [16:14:31]Waiting for new connection... [16:14:31] Sock 9.Parse request [16:14:31]Sock 9.Check first char [16:14:31]Sock 9.First char is OK [16:14:31]request: POST /json_proto HTTP/1.0 [16:14:31]Method: POST [16:14:31]URL: /json_proto [16:14:31]Method is POST - this is cgi request [16:14:31]url: /json_proto [16:14:31]query_string will be loaded in cgi processing [16:14:31]execute_cgi json_proto POST (null) [16:14:31]execute_cgi path=json_proto method=POST [16:14:31]POST find Content-Length [16:14:31]Host: 172.17.45.67:8080 [16:14:31]Content-Length: 658 [16:14:31]Content-Type: application/json [16:14:31] [16:14:31]POST finish read [16:14:31]Found Content-Length = 658 [16:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.380, "sum" : 370.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:31]execute_script... [16:14: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)593630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.380, "sum" : 370.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:31]POST & json_proto [16:14:31]process_json_proto [16:14:31]json parsed OK: [16:14:31]protocol is kg_v1.0 [16:14:31]action value=close_receipt [16:14:31]process_action close_receipt [16:14:31]cmd_close_receipt [16:14:31]MH_GetDate [16:14:31]Write to MH i2c: F0 00 00 02 08 F9 [16:14:31]Write i2c OK [16:14:31]MH_I2C_Read... [16:14:31]Read from MH i2c: F0 [16:14:31]MH_I2C_Read... [16:14:31]Read from MH i2c: F0 09 00 [16:14:31]MH_I2C_Read... [16:14:31]Read from MH i2c: F0 09 00 02 08 00 E7 C0 C4 66 5F 7F 2B 66 42 [16:14:31]GetLastDocTimeStamp 1724170168 [16:14:31]current date 1724170471 [16:14:31]FM_GetShiftState [16:14:31]SAM_PROTO_GetShiftState [16:14:31]wFMCommunicate request_size=4 [16:14:31]MH_SAM_APDU [16:14:31]CAPDU: 80 13 01 00 [16:14:31]Write to MH i2c: E2 08 00 03 08 80 13 01 00 00 00 00 00 88 [16:14:31]Write i2c OK [16:14:31]MH_I2C_Read... [16:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:31]Read from MH i2c: E2 [16:14:31]MH_I2C_Read... [16:14:31]Read from MH i2c: E2 0E 00 [16:14:31]MH_I2C_Read... [16:14:31]Read from MH i2c: E2 0E 00 03 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 19 [16:14:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:14:31]wFMCommunicate OK [16:14:31]SAM_PROTO_GetShiftState done [16:14:31]FM_GetShiftState done [16:14:31]opened in 1724113785 [16:14:31]opened+sec_in_day 1724200185 [16:14:31]quantity*price = 37014 [16:14:31]sum+1 = 37015 [16:14:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.31 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 254 20.08.2024 16:14 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139782 ФПД: 37074123974384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T161431&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139782&fm=37074123974384&tin=02508201610067®Number=0000000000092569&sum=37000 [16:14:32]StoreToDocumentArchive [16:14:32]shift 453 fd 139782 [16:14:32]save to /storage/0453/doc_00139782 [16:14:32]save last doc name /storage/0453/doc_00139782 to /storage/kkm_last_doc_name [16:14:32]save OK [16:14:32]Clear old archive folders... [16:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:14:32]tlvbuf is 00D0D860 [16:14:32]SAM_PROTO_ClearQueue [16:14:32]wFMCommunicate request_size=4 [16:14:32]MH_SAM_APDU [16:14:32]CAPDU: 80 09 00 00 [16:14:32]Write to MH i2c: E2 08 00 10 08 80 09 00 00 00 00 00 00 8A [16:14:32]Write i2c OK [16:14:32]MH_I2C_Read... [16:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:32]Read from MH i2c: E2 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 03 00 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [16:14:32]RAPDU: 90 00 [16:14:32]wFMCommunicate OK [16:14:32]SAM_PROTO_ClearQueue done [16:14:32]KKMCreateOFDPacket [16:14:32]OFDProtocolAddRootSTLVToBuf [16:14:32]FM_MakeSignedData [16:14:32]FM_MakeSignedData [16:14:32]SAM_PROTO_SignData [16:14:32]wFMCommunicate request_size=4 [16:14:32]MH_SAM_APDU [16:14:32]CAPDU: 80 0D 01 02 [16:14:32]Write to MH i2c: E2 08 00 11 08 80 0D 01 02 00 00 00 00 92 [16:14:32]Write i2c OK [16:14:32]MH_I2C_Read... [16:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:32]Read from MH i2c: E2 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 03 00 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 03 00 11 08 00 90 00 8D [16:14:32]RAPDU: 90 00 [16:14:32]wFMCommunicate OK [16:14:32]wFMCommunicate request_size=253 [16:14:32]MH_SAM_APDU [16:14:32]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 04 15 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E7 C0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 22 02 00 35 04 06 00 21 B7 FD FD 66 F0 [16:14:32]Write to MH i2c: E2 00 01 12 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 04 15 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E7 C0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 22 02 00 35 04 06 00 21 B7 FD FD 66 F0 00 00 57 [16:14:32]Write i2c OK [16:14:32]MH_I2C_Read... [16:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:32]Read from MH i2c: E2 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 03 00 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 03 00 12 08 00 90 00 8E [16:14:32]RAPDU: 90 00 [16:14:32]wFMCommunicate OK [16:14:32]wFMCommunicate request_size=4 [16:14:32]MH_SAM_APDU [16:14:32]CAPDU: 80 0D 03 02 [16:14:32]Write to MH i2c: E2 08 00 13 08 80 0D 03 02 00 00 00 00 96 [16:14:32]Write i2c OK [16:14:32]MH_I2C_Read... [16:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:32]Read from MH i2c: E2 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 0B 00 [16:14:32]MH_I2C_Read... [16:14:32]Read from MH i2c: E2 0B 00 13 08 00 ED A1 78 76 73 AC 35 F4 90 00 5B [16:14:32]RAPDU: ED A1 78 76 73 AC 35 F4 90 00 [16:14:32]wFMCommunicate OK [16:14:32]SAM_PROTO_SignData done [16:14:32]FM_MakeSignedData done [16:14:32]CreateOFDProtocolMessage [16:14:32]wFMCommunicate request_size=4 [16:14:32]MH_SAM_APDU [16:14:32]CAPDU: 80 11 00 00 [16:14:32]Write to MH i2c: E2 08 00 14 08 80 11 00 00 00 00 00 00 96 [16:14:32]Write i2c OK [16:14:32]MH_I2C_Read... [16:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:33]Read from MH i2c: E2 [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: E2 17 00 [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: E2 17 00 14 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [16:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:14:33]wFMCommunicate OK [16:14:33]CreateOFDProtocolMessage done [16:14:33]OFDSenderStorePacket 139782 [16:14:33]StoreOFDPacket docnum=139782 [16:14:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 E8 66 00 01 B4 01 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 04 15 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E7 C0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 22 02 00 35 04 06 00 21 B7 FD FD 66 F0 ED A1 78 76 73 AC 35 F4 [16:14:33]CheckFolder [16:14:33]dirname=/storage/ofd_packets [16:14:33]CheckFolder done [16:14:33]ProducePacketName [16:14:33]name=ofd_packets/00139782 [16:14:33]NVStorageSaveData ofd_packets/00139782 [16:14:33]File name is /storage/ofd_packets/00139782 [16:14:33]Write 294 bytes [16:14:33]NVStorageSaveData done [16:14:33]OFDSenderStorePacket done [16:14:33]KKMCreateOFDPacket done [16:14:33]NVStorageSaveData kkm_last_timestamp [16:14:33]File name is /storage/kkm_last_timestamp [16:14:33]Write 4 bytes [16:14:33]NVStorageSaveData done [16:14:33]ExternCall_PrintAddStr [16:14:33]wPrintStart [16:14:33]Write to MH i2c: 01 00 00 15 08 1D [16:14:33]Write i2c OK [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: 01 [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: 01 07 00 [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: 01 07 00 15 08 00 00 00 00 00 FF 0F 32 [16:14:33]RasterBufferAndPrint [16:14:33]line Счет N : (1)593630 [16:14:33]line ИНН: 02508201610067 [16:14:33]line Контрольно-Кассовый Чек [16:14:33]line ПРОДАЖА [16:14:33]line ТРК (МРК, ГНК) : 53 [16:14:33]line Товар: 2710124130 [16:14:33]line SU-92 [16:14:33]line 5.380 * 68.80 [16:14:33]line = 370.14 [16:14:33]line НДС 12% НСП 1% [16:14:33]line > о реализуемом товаре [16:14:33]line ОКРУГЛЕНИЕ: -0.14 [16:14:33]line ИТОГО: 370.00 [16:14:33]line Внесено: 370.00 [16:14:33]line СДАЧА: 0.00 [16:14:33]line НСП 1% : 3.28 [16:14:33]line НДС 12% : 39.31 [16:14:33]line Наличными: 370.00 [16:14:33]line Безнал.: 0.00 [16:14:33]line Место: АЗС № 136 "Партнер Нефть" [16:14:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:14:33]line СНО: Общий режим [16:14:33]line Чек 254 20.08.2024 16:14 [16:14:33]line Смена: 453 ФФД: 1.0 [16:14:33]line ЗНМ: 0300000067 [16:14:33]line РНМ: 0000000000092569 [16:14:33]line Версия ККМ: 001 [16:14:33]line ФМ: 0000000000871776 [16:14:33]line ФД: 139782 [16:14:33]line ФПД: 37074123974384 [16:14:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T161431&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139782&fm=37074123974384&tin=02508201610067®Number=0000000000092569&sum=37000 [16:14:33]OFD Sender: Processing packet 139782 [packets to send 137, broken 136] [16:14:33]ProducePacketName [16:14:33]name=ofd_packets/00139782 [16:14:33]OFD Sender: To server: pG, [16:14:33]CommunicateWithHost lk.salyk.kg:30040 [16:14:33]ConnectInit lk.salyk.kg [16:14:33]written 0, free lines is 4095 [16:14:33]Connected sock=10 [16:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 E8 66 00 01 B4 01 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 04 15 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E7 C0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 22 02 00 35 04 06 00 21 B7 FD FD 66 F0 ED A1 78 76 73 AC 35 F4 [16:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B7 E5 47 00 1C F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 22 02 00 F4 03 04 00 7A 67 C4 66 B6 04 01 00 00 54 7E 72 7C D1 47 5C 26 [16:14:33]CommunicateWithHost err = 0 [16:14:33]CheckOFDResponse [16:14:33]1017 (14) - 77093643461234 [16:14:33]1041 (16) - 0000000000871776 [16:14:33]1040 (4) - 139782 [16:14:33]1012 (4) - 20.08.2024 09:52 [16:14:33]1206 (1) - 0 [16:14:33]OFD Sender: Remove packet 139782 [16:14:33]ProducePacketName [16:14:33]name=ofd_packets/00139782 [16:14:33]NVStorageDeleteData [16:14:33]Write to MH i2c: 01 00 00 40 08 48 [16:14:33]Write i2c OK [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: 01 [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: 01 07 00 [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: 01 07 00 40 08 00 00 00 00 00 DC 0C 37 [16:14:33]RasterBufferAndPrint [16:14:33]line [16:14:33]line [16:14:33]line [16:14:33]line [16:14:33]line [16:14:33]written 0, free lines is 3299 [16:14:33]MH_Cut [16:14:33]Write to MH i2c: D1 01 00 47 08 01 21 [16:14:33]Write i2c OK [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: D1 [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: D1 01 00 [16:14:33]MH_I2C_Read... [16:14:33]Read from MH i2c: D1 01 00 47 08 00 20 [16:14:33]Write to MH i2c: 01 00 00 48 08 50 [16:14:33]Write i2c OK [16:14:33]MH_I2C_Read... [16:14:34]OFD Sender: No OFD packet to send [16:14:34]*** Cut start [16:14:34]*** Partial cut [16:14:34]*** CUTSNS_PIN = 1 [16:14:34]*** CUTSNS_PIN = 0 [16:14:34]*** Brake cut motor [16:14:35]Read from MH i2c: 01 [16:14:35]MH_I2C_Read... [16:14:35]*** Stop cut motor [16:14:35]*** Cut end [16:14:35]Read from MH i2c: 01 07 00 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: 01 07 00 48 08 00 00 00 00 00 FF 0F 65 [16:14:35]process_action close_receipt done [16:14:35]requested_data is exist [16:14:35]produce_requested_data [16:14:35]requested_item fm.sn is exist - process it [16:14:35]wFMCommunicate request_size=4 [16:14:35]MH_SAM_APDU [16:14:35]CAPDU: 80 11 00 00 [16:14:35]Write to MH i2c: E2 08 00 49 08 80 11 00 00 00 00 00 00 CB [16:14:35]Write i2c OK [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 [16:14:35]MH_I2C_Read... [16:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:35]Read from MH i2c: E2 17 00 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 17 00 49 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 22 [16:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:14:35]wFMCommunicate OK [16:14:35]requested_item fd.num is exist - process it [16:14:35]SAM_PROTO_GetFieldsCounters [16:14:35]wFMCommunicate request_size=4 [16:14:35]MH_SAM_APDU [16:14:35]CAPDU: 80 13 00 00 [16:14:35]Write to MH i2c: E2 08 00 4A 08 80 13 00 00 00 00 00 00 CE [16:14:35]Write i2c OK [16:14:35]MH_I2C_Read... [16:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:35]Read from MH i2c: E2 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 62 00 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 62 00 4A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 22 02 00 0E 04 04 00 C5 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 E3 [16:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 22 02 00 0E 04 04 00 C5 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 [16:14:35]wFMCommunicate OK [16:14:35]SAM_PROTO_GetFieldsCounters done [16:14:35]requested_item shift.num is exist - process it [16:14:35]requested_item shift.opened is exist - process it [16:14:35]req_shift_opened [16:14:35]FM_GetShiftState [16:14:35]SAM_PROTO_GetShiftState [16:14:35]wFMCommunicate request_size=4 [16:14:35]MH_SAM_APDU [16:14:35]CAPDU: 80 13 01 00 [16:14:35]Write to MH i2c: E2 08 00 4B 08 80 13 01 00 00 00 00 00 D0 [16:14:35]Write i2c OK [16:14:35]MH_I2C_Read... [16:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:35]Read from MH i2c: E2 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 0E 00 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: E2 0E 00 4B 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 61 [16:14:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:14:35]wFMCommunicate OK [16:14:35]SAM_PROTO_GetShiftState done [16:14:35]FM_GetShiftState done [16:14:35]req_shift_opened done [16:14:35]requested_item shift.open_date is exist - process it [16:14:35]req_shift_open_date [16:14:35]req_shift_open_date done [16:14:35]produce_requested_data done [16:14:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139782,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:14:35]process_action_free close_receipt [16:14:35]json_value_free [16:14:35]json_value_free done [16:14:35]process_json_proto returns [16:14:35]Send response to host [16:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139782,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:14:35]free response buf [16:14:35]execute_script done [16:14:35]execute_script returns [16:14:35]free content buf [16:14:35]Sock 9.Close socket [16:14:35]Sock 9.Thread stoped [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24: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:29]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:24]accept exits with 8 [16:26:24]New connection [16:26:24]New thread 3066793316 created [16:26:24]Thread 3066649956 joined [16:26:24]Waiting for new connection... [16:26:24] Sock 8.Parse request [16:26:24]Sock 8.Check first char [16:26:24]Sock 8.First char is OK [16:26:24]request: POST /json_proto HTTP/1.0 [16:26:24]Method: POST [16:26:24]URL: /json_proto [16:26:24]Method is POST - this is cgi request [16:26:24]url: /json_proto [16:26:24]query_string will be loaded in cgi processing [16:26:24]execute_cgi json_proto POST (null) [16:26:24]execute_cgi path=json_proto method=POST [16:26:24]POST find Content-Length [16:26:24]Host: 172.17.45.67:8080 [16:26:24]Content-Length: 682 [16:26:24]Content-Type: application/json [16:26:24] [16:26:24]POST finish read [16:26:24]Found Content-Length = 682 [16:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:26:24]execute_script... [16: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)593631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:26:24]POST & json_proto [16:26:24]process_json_proto [16:26:24]json parsed OK: [16:26:24]protocol is kg_v1.0 [16:26:24]action value=close_receipt [16:26:24]process_action close_receipt [16:26:24]cmd_close_receipt [16:26:24]MH_GetDate [16:26:24]Write to MH i2c: F0 00 00 4C 08 43 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: F0 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: F0 09 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: F0 09 00 4C 08 00 B1 C3 C4 66 5F 7F 2B 66 59 [16:26:24]GetLastDocTimeStamp 1724170471 [16:26:24]current date 1724171185 [16:26:24]FM_GetShiftState [16:26:24]SAM_PROTO_GetShiftState [16:26:24]wFMCommunicate request_size=4 [16:26:24]MH_SAM_APDU [16:26:24]CAPDU: 80 13 01 00 [16:26:24]Write to MH i2c: E2 08 00 4D 08 80 13 01 00 00 00 00 00 D2 [16:26:24]Write i2c OK [16:26:24]MH_I2C_Read... [16:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:24]Read from MH i2c: E2 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0E 00 [16:26:24]MH_I2C_Read... [16:26:24]Read from MH i2c: E2 0E 00 4D 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 63 [16:26:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:26:24]wFMCommunicate OK [16:26:24]SAM_PROTO_GetShiftState done [16:26:24]FM_GetShiftState done [16:26:24]opened in 1724113785 [16:26:24]opened+sec_in_day 1724200185 [16:26:24]quantity*price = 50063 [16:26:24]sum+1 = 50064 [16:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 255 20.08.2024 16:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139783 ФПД: 2612461139504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T162625&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139783&fm=2612461139504&tin=02508201610067®Number=0000000000092569&sum=50000 [16:26:26]StoreToDocumentArchive [16:26:26]shift 453 fd 139783 [16:26:26]save to /storage/0453/doc_00139783 [16:26:26]save last doc name /storage/0453/doc_00139783 to /storage/kkm_last_doc_name [16:26:26]save OK [16:26:26]Clear old archive folders... [16:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:26:26]tlvbuf is 00CFB400 [16:26:26]SAM_PROTO_ClearQueue [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 09 00 00 [16:26:26]Write to MH i2c: E2 08 00 5A 08 80 09 00 00 00 00 00 00 D4 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [16:26:26]RAPDU: 90 00 [16:26:26]wFMCommunicate OK [16:26:26]SAM_PROTO_ClearQueue done [16:26:26]KKMCreateOFDPacket [16:26:26]OFDProtocolAddRootSTLVToBuf [16:26:26]FM_MakeSignedData [16:26:26]FM_MakeSignedData [16:26:26]SAM_PROTO_SignData [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 0D 01 02 [16:26:26]Write to MH i2c: E2 08 00 5B 08 80 0D 01 02 00 00 00 00 DC [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [16:26:26]RAPDU: 90 00 [16:26:26]wFMCommunicate OK [16:26:26]wFMCommunicate request_size=255 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 FF 00 00 00 F4 03 04 00 B1 C3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 22 02 00 35 04 06 00 [16:26:26]Write to MH i2c: E2 02 01 5C 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 FF 00 00 00 F4 03 04 00 B1 C3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 22 02 00 35 04 06 00 00 00 69 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [16:26:26]RAPDU: 90 00 [16:26:26]wFMCommunicate OK [16:26:26]wFMCommunicate request_size=11 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 0D 02 02 06 02 60 42 D1 76 30 [16:26:26]Write to MH i2c: E2 0E 00 5D 08 80 0D 02 02 06 00 02 60 42 D1 76 30 00 00 06 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [16:26:26]RAPDU: 90 00 [16:26:26]wFMCommunicate OK [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 0D 03 02 [16:26:26]Write to MH i2c: E2 08 00 5E 08 80 0D 03 02 00 00 00 00 E1 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0B 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0B 00 5E 08 00 9B 8E 99 CD 36 F0 D3 6D 90 00 D7 [16:26:26]RAPDU: 9B 8E 99 CD 36 F0 D3 6D 90 00 [16:26:26]wFMCommunicate OK [16:26:26]SAM_PROTO_SignData done [16:26:26]FM_MakeSignedData done [16:26:26]CreateOFDProtocolMessage [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 11 00 00 [16:26:26]Write to MH i2c: E2 08 00 5F 08 80 11 00 00 00 00 00 00 E1 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 17 00 5F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 38 [16:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:26:26]wFMCommunicate OK [16:26:26]CreateOFDProtocolMessage done [16:26:26]OFDSenderStorePacket 139783 [16:26:26]StoreOFDPacket docnum=139783 [16:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 7F 49 08 01 66 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 FF 00 00 00 F4 03 04 00 B1 C3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 22 02 00 35 04 06 00 02 60 42 D1 76 30 9B 8E 99 CD 36 F0 D3 6D [16:26:26]CheckFolder [16:26:26]dirname=/storage/ofd_packets [16:26:26]CheckFolder done [16:26:26]ProducePacketName [16:26:26]name=ofd_packets/00139783 [16:26:26]NVStorageSaveData ofd_packets/00139783 [16:26:26]File name is /storage/ofd_packets/00139783 [16:26:26]Write 302 bytes [16:26:26]NVStorageSaveData done [16:26:26]OFDSenderStorePacket done [16:26:26]KKMCreateOFDPacket done [16:26:26]NVStorageSaveData kkm_last_timestamp [16:26:26]File name is /storage/kkm_last_timestamp [16:26:26]Write 4 bytes [16:26:26]NVStorageSaveData done [16:26:26]ExternCall_PrintAddStr [16:26:26]wPrintStart [16:26:26]Write to MH i2c: 01 00 00 60 08 68 [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: 01 07 00 60 08 00 00 00 00 00 FF 0F 7D [16:26:26]RasterBufferAndPrint [16:26:26]line Счет N : (1)593631 [16:26:26]line ИНН: 02508201610067 [16:26:26]line Контрольно-Кассовый Чек [16:26:26]line ПРОДАЖА [16:26:26]line ТРК (МРК, ГНК) : 34 [16:26:26]line Товар: 2710194210 [16:26:26]line ДТ(л)-К-5 [16:26:26]line 6.570 * 76.20 [16:26:26]line = 500.63 [16:26:26]line НДС 12% НСП 1% [16:26:26]line > о реализуемом товаре [16:26:26]line ОКРУГЛЕНИЕ: -0.63 [16:26:26]line ИТОГО: 500.00 [16:26:26]line Внесено: 500.00 [16:26:26]line СДАЧА: 0.00 [16:26:26]line НСП 1% : 4.43 [16:26:26]line НДС 12% : 53.16 [16:26:26]line Наличными: 500.00 [16:26:26]line Безнал.: 0.00 [16:26:26]line Место: АЗС № 136 "Партнер Нефть" [16:26:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:26:26]line СНО: Общий режим [16:26:26]line Чек 255 20.08.2024 16:26 [16:26:26]line Смена: 453 ФФД: 1.0 [16:26:26]line ЗНМ: 0300000067 [16:26:26]line РНМ: 0000000000092569 [16:26:26]line Версия ККМ: 001 [16:26:26]line ФМ: 0000000000871776 [16:26:26]line ФД: 139783 [16:26:26]line ФПД: 2612461139504 [16:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T162625&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139783&fm=2612461139504&tin=02508201610067®Number=0000000000092569&sum=50000 [16:26:26]OFD Sender: Processing packet 139783 [packets to send 137, broken 136] [16:26:26]ProducePacketName [16:26:26]name=ofd_packets/00139783 [16:26:26]OFD Sender: To server: pG, [16:26:26]CommunicateWithHost lk.salyk.kg:30040 [16:26:26]ConnectInit lk.salyk.kg [16:26:26]written 0, free lines is 4095 [16:26:27]Write to MH i2c: 01 00 00 8B 08 93 [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: 01 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: 01 07 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: 01 07 00 8B 08 00 00 00 00 00 CD 0C 73 [16:26:27]RasterBufferAndPrint [16:26:27]line [16:26:27]line [16:26:27]line [16:26:27]line [16:26:27]line [16:26:27]written 0, free lines is 3280 [16:26:27]MH_Cut [16:26:27]Write to MH i2c: D1 01 00 92 08 01 6C [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: D1 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: D1 01 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: D1 01 00 92 08 00 6B [16:26:27]Write to MH i2c: 01 00 00 93 08 9B [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:28]*** Cut start [16:26:28]*** Partial cut [16:26:28]*** CUTSNS_PIN = 1 [16:26:28]*** CUTSNS_PIN = 0 [16:26:28]*** Brake cut motor [16:26:28]Read from MH i2c: 01 [16:26:28]MH_I2C_Read... [16:26:28]*** Stop cut motor [16:26:28]*** Cut end [16:26:28]Read from MH i2c: 01 07 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 FF 0F B0 [16:26:28]process_action close_receipt done [16:26:28]requested_data is exist [16:26:28]produce_requested_data [16:26:28]requested_item fm.sn is exist - process it [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 11 00 00 [16:26:28]Write to MH i2c: E2 08 00 94 08 80 11 00 00 00 00 00 00 16 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 17 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 17 00 94 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [16:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:26:28]wFMCommunicate OK [16:26:28]requested_item fd.num is exist - process it [16:26:28]SAM_PROTO_GetFieldsCounters [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 13 00 00 [16:26:28]Write to MH i2c: E2 08 00 95 08 80 13 00 00 00 00 00 00 19 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 62 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 62 00 95 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 22 02 00 0E 04 04 00 C5 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 33 [16:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 22 02 00 0E 04 04 00 C5 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 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_GetFieldsCounters done [16:26:28]requested_item shift.num is exist - process it [16:26:28]requested_item shift.opened is exist - process it [16:26:28]req_shift_opened [16:26:28]FM_GetShiftState [16:26:28]SAM_PROTO_GetShiftState [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 13 01 00 [16:26:28]Write to MH i2c: E2 08 00 96 08 80 13 01 00 00 00 00 00 1B [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0E 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0E 00 96 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AC [16:26:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_GetShiftState done [16:26:28]FM_GetShiftState done [16:26:28]req_shift_opened done [16:26:28]requested_item shift.open_date is exist - process it [16:26:28]req_shift_open_date [16:26:28]req_shift_open_date done [16:26:28]produce_requested_data done [16:26:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139783,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:26:28]process_action_free close_receipt [16:26:28]json_value_free [16:26:28]json_value_free done [16:26:28]process_json_proto returns [16:26:28]Send response to host [16:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139783,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:26:28]free response buf [16:26:28]execute_script done [16:26:28]execute_script returns [16:26:28]free content buf [16:26:28]Sock 8.Close socket [16:26:28]Sock 8.Thread stoped [16:28:38]ConnectInit Can't connect to host [16:28:38]CommunicateWithHost connect error [16:28:38]CommunicateWithHost err = -1 [16:28:38]OFD Sender: Server communicate error [16:28:43]OFD Sender: Processing packet 139783 [packets to send 137, broken 136] [16:28:43]ProducePacketName [16:28:43]name=ofd_packets/00139783 [16:28:43]OFD Sender: To server: pG, [16:28:43]CommunicateWithHost lk.salyk.kg:30040 [16:28:43]ConnectInit lk.salyk.kg [16:28:43]Connected sock=8 [16:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 7F 49 08 01 66 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 FF 00 00 00 F4 03 04 00 B1 C3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 22 02 00 35 04 06 00 02 60 42 D1 76 30 9B 8E 99 CD 36 F0 D3 6D [16:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 82 2F 47 00 ED 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 22 02 00 F4 03 04 00 CD 6A C4 66 B6 04 01 00 00 6B 10 1C 61 55 3B E0 EE [16:28:44]CommunicateWithHost err = 0 [16:28:44]CheckOFDResponse [16:28:44]1017 (14) - 77093643461234 [16:28:44]1041 (16) - 0000000000871776 [16:28:44]1040 (4) - 139783 [16:28:44]1012 (4) - 20.08.2024 10:07 [16:28:44]1206 (1) - 0 [16:28:44]OFD Sender: Remove packet 139783 [16:28:44]ProducePacketName [16:28:44]name=ofd_packets/00139783 [16:28:44]NVStorageDeleteData [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:08]int [16:29:08]Write to MH i2c: 01 00 00 97 08 9F [16:29:08]*** FLAG_PRN_KEY set [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 07 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 07 00 97 08 00 08 00 00 00 FF 0F BC [16:29:08]state=0 [16:29:08]Key pressed [16:29:08]Feed [16:29:08]Write to MH i2c: D8 00 00 98 08 77 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: D8 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: D8 01 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: D8 01 00 98 08 00 78 [16:29:08]int [16:29:08]Write to MH i2c: 01 00 00 99 08 A1 [16:29:08]Write i2c OK [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 07 00 [16:29:08]MH_I2C_Read... [16:29:08]Read from MH i2c: 01 07 00 99 08 00 48 00 00 00 3C 00 2C [16:29:08]state=2 [16:29:08]Key pressed [16:29:09]int [16:29:09]Write to MH i2c: 01 00 00 9A 08 A2 [16:29:09]*** FLAG_PRN_KEY reset [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 9A 08 00 00 00 00 00 F5 0F AD [16:29:09]state=2 [16:29:09]Stop feed [16:29:09]OFD Sender: No OFD packet to send [16:29:09]int [16:29:09]Write to MH i2c: 01 00 00 9B 08 A3 [16:29:09]*** FLAG_PRN_KEY set [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 9B 08 00 08 00 00 00 FF 0F C0 [16:29:09]state=0 [16:29:09]Key pressed [16:29:09]Feed [16:29:09]Write to MH i2c: D8 00 00 9C 08 7B [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: D8 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: D8 01 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: D8 01 00 9C 08 00 7C [16:29:09]int [16:29:09]Write to MH i2c: 01 00 00 9D 08 A5 [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 9D 08 00 48 00 00 00 3C 00 30 [16:29:09]state=2 [16:29:09]Key pressed [16:29:09]int [16:29:09]Write to MH i2c: 01 00 00 9E 08 A6 [16:29:09]*** FLAG_PRN_KEY reset [16:29:09]Write i2c OK [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 [16:29:09]MH_I2C_Read... [16:29:09]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 F6 0F B2 [16:29:09]state=2 [16:29:09]Stop feed [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:35]accept exits with 9 [16:30:35]New connection [16:30:35]New thread 3066649956 created [16:30:35]Thread 3066793316 joined [16:30:35]Waiting for new connection... [16:30:35] Sock 9.Parse request [16:30:35]Sock 9.Check first char [16:30:35]Sock 9.First char is OK [16:30:35]request: POST /json_proto HTTP/1.0 [16:30:35]Method: POST [16:30:35]URL: /json_proto [16:30:35]Method is POST - this is cgi request [16:30:35]url: /json_proto [16:30:35]query_string will be loaded in cgi processing [16:30:35]execute_cgi json_proto POST (null) [16:30:35]execute_cgi path=json_proto method=POST [16:30:35]POST find Content-Length [16:30:35]Host: 172.17.45.67:8080 [16:30:35]Content-Length: 658 [16:30:35]Content-Type: application/json [16:30:35] [16:30:35]POST finish read [16:30:35]Found Content-Length = 658 [16:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:35]execute_script... [16:30:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:35]POST & json_proto [16:30:35]process_json_proto [16:30:35]json parsed OK: [16:30:35]protocol is kg_v1.0 [16:30:35]action value=close_receipt [16:30:35]process_action close_receipt [16:30:35]cmd_close_receipt [16:30:35]MH_GetDate [16:30:35]Write to MH i2c: F0 00 00 9F 08 96 [16:30:35]Write i2c OK [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: F0 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: F0 09 00 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: F0 09 00 9F 08 00 AB C4 C4 66 5F 7F 2B 66 A7 [16:30:35]GetLastDocTimeStamp 1724171185 [16:30:35]current date 1724171435 [16:30:35]FM_GetShiftState [16:30:35]SAM_PROTO_GetShiftState [16:30:35]wFMCommunicate request_size=4 [16:30:35]MH_SAM_APDU [16:30:35]CAPDU: 80 13 01 00 [16:30:35]Write to MH i2c: E2 08 00 A0 08 80 13 01 00 00 00 00 00 25 [16:30:35]Write i2c OK [16:30:35]MH_I2C_Read... [16:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:35]Read from MH i2c: E2 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: E2 0E 00 [16:30:35]MH_I2C_Read... [16:30:35]Read from MH i2c: E2 0E 00 A0 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B6 [16:30:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:30:35]wFMCommunicate OK [16:30:35]SAM_PROTO_GetShiftState done [16:30:35]FM_GetShiftState done [16:30:35]opened in 1724113785 [16:30:35]opened+sec_in_day 1724200185 [16:30:35]quantity*price = 50017 [16:30:35]sum+1 = 50019 [16:30:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 256 20.08.2024 16:30 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139784 ФПД: 136570425042138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163035&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139784&fm=136570425042138&tin=02508201610067®Number=0000000000092569&sum=50000 [16:30:36]StoreToDocumentArchive [16:30:36]shift 453 fd 139784 [16:30:36]save to /storage/0453/doc_00139784 [16:30:36]save last doc name /storage/0453/doc_00139784 to /storage/kkm_last_doc_name [16:30:36]save OK [16:30:36]Clear old archive folders... [16:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:30:36]tlvbuf is 00D143E0 [16:30:36]SAM_PROTO_ClearQueue [16:30:36]wFMCommunicate request_size=4 [16:30:36]MH_SAM_APDU [16:30:36]CAPDU: 80 09 00 00 [16:30:36]Write to MH i2c: E2 08 00 AD 08 80 09 00 00 00 00 00 00 27 [16:30:36]Write i2c OK [16:30:36]MH_I2C_Read... [16:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:36]Read from MH i2c: E2 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 03 00 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [16:30:36]RAPDU: 90 00 [16:30:36]wFMCommunicate OK [16:30:36]SAM_PROTO_ClearQueue done [16:30:36]KKMCreateOFDPacket [16:30:36]OFDProtocolAddRootSTLVToBuf [16:30:36]FM_MakeSignedData [16:30:36]FM_MakeSignedData [16:30:36]SAM_PROTO_SignData [16:30:36]wFMCommunicate request_size=4 [16:30:36]MH_SAM_APDU [16:30:36]CAPDU: 80 0D 01 02 [16:30:36]Write to MH i2c: E2 08 00 AE 08 80 0D 01 02 00 00 00 00 2F [16:30:36]Write i2c OK [16:30:36]MH_I2C_Read... [16:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:36]Read from MH i2c: E2 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 03 00 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [16:30:36]RAPDU: 90 00 [16:30:36]wFMCommunicate OK [16:30:36]wFMCommunicate request_size=253 [16:30:36]MH_SAM_APDU [16:30:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 01 00 00 F4 03 04 00 AB C4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 22 02 00 35 04 06 00 7C 35 C7 AB E4 DA [16:30:36]Write to MH i2c: E2 00 01 AF 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 01 00 00 F4 03 04 00 AB C4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 22 02 00 35 04 06 00 7C 35 C7 AB E4 DA 00 00 B5 [16:30:36]Write i2c OK [16:30:36]MH_I2C_Read... [16:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:36]Read from MH i2c: E2 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 03 00 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 03 00 AF 08 00 90 00 2B [16:30:36]RAPDU: 90 00 [16:30:36]wFMCommunicate OK [16:30:36]wFMCommunicate request_size=4 [16:30:36]MH_SAM_APDU [16:30:36]CAPDU: 80 0D 03 02 [16:30:36]Write to MH i2c: E2 08 00 B0 08 80 0D 03 02 00 00 00 00 33 [16:30:36]Write i2c OK [16:30:36]MH_I2C_Read... [16:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:37]Read from MH i2c: E2 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: E2 0B 00 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: E2 0B 00 B0 08 00 81 E7 D7 83 38 FD 2D A0 90 00 F8 [16:30:37]RAPDU: 81 E7 D7 83 38 FD 2D A0 90 00 [16:30:37]wFMCommunicate OK [16:30:37]SAM_PROTO_SignData done [16:30:37]FM_MakeSignedData done [16:30:37]CreateOFDProtocolMessage [16:30:37]wFMCommunicate request_size=4 [16:30:37]MH_SAM_APDU [16:30:37]CAPDU: 80 11 00 00 [16:30:37]Write to MH i2c: E2 08 00 B1 08 80 11 00 00 00 00 00 00 33 [16:30:37]Write i2c OK [16:30:37]MH_I2C_Read... [16:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:37]Read from MH i2c: E2 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: E2 17 00 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: E2 17 00 B1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8A [16:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:30:37]wFMCommunicate OK [16:30:37]CreateOFDProtocolMessage done [16:30:37]OFDSenderStorePacket 139784 [16:30:37]StoreOFDPacket docnum=139784 [16:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 64 F4 00 01 91 AD 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 01 00 00 F4 03 04 00 AB C4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 22 02 00 35 04 06 00 7C 35 C7 AB E4 DA 81 E7 D7 83 38 FD 2D A0 [16:30:37]CheckFolder [16:30:37]dirname=/storage/ofd_packets [16:30:37]CheckFolder done [16:30:37]ProducePacketName [16:30:37]name=ofd_packets/00139784 [16:30:37]NVStorageSaveData ofd_packets/00139784 [16:30:37]File name is /storage/ofd_packets/00139784 [16:30:37]Write 294 bytes [16:30:37]NVStorageSaveData done [16:30:37]OFDSenderStorePacket done [16:30:37]KKMCreateOFDPacket done [16:30:37]NVStorageSaveData kkm_last_timestamp [16:30:37]File name is /storage/kkm_last_timestamp [16:30:37]Write 4 bytes [16:30:37]NVStorageSaveData done [16:30:37]ExternCall_PrintAddStr [16:30:37]wPrintStart [16:30:37]Write to MH i2c: 01 00 00 B2 08 BA [16:30:37]Write i2c OK [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: 01 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: 01 07 00 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: 01 07 00 B2 08 00 00 00 00 00 FF 0F CF [16:30:37]RasterBufferAndPrint [16:30:37]line Счет N : (1)593632 [16:30:37]line ИНН: 02508201610067 [16:30:37]line Контрольно-Кассовый Чек [16:30:37]line ПРОДАЖА [16:30:37]line ТРК (МРК, ГНК) : 43 [16:30:37]line Товар: 2710124130 [16:30:37]line SU-92 [16:30:37]line 7.270 * 68.80 [16:30:37]line = 500.18 [16:30:37]line НДС 12% НСП 1% [16:30:37]line > о реализуемом товаре [16:30:37]line ОКРУГЛЕНИЕ: -0.18 [16:30:37]line ИТОГО: 500.00 [16:30:37]line Внесено: 500.00 [16:30:37]line СДАЧА: 0.00 [16:30:37]line НСП 1% : 4.43 [16:30:37]line НДС 12% : 53.12 [16:30:37]line Наличными: 500.00 [16:30:37]line Безнал.: 0.00 [16:30:37]line Место: АЗС № 136 "Партнер Нефть" [16:30:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:30:37]line СНО: Общий режим [16:30:37]line Чек 256 20.08.2024 16:30 [16:30:37]line Смена: 453 ФФД: 1.0 [16:30:37]line ЗНМ: 0300000067 [16:30:37]line РНМ: 0000000000092569 [16:30:37]line Версия ККМ: 001 [16:30:37]line ФМ: 0000000000871776 [16:30:37]line ФД: 139784 [16:30:37]line ФПД: 136570425042138 [16:30:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163035&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139784&fm=136570425042138&tin=02508201610067®Number=0000000000092569&sum=50000 [16:30:37]OFD Sender: Processing packet 139784 [packets to send 137, broken 136] [16:30:37]ProducePacketName [16:30:37]name=ofd_packets/00139784 [16:30:37]OFD Sender: To server: pG, [16:30:37]CommunicateWithHost lk.salyk.kg:30040 [16:30:37]ConnectInit lk.salyk.kg [16:30:37]written 0, free lines is 4095 [16:30:37]Connected sock=10 [16:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 64 F4 00 01 91 AD 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 01 00 00 F4 03 04 00 AB C4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 22 02 00 35 04 06 00 7C 35 C7 AB E4 DA 81 E7 D7 83 38 FD 2D A0 [16:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 81 40 47 00 7E FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 22 02 00 F4 03 04 00 3E 6B C4 66 B6 04 01 00 00 B3 D5 C6 58 19 11 0C A4 [16:30:37]CommunicateWithHost err = 0 [16:30:37]CheckOFDResponse [16:30:37]1017 (14) - 77093643461234 [16:30:37]1041 (16) - 0000000000871776 [16:30:37]1040 (4) - 139784 [16:30:37]1012 (4) - 20.08.2024 10:09 [16:30:37]1206 (1) - 0 [16:30:37]OFD Sender: Remove packet 139784 [16:30:37]ProducePacketName [16:30:37]name=ofd_packets/00139784 [16:30:37]NVStorageDeleteData [16:30:37]Write to MH i2c: 01 00 00 DD 08 E5 [16:30:37]Write i2c OK [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: 01 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: 01 07 00 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: 01 07 00 DD 08 00 00 00 00 00 D4 0C CC [16:30:37]RasterBufferAndPrint [16:30:37]line [16:30:37]line [16:30:37]line [16:30:37]line [16:30:37]line [16:30:37]written 0, free lines is 3289 [16:30:37]MH_Cut [16:30:37]Write to MH i2c: D1 01 00 E4 08 01 BE [16:30:37]Write i2c OK [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: D1 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: D1 01 00 [16:30:37]MH_I2C_Read... [16:30:37]Read from MH i2c: D1 01 00 E4 08 00 BD [16:30:37]Write to MH i2c: 01 00 00 E5 08 ED [16:30:37]Write i2c OK [16:30:37]MH_I2C_Read... [16:30:38]OFD Sender: No OFD packet to send [16:30:38]*** Cut start [16:30:38]*** Partial cut [16:30:38]*** CUTSNS_PIN = 1 [16:30:38]*** CUTSNS_PIN = 0 [16:30:38]*** Brake cut motor [16:30:39]Read from MH i2c: 01 [16:30:39]MH_I2C_Read... [16:30:39]*** Stop cut motor [16:30:39]*** Cut end [16:30:39]Read from MH i2c: 01 07 00 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: 01 07 00 E5 08 00 00 00 00 00 FF 0F 02 [16:30:39]process_action close_receipt done [16:30:39]requested_data is exist [16:30:39]produce_requested_data [16:30:39]requested_item fm.sn is exist - process it [16:30:39]wFMCommunicate request_size=4 [16:30:39]MH_SAM_APDU [16:30:39]CAPDU: 80 11 00 00 [16:30:39]Write to MH i2c: E2 08 00 E6 08 80 11 00 00 00 00 00 00 68 [16:30:39]Write i2c OK [16:30:39]MH_I2C_Read... [16:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:39]Read from MH i2c: E2 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: E2 17 00 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: E2 17 00 E6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BF [16:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:30:39]wFMCommunicate OK [16:30:39]requested_item fd.num is exist - process it [16:30:39]SAM_PROTO_GetFieldsCounters [16:30:39]wFMCommunicate request_size=4 [16:30:39]MH_SAM_APDU [16:30:39]CAPDU: 80 13 00 00 [16:30:39]Write to MH i2c: E2 08 00 E7 08 80 13 00 00 00 00 00 00 6B [16:30:39]Write i2c OK [16:30:39]MH_I2C_Read... [16:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:39]Read from MH i2c: E2 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: E2 62 00 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: E2 62 00 E7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 22 02 00 0E 04 04 00 C5 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 8B [16:30:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 22 02 00 0E 04 04 00 C5 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 [16:30:39]wFMCommunicate OK [16:30:39]SAM_PROTO_GetFieldsCounters done [16:30:39]requested_item shift.num is exist - process it [16:30:39]requested_item shift.opened is exist - process it [16:30:39]req_shift_opened [16:30:39]FM_GetShiftState [16:30:39]SAM_PROTO_GetShiftState [16:30:39]wFMCommunicate request_size=4 [16:30:39]MH_SAM_APDU [16:30:39]CAPDU: 80 13 01 00 [16:30:39]Write to MH i2c: E2 08 00 E8 08 80 13 01 00 00 00 00 00 6D [16:30:39]Write i2c OK [16:30:39]MH_I2C_Read... [16:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:39]Read from MH i2c: E2 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: E2 0E 00 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: E2 0E 00 E8 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FE [16:30:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:30:39]wFMCommunicate OK [16:30:39]SAM_PROTO_GetShiftState done [16:30:39]FM_GetShiftState done [16:30:39]req_shift_opened done [16:30:39]requested_item shift.open_date is exist - process it [16:30:39]req_shift_open_date [16:30:39]req_shift_open_date done [16:30:39]produce_requested_data done [16:30:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139784,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:30:39]process_action_free close_receipt [16:30:39]json_value_free [16:30:39]json_value_free done [16:30:39]process_json_proto returns [16:30:39]Send response to host [16:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139784,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:30:39]free response buf [16:30:39]execute_script done [16:30:39]execute_script returns [16:30:39]free content buf [16:30:39]Sock 9.Close socket [16:30:39]Sock 9.Thread stoped [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]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:35]accept exits with 8 [16:31:35]New connection [16:31:35]New thread 3066793316 created [16:31:35]Thread 3066649956 joined [16:31:35]Waiting for new connection... [16:31:35] Sock 8.Parse request [16:31:35]Sock 8.Check first char [16:31:35]Sock 8.First char is OK [16:31:35]request: POST /json_proto HTTP/1.0 [16:31:35]Method: POST [16:31:35]URL: /json_proto [16:31:35]Method is POST - this is cgi request [16:31:35]url: /json_proto [16:31:35]query_string will be loaded in cgi processing [16:31:35]execute_cgi json_proto POST (null) [16:31:35]execute_cgi path=json_proto method=POST [16:31:35]POST find Content-Length [16:31:35]Host: 172.17.45.67:8080 [16:31:35]Content-Length: 682 [16:31:35]Content-Type: application/json [16:31:35] [16:31:35]POST finish read [16:31:35]Found Content-Length = 682 [16:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:35]execute_script... [16:31:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:35]POST & json_proto [16:31:35]process_json_proto [16:31:35]json parsed OK: [16:31:35]protocol is kg_v1.0 [16:31:35]action value=close_receipt [16:31:35]process_action close_receipt [16:31:35]cmd_close_receipt [16:31:35]MH_GetDate [16:31:35]Write to MH i2c: F0 00 00 E9 08 E0 [16:31:35]Write i2c OK [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: F0 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: F0 09 00 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: F0 09 00 E9 08 00 E7 C4 C4 66 5F 7F 2B 66 2D [16:31:35]GetLastDocTimeStamp 1724171435 [16:31:35]current date 1724171495 [16:31:35]FM_GetShiftState [16:31:35]SAM_PROTO_GetShiftState [16:31:35]wFMCommunicate request_size=4 [16:31:35]MH_SAM_APDU [16:31:35]CAPDU: 80 13 01 00 [16:31:35]Write to MH i2c: E2 08 00 EA 08 80 13 01 00 00 00 00 00 6F [16:31:35]Write i2c OK [16:31:35]MH_I2C_Read... [16:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:35]Read from MH i2c: E2 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: E2 0E 00 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: E2 0E 00 EA 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 00 [16:31:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:31:35]wFMCommunicate OK [16:31:35]SAM_PROTO_GetShiftState done [16:31:35]FM_GetShiftState done [16:31:35]opened in 1724113785 [16:31:35]opened+sec_in_day 1724200185 [16:31:35]quantity*price = 100005 [16:31:35]sum+1 = 100006 [16:31:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 257 20.08.2024 16:31 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139785 ФПД: 39782205421924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163135&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139785&fm=39782205421924&tin=02508201610067®Number=0000000000092569&sum=100000 [16:31:36]StoreToDocumentArchive [16:31:36]shift 453 fd 139785 [16:31:36]save to /storage/0453/doc_00139785 [16:31:36]save last doc name /storage/0453/doc_00139785 to /storage/kkm_last_doc_name [16:31:36]save OK [16:31:36]Clear old archive folders... [16:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:36]tlvbuf is 00CDF620 [16:31:36]SAM_PROTO_ClearQueue [16:31:36]wFMCommunicate request_size=4 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 09 00 00 [16:31:36]Write to MH i2c: E2 08 00 F7 08 80 09 00 00 00 00 00 00 71 [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 03 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [16:31:36]RAPDU: 90 00 [16:31:36]wFMCommunicate OK [16:31:36]SAM_PROTO_ClearQueue done [16:31:36]KKMCreateOFDPacket [16:31:36]OFDProtocolAddRootSTLVToBuf [16:31:36]FM_MakeSignedData [16:31:36]FM_MakeSignedData [16:31:36]SAM_PROTO_SignData [16:31:36]wFMCommunicate request_size=4 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 0D 01 02 [16:31:36]Write to MH i2c: E2 08 00 F8 08 80 0D 01 02 00 00 00 00 79 [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 03 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [16:31:36]RAPDU: 90 00 [16:31:36]wFMCommunicate OK [16:31:36]wFMCommunicate request_size=255 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 E7 C4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 22 02 00 35 04 06 00 24 [16:31:36]Write to MH i2c: E2 02 01 F9 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 E7 C4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 22 02 00 35 04 06 00 24 00 00 7F [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 03 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [16:31:36]RAPDU: 90 00 [16:31:36]wFMCommunicate OK [16:31:36]wFMCommunicate request_size=10 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 0D 02 02 05 2E 84 38 F9 64 [16:31:36]Write to MH i2c: E2 0D 00 FA 08 80 0D 02 02 05 00 2E 84 38 F9 64 00 00 CD [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 03 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [16:31:36]RAPDU: 90 00 [16:31:36]wFMCommunicate OK [16:31:36]wFMCommunicate request_size=4 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 0D 03 02 [16:31:36]Write to MH i2c: E2 08 00 FB 08 80 0D 03 02 00 00 00 00 7E [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 0B 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 0B 00 FB 08 00 6B B1 4D 7C BB 55 96 E9 90 00 F3 [16:31:36]RAPDU: 6B B1 4D 7C BB 55 96 E9 90 00 [16:31:36]wFMCommunicate OK [16:31:36]SAM_PROTO_SignData done [16:31:36]FM_MakeSignedData done [16:31:36]CreateOFDProtocolMessage [16:31:36]wFMCommunicate request_size=4 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 11 00 00 [16:31:36]Write to MH i2c: E2 08 00 FC 08 80 11 00 00 00 00 00 00 7E [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 17 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 17 00 FC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D5 [16:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:31:36]wFMCommunicate OK [16:31:36]CreateOFDProtocolMessage done [16:31:36]OFDSenderStorePacket 139785 [16:31:36]StoreOFDPacket docnum=139785 [16:31:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F A8 07 01 3E DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 E7 C4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 22 02 00 35 04 06 00 24 2E 84 38 F9 64 6B B1 4D 7C BB 55 96 E9 [16:31:36]CheckFolder [16:31:36]dirname=/storage/ofd_packets [16:31:36]CheckFolder done [16:31:36]ProducePacketName [16:31:36]name=ofd_packets/00139785 [16:31:36]NVStorageSaveData ofd_packets/00139785 [16:31:36]File name is /storage/ofd_packets/00139785 [16:31:36]Write 301 bytes [16:31:36]NVStorageSaveData done [16:31:36]OFDSenderStorePacket done [16:31:36]KKMCreateOFDPacket done [16:31:36]NVStorageSaveData kkm_last_timestamp [16:31:36]File name is /storage/kkm_last_timestamp [16:31:36]Write 4 bytes [16:31:36]NVStorageSaveData done [16:31:36]ExternCall_PrintAddStr [16:31:36]wPrintStart [16:31:36]Write to MH i2c: 01 00 00 FD 08 05 [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: 01 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: 01 07 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: 01 07 00 FD 08 00 00 00 00 00 FF 0F 1A [16:31:36]RasterBufferAndPrint [16:31:36]line Счет N : (1)593633 [16:31:36]line ИНН: 02508201610067 [16:31:36]line Контрольно-Кассовый Чек [16:31:36]line ПРОДАЖА [16:31:36]line ТРК (МРК, ГНК) : 62 [16:31:36]line Товар: 2710124130 [16:31:36]line Аи-92-К-5 [16:31:36]line 14.750 * 67.80 [16:31:36]line = 1000.05 [16:31:36]line НДС 12% НСП 1% [16:31:36]line > о реализуемом товаре [16:31:36]line ОКРУГЛЕНИЕ: -0.05 [16:31:36]line ИТОГО: 1000.00 [16:31:36]line Внесено: 1000.00 [16:31:36]line СДАЧА: 0.00 [16:31:36]line НСП 1% : 8.85 [16:31:36]line НДС 12% : 106.20 [16:31:36]line Наличными: 1000.00 [16:31:36]line Безнал.: 0.00 [16:31:36]line Место: АЗС № 136 "Партнер Нефть" [16:31:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:31:36]line СНО: Общий режим [16:31:36]line Чек 257 20.08.2024 16:31 [16:31:36]line Смена: 453 ФФД: 1.0 [16:31:36]line ЗНМ: 0300000067 [16:31:36]line РНМ: 0000000000092569 [16:31:36]line Версия ККМ: 001 [16:31:36]line ФМ: 0000000000871776 [16:31:36]line ФД: 139785 [16:31:36]line ФПД: 39782205421924 [16:31:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163135&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139785&fm=39782205421924&tin=02508201610067®Number=0000000000092569&sum=100000 [16:31:37]OFD Sender: Processing packet 139785 [packets to send 137, broken 136] [16:31:37]ProducePacketName [16:31:37]name=ofd_packets/00139785 [16:31:37]OFD Sender: To server: pG, [16:31:37]CommunicateWithHost lk.salyk.kg:30040 [16:31:37]ConnectInit lk.salyk.kg [16:31:37]written 0, free lines is 4095 [16:31:37]Connected sock=9 [16:31:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F A8 07 01 3E DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 E7 C4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 22 02 00 35 04 06 00 24 2E 84 38 F9 64 6B B1 4D 7C BB 55 96 E9 [16:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7D AD 47 00 3C C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 22 02 00 F4 03 04 00 7A 6B C4 66 B6 04 01 00 00 36 53 0C 6C C7 8E B3 A5 [16:31:37]CommunicateWithHost err = 0 [16:31:37]CheckOFDResponse [16:31:37]1017 (14) - 77093643461234 [16:31:37]1041 (16) - 0000000000871776 [16:31:37]1040 (4) - 139785 [16:31:37]1012 (4) - 20.08.2024 10:10 [16:31:37]1206 (1) - 0 [16:31:37]OFD Sender: Remove packet 139785 [16:31:37]ProducePacketName [16:31:37]name=ofd_packets/00139785 [16:31:37]NVStorageDeleteData [16:31:37]Write to MH i2c: 01 00 00 28 09 31 [16:31:37]Write i2c OK [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: 01 [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: 01 07 00 [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: 01 07 00 28 09 00 00 00 00 00 CE 0C 12 [16:31:37]RasterBufferAndPrint [16:31:37]line [16:31:37]line [16:31:37]line [16:31:37]line [16:31:37]line [16:31:37]written 0, free lines is 3285 [16:31:37]MH_Cut [16:31:37]Write to MH i2c: D1 01 00 2F 09 01 0A [16:31:37]Write i2c OK [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: D1 [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: D1 01 00 [16:31:37]MH_I2C_Read... [16:31:37]Read from MH i2c: D1 01 00 2F 09 00 09 [16:31:37]Write to MH i2c: 01 00 00 30 09 39 [16:31:37]Write i2c OK [16:31:37]MH_I2C_Read... [16:31:38]OFD Sender: No OFD packet to send [16:31:38]*** Cut start [16:31:38]*** Partial cut [16:31:38]*** CUTSNS_PIN = 1 [16:31:38]*** CUTSNS_PIN = 0 [16:31:38]*** Brake cut motor [16:31:38]Read from MH i2c: 01 [16:31:38]MH_I2C_Read... [16:31:38]*** Stop cut motor [16:31:38]*** Cut end [16:31:38]Read from MH i2c: 01 07 00 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: 01 07 00 30 09 00 00 00 00 00 FF 0F 4E [16:31:38]process_action close_receipt done [16:31:38]requested_data is exist [16:31:38]produce_requested_data [16:31:38]requested_item fm.sn is exist - process it [16:31:38]wFMCommunicate request_size=4 [16:31:38]MH_SAM_APDU [16:31:38]CAPDU: 80 11 00 00 [16:31:38]Write to MH i2c: E2 08 00 31 09 80 11 00 00 00 00 00 00 B4 [16:31:38]Write i2c OK [16:31:38]MH_I2C_Read... [16:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:38]Read from MH i2c: E2 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 17 00 [16:31:38]MH_I2C_Read... [16:31:38]Read from MH i2c: E2 17 00 31 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0B [16:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:31:38]wFMCommunicate OK [16:31:38]requested_item fd.num is exist - process it [16:31:38]SAM_PROTO_GetFieldsCounters [16:31:38]wFMCommunicate request_size=4 [16:31:38]MH_SAM_APDU [16:31:38]CAPDU: 80 13 00 00 [16:31:38]Write to MH i2c: E2 08 00 32 09 80 13 00 00 00 00 00 00 B7 [16:31:38]Write i2c OK [16:31:38]MH_I2C_Read... [16:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:39]Read from MH i2c: E2 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 62 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 62 00 32 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 22 02 00 0E 04 04 00 C5 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 DB [16:31:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 22 02 00 0E 04 04 00 C5 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 [16:31:39]wFMCommunicate OK [16:31:39]SAM_PROTO_GetFieldsCounters done [16:31:39]requested_item shift.num is exist - process it [16:31:39]requested_item shift.opened is exist - process it [16:31:39]req_shift_opened [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 33 09 80 13 01 00 00 00 00 00 B9 [16:31:39]Write i2c OK [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 [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 0E 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 0E 00 33 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4A [16:31:39]RAPDU: 09 00 01 79 E3 C3 66 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]req_shift_opened done [16:31:39]requested_item shift.open_date is exist - process it [16:31:39]req_shift_open_date [16:31:39]req_shift_open_date done [16:31:39]produce_requested_data done [16:31:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139785,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:31:39]process_action_free close_receipt [16:31:39]json_value_free [16:31:39]json_value_free done [16:31:39]process_json_proto returns [16:31:39]Send response to host [16:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139785,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:31:39]free response buf [16:31:39]execute_script done [16:31:39]execute_script returns [16:31:39]free content buf [16:31:39]Sock 8.Close socket [16:31:39]Sock 8.Thread stoped [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:12]accept exits with 10 [16:36:12]New connection [16:36:12]New thread 3066649956 created [16:36:12]Thread 3066793316 joined [16:36:12]Waiting for new connection... [16:36:12] Sock 10.Parse request [16:36:12]Sock 10.Check first char [16:36:12]Sock 10.First char is OK [16:36:12]request: POST /json_proto HTTP/1.0 [16:36:12]Method: POST [16:36:12]URL: /json_proto [16:36:12]Method is POST - this is cgi request [16:36:12]url: /json_proto [16:36:12]query_string will be loaded in cgi processing [16:36:12]execute_cgi json_proto POST (null) [16:36:12]execute_cgi path=json_proto method=POST [16:36:12]POST find Content-Length [16:36:12]Host: 172.17.45.67:8080 [16:36:12]Content-Length: 682 [16:36:12]Content-Type: application/json [16:36:12] [16:36:12]POST finish read [16:36:12]Found Content-Length = 682 [16:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:12]execute_script... [16:36: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)593634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:12]POST & json_proto [16:36:12]process_json_proto [16:36:12]json parsed OK: [16:36:12]protocol is kg_v1.0 [16:36:12]action value=close_receipt [16:36:12]process_action close_receipt [16:36:12]cmd_close_receipt [16:36:12]MH_GetDate [16:36:12]Write to MH i2c: F0 00 00 34 09 2C [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: F0 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: F0 09 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: F0 09 00 34 09 00 FC C5 C4 66 5F 7F 2B 66 8F [16:36:12]GetLastDocTimeStamp 1724171495 [16:36:12]current date 1724171772 [16:36:12]FM_GetShiftState [16:36:12]SAM_PROTO_GetShiftState [16:36:12]wFMCommunicate request_size=4 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 13 01 00 [16:36:12]Write to MH i2c: E2 08 00 35 09 80 13 01 00 00 00 00 00 BB [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 0E 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 0E 00 35 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4C [16:36:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:36:12]wFMCommunicate OK [16:36:12]SAM_PROTO_GetShiftState done [16:36:12]FM_GetShiftState done [16:36:12]opened in 1724113785 [16:36:12]opened+sec_in_day 1724200185 [16:36:12]quantity*price = 70027 [16:36:12]sum+1 = 70029 [16:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 258 20.08.2024 16:36 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139786 ФПД: 244665527485374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163612&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139786&fm=244665527485374&tin=02508201610067®Number=0000000000092569&sum=70000 [16:36:13]StoreToDocumentArchive [16:36:13]shift 453 fd 139786 [16:36:13]save to /storage/0453/doc_00139786 [16:36:13]save last doc name /storage/0453/doc_00139786 to /storage/kkm_last_doc_name [16:36:13]save OK [16:36:13]Clear old archive folders... [16:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:36:13]tlvbuf is 00D3E060 [16:36:13]SAM_PROTO_ClearQueue [16:36:13]wFMCommunicate request_size=4 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 09 00 00 [16:36:13]Write to MH i2c: E2 08 00 42 09 80 09 00 00 00 00 00 00 BD [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [16:36:13]RAPDU: 90 00 [16:36:13]wFMCommunicate OK [16:36:13]SAM_PROTO_ClearQueue done [16:36:13]KKMCreateOFDPacket [16:36:13]OFDProtocolAddRootSTLVToBuf [16:36:13]FM_MakeSignedData [16:36:13]FM_MakeSignedData [16:36:13]SAM_PROTO_SignData [16:36:13]wFMCommunicate request_size=4 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 0D 01 02 [16:36:13]Write to MH i2c: E2 08 00 43 09 80 0D 01 02 00 00 00 00 C5 [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [16:36:13]RAPDU: 90 00 [16:36:13]wFMCommunicate OK [16:36:13]wFMCommunicate request_size=255 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 FC C5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 22 02 00 35 04 06 00 [16:36:13]Write to MH i2c: E2 02 01 44 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 FC C5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 22 02 00 35 04 06 00 00 00 1A [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [16:36:13]RAPDU: 90 00 [16:36:13]wFMCommunicate OK [16:36:13]wFMCommunicate request_size=11 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 0D 02 02 06 DE 85 A1 DA C3 BE [16:36:13]Write to MH i2c: E2 0E 00 45 09 80 0D 02 02 06 00 DE 85 A1 DA C3 BE 00 00 33 [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [16:36:13]RAPDU: 90 00 [16:36:13]wFMCommunicate OK [16:36:13]wFMCommunicate request_size=4 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 0D 03 02 [16:36:13]Write to MH i2c: E2 08 00 46 09 80 0D 03 02 00 00 00 00 CA [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 0B 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 0B 00 46 09 00 FE 10 0F 0B 0C 27 6B 96 90 00 27 [16:36:13]RAPDU: FE 10 0F 0B 0C 27 6B 96 90 00 [16:36:13]wFMCommunicate OK [16:36:13]SAM_PROTO_SignData done [16:36:13]FM_MakeSignedData done [16:36:13]CreateOFDProtocolMessage [16:36:13]wFMCommunicate request_size=4 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 11 00 00 [16:36:13]Write to MH i2c: E2 08 00 47 09 80 11 00 00 00 00 00 00 CA [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 17 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 17 00 47 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 21 [16:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:36:13]wFMCommunicate OK [16:36:13]CreateOFDProtocolMessage done [16:36:13]OFDSenderStorePacket 139786 [16:36:13]StoreOFDPacket docnum=139786 [16:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 2A 08 08 01 56 EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 FC C5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 22 02 00 35 04 06 00 DE 85 A1 DA C3 BE FE 10 0F 0B 0C 27 6B 96 [16:36:13]CheckFolder [16:36:13]dirname=/storage/ofd_packets [16:36:13]CheckFolder done [16:36:13]ProducePacketName [16:36:13]name=ofd_packets/00139786 [16:36:13]NVStorageSaveData ofd_packets/00139786 [16:36:13]File name is /storage/ofd_packets/00139786 [16:36:13]Write 302 bytes [16:36:13]NVStorageSaveData done [16:36:13]OFDSenderStorePacket done [16:36:13]KKMCreateOFDPacket done [16:36:13]NVStorageSaveData kkm_last_timestamp [16:36:13]File name is /storage/kkm_last_timestamp [16:36:13]Write 4 bytes [16:36:13]NVStorageSaveData done [16:36:13]ExternCall_PrintAddStr [16:36:13]wPrintStart [16:36:13]Write to MH i2c: 01 00 00 48 09 51 [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: 01 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: 01 07 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: 01 07 00 48 09 00 00 00 00 00 FF 0F 66 [16:36:13]RasterBufferAndPrint [16:36:13]line Счет N : (1)593634 [16:36:13]line ИНН: 02508201610067 [16:36:13]line Контрольно-Кассовый Чек [16:36:13]line ПРОДАЖА [16:36:13]line ТРК (МРК, ГНК) : 21 [16:36:13]line Товар: 2710194210 [16:36:13]line ДТ(л)-К-5 [16:36:13]line 9.190 * 76.20 [16:36:13]line = 700.28 [16:36:13]line НДС 12% НСП 1% [16:36:13]line > о реализуемом товаре [16:36:13]line ОКРУГЛЕНИЕ: -0.28 [16:36:13]line ИТОГО: 700.00 [16:36:13]line Внесено: 700.00 [16:36:13]line СДАЧА: 0.00 [16:36:13]line НСП 1% : 6.20 [16:36:13]line НДС 12% : 74.37 [16:36:13]line Наличными: 700.00 [16:36:13]line Безнал.: 0.00 [16:36:13]line Место: АЗС № 136 "Партнер Нефть" [16:36:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:36:13]line СНО: Общий режим [16:36:13]line Чек 258 20.08.2024 16:36 [16:36:13]line Смена: 453 ФФД: 1.0 [16:36:13]line ЗНМ: 0300000067 [16:36:13]line РНМ: 0000000000092569 [16:36:13]line Версия ККМ: 001 [16:36:13]line ФМ: 0000000000871776 [16:36:13]line ФД: 139786 [16:36:13]line ФПД: 244665527485374 [16:36:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163612&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139786&fm=244665527485374&tin=02508201610067®Number=0000000000092569&sum=70000 [16:36:14]OFD Sender: Processing packet 139786 [packets to send 137, broken 136] [16:36:14]ProducePacketName [16:36:14]name=ofd_packets/00139786 [16:36:14]OFD Sender: To server: pG, [16:36:14]CommunicateWithHost lk.salyk.kg:30040 [16:36:14]ConnectInit lk.salyk.kg [16:36:14]written 0, free lines is 4095 [16:36:14]Connected sock=11 [16:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 2A 08 08 01 56 EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 FC C5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 22 02 00 35 04 06 00 DE 85 A1 DA C3 BE FE 10 0F 0B 0C 27 6B 96 [16:36:14]Write to MH i2c: 01 00 00 73 09 7C [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 07 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 D5 0C 64 [16:36:14]RasterBufferAndPrint [16:36:14]line [16:36:14]line [16:36:14]line [16:36:14]line [16:36:14]line [16:36:14]written 0, free lines is 3293 [16:36:14]MH_Cut [16:36:14]Write to MH i2c: D1 01 00 7A 09 01 55 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: D1 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: D1 01 00 [16:36:14]MH_I2C_Read... [16:36:14]Read from MH i2c: D1 01 00 7A 09 00 54 [16:36:14]Write to MH i2c: 01 00 00 7B 09 84 [16:36:14]Write i2c OK [16:36:14]MH_I2C_Read... [16:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 75 2D 47 00 67 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 22 02 00 F4 03 04 00 8F 6C C4 66 B6 04 01 00 00 E2 ED 63 69 8E 7D 5B F7 [16:36:14]CommunicateWithHost err = 0 [16:36:14]CheckOFDResponse [16:36:14]1017 (14) - 77093643461234 [16:36:14]1041 (16) - 0000000000871776 [16:36:14]1040 (4) - 139786 [16:36:14]1012 (4) - 20.08.2024 10:14 [16:36:14]1206 (1) - 0 [16:36:14]OFD Sender: Remove packet 139786 [16:36:14]ProducePacketName [16:36:14]name=ofd_packets/00139786 [16:36:14]NVStorageDeleteData [16:36:15]OFD Sender: No OFD packet to send [16:36:15]*** Cut start [16:36:15]*** Partial cut [16:36:15]*** CUTSNS_PIN = 1 [16:36:15]*** CUTSNS_PIN = 0 [16:36:15]*** Brake cut motor [16:36:16]Read from MH i2c: 01 [16:36:16]MH_I2C_Read... [16:36:16]*** Stop cut motor [16:36:16]*** Cut end [16:36:16]Read from MH i2c: 01 07 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: 01 07 00 7B 09 00 00 00 00 00 FF 0F 99 [16:36:16]process_action close_receipt done [16:36:16]requested_data is exist [16:36:16]produce_requested_data [16:36:16]requested_item fm.sn is exist - process it [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 11 00 00 [16:36:16]Write to MH i2c: E2 08 00 7C 09 80 11 00 00 00 00 00 00 FF [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 17 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 17 00 7C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [16:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:36:16]wFMCommunicate OK [16:36:16]requested_item fd.num is exist - process it [16:36:16]SAM_PROTO_GetFieldsCounters [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 13 00 00 [16:36:16]Write to MH i2c: E2 08 00 7D 09 80 13 00 00 00 00 00 00 02 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 62 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 62 00 7D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 22 02 00 0E 04 04 00 C5 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 2A [16:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 22 02 00 0E 04 04 00 C5 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 [16:36:16]wFMCommunicate OK [16:36:16]SAM_PROTO_GetFieldsCounters done [16:36:16]requested_item shift.num is exist - process it [16:36:16]requested_item shift.opened is exist - process it [16:36:16]req_shift_opened [16:36:16]FM_GetShiftState [16:36:16]SAM_PROTO_GetShiftState [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 13 01 00 [16:36:16]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 0E 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 95 [16:36:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:36:16]wFMCommunicate OK [16:36:16]SAM_PROTO_GetShiftState done [16:36:16]FM_GetShiftState done [16:36:16]req_shift_opened done [16:36:16]requested_item shift.open_date is exist - process it [16:36:16]req_shift_open_date [16:36:16]req_shift_open_date done [16:36:16]produce_requested_data done [16:36:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139786,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:36:16]process_action_free close_receipt [16:36:16]json_value_free [16:36:16]json_value_free done [16:36:16]process_json_proto returns [16:36:16]Send response to host [16:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139786,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:36:16]free response buf [16:36:16]execute_script done [16:36:16]execute_script returns [16:36:16]free content buf [16:36:16]Sock 10.Close socket [16:36:16]Sock 10.Thread stoped [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:34]accept exits with 8 [16:36:34]New connection [16:36:34]New thread 3066793316 created [16:36:34]Thread 3066649956 joined [16:36:34]Waiting for new connection... [16:36:34] Sock 8.Parse request [16:36:34]Sock 8.Check first char [16:36:34]Sock 8.First char is OK [16:36:34]request: POST /json_proto HTTP/1.0 [16:36:34]Method: POST [16:36:34]URL: /json_proto [16:36:34]Method is POST - this is cgi request [16:36:34]url: /json_proto [16:36:34]query_string will be loaded in cgi processing [16:36:34]execute_cgi json_proto POST (null) [16:36:34]execute_cgi path=json_proto method=POST [16:36:34]POST find Content-Length [16:36:34]Host: 172.17.45.67:8080 [16:36:34]Content-Length: 677 [16:36:34]Content-Type: application/json [16:36:34] [16:36:34]POST finish read [16:36:34]Found Content-Length = 677 [16:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:34]execute_script... [16:36: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)593635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:34]POST & json_proto [16:36:34]process_json_proto [16:36:34]json parsed OK: [16:36:34]protocol is kg_v1.0 [16:36:34]action value=close_receipt [16:36:34]process_action close_receipt [16:36:34]cmd_close_receipt [16:36:34]MH_GetDate [16:36:34]Write to MH i2c: F0 00 00 7F 09 77 [16:36:34]Write i2c OK [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: F0 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: F0 09 00 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: F0 09 00 7F 09 00 12 C6 C4 66 5F 7F 2B 66 F1 [16:36:34]GetLastDocTimeStamp 1724171772 [16:36:34]current date 1724171794 [16:36:34]FM_GetShiftState [16:36:34]SAM_PROTO_GetShiftState [16:36:34]wFMCommunicate request_size=4 [16:36:34]MH_SAM_APDU [16:36:34]CAPDU: 80 13 01 00 [16:36:34]Write to MH i2c: E2 08 00 80 09 80 13 01 00 00 00 00 00 06 [16:36:34]Write i2c OK [16:36:34]MH_I2C_Read... [16:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:34]Read from MH i2c: E2 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 0E 00 [16:36:34]MH_I2C_Read... [16:36:34]Read from MH i2c: E2 0E 00 80 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 97 [16:36:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:36:34]wFMCommunicate OK [16:36:34]SAM_PROTO_GetShiftState done [16:36:34]FM_GetShiftState done [16:36:34]opened in 1724113785 [16:36:34]opened+sec_in_day 1724200185 [16:36:34]quantity*price = 50036 [16:36:34]sum+1 = 50037 [16:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 259 20.08.2024 16:36 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139787 ФПД: 259726134098656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139787&fm=259726134098656&tin=02508201610067®Number=0000000000092569&sum=50000 [16:36:35]StoreToDocumentArchive [16:36:35]shift 453 fd 139787 [16:36:35]save to /storage/0453/doc_00139787 [16:36:35]save last doc name /storage/0453/doc_00139787 to /storage/kkm_last_doc_name [16:36:35]save OK [16:36:35]Clear old archive folders... [16:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:35]tlvbuf is 00D2C7D0 [16:36:35]SAM_PROTO_ClearQueue [16:36:35]wFMCommunicate request_size=4 [16:36:35]MH_SAM_APDU [16:36:35]CAPDU: 80 09 00 00 [16:36:35]Write to MH i2c: E2 08 00 8D 09 80 09 00 00 00 00 00 00 08 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:35]Read from MH i2c: E2 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 03 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [16:36:35]RAPDU: 90 00 [16:36:35]wFMCommunicate OK [16:36:35]SAM_PROTO_ClearQueue done [16:36:35]KKMCreateOFDPacket [16:36:35]OFDProtocolAddRootSTLVToBuf [16:36:35]FM_MakeSignedData [16:36:35]FM_MakeSignedData [16:36:35]SAM_PROTO_SignData [16:36:35]wFMCommunicate request_size=4 [16:36:35]MH_SAM_APDU [16:36:35]CAPDU: 80 0D 01 02 [16:36:35]Write to MH i2c: E2 08 00 8E 09 80 0D 01 02 00 00 00 00 10 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]OFD Sender: No OFD packet to send [16:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:35]Read from MH i2c: E2 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 03 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [16:36:35]RAPDU: 90 00 [16:36:35]wFMCommunicate OK [16:36:35]wFMCommunicate request_size=255 [16:36:35]MH_SAM_APDU [16:36:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 12 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 22 02 00 35 04 06 00 EC [16:36:35]Write to MH i2c: E2 02 01 8F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 12 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 22 02 00 35 04 06 00 EC 00 00 80 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:35]Read from MH i2c: E2 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 03 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [16:36:35]RAPDU: 90 00 [16:36:35]wFMCommunicate OK [16:36:35]wFMCommunicate request_size=10 [16:36:35]MH_SAM_APDU [16:36:35]CAPDU: 80 0D 02 02 05 38 33 F6 3A E0 [16:36:35]Write to MH i2c: E2 0D 00 90 09 80 0D 02 02 05 00 38 33 F6 3A E0 00 00 98 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:35]Read from MH i2c: E2 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 03 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [16:36:35]RAPDU: 90 00 [16:36:35]wFMCommunicate OK [16:36:35]wFMCommunicate request_size=4 [16:36:35]MH_SAM_APDU [16:36:35]CAPDU: 80 0D 03 02 [16:36:35]Write to MH i2c: E2 08 00 91 09 80 0D 03 02 00 00 00 00 15 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:35]Read from MH i2c: E2 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 0B 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 0B 00 91 09 00 B2 54 D2 08 98 6C 32 DF 90 00 0B [16:36:35]RAPDU: B2 54 D2 08 98 6C 32 DF 90 00 [16:36:35]wFMCommunicate OK [16:36:35]SAM_PROTO_SignData done [16:36:35]FM_MakeSignedData done [16:36:35]CreateOFDProtocolMessage [16:36:35]wFMCommunicate request_size=4 [16:36:35]MH_SAM_APDU [16:36:35]CAPDU: 80 11 00 00 [16:36:35]Write to MH i2c: E2 08 00 92 09 80 11 00 00 00 00 00 00 15 [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:35]Read from MH i2c: E2 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 17 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: E2 17 00 92 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6C [16:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:36:35]wFMCommunicate OK [16:36:35]CreateOFDProtocolMessage done [16:36:35]OFDSenderStorePacket 139787 [16:36:35]StoreOFDPacket docnum=139787 [16:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9F 26 07 01 1F 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 12 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 22 02 00 35 04 06 00 EC 38 33 F6 3A E0 B2 54 D2 08 98 6C 32 DF [16:36:35]CheckFolder [16:36:35]dirname=/storage/ofd_packets [16:36:35]CheckFolder done [16:36:35]ProducePacketName [16:36:35]name=ofd_packets/00139787 [16:36:35]NVStorageSaveData ofd_packets/00139787 [16:36:35]File name is /storage/ofd_packets/00139787 [16:36:35]Write 301 bytes [16:36:35]NVStorageSaveData done [16:36:35]OFDSenderStorePacket done [16:36:35]KKMCreateOFDPacket done [16:36:35]NVStorageSaveData kkm_last_timestamp [16:36:35]File name is /storage/kkm_last_timestamp [16:36:35]Write 4 bytes [16:36:35]NVStorageSaveData done [16:36:35]ExternCall_PrintAddStr [16:36:35]wPrintStart [16:36:35]Write to MH i2c: 01 00 00 93 09 9C [16:36:35]Write i2c OK [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: 01 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: 01 07 00 [16:36:35]MH_I2C_Read... [16:36:35]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 FF 0F B1 [16:36:35]RasterBufferAndPrint [16:36:35]line Счет N : (1)593635 [16:36:35]line ИНН: 02508201610067 [16:36:35]line Контрольно-Кассовый Чек [16:36:35]line ПРОДАЖА [16:36:35]line ТРК (МРК, ГНК) : 52 [16:36:35]line Товар: 2710124130 [16:36:35]line Аи-92-К-5 [16:36:35]line 7.380 * 67.80 [16:36:35]line = 500.36 [16:36:35]line НДС 12% НСП 1% [16:36:35]line > о реализуемом товаре [16:36:35]line ОКРУГЛЕНИЕ: -0.36 [16:36:35]line ИТОГО: 500.00 [16:36:35]line Внесено: 500.00 [16:36:35]line СДАЧА: 0.00 [16:36:35]line НСП 1% : 4.43 [16:36:35]line НДС 12% : 53.14 [16:36:35]line Наличными: 500.00 [16:36:35]line Безнал.: 0.00 [16:36:35]line Место: АЗС № 136 "Партнер Нефть" [16:36:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:36:35]line СНО: Общий режим [16:36:35]line Чек 259 20.08.2024 16:36 [16:36:35]line Смена: 453 ФФД: 1.0 [16:36:35]line ЗНМ: 0300000067 [16:36:35]line РНМ: 0000000000092569 [16:36:35]line Версия ККМ: 001 [16:36:35]line ФМ: 0000000000871776 [16:36:35]line ФД: 139787 [16:36:35]line ФПД: 259726134098656 [16:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139787&fm=259726134098656&tin=02508201610067®Number=0000000000092569&sum=50000 [16:36:36]OFD Sender: Processing packet 139787 [packets to send 137, broken 136] [16:36:36]ProducePacketName [16:36:36]name=ofd_packets/00139787 [16:36:36]OFD Sender: To server: pG, [16:36:36]CommunicateWithHost lk.salyk.kg:30040 [16:36:36]ConnectInit lk.salyk.kg [16:36:36]written 0, free lines is 4095 [16:36:36]Connected sock=11 [16:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9F 26 07 01 1F 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 12 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 22 02 00 35 04 06 00 EC 38 33 F6 3A E0 B2 54 D2 08 98 6C 32 DF [16:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C2 F0 47 00 E7 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 22 02 00 F4 03 04 00 A5 6C C4 66 B6 04 01 00 00 DD AF F9 29 5F 8F 16 DD [16:36:36]CommunicateWithHost err = 0 [16:36:36]CheckOFDResponse [16:36:36]1017 (14) - 77093643461234 [16:36:36]1041 (16) - 0000000000871776 [16:36:36]1040 (4) - 139787 [16:36:36]1012 (4) - 20.08.2024 10:15 [16:36:36]1206 (1) - 0 [16:36:36]OFD Sender: Remove packet 139787 [16:36:36]ProducePacketName [16:36:36]name=ofd_packets/00139787 [16:36:36]NVStorageDeleteData [16:36:36]Write to MH i2c: 01 00 00 BE 09 C7 [16:36:36]Write i2c OK [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: 01 [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: 01 07 00 [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: 01 07 00 BE 09 00 00 00 00 00 D4 0C AE [16:36:36]RasterBufferAndPrint [16:36:36]line [16:36:36]line [16:36:36]line [16:36:36]line [16:36:36]line [16:36:36]written 0, free lines is 3292 [16:36:36]MH_Cut [16:36:36]Write to MH i2c: D1 01 00 C5 09 01 A0 [16:36:36]Write i2c OK [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: D1 [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: D1 01 00 [16:36:36]MH_I2C_Read... [16:36:36]Read from MH i2c: D1 01 00 C5 09 00 9F [16:36:36]Write to MH i2c: 01 00 00 C6 09 CF [16:36:36]Write i2c OK [16:36:36]MH_I2C_Read... [16:36:37]OFD Sender: No OFD packet to send [16:36:37]*** Cut start [16:36:37]*** Partial cut [16:36:37]*** CUTSNS_PIN = 1 [16:36:37]*** CUTSNS_PIN = 0 [16:36:37]*** Brake cut motor [16:36:37]Read from MH i2c: 01 [16:36:37]MH_I2C_Read... [16:36:37]*** Stop cut motor [16:36:37]*** Cut end [16:36:37]Read from MH i2c: 01 07 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: 01 07 00 C6 09 00 00 00 00 00 FF 0F E4 [16:36:37]process_action close_receipt done [16:36:37]requested_data is exist [16:36:37]produce_requested_data [16:36:37]requested_item fm.sn is exist - process it [16:36:37]wFMCommunicate request_size=4 [16:36:37]MH_SAM_APDU [16:36:37]CAPDU: 80 11 00 00 [16:36:37]Write to MH i2c: E2 08 00 C7 09 80 11 00 00 00 00 00 00 4A [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:37]Read from MH i2c: E2 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: E2 17 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: E2 17 00 C7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [16:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:36:37]wFMCommunicate OK [16:36:37]requested_item fd.num is exist - process it [16:36:37]SAM_PROTO_GetFieldsCounters [16:36:37]wFMCommunicate request_size=4 [16:36:37]MH_SAM_APDU [16:36:37]CAPDU: 80 13 00 00 [16:36:37]Write to MH i2c: E2 08 00 C8 09 80 13 00 00 00 00 00 00 4D [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:38]Read from MH i2c: E2 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 62 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 62 00 C8 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 22 02 00 0E 04 04 00 C5 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 79 [16:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 22 02 00 0E 04 04 00 C5 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 [16:36:38]wFMCommunicate OK [16:36:38]SAM_PROTO_GetFieldsCounters done [16:36:38]requested_item shift.num is exist - process it [16:36:38]requested_item shift.opened is exist - process it [16:36:38]req_shift_opened [16:36:38]FM_GetShiftState [16:36:38]SAM_PROTO_GetShiftState [16:36:38]wFMCommunicate request_size=4 [16:36:38]MH_SAM_APDU [16:36:38]CAPDU: 80 13 01 00 [16:36:38]Write to MH i2c: E2 08 00 C9 09 80 13 01 00 00 00 00 00 4F [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:38]Read from MH i2c: E2 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 0E 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 0E 00 C9 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E0 [16:36:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:36:38]wFMCommunicate OK [16:36:38]SAM_PROTO_GetShiftState done [16:36:38]FM_GetShiftState done [16:36:38]req_shift_opened done [16:36:38]requested_item shift.open_date is exist - process it [16:36:38]req_shift_open_date [16:36:38]req_shift_open_date done [16:36:38]produce_requested_data done [16:36:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139787,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:36:38]process_action_free close_receipt [16:36:38]json_value_free [16:36:38]json_value_free done [16:36:38]process_json_proto returns [16:36:38]Send response to host [16:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139787,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:36:38]free response buf [16:36:38]execute_script done [16:36:38]execute_script returns [16:36:38]free content buf [16:36:38]Sock 8.Close socket [16:36:38]Sock 8.Thread stoped [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:23]accept exits with 9 [16:37:23]New connection [16:37:23]New thread 3066649956 created [16:37:23]Thread 3066793316 joined [16:37:23]Waiting for new connection... [16:37:23] Sock 9.Parse request [16:37:23]Sock 9.Check first char [16:37:23]Sock 9.First char is OK [16:37:23]request: POST /json_proto HTTP/1.0 [16:37:23]Method: POST [16:37:23]URL: /json_proto [16:37:23]Method is POST - this is cgi request [16:37:23]url: /json_proto [16:37:23]query_string will be loaded in cgi processing [16:37:23]execute_cgi json_proto POST (null) [16:37:23]execute_cgi path=json_proto method=POST [16:37:23]POST find Content-Length [16:37:23]Host: 172.17.45.67:8080 [16:37:23]Content-Length: 677 [16:37:23]Content-Type: application/json [16:37:23] [16:37:23]POST finish read [16:37:23]Found Content-Length = 677 [16:37:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:23]execute_script... [16:37: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)593636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:23]POST & json_proto [16:37:23]process_json_proto [16:37:23]json parsed OK: [16:37:23]protocol is kg_v1.0 [16:37:23]action value=close_receipt [16:37:23]process_action close_receipt [16:37:23]cmd_close_receipt [16:37:23]MH_GetDate [16:37:23]Write to MH i2c: F0 00 00 CA 09 C2 [16:37:23]Write i2c OK [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: F0 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: F0 09 00 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: F0 09 00 CA 09 00 44 C6 C4 66 5F 7F 2B 66 6E [16:37:23]GetLastDocTimeStamp 1724171794 [16:37:23]current date 1724171844 [16:37:23]FM_GetShiftState [16:37:23]SAM_PROTO_GetShiftState [16:37:23]wFMCommunicate request_size=4 [16:37:23]MH_SAM_APDU [16:37:23]CAPDU: 80 13 01 00 [16:37:23]Write to MH i2c: E2 08 00 CB 09 80 13 01 00 00 00 00 00 51 [16:37:23]Write i2c OK [16:37:23]MH_I2C_Read... [16:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:23]Read from MH i2c: E2 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 0E 00 [16:37:23]MH_I2C_Read... [16:37:23]Read from MH i2c: E2 0E 00 CB 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E2 [16:37:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:37:23]wFMCommunicate OK [16:37:23]SAM_PROTO_GetShiftState done [16:37:23]FM_GetShiftState done [16:37:23]opened in 1724113785 [16:37:23]opened+sec_in_day 1724200185 [16:37:23]quantity*price = 40002 [16:37:23]sum+1 = 40003 [16:37:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 260 20.08.2024 16:37 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139788 ФПД: 96361931848130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163724&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139788&fm=96361931848130&tin=02508201610067®Number=0000000000092569&sum=40000 [16:37:25]StoreToDocumentArchive [16:37:25]shift 453 fd 139788 [16:37:25]save to /storage/0453/doc_00139788 [16:37:25]save last doc name /storage/0453/doc_00139788 to /storage/kkm_last_doc_name [16:37:25]save OK [16:37:25]Clear old archive folders... [16:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:25]tlvbuf is B6E9AC80 [16:37:25]SAM_PROTO_ClearQueue [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 09 00 00 [16:37:25]Write to MH i2c: E2 08 00 D8 09 80 09 00 00 00 00 00 00 53 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [16:37:25]RAPDU: 90 00 [16:37:25]wFMCommunicate OK [16:37:25]SAM_PROTO_ClearQueue done [16:37:25]KKMCreateOFDPacket [16:37:25]OFDProtocolAddRootSTLVToBuf [16:37:25]FM_MakeSignedData [16:37:25]FM_MakeSignedData [16:37:25]SAM_PROTO_SignData [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 0D 01 02 [16:37:25]Write to MH i2c: E2 08 00 D9 09 80 0D 01 02 00 00 00 00 5B [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [16:37:25]RAPDU: 90 00 [16:37:25]wFMCommunicate OK [16:37:25]wFMCommunicate request_size=255 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 44 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 22 02 00 35 04 06 00 57 [16:37:25]Write to MH i2c: E2 02 01 DA 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 44 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 22 02 00 35 04 06 00 57 00 00 4F [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [16:37:25]RAPDU: 90 00 [16:37:25]wFMCommunicate OK [16:37:25]wFMCommunicate request_size=10 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 0D 02 02 05 A4 02 B7 B9 C2 [16:37:25]Write to MH i2c: E2 0D 00 DB 09 80 0D 02 02 05 00 A4 02 B7 B9 C2 00 00 40 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 03 00 DB 09 00 90 00 58 [16:37:25]RAPDU: 90 00 [16:37:25]wFMCommunicate OK [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 0D 03 02 [16:37:25]Write to MH i2c: E2 08 00 DC 09 80 0D 03 02 00 00 00 00 60 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 0B 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 0B 00 DC 09 00 E0 F2 B6 63 6B 8E 99 64 90 00 42 [16:37:25]RAPDU: E0 F2 B6 63 6B 8E 99 64 90 00 [16:37:25]wFMCommunicate OK [16:37:25]SAM_PROTO_SignData done [16:37:25]FM_MakeSignedData done [16:37:25]CreateOFDProtocolMessage [16:37:25]wFMCommunicate request_size=4 [16:37:25]MH_SAM_APDU [16:37:25]CAPDU: 80 11 00 00 [16:37:25]Write to MH i2c: E2 08 00 DD 09 80 11 00 00 00 00 00 00 60 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:25]Read from MH i2c: E2 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 17 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: E2 17 00 DD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B7 [16:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:37:25]wFMCommunicate OK [16:37:25]CreateOFDProtocolMessage done [16:37:25]OFDSenderStorePacket 139788 [16:37:25]StoreOFDPacket docnum=139788 [16:37:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C2 E1 07 01 3D 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 44 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 22 02 00 35 04 06 00 57 A4 02 B7 B9 C2 E0 F2 B6 63 6B 8E 99 64 [16:37:25]CheckFolder [16:37:25]dirname=/storage/ofd_packets [16:37:25]CheckFolder done [16:37:25]ProducePacketName [16:37:25]name=ofd_packets/00139788 [16:37:25]NVStorageSaveData ofd_packets/00139788 [16:37:25]File name is /storage/ofd_packets/00139788 [16:37:25]Write 301 bytes [16:37:25]NVStorageSaveData done [16:37:25]OFDSenderStorePacket done [16:37:25]KKMCreateOFDPacket done [16:37:25]NVStorageSaveData kkm_last_timestamp [16:37:25]File name is /storage/kkm_last_timestamp [16:37:25]Write 4 bytes [16:37:25]NVStorageSaveData done [16:37:25]OFD Sender: Processing packet 139788 [packets to send 137, broken 136] [16:37:25]ProducePacketName [16:37:25]name=ofd_packets/00139788 [16:37:25]OFD Sender: To server: pG, [16:37:25]CommunicateWithHost lk.salyk.kg:30040 [16:37:25]ConnectInit lk.salyk.kg [16:37:25]ExternCall_PrintAddStr [16:37:25]wPrintStart [16:37:25]Write to MH i2c: 01 00 00 DE 09 E7 [16:37:25]Write i2c OK [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: 01 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: 01 07 00 [16:37:25]MH_I2C_Read... [16:37:25]Read from MH i2c: 01 07 00 DE 09 00 00 00 00 00 FF 0F FC [16:37:25]RasterBufferAndPrint [16:37:25]line Счет N : (1)593636 [16:37:25]line ИНН: 02508201610067 [16:37:25]line Контрольно-Кассовый Чек [16:37:25]line ПРОДАЖА [16:37:25]line ТРК (МРК, ГНК) : 42 [16:37:25]line Товар: 2710124130 [16:37:25]line Аи-92-К-5 [16:37:25]line 5.900 * 67.80 [16:37:25]line = 400.02 [16:37:25]line НДС 12% НСП 1% [16:37:25]line > о реализуемом товаре [16:37:25]line ОКРУГЛЕНИЕ: -0.02 [16:37:25]line ИТОГО: 400.00 [16:37:25]line Внесено: 400.00 [16:37:25]line СДАЧА: 0.00 [16:37:25]line НСП 1% : 3.54 [16:37:25]line НДС 12% : 42.48 [16:37:25]line Наличными: 400.00 [16:37:25]line Безнал.: 0.00 [16:37:25]line Место: АЗС № 136 "Партнер Нефть" [16:37:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:37:25]line СНО: Общий режим [16:37:25]line Чек 260 20.08.2024 16:37 [16:37:25]line Смена: 453 ФФД: 1.0 [16:37:25]line ЗНМ: 0300000067 [16:37:25]line РНМ: 0000000000092569 [16:37:25]line Версия ККМ: 001 [16:37:25]line ФМ: 0000000000871776 [16:37:25]line ФД: 139788 [16:37:25]line ФПД: 96361931848130 [16:37:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163724&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139788&fm=96361931848130&tin=02508201610067®Number=0000000000092569&sum=40000 [16:37:25]Connected sock=11 [16:37:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C2 E1 07 01 3D 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 44 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 22 02 00 35 04 06 00 57 A4 02 B7 B9 C2 E0 F2 B6 63 6B 8E 99 64 [16:37:25]written 0, free lines is 4095 [16:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F7 B7 47 00 1B E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 22 02 00 F4 03 04 00 D7 6C C4 66 B6 04 01 00 00 8F CF 55 BE 5F 0B B4 2B [16:37:26]CommunicateWithHost err = 0 [16:37:26]CheckOFDResponse [16:37:26]1017 (14) - 77093643461234 [16:37:26]1041 (16) - 0000000000871776 [16:37:26]1040 (4) - 139788 [16:37:26]1012 (4) - 20.08.2024 10:15 [16:37:26]1206 (1) - 0 [16:37:26]OFD Sender: Remove packet 139788 [16:37:26]ProducePacketName [16:37:26]name=ofd_packets/00139788 [16:37:26]NVStorageDeleteData [16:37:26]Write to MH i2c: 01 00 00 09 0A 13 [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: 01 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: 01 07 00 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: 01 07 00 09 0A 00 00 00 00 00 D4 0C FA [16:37:26]RasterBufferAndPrint [16:37:26]line [16:37:26]line [16:37:26]line [16:37:26]line [16:37:26]line [16:37:26]written 0, free lines is 3289 [16:37:26]MH_Cut [16:37:26]Write to MH i2c: D1 01 00 10 0A 01 EC [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: D1 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: D1 01 00 [16:37:26]MH_I2C_Read... [16:37:26]Read from MH i2c: D1 01 00 10 0A 00 EB [16:37:26]Write to MH i2c: 01 00 00 11 0A 1B [16:37:26]Write i2c OK [16:37:26]MH_I2C_Read... [16:37:26]OFD Sender: No OFD packet to send [16:37:27]*** Cut start [16:37:27]*** Partial cut [16:37:27]*** CUTSNS_PIN = 1 [16:37:27]*** CUTSNS_PIN = 0 [16:37:27]*** Brake cut motor [16:37:27]Read from MH i2c: 01 [16:37:27]MH_I2C_Read... [16:37:27]*** Stop cut motor [16:37:27]*** Cut end [16:37:27]Read from MH i2c: 01 07 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: 01 07 00 11 0A 00 00 00 00 00 FF 0F 30 [16:37:27]process_action close_receipt done [16:37:27]requested_data is exist [16:37:27]produce_requested_data [16:37:27]requested_item fm.sn is exist - process it [16:37:27]wFMCommunicate request_size=4 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 11 00 00 [16:37:27]Write to MH i2c: E2 08 00 12 0A 80 11 00 00 00 00 00 00 96 [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:27]Read from MH i2c: E2 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 17 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 17 00 12 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [16:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:37:27]wFMCommunicate OK [16:37:27]requested_item fd.num is exist - process it [16:37:27]SAM_PROTO_GetFieldsCounters [16:37:27]wFMCommunicate request_size=4 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 13 00 00 [16:37:27]Write to MH i2c: E2 08 00 13 0A 80 13 00 00 00 00 00 00 99 [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:27]Read from MH i2c: E2 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 62 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 62 00 13 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 22 02 00 0E 04 04 00 C5 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 C9 [16:37:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 22 02 00 0E 04 04 00 C5 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 [16:37:27]wFMCommunicate OK [16:37:27]SAM_PROTO_GetFieldsCounters done [16:37:27]requested_item shift.num is exist - process it [16:37:27]requested_item shift.opened is exist - process it [16:37:27]req_shift_opened [16:37:27]FM_GetShiftState [16:37:27]SAM_PROTO_GetShiftState [16:37:27]wFMCommunicate request_size=4 [16:37:27]MH_SAM_APDU [16:37:27]CAPDU: 80 13 01 00 [16:37:27]Write to MH i2c: E2 08 00 14 0A 80 13 01 00 00 00 00 00 9B [16:37:27]Write i2c OK [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 [16:37:27]MH_I2C_Read... [16:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:27]Read from MH i2c: E2 0E 00 [16:37:27]MH_I2C_Read... [16:37:27]Read from MH i2c: E2 0E 00 14 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2C [16:37:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:37:27]wFMCommunicate OK [16:37:27]SAM_PROTO_GetShiftState done [16:37:27]FM_GetShiftState done [16:37:27]req_shift_opened done [16:37:27]requested_item shift.open_date is exist - process it [16:37:27]req_shift_open_date [16:37:27]req_shift_open_date done [16:37:27]produce_requested_data done [16:37:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139788,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:37:27]process_action_free close_receipt [16:37:27]json_value_free [16:37:27]json_value_free done [16:37:27]process_json_proto returns [16:37:27]Send response to host [16:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139788,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:37:27]free response buf [16:37:27]execute_script done [16:37:27]execute_script returns [16:37:27]free content buf [16:37:27]Sock 9.Close socket [16:37:27]Sock 9.Thread stoped [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]accept exits with 8 [16:38:36]New connection [16:38:36]New thread 3066793316 created [16:38:36]Thread 3066649956 joined [16:38:36]Waiting for new connection... [16:38:36] Sock 8.Parse request [16:38:36]Sock 8.Check first char [16:38:36]Sock 8.First char is OK [16:38:36]request: POST /json_proto HTTP/1.0 [16:38:36]Method: POST [16:38:36]URL: /json_proto [16:38:36]Method is POST - this is cgi request [16:38:36]url: /json_proto [16:38:36]query_string will be loaded in cgi processing [16:38:36]execute_cgi json_proto POST (null) [16:38:36]execute_cgi path=json_proto method=POST [16:38:36]POST find Content-Length [16:38:36]Host: 172.17.45.67:8080 [16:38:36]Content-Length: 682 [16:38:36]Content-Type: application/json [16:38:36] [16:38:36]POST finish read [16:38:36]Found Content-Length = 682 [16:38:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:36]execute_script... [16:38: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)593637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:36]POST & json_proto [16:38:36]process_json_proto [16:38:36]json parsed OK: [16:38:36]protocol is kg_v1.0 [16:38:36]action value=close_receipt [16:38:36]process_action close_receipt [16:38:36]cmd_close_receipt [16:38:36]MH_GetDate [16:38:36]Write to MH i2c: F0 00 00 15 0A 0E [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: F0 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: F0 09 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: F0 09 00 15 0A 00 8C C6 C4 66 5F 7F 2B 66 02 [16:38:36]GetLastDocTimeStamp 1724171844 [16:38:36]current date 1724171916 [16:38:36]FM_GetShiftState [16:38:36]SAM_PROTO_GetShiftState [16:38:36]wFMCommunicate request_size=4 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 13 01 00 [16:38:36]Write to MH i2c: E2 08 00 16 0A 80 13 01 00 00 00 00 00 9D [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 0E 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 0E 00 16 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2E [16:38:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:38:36]wFMCommunicate OK [16:38:36]SAM_PROTO_GetShiftState done [16:38:36]FM_GetShiftState done [16:38:36]opened in 1724113785 [16:38:36]opened+sec_in_day 1724200185 [16:38:36]quantity*price = 200010 [16:38:36]sum+1 = 200011 [16:38:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 261 20.08.2024 16:38 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139789 ФПД: 139118321936160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163836&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139789&fm=139118321936160&tin=02508201610067®Number=0000000000092569&sum=200000 [16:38:37]StoreToDocumentArchive [16:38:37]shift 453 fd 139789 [16:38:37]save to /storage/0453/doc_00139789 [16:38:37]save last doc name /storage/0453/doc_00139789 to /storage/kkm_last_doc_name [16:38:37]save OK [16:38:37]Clear old archive folders... [16:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:37]tlvbuf is 00D435C0 [16:38:37]SAM_PROTO_ClearQueue [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 09 00 00 [16:38:37]Write to MH i2c: E2 08 00 23 0A 80 09 00 00 00 00 00 00 9F [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 23 0A 00 90 00 A1 [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_ClearQueue done [16:38:37]KKMCreateOFDPacket [16:38:37]OFDProtocolAddRootSTLVToBuf [16:38:37]FM_MakeSignedData [16:38:37]FM_MakeSignedData [16:38:37]SAM_PROTO_SignData [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 01 02 [16:38:37]Write to MH i2c: E2 08 00 24 0A 80 0D 01 02 00 00 00 00 A7 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]wFMCommunicate request_size=255 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 8C C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 22 02 00 35 04 06 00 7E [16:38:37]Write to MH i2c: E2 02 01 25 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 8C C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 22 02 00 35 04 06 00 7E 00 00 2B [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 25 0A 00 90 00 A3 [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]wFMCommunicate request_size=10 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 02 02 05 87 02 29 27 20 [16:38:37]Write to MH i2c: E2 0D 00 26 0A 80 0D 02 02 05 00 87 02 29 27 20 00 00 AD [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 03 00 26 0A 00 90 00 A4 [16:38:37]RAPDU: 90 00 [16:38:37]wFMCommunicate OK [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 0D 03 02 [16:38:37]Write to MH i2c: E2 08 00 27 0A 80 0D 03 02 00 00 00 00 AC [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0B 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0B 00 27 0A 00 A3 33 1E A8 52 19 55 30 90 00 39 [16:38:37]RAPDU: A3 33 1E A8 52 19 55 30 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_SignData done [16:38:37]FM_MakeSignedData done [16:38:37]CreateOFDProtocolMessage [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 11 00 00 [16:38:37]Write to MH i2c: E2 08 00 28 0A 80 11 00 00 00 00 00 00 AC [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 28 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 03 [16:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:38:37]wFMCommunicate OK [16:38:37]CreateOFDProtocolMessage done [16:38:37]OFDSenderStorePacket 139789 [16:38:37]StoreOFDPacket docnum=139789 [16:38:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D6 B4 07 01 A9 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 8C C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 22 02 00 35 04 06 00 7E 87 02 29 27 20 A3 33 1E A8 52 19 55 30 [16:38:37]CheckFolder [16:38:37]dirname=/storage/ofd_packets [16:38:37]CheckFolder done [16:38:37]ProducePacketName [16:38:37]name=ofd_packets/00139789 [16:38:37]NVStorageSaveData ofd_packets/00139789 [16:38:37]File name is /storage/ofd_packets/00139789 [16:38:37]Write 301 bytes [16:38:37]NVStorageSaveData done [16:38:37]OFDSenderStorePacket done [16:38:37]KKMCreateOFDPacket done [16:38:37]NVStorageSaveData kkm_last_timestamp [16:38:37]File name is /storage/kkm_last_timestamp [16:38:37]Write 4 bytes [16:38:37]NVStorageSaveData done [16:38:37]ExternCall_PrintAddStr [16:38:37]wPrintStart [16:38:37]Write to MH i2c: 01 00 00 29 0A 33 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 29 0A 00 00 00 00 00 FF 0F 48 [16:38:37]RasterBufferAndPrint [16:38:37]line Счет N : (1)593637 [16:38:37]line ИНН: 02508201610067 [16:38:37]line Контрольно-Кассовый Чек [16:38:37]line ПРОДАЖА [16:38:37]line ТРК (МРК, ГНК) : 62 [16:38:37]line Товар: 2710124130 [16:38:37]line Аи-92-К-5 [16:38:37]line 29.500 * 67.80 [16:38:37]line = 2000.10 [16:38:37]line НДС 12% НСП 1% [16:38:37]line > о реализуемом товаре [16:38:37]line ОКРУГЛЕНИЕ: -0.10 [16:38:37]line ИТОГО: 2000.00 [16:38:37]line Внесено: 2000.00 [16:38:37]line СДАЧА: 0.00 [16:38:37]line НСП 1% : 17.70 [16:38:37]line НДС 12% : 212.40 [16:38:37]line Наличными: 2000.00 [16:38:37]line Безнал.: 0.00 [16:38:37]line Место: АЗС № 136 "Партнер Нефть" [16:38:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:38:37]line СНО: Общий режим [16:38:37]line Чек 261 20.08.2024 16:38 [16:38:37]line Смена: 453 ФФД: 1.0 [16:38:37]line ЗНМ: 0300000067 [16:38:37]line РНМ: 0000000000092569 [16:38:37]line Версия ККМ: 001 [16:38:37]line ФМ: 0000000000871776 [16:38:37]line ФД: 139789 [16:38:37]line ФПД: 139118321936160 [16:38:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T163836&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139789&fm=139118321936160&tin=02508201610067®Number=0000000000092569&sum=200000 [16:38:38]OFD Sender: Processing packet 139789 [packets to send 137, broken 136] [16:38:38]ProducePacketName [16:38:38]name=ofd_packets/00139789 [16:38:38]OFD Sender: To server: pG, [16:38:38]CommunicateWithHost lk.salyk.kg:30040 [16:38:38]ConnectInit lk.salyk.kg [16:38:38]written 0, free lines is 4095 [16:38:38]Connected sock=10 [16:38:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D6 B4 07 01 A9 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 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 8C C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 22 02 00 35 04 06 00 7E 87 02 29 27 20 A3 33 1E A8 52 19 55 30 [16:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DD 15 47 00 C1 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 22 02 00 F4 03 04 00 1F 6D C4 66 B6 04 01 00 00 92 8A 41 24 AA C9 E0 01 [16:38:38]CommunicateWithHost err = 0 [16:38:38]CheckOFDResponse [16:38:38]1017 (14) - 77093643461234 [16:38:38]1041 (16) - 0000000000871776 [16:38:38]1040 (4) - 139789 [16:38:38]1012 (4) - 20.08.2024 10:17 [16:38:38]1206 (1) - 0 [16:38:38]OFD Sender: Remove packet 139789 [16:38:38]ProducePacketName [16:38:38]name=ofd_packets/00139789 [16:38:38]NVStorageDeleteData [16:38:38]Write to MH i2c: 01 00 00 54 0A 5E [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 07 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: 01 07 00 54 0A 00 00 00 00 00 D4 0C 45 [16:38:38]RasterBufferAndPrint [16:38:38]line [16:38:38]line [16:38:38]line [16:38:38]line [16:38:38]line [16:38:38]written 0, free lines is 3293 [16:38:38]MH_Cut [16:38:38]Write to MH i2c: D1 01 00 5B 0A 01 37 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: D1 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: D1 01 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: D1 01 00 5B 0A 00 36 [16:38:38]Write to MH i2c: 01 00 00 5C 0A 66 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:39]OFD Sender: No OFD packet to send [16:38:39]*** Cut start [16:38:39]*** Partial cut [16:38:39]*** CUTSNS_PIN = 1 [16:38:39]*** CUTSNS_PIN = 0 [16:38:39]*** Brake cut motor [16:38:39]Read from MH i2c: 01 [16:38:39]MH_I2C_Read... [16:38:39]*** Stop cut motor [16:38:39]*** Cut end [16:38:39]Read from MH i2c: 01 07 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 FF 0F 7B [16:38:39]process_action close_receipt done [16:38:39]requested_data is exist [16:38:39]produce_requested_data [16:38:39]requested_item fm.sn is exist - process it [16:38:39]wFMCommunicate request_size=4 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 11 00 00 [16:38:39]Write to MH i2c: E2 08 00 5D 0A 80 11 00 00 00 00 00 00 E1 [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:39]Read from MH i2c: E2 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 17 00 [16:38:39]MH_I2C_Read... [16:38:39]Read from MH i2c: E2 17 00 5D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 38 [16:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:38:39]wFMCommunicate OK [16:38:39]requested_item fd.num is exist - process it [16:38:39]SAM_PROTO_GetFieldsCounters [16:38:39]wFMCommunicate request_size=4 [16:38:39]MH_SAM_APDU [16:38:39]CAPDU: 80 13 00 00 [16:38:39]Write to MH i2c: E2 08 00 5E 0A 80 13 00 00 00 00 00 00 E4 [16:38:39]Write i2c OK [16:38:39]MH_I2C_Read... [16:38:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:40]Read from MH i2c: E2 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 62 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 62 00 5E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 22 02 00 0E 04 04 00 C5 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 18 [16:38:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 22 02 00 0E 04 04 00 C5 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 [16:38:40]wFMCommunicate OK [16:38:40]SAM_PROTO_GetFieldsCounters done [16:38:40]requested_item shift.num is exist - process it [16:38:40]requested_item shift.opened is exist - process it [16:38:40]req_shift_opened [16:38:40]FM_GetShiftState [16:38:40]SAM_PROTO_GetShiftState [16:38:40]wFMCommunicate request_size=4 [16:38:40]MH_SAM_APDU [16:38:40]CAPDU: 80 13 01 00 [16:38:40]Write to MH i2c: E2 08 00 5F 0A 80 13 01 00 00 00 00 00 E6 [16:38:40]Write i2c OK [16:38:40]MH_I2C_Read... [16:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:40]Read from MH i2c: E2 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 0E 00 [16:38:40]MH_I2C_Read... [16:38:40]Read from MH i2c: E2 0E 00 5F 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 77 [16:38:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:38:40]wFMCommunicate OK [16:38:40]SAM_PROTO_GetShiftState done [16:38:40]FM_GetShiftState done [16:38:40]req_shift_opened done [16:38:40]requested_item shift.open_date is exist - process it [16:38:40]req_shift_open_date [16:38:40]req_shift_open_date done [16:38:40]produce_requested_data done [16:38:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139789,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:38:40]process_action_free close_receipt [16:38:40]json_value_free [16:38:40]json_value_free done [16:38:40]process_json_proto returns [16:38:40]Send response to host [16:38:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139789,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:38:40]free response buf [16:38:40]execute_script done [16:38:40]execute_script returns [16:38:40]free content buf [16:38:40]Sock 8.Close socket [16:38:40]Sock 8.Thread stoped [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:23]accept exits with 9 [16:40:23]New connection [16:40:23]New thread 3066649956 created [16:40:23]Thread 3066793316 joined [16:40:23]Waiting for new connection... [16:40:23] Sock 9.Parse request [16:40:23]Sock 9.Check first char [16:40:23]Sock 9.First char is OK [16:40:23]request: POST /json_proto HTTP/1.0 [16:40:23]Method: POST [16:40:23]URL: /json_proto [16:40:23]Method is POST - this is cgi request [16:40:23]url: /json_proto [16:40:23]query_string will be loaded in cgi processing [16:40:23]execute_cgi json_proto POST (null) [16:40:23]execute_cgi path=json_proto method=POST [16:40:23]POST find Content-Length [16:40:23]Host: 172.17.45.67:8080 [16:40:23]Content-Length: 677 [16:40:23]Content-Type: application/json [16:40:23] [16:40:23]POST finish read [16:40:23]Found Content-Length = 677 [16:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:23]execute_script... [16:40: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)593638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:23]POST & json_proto [16:40:23]process_json_proto [16:40:23]json parsed OK: [16:40:23]protocol is kg_v1.0 [16:40:23]action value=close_receipt [16:40:23]process_action close_receipt [16:40:23]cmd_close_receipt [16:40:23]MH_GetDate [16:40:23]Write to MH i2c: F0 00 00 60 0A 59 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: F0 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: F0 09 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: F0 09 00 60 0A 00 F8 C6 C4 66 5F 7F 2B 66 B9 [16:40:23]GetLastDocTimeStamp 1724171916 [16:40:23]current date 1724172024 [16:40:23]FM_GetShiftState [16:40:23]SAM_PROTO_GetShiftState [16:40:23]wFMCommunicate request_size=4 [16:40:23]MH_SAM_APDU [16:40:23]CAPDU: 80 13 01 00 [16:40:23]Write to MH i2c: E2 08 00 61 0A 80 13 01 00 00 00 00 00 E8 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:23]Read from MH i2c: E2 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 0E 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: E2 0E 00 61 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 79 [16:40:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:40:23]wFMCommunicate OK [16:40:23]SAM_PROTO_GetShiftState done [16:40:23]FM_GetShiftState done [16:40:23]opened in 1724113785 [16:40:23]opened+sec_in_day 1724200185 [16:40:23]quantity*price = 50036 [16:40:23]sum+1 = 50037 [16:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 262 20.08.2024 16:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139790 ФПД: 81980814193993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164024&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139790&fm=81980814193993&tin=02508201610067®Number=0000000000092569&sum=50000 [16:40:24]StoreToDocumentArchive [16:40:24]shift 453 fd 139790 [16:40:24]save to /storage/0453/doc_00139790 [16:40:24]save last doc name /storage/0453/doc_00139790 to /storage/kkm_last_doc_name [16:40:24]save OK [16:40:24]Clear old archive folders... [16:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:24]tlvbuf is 00D48F20 [16:40:24]SAM_PROTO_ClearQueue [16:40:24]wFMCommunicate request_size=4 [16:40:24]MH_SAM_APDU [16:40:24]CAPDU: 80 09 00 00 [16:40:24]Write to MH i2c: E2 08 00 6E 0A 80 09 00 00 00 00 00 00 EA [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 03 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [16:40:25]RAPDU: 90 00 [16:40:25]wFMCommunicate OK [16:40:25]SAM_PROTO_ClearQueue done [16:40:25]KKMCreateOFDPacket [16:40:25]OFDProtocolAddRootSTLVToBuf [16:40:25]FM_MakeSignedData [16:40:25]FM_MakeSignedData [16:40:25]SAM_PROTO_SignData [16:40:25]wFMCommunicate request_size=4 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 0D 01 02 [16:40:25]Write to MH i2c: E2 08 00 6F 0A 80 0D 01 02 00 00 00 00 F2 [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 03 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [16:40:25]RAPDU: 90 00 [16:40:25]wFMCommunicate OK [16:40:25]wFMCommunicate request_size=255 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F8 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 22 02 00 35 04 06 00 4A [16:40:25]Write to MH i2c: E2 02 01 70 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 F8 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 22 02 00 35 04 06 00 4A 00 00 AC [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 03 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 03 00 70 0A 00 90 00 EE [16:40:25]RAPDU: 90 00 [16:40:25]wFMCommunicate OK [16:40:25]wFMCommunicate request_size=10 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 0D 02 02 05 8F A5 4E F5 49 [16:40:25]Write to MH i2c: E2 0D 00 71 0A 80 0D 02 02 05 00 8F A5 4E F5 49 00 00 BF [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 03 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 03 00 71 0A 00 90 00 EF [16:40:25]RAPDU: 90 00 [16:40:25]wFMCommunicate OK [16:40:25]wFMCommunicate request_size=4 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 0D 03 02 [16:40:25]Write to MH i2c: E2 08 00 72 0A 80 0D 03 02 00 00 00 00 F7 [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 0B 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 0B 00 72 0A 00 4A 3A 37 9E F6 03 6F 67 90 00 20 [16:40:25]RAPDU: 4A 3A 37 9E F6 03 6F 67 90 00 [16:40:25]wFMCommunicate OK [16:40:25]SAM_PROTO_SignData done [16:40:25]FM_MakeSignedData done [16:40:25]CreateOFDProtocolMessage [16:40:25]wFMCommunicate request_size=4 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 11 00 00 [16:40:25]Write to MH i2c: E2 08 00 73 0A 80 11 00 00 00 00 00 00 F7 [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 17 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 17 00 73 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4E [16:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:40:25]wFMCommunicate OK [16:40:25]CreateOFDProtocolMessage done [16:40:25]OFDSenderStorePacket 139790 [16:40:25]StoreOFDPacket docnum=139790 [16:40:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 7E 07 01 A6 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F8 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 22 02 00 35 04 06 00 4A 8F A5 4E F5 49 4A 3A 37 9E F6 03 6F 67 [16:40:25]CheckFolder [16:40:25]dirname=/storage/ofd_packets [16:40:25]CheckFolder done [16:40:25]ProducePacketName [16:40:25]name=ofd_packets/00139790 [16:40:25]NVStorageSaveData ofd_packets/00139790 [16:40:25]File name is /storage/ofd_packets/00139790 [16:40:25]Write 301 bytes [16:40:25]NVStorageSaveData done [16:40:25]OFDSenderStorePacket done [16:40:25]KKMCreateOFDPacket done [16:40:25]NVStorageSaveData kkm_last_timestamp [16:40:25]File name is /storage/kkm_last_timestamp [16:40:25]Write 4 bytes [16:40:25]NVStorageSaveData done [16:40:25]ExternCall_PrintAddStr [16:40:25]wPrintStart [16:40:25]Write to MH i2c: 01 00 00 74 0A 7E [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: 01 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: 01 07 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: 01 07 00 74 0A 00 00 00 00 00 FF 0F 93 [16:40:25]RasterBufferAndPrint [16:40:25]line Счет N : (1)593638 [16:40:25]line ИНН: 02508201610067 [16:40:25]line Контрольно-Кассовый Чек [16:40:25]line ПРОДАЖА [16:40:25]line ТРК (МРК, ГНК) : 42 [16:40:25]line Товар: 2710124130 [16:40:25]line Аи-92-К-5 [16:40:25]line 7.380 * 67.80 [16:40:25]line = 500.36 [16:40:25]line НДС 12% НСП 1% [16:40:25]line > о реализуемом товаре [16:40:25]line ОКРУГЛЕНИЕ: -0.36 [16:40:25]line ИТОГО: 500.00 [16:40:25]line Внесено: 500.00 [16:40:25]line СДАЧА: 0.00 [16:40:25]line НСП 1% : 4.43 [16:40:25]line НДС 12% : 53.14 [16:40:25]line Наличными: 500.00 [16:40:25]line Безнал.: 0.00 [16:40:25]line Место: АЗС № 136 "Партнер Нефть" [16:40:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:40:25]line СНО: Общий режим [16:40:25]line Чек 262 20.08.2024 16:40 [16:40:25]line Смена: 453 ФФД: 1.0 [16:40:25]line ЗНМ: 0300000067 [16:40:25]line РНМ: 0000000000092569 [16:40:25]line Версия ККМ: 001 [16:40:25]line ФМ: 0000000000871776 [16:40:25]line ФД: 139790 [16:40:25]line ФПД: 81980814193993 [16:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164024&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139790&fm=81980814193993&tin=02508201610067®Number=0000000000092569&sum=50000 [16:40:25]written 0, free lines is 4095 [16:40:25]OFD Sender: Processing packet 139790 [packets to send 137, broken 136] [16:40:25]ProducePacketName [16:40:25]name=ofd_packets/00139790 [16:40:25]OFD Sender: To server: pG, [16:40:25]CommunicateWithHost lk.salyk.kg:30040 [16:40:25]ConnectInit lk.salyk.kg [16:40:25]Connected sock=10 [16:40:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 7E 07 01 A6 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F8 C6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 22 02 00 35 04 06 00 4A 8F A5 4E F5 49 4A 3A 37 9E F6 03 6F 67 [16:40:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 31 99 47 00 DC 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 22 02 00 F4 03 04 00 8B 6D C4 66 B6 04 01 00 00 55 A6 22 C5 5C B2 58 B2 [16:40:26]CommunicateWithHost err = 0 [16:40:26]CheckOFDResponse [16:40:26]1017 (14) - 77093643461234 [16:40:26]1041 (16) - 0000000000871776 [16:40:26]1040 (4) - 139790 [16:40:26]1012 (4) - 20.08.2024 10:18 [16:40:26]1206 (1) - 0 [16:40:26]OFD Sender: Remove packet 139790 [16:40:26]ProducePacketName [16:40:26]name=ofd_packets/00139790 [16:40:26]NVStorageDeleteData [16:40:26]Write to MH i2c: 01 00 00 9F 0A A9 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 07 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: 01 07 00 9F 0A 00 00 00 00 00 D4 0C 90 [16:40:26]RasterBufferAndPrint [16:40:26]line [16:40:26]line [16:40:26]line [16:40:26]line [16:40:26]line [16:40:26]written 0, free lines is 3292 [16:40:26]MH_Cut [16:40:26]Write to MH i2c: D1 01 00 A6 0A 01 82 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: D1 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: D1 01 00 [16:40:26]MH_I2C_Read... [16:40:26]Read from MH i2c: D1 01 00 A6 0A 00 81 [16:40:26]Write to MH i2c: 01 00 00 A7 0A B1 [16:40:26]Write i2c OK [16:40:26]MH_I2C_Read... [16:40:26]OFD Sender: No OFD packet to send [16:40:27]*** Cut start [16:40:27]*** Partial cut [16:40:27]*** CUTSNS_PIN = 1 [16:40:27]*** CUTSNS_PIN = 0 [16:40:27]*** Brake cut motor [16:40:27]Read from MH i2c: 01 [16:40:27]MH_I2C_Read... [16:40:27]*** Stop cut motor [16:40:27]*** Cut end [16:40:27]Read from MH i2c: 01 07 00 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: 01 07 00 A7 0A 00 00 00 00 00 FF 0F C6 [16:40:27]process_action close_receipt done [16:40:27]requested_data is exist [16:40:27]produce_requested_data [16:40:27]requested_item fm.sn is exist - process it [16:40:27]wFMCommunicate request_size=4 [16:40:27]MH_SAM_APDU [16:40:27]CAPDU: 80 11 00 00 [16:40:27]Write to MH i2c: E2 08 00 A8 0A 80 11 00 00 00 00 00 00 2C [16:40:27]Write i2c OK [16:40:27]MH_I2C_Read... [16:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:27]Read from MH i2c: E2 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 17 00 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 17 00 A8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 83 [16:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:40:27]wFMCommunicate OK [16:40:27]requested_item fd.num is exist - process it [16:40:27]SAM_PROTO_GetFieldsCounters [16:40:27]wFMCommunicate request_size=4 [16:40:27]MH_SAM_APDU [16:40:27]CAPDU: 80 13 00 00 [16:40:27]Write to MH i2c: E2 08 00 A9 0A 80 13 00 00 00 00 00 00 2F [16:40:27]Write i2c OK [16:40:27]MH_I2C_Read... [16:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:27]Read from MH i2c: E2 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 62 00 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 62 00 A9 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 22 02 00 0E 04 04 00 C5 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 67 [16:40:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 22 02 00 0E 04 04 00 C5 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 [16:40:27]wFMCommunicate OK [16:40:27]SAM_PROTO_GetFieldsCounters done [16:40:27]requested_item shift.num is exist - process it [16:40:27]requested_item shift.opened is exist - process it [16:40:27]req_shift_opened [16:40:27]FM_GetShiftState [16:40:27]SAM_PROTO_GetShiftState [16:40:27]wFMCommunicate request_size=4 [16:40:27]MH_SAM_APDU [16:40:27]CAPDU: 80 13 01 00 [16:40:27]Write to MH i2c: E2 08 00 AA 0A 80 13 01 00 00 00 00 00 31 [16:40:27]Write i2c OK [16:40:27]MH_I2C_Read... [16:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:27]Read from MH i2c: E2 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 0E 00 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 0E 00 AA 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C2 [16:40:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:40:27]wFMCommunicate OK [16:40:27]SAM_PROTO_GetShiftState done [16:40:27]FM_GetShiftState done [16:40:27]req_shift_opened done [16:40:27]requested_item shift.open_date is exist - process it [16:40:27]req_shift_open_date [16:40:27]req_shift_open_date done [16:40:27]produce_requested_data done [16:40:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139790,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:40:27]process_action_free close_receipt [16:40:27]json_value_free [16:40:27]json_value_free done [16:40:27]process_json_proto returns [16:40:27]Send response to host [16:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139790,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:40:27]free response buf [16:40:27]execute_script done [16:40:27]execute_script returns [16:40:27]free content buf [16:40:27]Sock 9.Close socket [16:40:27]Sock 9.Thread stoped [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:48]int [16:40:48]Write to MH i2c: 01 00 00 AB 0A B5 [16:40:48]*** FLAG_PRN_KEY set [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 AB 0A 00 08 00 00 00 FF 0F D2 [16:40:48]state=0 [16:40:48]Key pressed [16:40:48]Feed [16:40:48]Write to MH i2c: D8 00 00 AC 0A 8D [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: D8 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: D8 01 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: D8 01 00 AC 0A 00 8E [16:40:48]int [16:40:48]Write to MH i2c: 01 00 00 AD 0A B7 [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 AD 0A 00 48 00 00 00 3C 00 42 [16:40:48]state=2 [16:40:48]Key pressed [16:40:48]int [16:40:48]Write to MH i2c: 01 00 00 AE 0A B8 [16:40:48]*** FLAG_PRN_KEY reset [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 F5 0F C3 [16:40:48]state=2 [16:40:48]Stop feed [16:40:48]int [16:40:48]Write to MH i2c: 01 00 00 AF 0A B9 [16:40:48]*** FLAG_PRN_KEY set [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 AF 0A 00 08 00 00 00 FF 0F D6 [16:40:48]state=0 [16:40:48]Key pressed [16:40:48]Feed [16:40:48]Write to MH i2c: D8 00 00 B0 0A 91 [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: D8 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: D8 01 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: D8 01 00 B0 0A 00 92 [16:40:48]int [16:40:48]Write to MH i2c: 01 00 00 B1 0A BB [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 B1 0A 00 48 00 00 00 3C 00 46 [16:40:48]state=2 [16:40:48]Key pressed [16:40:49]int [16:40:49]Write to MH i2c: 01 00 00 B2 0A BC [16:40:49]*** FLAG_PRN_KEY reset [16:40:49]Write i2c OK [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: 01 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: 01 07 00 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: 01 07 00 B2 0A 00 00 00 00 00 F6 0F C8 [16:40:49]state=2 [16:40:49]Stop feed [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:41]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:43:58]accept exits with 8 [16:43:58]New connection [16:43:58]New thread 3066793316 created [16:43:58]Thread 3066649956 joined [16:43:58]Waiting for new connection... [16:43:58] Sock 8.Parse request [16:43:58]Sock 8.Check first char [16:43:58]Sock 8.First char is OK [16:43:58]request: POST /json_proto HTTP/1.0 [16:43:58]Method: POST [16:43:58]URL: /json_proto [16:43:58]Method is POST - this is cgi request [16:43:58]url: /json_proto [16:43:58]query_string will be loaded in cgi processing [16:43:58]execute_cgi json_proto POST (null) [16:43:58]execute_cgi path=json_proto method=POST [16:43:58]POST find Content-Length [16:43:58]Host: 172.17.45.67:8080 [16:43:58]Content-Length: 677 [16:43:58]Content-Type: application/json [16:43:58] [16:43:58]POST finish read [16:43:58]Found Content-Length = 677 [16:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:58]execute_script... [16:43: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)593639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:58]POST & json_proto [16:43:58]process_json_proto [16:43:58]json parsed OK: [16:43:58]protocol is kg_v1.0 [16:43:58]action value=close_receipt [16:43:58]process_action close_receipt [16:43:58]cmd_close_receipt [16:43:58]MH_GetDate [16:43:58]Write to MH i2c: F0 00 00 B3 0A AC [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: F0 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: F0 09 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: F0 09 00 B3 0A 00 CE C7 C4 66 5F 7F 2B 66 E3 [16:43:58]GetLastDocTimeStamp 1724172024 [16:43:58]current date 1724172238 [16:43:58]FM_GetShiftState [16:43:58]SAM_PROTO_GetShiftState [16:43:58]wFMCommunicate request_size=4 [16:43:58]MH_SAM_APDU [16:43:58]CAPDU: 80 13 01 00 [16:43:58]Write to MH i2c: E2 08 00 B4 0A 80 13 01 00 00 00 00 00 3B [16:43:58]Write i2c OK [16:43:58]MH_I2C_Read... [16:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:58]Read from MH i2c: E2 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 0E 00 [16:43:58]MH_I2C_Read... [16:43:58]Read from MH i2c: E2 0E 00 B4 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CC [16:43:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:43:58]wFMCommunicate OK [16:43:58]SAM_PROTO_GetShiftState done [16:43:58]FM_GetShiftState done [16:43:58]opened in 1724113785 [16:43:58]opened+sec_in_day 1724200185 [16:43:58]quantity*price = 30035 [16:43:58]sum+1 = 30036 [16:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 263 20.08.2024 16:43 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139791 ФПД: 144494848942006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164359&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139791&fm=144494848942006&tin=02508201610067®Number=0000000000092569&sum=30000 [16:43:59]StoreToDocumentArchive [16:43:59]shift 453 fd 139791 [16:43:59]save to /storage/0453/doc_00139791 [16:43:59]save last doc name /storage/0453/doc_00139791 to /storage/kkm_last_doc_name [16:43:59]save OK [16:43:59]Clear old archive folders... [16:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:59]tlvbuf is 00D3C3F0 [16:43:59]SAM_PROTO_ClearQueue [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 09 00 00 [16:43:59]Write to MH i2c: E2 08 00 C1 0A 80 09 00 00 00 00 00 00 3D [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 C1 0A 00 90 00 3F [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]SAM_PROTO_ClearQueue done [16:43:59]KKMCreateOFDPacket [16:43:59]OFDProtocolAddRootSTLVToBuf [16:43:59]FM_MakeSignedData [16:43:59]FM_MakeSignedData [16:43:59]SAM_PROTO_SignData [16:43:59]wFMCommunicate request_size=4 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 0D 01 02 [16:43:59]Write to MH i2c: E2 08 00 C2 0A 80 0D 01 02 00 00 00 00 45 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]wFMCommunicate request_size=255 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 CF C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 22 02 00 35 04 06 00 83 [16:43:59]Write to MH i2c: E2 02 01 C3 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 CF C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 22 02 00 35 04 06 00 83 00 00 31 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:59]Read from MH i2c: E2 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 [16:43:59]MH_I2C_Read... [16:43:59]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [16:43:59]RAPDU: 90 00 [16:43:59]wFMCommunicate OK [16:43:59]wFMCommunicate request_size=10 [16:43:59]MH_SAM_APDU [16:43:59]CAPDU: 80 0D 02 02 05 6A D4 24 9F B6 [16:43:59]Write to MH i2c: E2 0D 00 C4 0A 80 0D 02 02 05 00 6A D4 24 9F B6 00 00 09 [16:43:59]Write i2c OK [16:43:59]MH_I2C_Read... [16:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:00]Read from MH i2c: E2 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: E2 03 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [16:44:00]RAPDU: 90 00 [16:44:00]wFMCommunicate OK [16:44:00]wFMCommunicate request_size=4 [16:44:00]MH_SAM_APDU [16:44:00]CAPDU: 80 0D 03 02 [16:44:00]Write to MH i2c: E2 08 00 C5 0A 80 0D 03 02 00 00 00 00 4A [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:00]Read from MH i2c: E2 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: E2 0B 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: E2 0B 00 C5 0A 00 E0 79 C8 9A 9A 02 BA E1 90 00 3D [16:44:00]RAPDU: E0 79 C8 9A 9A 02 BA E1 90 00 [16:44:00]wFMCommunicate OK [16:44:00]SAM_PROTO_SignData done [16:44:00]FM_MakeSignedData done [16:44:00]CreateOFDProtocolMessage [16:44:00]wFMCommunicate request_size=4 [16:44:00]MH_SAM_APDU [16:44:00]CAPDU: 80 11 00 00 [16:44:00]Write to MH i2c: E2 08 00 C6 0A 80 11 00 00 00 00 00 00 4A [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:00]Read from MH i2c: E2 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: E2 17 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: E2 17 00 C6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [16:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:00]wFMCommunicate OK [16:44:00]CreateOFDProtocolMessage done [16:44:00]OFDSenderStorePacket 139791 [16:44:00]StoreOFDPacket docnum=139791 [16:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AD C9 07 01 CB 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 CF C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 22 02 00 35 04 06 00 83 6A D4 24 9F B6 E0 79 C8 9A 9A 02 BA E1 [16:44:00]CheckFolder [16:44:00]dirname=/storage/ofd_packets [16:44:00]CheckFolder done [16:44:00]ProducePacketName [16:44:00]name=ofd_packets/00139791 [16:44:00]NVStorageSaveData ofd_packets/00139791 [16:44:00]File name is /storage/ofd_packets/00139791 [16:44:00]Write 301 bytes [16:44:00]NVStorageSaveData done [16:44:00]OFDSenderStorePacket done [16:44:00]KKMCreateOFDPacket done [16:44:00]NVStorageSaveData kkm_last_timestamp [16:44:00]File name is /storage/kkm_last_timestamp [16:44:00]Write 4 bytes [16:44:00]NVStorageSaveData done [16:44:00]ExternCall_PrintAddStr [16:44:00]wPrintStart [16:44:00]Write to MH i2c: 01 00 00 C7 0A D1 [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 07 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 07 00 C7 0A 00 00 00 00 00 FF 0F E6 [16:44:00]RasterBufferAndPrint [16:44:00]line Счет N : (1)593639 [16:44:00]line ИНН: 02508201610067 [16:44:00]line Контрольно-Кассовый Чек [16:44:00]line ПРОДАЖА [16:44:00]line ТРК (МРК, ГНК) : 42 [16:44:00]line Товар: 2710124130 [16:44:00]line Аи-92-К-5 [16:44:00]line 4.430 * 67.80 [16:44:00]line = 300.35 [16:44:00]line НДС 12% НСП 1% [16:44:00]line > о реализуемом товаре [16:44:00]line ОКРУГЛЕНИЕ: -0.35 [16:44:00]line ИТОГО: 300.00 [16:44:00]line Внесено: 300.00 [16:44:00]line СДАЧА: 0.00 [16:44:00]line НСП 1% : 2.66 [16:44:00]line НДС 12% : 31.90 [16:44:00]line Наличными: 300.00 [16:44:00]line Безнал.: 0.00 [16:44:00]line Место: АЗС № 136 "Партнер Нефть" [16:44:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:44:00]line СНО: Общий режим [16:44:00]line Чек 263 20.08.2024 16:43 [16:44:00]line Смена: 453 ФФД: 1.0 [16:44:00]line ЗНМ: 0300000067 [16:44:00]line РНМ: 0000000000092569 [16:44:00]line Версия ККМ: 001 [16:44:00]line ФМ: 0000000000871776 [16:44:00]line ФД: 139791 [16:44:00]line ФПД: 144494848942006 [16:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164359&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139791&fm=144494848942006&tin=02508201610067®Number=0000000000092569&sum=30000 [16:44:00]written 0, free lines is 4095 [16:44:00]OFD Sender: Processing packet 139791 [packets to send 137, broken 136] [16:44:00]ProducePacketName [16:44:00]name=ofd_packets/00139791 [16:44:00]OFD Sender: To server: pG, [16:44:00]CommunicateWithHost lk.salyk.kg:30040 [16:44:00]ConnectInit lk.salyk.kg [16:44:00]Connected sock=10 [16:44:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AD C9 07 01 CB 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 CF C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 22 02 00 35 04 06 00 83 6A D4 24 9F B6 E0 79 C8 9A 9A 02 BA E1 [16:44:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FF 73 47 00 D9 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 22 02 00 F4 03 04 00 61 6E C4 66 B6 04 01 00 00 3A F1 82 E3 FB B8 18 7E [16:44:00]CommunicateWithHost err = 0 [16:44:00]CheckOFDResponse [16:44:00]1017 (14) - 77093643461234 [16:44:00]1041 (16) - 0000000000871776 [16:44:00]1040 (4) - 139791 [16:44:00]1012 (4) - 20.08.2024 10:22 [16:44:00]1206 (1) - 0 [16:44:00]OFD Sender: Remove packet 139791 [16:44:00]ProducePacketName [16:44:00]name=ofd_packets/00139791 [16:44:00]NVStorageDeleteData [16:44:00]Write to MH i2c: 01 00 00 F2 0A FC [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 07 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 E2 0C F1 [16:44:00]RasterBufferAndPrint [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]line [16:44:00]written 0, free lines is 3304 [16:44:00]MH_Cut [16:44:00]Write to MH i2c: D1 01 00 F9 0A 01 D5 [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 01 00 [16:44:00]MH_I2C_Read... [16:44:00]Read from MH i2c: D1 01 00 F9 0A 00 D4 [16:44:00]Write to MH i2c: 01 00 00 FA 0A 04 [16:44:00]Write i2c OK [16:44:00]MH_I2C_Read... [16:44:01]OFD Sender: No OFD packet to send [16:44:01]*** Cut start [16:44:01]*** Partial cut [16:44:01]*** CUTSNS_PIN = 1 [16:44:01]*** CUTSNS_PIN = 0 [16:44:01]*** Brake cut motor [16:44:02]Read from MH i2c: 01 [16:44:02]MH_I2C_Read... [16:44:02]*** Stop cut motor [16:44:02]*** Cut end [16:44:02]Read from MH i2c: 01 07 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 FF 0F 19 [16:44:02]process_action close_receipt done [16:44:02]requested_data is exist [16:44:02]produce_requested_data [16:44:02]requested_item fm.sn is exist - process it [16:44:02]wFMCommunicate request_size=4 [16:44:02]MH_SAM_APDU [16:44:02]CAPDU: 80 11 00 00 [16:44:02]Write to MH i2c: E2 08 00 FB 0A 80 11 00 00 00 00 00 00 7F [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:02]Read from MH i2c: E2 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 17 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 17 00 FB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [16:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:02]wFMCommunicate OK [16:44:02]requested_item fd.num is exist - process it [16:44:02]SAM_PROTO_GetFieldsCounters [16:44:02]wFMCommunicate request_size=4 [16:44:02]MH_SAM_APDU [16:44:02]CAPDU: 80 13 00 00 [16:44:02]Write to MH i2c: E2 08 00 FC 0A 80 13 00 00 00 00 00 00 82 [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:02]Read from MH i2c: E2 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 62 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 62 00 FC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 22 02 00 0E 04 04 00 C5 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 BE [16:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 22 02 00 0E 04 04 00 C5 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 [16:44:02]wFMCommunicate OK [16:44:02]SAM_PROTO_GetFieldsCounters done [16:44:02]requested_item shift.num is exist - process it [16:44:02]requested_item shift.opened is exist - process it [16:44:02]req_shift_opened [16:44:02]FM_GetShiftState [16:44:02]SAM_PROTO_GetShiftState [16:44:02]wFMCommunicate request_size=4 [16:44:02]MH_SAM_APDU [16:44:02]CAPDU: 80 13 01 00 [16:44:02]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:02]Read from MH i2c: E2 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 0E 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 15 [16:44:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:44:02]wFMCommunicate OK [16:44:02]SAM_PROTO_GetShiftState done [16:44:02]FM_GetShiftState done [16:44:02]req_shift_opened done [16:44:02]requested_item shift.open_date is exist - process it [16:44:02]req_shift_open_date [16:44:02]req_shift_open_date done [16:44:02]produce_requested_data done [16:44:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139791,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:44:02]process_action_free close_receipt [16:44:02]json_value_free [16:44:02]json_value_free done [16:44:02]process_json_proto returns [16:44:02]Send response to host [16:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139791,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:44:02]free response buf [16:44:02]execute_script done [16:44:02]execute_script returns [16:44:02]free content buf [16:44:02]Sock 8.Close socket [16:44:02]Sock 8.Thread stoped [16:44:02]int [16:44:02]Write to MH i2c: 01 00 00 FE 0A 08 [16:44:02]*** FLAG_PRN_KEY set [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: 01 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: 01 07 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: 01 07 00 FE 0A 00 08 00 00 00 FF 0F 25 [16:44:02]state=0 [16:44:02]Key pressed [16:44:02]Feed [16:44:02]Write to MH i2c: D8 00 00 FF 0A E0 [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: D8 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: D8 01 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: D8 01 00 FF 0A 00 E1 [16:44:02]int [16:44:02]Write to MH i2c: 01 00 00 00 0B 0B [16:44:02]Write i2c OK [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: 01 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: 01 07 00 [16:44:02]MH_I2C_Read... [16:44:02]Read from MH i2c: 01 07 00 00 0B 00 48 00 00 00 3C 00 96 [16:44:02]state=2 [16:44:02]Key pressed [16:44:03]int [16:44:03]Write to MH i2c: 01 00 00 01 0B 0C [16:44:03]*** FLAG_PRN_KEY reset [16:44:03]Write i2c OK [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: 01 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: 01 07 00 [16:44:03]MH_I2C_Read... [16:44:03]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 FF 0F 21 [16:44:03]state=2 [16:44:03]Stop feed [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:25]accept exits with 9 [16:44:25]New connection [16:44:25]New thread 3066649956 created [16:44:25]Thread 3066793316 joined [16:44:25]Waiting for new connection... [16:44:25] Sock 9.Parse request [16:44:25]Sock 9.Check first char [16:44:25]Sock 9.First char is OK [16:44:25]request: POST /json_proto HTTP/1.0 [16:44:25]Method: POST [16:44:25]URL: /json_proto [16:44:25]Method is POST - this is cgi request [16:44:25]url: /json_proto [16:44:25]query_string will be loaded in cgi processing [16:44:25]execute_cgi json_proto POST (null) [16:44:25]execute_cgi path=json_proto method=POST [16:44:25]POST find Content-Length [16:44:25]Host: 172.17.45.67:8080 [16:44:25]Content-Length: 682 [16:44:25]Content-Type: application/json [16:44:25] [16:44:25]POST finish read [16:44:25]Found Content-Length = 682 [16:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:25]execute_script... [16:44:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:25]POST & json_proto [16:44:25]process_json_proto [16:44:25]json parsed OK: [16:44:25]protocol is kg_v1.0 [16:44:25]action value=close_receipt [16:44:25]process_action close_receipt [16:44:25]cmd_close_receipt [16:44:25]MH_GetDate [16:44:25]Write to MH i2c: F0 00 00 02 0B FC [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: F0 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: F0 09 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: F0 09 00 02 0B 00 E9 C7 C4 66 5F 7F 2B 66 4E [16:44:25]GetLastDocTimeStamp 1724172239 [16:44:25]current date 1724172265 [16:44:25]FM_GetShiftState [16:44:25]SAM_PROTO_GetShiftState [16:44:25]wFMCommunicate request_size=4 [16:44:25]MH_SAM_APDU [16:44:25]CAPDU: 80 13 01 00 [16:44:25]Write to MH i2c: E2 08 00 03 0B 80 13 01 00 00 00 00 00 8B [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:25]Read from MH i2c: E2 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 0E 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 0E 00 03 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1C [16:44:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:44:25]wFMCommunicate OK [16:44:25]SAM_PROTO_GetShiftState done [16:44:25]FM_GetShiftState done [16:44:25]opened in 1724113785 [16:44:25]opened+sec_in_day 1724200185 [16:44:25]quantity*price = 100005 [16:44:25]sum+1 = 100006 [16:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 264 20.08.2024 16:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139792 ФПД: 214846123292830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164425&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139792&fm=214846123292830&tin=02508201610067®Number=0000000000092569&sum=100000 [16:44:26]StoreToDocumentArchive [16:44:26]shift 453 fd 139792 [16:44:26]save to /storage/0453/doc_00139792 [16:44:26]save last doc name /storage/0453/doc_00139792 to /storage/kkm_last_doc_name [16:44:26]save OK [16:44:26]Clear old archive folders... [16:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:26]tlvbuf is 00D3F2A0 [16:44:26]SAM_PROTO_ClearQueue [16:44:26]wFMCommunicate request_size=4 [16:44:26]MH_SAM_APDU [16:44:26]CAPDU: 80 09 00 00 [16:44:26]Write to MH i2c: E2 08 00 10 0B 80 09 00 00 00 00 00 00 8D [16:44:26]Write i2c OK [16:44:26]MH_I2C_Read... [16:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:26]Read from MH i2c: E2 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 03 00 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 03 00 10 0B 00 90 00 8F [16:44:26]RAPDU: 90 00 [16:44:26]wFMCommunicate OK [16:44:26]SAM_PROTO_ClearQueue done [16:44:26]KKMCreateOFDPacket [16:44:26]OFDProtocolAddRootSTLVToBuf [16:44:26]FM_MakeSignedData [16:44:26]FM_MakeSignedData [16:44:26]SAM_PROTO_SignData [16:44:26]wFMCommunicate request_size=4 [16:44:26]MH_SAM_APDU [16:44:26]CAPDU: 80 0D 01 02 [16:44:26]Write to MH i2c: E2 08 00 11 0B 80 0D 01 02 00 00 00 00 95 [16:44:26]Write i2c OK [16:44:26]MH_I2C_Read... [16:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:26]Read from MH i2c: E2 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 03 00 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 03 00 11 0B 00 90 00 90 [16:44:26]RAPDU: 90 00 [16:44:26]wFMCommunicate OK [16:44:26]wFMCommunicate request_size=255 [16:44:26]MH_SAM_APDU [16:44:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 E9 C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 22 02 00 35 04 06 00 C3 [16:44:26]Write to MH i2c: E2 02 01 12 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 E9 C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 22 02 00 35 04 06 00 C3 00 00 4D [16:44:26]Write i2c OK [16:44:26]MH_I2C_Read... [16:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:26]Read from MH i2c: E2 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 03 00 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 03 00 12 0B 00 90 00 91 [16:44:26]RAPDU: 90 00 [16:44:26]wFMCommunicate OK [16:44:26]wFMCommunicate request_size=10 [16:44:26]MH_SAM_APDU [16:44:26]CAPDU: 80 0D 02 02 05 66 C2 DC 38 9E [16:44:26]Write to MH i2c: E2 0D 00 13 0B 80 0D 02 02 05 00 66 C2 DC 38 9E 00 00 7C [16:44:26]Write i2c OK [16:44:26]MH_I2C_Read... [16:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:26]Read from MH i2c: E2 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 03 00 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 03 00 13 0B 00 90 00 92 [16:44:26]RAPDU: 90 00 [16:44:26]wFMCommunicate OK [16:44:26]wFMCommunicate request_size=4 [16:44:26]MH_SAM_APDU [16:44:26]CAPDU: 80 0D 03 02 [16:44:26]Write to MH i2c: E2 08 00 14 0B 80 0D 03 02 00 00 00 00 9A [16:44:26]Write i2c OK [16:44:26]MH_I2C_Read... [16:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:26]Read from MH i2c: E2 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 0B 00 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 0B 00 14 0B 00 F0 9E 91 B2 B6 A0 7D F5 90 00 34 [16:44:26]RAPDU: F0 9E 91 B2 B6 A0 7D F5 90 00 [16:44:26]wFMCommunicate OK [16:44:26]SAM_PROTO_SignData done [16:44:26]FM_MakeSignedData done [16:44:26]CreateOFDProtocolMessage [16:44:26]wFMCommunicate request_size=4 [16:44:26]MH_SAM_APDU [16:44:26]CAPDU: 80 11 00 00 [16:44:26]Write to MH i2c: E2 08 00 15 0B 80 11 00 00 00 00 00 00 9A [16:44:26]Write i2c OK [16:44:26]MH_I2C_Read... [16:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:26]Read from MH i2c: E2 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 17 00 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: E2 17 00 15 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [16:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:26]wFMCommunicate OK [16:44:26]CreateOFDProtocolMessage done [16:44:26]OFDSenderStorePacket 139792 [16:44:26]StoreOFDPacket docnum=139792 [16:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 50 07 07 01 63 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 E9 C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 22 02 00 35 04 06 00 C3 66 C2 DC 38 9E F0 9E 91 B2 B6 A0 7D F5 [16:44:26]CheckFolder [16:44:26]dirname=/storage/ofd_packets [16:44:26]CheckFolder done [16:44:26]ProducePacketName [16:44:26]name=ofd_packets/00139792 [16:44:26]NVStorageSaveData ofd_packets/00139792 [16:44:26]File name is /storage/ofd_packets/00139792 [16:44:26]Write 301 bytes [16:44:26]NVStorageSaveData done [16:44:26]OFDSenderStorePacket done [16:44:26]KKMCreateOFDPacket done [16:44:26]NVStorageSaveData kkm_last_timestamp [16:44:26]File name is /storage/kkm_last_timestamp [16:44:26]Write 4 bytes [16:44:26]NVStorageSaveData done [16:44:26]ExternCall_PrintAddStr [16:44:26]wPrintStart [16:44:26]Write to MH i2c: 01 00 00 16 0B 21 [16:44:26]Write i2c OK [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: 01 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: 01 07 00 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: 01 07 00 16 0B 00 00 00 00 00 FF 0F 36 [16:44:26]RasterBufferAndPrint [16:44:26]line Счет N : (1)593641 [16:44:26]line ИНН: 02508201610067 [16:44:26]line Контрольно-Кассовый Чек [16:44:26]line ПРОДАЖА [16:44:26]line ТРК (МРК, ГНК) : 42 [16:44:26]line Товар: 2710124130 [16:44:26]line Аи-92-К-5 [16:44:26]line 14.750 * 67.80 [16:44:26]line = 1000.05 [16:44:26]line НДС 12% НСП 1% [16:44:26]line > о реализуемом товаре [16:44:26]line ОКРУГЛЕНИЕ: -0.05 [16:44:26]line ИТОГО: 1000.00 [16:44:26]line Внесено: 1000.00 [16:44:26]line СДАЧА: 0.00 [16:44:26]line НСП 1% : 8.85 [16:44:26]line НДС 12% : 106.20 [16:44:27]line Наличными: 1000.00 [16:44:27]line Безнал.: 0.00 [16:44:27]line Место: АЗС № 136 "Партнер Нефть" [16:44:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:44:27]line СНО: Общий режим [16:44:27]line Чек 264 20.08.2024 16:44 [16:44:27]line Смена: 453 ФФД: 1.0 [16:44:27]line ЗНМ: 0300000067 [16:44:27]line РНМ: 0000000000092569 [16:44:27]line Версия ККМ: 001 [16:44:27]line ФМ: 0000000000871776 [16:44:27]line ФД: 139792 [16:44:27]line ФПД: 214846123292830 [16:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164425&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139792&fm=214846123292830&tin=02508201610067®Number=0000000000092569&sum=100000 [16:44:27]OFD Sender: Processing packet 139792 [packets to send 137, broken 136] [16:44:27]ProducePacketName [16:44:27]name=ofd_packets/00139792 [16:44:27]OFD Sender: To server: pG, [16:44:27]CommunicateWithHost lk.salyk.kg:30040 [16:44:27]ConnectInit lk.salyk.kg [16:44:27]written 0, free lines is 4095 [16:44:27]Connected sock=10 [16:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 50 07 07 01 63 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 E9 C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 22 02 00 35 04 06 00 C3 66 C2 DC 38 9E F0 9E 91 B2 B6 A0 7D F5 [16:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D6 77 47 00 27 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 22 02 00 F4 03 04 00 7C 6E C4 66 B6 04 01 00 00 FF E9 6B 98 12 33 A4 7C [16:44:27]CommunicateWithHost err = 0 [16:44:27]CheckOFDResponse [16:44:27]1017 (14) - 77093643461234 [16:44:27]1041 (16) - 0000000000871776 [16:44:27]1040 (4) - 139792 [16:44:27]1012 (4) - 20.08.2024 10:22 [16:44:27]1206 (1) - 0 [16:44:27]OFD Sender: Remove packet 139792 [16:44:27]ProducePacketName [16:44:27]name=ofd_packets/00139792 [16:44:27]NVStorageDeleteData [16:44:27]Write to MH i2c: 01 00 00 41 0B 4C [16:44:27]Write i2c OK [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: 01 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: 01 07 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: 01 07 00 41 0B 00 00 00 00 00 D7 0C 36 [16:44:27]RasterBufferAndPrint [16:44:27]line [16:44:27]line [16:44:27]line [16:44:27]line [16:44:27]line [16:44:27]written 0, free lines is 3296 [16:44:27]MH_Cut [16:44:27]Write to MH i2c: D1 01 00 48 0B 01 25 [16:44:27]Write i2c OK [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: D1 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: D1 01 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: D1 01 00 48 0B 00 24 [16:44:27]Write to MH i2c: 01 00 00 49 0B 54 [16:44:27]Write i2c OK [16:44:27]MH_I2C_Read... [16:44:28]OFD Sender: No OFD packet to send [16:44:28]*** Cut start [16:44:28]*** Partial cut [16:44:28]*** CUTSNS_PIN = 1 [16:44:28]*** CUTSNS_PIN = 0 [16:44:28]*** Brake cut motor [16:44:29]Read from MH i2c: 01 [16:44:29]MH_I2C_Read... [16:44:29]*** Stop cut motor [16:44:29]*** Cut end [16:44:29]Read from MH i2c: 01 07 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 FF 0F 69 [16:44:29]process_action close_receipt done [16:44:29]requested_data is exist [16:44:29]produce_requested_data [16:44:29]requested_item fm.sn is exist - process it [16:44:29]wFMCommunicate request_size=4 [16:44:29]MH_SAM_APDU [16:44:29]CAPDU: 80 11 00 00 [16:44:29]Write to MH i2c: E2 08 00 4A 0B 80 11 00 00 00 00 00 00 CF [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:29]Read from MH i2c: E2 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: E2 17 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: E2 17 00 4A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [16:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:29]wFMCommunicate OK [16:44:29]requested_item fd.num is exist - process it [16:44:29]SAM_PROTO_GetFieldsCounters [16:44:29]wFMCommunicate request_size=4 [16:44:29]MH_SAM_APDU [16:44:29]CAPDU: 80 13 00 00 [16:44:29]Write to MH i2c: E2 08 00 4B 0B 80 13 00 00 00 00 00 00 D2 [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:29]*** FLAG_PRN_KEY set [16:44:29]int [16:44:29]Read from MH i2c: E2 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: E2 62 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: E2 62 00 4B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 22 02 00 0E 04 04 00 C5 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 12 [16:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 22 02 00 0E 04 04 00 C5 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 [16:44:29]wFMCommunicate OK [16:44:29]SAM_PROTO_GetFieldsCounters done [16:44:29]requested_item shift.num is exist - process it [16:44:29]requested_item shift.opened is exist - process it [16:44:29]req_shift_opened [16:44:29]FM_GetShiftState [16:44:29]SAM_PROTO_GetShiftState [16:44:29]wFMCommunicate request_size=4 [16:44:29]MH_SAM_APDU [16:44:29]CAPDU: 80 13 01 00 [16:44:29]Write to MH i2c: 01 00 00 4C 0B 57 [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 07 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 07 00 4C 0B 00 08 00 00 00 FF 0F 74 [16:44:29]state=0 [16:44:29]Key pressed [16:44:29]Feed [16:44:29]Write to MH i2c: D8 00 00 4D 0B 2F [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: D8 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: D8 01 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: D8 01 00 4D 0B 00 30 [16:44:29]Write to MH i2c: E2 08 00 4E 0B 80 13 01 00 00 00 00 00 D6 [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]int [16:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:29]Read from MH i2c: E2 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: E2 0E 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: E2 0E 00 4E 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 67 [16:44:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:44:29]wFMCommunicate OK [16:44:29]SAM_PROTO_GetShiftState done [16:44:29]FM_GetShiftState done [16:44:29]req_shift_opened done [16:44:29]requested_item shift.open_date is exist - process it [16:44:29]req_shift_open_date [16:44:29]req_shift_open_date done [16:44:29]produce_requested_data done [16:44:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139792,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:44:29]process_action_free close_receipt [16:44:29]json_value_free [16:44:29]json_value_free done [16:44:29]process_json_proto returns [16:44:29]Send response to host [16:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139792,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:44:29]free response buf [16:44:29]execute_script done [16:44:29]execute_script returns [16:44:29]free content buf [16:44:29]Sock 9.Close socket [16:44:29]Sock 9.Thread stoped [16:44:29]Write to MH i2c: 01 00 00 4F 0B 5A [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 07 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 07 00 4F 0B 00 48 00 00 00 3C 00 E5 [16:44:29]state=2 [16:44:29]Key pressed [16:44:29]int [16:44:29]Write to MH i2c: 01 00 00 50 0B 5B [16:44:29]*** FLAG_PRN_KEY reset [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 07 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 07 00 50 0B 00 00 00 00 00 FF 0F 70 [16:44:29]state=2 [16:44:29]Stop feed [16:44:33]OFD Sender: No OFD packet to send [16:44:33]accept exits with 8 [16:44:33]New connection [16:44:33]New thread 3066793316 created [16:44:33]Thread 3066649956 joined [16:44:33]Waiting for new connection... [16:44:33] Sock 8.Parse request [16:44:33]Sock 8.Check first char [16:44:33]Sock 8.First char is OK [16:44:33]request: POST /json_proto HTTP/1.0 [16:44:33]Method: POST [16:44:33]URL: /json_proto [16:44:33]Method is POST - this is cgi request [16:44:33]url: /json_proto [16:44:33]query_string will be loaded in cgi processing [16:44:33]execute_cgi json_proto POST (null) [16:44:33]execute_cgi path=json_proto method=POST [16:44:33]POST find Content-Length [16:44:33]Host: 172.17.45.67:8080 [16:44:33]Content-Length: 659 [16:44:33]Content-Type: application/json [16:44:33] [16:44:33]POST finish read [16:44:33]Found Content-Length = 659 [16:44:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:44:33]execute_script... [16:44: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)593640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:44:33]POST & json_proto [16:44:33]process_json_proto [16:44:33]json parsed OK: [16:44:33]protocol is kg_v1.0 [16:44:33]action value=close_receipt [16:44:33]process_action close_receipt [16:44:33]cmd_close_receipt [16:44:33]MH_GetDate [16:44:33]Write to MH i2c: F0 00 00 51 0B 4B [16:44:33]Write i2c OK [16:44:33]MH_I2C_Read... [16:44:33]Read from MH i2c: F0 [16:44:33]MH_I2C_Read... [16:44:33]Read from MH i2c: F0 09 00 [16:44:33]MH_I2C_Read... [16:44:33]Read from MH i2c: F0 09 00 51 0B 00 F1 C7 C4 66 5F 7F 2B 66 A5 [16:44:33]GetLastDocTimeStamp 1724172265 [16:44:33]current date 1724172273 [16:44:33]FM_GetShiftState [16:44:33]SAM_PROTO_GetShiftState [16:44:33]wFMCommunicate request_size=4 [16:44:33]MH_SAM_APDU [16:44:33]CAPDU: 80 13 01 00 [16:44:33]Write to MH i2c: E2 08 00 52 0B 80 13 01 00 00 00 00 00 DA [16:44:33]Write i2c OK [16:44:33]MH_I2C_Read... [16:44:33]Read from MH i2c: E2 [16:44:33]MH_I2C_Read... [16:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:33]Read from MH i2c: E2 0E 00 [16:44:33]MH_I2C_Read... [16:44:33]Read from MH i2c: E2 0E 00 52 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6B [16:44:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:44:33]wFMCommunicate OK [16:44:33]SAM_PROTO_GetShiftState done [16:44:33]FM_GetShiftState done [16:44:33]opened in 1724113785 [16:44:33]opened+sec_in_day 1724200185 [16:44:33]quantity*price = 70038 [16:44:33]sum+1 = 70039 [16:44:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 265 20.08.2024 16:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139793 ФПД: 2742416242107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139793&fm=2742416242107&tin=02508201610067®Number=0000000000092569&sum=70000 [16:44:34]StoreToDocumentArchive [16:44:34]shift 453 fd 139793 [16:44:34]save to /storage/0453/doc_00139793 [16:44:34]save last doc name /storage/0453/doc_00139793 to /storage/kkm_last_doc_name [16:44:34]save OK [16:44:34]Clear old archive folders... [16:44:34]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:44:34]tlvbuf is 00D48D60 [16:44:34]SAM_PROTO_ClearQueue [16:44:34]wFMCommunicate request_size=4 [16:44:34]MH_SAM_APDU [16:44:34]CAPDU: 80 09 00 00 [16:44:34]Write to MH i2c: E2 08 00 5F 0B 80 09 00 00 00 00 00 00 DC [16:44:34]Write i2c OK [16:44:34]MH_I2C_Read... [16:44:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:34]Read from MH i2c: E2 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 03 00 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 03 00 5F 0B 00 90 00 DE [16:44:34]RAPDU: 90 00 [16:44:34]wFMCommunicate OK [16:44:34]SAM_PROTO_ClearQueue done [16:44:34]KKMCreateOFDPacket [16:44:34]OFDProtocolAddRootSTLVToBuf [16:44:34]FM_MakeSignedData [16:44:34]FM_MakeSignedData [16:44:34]SAM_PROTO_SignData [16:44:34]wFMCommunicate request_size=4 [16:44:34]MH_SAM_APDU [16:44:34]CAPDU: 80 0D 01 02 [16:44:34]Write to MH i2c: E2 08 00 60 0B 80 0D 01 02 00 00 00 00 E4 [16:44:34]Write i2c OK [16:44:34]MH_I2C_Read... [16:44:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:34]Read from MH i2c: E2 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 03 00 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 03 00 60 0B 00 90 00 DF [16:44:34]RAPDU: 90 00 [16:44:34]wFMCommunicate OK [16:44:34]wFMCommunicate request_size=253 [16:44:34]MH_SAM_APDU [16:44:34]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 09 01 00 00 F4 03 04 00 F1 C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 22 02 00 35 04 06 00 02 7E 84 BE F5 BB [16:44:34]Write to MH i2c: E2 00 01 61 0B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 09 01 00 00 F4 03 04 00 F1 C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 22 02 00 35 04 06 00 02 7E 84 BE F5 BB 00 00 29 [16:44:34]Write i2c OK [16:44:34]MH_I2C_Read... [16:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:34]Read from MH i2c: E2 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 03 00 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 03 00 61 0B 00 90 00 E0 [16:44:34]RAPDU: 90 00 [16:44:34]wFMCommunicate OK [16:44:34]wFMCommunicate request_size=4 [16:44:34]MH_SAM_APDU [16:44:34]CAPDU: 80 0D 03 02 [16:44:34]Write to MH i2c: E2 08 00 62 0B 80 0D 03 02 00 00 00 00 E8 [16:44:34]Write i2c OK [16:44:34]MH_I2C_Read... [16:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:34]Read from MH i2c: E2 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 0B 00 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 0B 00 62 0B 00 A6 E0 56 F4 9E 60 48 C6 90 00 C5 [16:44:34]RAPDU: A6 E0 56 F4 9E 60 48 C6 90 00 [16:44:34]wFMCommunicate OK [16:44:34]SAM_PROTO_SignData done [16:44:34]FM_MakeSignedData done [16:44:34]CreateOFDProtocolMessage [16:44:34]wFMCommunicate request_size=4 [16:44:34]MH_SAM_APDU [16:44:34]CAPDU: 80 11 00 00 [16:44:34]Write to MH i2c: E2 08 00 63 0B 80 11 00 00 00 00 00 00 E8 [16:44:34]Write i2c OK [16:44:34]MH_I2C_Read... [16:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:34]Read from MH i2c: E2 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 17 00 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: E2 17 00 63 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3F [16:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:34]wFMCommunicate OK [16:44:34]CreateOFDProtocolMessage done [16:44:34]OFDSenderStorePacket 139793 [16:44:34]StoreOFDPacket docnum=139793 [16:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 6F DD 00 01 14 D6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 09 01 00 00 F4 03 04 00 F1 C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 22 02 00 35 04 06 00 02 7E 84 BE F5 BB A6 E0 56 F4 9E 60 48 C6 [16:44:34]CheckFolder [16:44:34]dirname=/storage/ofd_packets [16:44:34]CheckFolder done [16:44:34]ProducePacketName [16:44:34]name=ofd_packets/00139793 [16:44:34]NVStorageSaveData ofd_packets/00139793 [16:44:34]File name is /storage/ofd_packets/00139793 [16:44:34]Write 294 bytes [16:44:34]NVStorageSaveData done [16:44:34]OFDSenderStorePacket done [16:44:34]KKMCreateOFDPacket done [16:44:34]NVStorageSaveData kkm_last_timestamp [16:44:34]File name is /storage/kkm_last_timestamp [16:44:34]Write 4 bytes [16:44:34]NVStorageSaveData done [16:44:34]ExternCall_PrintAddStr [16:44:34]wPrintStart [16:44:34]Write to MH i2c: 01 00 00 64 0B 6F [16:44:34]Write i2c OK [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: 01 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: 01 07 00 [16:44:34]MH_I2C_Read... [16:44:34]Read from MH i2c: 01 07 00 64 0B 00 00 00 00 00 FF 0F 84 [16:44:34]RasterBufferAndPrint [16:44:34]line Счет N : (1)593640 [16:44:34]line ИНН: 02508201610067 [16:44:34]line Контрольно-Кассовый Чек [16:44:34]line ПРОДАЖА [16:44:34]line ТРК (МРК, ГНК) : 63 [16:44:34]line Товар: 2710124130 [16:44:34]line SU-92 [16:44:34]line 10.180 * 68.80 [16:44:34]line = 700.38 [16:44:34]line НДС 12% НСП 1% [16:44:34]line > о реализуемом товаре [16:44:34]line ОКРУГЛЕНИЕ: -0.38 [16:44:34]line ИТОГО: 700.00 [16:44:34]line Внесено: 700.00 [16:44:34]line СДАЧА: 0.00 [16:44:34]line НСП 1% : 6.20 [16:44:34]line НДС 12% : 74.38 [16:44:34]line Наличными: 700.00 [16:44:34]line Безнал.: 0.00 [16:44:34]line Место: АЗС № 136 "Партнер Нефть" [16:44:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:44:34]line СНО: Общий режим [16:44:34]line Чек 265 20.08.2024 16:44 [16:44:34]line Смена: 453 ФФД: 1.0 [16:44:34]line ЗНМ: 0300000067 [16:44:34]line РНМ: 0000000000092569 [16:44:34]line Версия ККМ: 001 [16:44:34]line ФМ: 0000000000871776 [16:44:34]line ФД: 139793 [16:44:34]line ФПД: 2742416242107 [16:44:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139793&fm=2742416242107&tin=02508201610067®Number=0000000000092569&sum=70000 [16:44:34]written 0, free lines is 4095 [16:44:34]OFD Sender: Processing packet 139793 [packets to send 137, broken 136] [16:44:34]ProducePacketName [16:44:34]name=ofd_packets/00139793 [16:44:34]OFD Sender: To server: pG, [16:44:34]CommunicateWithHost lk.salyk.kg:30040 [16:44:34]ConnectInit lk.salyk.kg [16:44:35]Connected sock=10 [16:44:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 6F DD 00 01 14 D6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 09 01 00 00 F4 03 04 00 F1 C7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 22 02 00 35 04 06 00 02 7E 84 BE F5 BB A6 E0 56 F4 9E 60 48 C6 [16:44:35]Write to MH i2c: 01 00 00 8F 0B 9A [16:44:35]Write i2c OK [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: 01 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: 01 07 00 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: 01 07 00 8F 0B 00 00 00 00 00 DA 0C 87 [16:44:35]RasterBufferAndPrint [16:44:35]line [16:44:35]line [16:44:35]line [16:44:35]line [16:44:35]line [16:44:35]written 0, free lines is 3303 [16:44:35]MH_Cut [16:44:35]Write to MH i2c: D1 01 00 96 0B 01 73 [16:44:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EF 42 47 00 74 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 22 02 00 F4 03 04 00 84 6E C4 66 B6 04 01 00 00 0A 2A A6 32 AF 46 6E 0E [16:44:35]CommunicateWithHost err = 0 [16:44:35]CheckOFDResponse [16:44:35]1017 (14) - 77093643461234 [16:44:35]1041 (16) - 0000000000871776 [16:44:35]1040 (4) - 139793 [16:44:35]1012 (4) - 20.08.2024 10:23 [16:44:35]1206 (1) - 0 [16:44:35]OFD Sender: Remove packet 139793 [16:44:35]ProducePacketName [16:44:35]name=ofd_packets/00139793 [16:44:35]NVStorageDeleteData [16:44:35]Write i2c OK [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: D1 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: D1 01 00 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: D1 01 00 96 0B 00 72 [16:44:35]Write to MH i2c: 01 00 00 97 0B A2 [16:44:35]Write i2c OK [16:44:35]MH_I2C_Read... [16:44:35]OFD Sender: No OFD packet to send [16:44:36]*** Cut start [16:44:36]*** Partial cut [16:44:36]*** CUTSNS_PIN = 1 [16:44:36]*** CUTSNS_PIN = 0 [16:44:36]*** Brake cut motor [16:44:36]Read from MH i2c: 01 [16:44:36]MH_I2C_Read... [16:44:36]*** Stop cut motor [16:44:36]*** Cut end [16:44:36]Read from MH i2c: 01 07 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: 01 07 00 97 0B 00 00 00 00 00 FF 0F B7 [16:44:36]process_action close_receipt done [16:44:36]requested_data is exist [16:44:36]produce_requested_data [16:44:36]requested_item fm.sn is exist - process it [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 11 00 00 [16:44:36]Write to MH i2c: E2 08 00 98 0B 80 11 00 00 00 00 00 00 1D [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 17 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 17 00 98 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [16:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:36]wFMCommunicate OK [16:44:36]requested_item fd.num is exist - process it [16:44:36]SAM_PROTO_GetFieldsCounters [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 13 00 00 [16:44:36]Write to MH i2c: E2 08 00 99 0B 80 13 00 00 00 00 00 00 20 [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 62 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 62 00 99 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 22 02 00 0E 04 04 00 C5 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 64 [16:44:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 22 02 00 0E 04 04 00 C5 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 [16:44:36]wFMCommunicate OK [16:44:36]SAM_PROTO_GetFieldsCounters done [16:44:36]requested_item shift.num is exist - process it [16:44:36]requested_item shift.opened is exist - process it [16:44:36]req_shift_opened [16:44:36]FM_GetShiftState [16:44:36]SAM_PROTO_GetShiftState [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 13 01 00 [16:44:36]Write to MH i2c: E2 08 00 9A 0B 80 13 01 00 00 00 00 00 22 [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:36]Read from MH i2c: E2 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 0E 00 [16:44:36]MH_I2C_Read... [16:44:36]Read from MH i2c: E2 0E 00 9A 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B3 [16:44:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:44:36]wFMCommunicate OK [16:44:36]SAM_PROTO_GetShiftState done [16:44:36]FM_GetShiftState done [16:44:36]req_shift_opened done [16:44:36]requested_item shift.open_date is exist - process it [16:44:36]req_shift_open_date [16:44:36]req_shift_open_date done [16:44:36]produce_requested_data done [16:44:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139793,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:44:36]process_action_free close_receipt [16:44:36]json_value_free [16:44:36]json_value_free done [16:44:36]process_json_proto returns [16:44:36]Send response to host [16:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139793,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:44:36]free response buf [16:44:36]execute_script done [16:44:36]execute_script returns [16:44:36]free content buf [16:44:36]Sock 8.Close socket [16:44:36]Sock 8.Thread stoped [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:52]accept exits with 9 [16:45:52]New connection [16:45:52]New thread 3066649956 created [16:45:52]Thread 3066793316 joined [16:45:52]Waiting for new connection... [16:45:52] Sock 9.Parse request [16:45:52]Sock 9.Check first char [16:45:52]Sock 9.First char is OK [16:45:52]request: POST /json_proto HTTP/1.0 [16:45:52]Method: POST [16:45:52]URL: /json_proto [16:45:52]Method is POST - this is cgi request [16:45:52]url: /json_proto [16:45:52]query_string will be loaded in cgi processing [16:45:52]execute_cgi json_proto POST (null) [16:45:52]execute_cgi path=json_proto method=POST [16:45:52]POST find Content-Length [16:45:52]Host: 172.17.45.67:8080 [16:45:52]Content-Length: 682 [16:45:52]Content-Type: application/json [16:45:52] [16:45:52]POST finish read [16:45:52]Found Content-Length = 682 [16:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:52]execute_script... [16:45: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)593642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:52]POST & json_proto [16:45:52]process_json_proto [16:45:52]json parsed OK: [16:45:52]protocol is kg_v1.0 [16:45:52]action value=close_receipt [16:45:52]process_action close_receipt [16:45:52]cmd_close_receipt [16:45:52]MH_GetDate [16:45:52]Write to MH i2c: F0 00 00 9B 0B 95 [16:45:52]Write i2c OK [16:45:52]MH_I2C_Read... [16:45:52]Read from MH i2c: F0 [16:45:52]MH_I2C_Read... [16:45:52]Read from MH i2c: F0 09 00 [16:45:52]MH_I2C_Read... [16:45:52]Read from MH i2c: F0 09 00 9B 0B 00 40 C8 C4 66 5F 7F 2B 66 3F [16:45:52]GetLastDocTimeStamp 1724172273 [16:45:52]current date 1724172352 [16:45:52]FM_GetShiftState [16:45:52]SAM_PROTO_GetShiftState [16:45:52]wFMCommunicate request_size=4 [16:45:52]MH_SAM_APDU [16:45:52]CAPDU: 80 13 01 00 [16:45:52]Write to MH i2c: E2 08 00 9C 0B 80 13 01 00 00 00 00 00 24 [16:45:52]Write i2c OK [16:45:52]MH_I2C_Read... [16:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:52]Read from MH i2c: E2 [16:45:52]MH_I2C_Read... [16:45:52]Read from MH i2c: E2 0E 00 [16:45:52]MH_I2C_Read... [16:45:52]Read from MH i2c: E2 0E 00 9C 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B5 [16:45:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:45:52]wFMCommunicate OK [16:45:52]SAM_PROTO_GetShiftState done [16:45:52]FM_GetShiftState done [16:45:52]opened in 1724113785 [16:45:52]opened+sec_in_day 1724200185 [16:45:52]quantity*price = 100021 [16:45:52]sum+1 = 100023 [16:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 266 20.08.2024 16:45 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139794 ФПД: 51550843042978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139794&fm=51550843042978&tin=02508201610067®Number=0000000000092569&sum=100000 [16:45:53]StoreToDocumentArchive [16:45:53]shift 453 fd 139794 [16:45:53]save to /storage/0453/doc_00139794 [16:45:53]save last doc name /storage/0453/doc_00139794 to /storage/kkm_last_doc_name [16:45:53]save OK [16:45:53]Clear old archive folders... [16:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:53]tlvbuf is 00D2C1C0 [16:45:53]SAM_PROTO_ClearQueue [16:45:53]wFMCommunicate request_size=4 [16:45:53]MH_SAM_APDU [16:45:53]CAPDU: 80 09 00 00 [16:45:53]Write to MH i2c: E2 08 00 A9 0B 80 09 00 00 00 00 00 00 26 [16:45:53]Write i2c OK [16:45:53]MH_I2C_Read... [16:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:53]Read from MH i2c: E2 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 03 00 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 03 00 A9 0B 00 90 00 28 [16:45:53]RAPDU: 90 00 [16:45:53]wFMCommunicate OK [16:45:53]SAM_PROTO_ClearQueue done [16:45:53]KKMCreateOFDPacket [16:45:53]OFDProtocolAddRootSTLVToBuf [16:45:53]FM_MakeSignedData [16:45:53]FM_MakeSignedData [16:45:53]SAM_PROTO_SignData [16:45:53]wFMCommunicate request_size=4 [16:45:53]MH_SAM_APDU [16:45:53]CAPDU: 80 0D 01 02 [16:45:53]Write to MH i2c: E2 08 00 AA 0B 80 0D 01 02 00 00 00 00 2E [16:45:53]Write i2c OK [16:45:53]MH_I2C_Read... [16:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:53]Read from MH i2c: E2 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 03 00 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 03 00 AA 0B 00 90 00 29 [16:45:53]RAPDU: 90 00 [16:45:53]wFMCommunicate OK [16:45:53]wFMCommunicate request_size=255 [16:45:53]MH_SAM_APDU [16:45:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 0A 01 00 00 F4 03 04 00 40 C8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 22 02 00 35 04 06 00 2E [16:45:53]Write to MH i2c: E2 02 01 AB 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 0A 01 00 00 F4 03 04 00 40 C8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 22 02 00 35 04 06 00 2E 00 00 4B [16:45:53]Write i2c OK [16:45:53]MH_I2C_Read... [16:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:53]Read from MH i2c: E2 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 03 00 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 03 00 AB 0B 00 90 00 2A [16:45:53]RAPDU: 90 00 [16:45:53]wFMCommunicate OK [16:45:53]wFMCommunicate request_size=10 [16:45:53]MH_SAM_APDU [16:45:53]CAPDU: 80 0D 02 02 05 E2 9D AF FC A2 [16:45:53]Write to MH i2c: E2 0D 00 AC 0B 80 0D 02 02 05 00 E2 9D AF FC A2 00 00 07 [16:45:53]Write i2c OK [16:45:53]MH_I2C_Read... [16:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:53]Read from MH i2c: E2 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 03 00 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 03 00 AC 0B 00 90 00 2B [16:45:53]RAPDU: 90 00 [16:45:53]wFMCommunicate OK [16:45:53]wFMCommunicate request_size=4 [16:45:53]MH_SAM_APDU [16:45:53]CAPDU: 80 0D 03 02 [16:45:53]Write to MH i2c: E2 08 00 AD 0B 80 0D 03 02 00 00 00 00 33 [16:45:53]Write i2c OK [16:45:53]MH_I2C_Read... [16:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:53]Read from MH i2c: E2 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 0B 00 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 0B 00 AD 0B 00 99 58 F3 AE 46 8E 0B CB 90 00 70 [16:45:53]RAPDU: 99 58 F3 AE 46 8E 0B CB 90 00 [16:45:53]wFMCommunicate OK [16:45:53]SAM_PROTO_SignData done [16:45:53]FM_MakeSignedData done [16:45:53]CreateOFDProtocolMessage [16:45:53]wFMCommunicate request_size=4 [16:45:53]MH_SAM_APDU [16:45:53]CAPDU: 80 11 00 00 [16:45:53]Write to MH i2c: E2 08 00 AE 0B 80 11 00 00 00 00 00 00 33 [16:45:53]Write i2c OK [16:45:53]MH_I2C_Read... [16:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:53]Read from MH i2c: E2 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 17 00 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: E2 17 00 AE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8A [16:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:45:53]wFMCommunicate OK [16:45:53]CreateOFDProtocolMessage done [16:45:53]OFDSenderStorePacket 139794 [16:45:53]StoreOFDPacket docnum=139794 [16:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BD 46 07 01 62 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 0A 01 00 00 F4 03 04 00 40 C8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 22 02 00 35 04 06 00 2E E2 9D AF FC A2 99 58 F3 AE 46 8E 0B CB [16:45:53]CheckFolder [16:45:53]dirname=/storage/ofd_packets [16:45:53]CheckFolder done [16:45:53]ProducePacketName [16:45:53]name=ofd_packets/00139794 [16:45:53]NVStorageSaveData ofd_packets/00139794 [16:45:53]File name is /storage/ofd_packets/00139794 [16:45:53]Write 301 bytes [16:45:53]NVStorageSaveData done [16:45:53]OFDSenderStorePacket done [16:45:53]KKMCreateOFDPacket done [16:45:53]NVStorageSaveData kkm_last_timestamp [16:45:53]File name is /storage/kkm_last_timestamp [16:45:53]Write 4 bytes [16:45:53]NVStorageSaveData done [16:45:53]ExternCall_PrintAddStr [16:45:53]wPrintStart [16:45:53]Write to MH i2c: 01 00 00 AF 0B BA [16:45:53]Write i2c OK [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: 01 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: 01 07 00 [16:45:53]MH_I2C_Read... [16:45:53]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 FF 0F CF [16:45:53]RasterBufferAndPrint [16:45:53]line Счет N : (1)593642 [16:45:53]line ИНН: 02508201610067 [16:45:53]line Контрольно-Кассовый Чек [16:45:53]line ПРОДАЖА [16:45:53]line ТРК (МРК, ГНК) : 51 [16:45:53]line Товар: 2710124500 [16:45:53]line Аи-95-К-5 [16:45:53]line 13.480 * 74.20 [16:45:53]line = 1000.22 [16:45:53]line НДС 12% НСП 1% [16:45:53]line > о реализуемом товаре [16:45:53]line ОКРУГЛЕНИЕ: -0.22 [16:45:53]line ИТОГО: 1000.00 [16:45:53]line Внесено: 1000.00 [16:45:53]line СДАЧА: 0.00 [16:45:53]line НСП 1% : 8.85 [16:45:53]line НДС 12% : 106.22 [16:45:53]line Наличными: 1000.00 [16:45:53]line Безнал.: 0.00 [16:45:53]line Место: АЗС № 136 "Партнер Нефть" [16:45:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:45:53]line СНО: Общий режим [16:45:53]line Чек 266 20.08.2024 16:45 [16:45:53]line Смена: 453 ФФД: 1.0 [16:45:53]line ЗНМ: 0300000067 [16:45:53]line РНМ: 0000000000092569 [16:45:53]line Версия ККМ: 001 [16:45:53]line ФМ: 0000000000871776 [16:45:53]line ФД: 139794 [16:45:53]line ФПД: 51550843042978 [16:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T164552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139794&fm=51550843042978&tin=02508201610067®Number=0000000000092569&sum=100000 [16:45:54]written 0, free lines is 4095 [16:45:54]OFD Sender: Processing packet 139794 [packets to send 137, broken 136] [16:45:54]ProducePacketName [16:45:54]name=ofd_packets/00139794 [16:45:54]OFD Sender: To server: pG, [16:45:54]CommunicateWithHost lk.salyk.kg:30040 [16:45:54]ConnectInit lk.salyk.kg [16:45:54]Connected sock=10 [16:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BD 46 07 01 62 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 0A 01 00 00 F4 03 04 00 40 C8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 22 02 00 35 04 06 00 2E E2 9D AF FC A2 99 58 F3 AE 46 8E 0B CB [16:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 54 53 47 00 AB 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 22 02 00 F4 03 04 00 D3 6E C4 66 B6 04 01 00 00 FB F4 EF EE 4F B2 BF E5 [16:45:54]CommunicateWithHost err = 0 [16:45:54]CheckOFDResponse [16:45:54]1017 (14) - 77093643461234 [16:45:54]1041 (16) - 0000000000871776 [16:45:54]1040 (4) - 139794 [16:45:54]1012 (4) - 20.08.2024 10:24 [16:45:54]1206 (1) - 0 [16:45:54]OFD Sender: Remove packet 139794 [16:45:54]ProducePacketName [16:45:54]name=ofd_packets/00139794 [16:45:54]NVStorageDeleteData [16:45:54]Write to MH i2c: 01 00 00 DA 0B E5 [16:45:54]Write i2c OK [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: 01 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: 01 07 00 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: 01 07 00 DA 0B 00 00 00 00 00 DD 0C D5 [16:45:54]RasterBufferAndPrint [16:45:54]line [16:45:54]line [16:45:54]line [16:45:54]line [16:45:54]line [16:45:54]written 0, free lines is 3297 [16:45:54]MH_Cut [16:45:54]Write to MH i2c: D1 01 00 E1 0B 01 BE [16:45:54]Write i2c OK [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: D1 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: D1 01 00 [16:45:54]MH_I2C_Read... [16:45:54]Read from MH i2c: D1 01 00 E1 0B 00 BD [16:45:54]Write to MH i2c: 01 00 00 E2 0B ED [16:45:54]Write i2c OK [16:45:54]MH_I2C_Read... [16:45:54]OFD Sender: No OFD packet to send [16:45:55]*** Cut start [16:45:55]*** Partial cut [16:45:55]*** CUTSNS_PIN = 1 [16:45:55]*** CUTSNS_PIN = 0 [16:45:55]*** Brake cut motor [16:45:55]Read from MH i2c: 01 [16:45:55]MH_I2C_Read... [16:45:55]*** Stop cut motor [16:45:55]*** Cut end [16:45:55]Read from MH i2c: 01 07 00 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: 01 07 00 E2 0B 00 00 00 00 00 FF 0F 02 [16:45:55]process_action close_receipt done [16:45:55]requested_data is exist [16:45:55]produce_requested_data [16:45:55]requested_item fm.sn is exist - process it [16:45:55]wFMCommunicate request_size=4 [16:45:55]MH_SAM_APDU [16:45:55]CAPDU: 80 11 00 00 [16:45:55]Write to MH i2c: E2 08 00 E3 0B 80 11 00 00 00 00 00 00 68 [16:45:55]Write i2c OK [16:45:55]MH_I2C_Read... [16:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:55]Read from MH i2c: E2 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 17 00 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 17 00 E3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BF [16:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:45:55]wFMCommunicate OK [16:45:55]requested_item fd.num is exist - process it [16:45:55]SAM_PROTO_GetFieldsCounters [16:45:55]wFMCommunicate request_size=4 [16:45:55]MH_SAM_APDU [16:45:55]CAPDU: 80 13 00 00 [16:45:55]Write to MH i2c: E2 08 00 E4 0B 80 13 00 00 00 00 00 00 6B [16:45:55]Write i2c OK [16:45:55]MH_I2C_Read... [16:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:55]Read from MH i2c: E2 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 62 00 [16:45:55]MH_I2C_Read... [16:45:55]Read from MH i2c: E2 62 00 E4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 22 02 00 0E 04 04 00 C5 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 B3 [16:45:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 22 02 00 0E 04 04 00 C5 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 [16:45:55]wFMCommunicate OK [16:45:55]SAM_PROTO_GetFieldsCounters done [16:45:55]requested_item shift.num is exist - process it [16:45:55]requested_item shift.opened is exist - process it [16:45:55]req_shift_opened [16:45:55]FM_GetShiftState [16:45:55]SAM_PROTO_GetShiftState [16:45:55]wFMCommunicate request_size=4 [16:45:55]MH_SAM_APDU [16:45:55]CAPDU: 80 13 01 00 [16:45:55]Write to MH i2c: E2 08 00 E5 0B 80 13 01 00 00 00 00 00 6D [16:45:55]Write i2c OK [16:45:55]MH_I2C_Read... [16:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:56]Read from MH i2c: E2 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 0E 00 [16:45:56]MH_I2C_Read... [16:45:56]Read from MH i2c: E2 0E 00 E5 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FE [16:45:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:45:56]wFMCommunicate OK [16:45:56]SAM_PROTO_GetShiftState done [16:45:56]FM_GetShiftState done [16:45:56]req_shift_opened done [16:45:56]requested_item shift.open_date is exist - process it [16:45:56]req_shift_open_date [16:45:56]req_shift_open_date done [16:45:56]produce_requested_data done [16:45:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139794,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:45:56]process_action_free close_receipt [16:45:56]json_value_free [16:45:56]json_value_free done [16:45:56]process_json_proto returns [16:45:56]Send response to host [16:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139794,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:45:56]free response buf [16:45:56]execute_script done [16:45:56]execute_script returns [16:45:56]free content buf [16:45:56]Sock 9.Close socket [16:45:56]Sock 9.Thread stoped [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:33]accept exits with 8 [16:51:33]New connection [16:51:33]New thread 3066793316 created [16:51:33]Thread 3066649956 joined [16:51:33]Waiting for new connection... [16:51:33] Sock 8.Parse request [16:51:33]Sock 8.Check first char [16:51:33]Sock 8.First char is OK [16:51:33]request: POST /json_proto HTTP/1.0 [16:51:33]Method: POST [16:51:33]URL: /json_proto [16:51:33]Method is POST - this is cgi request [16:51:33]url: /json_proto [16:51:33]query_string will be loaded in cgi processing [16:51:33]execute_cgi json_proto POST (null) [16:51:33]execute_cgi path=json_proto method=POST [16:51:33]POST find Content-Length [16:51:33]Host: 172.17.45.67:8080 [16:51:33]Content-Length: 677 [16:51:33]Content-Type: application/json [16:51:33] [16:51:33]POST finish read [16:51:33]Found Content-Length = 677 [16:51:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:33]execute_script... [16:51: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)593644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:33]POST & json_proto [16:51:33]process_json_proto [16:51:33]json parsed OK: [16:51:33]protocol is kg_v1.0 [16:51:33]action value=close_receipt [16:51:33]process_action close_receipt [16:51:33]cmd_close_receipt [16:51:33]MH_GetDate [16:51:33]Write to MH i2c: F0 00 00 E6 0B E0 [16:51:33]Write i2c OK [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: F0 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: F0 09 00 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: F0 09 00 E6 0B 00 96 C9 C4 66 5F 7F 2B 66 E1 [16:51:33]GetLastDocTimeStamp 1724172352 [16:51:33]current date 1724172694 [16:51:33]FM_GetShiftState [16:51:33]SAM_PROTO_GetShiftState [16:51:33]wFMCommunicate request_size=4 [16:51:33]MH_SAM_APDU [16:51:33]CAPDU: 80 13 01 00 [16:51:33]Write to MH i2c: E2 08 00 E7 0B 80 13 01 00 00 00 00 00 6F [16:51:33]Write i2c OK [16:51:33]MH_I2C_Read... [16:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:33]Read from MH i2c: E2 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: E2 0E 00 [16:51:33]MH_I2C_Read... [16:51:33]Read from MH i2c: E2 0E 00 E7 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 00 [16:51:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:51:33]wFMCommunicate OK [16:51:33]SAM_PROTO_GetShiftState done [16:51:33]FM_GetShiftState done [16:51:33]opened in 1724113785 [16:51:33]opened+sec_in_day 1724200185 [16:51:33]quantity*price = 50036 [16:51:33]sum+1 = 50037 [16:51:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 267 20.08.2024 16:51 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139795 ФПД: 279040699205881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139795&fm=279040699205881&tin=02508201610067®Number=0000000000092569&sum=50000 [16:51:34]StoreToDocumentArchive [16:51:34]shift 453 fd 139795 [16:51:34]save to /storage/0453/doc_00139795 [16:51:34]save last doc name /storage/0453/doc_00139795 to /storage/kkm_last_doc_name [16:51:34]save OK [16:51:34]Clear old archive folders... [16:51:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:34]tlvbuf is 00D46DB0 [16:51:34]SAM_PROTO_ClearQueue [16:51:34]wFMCommunicate request_size=4 [16:51:34]MH_SAM_APDU [16:51:34]CAPDU: 80 09 00 00 [16:51:34]Write to MH i2c: E2 08 00 F4 0B 80 09 00 00 00 00 00 00 71 [16:51:34]Write i2c OK [16:51:34]MH_I2C_Read... [16:51:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:34]Read from MH i2c: E2 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: E2 03 00 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: E2 03 00 F4 0B 00 90 00 73 [16:51:34]RAPDU: 90 00 [16:51:34]wFMCommunicate OK [16:51:34]SAM_PROTO_ClearQueue done [16:51:34]KKMCreateOFDPacket [16:51:34]OFDProtocolAddRootSTLVToBuf [16:51:34]FM_MakeSignedData [16:51:34]FM_MakeSignedData [16:51:34]SAM_PROTO_SignData [16:51:34]wFMCommunicate request_size=4 [16:51:34]MH_SAM_APDU [16:51:34]CAPDU: 80 0D 01 02 [16:51:34]Write to MH i2c: E2 08 00 F5 0B 80 0D 01 02 00 00 00 00 79 [16:51:34]Write i2c OK [16:51:34]MH_I2C_Read... [16:51:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:34]Read from MH i2c: E2 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: E2 03 00 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: E2 03 00 F5 0B 00 90 00 74 [16:51:34]RAPDU: 90 00 [16:51:34]wFMCommunicate OK [16:51:34]wFMCommunicate request_size=255 [16:51:34]MH_SAM_APDU [16:51:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 96 C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 22 02 00 35 04 06 00 FD [16:51:34]Write to MH i2c: E2 02 01 F6 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 96 C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 22 02 00 35 04 06 00 FD 00 00 91 [16:51:34]Write i2c OK [16:51:34]MH_I2C_Read... [16:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:34]Read from MH i2c: E2 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: E2 03 00 [16:51:34]MH_I2C_Read... [16:51:34]Read from MH i2c: E2 03 00 F6 0B 00 90 00 75 [16:51:34]RAPDU: 90 00 [16:51:34]wFMCommunicate OK [16:51:34]wFMCommunicate request_size=10 [16:51:34]MH_SAM_APDU [16:51:34]CAPDU: 80 0D 02 02 05 C9 39 C1 08 F9 [16:51:34]Write to MH i2c: E2 0D 00 F7 0B 80 0D 02 02 05 00 C9 39 C1 08 F9 00 00 4A [16:51:34]Write i2c OK [16:51:34]MH_I2C_Read... [16:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:35]Read from MH i2c: E2 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: E2 03 00 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: E2 03 00 F7 0B 00 90 00 76 [16:51:35]RAPDU: 90 00 [16:51:35]wFMCommunicate OK [16:51:35]wFMCommunicate request_size=4 [16:51:35]MH_SAM_APDU [16:51:35]CAPDU: 80 0D 03 02 [16:51:35]Write to MH i2c: E2 08 00 F8 0B 80 0D 03 02 00 00 00 00 7E [16:51:35]Write i2c OK [16:51:35]MH_I2C_Read... [16:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:35]Read from MH i2c: E2 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: E2 0B 00 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: E2 0B 00 F8 0B 00 7B C9 1D 5E A7 2C 39 42 90 00 8C [16:51:35]RAPDU: 7B C9 1D 5E A7 2C 39 42 90 00 [16:51:35]wFMCommunicate OK [16:51:35]SAM_PROTO_SignData done [16:51:35]FM_MakeSignedData done [16:51:35]CreateOFDProtocolMessage [16:51:35]wFMCommunicate request_size=4 [16:51:35]MH_SAM_APDU [16:51:35]CAPDU: 80 11 00 00 [16:51:35]Write to MH i2c: E2 08 00 F9 0B 80 11 00 00 00 00 00 00 7E [16:51:35]Write i2c OK [16:51:35]MH_I2C_Read... [16:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:35]Read from MH i2c: E2 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: E2 17 00 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: E2 17 00 F9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D5 [16:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:51:35]wFMCommunicate OK [16:51:35]CreateOFDProtocolMessage done [16:51:35]OFDSenderStorePacket 139795 [16:51:35]StoreOFDPacket docnum=139795 [16:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D2 CE 07 01 EE 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 96 C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 22 02 00 35 04 06 00 FD C9 39 C1 08 F9 7B C9 1D 5E A7 2C 39 42 [16:51:35]CheckFolder [16:51:35]dirname=/storage/ofd_packets [16:51:35]CheckFolder done [16:51:35]ProducePacketName [16:51:35]name=ofd_packets/00139795 [16:51:35]NVStorageSaveData ofd_packets/00139795 [16:51:35]File name is /storage/ofd_packets/00139795 [16:51:35]Write 301 bytes [16:51:35]NVStorageSaveData done [16:51:35]OFDSenderStorePacket done [16:51:35]KKMCreateOFDPacket done [16:51:35]NVStorageSaveData kkm_last_timestamp [16:51:35]File name is /storage/kkm_last_timestamp [16:51:35]Write 4 bytes [16:51:35]NVStorageSaveData done [16:51:35]ExternCall_PrintAddStr [16:51:35]wPrintStart [16:51:35]Write to MH i2c: 01 00 00 FA 0B 05 [16:51:35]Write i2c OK [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: 01 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: 01 07 00 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: 01 07 00 FA 0B 00 00 00 00 00 FF 0F 1A [16:51:35]RasterBufferAndPrint [16:51:35]line Счет N : (1)593644 [16:51:35]line ИНН: 02508201610067 [16:51:35]line Контрольно-Кассовый Чек [16:51:35]line ПРОДАЖА [16:51:35]line ТРК (МРК, ГНК) : 52 [16:51:35]line Товар: 2710124130 [16:51:35]line Аи-92-К-5 [16:51:35]line 7.380 * 67.80 [16:51:35]line = 500.36 [16:51:35]line НДС 12% НСП 1% [16:51:35]line > о реализуемом товаре [16:51:35]line ОКРУГЛЕНИЕ: -0.36 [16:51:35]line ИТОГО: 500.00 [16:51:35]line Внесено: 500.00 [16:51:35]line СДАЧА: 0.00 [16:51:35]line НСП 1% : 4.43 [16:51:35]line НДС 12% : 53.14 [16:51:35]line Наличными: 500.00 [16:51:35]line Безнал.: 0.00 [16:51:35]line Место: АЗС № 136 "Партнер Нефть" [16:51:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:51:35]line СНО: Общий режим [16:51:35]line Чек 267 20.08.2024 16:51 [16:51:35]line Смена: 453 ФФД: 1.0 [16:51:35]line ЗНМ: 0300000067 [16:51:35]line РНМ: 0000000000092569 [16:51:35]line Версия ККМ: 001 [16:51:35]line ФМ: 0000000000871776 [16:51:35]line ФД: 139795 [16:51:35]line ФПД: 279040699205881 [16:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139795&fm=279040699205881&tin=02508201610067®Number=0000000000092569&sum=50000 [16:51:35]written 0, free lines is 4095 [16:51:35]OFD Sender: Processing packet 139795 [packets to send 137, broken 136] [16:51:35]ProducePacketName [16:51:35]name=ofd_packets/00139795 [16:51:35]OFD Sender: To server: pG, [16:51:35]CommunicateWithHost lk.salyk.kg:30040 [16:51:35]ConnectInit lk.salyk.kg [16:51:35]Connected sock=10 [16:51:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D2 CE 07 01 EE 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 96 C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 22 02 00 35 04 06 00 FD C9 39 C1 08 F9 7B C9 1D 5E A7 2C 39 42 [16:51:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3B A5 47 00 34 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 22 02 00 F4 03 04 00 28 70 C4 66 B6 04 01 00 00 B8 30 26 E2 E4 58 6A 4D [16:51:35]CommunicateWithHost err = 0 [16:51:35]CheckOFDResponse [16:51:35]1017 (14) - 77093643461234 [16:51:35]1041 (16) - 0000000000871776 [16:51:35]1040 (4) - 139795 [16:51:35]1012 (4) - 20.08.2024 10:30 [16:51:35]1206 (1) - 0 [16:51:35]OFD Sender: Remove packet 139795 [16:51:35]ProducePacketName [16:51:35]name=ofd_packets/00139795 [16:51:35]NVStorageDeleteData [16:51:35]Write to MH i2c: 01 00 00 25 0C 31 [16:51:35]Write i2c OK [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: 01 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: 01 07 00 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: 01 07 00 25 0C 00 00 00 00 00 DA 0C 1E [16:51:35]RasterBufferAndPrint [16:51:35]line [16:51:35]line [16:51:35]line [16:51:35]line [16:51:35]line [16:51:35]written 0, free lines is 3297 [16:51:35]MH_Cut [16:51:35]Write to MH i2c: D1 01 00 2C 0C 01 0A [16:51:35]Write i2c OK [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: D1 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: D1 01 00 [16:51:35]MH_I2C_Read... [16:51:35]Read from MH i2c: D1 01 00 2C 0C 00 09 [16:51:35]Write to MH i2c: 01 00 00 2D 0C 39 [16:51:35]Write i2c OK [16:51:35]MH_I2C_Read... [16:51:36]OFD Sender: No OFD packet to send [16:51:36]*** Cut start [16:51:36]*** Partial cut [16:51:36]*** CUTSNS_PIN = 1 [16:51:36]*** CUTSNS_PIN = 0 [16:51:36]*** Brake cut motor [16:51:36]Read from MH i2c: 01 [16:51:36]MH_I2C_Read... [16:51:36]*** Stop cut motor [16:51:36]*** Cut end [16:51:36]Read from MH i2c: 01 07 00 [16:51:36]MH_I2C_Read... [16:51:36]Read from MH i2c: 01 07 00 2D 0C 00 00 00 00 00 FF 0F 4E [16:51:36]process_action close_receipt done [16:51:36]requested_data is exist [16:51:36]produce_requested_data [16:51:36]requested_item fm.sn is exist - process it [16:51:36]wFMCommunicate request_size=4 [16:51:36]MH_SAM_APDU [16:51:36]CAPDU: 80 11 00 00 [16:51:36]Write to MH i2c: E2 08 00 2E 0C 80 11 00 00 00 00 00 00 B4 [16:51:36]Write i2c OK [16:51:36]MH_I2C_Read... [16:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:36]Read from MH i2c: E2 [16:51:36]MH_I2C_Read... [16:51:36]Read from MH i2c: E2 17 00 [16:51:36]MH_I2C_Read... [16:51:36]Read from MH i2c: E2 17 00 2E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0B [16:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:51:36]wFMCommunicate OK [16:51:36]requested_item fd.num is exist - process it [16:51:36]SAM_PROTO_GetFieldsCounters [16:51:36]wFMCommunicate request_size=4 [16:51:36]MH_SAM_APDU [16:51:36]CAPDU: 80 13 00 00 [16:51:36]Write to MH i2c: E2 08 00 2F 0C 80 13 00 00 00 00 00 00 B7 [16:51:36]Write i2c OK [16:51:36]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 62 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 62 00 2F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 22 02 00 0E 04 04 00 C5 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 03 [16:51:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 22 02 00 0E 04 04 00 C5 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 [16:51:37]wFMCommunicate OK [16:51:37]SAM_PROTO_GetFieldsCounters done [16:51:37]requested_item shift.num is exist - process it [16:51:37]requested_item shift.opened is exist - process it [16:51:37]req_shift_opened [16:51:37]FM_GetShiftState [16:51:37]SAM_PROTO_GetShiftState [16:51:37]wFMCommunicate request_size=4 [16:51:37]MH_SAM_APDU [16:51:37]CAPDU: 80 13 01 00 [16:51:37]Write to MH i2c: E2 08 00 30 0C 80 13 01 00 00 00 00 00 B9 [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 0E 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 0E 00 30 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4A [16:51:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:51:37]wFMCommunicate OK [16:51:37]SAM_PROTO_GetShiftState done [16:51:37]FM_GetShiftState done [16:51:37]req_shift_opened done [16:51:37]requested_item shift.open_date is exist - process it [16:51:37]req_shift_open_date [16:51:37]req_shift_open_date done [16:51:37]produce_requested_data done [16:51:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139795,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:51:37]process_action_free close_receipt [16:51:37]json_value_free [16:51:37]json_value_free done [16:51:37]process_json_proto returns [16:51:37]Send response to host [16:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139795,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:51:37]free response buf [16:51:37]execute_script done [16:51:37]execute_script returns [16:51:37]free content buf [16:51:37]Sock 8.Close socket [16:51:37]Sock 8.Thread stoped [16:51:37]accept exits with 9 [16:51:37]New connection [16:51:37]New thread 3066649956 created [16:51:37]Thread 3066793316 joined [16:51:37]Waiting for new connection... [16:51:37] Sock 9.Parse request [16:51:37]Sock 9.Check first char [16:51:37]Sock 9.First char is OK [16:51:37]request: POST /json_proto HTTP/1.0 [16:51:37]Method: POST [16:51:37]URL: /json_proto [16:51:37]Method is POST - this is cgi request [16:51:37]url: /json_proto [16:51:37]query_string will be loaded in cgi processing [16:51:37]execute_cgi json_proto POST (null) [16:51:37]execute_cgi path=json_proto method=POST [16:51:37]POST find Content-Length [16:51:37]Host: 172.17.45.67:8080 [16:51:37]Content-Length: 677 [16:51:37]Content-Type: application/json [16:51:37] [16:51:37]POST finish read [16:51:37]Found Content-Length = 677 [16:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:37]execute_script... [16:51: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)593643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:37]POST & json_proto [16:51:37]process_json_proto [16:51:37]json parsed OK: [16:51:37]protocol is kg_v1.0 [16:51:37]action value=close_receipt [16:51:37]process_action close_receipt [16:51:37]cmd_close_receipt [16:51:37]MH_GetDate [16:51:37]Write to MH i2c: F0 00 00 31 0C 2C [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: F0 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: F0 09 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: F0 09 00 31 0C 00 99 C9 C4 66 5F 7F 2B 66 30 [16:51:37]GetLastDocTimeStamp 1724172694 [16:51:37]current date 1724172697 [16:51:37]FM_GetShiftState [16:51:37]SAM_PROTO_GetShiftState [16:51:37]wFMCommunicate request_size=4 [16:51:37]MH_SAM_APDU [16:51:37]CAPDU: 80 13 01 00 [16:51:37]Write to MH i2c: E2 08 00 32 0C 80 13 01 00 00 00 00 00 BB [16:51:37]Write i2c OK [16:51:37]MH_I2C_Read... [16:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:37]Read from MH i2c: E2 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 0E 00 [16:51:37]MH_I2C_Read... [16:51:37]Read from MH i2c: E2 0E 00 32 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4C [16:51:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:51:37]wFMCommunicate OK [16:51:37]SAM_PROTO_GetShiftState done [16:51:37]FM_GetShiftState done [16:51:37]opened in 1724113785 [16:51:37]opened+sec_in_day 1724200185 [16:51:37]quantity*price = 60027 [16:51:37]sum+1 = 60029 [16:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 268 20.08.2024 16:51 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139796 ФПД: 223630229291529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165138&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139796&fm=223630229291529&tin=02508201610067®Number=0000000000092569&sum=60000 [16:51:38]StoreToDocumentArchive [16:51:38]shift 453 fd 139796 [16:51:38]save to /storage/0453/doc_00139796 [16:51:38]save last doc name /storage/0453/doc_00139796 to /storage/kkm_last_doc_name [16:51:38]save OK [16:51:38]Clear old archive folders... [16:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:38]tlvbuf is B6D81010 [16:51:38]SAM_PROTO_ClearQueue [16:51:38]wFMCommunicate request_size=4 [16:51:38]MH_SAM_APDU [16:51:38]CAPDU: 80 09 00 00 [16:51:38]Write to MH i2c: E2 08 00 3F 0C 80 09 00 00 00 00 00 00 BD [16:51:38]Write i2c OK [16:51:38]MH_I2C_Read... [16:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:38]Read from MH i2c: E2 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: E2 03 00 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: E2 03 00 3F 0C 00 90 00 BF [16:51:38]RAPDU: 90 00 [16:51:38]wFMCommunicate OK [16:51:38]SAM_PROTO_ClearQueue done [16:51:38]KKMCreateOFDPacket [16:51:38]OFDProtocolAddRootSTLVToBuf [16:51:38]FM_MakeSignedData [16:51:38]FM_MakeSignedData [16:51:38]SAM_PROTO_SignData [16:51:38]wFMCommunicate request_size=4 [16:51:38]MH_SAM_APDU [16:51:38]CAPDU: 80 0D 01 02 [16:51:38]Write to MH i2c: E2 08 00 40 0C 80 0D 01 02 00 00 00 00 C5 [16:51:38]Write i2c OK [16:51:38]MH_I2C_Read... [16:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:38]Read from MH i2c: E2 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: E2 03 00 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: E2 03 00 40 0C 00 90 00 C0 [16:51:38]RAPDU: 90 00 [16:51:38]wFMCommunicate OK [16:51:38]wFMCommunicate request_size=255 [16:51:38]MH_SAM_APDU [16:51:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 01 00 00 F4 03 04 00 9A C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 22 02 00 35 04 06 00 CB [16:51:38]Write to MH i2c: E2 02 01 41 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 9A C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 22 02 00 35 04 06 00 CB 00 00 1F [16:51:38]Write i2c OK [16:51:38]MH_I2C_Read... [16:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:38]Read from MH i2c: E2 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: E2 03 00 [16:51:38]MH_I2C_Read... [16:51:38]Read from MH i2c: E2 03 00 41 0C 00 90 00 C1 [16:51:38]RAPDU: 90 00 [16:51:38]wFMCommunicate OK [16:51:38]wFMCommunicate request_size=10 [16:51:39]MH_SAM_APDU [16:51:39]CAPDU: 80 0D 02 02 05 63 F8 60 C2 09 [16:51:39]Write to MH i2c: E2 0D 00 42 0C 80 0D 02 02 05 00 63 F8 60 C2 09 00 00 58 [16:51:39]Write i2c OK [16:51:39]MH_I2C_Read... [16:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:39]Read from MH i2c: E2 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 03 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 03 00 42 0C 00 90 00 C2 [16:51:39]RAPDU: 90 00 [16:51:39]wFMCommunicate OK [16:51:39]wFMCommunicate request_size=4 [16:51:39]MH_SAM_APDU [16:51:39]CAPDU: 80 0D 03 02 [16:51:39]Write to MH i2c: E2 08 00 43 0C 80 0D 03 02 00 00 00 00 CA [16:51:39]Write i2c OK [16:51:39]MH_I2C_Read... [16:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:39]Read from MH i2c: E2 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 0B 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 0B 00 43 0C 00 DA 3E AA E1 05 B4 9D F5 90 00 B9 [16:51:39]RAPDU: DA 3E AA E1 05 B4 9D F5 90 00 [16:51:39]wFMCommunicate OK [16:51:39]SAM_PROTO_SignData done [16:51:39]FM_MakeSignedData done [16:51:39]CreateOFDProtocolMessage [16:51:39]wFMCommunicate request_size=4 [16:51:39]MH_SAM_APDU [16:51:39]CAPDU: 80 11 00 00 [16:51:39]Write to MH i2c: E2 08 00 44 0C 80 11 00 00 00 00 00 00 CA [16:51:39]Write i2c OK [16:51:39]MH_I2C_Read... [16:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:39]Read from MH i2c: E2 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 17 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 17 00 44 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 21 [16:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:51:39]wFMCommunicate OK [16:51:39]CreateOFDProtocolMessage done [16:51:39]OFDSenderStorePacket 139796 [16:51:39]StoreOFDPacket docnum=139796 [16:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 98 9A 07 01 AA B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 01 00 00 F4 03 04 00 9A C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 22 02 00 35 04 06 00 CB 63 F8 60 C2 09 DA 3E AA E1 05 B4 9D F5 [16:51:39]CheckFolder [16:51:39]dirname=/storage/ofd_packets [16:51:39]CheckFolder done [16:51:39]ProducePacketName [16:51:39]name=ofd_packets/00139796 [16:51:39]NVStorageSaveData ofd_packets/00139796 [16:51:39]File name is /storage/ofd_packets/00139796 [16:51:39]Write 301 bytes [16:51:39]NVStorageSaveData done [16:51:39]OFDSenderStorePacket done [16:51:39]KKMCreateOFDPacket done [16:51:39]NVStorageSaveData kkm_last_timestamp [16:51:39]File name is /storage/kkm_last_timestamp [16:51:39]Write 4 bytes [16:51:39]NVStorageSaveData done [16:51:39]ExternCall_PrintAddStr [16:51:39]wPrintStart [16:51:39]Write to MH i2c: 01 00 00 45 0C 51 [16:51:39]Write i2c OK [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: 01 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: 01 07 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: 01 07 00 45 0C 00 00 00 00 00 FF 0F 66 [16:51:39]RasterBufferAndPrint [16:51:39]line Счет N : (1)593643 [16:51:39]line ИНН: 02508201610067 [16:51:39]line Контрольно-Кассовый Чек [16:51:39]line ПРОДАЖА [16:51:39]line ТРК (МРК, ГНК) : 41 [16:51:39]line Товар: 2710124500 [16:51:39]line Аи-95-К-5 [16:51:39]line 8.090 * 74.20 [16:51:39]line = 600.28 [16:51:39]line НДС 12% НСП 1% [16:51:39]line > о реализуемом товаре [16:51:39]line ОКРУГЛЕНИЕ: -0.28 [16:51:39]line ИТОГО: 600.00 [16:51:39]line Внесено: 600.00 [16:51:39]line СДАЧА: 0.00 [16:51:39]line НСП 1% : 5.31 [16:51:39]line НДС 12% : 63.75 [16:51:39]line Наличными: 600.00 [16:51:39]line Безнал.: 0.00 [16:51:39]line Место: АЗС № 136 "Партнер Нефть" [16:51:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:51:39]line СНО: Общий режим [16:51:39]line Чек 268 20.08.2024 16:51 [16:51:39]line Смена: 453 ФФД: 1.0 [16:51:39]line ЗНМ: 0300000067 [16:51:39]line РНМ: 0000000000092569 [16:51:39]line Версия ККМ: 001 [16:51:39]line ФМ: 0000000000871776 [16:51:39]line ФД: 139796 [16:51:39]line ФПД: 223630229291529 [16:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165138&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139796&fm=223630229291529&tin=02508201610067®Number=0000000000092569&sum=60000 [16:51:39]OFD Sender: Processing packet 139796 [packets to send 137, broken 136] [16:51:39]ProducePacketName [16:51:39]name=ofd_packets/00139796 [16:51:39]OFD Sender: To server: pG, [16:51:39]CommunicateWithHost lk.salyk.kg:30040 [16:51:39]ConnectInit lk.salyk.kg [16:51:39]written 0, free lines is 4095 [16:51:39]Connected sock=10 [16:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 98 9A 07 01 AA B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 01 00 00 F4 03 04 00 9A C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 22 02 00 35 04 06 00 CB 63 F8 60 C2 09 DA 3E AA E1 05 B4 9D F5 [16:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 75 B7 47 00 F5 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 22 02 00 F4 03 04 00 2D 70 C4 66 B6 04 01 00 00 6D 25 29 A2 50 8D C5 E9 [16:51:40]CommunicateWithHost err = 0 [16:51:40]CheckOFDResponse [16:51:40]1017 (14) - 77093643461234 [16:51:40]1041 (16) - 0000000000871776 [16:51:40]1040 (4) - 139796 [16:51:40]1012 (4) - 20.08.2024 10:30 [16:51:40]1206 (1) - 0 [16:51:40]OFD Sender: Remove packet 139796 [16:51:40]ProducePacketName [16:51:40]name=ofd_packets/00139796 [16:51:40]NVStorageDeleteData [16:51:40]Write to MH i2c: 01 00 00 70 0C 7C [16:51:40]Write i2c OK [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: 01 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: 01 07 00 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: 01 07 00 70 0C 00 00 00 00 00 E7 0C 76 [16:51:40]RasterBufferAndPrint [16:51:40]line [16:51:40]line [16:51:40]line [16:51:40]line [16:51:40]line [16:51:40]written 0, free lines is 3315 [16:51:40]MH_Cut [16:51:40]Write to MH i2c: D1 01 00 77 0C 01 55 [16:51:40]Write i2c OK [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: D1 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: D1 01 00 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: D1 01 00 77 0C 00 54 [16:51:40]Write to MH i2c: 01 00 00 78 0C 84 [16:51:40]Write i2c OK [16:51:40]MH_I2C_Read... [16:51:40]OFD Sender: No OFD packet to send [16:51:41]*** Cut start [16:51:41]*** Partial cut [16:51:41]*** CUTSNS_PIN = 1 [16:51:41]*** CUTSNS_PIN = 0 [16:51:41]*** Brake cut motor [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [16:51:41]*** Stop cut motor [16:51:41]*** Cut end [16:51:41]Read from MH i2c: 01 07 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 07 00 78 0C 00 00 00 00 00 FF 0F 99 [16:51:41]process_action close_receipt done [16:51:41]requested_data is exist [16:51:41]produce_requested_data [16:51:41]requested_item fm.sn is exist - process it [16:51:41]wFMCommunicate request_size=4 [16:51:41]MH_SAM_APDU [16:51:41]CAPDU: 80 11 00 00 [16:51:41]Write to MH i2c: E2 08 00 79 0C 80 11 00 00 00 00 00 00 FF [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:41]Read from MH i2c: E2 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: E2 17 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: E2 17 00 79 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [16:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:51:41]wFMCommunicate OK [16:51:41]requested_item fd.num is exist - process it [16:51:41]SAM_PROTO_GetFieldsCounters [16:51:41]wFMCommunicate request_size=4 [16:51:41]MH_SAM_APDU [16:51:41]CAPDU: 80 13 00 00 [16:51:41]Write to MH i2c: E2 08 00 7A 0C 80 13 00 00 00 00 00 00 02 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:41]Read from MH i2c: E2 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: E2 62 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: E2 62 00 7A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 22 02 00 0E 04 04 00 C5 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 52 [16:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 22 02 00 0E 04 04 00 C5 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 [16:51:41]wFMCommunicate OK [16:51:41]SAM_PROTO_GetFieldsCounters done [16:51:41]requested_item shift.num is exist - process it [16:51:41]requested_item shift.opened is exist - process it [16:51:41]req_shift_opened [16:51:41]FM_GetShiftState [16:51:41]SAM_PROTO_GetShiftState [16:51:41]wFMCommunicate request_size=4 [16:51:41]MH_SAM_APDU [16:51:41]CAPDU: 80 13 01 00 [16:51:41]Write to MH i2c: E2 08 00 7B 0C 80 13 01 00 00 00 00 00 04 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:41]Read from MH i2c: E2 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: E2 0E 00 [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: E2 0E 00 7B 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 95 [16:51:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:51:41]wFMCommunicate OK [16:51:41]SAM_PROTO_GetShiftState done [16:51:41]FM_GetShiftState done [16:51:41]req_shift_opened done [16:51:41]requested_item shift.open_date is exist - process it [16:51:41]req_shift_open_date [16:51:41]req_shift_open_date done [16:51:41]produce_requested_data done [16:51:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139796,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:51:41]process_action_free close_receipt [16:51:41]json_value_free [16:51:41]json_value_free done [16:51:41]process_json_proto returns [16:51:41]Send response to host [16:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139796,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:51:41]free response buf [16:51:41]execute_script done [16:51:41]execute_script returns [16:51:41]free content buf [16:51:41]Sock 9.Close socket [16:51:41]Sock 9.Thread stoped [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:33]accept exits with 8 [16:52:33]New connection [16:52:33]New thread 3066793316 created [16:52:33]Thread 3066649956 joined [16:52:33]Waiting for new connection... [16:52:33] Sock 8.Parse request [16:52:33]Sock 8.Check first char [16:52:33]Sock 8.First char is OK [16:52:33]request: POST /json_proto HTTP/1.0 [16:52:33]Method: POST [16:52:33]URL: /json_proto [16:52:33]Method is POST - this is cgi request [16:52:33]url: /json_proto [16:52:33]query_string will be loaded in cgi processing [16:52:33]execute_cgi json_proto POST (null) [16:52:33]execute_cgi path=json_proto method=POST [16:52:33]POST find Content-Length [16:52:33]Host: 172.17.45.67:8080 [16:52:33]Content-Length: 677 [16:52:33]Content-Type: application/json [16:52:33] [16:52:33]POST finish read [16:52:33]Found Content-Length = 677 [16:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:33]execute_script... [16:52: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)593645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:33]POST & json_proto [16:52:33]process_json_proto [16:52:33]json parsed OK: [16:52:33]protocol is kg_v1.0 [16:52:33]action value=close_receipt [16:52:33]process_action close_receipt [16:52:33]cmd_close_receipt [16:52:33]MH_GetDate [16:52:33]Write to MH i2c: F0 00 00 7C 0C 77 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: F0 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: F0 09 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: F0 09 00 7C 0C 00 D2 C9 C4 66 5F 7F 2B 66 B4 [16:52:33]GetLastDocTimeStamp 1724172698 [16:52:33]current date 1724172754 [16:52:33]FM_GetShiftState [16:52:33]SAM_PROTO_GetShiftState [16:52:33]wFMCommunicate request_size=4 [16:52:33]MH_SAM_APDU [16:52:33]CAPDU: 80 13 01 00 [16:52:33]Write to MH i2c: E2 08 00 7D 0C 80 13 01 00 00 00 00 00 06 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:33]Read from MH i2c: E2 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 0E 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 0E 00 7D 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 97 [16:52:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:52:33]wFMCommunicate OK [16:52:33]SAM_PROTO_GetShiftState done [16:52:33]FM_GetShiftState done [16:52:33]opened in 1724113785 [16:52:33]opened+sec_in_day 1724200185 [16:52:33]quantity*price = 40002 [16:52:33]sum+1 = 40003 [16:52:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 269 20.08.2024 16:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139797 ФПД: 263549742723576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165234&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139797&fm=263549742723576&tin=02508201610067®Number=0000000000092569&sum=40000 [16:52:35]StoreToDocumentArchive [16:52:35]shift 453 fd 139797 [16:52:35]save to /storage/0453/doc_00139797 [16:52:35]save last doc name /storage/0453/doc_00139797 to /storage/kkm_last_doc_name [16:52:35]save OK [16:52:35]Clear old archive folders... [16:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:35]tlvbuf is 00D59FE0 [16:52:35]SAM_PROTO_ClearQueue [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 09 00 00 [16:52:35]Write to MH i2c: E2 08 00 8A 0C 80 09 00 00 00 00 00 00 08 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 8A 0C 00 90 00 0A [16:52:35]RAPDU: 90 00 [16:52:35]wFMCommunicate OK [16:52:35]SAM_PROTO_ClearQueue done [16:52:35]KKMCreateOFDPacket [16:52:35]OFDProtocolAddRootSTLVToBuf [16:52:35]FM_MakeSignedData [16:52:35]FM_MakeSignedData [16:52:35]SAM_PROTO_SignData [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 0D 01 02 [16:52:35]Write to MH i2c: E2 08 00 8B 0C 80 0D 01 02 00 00 00 00 10 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 8B 0C 00 90 00 0B [16:52:35]RAPDU: 90 00 [16:52:35]wFMCommunicate OK [16:52:35]wFMCommunicate request_size=255 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 D2 C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 22 02 00 35 04 06 00 EF [16:52:35]Write to MH i2c: E2 02 01 8C 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 D2 C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 22 02 00 35 04 06 00 EF 00 00 3F [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 8C 0C 00 90 00 0C [16:52:35]RAPDU: 90 00 [16:52:35]wFMCommunicate OK [16:52:35]wFMCommunicate request_size=10 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 0D 02 02 05 B2 74 CB B1 F8 [16:52:35]Write to MH i2c: E2 0D 00 8D 0C 80 0D 02 02 05 00 B2 74 CB B1 F8 00 00 B7 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 8D 0C 00 90 00 0D [16:52:35]RAPDU: 90 00 [16:52:35]wFMCommunicate OK [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 0D 03 02 [16:52:35]Write to MH i2c: E2 08 00 8E 0C 80 0D 03 02 00 00 00 00 15 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 0B 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 0B 00 8E 0C 00 69 40 5C C1 13 69 4A A3 90 00 45 [16:52:35]RAPDU: 69 40 5C C1 13 69 4A A3 90 00 [16:52:35]wFMCommunicate OK [16:52:35]SAM_PROTO_SignData done [16:52:35]FM_MakeSignedData done [16:52:35]CreateOFDProtocolMessage [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 11 00 00 [16:52:35]Write to MH i2c: E2 08 00 8F 0C 80 11 00 00 00 00 00 00 15 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 17 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 17 00 8F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6C [16:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:52:35]wFMCommunicate OK [16:52:35]CreateOFDProtocolMessage done [16:52:35]OFDSenderStorePacket 139797 [16:52:35]StoreOFDPacket docnum=139797 [16:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 66 75 07 01 55 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 D2 C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 22 02 00 35 04 06 00 EF B2 74 CB B1 F8 69 40 5C C1 13 69 4A A3 [16:52:35]CheckFolder [16:52:35]dirname=/storage/ofd_packets [16:52:35]CheckFolder done [16:52:35]ProducePacketName [16:52:35]name=ofd_packets/00139797 [16:52:35]NVStorageSaveData ofd_packets/00139797 [16:52:35]File name is /storage/ofd_packets/00139797 [16:52:35]Write 301 bytes [16:52:35]NVStorageSaveData done [16:52:35]OFDSenderStorePacket done [16:52:35]KKMCreateOFDPacket done [16:52:35]NVStorageSaveData kkm_last_timestamp [16:52:35]File name is /storage/kkm_last_timestamp [16:52:35]Write 4 bytes [16:52:35]NVStorageSaveData done [16:52:35]ExternCall_PrintAddStr [16:52:35]wPrintStart [16:52:35]Write to MH i2c: 01 00 00 90 0C 9C [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 90 0C 00 00 00 00 00 FF 0F B1 [16:52:35]RasterBufferAndPrint [16:52:35]line Счет N : (1)593645 [16:52:35]line ИНН: 02508201610067 [16:52:35]line Контрольно-Кассовый Чек [16:52:35]line ПРОДАЖА [16:52:35]line ТРК (МРК, ГНК) : 62 [16:52:35]line Товар: 2710124130 [16:52:35]line Аи-92-К-5 [16:52:35]line 5.900 * 67.80 [16:52:35]line = 400.02 [16:52:35]line НДС 12% НСП 1% [16:52:35]line > о реализуемом товаре [16:52:35]line ОКРУГЛЕНИЕ: -0.02 [16:52:35]line ИТОГО: 400.00 [16:52:35]line Внесено: 400.00 [16:52:35]line СДАЧА: 0.00 [16:52:35]line НСП 1% : 3.54 [16:52:35]line НДС 12% : 42.48 [16:52:35]line Наличными: 400.00 [16:52:35]line Безнал.: 0.00 [16:52:35]line Место: АЗС № 136 "Партнер Нефть" [16:52:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:52:35]line СНО: Общий режим [16:52:35]line Чек 269 20.08.2024 16:52 [16:52:35]line Смена: 453 ФФД: 1.0 [16:52:35]line ЗНМ: 0300000067 [16:52:35]line РНМ: 0000000000092569 [16:52:35]line Версия ККМ: 001 [16:52:35]line ФМ: 0000000000871776 [16:52:35]line ФД: 139797 [16:52:35]line ФПД: 263549742723576 [16:52:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165234&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139797&fm=263549742723576&tin=02508201610067®Number=0000000000092569&sum=40000 [16:52:35]written 0, free lines is 4095 [16:52:35]OFD Sender: Processing packet 139797 [packets to send 137, broken 136] [16:52:35]ProducePacketName [16:52:35]name=ofd_packets/00139797 [16:52:35]OFD Sender: To server: pG, [16:52:35]CommunicateWithHost lk.salyk.kg:30040 [16:52:35]ConnectInit lk.salyk.kg [16:52:36]Connected sock=10 [16:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 66 75 07 01 55 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 D2 C9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 22 02 00 35 04 06 00 EF B2 74 CB B1 F8 69 40 5C C1 13 69 4A A3 [16:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B7 D6 47 00 84 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 22 02 00 F4 03 04 00 65 70 C4 66 B6 04 01 00 00 7F DC 39 09 6B 8B 44 77 [16:52:36]CommunicateWithHost err = 0 [16:52:36]CheckOFDResponse [16:52:36]1017 (14) - 77093643461234 [16:52:36]1041 (16) - 0000000000871776 [16:52:36]1040 (4) - 139797 [16:52:36]1012 (4) - 20.08.2024 10:31 [16:52:36]1206 (1) - 0 [16:52:36]OFD Sender: Remove packet 139797 [16:52:36]ProducePacketName [16:52:36]name=ofd_packets/00139797 [16:52:36]NVStorageDeleteData [16:52:36]Write to MH i2c: 01 00 00 BB 0C C7 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: 01 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: 01 07 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: 01 07 00 BB 0C 00 00 00 00 00 E9 0C C3 [16:52:36]RasterBufferAndPrint [16:52:36]line [16:52:36]line [16:52:36]line [16:52:36]line [16:52:36]line [16:52:36]written 0, free lines is 3311 [16:52:36]MH_Cut [16:52:36]Write to MH i2c: D1 01 00 C2 0C 01 A0 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: D1 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: D1 01 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: D1 01 00 C2 0C 00 9F [16:52:36]Write to MH i2c: 01 00 00 C3 0C CF [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]OFD Sender: No OFD packet to send [16:52:37]*** Cut start [16:52:37]*** Partial cut [16:52:37]*** CUTSNS_PIN = 1 [16:52:37]*** CUTSNS_PIN = 0 [16:52:37]*** Brake cut motor [16:52:37]Read from MH i2c: 01 [16:52:37]MH_I2C_Read... [16:52:37]*** Stop cut motor [16:52:37]*** Cut end [16:52:37]Read from MH i2c: 01 07 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: 01 07 00 C3 0C 00 00 00 00 00 FF 0F E4 [16:52:37]process_action close_receipt done [16:52:37]requested_data is exist [16:52:37]produce_requested_data [16:52:37]requested_item fm.sn is exist - process it [16:52:37]wFMCommunicate request_size=4 [16:52:37]MH_SAM_APDU [16:52:37]CAPDU: 80 11 00 00 [16:52:37]Write to MH i2c: E2 08 00 C4 0C 80 11 00 00 00 00 00 00 4A [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:37]Read from MH i2c: E2 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 17 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 17 00 C4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [16:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:52:37]wFMCommunicate OK [16:52:37]requested_item fd.num is exist - process it [16:52:37]SAM_PROTO_GetFieldsCounters [16:52:37]wFMCommunicate request_size=4 [16:52:37]MH_SAM_APDU [16:52:37]CAPDU: 80 13 00 00 [16:52:37]Write to MH i2c: E2 08 00 C5 0C 80 13 00 00 00 00 00 00 4D [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:37]Read from MH i2c: E2 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 62 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 62 00 C5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 22 02 00 0E 04 04 00 C5 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 A1 [16:52:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 22 02 00 0E 04 04 00 C5 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 [16:52:37]wFMCommunicate OK [16:52:37]SAM_PROTO_GetFieldsCounters done [16:52:37]requested_item shift.num is exist - process it [16:52:37]requested_item shift.opened is exist - process it [16:52:37]req_shift_opened [16:52:37]FM_GetShiftState [16:52:37]SAM_PROTO_GetShiftState [16:52:37]wFMCommunicate request_size=4 [16:52:37]MH_SAM_APDU [16:52:37]CAPDU: 80 13 01 00 [16:52:37]Write to MH i2c: E2 08 00 C6 0C 80 13 01 00 00 00 00 00 4F [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:37]Read from MH i2c: E2 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 0E 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 0E 00 C6 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E0 [16:52:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:52:37]wFMCommunicate OK [16:52:37]SAM_PROTO_GetShiftState done [16:52:37]FM_GetShiftState done [16:52:37]req_shift_opened done [16:52:37]requested_item shift.open_date is exist - process it [16:52:37]req_shift_open_date [16:52:37]req_shift_open_date done [16:52:37]produce_requested_data done [16:52:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139797,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:52:37]process_action_free close_receipt [16:52:37]json_value_free [16:52:37]json_value_free done [16:52:37]process_json_proto returns [16:52:37]Send response to host [16:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139797,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:52:37]free response buf [16:52:37]execute_script done [16:52:37]execute_script returns [16:52:37]free content buf [16:52:37]Sock 8.Close socket [16:52:37]Sock 8.Thread stoped [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:14]accept exits with 9 [16:54:14]New connection [16:54:14]New thread 3066649956 created [16:54:14]Thread 3066793316 joined [16:54:14]Waiting for new connection... [16:54:14] Sock 9.Parse request [16:54:14]Sock 9.Check first char [16:54:14]Sock 9.First char is OK [16:54:14]request: POST /json_proto HTTP/1.0 [16:54:14]Method: POST [16:54:14]URL: /json_proto [16:54:14]Method is POST - this is cgi request [16:54:14]url: /json_proto [16:54:14]query_string will be loaded in cgi processing [16:54:14]execute_cgi json_proto POST (null) [16:54:14]execute_cgi path=json_proto method=POST [16:54:14]POST find Content-Length [16:54:14]Host: 172.17.45.67:8080 [16:54:14]Content-Length: 677 [16:54:14]Content-Type: application/json [16:54:14] [16:54:14]POST finish read [16:54:14]Found Content-Length = 677 [16:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:14]execute_script... [16:54: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)593646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:14]POST & json_proto [16:54:14]process_json_proto [16:54:14]json parsed OK: [16:54:14]protocol is kg_v1.0 [16:54:14]action value=close_receipt [16:54:14]process_action close_receipt [16:54:14]cmd_close_receipt [16:54:14]MH_GetDate [16:54:14]Write to MH i2c: F0 00 00 C7 0C C2 [16:54:14]Write i2c OK [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: F0 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: F0 09 00 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: F0 09 00 C7 0C 00 36 CA C4 66 5F 7F 2B 66 64 [16:54:14]GetLastDocTimeStamp 1724172754 [16:54:14]current date 1724172854 [16:54:14]FM_GetShiftState [16:54:14]SAM_PROTO_GetShiftState [16:54:14]wFMCommunicate request_size=4 [16:54:14]MH_SAM_APDU [16:54:14]CAPDU: 80 13 01 00 [16:54:14]Write to MH i2c: E2 08 00 C8 0C 80 13 01 00 00 00 00 00 51 [16:54:14]Write i2c OK [16:54:14]MH_I2C_Read... [16:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:14]Read from MH i2c: E2 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 0E 00 [16:54:14]MH_I2C_Read... [16:54:14]Read from MH i2c: E2 0E 00 C8 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E2 [16:54:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:54:14]wFMCommunicate OK [16:54:14]SAM_PROTO_GetShiftState done [16:54:14]FM_GetShiftState done [16:54:14]opened in 1724113785 [16:54:14]opened+sec_in_day 1724200185 [16:54:14]quantity*price = 50010 [16:54:14]sum+1 = 50012 [16:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 270 20.08.2024 16:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139798 ФПД: 197425963460143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165414&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139798&fm=197425963460143&tin=02508201610067®Number=0000000000092569&sum=50000 [16:54:15]StoreToDocumentArchive [16:54:15]shift 453 fd 139798 [16:54:15]save to /storage/0453/doc_00139798 [16:54:15]save last doc name /storage/0453/doc_00139798 to /storage/kkm_last_doc_name [16:54:15]save OK [16:54:15]Clear old archive folders... [16:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:15]tlvbuf is 00D2C720 [16:54:15]SAM_PROTO_ClearQueue [16:54:15]wFMCommunicate request_size=4 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 09 00 00 [16:54:15]Write to MH i2c: E2 08 00 D5 0C 80 09 00 00 00 00 00 00 53 [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:15]Read from MH i2c: E2 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 D5 0C 00 90 00 55 [16:54:15]RAPDU: 90 00 [16:54:15]wFMCommunicate OK [16:54:15]SAM_PROTO_ClearQueue done [16:54:15]KKMCreateOFDPacket [16:54:15]OFDProtocolAddRootSTLVToBuf [16:54:15]FM_MakeSignedData [16:54:15]FM_MakeSignedData [16:54:15]SAM_PROTO_SignData [16:54:15]wFMCommunicate request_size=4 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 0D 01 02 [16:54:15]Write to MH i2c: E2 08 00 D6 0C 80 0D 01 02 00 00 00 00 5B [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:15]Read from MH i2c: E2 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 D6 0C 00 90 00 56 [16:54:15]RAPDU: 90 00 [16:54:15]wFMCommunicate OK [16:54:15]wFMCommunicate request_size=255 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 0E 01 00 00 F4 03 04 00 36 CA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 22 02 00 35 04 06 00 B3 [16:54:15]Write to MH i2c: E2 02 01 D7 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 36 CA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 22 02 00 35 04 06 00 B3 00 00 B8 [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:15]Read from MH i2c: E2 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 D7 0C 00 90 00 57 [16:54:15]RAPDU: 90 00 [16:54:15]wFMCommunicate OK [16:54:15]wFMCommunicate request_size=10 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 0D 02 02 05 8E D0 6B E6 2F [16:54:15]Write to MH i2c: E2 0D 00 D8 0C 80 0D 02 02 05 00 8E D0 6B E6 2F 00 00 46 [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:15]Read from MH i2c: E2 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 03 00 D8 0C 00 90 00 58 [16:54:15]RAPDU: 90 00 [16:54:15]wFMCommunicate OK [16:54:15]wFMCommunicate request_size=4 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 0D 03 02 [16:54:15]Write to MH i2c: E2 08 00 D9 0C 80 0D 03 02 00 00 00 00 60 [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:15]Read from MH i2c: E2 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 0B 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 0B 00 D9 0C 00 9B E3 D7 C1 24 6B EE A8 90 00 9C [16:54:15]RAPDU: 9B E3 D7 C1 24 6B EE A8 90 00 [16:54:15]wFMCommunicate OK [16:54:15]SAM_PROTO_SignData done [16:54:15]FM_MakeSignedData done [16:54:15]CreateOFDProtocolMessage [16:54:15]wFMCommunicate request_size=4 [16:54:15]MH_SAM_APDU [16:54:15]CAPDU: 80 11 00 00 [16:54:15]Write to MH i2c: E2 08 00 DA 0C 80 11 00 00 00 00 00 00 60 [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:15]Read from MH i2c: E2 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 17 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: E2 17 00 DA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B7 [16:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:54:15]wFMCommunicate OK [16:54:15]CreateOFDProtocolMessage done [16:54:15]OFDSenderStorePacket 139798 [16:54:15]StoreOFDPacket docnum=139798 [16:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 45 ED 07 01 A4 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 36 CA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 22 02 00 35 04 06 00 B3 8E D0 6B E6 2F 9B E3 D7 C1 24 6B EE A8 [16:54:15]CheckFolder [16:54:15]dirname=/storage/ofd_packets [16:54:15]CheckFolder done [16:54:15]ProducePacketName [16:54:15]name=ofd_packets/00139798 [16:54:15]NVStorageSaveData ofd_packets/00139798 [16:54:15]File name is /storage/ofd_packets/00139798 [16:54:15]Write 301 bytes [16:54:15]NVStorageSaveData done [16:54:15]OFDSenderStorePacket done [16:54:15]KKMCreateOFDPacket done [16:54:15]NVStorageSaveData kkm_last_timestamp [16:54:15]File name is /storage/kkm_last_timestamp [16:54:15]Write 4 bytes [16:54:15]NVStorageSaveData done [16:54:15]ExternCall_PrintAddStr [16:54:15]wPrintStart [16:54:15]Write to MH i2c: 01 00 00 DB 0C E7 [16:54:15]Write i2c OK [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: 01 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: 01 07 00 [16:54:15]MH_I2C_Read... [16:54:15]Read from MH i2c: 01 07 00 DB 0C 00 00 00 00 00 FF 0F FC [16:54:15]RasterBufferAndPrint [16:54:15]line Счет N : (1)593646 [16:54:15]line ИНН: 02508201610067 [16:54:15]line Контрольно-Кассовый Чек [16:54:15]line ПРОДАЖА [16:54:15]line ТРК (МРК, ГНК) : 51 [16:54:15]line Товар: 2710124500 [16:54:15]line Аи-95-К-5 [16:54:15]line 6.740 * 74.20 [16:54:15]line = 500.11 [16:54:15]line НДС 12% НСП 1% [16:54:15]line > о реализуемом товаре [16:54:15]line ОКРУГЛЕНИЕ: -0.11 [16:54:15]line ИТОГО: 500.00 [16:54:15]line Внесено: 500.00 [16:54:15]line СДАЧА: 0.00 [16:54:15]line НСП 1% : 4.43 [16:54:15]line НДС 12% : 53.11 [16:54:15]line Наличными: 500.00 [16:54:15]line Безнал.: 0.00 [16:54:15]line Место: АЗС № 136 "Партнер Нефть" [16:54:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:54:15]line СНО: Общий режим [16:54:15]line Чек 270 20.08.2024 16:54 [16:54:15]line Смена: 453 ФФД: 1.0 [16:54:15]line ЗНМ: 0300000067 [16:54:15]line РНМ: 0000000000092569 [16:54:15]line Версия ККМ: 001 [16:54:15]line ФМ: 0000000000871776 [16:54:15]line ФД: 139798 [16:54:15]line ФПД: 197425963460143 [16:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165414&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139798&fm=197425963460143&tin=02508201610067®Number=0000000000092569&sum=50000 [16:54:16]written 0, free lines is 4095 [16:54:16]OFD Sender: Processing packet 139798 [packets to send 137, broken 136] [16:54:16]ProducePacketName [16:54:16]name=ofd_packets/00139798 [16:54:16]OFD Sender: To server: pG, [16:54:16]CommunicateWithHost lk.salyk.kg:30040 [16:54:16]ConnectInit lk.salyk.kg [16:54:16]Connected sock=10 [16:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 45 ED 07 01 A4 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 36 CA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 22 02 00 35 04 06 00 B3 8E D0 6B E6 2F 9B E3 D7 C1 24 6B EE A8 [16:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 91 09 47 00 58 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 22 02 00 F4 03 04 00 C9 70 C4 66 B6 04 01 00 00 09 89 8D 21 3A C1 C5 A1 [16:54:16]CommunicateWithHost err = 0 [16:54:16]CheckOFDResponse [16:54:16]1017 (14) - 77093643461234 [16:54:16]1041 (16) - 0000000000871776 [16:54:16]1040 (4) - 139798 [16:54:16]1012 (4) - 20.08.2024 10:32 [16:54:16]1206 (1) - 0 [16:54:16]OFD Sender: Remove packet 139798 [16:54:16]ProducePacketName [16:54:16]name=ofd_packets/00139798 [16:54:16]NVStorageDeleteData [16:54:16]Write to MH i2c: 01 00 00 06 0D 13 [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 07 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: 01 07 00 06 0D 00 00 00 00 00 DA 0C 00 [16:54:16]RasterBufferAndPrint [16:54:16]line [16:54:16]line [16:54:16]line [16:54:16]line [16:54:16]line [16:54:16]written 0, free lines is 3297 [16:54:16]MH_Cut [16:54:16]Write to MH i2c: D1 01 00 0D 0D 01 EC [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: D1 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: D1 01 00 [16:54:16]MH_I2C_Read... [16:54:16]Read from MH i2c: D1 01 00 0D 0D 00 EB [16:54:16]Write to MH i2c: 01 00 00 0E 0D 1B [16:54:16]Write i2c OK [16:54:16]MH_I2C_Read... [16:54:17]OFD Sender: No OFD packet to send [16:54:17]*** Cut start [16:54:17]*** Partial cut [16:54:17]*** CUTSNS_PIN = 1 [16:54:17]*** CUTSNS_PIN = 0 [16:54:17]*** Brake cut motor [16:54:18]Read from MH i2c: 01 [16:54:18]MH_I2C_Read... [16:54:18]*** Stop cut motor [16:54:18]*** Cut end [16:54:18]Read from MH i2c: 01 07 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: 01 07 00 0E 0D 00 00 00 00 00 FF 0F 30 [16:54:18]process_action close_receipt done [16:54:18]requested_data is exist [16:54:18]produce_requested_data [16:54:18]requested_item fm.sn is exist - process it [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 11 00 00 [16:54:18]Write to MH i2c: E2 08 00 0F 0D 80 11 00 00 00 00 00 00 96 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 17 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 17 00 0F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [16:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:54:18]wFMCommunicate OK [16:54:18]requested_item fd.num is exist - process it [16:54:18]SAM_PROTO_GetFieldsCounters [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 13 00 00 [16:54:18]Write to MH i2c: E2 08 00 10 0D 80 13 00 00 00 00 00 00 99 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 62 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 62 00 10 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 22 02 00 0E 04 04 00 C5 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 F1 [16:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 22 02 00 0E 04 04 00 C5 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 [16:54:18]wFMCommunicate OK [16:54:18]SAM_PROTO_GetFieldsCounters done [16:54:18]requested_item shift.num is exist - process it [16:54:18]requested_item shift.opened is exist - process it [16:54:18]req_shift_opened [16:54:18]FM_GetShiftState [16:54:18]SAM_PROTO_GetShiftState [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 13 01 00 [16:54:18]Write to MH i2c: E2 08 00 11 0D 80 13 01 00 00 00 00 00 9B [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 0E 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 0E 00 11 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2C [16:54:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:54:18]wFMCommunicate OK [16:54:18]SAM_PROTO_GetShiftState done [16:54:18]FM_GetShiftState done [16:54:18]req_shift_opened done [16:54:18]requested_item shift.open_date is exist - process it [16:54:18]req_shift_open_date [16:54:18]req_shift_open_date done [16:54:18]produce_requested_data done [16:54:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139798,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:54:18]process_action_free close_receipt [16:54:18]json_value_free [16:54:18]json_value_free done [16:54:18]process_json_proto returns [16:54:18]Send response to host [16:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139798,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:54:18]free response buf [16:54:18]execute_script done [16:54:18]execute_script returns [16:54:18]free content buf [16:54:18]Sock 9.Close socket [16:54:18]Sock 9.Thread stoped [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:35]int [16:54:35]Write to MH i2c: 01 00 00 12 0D 1F [16:54:35]*** FLAG_PRN_KEY set [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 12 0D 00 08 00 00 00 FF 0F 3C [16:54:35]state=0 [16:54:35]Key pressed [16:54:35]Feed [16:54:35]Write to MH i2c: D8 00 00 13 0D F7 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: D8 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: D8 01 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: D8 01 00 13 0D 00 F8 [16:54:35]int [16:54:35]Write to MH i2c: 01 00 00 14 0D 21 [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: 01 07 00 14 0D 00 48 00 00 00 3C 00 AC [16:54:35]state=2 [16:54:35]Key pressed [16:54:36]int [16:54:36]Write to MH i2c: 01 00 00 15 0D 22 [16:54:36]*** FLAG_PRN_KEY reset [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 07 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 F6 0F 2E [16:54:36]state=2 [16:54:36]Stop feed [16:54:36]int [16:54:36]Write to MH i2c: 01 00 00 16 0D 23 [16:54:36]*** FLAG_PRN_KEY set [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 07 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 07 00 16 0D 00 08 00 00 00 FF 0F 40 [16:54:36]state=0 [16:54:36]Key pressed [16:54:36]Feed [16:54:36]Write to MH i2c: D8 00 00 17 0D FB [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: D8 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: D8 01 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: D8 01 00 17 0D 00 FC [16:54:36]int [16:54:36]Write to MH i2c: 01 00 00 18 0D 25 [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 07 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: 01 07 00 18 0D 00 48 00 00 00 3C 00 B0 [16:54:36]state=2 [16:54:36]Key pressed [16:54:37]int [16:54:37]Write to MH i2c: 01 00 00 19 0D 26 [16:54:37]*** FLAG_PRN_KEY reset [16:54:37]Write i2c OK [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: 01 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: 01 07 00 [16:54:37]MH_I2C_Read... [16:54:37]Read from MH i2c: 01 07 00 19 0D 00 00 00 00 00 F5 0F 31 [16:54:37]state=2 [16:54:37]Stop feed [16:54:37]OFD Sender: No OFD packet to send [16:54:38]accept exits with 8 [16:54:38]New connection [16:54:38]New thread 3066793316 created [16:54:38]Thread 3066649956 joined [16:54:38]Waiting for new connection... [16:54:38] Sock 8.Parse request [16:54:38]Sock 8.Check first char [16:54:38]Sock 8.First char is OK [16:54:38]request: POST /json_proto HTTP/1.0 [16:54:38]Method: POST [16:54:38]URL: /json_proto [16:54:38]Method is POST - this is cgi request [16:54:38]url: /json_proto [16:54:38]query_string will be loaded in cgi processing [16:54:38]execute_cgi json_proto POST (null) [16:54:38]execute_cgi path=json_proto method=POST [16:54:38]POST find Content-Length [16:54:38]Host: 172.17.45.67:8080 [16:54:38]Content-Length: 677 [16:54:38]Content-Type: application/json [16:54:38] [16:54:38]POST finish read [16:54:38]Found Content-Length = 677 [16:54:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:38]execute_script... [16:54: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)593647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:38]POST & json_proto [16:54:38]process_json_proto [16:54:38]json parsed OK: [16:54:38]protocol is kg_v1.0 [16:54:38]action value=close_receipt [16:54:38]process_action close_receipt [16:54:38]cmd_close_receipt [16:54:38]MH_GetDate [16:54:38]Write to MH i2c: F0 00 00 1A 0D 16 [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: F0 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: F0 09 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: F0 09 00 1A 0D 00 4F CA C4 66 5F 7F 2B 66 D1 [16:54:38]GetLastDocTimeStamp 1724172854 [16:54:38]current date 1724172879 [16:54:38]FM_GetShiftState [16:54:38]SAM_PROTO_GetShiftState [16:54:38]wFMCommunicate request_size=4 [16:54:38]MH_SAM_APDU [16:54:38]CAPDU: 80 13 01 00 [16:54:38]Write to MH i2c: E2 08 00 1B 0D 80 13 01 00 00 00 00 00 A5 [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:38]Read from MH i2c: E2 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 0E 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 0E 00 1B 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 36 [16:54:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:54:38]wFMCommunicate OK [16:54:38]SAM_PROTO_GetShiftState done [16:54:38]FM_GetShiftState done [16:54:38]opened in 1724113785 [16:54:38]opened+sec_in_day 1724200185 [16:54:38]quantity*price = 60003 [16:54:38]sum+1 = 60004 [16:54:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 271 20.08.2024 16:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139799 ФПД: 70410245388838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165439&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139799&fm=70410245388838&tin=02508201610067®Number=0000000000092569&sum=60000 [16:54:39]StoreToDocumentArchive [16:54:39]shift 453 fd 139799 [16:54:39]save to /storage/0453/doc_00139799 [16:54:39]save last doc name /storage/0453/doc_00139799 to /storage/kkm_last_doc_name [16:54:39]save OK [16:54:39]Clear old archive folders... [16:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:39]tlvbuf is 00D180D0 [16:54:39]SAM_PROTO_ClearQueue [16:54:39]wFMCommunicate request_size=4 [16:54:39]MH_SAM_APDU [16:54:39]CAPDU: 80 09 00 00 [16:54:39]Write to MH i2c: E2 08 00 28 0D 80 09 00 00 00 00 00 00 A7 [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:39]Read from MH i2c: E2 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 03 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 03 00 28 0D 00 90 00 A9 [16:54:39]RAPDU: 90 00 [16:54:39]wFMCommunicate OK [16:54:39]SAM_PROTO_ClearQueue done [16:54:39]KKMCreateOFDPacket [16:54:39]OFDProtocolAddRootSTLVToBuf [16:54:39]FM_MakeSignedData [16:54:39]FM_MakeSignedData [16:54:39]SAM_PROTO_SignData [16:54:39]wFMCommunicate request_size=4 [16:54:39]MH_SAM_APDU [16:54:39]CAPDU: 80 0D 01 02 [16:54:39]Write to MH i2c: E2 08 00 29 0D 80 0D 01 02 00 00 00 00 AF [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:39]Read from MH i2c: E2 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 03 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 03 00 29 0D 00 90 00 AA [16:54:39]RAPDU: 90 00 [16:54:39]wFMCommunicate OK [16:54:39]wFMCommunicate request_size=255 [16:54:39]MH_SAM_APDU [16:54:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 4F CA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 22 02 00 35 04 06 00 40 [16:54:39]Write to MH i2c: E2 02 01 2A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 4F CA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 22 02 00 35 04 06 00 40 00 00 93 [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:39]Read from MH i2c: E2 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 03 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: E2 03 00 2A 0D 00 90 00 AB [16:54:39]RAPDU: 90 00 [16:54:39]wFMCommunicate OK [16:54:39]wFMCommunicate request_size=10 [16:54:39]MH_SAM_APDU [16:54:39]CAPDU: 80 0D 02 02 05 09 A9 AA 3A 26 [16:54:39]Write to MH i2c: E2 0D 00 2B 0D 80 0D 02 02 05 00 09 A9 AA 3A 26 00 00 78 [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:40]Read from MH i2c: E2 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 03 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 03 00 2B 0D 00 90 00 AC [16:54:40]RAPDU: 90 00 [16:54:40]wFMCommunicate OK [16:54:40]wFMCommunicate request_size=4 [16:54:40]MH_SAM_APDU [16:54:40]CAPDU: 80 0D 03 02 [16:54:40]Write to MH i2c: E2 08 00 2C 0D 80 0D 03 02 00 00 00 00 B4 [16:54:40]Write i2c OK [16:54:40]MH_I2C_Read... [16:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:40]Read from MH i2c: E2 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 0B 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 0B 00 2C 0D 00 78 E7 46 1D 08 7D 4E 0B 90 00 55 [16:54:40]RAPDU: 78 E7 46 1D 08 7D 4E 0B 90 00 [16:54:40]wFMCommunicate OK [16:54:40]SAM_PROTO_SignData done [16:54:40]FM_MakeSignedData done [16:54:40]CreateOFDProtocolMessage [16:54:40]wFMCommunicate request_size=4 [16:54:40]MH_SAM_APDU [16:54:40]CAPDU: 80 11 00 00 [16:54:40]Write to MH i2c: E2 08 00 2D 0D 80 11 00 00 00 00 00 00 B4 [16:54:40]Write i2c OK [16:54:40]MH_I2C_Read... [16:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:40]Read from MH i2c: E2 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 17 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 17 00 2D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0B [16:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:54:40]wFMCommunicate OK [16:54:40]CreateOFDProtocolMessage done [16:54:40]OFDSenderStorePacket 139799 [16:54:40]StoreOFDPacket docnum=139799 [16:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 39 A7 07 01 4A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 4F CA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 22 02 00 35 04 06 00 40 09 A9 AA 3A 26 78 E7 46 1D 08 7D 4E 0B [16:54:40]CheckFolder [16:54:40]dirname=/storage/ofd_packets [16:54:40]CheckFolder done [16:54:40]ProducePacketName [16:54:40]name=ofd_packets/00139799 [16:54:40]NVStorageSaveData ofd_packets/00139799 [16:54:40]File name is /storage/ofd_packets/00139799 [16:54:40]Write 301 bytes [16:54:40]NVStorageSaveData done [16:54:40]OFDSenderStorePacket done [16:54:40]KKMCreateOFDPacket done [16:54:40]NVStorageSaveData kkm_last_timestamp [16:54:40]File name is /storage/kkm_last_timestamp [16:54:40]Write 4 bytes [16:54:40]NVStorageSaveData done [16:54:40]ExternCall_PrintAddStr [16:54:40]wPrintStart [16:54:40]Write to MH i2c: 01 00 00 2E 0D 3B [16:54:40]Write i2c OK [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: 01 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: 01 07 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: 01 07 00 2E 0D 00 00 00 00 00 FF 0F 50 [16:54:40]RasterBufferAndPrint [16:54:40]line Счет N : (1)593647 [16:54:40]line ИНН: 02508201610067 [16:54:40]line Контрольно-Кассовый Чек [16:54:40]line ПРОДАЖА [16:54:40]line ТРК (МРК, ГНК) : 32 [16:54:40]line Товар: 2710124130 [16:54:40]line Аи-92-К-5 [16:54:40]line 8.850 * 67.80 [16:54:40]line = 600.03 [16:54:40]line НДС 12% НСП 1% [16:54:40]line > о реализуемом товаре [16:54:40]line ОКРУГЛЕНИЕ: -0.03 [16:54:40]line ИТОГО: 600.00 [16:54:40]line Внесено: 600.00 [16:54:40]line СДАЧА: 0.00 [16:54:40]line НСП 1% : 5.31 [16:54:40]line НДС 12% : 63.72 [16:54:40]line Наличными: 600.00 [16:54:40]line Безнал.: 0.00 [16:54:40]line Место: АЗС № 136 "Партнер Нефть" [16:54:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:54:40]line СНО: Общий режим [16:54:40]line Чек 271 20.08.2024 16:54 [16:54:40]line Смена: 453 ФФД: 1.0 [16:54:40]line ЗНМ: 0300000067 [16:54:40]line РНМ: 0000000000092569 [16:54:40]line Версия ККМ: 001 [16:54:40]line ФМ: 0000000000871776 [16:54:40]line ФД: 139799 [16:54:40]line ФПД: 70410245388838 [16:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T165439&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139799&fm=70410245388838&tin=02508201610067®Number=0000000000092569&sum=60000 [16:54:40]written 0, free lines is 4095 [16:54:40]OFD Sender: Processing packet 139799 [packets to send 137, broken 136] [16:54:40]ProducePacketName [16:54:40]name=ofd_packets/00139799 [16:54:40]OFD Sender: To server: pG, [16:54:40]CommunicateWithHost lk.salyk.kg:30040 [16:54:40]ConnectInit lk.salyk.kg [16:54:40]Write to MH i2c: 01 00 00 59 0D 66 [16:54:40]Write i2c OK [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: 01 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: 01 07 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: 01 07 00 59 0D 00 00 00 00 00 DD 0C 56 [16:54:40]RasterBufferAndPrint [16:54:40]line [16:54:40]line [16:54:40]line [16:54:40]line [16:54:40]line [16:54:40]written 0, free lines is 3299 [16:54:40]MH_Cut [16:54:40]Write to MH i2c: D1 01 00 60 0D 01 3F [16:54:40]Write i2c OK [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: D1 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: D1 01 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: D1 01 00 60 0D 00 3E [16:54:40]Write to MH i2c: 01 00 00 61 0D 6E [16:54:40]Write i2c OK [16:54:40]MH_I2C_Read... [16:54:40]Connected sock=10 [16:54:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 39 A7 07 01 4A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 4F CA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 22 02 00 35 04 06 00 40 09 A9 AA 3A 26 78 E7 46 1D 08 7D 4E 0B [16:54:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B0 F9 47 00 4E 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 22 02 00 F4 03 04 00 E1 70 C4 66 B6 04 01 00 00 35 2F 47 A7 EB CE 15 7B [16:54:40]CommunicateWithHost err = 0 [16:54:40]CheckOFDResponse [16:54:40]1017 (14) - 77093643461234 [16:54:40]1041 (16) - 0000000000871776 [16:54:40]1040 (4) - 139799 [16:54:40]1012 (4) - 20.08.2024 10:33 [16:54:40]1206 (1) - 0 [16:54:40]OFD Sender: Remove packet 139799 [16:54:40]ProducePacketName [16:54:40]name=ofd_packets/00139799 [16:54:40]NVStorageDeleteData [16:54:41]*** Cut start [16:54:41]*** Partial cut [16:54:41]*** CUTSNS_PIN = 1 [16:54:41]*** CUTSNS_PIN = 0 [16:54:41]OFD Sender: No OFD packet to send [16:54:41]*** Brake cut motor [16:54:41]Read from MH i2c: 01 [16:54:41]MH_I2C_Read... [16:54:41]*** Stop cut motor [16:54:41]*** Cut end [16:54:41]Read from MH i2c: 01 07 00 [16:54:41]MH_I2C_Read... [16:54:41]Read from MH i2c: 01 07 00 61 0D 00 00 00 00 00 FF 0F 83 [16:54:41]process_action close_receipt done [16:54:41]requested_data is exist [16:54:41]produce_requested_data [16:54:41]requested_item fm.sn is exist - process it [16:54:41]wFMCommunicate request_size=4 [16:54:41]MH_SAM_APDU [16:54:41]CAPDU: 80 11 00 00 [16:54:41]Write to MH i2c: E2 08 00 62 0D 80 11 00 00 00 00 00 00 E9 [16:54:41]Write i2c OK [16:54:41]MH_I2C_Read... [16:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:41]Read from MH i2c: E2 [16:54:41]MH_I2C_Read... [16:54:41]Read from MH i2c: E2 17 00 [16:54:41]MH_I2C_Read... [16:54:41]Read from MH i2c: E2 17 00 62 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [16:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:54:41]wFMCommunicate OK [16:54:41]requested_item fd.num is exist - process it [16:54:41]SAM_PROTO_GetFieldsCounters [16:54:41]wFMCommunicate request_size=4 [16:54:41]MH_SAM_APDU [16:54:41]CAPDU: 80 13 00 00 [16:54:41]Write to MH i2c: E2 08 00 63 0D 80 13 00 00 00 00 00 00 EC [16:54:41]Write i2c OK [16:54:41]MH_I2C_Read... [16:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:42]Read from MH i2c: E2 [16:54:42]MH_I2C_Read... [16:54:42]Read from MH i2c: E2 62 00 [16:54:42]MH_I2C_Read... [16:54:42]Read from MH i2c: E2 62 00 63 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 22 02 00 0E 04 04 00 C5 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 48 [16:54:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 22 02 00 0E 04 04 00 C5 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 [16:54:42]wFMCommunicate OK [16:54:42]SAM_PROTO_GetFieldsCounters done [16:54:42]requested_item shift.num is exist - process it [16:54:42]requested_item shift.opened is exist - process it [16:54:42]req_shift_opened [16:54:42]FM_GetShiftState [16:54:42]SAM_PROTO_GetShiftState [16:54:42]wFMCommunicate request_size=4 [16:54:42]MH_SAM_APDU [16:54:42]CAPDU: 80 13 01 00 [16:54:42]Write to MH i2c: E2 08 00 64 0D 80 13 01 00 00 00 00 00 EE [16:54:42]Write i2c OK [16:54:42]MH_I2C_Read... [16:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:42]Read from MH i2c: E2 [16:54:42]MH_I2C_Read... [16:54:42]Read from MH i2c: E2 0E 00 [16:54:42]MH_I2C_Read... [16:54:42]Read from MH i2c: E2 0E 00 64 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7F [16:54:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [16:54:42]wFMCommunicate OK [16:54:42]SAM_PROTO_GetShiftState done [16:54:42]FM_GetShiftState done [16:54:42]req_shift_opened done [16:54:42]requested_item shift.open_date is exist - process it [16:54:42]req_shift_open_date [16:54:42]req_shift_open_date done [16:54:42]produce_requested_data done [16:54:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139799,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [16:54:42]process_action_free close_receipt [16:54:42]json_value_free [16:54:42]json_value_free done [16:54:42]process_json_proto returns [16:54:42]Send response to host [16:54:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139799,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [16:54:42]free response buf [16:54:42]execute_script done [16:54:42]execute_script returns [16:54:42]free content buf [16:54:42]Sock 8.Close socket [16:54:42]Sock 8.Thread stoped [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58: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:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [17:48:55]Read from MH i2c: E2 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 17 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 66 [17:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:48:55]wFMCommunicate OK [17:48:55]CreateOFDProtocolMessage done [17:48:55]OFDSenderStorePacket 139828 [17:48:55]StoreOFDPacket docnum=139828 [17:48:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 BB 8D 00 01 37 4B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 05 D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 22 02 00 35 04 06 00 CE 1B 8D 8D F5 C4 6E 1C 05 D2 78 92 55 61 [17:48:55]CheckFolder [17:48:55]dirname=/storage/ofd_packets [17:48:55]CheckFolder done [17:48:55]ProducePacketName [17:48:55]name=ofd_packets/00139828 [17:48:55]NVStorageSaveData ofd_packets/00139828 [17:48:55]File name is /storage/ofd_packets/00139828 [17:48:55]Write 294 bytes [17:48:55]NVStorageSaveData done [17:48:55]OFDSenderStorePacket done [17:48:55]KKMCreateOFDPacket done [17:48:55]NVStorageSaveData kkm_last_timestamp [17:48:55]File name is /storage/kkm_last_timestamp [17:48:55]Write 4 bytes [17:48:55]NVStorageSaveData done [17:48:55]ExternCall_PrintAddStr [17:48:55]wPrintStart [17:48:55]Write to MH i2c: 01 00 00 95 01 96 [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 07 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 07 00 95 01 00 00 00 00 00 FF 0F AB [17:48:55]RasterBufferAndPrint [17:48:55]line Счет N : (1)593679 [17:48:55]line ИНН: 02508201610067 [17:48:55]line Контрольно-Кассовый Чек [17:48:55]line ПРОДАЖА [17:48:55]line ТРК (МРК, ГНК) : 53 [17:48:55]line Товар: 2710124130 [17:48:55]line SU-92 [17:48:55]line 5.090 * 68.80 [17:48:55]line = 350.19 [17:48:55]line НДС 12% НСП 1% [17:48:55]line > о реализуемом товаре [17:48:55]line ОКРУГЛЕНИЕ: -0.19 [17:48:55]line ИТОГО: 350.00 [17:48:55]line Внесено: 350.00 [17:48:55]line СДАЧА: 0.00 [17:48:55]line НСП 1% : 3.10 [17:48:55]line НДС 12% : 37.19 [17:48:55]line Наличными: 350.00 [17:48:55]line Безнал.: 0.00 [17:48:55]line Место: АЗС № 136 "Партнер Нефть" [17:48:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:48:55]line СНО: Общий режим [17:48:55]line Чек 300 20.08.2024 17:48 [17:48:55]line Смена: 453 ФФД: 1.0 [17:48:55]line ЗНМ: 0300000067 [17:48:55]line РНМ: 0000000000092569 [17:48:55]line Версия ККМ: 001 [17:48:55]line ФМ: 0000000000871776 [17:48:55]line ФД: 139828 [17:48:55]OFD Sender: Processing packet 139800 [packets to send 165, broken 136] [17:48:55]ProducePacketName [17:48:55]name=ofd_packets/00139800 [17:48:55]OFD Sender: To server: pG, [17:48:55]CommunicateWithHost lk.salyk.kg:30040 [17:48:55]ConnectInit lk.salyk.kg [17:48:55]line ФПД: 226617734329796 [17:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T174853&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139828&fm=226617734329796&tin=02508201610067®Number=0000000000092569&sum=35000 [17:48:55]written 0, free lines is 4095 [17:48:55]ConnectInit Can't connect to host [17:48:56]Write to MH i2c: 01 00 00 C0 01 C1 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: 01 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: 01 07 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 D9 0C AD [17:48:56]RasterBufferAndPrint [17:48:56]line [17:48:56]line [17:48:56]line [17:48:56]line [17:48:56]line [17:48:56]written 0, free lines is 3330 [17:48:56]MH_Cut [17:48:56]Write to MH i2c: D1 01 00 C7 01 01 9A [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: D1 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: D1 01 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: D1 01 00 C7 01 00 99 [17:48:56]Write to MH i2c: 01 00 00 C8 01 C9 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** Cut start [17:48:56]*** Partial cut [17:48:56]*** CUTSNS_PIN = 1 [17:48:56]*** CUTSNS_PIN = 0 [17:48:56]*** Brake cut motor [17:48:57]Read from MH i2c: 01 [17:48:57]MH_I2C_Read... [17:48:57]*** Stop cut motor [17:48:57]*** Cut end [17:48:57]Read from MH i2c: 01 07 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: 01 07 00 C8 01 00 00 00 00 00 FF 0F DE [17:48:57]process_action close_receipt done [17:48:57]requested_data is exist [17:48:57]produce_requested_data [17:48:57]requested_item fm.sn is exist - process it [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 11 00 00 [17:48:57]Write to MH i2c: E2 08 00 C9 01 80 11 00 00 00 00 00 00 44 [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 17 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 17 00 C9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [17:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:48:57]wFMCommunicate OK [17:48:57]requested_item fd.num is exist - process it [17:48:57]SAM_PROTO_GetFieldsCounters [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 13 00 00 [17:48:57]Write to MH i2c: E2 08 00 CA 01 80 13 00 00 00 00 00 00 47 [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 62 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 62 00 CA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 22 02 00 0E 04 04 00 C5 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 17 [17:48:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 22 02 00 0E 04 04 00 C5 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 [17:48:57]wFMCommunicate OK [17:48:57]SAM_PROTO_GetFieldsCounters done [17:48:57]requested_item shift.num is exist - process it [17:48:57]requested_item shift.opened is exist - process it [17:48:57]req_shift_opened [17:48:57]FM_GetShiftState [17:48:57]SAM_PROTO_GetShiftState [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 13 01 00 [17:48:57]Write to MH i2c: E2 08 00 CB 01 80 13 01 00 00 00 00 00 49 [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 CB 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DA [17:48:57]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:48:57]wFMCommunicate OK [17:48:57]SAM_PROTO_GetShiftState done [17:48:57]FM_GetShiftState done [17:48:57]req_shift_opened done [17:48:57]requested_item shift.open_date is exist - process it [17:48:57]req_shift_open_date [17:48:57]req_shift_open_date done [17:48:57]produce_requested_data done [17:48:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139828,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [17:48:57]process_action_free close_receipt [17:48:57]json_value_free [17:48:57]json_value_free done [17:48:57]process_json_proto returns [17:48:57]Send response to host [17:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139828,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [17:48:57]free response buf [17:48:57]execute_script done [17:48:57]execute_script returns [17:48:57]free content buf [17:48:57]Sock 10.Close socket [17:48:57]Sock 10.Thread stoped [17:49:00]ConnectInit Can't take IP for lk.salyk.kg [17:49:00]CommunicateWithHost connect error [17:49:00]CommunicateWithHost err = -1 [17:49:00]OFD Sender: Server communicate error [17:49:05]OFD Sender: Processing packet 139800 [packets to send 165, broken 136] [17:49:05]ProducePacketName [17:49:05]name=ofd_packets/00139800 [17:49:05]OFD Sender: To server: pG, [17:49:05]CommunicateWithHost lk.salyk.kg:30040 [17:49:05]ConnectInit lk.salyk.kg [17:49:07]accept exits with 12 [17:49:07]New connection [17:49:07]New thread 3067362660 created [17:49:07]Thread 3067219300 joined [17:49:07]Waiting for new connection... [17:49:07] Sock 12.Parse request [17:49:07]Sock 12.Check first char [17:49:07]Sock 12.First char is OK [17:49:07]request: POST /json_proto HTTP/1.0 [17:49:07]Method: POST [17:49:07]URL: /json_proto [17:49:07]Method is POST - this is cgi request [17:49:07]url: /json_proto [17:49:07]query_string will be loaded in cgi processing [17:49:07]execute_cgi json_proto POST (null) [17:49:07]execute_cgi path=json_proto method=POST [17:49:07]POST find Content-Length [17:49:07]Host: 172.17.45.67:8080 [17:49:07]Content-Length: 663 [17:49:07]Content-Type: application/json [17:49:07] [17:49:07]POST finish read [17:49:07]Found Content-Length = 663 [17:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 29.070, "sum" : 2000.02, "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:49:07]execute_script... [17:49: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)593678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 29.070, "sum" : 2000.02, "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:49:07]POST & json_proto [17:49:07]process_json_proto [17:49:07]json parsed OK: [17:49:07]protocol is kg_v1.0 [17:49:07]action value=close_receipt [17:49:07]process_action close_receipt [17:49:07]cmd_close_receipt [17:49:07]MH_GetDate [17:49:07]Write to MH i2c: F0 00 00 CC 01 BC [17:49:07]Write i2c OK [17:49:07]MH_I2C_Read... [17:49:07]Read from MH i2c: F0 [17:49:07]MH_I2C_Read... [17:49:07]Read from MH i2c: F0 09 00 [17:49:07]MH_I2C_Read... [17:49:07]Read from MH i2c: F0 09 00 CC 01 00 14 D7 C4 66 5F 7F 2B 66 49 [17:49:07]GetLastDocTimeStamp 1724176133 [17:49:07]current date 1724176148 [17:49:07]FM_GetShiftState [17:49:07]SAM_PROTO_GetShiftState [17:49:07]wFMCommunicate request_size=4 [17:49:07]MH_SAM_APDU [17:49:07]CAPDU: 80 13 01 00 [17:49:08]Write to MH i2c: E2 08 00 CD 01 80 13 01 00 00 00 00 00 4B [17:49:08]Write i2c OK [17:49:08]MH_I2C_Read... [17:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:08]Read from MH i2c: E2 [17:49:08]MH_I2C_Read... [17:49:08]Read from MH i2c: E2 0E 00 [17:49:08]MH_I2C_Read... [17:49:08]Read from MH i2c: E2 0E 00 CD 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DC [17:49:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:49:08]wFMCommunicate OK [17:49:08]SAM_PROTO_GetShiftState done [17:49:08]FM_GetShiftState done [17:49:08]opened in 1724113785 [17:49:08]opened+sec_in_day 1724200185 [17:49:08]quantity*price = 200001 [17:49:08]sum+1 = 200003 [17:49:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 301 20.08.2024 17:49 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139829 ФПД: 54853804733926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T174908&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139829&fm=54853804733926&tin=02508201610067®Number=0000000000092569&sum=200000 [17:49:09]StoreToDocumentArchive [17:49:09]shift 453 fd 139829 [17:49:09]save to /storage/0453/doc_00139829 [17:49:09]save last doc name /storage/0453/doc_00139829 to /storage/kkm_last_doc_name [17:49:09]save OK [17:49:09]Clear old archive folders... [17:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:49:09]tlvbuf is 0018B110 [17:49:09]SAM_PROTO_ClearQueue [17:49:09]wFMCommunicate request_size=4 [17:49:09]MH_SAM_APDU [17:49:09]CAPDU: 80 09 00 00 [17:49:09]Write to MH i2c: E2 08 00 DA 01 80 09 00 00 00 00 00 00 4D [17:49:09]Write i2c OK [17:49:09]MH_I2C_Read... [17:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:09]Read from MH i2c: E2 [17:49:09]MH_I2C_Read... [17:49:09]Read from MH i2c: E2 03 00 [17:49:09]MH_I2C_Read... [17:49:09]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [17:49:09]RAPDU: 90 00 [17:49:09]wFMCommunicate OK [17:49:09]SAM_PROTO_ClearQueue done [17:49:09]KKMCreateOFDPacket [17:49:09]OFDProtocolAddRootSTLVToBuf [17:49:09]FM_MakeSignedData [17:49:09]FM_MakeSignedData [17:49:09]SAM_PROTO_SignData [17:49:09]wFMCommunicate request_size=4 [17:49:09]MH_SAM_APDU [17:49:09]CAPDU: 80 0D 01 02 [17:49:09]Write to MH i2c: E2 08 00 DB 01 80 0D 01 02 00 00 00 00 55 [17:49:09]Write i2c OK [17:49:09]MH_I2C_Read... [17:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:09]Read from MH i2c: E2 [17:49:09]MH_I2C_Read... [17:49:09]Read from MH i2c: E2 03 00 [17:49:09]MH_I2C_Read... [17:49:09]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [17:49:09]RAPDU: 90 00 [17:49:09]wFMCommunicate OK [17:49:09]wFMCommunicate request_size=253 [17:49:09]MH_SAM_APDU [17:49:09]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 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 F7 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 2D 01 00 00 F4 03 04 00 14 D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 22 02 00 35 04 06 00 31 E3 A5 8B B5 E6 [17:49:09]Write to MH i2c: E2 00 01 DC 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 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 F7 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 2D 01 00 00 F4 03 04 00 14 D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 22 02 00 35 04 06 00 31 E3 A5 8B B5 E6 00 00 7C [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [17:49:10]RAPDU: 90 00 [17:49:10]wFMCommunicate OK [17:49:10]wFMCommunicate request_size=4 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 0D 03 02 [17:49:10]Write to MH i2c: E2 08 00 DD 01 80 0D 03 02 00 00 00 00 59 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 0B 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 0B 00 DD 01 00 66 B5 24 09 E1 D9 10 FE 90 00 6A [17:49:10]RAPDU: 66 B5 24 09 E1 D9 10 FE 90 00 [17:49:10]wFMCommunicate OK [17:49:10]SAM_PROTO_SignData done [17:49:10]FM_MakeSignedData done [17:49:10]CreateOFDProtocolMessage [17:49:10]wFMCommunicate request_size=4 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 11 00 00 [17:49:10]Write to MH i2c: E2 08 00 DE 01 80 11 00 00 00 00 00 00 59 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:10]Read from MH i2c: E2 17 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 17 00 DE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B0 [17:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:49:10]wFMCommunicate OK [17:49:10]CreateOFDProtocolMessage done [17:49:10]OFDSenderStorePacket 139829 [17:49:10]StoreOFDPacket docnum=139829 [17:49:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 E6 8F 00 01 9E 6F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 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 F7 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 2D 01 00 00 F4 03 04 00 14 D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 22 02 00 35 04 06 00 31 E3 A5 8B B5 E6 66 B5 24 09 E1 D9 10 FE [17:49:10]CheckFolder [17:49:10]dirname=/storage/ofd_packets [17:49:10]CheckFolder done [17:49:10]ProducePacketName [17:49:10]name=ofd_packets/00139829 [17:49:10]NVStorageSaveData ofd_packets/00139829 [17:49:10]File name is /storage/ofd_packets/00139829 [17:49:10]Write 294 bytes [17:49:10]NVStorageSaveData done [17:49:10]OFDSenderStorePacket done [17:49:10]KKMCreateOFDPacket done [17:49:10]NVStorageSaveData kkm_last_timestamp [17:49:10]File name is /storage/kkm_last_timestamp [17:49:10]Write 4 bytes [17:49:10]NVStorageSaveData done [17:49:10]ExternCall_PrintAddStr [17:49:10]wPrintStart [17:49:10]Write to MH i2c: 01 00 00 DF 01 E0 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: 01 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: 01 07 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: 01 07 00 DF 01 00 00 00 00 00 FF 0F F5 [17:49:10]RasterBufferAndPrint [17:49:10]line Счет N : (1)593678 [17:49:10]line ИНН: 02508201610067 [17:49:10]line Контрольно-Кассовый Чек [17:49:10]line ПРОДАЖА [17:49:10]line ТРК (МРК, ГНК) : 43 [17:49:10]line Товар: 2710124130 [17:49:10]line SU-92 [17:49:10]line 29.070 * 68.80 [17:49:10]line = 2000.02 [17:49:10]line НДС 12% НСП 1% [17:49:10]line > о реализуемом товаре [17:49:10]line ОКРУГЛЕНИЕ: -0.02 [17:49:10]line ИТОГО: 2000.00 [17:49:10]line Внесено: 2000.00 [17:49:10]line СДАЧА: 0.00 [17:49:10]line НСП 1% : 17.70 [17:49:10]ConnectInit Can't take IP for lk.salyk.kg [17:49:10]line НДС 12% : 212.39 [17:49:10]CommunicateWithHost connect error [17:49:10]line Наличными: 2000.00 [17:49:10]CommunicateWithHost err = -1 [17:49:10]line Безнал.: 0.00 [17:49:10]OFD Sender: Server communicate error [17:49:10]line Место: АЗС № 136 "Партнер Нефть" [17:49:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:49:10]line СНО: Общий режим [17:49:10]line Чек 301 20.08.2024 17:49 [17:49:10]line Смена: 453 ФФД: 1.0 [17:49:10]line ЗНМ: 0300000067 [17:49:10]line РНМ: 0000000000092569 [17:49:10]line Версия ККМ: 001 [17:49:10]line ФМ: 0000000000871776 [17:49:10]line ФД: 139829 [17:49:10]line ФПД: 54853804733926 [17:49:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T174908&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139829&fm=54853804733926&tin=02508201610067®Number=0000000000092569&sum=200000 [17:49:10]written 0, free lines is 4095 [17:49:10]OFD Sender: Processing packet 139800 [packets to send 166, broken 136] [17:49:10]ProducePacketName [17:49:10]name=ofd_packets/00139800 [17:49:10]OFD Sender: To server: pG, [17:49:10]CommunicateWithHost lk.salyk.kg:30040 [17:49:10]ConnectInit lk.salyk.kg [17:49:11]Write to MH i2c: 01 00 00 0A 02 0C [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 E9 0C 08 [17:49:11]RasterBufferAndPrint [17:49:11]line [17:49:11]line [17:49:11]line [17:49:11]line [17:49:11]line [17:49:11]written 0, free lines is 3349 [17:49:11]MH_Cut [17:49:11]Write to MH i2c: D1 01 00 11 02 01 E5 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: D1 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: D1 01 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: D1 01 00 11 02 00 E4 [17:49:11]Write to MH i2c: 01 00 00 12 02 14 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]*** Cut start [17:49:11]*** Partial cut [17:49:11]*** CUTSNS_PIN = 1 [17:49:11]*** CUTSNS_PIN = 0 [17:49:12]*** Brake cut motor [17:49:12]Read from MH i2c: 01 [17:49:12]MH_I2C_Read... [17:49:12]*** Stop cut motor [17:49:12]*** Cut end [17:49:12]Read from MH i2c: 01 07 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: 01 07 00 12 02 00 00 00 00 00 FF 0F 29 [17:49:12]process_action close_receipt done [17:49:12]requested_data is exist [17:49:12]produce_requested_data [17:49:12]requested_item fm.sn is exist - process it [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 11 00 00 [17:49:12]Write to MH i2c: E2 08 00 13 02 80 11 00 00 00 00 00 00 8F [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 17 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 17 00 13 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E6 [17:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:49:12]wFMCommunicate OK [17:49:12]requested_item fd.num is exist - process it [17:49:12]SAM_PROTO_GetFieldsCounters [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 13 00 00 [17:49:12]Write to MH i2c: E2 08 00 14 02 80 13 00 00 00 00 00 00 92 [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 62 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 62 00 14 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 22 02 00 0E 04 04 00 C5 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 66 [17:49:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 22 02 00 0E 04 04 00 C5 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 [17:49:12]wFMCommunicate OK [17:49:12]SAM_PROTO_GetFieldsCounters done [17:49:12]requested_item shift.num is exist - process it [17:49:12]requested_item shift.opened is exist - process it [17:49:12]req_shift_opened [17:49:12]FM_GetShiftState [17:49:12]SAM_PROTO_GetShiftState [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 13 01 00 [17:49:12]Write to MH i2c: E2 08 00 15 02 80 13 01 00 00 00 00 00 94 [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 0E 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 0E 00 15 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 25 [17:49:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:49:12]wFMCommunicate OK [17:49:12]SAM_PROTO_GetShiftState done [17:49:12]FM_GetShiftState done [17:49:12]req_shift_opened done [17:49:12]requested_item shift.open_date is exist - process it [17:49:12]req_shift_open_date [17:49:12]req_shift_open_date done [17:49:12]produce_requested_data done [17:49:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139829,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [17:49:12]process_action_free close_receipt [17:49:12]json_value_free [17:49:12]json_value_free done [17:49:12]process_json_proto returns [17:49:12]Send response to host [17:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139829,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [17:49:12]free response buf [17:49:12]execute_script done [17:49:12]execute_script returns [17:49:12]free content buf [17:49:12]Sock 12.Close socket [17:49:12]Sock 12.Thread stoped [17:49:15]ConnectInit Can't take IP for lk.salyk.kg [17:49:15]CommunicateWithHost connect error [17:49:15]CommunicateWithHost err = -1 [17:49:15]OFD Sender: Server communicate error [17:49:20]OFD Sender: Processing packet 139800 [packets to send 166, broken 136] [17:49:20]ProducePacketName [17:49:20]name=ofd_packets/00139800 [17:49:20]OFD Sender: To server: pG, [17:49:20]CommunicateWithHost lk.salyk.kg:30040 [17:49:20]ConnectInit lk.salyk.kg [17:49:25]ConnectInit Can't take IP for lk.salyk.kg [17:49:25]CommunicateWithHost connect error [17:49:25]CommunicateWithHost err = -1 [17:49:25]OFD Sender: Server communicate error [17:49:30]OFD Sender: Processing packet 139800 [packets to send 166, broken 136] [17:49:30]ProducePacketName [17:49:30]name=ofd_packets/00139800 [17:49:30]OFD Sender: To server: pG, [17:49:30]CommunicateWithHost lk.salyk.kg:30040 [17:49:30]ConnectInit lk.salyk.kg [17:49:35]ConnectInit Can't take IP for lk.salyk.kg [17:49:35]CommunicateWithHost connect error [17:49:35]CommunicateWithHost err = -1 [17:49:35]OFD Sender: Server communicate error [17:49:40]OFD Sender: Processing packet 139800 [packets to send 166, broken 136] [17:49:40]ProducePacketName [17:49:40]name=ofd_packets/00139800 [17:49:40]OFD Sender: To server: pG, [17:49:40]CommunicateWithHost lk.salyk.kg:30040 [17:49:40]ConnectInit lk.salyk.kg [17:49:45]ConnectInit Can't take IP for lk.salyk.kg [17:49:45]CommunicateWithHost connect error [17:49:45]CommunicateWithHost err = -1 [17:49:45]OFD Sender: Server communicate error [17:49:46]accept exits with 11 [17:49:46]New connection [17:49:46]New thread 3067219300 created [17:49:46]Thread 3067362660 joined [17:49:46]Waiting for new connection... [17:49:46] Sock 11.Parse request [17:49:47]Sock 11.Check first char [17:49:47]Sock 11.First char is OK [17:49:47]request: POST /json_proto HTTP/1.0 [17:49:47]Method: POST [17:49:47]URL: /json_proto [17:49:47]Method is POST - this is cgi request [17:49:47]url: /json_proto [17:49:47]query_string will be loaded in cgi processing [17:49:47]execute_cgi json_proto POST (null) [17:49:47]execute_cgi path=json_proto method=POST [17:49:47]POST find Content-Length [17:49:47]Host: 172.17.45.67:8080 [17:49:47]Content-Length: 682 [17:49:47]Content-Type: application/json [17:49:47] [17:49:47]POST finish read [17:49:47]Found Content-Length = 682 [17:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:47]execute_script... [17:49: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)593680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:47]POST & json_proto [17:49:47]process_json_proto [17:49:47]json parsed OK: [17:49:47]protocol is kg_v1.0 [17:49:47]action value=close_receipt [17:49:47]process_action close_receipt [17:49:47]cmd_close_receipt [17:49:47]MH_GetDate [17:49:47]Write to MH i2c: F0 00 00 16 02 07 [17:49:47]Write i2c OK [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: F0 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: F0 09 00 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: F0 09 00 16 02 00 3B D7 C4 66 5F 7F 2B 66 BB [17:49:47]GetLastDocTimeStamp 1724176148 [17:49:47]current date 1724176187 [17:49:47]FM_GetShiftState [17:49:47]SAM_PROTO_GetShiftState [17:49:47]wFMCommunicate request_size=4 [17:49:47]MH_SAM_APDU [17:49:47]CAPDU: 80 13 01 00 [17:49:47]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [17:49:47]Write i2c OK [17:49:47]MH_I2C_Read... [17:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:47]Read from MH i2c: E2 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 0E 00 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 0E 00 17 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 27 [17:49:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:49:47]wFMCommunicate OK [17:49:47]SAM_PROTO_GetShiftState done [17:49:47]FM_GetShiftState done [17:49:47]opened in 1724113785 [17:49:47]opened+sec_in_day 1724200185 [17:49:47]quantity*price = 100021 [17:49:47]sum+1 = 100023 [17:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 302 20.08.2024 17:49 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139830 ФПД: 143527240848350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T174947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139830&fm=143527240848350&tin=02508201610067®Number=0000000000092569&sum=100000 [17:49:48]StoreToDocumentArchive [17:49:48]shift 453 fd 139830 [17:49:48]save to /storage/0453/doc_00139830 [17:49:48]save last doc name /storage/0453/doc_00139830 to /storage/kkm_last_doc_name [17:49:48]save OK [17:49:48]Clear old archive folders... [17:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:48]tlvbuf is 000DC300 [17:49:48]SAM_PROTO_ClearQueue [17:49:48]wFMCommunicate request_size=4 [17:49:48]MH_SAM_APDU [17:49:48]CAPDU: 80 09 00 00 [17:49:48]Write to MH i2c: E2 08 00 24 02 80 09 00 00 00 00 00 00 98 [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:48]Read from MH i2c: E2 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 03 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [17:49:48]RAPDU: 90 00 [17:49:48]wFMCommunicate OK [17:49:48]SAM_PROTO_ClearQueue done [17:49:48]KKMCreateOFDPacket [17:49:48]OFDProtocolAddRootSTLVToBuf [17:49:48]FM_MakeSignedData [17:49:48]FM_MakeSignedData [17:49:48]SAM_PROTO_SignData [17:49:48]wFMCommunicate request_size=4 [17:49:48]MH_SAM_APDU [17:49:48]CAPDU: 80 0D 01 02 [17:49:48]Write to MH i2c: E2 08 00 25 02 80 0D 01 02 00 00 00 00 A0 [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:48]Read from MH i2c: E2 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 03 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [17:49:48]RAPDU: 90 00 [17:49:48]wFMCommunicate OK [17:49:48]wFMCommunicate request_size=255 [17:49:48]MH_SAM_APDU [17:49:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 2E 01 00 00 F4 03 04 00 3B D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 22 02 00 35 04 06 00 82 [17:49:49]Write to MH i2c: E2 02 01 26 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 3B D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 22 02 00 35 04 06 00 82 00 00 63 [17:49:49]Write i2c OK [17:49:49]MH_I2C_Read... [17:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:49]Read from MH i2c: E2 [17:49:49]MH_I2C_Read... [17:49:49]Read from MH i2c: E2 03 00 [17:49:49]MH_I2C_Read... [17:49:49]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [17:49:49]RAPDU: 90 00 [17:49:49]wFMCommunicate OK [17:49:49]wFMCommunicate request_size=10 [17:49:49]MH_SAM_APDU [17:49:49]CAPDU: 80 0D 02 02 05 89 8A 34 D3 DE [17:49:49]Write to MH i2c: E2 0D 00 27 02 80 0D 02 02 05 00 89 8A 34 D3 DE 00 00 A5 [17:49:49]Write i2c OK [17:49:49]MH_I2C_Read... [17:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:49]Read from MH i2c: E2 [17:49:49]MH_I2C_Read... [17:49:49]Read from MH i2c: E2 03 00 [17:49:49]MH_I2C_Read... [17:49:49]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [17:49:49]RAPDU: 90 00 [17:49:49]wFMCommunicate OK [17:49:49]wFMCommunicate request_size=4 [17:49:49]MH_SAM_APDU [17:49:49]CAPDU: 80 0D 03 02 [17:49:49]Write to MH i2c: E2 08 00 28 02 80 0D 03 02 00 00 00 00 A5 [17:49:49]Write i2c OK [17:49:49]MH_I2C_Read... [17:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:49]Read from MH i2c: E2 [17:49:49]MH_I2C_Read... [17:49:49]Read from MH i2c: E2 0B 00 [17:49:49]MH_I2C_Read... [17:49:49]Read from MH i2c: E2 0B 00 28 02 00 70 58 8D 14 45 8C AD B8 90 00 45 [17:49:49]RAPDU: 70 58 8D 14 45 8C AD B8 90 00 [17:49:49]wFMCommunicate OK [17:49:49]SAM_PROTO_SignData done [17:49:49]FM_MakeSignedData done [17:49:49]CreateOFDProtocolMessage [17:49:49]wFMCommunicate request_size=4 [17:49:49]MH_SAM_APDU [17:49:49]CAPDU: 80 11 00 00 [17:49:49]Write to MH i2c: E2 08 00 29 02 80 11 00 00 00 00 00 00 A5 [17:49:49]Write i2c OK [17:49:49]MH_I2C_Read... [17:49:49]Read from MH i2c: E2 [17:49:49]MH_I2C_Read... [17:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:49]Read from MH i2c: E2 17 00 [17:49:49]MH_I2C_Read... [17:49:49]Read from MH i2c: E2 17 00 29 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FC [17:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:49:50]wFMCommunicate OK [17:49:50]CreateOFDProtocolMessage done [17:49:50]OFDSenderStorePacket 139830 [17:49:50]StoreOFDPacket docnum=139830 [17:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 2B 07 01 FD B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 2E 01 00 00 F4 03 04 00 3B D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 22 02 00 35 04 06 00 82 89 8A 34 D3 DE 70 58 8D 14 45 8C AD B8 [17:49:50]CheckFolder [17:49:50]dirname=/storage/ofd_packets [17:49:50]CheckFolder done [17:49:50]ProducePacketName [17:49:50]name=ofd_packets/00139830 [17:49:50]NVStorageSaveData ofd_packets/00139830 [17:49:50]File name is /storage/ofd_packets/00139830 [17:49:50]Write 301 bytes [17:49:50]NVStorageSaveData done [17:49:50]OFDSenderStorePacket done [17:49:50]KKMCreateOFDPacket done [17:49:50]NVStorageSaveData kkm_last_timestamp [17:49:50]File name is /storage/kkm_last_timestamp [17:49:50]Write 4 bytes [17:49:50]NVStorageSaveData done [17:49:50]ExternCall_PrintAddStr [17:49:50]wPrintStart [17:49:50]Write to MH i2c: 01 00 00 2A 02 2C [17:49:50]Write i2c OK [17:49:50]MH_I2C_Read... [17:49:50]Read from MH i2c: 01 [17:49:50]MH_I2C_Read... [17:49:50]Read from MH i2c: 01 07 00 [17:49:50]MH_I2C_Read... [17:49:50]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:49:50]ProducePacketName [17:49:50]name=ofd_packets/00139800 [17:49:50]OFD Sender: To server: pG, [17:49:50]CommunicateWithHost lk.salyk.kg:30040 [17:49:50]ConnectInit lk.salyk.kg [17:49:50]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [17:49:50]RasterBufferAndPrint [17:49:50]line Счет N : (1)593680 [17:49:50]line ИНН: 02508201610067 [17:49:50]line Контрольно-Кассовый Чек [17:49:50]line ПРОДАЖА [17:49:50]line ТРК (МРК, ГНК) : 61 [17:49:50]line Товар: 2710124500 [17:49:50]line Аи-95-К-5 [17:49:50]line 13.480 * 74.20 [17:49:50]line = 1000.22 [17:49:50]line НДС 12% НСП 1% [17:49:50]line > о реализуемом товаре [17:49:50]line ОКРУГЛЕНИЕ: -0.22 [17:49:50]line ИТОГО: 1000.00 [17:49:50]line Внесено: 1000.00 [17:49:50]line СДАЧА: 0.00 [17:49:50]line НСП 1% : 8.85 [17:49:50]line НДС 12% : 106.22 [17:49:50]line Наличными: 1000.00 [17:49:50]line Безнал.: 0.00 [17:49:50]line Место: АЗС № 136 "Партнер Нефть" [17:49:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:49:50]line СНО: Общий режим [17:49:50]line Чек 302 20.08.2024 17:49 [17:49:50]line Смена: 453 ФФД: 1.0 [17:49:50]line ЗНМ: 0300000067 [17:49:50]line РНМ: 0000000000092569 [17:49:50]line Версия ККМ: 001 [17:49:50]line ФМ: 0000000000871776 [17:49:50]line ФД: 139830 [17:49:50]line ФПД: 143527240848350 [17:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T174947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139830&fm=143527240848350&tin=02508201610067®Number=0000000000092569&sum=100000 [17:49:50]written 0, free lines is 4095 [17:49:50]Write to MH i2c: 01 00 00 55 02 57 [17:49:50]Write i2c OK [17:49:50]MH_I2C_Read... [17:49:50]Read from MH i2c: 01 [17:49:50]MH_I2C_Read... [17:49:50]Read from MH i2c: 01 07 00 [17:49:50]MH_I2C_Read... [17:49:50]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 E0 0C 4A [17:49:50]RasterBufferAndPrint [17:49:50]line [17:49:50]line [17:49:50]line [17:49:50]line [17:49:50]line [17:49:50]written 0, free lines is 3347 [17:49:50]MH_Cut [17:49:50]Write to MH i2c: D1 01 00 5C 02 01 30 [17:49:50]Write i2c OK [17:49:50]MH_I2C_Read... [17:49:50]Read from MH i2c: D1 [17:49:50]MH_I2C_Read... [17:49:50]Read from MH i2c: D1 01 00 [17:49:50]MH_I2C_Read... [17:49:50]Read from MH i2c: D1 01 00 5C 02 00 2F [17:49:50]Write to MH i2c: 01 00 00 5D 02 5F [17:49:50]Write i2c OK [17:49:50]MH_I2C_Read... [17:49:51]*** Cut start [17:49:51]*** Partial cut [17:49:51]*** CUTSNS_PIN = 1 [17:49:51]*** CUTSNS_PIN = 0 [17:49:51]*** Brake cut motor [17:49:51]Read from MH i2c: 01 [17:49:51]MH_I2C_Read... [17:49:51]*** Stop cut motor [17:49:51]*** Cut end [17:49:51]Read from MH i2c: 01 07 00 [17:49:51]MH_I2C_Read... [17:49:51]Read from MH i2c: 01 07 00 5D 02 00 00 00 00 00 FF 0F 74 [17:49:51]process_action close_receipt done [17:49:51]requested_data is exist [17:49:51]produce_requested_data [17:49:51]requested_item fm.sn is exist - process it [17:49:51]wFMCommunicate request_size=4 [17:49:51]MH_SAM_APDU [17:49:51]CAPDU: 80 11 00 00 [17:49:51]Write to MH i2c: E2 08 00 5E 02 80 11 00 00 00 00 00 00 DA [17:49:51]Write i2c OK [17:49:51]MH_I2C_Read... [17:49:51]Read from MH i2c: E2 [17:49:51]MH_I2C_Read... [17:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:51]Read from MH i2c: E2 17 00 [17:49:51]MH_I2C_Read... [17:49:51]Read from MH i2c: E2 17 00 5E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 31 [17:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:49:52]wFMCommunicate OK [17:49:52]requested_item fd.num is exist - process it [17:49:52]SAM_PROTO_GetFieldsCounters [17:49:52]wFMCommunicate request_size=4 [17:49:52]MH_SAM_APDU [17:49:52]CAPDU: 80 13 00 00 [17:49:52]Write to MH i2c: E2 08 00 5F 02 80 13 00 00 00 00 00 00 DD [17:49:52]Write i2c OK [17:49:52]MH_I2C_Read... [17:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:52]Read from MH i2c: E2 [17:49:52]MH_I2C_Read... [17:49:52]Read from MH i2c: E2 62 00 [17:49:52]MH_I2C_Read... [17:49:52]Read from MH i2c: E2 62 00 5F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 22 02 00 0E 04 04 00 C5 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 B5 [17:49:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 22 02 00 0E 04 04 00 C5 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 [17:49:52]wFMCommunicate OK [17:49:52]SAM_PROTO_GetFieldsCounters done [17:49:52]requested_item shift.num is exist - process it [17:49:52]requested_item shift.opened is exist - process it [17:49:52]req_shift_opened [17:49:52]FM_GetShiftState [17:49:52]SAM_PROTO_GetShiftState [17:49:52]wFMCommunicate request_size=4 [17:49:52]MH_SAM_APDU [17:49:52]CAPDU: 80 13 01 00 [17:49:52]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [17:49:52]Write i2c OK [17:49:52]MH_I2C_Read... [17:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:52]Read from MH i2c: E2 [17:49:52]MH_I2C_Read... [17:49:52]Read from MH i2c: E2 0E 00 [17:49:52]MH_I2C_Read... [17:49:52]Read from MH i2c: E2 0E 00 60 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 70 [17:49:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:49:52]wFMCommunicate OK [17:49:52]SAM_PROTO_GetShiftState done [17:49:52]FM_GetShiftState done [17:49:52]req_shift_opened done [17:49:52]requested_item shift.open_date is exist - process it [17:49:52]req_shift_open_date [17:49:52]req_shift_open_date done [17:49:52]produce_requested_data done [17:49:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139830,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [17:49:52]process_action_free close_receipt [17:49:52]json_value_free [17:49:52]json_value_free done [17:49:52]process_json_proto returns [17:49:52]Send response to host [17:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139830,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [17:49:52]free response buf [17:49:52]execute_script done [17:49:52]execute_script returns [17:49:52]free content buf [17:49:52]Sock 11.Close socket [17:49:52]Sock 11.Thread stoped [17:49:55]ConnectInit Can't take IP for lk.salyk.kg [17:49:55]CommunicateWithHost connect error [17:49:55]CommunicateWithHost err = -1 [17:49:55]OFD Sender: Server communicate error [17:50:00]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:50:00]ProducePacketName [17:50:00]name=ofd_packets/00139800 [17:50:00]OFD Sender: To server: pG, [17:50:00]CommunicateWithHost lk.salyk.kg:30040 [17:50:00]ConnectInit lk.salyk.kg [17:50:05]ConnectInit Can't take IP for lk.salyk.kg [17:50:05]CommunicateWithHost connect error [17:50:05]CommunicateWithHost err = -1 [17:50:05]OFD Sender: Server communicate error [17:50:10]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:50:10]ProducePacketName [17:50:10]name=ofd_packets/00139800 [17:50:10]OFD Sender: To server: pG, [17:50:10]CommunicateWithHost lk.salyk.kg:30040 [17:50:10]ConnectInit lk.salyk.kg [17:50:15]ConnectInit Can't take IP for lk.salyk.kg [17:50:15]CommunicateWithHost connect error [17:50:15]CommunicateWithHost err = -1 [17:50:15]OFD Sender: Server communicate error [17:50:20]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:50:20]ProducePacketName [17:50:20]name=ofd_packets/00139800 [17:50:20]OFD Sender: To server: pG, [17:50:20]CommunicateWithHost lk.salyk.kg:30040 [17:50:20]ConnectInit lk.salyk.kg [17:50:25]ConnectInit Can't take IP for lk.salyk.kg [17:50:25]CommunicateWithHost connect error [17:50:25]CommunicateWithHost err = -1 [17:50:25]OFD Sender: Server communicate error [17:50:30]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:50:30]ProducePacketName [17:50:30]name=ofd_packets/00139800 [17:50:30]OFD Sender: To server: pG, [17:50:30]CommunicateWithHost lk.salyk.kg:30040 [17:50:30]ConnectInit lk.salyk.kg [17:50:35]ConnectInit Can't take IP for lk.salyk.kg [17:50:35]CommunicateWithHost connect error [17:50:35]CommunicateWithHost err = -1 [17:50:35]OFD Sender: Server communicate error [17:50:40]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:50:40]ProducePacketName [17:50:40]name=ofd_packets/00139800 [17:50:40]OFD Sender: To server: pG, [17:50:40]CommunicateWithHost lk.salyk.kg:30040 [17:50:40]ConnectInit lk.salyk.kg [17:50:45]ConnectInit Can't take IP for lk.salyk.kg [17:50:45]CommunicateWithHost connect error [17:50:45]CommunicateWithHost err = -1 [17:50:45]OFD Sender: Server communicate error [17:50:50]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:50:50]ProducePacketName [17:50:50]name=ofd_packets/00139800 [17:50:50]OFD Sender: To server: pG, [17:50:50]CommunicateWithHost lk.salyk.kg:30040 [17:50:50]ConnectInit lk.salyk.kg [17:50:55]ConnectInit Can't take IP for lk.salyk.kg [17:50:55]CommunicateWithHost connect error [17:50:55]CommunicateWithHost err = -1 [17:50:55]OFD Sender: Server communicate error [17:51:00]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:51:00]ProducePacketName [17:51:00]name=ofd_packets/00139800 [17:51:00]OFD Sender: To server: pG, [17:51:00]CommunicateWithHost lk.salyk.kg:30040 [17:51:00]ConnectInit lk.salyk.kg [17:51:05]ConnectInit Can't take IP for lk.salyk.kg [17:51:05]CommunicateWithHost connect error [17:51:05]CommunicateWithHost err = -1 [17:51:05]OFD Sender: Server communicate error [17:51:10]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:51:10]ProducePacketName [17:51:10]name=ofd_packets/00139800 [17:51:10]OFD Sender: To server: pG, [17:51:10]CommunicateWithHost lk.salyk.kg:30040 [17:51:10]ConnectInit lk.salyk.kg [17:51:14]ConnectInit Can't connect to host [17:51:15]ConnectInit Can't take IP for lk.salyk.kg [17:51:15]CommunicateWithHost connect error [17:51:15]CommunicateWithHost err = -1 [17:51:15]OFD Sender: Server communicate error [17:51:20]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:51:20]ProducePacketName [17:51:20]name=ofd_packets/00139800 [17:51:20]OFD Sender: To server: pG, [17:51:20]CommunicateWithHost lk.salyk.kg:30040 [17:51:20]ConnectInit lk.salyk.kg [17:51:25]ConnectInit Can't take IP for lk.salyk.kg [17:51:25]CommunicateWithHost connect error [17:51:25]CommunicateWithHost err = -1 [17:51:25]OFD Sender: Server communicate error [17:51:30]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:51:30]ProducePacketName [17:51:30]name=ofd_packets/00139800 [17:51:30]OFD Sender: To server: pG, [17:51:30]CommunicateWithHost lk.salyk.kg:30040 [17:51:30]ConnectInit lk.salyk.kg [17:51:35]ConnectInit Can't take IP for lk.salyk.kg [17:51:35]CommunicateWithHost connect error [17:51:35]CommunicateWithHost err = -1 [17:51:35]OFD Sender: Server communicate error [17:51:40]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:51:40]ProducePacketName [17:51:40]name=ofd_packets/00139800 [17:51:40]OFD Sender: To server: pG, [17:51:40]CommunicateWithHost lk.salyk.kg:30040 [17:51:40]ConnectInit lk.salyk.kg [17:51:45]ConnectInit Can't take IP for lk.salyk.kg [17:51:45]CommunicateWithHost connect error [17:51:45]CommunicateWithHost err = -1 [17:51:45]OFD Sender: Server communicate error [17:51:50]OFD Sender: Processing packet 139800 [packets to send 167, broken 136] [17:51:50]ProducePacketName [17:51:50]name=ofd_packets/00139800 [17:51:50]OFD Sender: To server: pG, [17:51:50]CommunicateWithHost lk.salyk.kg:30040 [17:51:50]ConnectInit lk.salyk.kg [17:51:55]ConnectInit Can't take IP for lk.salyk.kg [17:51:55]CommunicateWithHost connect error [17:51:55]CommunicateWithHost err = -1 [17:51:55]OFD Sender: Server communicate error [17:51:58]accept exits with 9 [17:51:58]New connection [17:51:58]New thread 3067362660 created [17:51:58]Thread 3067219300 joined [17:51:58]Waiting for new connection... [17:51:58] Sock 9.Parse request [17:51:58]Sock 9.Check first char [17:51:58]Sock 9.First char is OK [17:51:58]request: POST /json_proto HTTP/1.0 [17:51:58]Method: POST [17:51:58]URL: /json_proto [17:51:58]Method is POST - this is cgi request [17:51:58]url: /json_proto [17:51:58]query_string will be loaded in cgi processing [17:51:58]execute_cgi json_proto POST (null) [17:51:58]execute_cgi path=json_proto method=POST [17:51:58]POST find Content-Length [17:51:58]Host: 172.17.45.67:8080 [17:51:58]Content-Length: 677 [17:51:58]Content-Type: application/json [17:51:58] [17:51:58]POST finish read [17:51:58]Found Content-Length = 677 [17:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:58]execute_script... [17:51: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)593681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:58]POST & json_proto [17:51:58]process_json_proto [17:51:58]json parsed OK: [17:51:58]protocol is kg_v1.0 [17:51:58]action value=close_receipt [17:51:58]process_action close_receipt [17:51:58]cmd_close_receipt [17:51:58]MH_GetDate [17:51:58]Write to MH i2c: F0 00 00 61 02 52 [17:51:58]Write i2c OK [17:51:58]MH_I2C_Read... [17:51:58]Read from MH i2c: F0 [17:51:58]MH_I2C_Read... [17:51:58]Read from MH i2c: F0 09 00 [17:51:58]MH_I2C_Read... [17:51:58]Read from MH i2c: F0 09 00 61 02 00 BE D7 C4 66 5F 7F 2B 66 89 [17:51:58]GetLastDocTimeStamp 1724176187 [17:51:58]current date 1724176318 [17:51:58]FM_GetShiftState [17:51:58]SAM_PROTO_GetShiftState [17:51:58]wFMCommunicate request_size=4 [17:51:58]MH_SAM_APDU [17:51:58]CAPDU: 80 13 01 00 [17:51:58]Write to MH i2c: E2 08 00 62 02 80 13 01 00 00 00 00 00 E1 [17:51:58]Write i2c OK [17:51:58]MH_I2C_Read... [17:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:58]Read from MH i2c: E2 [17:51:58]MH_I2C_Read... [17:51:58]Read from MH i2c: E2 0E 00 [17:51:58]MH_I2C_Read... [17:51:58]Read from MH i2c: E2 0E 00 62 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 72 [17:51:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:51:58]wFMCommunicate OK [17:51:58]SAM_PROTO_GetShiftState done [17:51:58]FM_GetShiftState done [17:51:58]opened in 1724113785 [17:51:58]opened+sec_in_day 1724200185 [17:51:58]quantity*price = 25018 [17:51:58]sum+1 = 25019 [17:51:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 303 20.08.2024 17:51 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139831 ФПД: 244997910223935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T175158&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139831&fm=244997910223935&tin=02508201610067®Number=0000000000092569&sum=25000 [17:52:00]StoreToDocumentArchive [17:52:00]shift 453 fd 139831 [17:52:00]save to /storage/0453/doc_00139831 [17:52:00]save last doc name /storage/0453/doc_00139831 to /storage/kkm_last_doc_name [17:52:00]save OK [17:52:00]Clear old archive folders... [17:52:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:00]tlvbuf is 001B2130 [17:52:00]SAM_PROTO_ClearQueue [17:52:00]wFMCommunicate request_size=4 [17:52:00]MH_SAM_APDU [17:52:00]CAPDU: 80 09 00 00 [17:52:00]Write to MH i2c: E2 08 00 6F 02 80 09 00 00 00 00 00 00 E3 [17:52:00]Write i2c OK [17:52:00]MH_I2C_Read... [17:52:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:00]Read from MH i2c: E2 [17:52:00]MH_I2C_Read... [17:52:00]Read from MH i2c: E2 03 00 [17:52:00]MH_I2C_Read... [17:52:00]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [17:52:00]RAPDU: 90 00 [17:52:00]wFMCommunicate OK [17:52:00]SAM_PROTO_ClearQueue done [17:52:00]KKMCreateOFDPacket [17:52:00]OFDProtocolAddRootSTLVToBuf [17:52:00]FM_MakeSignedData [17:52:00]FM_MakeSignedData [17:52:00]SAM_PROTO_SignData [17:52:00]wFMCommunicate request_size=4 [17:52:00]MH_SAM_APDU [17:52:00]CAPDU: 80 0D 01 02 [17:52:00]Write to MH i2c: E2 08 00 70 02 80 0D 01 02 00 00 00 00 EB [17:52:00]Write i2c OK [17:52:00]MH_I2C_Read... [17:52:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:00]Read from MH i2c: E2 [17:52:00]MH_I2C_Read... [17:52:00]Read from MH i2c: E2 03 00 [17:52:00]MH_I2C_Read... [17:52:00]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [17:52:00]RAPDU: 90 00 [17:52:00]wFMCommunicate OK [17:52:00]wFMCommunicate request_size=255 [17:52:00]MH_SAM_APDU [17:52:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 BE D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 22 02 00 35 04 06 00 DE [17:52:01]Write to MH i2c: E2 02 01 71 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 BE D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 22 02 00 35 04 06 00 DE 00 00 70 [17:52:01]Write i2c OK [17:52:01]MH_I2C_Read... [17:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:01]Read from MH i2c: E2 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: E2 03 00 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [17:52:01]RAPDU: 90 00 [17:52:01]wFMCommunicate OK [17:52:01]wFMCommunicate request_size=10 [17:52:01]MH_SAM_APDU [17:52:01]CAPDU: 80 0D 02 02 05 D3 05 68 DC 3F [17:52:01]Write to MH i2c: E2 0D 00 72 02 80 0D 02 02 05 00 D3 05 68 DC 3F 00 00 53 [17:52:01]Write i2c OK [17:52:01]MH_I2C_Read... [17:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:01]Read from MH i2c: E2 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: E2 03 00 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [17:52:01]RAPDU: 90 00 [17:52:01]wFMCommunicate OK [17:52:01]wFMCommunicate request_size=4 [17:52:01]MH_SAM_APDU [17:52:01]CAPDU: 80 0D 03 02 [17:52:01]Write to MH i2c: E2 08 00 73 02 80 0D 03 02 00 00 00 00 F0 [17:52:01]Write i2c OK [17:52:01]MH_I2C_Read... [17:52:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:01]Read from MH i2c: E2 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: E2 0B 00 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: E2 0B 00 73 02 00 37 7B 70 CA A1 B6 A4 7D 90 00 55 [17:52:01]RAPDU: 37 7B 70 CA A1 B6 A4 7D 90 00 [17:52:01]wFMCommunicate OK [17:52:01]SAM_PROTO_SignData done [17:52:01]FM_MakeSignedData done [17:52:01]CreateOFDProtocolMessage [17:52:01]wFMCommunicate request_size=4 [17:52:01]MH_SAM_APDU [17:52:01]CAPDU: 80 11 00 00 [17:52:01]Write to MH i2c: E2 08 00 74 02 80 11 00 00 00 00 00 00 F0 [17:52:01]Write i2c OK [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: E2 [17:52:01]MH_I2C_Read... [17:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:01]Read from MH i2c: E2 17 00 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: E2 17 00 74 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 47 [17:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:52:01]wFMCommunicate OK [17:52:01]CreateOFDProtocolMessage done [17:52:01]OFDSenderStorePacket 139831 [17:52:01]StoreOFDPacket docnum=139831 [17:52:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5B 42 07 01 19 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 BE D7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 22 02 00 35 04 06 00 DE D3 05 68 DC 3F 37 7B 70 CA A1 B6 A4 7D [17:52:01]CheckFolder [17:52:01]dirname=/storage/ofd_packets [17:52:01]CheckFolder done [17:52:01]ProducePacketName [17:52:01]name=ofd_packets/00139831 [17:52:01]NVStorageSaveData ofd_packets/00139831 [17:52:01]File name is /storage/ofd_packets/00139831 [17:52:01]Write 301 bytes [17:52:01]NVStorageSaveData done [17:52:01]OFDSenderStorePacket done [17:52:01]KKMCreateOFDPacket done [17:52:01]NVStorageSaveData kkm_last_timestamp [17:52:01]File name is /storage/kkm_last_timestamp [17:52:01]Write 4 bytes [17:52:01]NVStorageSaveData done [17:52:01]ExternCall_PrintAddStr [17:52:01]wPrintStart [17:52:01]Write to MH i2c: 01 00 00 75 02 77 [17:52:01]Write i2c OK [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: 01 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: 01 07 00 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 FF 0F 8C [17:52:02]RasterBufferAndPrint [17:52:02]line Счет N : (1)593681 [17:52:02]line ИНН: 02508201610067 [17:52:02]line Контрольно-Кассовый Чек [17:52:02]line ПРОДАЖА [17:52:02]line ТРК (МРК, ГНК) : 32 [17:52:02]line Товар: 2710124130 [17:52:02]line Аи-92-К-5 [17:52:02]line 3.690 * 67.80 [17:52:02]line = 250.18 [17:52:02]line НДС 12% НСП 1% [17:52:02]line > о реализуемом товаре [17:52:02]line ОКРУГЛЕНИЕ: -0.18 [17:52:02]line ИТОГО: 250.00 [17:52:02]line Внесено: 250.00 [17:52:02]line СДАЧА: 0.00 [17:52:02]line НСП 1% : 2.21 [17:52:02]line НДС 12% : 26.57 [17:52:02]line Наличными: 250.00 [17:52:02]line Безнал.: 0.00 [17:52:02]line Место: АЗС № 136 "Партнер Нефть" [17:52:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:52:02]line СНО: Общий режим [17:52:02]line Чек 303 20.08.2024 17:51 [17:52:02]line Смена: 453 ФФД: 1.0 [17:52:02]line ЗНМ: 0300000067 [17:52:02]line РНМ: 0000000000092569 [17:52:02]line Версия ККМ: 001 [17:52:02]line ФМ: 0000000000871776 [17:52:02]line ФД: 139831 [17:52:02]line ФПД: 244997910223935 [17:52:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T175158&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139831&fm=244997910223935&tin=02508201610067®Number=0000000000092569&sum=25000 [17:52:02]written 0, free lines is 4095 [17:52:02]Write to MH i2c: 01 00 00 A0 02 A2 [17:52:02]Write i2c OK [17:52:02]MH_I2C_Read... [17:52:02]Read from MH i2c: 01 [17:52:02]MH_I2C_Read... [17:52:02]Read from MH i2c: 01 07 00 [17:52:02]MH_I2C_Read... [17:52:02]Read from MH i2c: 01 07 00 A0 02 00 00 00 00 00 E3 0C 98 [17:52:02]RasterBufferAndPrint [17:52:02]line [17:52:02]line [17:52:02]line [17:52:02]line [17:52:02]line [17:52:02]written 0, free lines is 3356 [17:52:02]MH_Cut [17:52:02]Write to MH i2c: D1 01 00 A7 02 01 7B [17:52:02]Write i2c OK [17:52:02]MH_I2C_Read... [17:52:02]Read from MH i2c: D1 [17:52:02]MH_I2C_Read... [17:52:02]Read from MH i2c: D1 01 00 [17:52:02]MH_I2C_Read... [17:52:02]Read from MH i2c: D1 01 00 A7 02 00 7A [17:52:02]Write to MH i2c: 01 00 00 A8 02 AA [17:52:02]Write i2c OK [17:52:02]MH_I2C_Read... [17:52:03]*** Cut start [17:52:03]*** Partial cut [17:52:03]*** CUTSNS_PIN = 1 [17:52:03]*** CUTSNS_PIN = 0 [17:52:03]*** Brake cut motor [17:52:03]Read from MH i2c: 01 [17:52:03]MH_I2C_Read... [17:52:03]*** Stop cut motor [17:52:03]*** Cut end [17:52:03]Read from MH i2c: 01 07 00 [17:52:03]MH_I2C_Read... [17:52:03]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 FF 0F BF [17:52:03]process_action close_receipt done [17:52:03]requested_data is exist [17:52:03]produce_requested_data [17:52:03]requested_item fm.sn is exist - process it [17:52:03]wFMCommunicate request_size=4 [17:52:03]MH_SAM_APDU [17:52:03]CAPDU: 80 11 00 00 [17:52:03]Write to MH i2c: E2 08 00 A9 02 80 11 00 00 00 00 00 00 25 [17:52:03]Write i2c OK [17:52:03]MH_I2C_Read... [17:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:03]Read from MH i2c: E2 [17:52:03]MH_I2C_Read... [17:52:03]Read from MH i2c: E2 17 00 [17:52:03]MH_I2C_Read... [17:52:03]Read from MH i2c: E2 17 00 A9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7C [17:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:52:03]wFMCommunicate OK [17:52:03]requested_item fd.num is exist - process it [17:52:03]SAM_PROTO_GetFieldsCounters [17:52:03]wFMCommunicate request_size=4 [17:52:03]MH_SAM_APDU [17:52:03]CAPDU: 80 13 00 00 [17:52:03]Write to MH i2c: E2 08 00 AA 02 80 13 00 00 00 00 00 00 28 [17:52:04]Write i2c OK [17:52:04]MH_I2C_Read... [17:52:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:04]Read from MH i2c: E2 [17:52:04]MH_I2C_Read... [17:52:04]Read from MH i2c: E2 62 00 [17:52:04]MH_I2C_Read... [17:52:04]Read from MH i2c: E2 62 00 AA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 22 02 00 0E 04 04 00 C5 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 04 [17:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 22 02 00 0E 04 04 00 C5 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 [17:52:04]wFMCommunicate OK [17:52:04]SAM_PROTO_GetFieldsCounters done [17:52:04]requested_item shift.num is exist - process it [17:52:04]requested_item shift.opened is exist - process it [17:52:04]req_shift_opened [17:52:04]FM_GetShiftState [17:52:04]SAM_PROTO_GetShiftState [17:52:04]wFMCommunicate request_size=4 [17:52:04]MH_SAM_APDU [17:52:04]CAPDU: 80 13 01 00 [17:52:04]Write to MH i2c: E2 08 00 AB 02 80 13 01 00 00 00 00 00 2A [17:52:04]Write i2c OK [17:52:04]MH_I2C_Read... [17:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:04]Read from MH i2c: E2 [17:52:04]MH_I2C_Read... [17:52:04]Read from MH i2c: E2 0E 00 [17:52:04]MH_I2C_Read... [17:52:04]Read from MH i2c: E2 0E 00 AB 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BB [17:52:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:52:04]wFMCommunicate OK [17:52:04]SAM_PROTO_GetShiftState done [17:52:04]FM_GetShiftState done [17:52:04]req_shift_opened done [17:52:04]requested_item shift.open_date is exist - process it [17:52:04]req_shift_open_date [17:52:04]req_shift_open_date done [17:52:04]produce_requested_data done [17:52:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139831,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [17:52:04]process_action_free close_receipt [17:52:04]json_value_free [17:52:04]json_value_free done [17:52:04]process_json_proto returns [17:52:04]Send response to host [17:52:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139831,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [17:52:04]free response buf [17:52:04]execute_script done [17:52:04]execute_script returns [17:52:04]free content buf [17:52:04]Sock 9.Close socket [17:52:04]Sock 9.Thread stoped [17:52:05]ConnectInit Can't take IP for lk.salyk.kg [17:52:05]CommunicateWithHost connect error [17:52:05]CommunicateWithHost err = -1 [17:52:05]OFD Sender: Server communicate error [17:52:05]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:52:05]ProducePacketName [17:52:05]name=ofd_packets/00139800 [17:52:05]OFD Sender: To server: pG, [17:52:05]CommunicateWithHost lk.salyk.kg:30040 [17:52:05]ConnectInit lk.salyk.kg [17:52:10]ConnectInit Can't take IP for lk.salyk.kg [17:52:10]CommunicateWithHost connect error [17:52:10]CommunicateWithHost err = -1 [17:52:10]OFD Sender: Server communicate error [17:52:15]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:52:15]ProducePacketName [17:52:15]name=ofd_packets/00139800 [17:52:15]OFD Sender: To server: pG, [17:52:15]CommunicateWithHost lk.salyk.kg:30040 [17:52:15]ConnectInit lk.salyk.kg [17:52:20]ConnectInit Can't take IP for lk.salyk.kg [17:52:20]CommunicateWithHost connect error [17:52:20]CommunicateWithHost err = -1 [17:52:20]OFD Sender: Server communicate error [17:52:25]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:52:25]ProducePacketName [17:52:25]name=ofd_packets/00139800 [17:52:25]OFD Sender: To server: pG, [17:52:25]CommunicateWithHost lk.salyk.kg:30040 [17:52:25]ConnectInit lk.salyk.kg [17:52:30]ConnectInit Can't take IP for lk.salyk.kg [17:52:30]CommunicateWithHost connect error [17:52:30]CommunicateWithHost err = -1 [17:52:30]OFD Sender: Server communicate error [17:52:35]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:52:35]ProducePacketName [17:52:35]name=ofd_packets/00139800 [17:52:35]OFD Sender: To server: pG, [17:52:35]CommunicateWithHost lk.salyk.kg:30040 [17:52:35]ConnectInit lk.salyk.kg [17:52:40]ConnectInit Can't take IP for lk.salyk.kg [17:52:40]CommunicateWithHost connect error [17:52:40]CommunicateWithHost err = -1 [17:52:40]OFD Sender: Server communicate error [17:52:45]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:52:45]ProducePacketName [17:52:45]name=ofd_packets/00139800 [17:52:45]OFD Sender: To server: pG, [17:52:45]CommunicateWithHost lk.salyk.kg:30040 [17:52:45]ConnectInit lk.salyk.kg [17:52:50]ConnectInit Can't take IP for lk.salyk.kg [17:52:50]CommunicateWithHost connect error [17:52:50]CommunicateWithHost err = -1 [17:52:50]OFD Sender: Server communicate error [17:52:55]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:52:55]ProducePacketName [17:52:55]name=ofd_packets/00139800 [17:52:55]OFD Sender: To server: pG, [17:52:55]CommunicateWithHost lk.salyk.kg:30040 [17:52:55]ConnectInit lk.salyk.kg [17:53:00]ConnectInit Can't take IP for lk.salyk.kg [17:53:00]CommunicateWithHost connect error [17:53:00]CommunicateWithHost err = -1 [17:53:00]OFD Sender: Server communicate error [17:53:05]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:53:05]ProducePacketName [17:53:05]name=ofd_packets/00139800 [17:53:05]OFD Sender: To server: pG, [17:53:05]CommunicateWithHost lk.salyk.kg:30040 [17:53:05]ConnectInit lk.salyk.kg [17:53:10]ConnectInit Can't take IP for lk.salyk.kg [17:53:10]CommunicateWithHost connect error [17:53:10]CommunicateWithHost err = -1 [17:53:10]OFD Sender: Server communicate error [17:53:15]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:53:15]ProducePacketName [17:53:15]name=ofd_packets/00139800 [17:53:15]OFD Sender: To server: pG, [17:53:15]CommunicateWithHost lk.salyk.kg:30040 [17:53:15]ConnectInit lk.salyk.kg [17:53:20]ConnectInit Can't take IP for lk.salyk.kg [17:53:20]CommunicateWithHost connect error [17:53:20]CommunicateWithHost err = -1 [17:53:20]OFD Sender: Server communicate error [17:53:25]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:53:25]ProducePacketName [17:53:25]name=ofd_packets/00139800 [17:53:25]OFD Sender: To server: pG, [17:53:25]CommunicateWithHost lk.salyk.kg:30040 [17:53:25]ConnectInit lk.salyk.kg [17:53:30]ConnectInit Can't take IP for lk.salyk.kg [17:53:30]CommunicateWithHost connect error [17:53:30]CommunicateWithHost err = -1 [17:53:30]OFD Sender: Server communicate error [17:53:32]ConnectInit Can't connect to host [17:53:35]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:53:35]ProducePacketName [17:53:35]name=ofd_packets/00139800 [17:53:35]OFD Sender: To server: pG, [17:53:35]CommunicateWithHost lk.salyk.kg:30040 [17:53:35]ConnectInit lk.salyk.kg [17:53:40]ConnectInit Can't take IP for lk.salyk.kg [17:53:40]CommunicateWithHost connect error [17:53:40]CommunicateWithHost err = -1 [17:53:40]OFD Sender: Server communicate error [17:53:45]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:53:45]ProducePacketName [17:53:45]name=ofd_packets/00139800 [17:53:45]OFD Sender: To server: pG, [17:53:45]CommunicateWithHost lk.salyk.kg:30040 [17:53:45]ConnectInit lk.salyk.kg [17:53:50]ConnectInit Can't take IP for lk.salyk.kg [17:53:50]CommunicateWithHost connect error [17:53:50]CommunicateWithHost err = -1 [17:53:50]OFD Sender: Server communicate error [17:53:55]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:53:55]ProducePacketName [17:53:55]name=ofd_packets/00139800 [17:53:55]OFD Sender: To server: pG, [17:53:55]CommunicateWithHost lk.salyk.kg:30040 [17:53:55]ConnectInit lk.salyk.kg [17:54:00]ConnectInit Can't take IP for lk.salyk.kg [17:54:00]CommunicateWithHost connect error [17:54:00]CommunicateWithHost err = -1 [17:54:00]OFD Sender: Server communicate error [17:54:05]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:54:05]ProducePacketName [17:54:05]name=ofd_packets/00139800 [17:54:05]OFD Sender: To server: pG, [17:54:05]CommunicateWithHost lk.salyk.kg:30040 [17:54:05]ConnectInit lk.salyk.kg [17:54:10]ConnectInit Can't take IP for lk.salyk.kg [17:54:10]CommunicateWithHost connect error [17:54:10]CommunicateWithHost err = -1 [17:54:10]OFD Sender: Server communicate error [17:54:15]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:54:15]ProducePacketName [17:54:15]name=ofd_packets/00139800 [17:54:15]OFD Sender: To server: pG, [17:54:15]CommunicateWithHost lk.salyk.kg:30040 [17:54:15]ConnectInit lk.salyk.kg [17:54:20]ConnectInit Can't take IP for lk.salyk.kg [17:54:20]CommunicateWithHost connect error [17:54:20]CommunicateWithHost err = -1 [17:54:20]OFD Sender: Server communicate error [17:54:25]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:54:25]ProducePacketName [17:54:25]name=ofd_packets/00139800 [17:54:25]OFD Sender: To server: pG, [17:54:25]CommunicateWithHost lk.salyk.kg:30040 [17:54:25]ConnectInit lk.salyk.kg [17:54:28]int [17:54:28]Write to MH i2c: 01 00 00 AC 02 AE [17:54:28]*** FLAG_PRN_KEY set [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 AC 02 00 08 00 00 00 FF 0F CB [17:54:28]state=0 [17:54:28]Key pressed [17:54:28]Feed [17:54:28]Write to MH i2c: D8 00 00 AD 02 86 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: D8 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: D8 01 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: D8 01 00 AD 02 00 87 [17:54:28]int line is 0 - check status [17:54:28]Write to MH i2c: 01 00 00 AE 02 B0 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 AE 02 00 48 00 00 00 3C 00 3B [17:54:28]state=2 [17:54:28]Key pressed [17:54:28]int [17:54:28]Write to MH i2c: 01 00 00 AF 02 B1 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 [17:54:28]MH_I2C_Read... [17:54:28]*** FLAG_PRN_KEY reset [17:54:28]Read from MH i2c: 01 07 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 AF 02 00 48 00 00 00 3C 00 3C [17:54:28]state=2 [17:54:28]Key pressed [17:54:28]int line is 0 - check status [17:54:28]Write to MH i2c: 01 00 00 B0 02 B2 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 FF 0F C7 [17:54:28]state=2 [17:54:28]Stop feed [17:54:28]int [17:54:28]Write to MH i2c: 01 00 00 B1 02 B3 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 FF 0F C8 [17:54:28]state=0 [17:54:29]int [17:54:29]Write to MH i2c: 01 00 00 B2 02 B4 [17:54:29]*** FLAG_PRN_KEY set [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 07 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 07 00 B2 02 00 08 00 00 00 FF 0F D1 [17:54:29]state=0 [17:54:29]Key pressed [17:54:29]Feed [17:54:29]Write to MH i2c: D8 00 00 B3 02 8C [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: D8 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: D8 01 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: D8 01 00 B3 02 00 8D [17:54:29]int line is 0 - check status [17:54:29]Write to MH i2c: 01 00 00 B4 02 B6 [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 07 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 07 00 B4 02 00 48 00 00 00 3C 00 41 [17:54:29]state=2 [17:54:29]Key pressed [17:54:29]int [17:54:29]Write to MH i2c: 01 00 00 B5 02 B7 [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 07 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 07 00 B5 02 00 48 00 00 00 3C 00 42 [17:54:29]state=2 [17:54:29]Key pressed [17:54:29]int [17:54:29]Write to MH i2c: 01 00 00 B6 02 B8 [17:54:29]*** FLAG_PRN_KEY reset [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 07 00 [17:54:29]MH_I2C_Read... [17:54:29]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [17:54:29]state=2 [17:54:29]Stop feed [17:54:30]ConnectInit Can't take IP for lk.salyk.kg [17:54:30]CommunicateWithHost connect error [17:54:30]CommunicateWithHost err = -1 [17:54:30]OFD Sender: Server communicate error [17:54:35]OFD Sender: Processing packet 139800 [packets to send 168, broken 136] [17:54:35]ProducePacketName [17:54:35]name=ofd_packets/00139800 [17:54:35]OFD Sender: To server: pG, [17:54:35]CommunicateWithHost lk.salyk.kg:30040 [17:54:35]ConnectInit lk.salyk.kg [17:54:37]accept exits with 10 [17:54:37]New connection [17:54:37]New thread 3067219300 created [17:54:37]Thread 3067362660 joined [17:54:37]Waiting for new connection... [17:54:37] Sock 10.Parse request [17:54:37]Sock 10.Check first char [17:54:37]Sock 10.First char is OK [17:54:37]request: POST /json_proto HTTP/1.0 [17:54:37]Method: POST [17:54:37]URL: /json_proto [17:54:37]Method is POST - this is cgi request [17:54:37]url: /json_proto [17:54:37]query_string will be loaded in cgi processing [17:54:37]execute_cgi json_proto POST (null) [17:54:37]execute_cgi path=json_proto method=POST [17:54:37]POST find Content-Length [17:54:37]Host: 172.17.45.67:8080 [17:54:37]Content-Length: 677 [17:54:37]Content-Type: application/json [17:54:37] [17:54:37]POST finish read [17:54:37]Found Content-Length = 677 [17:54:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:37]execute_script... [17:54: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)593682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:37]POST & json_proto [17:54:37]process_json_proto [17:54:37]json parsed OK: [17:54:37]protocol is kg_v1.0 [17:54:37]action value=close_receipt [17:54:37]process_action close_receipt [17:54:37]cmd_close_receipt [17:54:37]MH_GetDate [17:54:37]Write to MH i2c: F0 00 00 B7 02 A8 [17:54:37]Write i2c OK [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: F0 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: F0 09 00 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: F0 09 00 B7 02 00 5D D8 C4 66 5F 7F 2B 66 7F [17:54:37]GetLastDocTimeStamp 1724176318 [17:54:37]current date 1724176477 [17:54:37]FM_GetShiftState [17:54:37]SAM_PROTO_GetShiftState [17:54:37]wFMCommunicate request_size=4 [17:54:37]MH_SAM_APDU [17:54:37]CAPDU: 80 13 01 00 [17:54:37]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [17:54:37]Write i2c OK [17:54:37]MH_I2C_Read... [17:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:37]Read from MH i2c: E2 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: E2 0E 00 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C8 [17:54:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:54:37]wFMCommunicate OK [17:54:37]SAM_PROTO_GetShiftState done [17:54:37]FM_GetShiftState done [17:54:37]opened in 1724113785 [17:54:37]opened+sec_in_day 1724200185 [17:54:37]quantity*price = 20001 [17:54:37]sum+1 = 20002 [17:54:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 304 20.08.2024 17:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139832 ФПД: 220632143665473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T175437&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139832&fm=220632143665473&tin=02508201610067®Number=0000000000092569&sum=20000 [17:54:39]StoreToDocumentArchive [17:54:39]shift 453 fd 139832 [17:54:39]save to /storage/0453/doc_00139832 [17:54:39]save last doc name /storage/0453/doc_00139832 to /storage/kkm_last_doc_name [17:54:39]save OK [17:54:39]Clear old archive folders... [17:54:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:39]tlvbuf is 001F5250 [17:54:39]SAM_PROTO_ClearQueue [17:54:39]wFMCommunicate request_size=4 [17:54:39]MH_SAM_APDU [17:54:39]CAPDU: 80 09 00 00 [17:54:39]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [17:54:39]Write i2c OK [17:54:39]MH_I2C_Read... [17:54:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:39]Read from MH i2c: E2 [17:54:39]MH_I2C_Read... [17:54:39]Read from MH i2c: E2 03 00 [17:54:39]MH_I2C_Read... [17:54:39]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [17:54:39]RAPDU: 90 00 [17:54:39]wFMCommunicate OK [17:54:39]SAM_PROTO_ClearQueue done [17:54:39]KKMCreateOFDPacket [17:54:39]OFDProtocolAddRootSTLVToBuf [17:54:39]FM_MakeSignedData [17:54:39]FM_MakeSignedData [17:54:39]SAM_PROTO_SignData [17:54:39]wFMCommunicate request_size=4 [17:54:39]MH_SAM_APDU [17:54:39]CAPDU: 80 0D 01 02 [17:54:39]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [17:54:39]Write i2c OK [17:54:39]MH_I2C_Read... [17:54:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:39]Read from MH i2c: E2 [17:54:39]MH_I2C_Read... [17:54:39]Read from MH i2c: E2 03 00 [17:54:39]MH_I2C_Read... [17:54:39]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [17:54:39]RAPDU: 90 00 [17:54:39]wFMCommunicate OK [17:54:39]wFMCommunicate request_size=255 [17:54:39]MH_SAM_APDU [17:54:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 5D D8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 22 02 00 35 04 06 00 C8 [17:54:39]Write to MH i2c: E2 02 01 C7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 5D D8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 22 02 00 35 04 06 00 C8 00 00 46 [17:54:40]Write i2c OK [17:54:40]MH_I2C_Read... [17:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:40]Read from MH i2c: E2 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 03 00 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [17:54:40]RAPDU: 90 00 [17:54:40]wFMCommunicate OK [17:54:40]wFMCommunicate request_size=10 [17:54:40]MH_SAM_APDU [17:54:40]CAPDU: 80 0D 02 02 05 A9 EC 8C 99 41 [17:54:40]Write to MH i2c: E2 0D 00 C8 02 80 0D 02 02 05 00 A9 EC 8C 99 41 00 00 49 [17:54:40]Write i2c OK [17:54:40]MH_I2C_Read... [17:54:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:40]Read from MH i2c: E2 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 03 00 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [17:54:40]RAPDU: 90 00 [17:54:40]wFMCommunicate OK [17:54:40]wFMCommunicate request_size=4 [17:54:40]MH_SAM_APDU [17:54:40]CAPDU: 80 0D 03 02 [17:54:40]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [17:54:40]Write i2c OK [17:54:40]MH_I2C_Read... [17:54:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:40]Read from MH i2c: E2 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 0B 00 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 0B 00 C9 02 00 0B AF AE 41 C8 AE 67 98 90 00 65 [17:54:40]RAPDU: 0B AF AE 41 C8 AE 67 98 90 00 [17:54:40]wFMCommunicate OK [17:54:40]SAM_PROTO_SignData done [17:54:40]FM_MakeSignedData done [17:54:40]CreateOFDProtocolMessage [17:54:40]wFMCommunicate request_size=4 [17:54:40]MH_SAM_APDU [17:54:40]CAPDU: 80 11 00 00 [17:54:40]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [17:54:40]Write i2c OK [17:54:40]MH_I2C_Read... [17:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:40]Read from MH i2c: E2 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 17 00 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9D [17:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:54:40]wFMCommunicate OK [17:54:40]CreateOFDProtocolMessage done [17:54:40]OFDSenderStorePacket 139832 [17:54:40]StoreOFDPacket docnum=139832 [17:54:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 67 AF 07 01 EC F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 5D D8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 22 02 00 35 04 06 00 C8 A9 EC 8C 99 41 0B AF AE 41 C8 AE 67 98 [17:54:40]CheckFolder [17:54:40]dirname=/storage/ofd_packets [17:54:40]CheckFolder done [17:54:40]ProducePacketName [17:54:40]name=ofd_packets/00139832 [17:54:40]NVStorageSaveData ofd_packets/00139832 [17:54:40]File name is /storage/ofd_packets/00139832 [17:54:40]Write 301 bytes [17:54:40]NVStorageSaveData done [17:54:40]OFDSenderStorePacket done [17:54:40]KKMCreateOFDPacket done [17:54:40]NVStorageSaveData kkm_last_timestamp [17:54:40]File name is /storage/kkm_last_timestamp [17:54:40]Write 4 bytes [17:54:40]NVStorageSaveData done [17:54:40]ExternCall_PrintAddStr [17:54:40]wPrintStart [17:54:40]Write to MH i2c: 01 00 00 CB 02 CD [17:54:40]Write i2c OK [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: 01 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: 01 07 00 [17:54:40]MH_I2C_Read... [17:54:40]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [17:54:40]RasterBufferAndPrint [17:54:40]line Счет N : (1)593682 [17:54:40]line ИНН: 02508201610067 [17:54:40]line Контрольно-Кассовый Чек [17:54:40]line ПРОДАЖА [17:54:40]line ТРК (МРК, ГНК) : 42 [17:54:40]line Товар: 2710124130 [17:54:40]line Аи-92-К-5 [17:54:40]line 2.950 * 67.80 [17:54:40]line = 200.01 [17:54:40]line НДС 12% НСП 1% [17:54:40]line > о реализуемом товаре [17:54:40]line ОКРУГЛЕНИЕ: -0.01 [17:54:40]line ИТОГО: 200.00 [17:54:40]line Внесено: 200.00 [17:54:40]line СДАЧА: 0.00 [17:54:40]line НСП 1% : 1.77 [17:54:40]line НДС 12% : 21.24 [17:54:40]line Наличными: 200.00 [17:54:40]line Безнал.: 0.00 [17:54:40]line Место: АЗС № 136 "Партнер Нефть" [17:54:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:54:40]line СНО: Общий режим [17:54:40]line Чек 304 20.08.2024 17:54 [17:54:40]line Смена: 453 ФФД: 1.0 [17:54:40]line ЗНМ: 0300000067 [17:54:40]line РНМ: 0000000000092569 [17:54:40]line Версия ККМ: 001 [17:54:40]line ФМ: 0000000000871776 [17:54:40]line ФД: 139832 [17:54:40]line ФПД: 220632143665473 [17:54:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T175437&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139832&fm=220632143665473&tin=02508201610067®Number=0000000000092569&sum=20000 [17:54:40]written 0, free lines is 4095 [17:54:41]ConnectInit Can't take IP for lk.salyk.kg [17:54:41]CommunicateWithHost connect error [17:54:41]CommunicateWithHost err = -1 [17:54:41]OFD Sender: Server communicate error [17:54:41]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:54:41]ProducePacketName [17:54:41]name=ofd_packets/00139800 [17:54:41]OFD Sender: To server: pG, [17:54:41]CommunicateWithHost lk.salyk.kg:30040 [17:54:41]ConnectInit lk.salyk.kg [17:54:41]Write to MH i2c: 01 00 00 F6 02 F8 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: 01 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: 01 07 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: 01 07 00 F6 02 00 00 00 00 00 F8 0C 03 [17:54:41]RasterBufferAndPrint [17:54:41]line [17:54:41]line [17:54:41]line [17:54:41]line [17:54:41]line [17:54:41]written 0, free lines is 3386 [17:54:41]MH_Cut [17:54:41]Write to MH i2c: D1 01 00 FD 02 01 D1 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: D1 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: D1 01 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: D1 01 00 FD 02 00 D0 [17:54:41]Write to MH i2c: 01 00 00 FE 02 00 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:42]*** Cut start [17:54:42]*** Partial cut [17:54:42]*** CUTSNS_PIN = 1 [17:54:42]*** CUTSNS_PIN = 0 [17:54:42]*** Brake cut motor [17:54:42]Read from MH i2c: 01 [17:54:42]MH_I2C_Read... [17:54:42]*** Stop cut motor [17:54:42]Read from MH i2c: 01 07 00 [17:54:42]MH_I2C_Read... [17:54:42]*** Cut end [17:54:42]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [17:54:42]process_action close_receipt done [17:54:42]requested_data is exist [17:54:42]produce_requested_data [17:54:42]requested_item fm.sn is exist - process it [17:54:42]wFMCommunicate request_size=4 [17:54:42]MH_SAM_APDU [17:54:42]CAPDU: 80 11 00 00 [17:54:42]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 17 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [17:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:54:42]wFMCommunicate OK [17:54:42]requested_item fd.num is exist - process it [17:54:42]SAM_PROTO_GetFieldsCounters [17:54:42]wFMCommunicate request_size=4 [17:54:42]MH_SAM_APDU [17:54:42]CAPDU: 80 13 00 00 [17:54:42]Write to MH i2c: E2 08 00 00 03 80 13 00 00 00 00 00 00 7F [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 62 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 62 00 00 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 22 02 00 0E 04 04 00 C5 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 5F [17:54:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 22 02 00 0E 04 04 00 C5 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 [17:54:43]wFMCommunicate OK [17:54:43]SAM_PROTO_GetFieldsCounters done [17:54:43]requested_item shift.num is exist - process it [17:54:43]requested_item shift.opened is exist - process it [17:54:43]req_shift_opened [17:54:43]FM_GetShiftState [17:54:43]SAM_PROTO_GetShiftState [17:54:43]wFMCommunicate request_size=4 [17:54:43]MH_SAM_APDU [17:54:43]CAPDU: 80 13 01 00 [17:54:43]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 03 00 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 03 00 08 03 00 90 00 7F [17:58:39]RAPDU: 90 00 [17:58:39]wFMCommunicate OK [17:58:39]wFMCommunicate request_size=15 [17:58:39]MH_SAM_APDU [17:58:39]CAPDU: 80 15 02 00 0A 07 04 06 00 80 38 01 00 00 00 [17:58:39]Write to MH i2c: E2 12 00 09 03 80 15 02 00 0A 00 07 04 06 00 80 38 01 00 00 00 00 00 6A [17:58:39]Write i2c OK [17:58:39]MH_I2C_Read... [17:58:39]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:58:39]Read from MH i2c: E2 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 03 00 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [17:58:39]RAPDU: 90 00 [17:58:39]wFMCommunicate OK [17:58:39]wFMCommunicate request_size=15 [17:58:39]MH_SAM_APDU [17:58:39]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [17:58:39]Write to MH i2c: E2 12 00 0A 03 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 E4 [17:58:39]Write i2c OK [17:58:39]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [17:58:40]RAPDU: 90 00 [17:58:40]wFMCommunicate OK [17:58:40]wFMCommunicate request_size=11 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [17:58:40]Write to MH i2c: E2 0E 00 0B 03 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 C0 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [17:58:40]RAPDU: 90 00 [17:58:40]wFMCommunicate OK [17:58:40]wFMCommunicate request_size=13 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 15 02 00 08 F4 03 04 00 4F D9 C4 66 [17:58:40]Write to MH i2c: E2 10 00 0C 03 80 15 02 00 08 00 F4 03 04 00 4F D9 C4 66 00 00 EC [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [17:58:40]RAPDU: 90 00 [17:58:40]wFMCommunicate OK [17:58:40]wFMCommunicate request_size=25 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 [17:58:40]Write to MH i2c: E2 1C 00 0D 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 00 00 F8 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [17:58:40]RAPDU: 90 00 [17:58:40]wFMCommunicate OK [17:58:40]wFMCommunicate request_size=4 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 15 03 00 [17:58:40]Write to MH i2c: E2 08 00 0E 03 80 15 03 00 00 00 00 00 92 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 40 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 40 00 0E 03 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 31 01 00 00 35 04 06 00 CD 7C 4F EE B4 CE 90 00 E9 [17:58:40]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 31 01 00 00 35 04 06 00 CD 7C 4F EE B4 CE 90 00 [17:58:40]wFMCommunicate OK [17:58:40]SAM_PROTO_ProcessDocument answer len = 59 [17:58:40]SAM_PROTO_ProcessDocument done [17:58:40]SetTLVBufToDocument [17:58:40]Processing tag 1209 (04B9) [17:58:40]Malloc new data [17:58:40]Processing tag 1041 (0411) [17:58:40]Processing tag 1040 (0410) [17:58:40]Malloc new data [17:58:40]Processing tag 1038 (040E) [17:58:40]Malloc new data [17:58:40]Processing tag 1042 (0412) [17:58:40]Malloc new data [17:58:40]Processing tag 1077 (0435) [17:58:40]Malloc new data [17:58:40]SetTLVBufToDocument err=0 [17:58:40]KKMLoadAndSignReceiptData store KKM data [17:58:40]KKMLoadAndSignReceiptData err=0 [17:58:40]wFMCommunicate request_size=4 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 11 00 00 [17:58:40]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 17 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 17 00 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [17:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:58:41]wFMCommunicate OK [17:58:41]Счет N : (1)593683 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 61 Товар: 2710124500 Аи-95-К-5 10.790 * 74.20 = 800.62 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 305 20.08.2024 17:58 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139833 ФПД: 225933800682702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T175839&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139833&fm=225933800682702&tin=02508201610067®Number=0000000000092569&sum=80000 [17:58:41]StoreToDocumentArchive [17:58:41]shift 453 fd 139833 [17:58:41]save to /storage/0453/doc_00139833 [17:58:41]save last doc name /storage/0453/doc_00139833 to /storage/kkm_last_doc_name [17:58:41]save OK [17:58:41]Clear old archive folders... [17:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:41]tlvbuf is 001C5FD0 [17:58:41]SAM_PROTO_ClearQueue [17:58:41]wFMCommunicate request_size=4 [17:58:41]MH_SAM_APDU [17:58:41]CAPDU: 80 09 00 00 [17:58:41]Write to MH i2c: E2 08 00 10 03 80 09 00 00 00 00 00 00 85 [17:58:41]Write i2c OK [17:58:41]MH_I2C_Read... [17:58:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:41]Read from MH i2c: E2 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 03 00 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [17:58:41]RAPDU: 90 00 [17:58:41]wFMCommunicate OK [17:58:41]SAM_PROTO_ClearQueue done [17:58:41]KKMCreateOFDPacket [17:58:41]OFDProtocolAddRootSTLVToBuf [17:58:41]FM_MakeSignedData [17:58:41]FM_MakeSignedData [17:58:41]SAM_PROTO_SignData [17:58:41]wFMCommunicate request_size=4 [17:58:41]MH_SAM_APDU [17:58:41]CAPDU: 80 0D 01 02 [17:58:41]Write to MH i2c: E2 08 00 11 03 80 0D 01 02 00 00 00 00 8D [17:58:41]Write i2c OK [17:58:41]MH_I2C_Read... [17:58:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:41]Read from MH i2c: E2 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 03 00 [17:58:41]MH_I2C_Read... [17:58:41]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [17:58:41]RAPDU: 90 00 [17:58:41]wFMCommunicate OK [17:58:41]wFMCommunicate request_size=255 [17:58:41]MH_SAM_APDU [17:58:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 31 01 00 00 F4 03 04 00 4F D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 22 02 00 35 04 06 00 CD [17:58:41]Write to MH i2c: E2 02 01 12 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 31 01 00 00 F4 03 04 00 4F D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 22 02 00 35 04 06 00 CD 00 00 07 [17:58:41]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:58:41]ProducePacketName [17:58:41]name=ofd_packets/00139800 [17:58:41]OFD Sender: To server: pG, [17:58:41]CommunicateWithHost lk.salyk.kg:30040 [17:58:41]ConnectInit lk.salyk.kg [17:58:41]Write i2c OK [17:58:41]MH_I2C_Read... [17:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:42]Read from MH i2c: E2 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 03 00 [17:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:43]Read from MH i2c: E2 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 0E 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 12 [17:54:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:54:43]wFMCommunicate OK [17:54:43]SAM_PROTO_GetShiftState done [17:54:43]FM_GetShiftState done [17:54:43]req_shift_opened done [17:54:43]requested_item shift.open_date is exist - process it [17:54:43]req_shift_open_date [17:54:43]req_shift_open_date done [17:54:43]produce_requested_data done [17:54:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139832,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [17:54:43]process_action_free close_receipt [17:54:43]json_value_free [17:54:43]json_value_free done [17:54:43]process_json_proto returns [17:54:43]Send response to host [17:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139832,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [17:54:43]free response buf [17:54:43]execute_script done [17:54:43]execute_script returns [17:54:43]free content buf [17:54:43]Sock 10.Close socket [17:54:43]Sock 10.Thread stoped [17:54:46]ConnectInit Can't take IP for lk.salyk.kg [17:54:46]CommunicateWithHost connect error [17:54:46]CommunicateWithHost err = -1 [17:54:46]OFD Sender: Server communicate error [17:54:51]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:54:51]ProducePacketName [17:54:51]name=ofd_packets/00139800 [17:54:51]OFD Sender: To server: pG, [17:54:51]CommunicateWithHost lk.salyk.kg:30040 [17:54:51]ConnectInit lk.salyk.kg [17:54:56]ConnectInit Can't take IP for lk.salyk.kg [17:54:56]CommunicateWithHost connect error [17:54:56]CommunicateWithHost err = -1 [17:54:56]OFD Sender: Server communicate error [17:55:01]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:55:01]ProducePacketName [17:55:01]name=ofd_packets/00139800 [17:55:01]OFD Sender: To server: pG, [17:55:01]CommunicateWithHost lk.salyk.kg:30040 [17:55:01]ConnectInit lk.salyk.kg [17:55:06]ConnectInit Can't take IP for lk.salyk.kg [17:55:06]CommunicateWithHost connect error [17:55:06]CommunicateWithHost err = -1 [17:55:06]OFD Sender: Server communicate error [17:55:11]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:55:11]ProducePacketName [17:55:11]name=ofd_packets/00139800 [17:55:11]OFD Sender: To server: pG, [17:55:11]CommunicateWithHost lk.salyk.kg:30040 [17:55:11]ConnectInit lk.salyk.kg [17:55:16]ConnectInit Can't take IP for lk.salyk.kg [17:55:16]CommunicateWithHost connect error [17:55:16]CommunicateWithHost err = -1 [17:55:16]OFD Sender: Server communicate error [17:55:21]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:55:21]ProducePacketName [17:55:21]name=ofd_packets/00139800 [17:55:21]OFD Sender: To server: pG, [17:55:21]CommunicateWithHost lk.salyk.kg:30040 [17:55:21]ConnectInit lk.salyk.kg [17:55:26]ConnectInit Can't take IP for lk.salyk.kg [17:55:26]CommunicateWithHost connect error [17:55:26]CommunicateWithHost err = -1 [17:55:26]OFD Sender: Server communicate error [17:55:31]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:55:31]ProducePacketName [17:55:31]name=ofd_packets/00139800 [17:55:31]OFD Sender: To server: pG, [17:55:31]CommunicateWithHost lk.salyk.kg:30040 [17:55:31]ConnectInit lk.salyk.kg [17:55:36]ConnectInit Can't take IP for lk.salyk.kg [17:55:36]CommunicateWithHost connect error [17:55:36]CommunicateWithHost err = -1 [17:55:36]OFD Sender: Server communicate error [17:55:41]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:55:41]ProducePacketName [17:55:41]name=ofd_packets/00139800 [17:55:41]OFD Sender: To server: pG, [17:55:41]CommunicateWithHost lk.salyk.kg:30040 [17:55:41]ConnectInit lk.salyk.kg [17:55:46]ConnectInit Can't take IP for lk.salyk.kg [17:55:46]CommunicateWithHost connect error [17:55:46]CommunicateWithHost err = -1 [17:55:46]OFD Sender: Server communicate error [17:55:50]ConnectInit Can't connect to host [17:55:51]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:55:51]ProducePacketName [17:55:51]name=ofd_packets/00139800 [17:55:51]OFD Sender: To server: pG, [17:55:51]CommunicateWithHost lk.salyk.kg:30040 [17:55:51]ConnectInit lk.salyk.kg [17:55:56]ConnectInit Can't take IP for lk.salyk.kg [17:55:56]CommunicateWithHost connect error [17:55:56]CommunicateWithHost err = -1 [17:55:56]OFD Sender: Server communicate error [17:56:01]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:56:01]ProducePacketName [17:56:01]name=ofd_packets/00139800 [17:56:01]OFD Sender: To server: pG, [17:56:01]CommunicateWithHost lk.salyk.kg:30040 [17:56:01]ConnectInit lk.salyk.kg [17:56:06]ConnectInit Can't take IP for lk.salyk.kg [17:56:06]CommunicateWithHost connect error [17:56:06]CommunicateWithHost err = -1 [17:56:06]OFD Sender: Server communicate error [17:56:11]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:56:11]ProducePacketName [17:56:11]name=ofd_packets/00139800 [17:56:11]OFD Sender: To server: pG, [17:56:11]CommunicateWithHost lk.salyk.kg:30040 [17:56:11]ConnectInit lk.salyk.kg [17:56:16]ConnectInit Can't take IP for lk.salyk.kg [17:56:16]CommunicateWithHost connect error [17:56:16]CommunicateWithHost err = -1 [17:56:16]OFD Sender: Server communicate error [17:56:21]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:56:21]ProducePacketName [17:56:21]name=ofd_packets/00139800 [17:56:21]OFD Sender: To server: pG, [17:56:21]CommunicateWithHost lk.salyk.kg:30040 [17:56:21]ConnectInit lk.salyk.kg [17:56:26]ConnectInit Can't take IP for lk.salyk.kg [17:56:26]CommunicateWithHost connect error [17:56:26]CommunicateWithHost err = -1 [17:56:26]OFD Sender: Server communicate error [17:56:31]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:56:31]ProducePacketName [17:56:31]name=ofd_packets/00139800 [17:56:31]OFD Sender: To server: pG, [17:56:31]CommunicateWithHost lk.salyk.kg:30040 [17:56:31]ConnectInit lk.salyk.kg [17:56:36]ConnectInit Can't take IP for lk.salyk.kg [17:56:36]CommunicateWithHost connect error [17:56:36]CommunicateWithHost err = -1 [17:56:36]OFD Sender: Server communicate error [17:56:41]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:56:41]ProducePacketName [17:56:41]name=ofd_packets/00139800 [17:56:41]OFD Sender: To server: pG, [17:56:41]CommunicateWithHost lk.salyk.kg:30040 [17:56:41]ConnectInit lk.salyk.kg [17:56:46]ConnectInit Can't take IP for lk.salyk.kg [17:56:46]CommunicateWithHost connect error [17:56:46]CommunicateWithHost err = -1 [17:56:46]OFD Sender: Server communicate error [17:56:51]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:56:51]ProducePacketName [17:56:51]name=ofd_packets/00139800 [17:56:51]OFD Sender: To server: pG, [17:56:51]CommunicateWithHost lk.salyk.kg:30040 [17:56:51]ConnectInit lk.salyk.kg [17:56:56]ConnectInit Can't take IP for lk.salyk.kg [17:56:56]CommunicateWithHost connect error [17:56:56]CommunicateWithHost err = -1 [17:56:56]OFD Sender: Server communicate error [17:57:01]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:57:01]ProducePacketName [17:57:01]name=ofd_packets/00139800 [17:57:01]OFD Sender: To server: pG, [17:57:01]CommunicateWithHost lk.salyk.kg:30040 [17:57:01]ConnectInit lk.salyk.kg [17:57:06]ConnectInit Can't take IP for lk.salyk.kg [17:57:06]CommunicateWithHost connect error [17:57:06]CommunicateWithHost err = -1 [17:57:06]OFD Sender: Server communicate error [17:57:11]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:57:11]ProducePacketName [17:57:11]name=ofd_packets/00139800 [17:57:11]OFD Sender: To server: pG, [17:57:11]CommunicateWithHost lk.salyk.kg:30040 [17:57:11]ConnectInit lk.salyk.kg [17:57:16]ConnectInit Can't take IP for lk.salyk.kg [17:57:16]CommunicateWithHost connect error [17:57:16]CommunicateWithHost err = -1 [17:57:16]OFD Sender: Server communicate error [17:57:21]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:57:21]ProducePacketName [17:57:21]name=ofd_packets/00139800 [17:57:21]OFD Sender: To server: pG, [17:57:21]CommunicateWithHost lk.salyk.kg:30040 [17:57:21]ConnectInit lk.salyk.kg [17:57:26]ConnectInit Can't take IP for lk.salyk.kg [17:57:26]CommunicateWithHost connect error [17:57:26]CommunicateWithHost err = -1 [17:57:26]OFD Sender: Server communicate error [17:57:31]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:57:31]ProducePacketName [17:57:31]name=ofd_packets/00139800 [17:57:31]OFD Sender: To server: pG, [17:57:31]CommunicateWithHost lk.salyk.kg:30040 [17:57:31]ConnectInit lk.salyk.kg [17:57:36]ConnectInit Can't take IP for lk.salyk.kg [17:57:36]CommunicateWithHost connect error [17:57:36]CommunicateWithHost err = -1 [17:57:36]OFD Sender: Server communicate error [17:57:41]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:57:41]ProducePacketName [17:57:41]name=ofd_packets/00139800 [17:57:41]OFD Sender: To server: pG, [17:57:41]CommunicateWithHost lk.salyk.kg:30040 [17:57:41]ConnectInit lk.salyk.kg [17:57:46]ConnectInit Can't take IP for lk.salyk.kg [17:57:46]CommunicateWithHost connect error [17:57:46]CommunicateWithHost err = -1 [17:57:46]OFD Sender: Server communicate error [17:57:51]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:57:51]ProducePacketName [17:57:51]name=ofd_packets/00139800 [17:57:51]OFD Sender: To server: pG, [17:57:51]CommunicateWithHost lk.salyk.kg:30040 [17:57:51]ConnectInit lk.salyk.kg [17:57:56]ConnectInit Can't take IP for lk.salyk.kg [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [17:58:42]RAPDU: 90 00 [17:58:42]wFMCommunicate OK [17:58:42]wFMCommunicate request_size=10 [17:58:42]MH_SAM_APDU [17:58:42]CAPDU: 80 0D 02 02 05 7C 4F EE B4 CE [17:58:42]Write to MH i2c: E2 0D 00 13 03 80 0D 02 02 05 00 7C 4F EE B4 CE 00 00 D5 [17:58:42]Write i2c OK [17:58:42]MH_I2C_Read... [17:58:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:42]Read from MH i2c: E2 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 03 00 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [17:58:42]RAPDU: 90 00 [17:58:42]wFMCommunicate OK [17:58:42]wFMCommunicate request_size=4 [17:58:42]MH_SAM_APDU [17:58:42]CAPDU: 80 0D 03 02 [17:58:42]Write to MH i2c: E2 08 00 14 03 80 0D 03 02 00 00 00 00 92 [17:58:42]Write i2c OK [17:58:42]MH_I2C_Read... [17:58:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:42]Read from MH i2c: E2 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 0B 00 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 0B 00 14 03 00 51 7D 80 E6 F5 B8 3C 17 90 00 C7 [17:58:42]RAPDU: 51 7D 80 E6 F5 B8 3C 17 90 00 [17:58:42]wFMCommunicate OK [17:58:42]SAM_PROTO_SignData done [17:58:42]FM_MakeSignedData done [17:58:42]CreateOFDProtocolMessage [17:58:42]wFMCommunicate request_size=4 [17:58:42]MH_SAM_APDU [17:58:42]CAPDU: 80 11 00 00 [17:58:42]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [17:58:42]Write i2c OK [17:58:42]MH_I2C_Read... [17:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:42]Read from MH i2c: E2 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 17 00 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E9 [17:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:58:42]wFMCommunicate OK [17:58:42]CreateOFDProtocolMessage done [17:58:42]OFDSenderStorePacket 139833 [17:58:42]StoreOFDPacket docnum=139833 [17:58:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 51 F6 07 01 1E 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 31 01 00 00 F4 03 04 00 4F D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 22 02 00 35 04 06 00 CD 7C 4F EE B4 CE 51 7D 80 E6 F5 B8 3C 17 [17:58:42]CheckFolder [17:58:42]dirname=/storage/ofd_packets [17:58:42]CheckFolder done [17:58:42]ProducePacketName [17:58:42]name=ofd_packets/00139833 [17:58:42]NVStorageSaveData ofd_packets/00139833 [17:58:42]File name is /storage/ofd_packets/00139833 [17:58:42]Write 301 bytes [17:58:42]NVStorageSaveData done [17:58:42]OFDSenderStorePacket done [17:58:42]KKMCreateOFDPacket done [17:58:42]NVStorageSaveData kkm_last_timestamp [17:58:42]File name is /storage/kkm_last_timestamp [17:58:42]Write 4 bytes [17:58:42]NVStorageSaveData done [17:58:42]ExternCall_PrintAddStr [17:58:42]wPrintStart [17:58:42]Write to MH i2c: 01 00 00 16 03 19 [17:58:42]Write i2c OK [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: 01 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: 01 07 00 [17:58:42]MH_I2C_Read... [17:58:42]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [17:58:42]RasterBufferAndPrint [17:58:42]line Счет N : (1)593683 [17:58:42]line ИНН: 02508201610067 [17:58:42]line Контрольно-Кассовый Чек [17:58:42]line ПРОДАЖА [17:58:42]line ТРК (МРК, ГНК) : 61 [17:58:42]line Товар: 2710124500 [17:58:42]line Аи-95-К-5 [17:58:42]line 10.790 * 74.20 [17:58:42]line = 800.62 [17:58:42]line НДС 12% НСП 1% [17:58:42]line > о реализуемом товаре [17:58:42]line ОКРУГЛЕНИЕ: -0.62 [17:58:42]line ИТОГО: 800.00 [17:58:42]line Внесено: 800.00 [17:58:42]line СДАЧА: 0.00 [17:58:42]line НСП 1% : 7.08 [17:58:42]line НДС 12% : 85.02 [17:58:42]line Наличными: 800.00 [17:58:42]line Безнал.: 0.00 [17:58:42]line Место: АЗС № 136 "Партнер Нефть" [17:58:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:58:42]line СНО: Общий режим [17:58:42]line Чек 305 20.08.2024 17:58 [17:58:42]line Смена: 453 ФФД: 1.0 [17:58:42]line ЗНМ: 0300000067 [17:58:42]line РНМ: 0000000000092569 [17:58:42]line Версия ККМ: 001 [17:58:42]line ФМ: 0000000000871776 [17:58:42]line ФД: 139833 [17:58:42]line ФПД: 225933800682702 [17:58:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T175839&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139833&fm=225933800682702&tin=02508201610067®Number=0000000000092569&sum=80000 [17:58:42]written 0, free lines is 4095 [17:58:43]Write to MH i2c: 01 00 00 41 03 44 [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: 01 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: 01 07 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 E9 0C 40 [17:58:43]RasterBufferAndPrint [17:58:43]line [17:58:43]line [17:58:43]line [17:58:43]line [17:58:43]line [17:58:43]written 0, free lines is 3372 [17:58:43]MH_Cut [17:58:43]Write to MH i2c: D1 01 00 48 03 01 1D [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: D1 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: D1 01 00 [17:58:43]MH_I2C_Read... [17:58:43]Read from MH i2c: D1 01 00 48 03 00 1C [17:58:43]Write to MH i2c: 01 00 00 49 03 4C [17:58:43]Write i2c OK [17:58:43]MH_I2C_Read... [17:58:43]*** Cut start [17:58:43]*** Partial cut [17:58:43]*** CUTSNS_PIN = 1 [17:58:43]*** CUTSNS_PIN = 0 [17:58:44]*** Brake cut motor [17:58:44]Read from MH i2c: 01 [17:58:44]MH_I2C_Read... [17:58:44]*** Stop cut motor [17:58:44]*** Cut end [17:58:44]Read from MH i2c: 01 07 00 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [17:58:44]process_action close_receipt done [17:58:44]requested_data is exist [17:58:44]produce_requested_data [17:58:44]requested_item fm.sn is exist - process it [17:58:44]wFMCommunicate request_size=4 [17:58:44]MH_SAM_APDU [17:58:44]CAPDU: 80 11 00 00 [17:58:44]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [17:58:44]Write i2c OK [17:58:44]MH_I2C_Read... [17:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:44]Read from MH i2c: E2 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 17 00 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [17:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:58:44]wFMCommunicate OK [17:58:44]requested_item fd.num is exist - process it [17:58:44]SAM_PROTO_GetFieldsCounters [17:58:44]wFMCommunicate request_size=4 [17:58:44]MH_SAM_APDU [17:58:44]CAPDU: 80 13 00 00 [17:58:44]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [17:58:44]Write i2c OK [17:58:44]MH_I2C_Read... [17:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:44]Read from MH i2c: E2 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 62 00 [17:58:44]MH_I2C_Read... [17:58:44]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 22 02 00 0E 04 04 00 C5 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 AE [17:58:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 22 02 00 0E 04 04 00 C5 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 [17:58:45]wFMCommunicate OK [17:58:45]SAM_PROTO_GetFieldsCounters done [17:58:45]requested_item shift.num is exist - process it [17:58:45]requested_item shift.opened is exist - process it [17:58:45]req_shift_opened [17:58:45]FM_GetShiftState [17:58:45]SAM_PROTO_GetShiftState [17:58:45]wFMCommunicate request_size=4 [17:58:45]MH_SAM_APDU [17:58:45]CAPDU: 80 13 01 00 [17:58:45]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:45]Read from MH i2c: E2 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 0E 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5D [17:58:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:58:45]wFMCommunicate OK [17:58:45]SAM_PROTO_GetShiftState done [17:58:45]FM_GetShiftState done [17:58:45]req_shift_opened done [17:58:45]requested_item shift.open_date is exist - process it [17:58:45]req_shift_open_date [17:58:45]req_shift_open_date done [17:58:45]produce_requested_data done [17:58:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139833,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [17:58:45]process_action_free close_receipt [17:58:45]json_value_free [17:58:45]json_value_free done [17:58:45]process_json_proto returns [17:58:45]Send response to host [17:58:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139833,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [17:58:45]free response buf [17:58:45]execute_script done [17:58:45]execute_script returns [17:58:45]free content buf [17:58:45]Sock 12.Close socket [17:58:45]Sock 12.Thread stoped [17:58:46]ConnectInit Can't take IP for lk.salyk.kg [17:58:46]CommunicateWithHost connect error [17:58:46]CommunicateWithHost err = -1 [17:58:46]OFD Sender: Server communicate error [17:58:47]OFD Sender: Processing packet 139800 [packets to send 170, broken 136] [17:58:47]ProducePacketName [17:58:47]name=ofd_packets/00139800 [17:58:47]OFD Sender: To server: pG, [17:58:47]CommunicateWithHost lk.salyk.kg:30040 [17:58:47]ConnectInit lk.salyk.kg [17:58:50]accept exits with 7 [17:58:50]New connection [17:58:50]New thread 3067219300 created [17:58:50]Thread 3067362660 joined [17:58:50]Waiting for new connection... [17:58:50] Sock 7.Parse request [17:58:50]Sock 7.Check first char [17:58:50]Sock 7.First char is OK [17:58:50]request: POST /json_proto HTTP/1.0 [17:58:50]Method: POST [17:58:50]URL: /json_proto [17:58:50]Method is POST - this is cgi request [17:58:50]url: /json_proto [17:58:50]query_string will be loaded in cgi processing [17:58:50]execute_cgi json_proto POST (null) [17:58:50]execute_cgi path=json_proto method=POST [17:58:50]POST find Content-Length [17:58:50]Host: 172.17.45.67:8080 [17:58:50]Content-Length: 687 [17:58:50]Content-Type: application/json [17:58:50] [17:58:50]POST finish read [17:58:50]Found Content-Length = 687 [17:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:58:50]execute_script... [17:58: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)593684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:58:50]POST & json_proto [17:58:50]process_json_proto [17:58:50]json parsed OK: [17:58:50]protocol is kg_v1.0 [17:58:50]action value=close_receipt [17:58:50]process_action close_receipt [17:58:50]cmd_close_receipt [17:58:50]MH_GetDate [17:58:50]Write to MH i2c: F0 00 00 4D 03 3F [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: F0 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: F0 09 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: F0 09 00 4D 03 00 5B D9 C4 66 5F 7F 2B 66 15 [17:58:50]GetLastDocTimeStamp 1724176719 [17:58:50]current date 1724176731 [17:58:50]FM_GetShiftState [17:58:50]SAM_PROTO_GetShiftState [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 13 01 00 [17:58:50]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:51]Read from MH i2c: E2 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 0E 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5F [17:58:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:58:51]wFMCommunicate OK [17:58:51]SAM_PROTO_GetShiftState done [17:58:51]FM_GetShiftState done [17:58:51]opened in 1724113785 [17:58:51]opened+sec_in_day 1724200185 [17:58:51]quantity*price = 150037 [17:58:51]sum+1 = 150039 [17:58:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 306 20.08.2024 17:58 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139834 ФПД: 182601927380983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T175851&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139834&fm=182601927380983&tin=02508201610067®Number=0000000000092569&sum=150000 [17:58:53]StoreToDocumentArchive [17:58:53]shift 453 fd 139834 [17:58:53]save to /storage/0453/doc_00139834 [17:58:53]save last doc name /storage/0453/doc_00139834 to /storage/kkm_last_doc_name [17:58:53]save OK [17:58:53]Clear old archive folders... [17:58:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:58:53]tlvbuf is 0012B4C0 [17:58:53]SAM_PROTO_ClearQueue [17:58:53]wFMCommunicate request_size=4 [17:58:53]MH_SAM_APDU [17:58:53]CAPDU: 80 09 00 00 [17:58:53]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:53]Read from MH i2c: E2 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 03 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [17:58:53]RAPDU: 90 00 [17:58:53]wFMCommunicate OK [17:58:53]SAM_PROTO_ClearQueue done [17:58:53]KKMCreateOFDPacket [17:58:53]OFDProtocolAddRootSTLVToBuf [17:58:53]FM_MakeSignedData [17:58:53]FM_MakeSignedData [17:58:53]SAM_PROTO_SignData [17:58:53]wFMCommunicate request_size=4 [17:58:53]MH_SAM_APDU [17:58:53]CAPDU: 80 0D 01 02 [17:58:53]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:53]Read from MH i2c: E2 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 03 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [17:58:53]RAPDU: 90 00 [17:58:53]wFMCommunicate OK [17:58:53]wFMCommunicate request_size=255 [17:58:53]MH_SAM_APDU [17:58:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 32 01 00 00 F4 03 04 00 5B D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 22 02 00 35 04 06 00 [17:58:53]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 32 01 00 00 F4 03 04 00 5B D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 22 02 00 35 04 06 00 00 00 7B [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 03 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [17:58:54]RAPDU: 90 00 [17:58:54]wFMCommunicate OK [17:58:54]wFMCommunicate request_size=11 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 0D 02 02 06 A6 13 53 04 4F F7 [17:58:54]Write to MH i2c: E2 0E 00 5E 03 80 0D 02 02 06 00 A6 13 53 04 4F F7 00 00 3D [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 03 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [17:58:54]RAPDU: 90 00 [17:58:54]wFMCommunicate OK [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 0D 03 02 [17:58:54]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 0B 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 0B 00 5F 03 00 08 68 C1 64 5D 4C 3E 3A 90 00 94 [17:58:54]RAPDU: 08 68 C1 64 5D 4C 3E 3A 90 [17:57:56]CommunicateWithHost connect error [17:57:56]CommunicateWithHost err = -1 [17:57:56]OFD Sender: Server communicate error [17:58:01]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:58:01]ProducePacketName [17:58:01]name=ofd_packets/00139800 [17:58:01]OFD Sender: To server: pG, [17:58:01]CommunicateWithHost lk.salyk.kg:30040 [17:58:01]ConnectInit lk.salyk.kg [17:58:06]ConnectInit Can't take IP for lk.salyk.kg [17:58:06]CommunicateWithHost connect error [17:58:06]CommunicateWithHost err = -1 [17:58:06]OFD Sender: Server communicate error [17:58:08]ConnectInit Can't connect to host [17:58:11]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:58:11]ProducePacketName [17:58:11]name=ofd_packets/00139800 [17:58:11]OFD Sender: To server: pG, [17:58:11]CommunicateWithHost lk.salyk.kg:30040 [17:58:11]ConnectInit lk.salyk.kg [17:58:16]ConnectInit Can't take IP for lk.salyk.kg [17:58:16]CommunicateWithHost connect error [17:58:16]CommunicateWithHost err = -1 [17:58:16]OFD Sender: Server communicate error [17:58:21]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:58:21]ProducePacketName [17:58:21]name=ofd_packets/00139800 [17:58:21]OFD Sender: To server: pG, [17:58:21]CommunicateWithHost lk.salyk.kg:30040 [17:58:21]ConnectInit lk.salyk.kg [17:58:26]ConnectInit Can't take IP for lk.salyk.kg [17:58:26]CommunicateWithHost connect error [17:58:26]CommunicateWithHost err = -1 [17:58:26]OFD Sender: Server communicate error [17:58:31]OFD Sender: Processing packet 139800 [packets to send 169, broken 136] [17:58:31]ProducePacketName [17:58:31]name=ofd_packets/00139800 [17:58:31]OFD Sender: To server: pG, [17:58:31]CommunicateWithHost lk.salyk.kg:30040 [17:58:31]ConnectInit lk.salyk.kg [17:58:36]ConnectInit Can't take IP for lk.salyk.kg [17:58:36]CommunicateWithHost connect error [17:58:36]CommunicateWithHost err = -1 [17:58:36]OFD Sender: Server communicate error [17:58:38]accept exits with 12 [17:58:38]New connection [17:58:38]New thread 3067362660 created [17:58:38]Thread 3067219300 joined [17:58:38]Waiting for new connection... [17:58:38] Sock 12.Parse request [17:58:38]Sock 12.Check first char [17:58:38]Sock 12.First char is OK [17:58:38]request: POST /json_proto HTTP/1.0 [17:58:38]Method: POST [17:58:38]URL: /json_proto [17:58:38]Method is POST - this is cgi request [17:58:38]url: /json_proto [17:58:38]query_string will be loaded in cgi processing [17:58:38]execute_cgi json_proto POST (null) [17:58:38]execute_cgi path=json_proto method=POST [17:58:38]POST find Content-Length [17:58:38]Host: 172.17.45.67:8080 [17:58:38]Content-Length: 678 [17:58:38]Content-Type: application/json [17:58:38] [17:58:38]POST finish read [17:58:38]Found Content-Length = 678 [17:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:38]execute_script... [17:58: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)593683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:38]POST & json_proto [17:58:38]process_json_proto [17:58:38]json parsed OK: [17:58:38]protocol is kg_v1.0 [17:58:38]action value=close_receipt [17:58:38]process_action close_receipt [17:58:38]cmd_close_receipt [17:58:38]MH_GetDate [17:58:38]Write to MH i2c: F0 00 00 02 03 F4 [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: F0 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: F0 09 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: F0 09 00 02 03 00 4F D9 C4 66 5F 7F 2B 66 BE [17:58:38]GetLastDocTimeStamp 1724176477 [17:58:38]current date 1724176719 [17:58:38]FM_GetShiftState [17:58:38]SAM_PROTO_GetShiftState [17:58:38]wFMCommunicate request_size=4 [17:58:38]MH_SAM_APDU [17:58:38]CAPDU: 80 13 01 00 [17:58:38]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:39]Read from MH i2c: E2 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 0E 00 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 14 [17:58:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:58:39]wFMCommunicate OK [17:58:39]SAM_PROTO_GetShiftState done [17:58:39]FM_GetShiftState done [17:58:39]opened in 1724113785 [17:58:39]opened+sec_in_day 1724200185 [17:58:39]quantity*price = 80061 [17:58:39]sum+1 = 80063 [17:58:39]Check (price>sum+1) || (price+1 о реализуемом товаре [17:58:54]line ОКРУГЛЕНИЕ: -0.38 [17:58:54]line ИТОГО: 1500.00 [17:58:54]line Внесено: 1500.00 [17:58:54]line СДАЧА: 0.00 [17:58:54]line НСП 1% : 13.28 [17:58:54]line НДС 12% : 159.33 [17:58:54]line Наличными: 1500.00 [17:58:54]line Безнал.: 0.00 [17:58:54]line Место: АЗС № 136 "Партнер Нефть" [17:58:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:58:54]line СНО: Общий режим [17:58:54]line Чек 306 20.08.2024 17:58 [17:58:54]line Смена: 453 ФФД: 1.0 [17:58:54]line ЗНМ: 0300000067 [17:58:54]line РНМ: 0000000000092569 [17:58:54]line Версия ККМ: 001 [17:58:54]line ФМ: 0000000000871776 [17:58:54]line ФД: 139834 [17:58:54]line ФПД: 182601927380983 [17:58:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T175851&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139834&fm=182601927380983&tin=02508201610067®Number=0000000000092569&sum=150000 [17:58:54]OFD Sender: Processing packet 139800 [packets to send 171, broken 136] [17:58:54]ProducePacketName [17:58:54]name=ofd_packets/00139800 [17:58:54]OFD Sender: To server: pG, [17:58:54]CommunicateWithHost lk.salyk.kg:30040 [17:58:55]ConnectInit lk.salyk.kg [17:58:55]written 0, free lines is 4095 [17:58:55]Write to MH i2c: 01 00 00 8C 03 8F [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: 01 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: 01 07 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: 01 07 00 8C 03 00 00 00 00 00 E9 0C 8B [17:58:55]RasterBufferAndPrint [17:58:55]line [17:58:55]line [17:58:55]line [17:58:55]line [17:58:55]line [17:58:55]written 0, free lines is 3383 [17:58:55]MH_Cut [17:58:55]Write to MH i2c: D1 01 00 93 03 01 68 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: D1 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: D1 01 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: D1 01 00 93 03 00 67 [17:58:55]Write to MH i2c: 01 00 00 94 03 97 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:56]*** Cut start [17:58:56]*** Partial cut [17:58:56]*** CUTSNS_PIN = 1 [17:58:56]*** CUTSNS_PIN = 0 [17:58:56]*** Brake cut motor [17:58:56]Read from MH i2c: 01 [17:58:56]MH_I2C_Read... [17:58:56]*** Stop cut motor [17:58:56]*** Cut end [17:58:56]Read from MH i2c: 01 07 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 FF 0F AC [17:58:56]process_action close_receipt done [17:58:56]requested_data is exist [17:58:56]produce_requested_data [17:58:56]requested_item fm.sn is exist - process it [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 11 00 00 [17:58:56]Write to MH i2c: E2 08 00 95 03 80 11 00 00 00 00 00 00 12 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:56]Read from MH i2c: E2 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 17 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: E2 17 00 95 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [17:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:58:56]wFMCommunicate OK [17:58:56]requested_item fd.num is exist - process it [17:58:56]SAM_PROTO_GetFieldsCounters [17:58:56]wFMCommunicate request_size=4 [17:58:56]MH_SAM_APDU [17:58:56]CAPDU: 80 13 00 00 [17:58:56]Write to MH i2c: E2 08 00 96 03 80 13 00 00 00 00 00 00 15 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 62 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 62 00 96 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 22 02 00 0E 04 04 00 C5 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 FD [17:58:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 22 02 00 0E 04 04 00 C5 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 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_GetFieldsCounters done [17:58:57]requested_item shift.num is exist - process it [17:58:57]requested_item shift.opened is exist - process it [17:58:57]req_shift_opened [17:58:57]FM_GetShiftState [17:58:57]SAM_PROTO_GetShiftState [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 13 01 00 [17:58:57]Write to MH i2c: E2 08 00 97 03 80 13 01 00 00 00 00 00 17 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0E 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0E 00 97 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A8 [17:58:57]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_GetShiftState done [17:58:57]FM_GetShiftState done [17:58:57]req_shift_opened done [17:58:57]requested_item shift.open_date is exist - process it [17:58:57]req_shift_open_date [17:58:57]req_shift_open_date done [17:58:57]produce_requested_data done [17:58:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139834,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [17:58:57]process_action_free close_receipt [17:58:57]json_value_free [17:58:57]json_value_free done [17:58:57]process_json_proto returns [17:58:57]Send response to host [17:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139834,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [17:58:57]free response buf [17:58:57]execute_script done [17:58:57]execute_script returns [17:58:57]free content buf [17:58:57]Sock 7.Close socket [17:58:57]Sock 7.Thread stoped [17:58:59]int [17:58:59]Write to MH i2c: 01 00 00 98 03 9B [17:58:59]*** FLAG_PRN_KEY set [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 98 03 00 08 00 00 00 FF 0F B8 [17:58:59]state=0 [17:58:59]Key pressed [17:58:59]Feed [17:58:59]Write to MH i2c: D8 00 00 99 03 73 [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: D8 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: D8 01 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: D8 01 00 99 03 00 74 [17:58:59]int line is 0 - check status [17:58:59]Write to MH i2c: 01 00 00 9A 03 9D [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 [17:58:59]MH_I2C_Read... [17:58:59]*** FLAG_PRN_KEY reset [17:58:59]Read from MH i2c: 01 07 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 9A 03 00 48 00 00 00 3C 00 28 [17:58:59]state=2 [17:58:59]Key pressed [17:58:59]int line is 0 - check status [17:58:59]Write to MH i2c: 01 00 00 9B 03 9E [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [17:58:59]state=2 [17:58:59]Stop feed [17:58:59]int [17:58:59]Write to MH i2c: 01 00 00 9C 03 9F [17:58:59]Write i2c OK [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 [17:58:59]MH_I2C_Read... [17:58:59]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [17:58:59]state=0 [17:59:00]ConnectInit Can't take IP for lk.salyk.kg [17:59:00]CommunicateWithHost connect error [17:59:00]CommunicateWithHost err = -1 [17:59:00]OFD Sender: Server communicate error [17:59:00]int [17:59:00]Write to MH i2c: 01 00 00 9D 03 A0 [17:59:00]*** FLAG_PRN_KEY set [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 9D 03 00 08 00 00 00 FF 0F BD [17:59:00]state=0 [17:59:00]Key pressed [17:59:00]Feed [17:59:00]Write to MH i2c: D8 00 00 9E 03 78 [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: D8 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: D8 01 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: D8 01 00 9E 03 00 79 [17:59:00]int line is 0 - check status [17:59:00]Write to MH i2c: 01 00 00 9F 03 A2 [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 9F 03 00 48 00 00 00 3C 00 2D [17:59:00]state=2 [17:59:00]Key pressed [17:59:00]int [17:59:00]Write to MH i2c: 01 00 00 A0 03 A3 [17:59:00]*** FLAG_PRN_KEY reset [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 A0 03 00 40 00 00 00 3D 00 27 [17:59:00]state=2 [17:59:00]Stop feed [17:59:00]int line is 0 - check status [17:59:00]Write to MH i2c: 01 00 00 A1 03 A4 [17:59:00]Write i2c OK [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 [17:59:00]MH_I2C_Read... [17:59:00]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 FF 0F B9 [17:59:00]state=0 [17:59:05]OFD Sender: Processing packet 139800 [packets to send 171, broken 136] [17:59:05]ProducePacketName [17:59:05]name=ofd_packets/00139800 [17:59:05]OFD Sender: To server: pG, [17:59:05]CommunicateWithHost lk.salyk.kg:30040 [17:59:05]ConnectInit lk.salyk.kg [17:59:10]ConnectInit Can't take IP for lk.salyk.kg [17:59:10]CommunicateWithHost connect error [17:59:10]CommunicateWithHost err = -1 [17:59:10]OFD Sender: Server communicate error [17:59:15]OFD Sender: Processing packet 139800 [packets to send 171, broken 136] [17:59:15]ProducePacketName [17:59:15]name=ofd_packets/00139800 [17:59:15]OFD Sender: To server: pG, [17:59:15]CommunicateWithHost lk.salyk.kg:30040 [17:59:15]ConnectInit lk.salyk.kg [17:59:20]ConnectInit Can't take IP for lk.salyk.kg [17:59:20]CommunicateWithHost connect error [17:59:20]CommunicateWithHost err = -1 [17:59:20]OFD Sender: Server communicate error [17:59:25]OFD Sender: Processing packet 139800 [packets to send 171, broken 136] [17:59:25]ProducePacketName [17:59:25]name=ofd_packets/00139800 [17:59:25]OFD Sender: To server: pG, [17:59:25]CommunicateWithHost lk.salyk.kg:30040 [17:59:25]ConnectInit lk.salyk.kg [17:59:30]ConnectInit Can't take IP for lk.salyk.kg [17:59:30]CommunicateWithHost connect error [17:59:30]CommunicateWithHost err = -1 [17:59:30]OFD Sender: Server communicate error [17:59:35]OFD Sender: Processing packet 139800 [packets to send 171, broken 136] [17:59:35]ProducePacketName [17:59:35]name=ofd_packets/00139800 [17:59:35]OFD Sender: To server: pG, [17:59:35]CommunicateWithHost lk.salyk.kg:30040 [17:59:35]ConnectInit lk.salyk.kg [17:59:40]ConnectInit Can't take IP for lk.salyk.kg [17:59:40]CommunicateWithHost connect error [17:59:40]CommunicateWithHost err = -1 [17:59:40]OFD Sender: Server communicate error [17:59:45]OFD Sender: Processing packet 139800 [packets to send 171, broken 136] [17:59:45]ProducePacketName [17:59:45]name=ofd_packets/00139800 [17:59:45]OFD Sender: To server: pG, [17:59:45]CommunicateWithHost lk.salyk.kg:30040 [17:59:45]ConnectInit lk.salyk.kg [17:59:50]ConnectInit Can't take IP for lk.salyk.kg [17:59:50]CommunicateWithHost connect error [17:59:50]CommunicateWithHost err = -1 [17:59:50]OFD Sender: Server communicate error [17:59:55]OFD Sender: Processing packet 139800 [packets to send 171, broken 136] [17:59:55]ProducePacketName [17:59:55]name=ofd_packets/00139800 [17:59:55]OFD Sender: To server: pG, [17:59:55]CommunicateWithHost lk.salyk.kg:30040 [17:59:55]ConnectInit lk.salyk.kg [18:00:00]ConnectInit Can't take IP for lk.salyk.kg [18:00:00]CommunicateWithHost connect error [18:00:00]CommunicateWithHost err = -1 [18:00:00]OFD Sender: Server communicate error [18:00:05]OFD Sender: Processing packet 139800 [packets to send 171, broken 136] [18:00:05]ProducePacketName [18:00:05]name=ofd_packets/00139800 [18:00:05]OFD Sender: To server: pG, [18:00:05]CommunicateWithHost lk.salyk.kg:30040 [18:00:05]ConnectInit lk.salyk.kg [18:00:10]ConnectInit Can't take IP for lk.salyk.kg [18:00:10]CommunicateWithHost connect error [18:00:10]CommunicateWithHost err = -1 [18:00:10]OFD Sender: Server communicate error [18:00:15]OFD Sender: Processing packet 139800 [packets to send 171, broken 136] [18:00:15]ProducePacketName [18:00:15]name=ofd_packets/00139800 [18:00:15]OFD Sender: To server: pG, [18:00:15]CommunicateWithHost lk.salyk.kg:30040 [18:00:15]ConnectInit lk.salyk.kg [18:00:15]accept exits with 12 [18:00:15]New connection [18:00:15]New thread 3067362660 created [18:00:15]Thread 3067219300 joined [18:00:15]Waiting for new connection... [18:00:15] Sock 12.Parse request [18:00:15]Sock 12.Check first char [18:00:15]Sock 12.First char is OK [18:00:15]request: POST /json_proto HTTP/1.0 [18:00:15]Method: POST [18:00:15]URL: /json_proto [18:00:15]Method is POST - this is cgi request [18:00:15]url: /json_proto [18:00:15]query_string will be loaded in cgi processing [18:00:15]execute_cgi json_proto POST (null) [18:00:15]execute_cgi path=json_proto method=POST [18:00:15]POST find Content-Length [18:00:15]Host: 172.17.45.67:8080 [18:00:15]Content-Length: 663 [18:00:15]Content-Type: application/json [18:00:15] [18:00:15]POST finish read [18:00:15]Found Content-Length = 663 [18:00:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:15]execute_script... [18:00: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)593686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:15]POST & json_proto [18:00:15]process_json_proto [18:00:15]json parsed OK: [18:00:15]protocol is kg_v1.0 [18:00:15]action value=close_receipt [18:00:15]process_action close_receipt [18:00:15]cmd_close_receipt [18:00:15]MH_GetDate [18:00:15]Write to MH i2c: F0 00 00 A2 03 94 [18:00:15]Write i2c OK [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: F0 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: F0 09 00 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: F0 09 00 A2 03 00 AF D9 C4 66 5F 7F 2B 66 BE [18:00:15]GetLastDocTimeStamp 1724176731 [18:00:15]current date 1724176815 [18:00:15]FM_GetShiftState [18:00:15]SAM_PROTO_GetShiftState [18:00:15]wFMCommunicate request_size=4 [18:00:15]MH_SAM_APDU [18:00:15]CAPDU: 80 13 01 00 [18:00:15]Write to MH i2c: E2 08 00 A3 03 80 13 01 00 00 00 00 00 23 [18:00:15]Write i2c OK [18:00:15]MH_I2C_Read... [18:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:15]Read from MH i2c: E2 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: E2 0E 00 [18:00:15]MH_I2C_Read... [18:00:15]Read from MH i2c: E2 0E 00 A3 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B4 [18:00:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:00:15]wFMCommunicate OK [18:00:15]SAM_PROTO_GetShiftState done [18:00:15]FM_GetShiftState done [18:00:15]opened in 1724113785 [18:00:15]opened+sec_in_day 1724200185 [18:00:15]quantity*price = 100035 [18:00:15]sum+1 = 100036 [18:00:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 307 20.08.2024 18:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139835 ФПД: 63096368296339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180015&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139835&fm=63096368296339&tin=02508201610067®Number=0000000000092569&sum=100000 [18:00:17]StoreToDocumentArchive [18:00:17]shift 453 fd 139835 [18:00:17]save to /storage/0453/doc_00139835 [18:00:17]save last doc name /storage/0453/doc_00139835 to /storage/kkm_last_doc_name [18:00:17]save OK [18:00:17]Clear old archive folders... [18:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:00:17]tlvbuf is 0025D650 [18:00:17]SAM_PROTO_ClearQueue [18:00:17]wFMCommunicate request_size=4 [18:00:17]MH_SAM_APDU [18:00:17]CAPDU: 80 09 00 00 [18:00:17]Write to MH i2c: E2 08 00 B0 03 80 09 00 00 00 00 00 00 25 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]SAM_PROTO_ClearQueue done [18:00:18]KKMCreateOFDPacket [18:00:18]OFDProtocolAddRootSTLVToBuf [18:00:18]FM_MakeSignedData [18:00:18]FM_MakeSignedData [18:00:18]SAM_PROTO_SignData [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 0D 01 02 [18:00:18]Write to MH i2c: E2 08 00 B1 03 80 0D 01 02 00 00 00 00 2D [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]wFMCommunicate request_size=253 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AF D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 22 02 00 35 04 06 00 39 62 C4 9E 71 93 [18:00:18]Write to MH i2c: E2 00 01 B2 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AF D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 22 02 00 35 04 06 00 39 62 C4 9E 71 93 00 00 B1 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [18:00:19]RAPDU: 90 00 [18:00:19]wFMCommunicate OK [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 0D 03 02 [18:00:19]Write to MH i2c: E2 08 00 B3 03 80 0D 03 02 00 00 00 00 31 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 0B 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 0B 00 B3 03 00 75 92 E4 05 83 40 08 C1 90 00 AE [18:00:19]RAPDU: 75 92 E4 05 83 40 08 C1 90 00 [18:00:19]wFMCommunicate OK [18:00:19]SAM_PROTO_SignData done [18:00:19]FM_MakeSignedData done [18:00:19]CreateOFDProtocolMessage [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 11 00 00 [18:00:19]Write to MH i2c: E2 08 00 B4 03 80 11 00 00 00 00 00 00 31 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 17 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 17 00 B4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [18:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:00:19]wFMCommunicate OK [18:00:19]CreateOFDProtocolMessage done [18:00:19]OFDSenderStorePacket 139835 [18:00:19]StoreOFDPacket docnum=139835 [18:00:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 85 EC 00 01 C5 C3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AF D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 22 02 00 35 04 06 00 39 62 C4 9E 71 93 75 92 E4 05 83 40 08 C1 [18:00:19]CheckFolder [18:00:19]dirname=/storage/ofd_packets [18:00:19]CheckFolder done [18:00:19]ProducePacketName [18:00:19]name=ofd_packets/00139835 [18:00:19]NVStorageSaveData ofd_packets/00139835 [18:00:19]File name is /storage/ofd_packets/00139835 [18:00:19]Write 294 bytes [18:00:19]NVStorageSaveData done [18:00:19]OFDSenderStorePacket done [18:00:19]KKMCreateOFDPacket done [18:00:19]NVStorageSaveData kkm_last_timestamp [18:00:19]File name is /storage/kkm_last_timestamp [18:00:19]Write 4 bytes [18:00:19]NVStorageSaveData done [18:00:19]ExternCall_PrintAddStr [18:00:19]wPrintStart [18:00:19]Write to MH i2c: 01 00 00 B5 03 B8 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 FF 0F CD [18:00:19]RasterBufferAndPrint [18:00:19]line Счет N : (1)593686 [18:00:19]line ИНН: 02508201610067 [18:00:19]line Контрольно-Кассовый Чек [18:00:19]line ПРОДАЖА [18:00:19]line ТРК (МРК, ГНК) : 53 [18:00:19]line Товар: 2710124130 [18:00:19]line SU-92 [18:00:19]line 14.540 * 68.80 [18:00:19]line = 1000.35 [18:00:19]line НДС 12% НСП 1% [18:00:19]line > о реализуемом товаре [18:00:19]line ОКРУГЛЕНИЕ: -0.35 [18:00:19]line ИТОГО: 1000.00 [18:00:19]line Внесено: 1000.00 [18:00:19]line СДАЧА: 0.00 [18:00:19]line НСП 1% : 8.85 [18:00:19]line НДС 12% : 106.23 [18:00:19]line Наличными: 1000.00 [18:00:19]line Безнал.: 0.00 [18:00:19]line Место: АЗС № 136 "Партнер Нефть" [18:00:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:00:19]line СНО: Общий режим [18:00:19]line Чек 307 20.08.2024 18:00 [18:00:19]line Смена: 453 ФФД: 1.0 [18:00:19]line ЗНМ: 0300000067 [18:00:19]line РНМ: 0000000000092569 [18:00:19]line Версия ККМ: 001 [18:00:19]line ФМ: 0000000000871776 [18:00:19]line ФД: 139835 [18:00:19]line ФПД: 63096368296339 [18:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180015&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139835&fm=63096368296339&tin=02508201610067®Number=0000000000092569&sum=100000 [18:00:19]written 0, free lines is 4095 [18:00:20]Write to MH i2c: 01 00 00 E0 03 E3 [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 07 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 07 00 E0 03 00 00 00 00 00 EF 0C E5 [18:00:20]RasterBufferAndPrint [18:00:20]line [18:00:20]line [18:00:20]line [18:00:20]line [18:00:20]line [18:00:20]written 0, free lines is 3395 [18:00:20]ConnectInit Can't take IP for lk.salyk.kg [18:00:20]CommunicateWithHost connect error [18:00:20]CommunicateWithHost err = -1 [18:00:20]OFD Sender: Server communicate error [18:00:20]MH_Cut [18:00:20]Write to MH i2c: D1 01 00 E7 03 01 BC [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: D1 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: D1 01 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: D1 01 00 E7 03 00 BB [18:00:20]Write to MH i2c: 01 00 00 E8 03 EB [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]OFD Sender: Processing packet 139800 [packets to send 172, broken 136] [18:00:20]ProducePacketName [18:00:20]name=ofd_packets/00139800 [18:00:20]OFD Sender: To server: pG, [18:00:20]CommunicateWithHost lk.salyk.kg:30040 [18:00:20]ConnectInit lk.salyk.kg [18:00:20]*** Cut start [18:00:20]*** Partial cut [18:00:20]*** CUTSNS_PIN = 1 [18:00:20]*** CUTSNS_PIN = 0 [18:00:21]*** Brake cut motor [18:00:21]Read from MH i2c: 01 [18:00:21]MH_I2C_Read... [18:00:21]*** Stop cut motor [18:00:21]*** Cut end [18:00:21]Read from MH i2c: 01 07 00 [18:00:21]MH_I2C_Read... [18:00:21]Read from MH i2c: 01 07 00 E8 03 00 00 00 00 00 FF 0F 00 [18:00:21]process_action close_receipt done [18:00:21]requested_data is exist [18:00:21]produce_requested_data [18:00:21]requested_item fm.sn is exist - process it [18:00:21]wFMCommunicate request_size=4 [18:00:21]MH_SAM_APDU [18:00:21]CAPDU: 80 11 00 00 [18:00:21]Write to MH i2c: E2 08 00 E9 03 80 11 00 00 00 00 00 00 66 [18:00:21]Write i2c OK [18:00:21]MH_I2C_Read... [18:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:21]Read from MH i2c: E2 [18:00:21]MH_I2C_Read... [18:00:21]Read from MH i2c: E2 17 00 [18:00:21]MH_I2C_Read... [18:00:21]Read from MH i2c: E2 17 00 E9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [18:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:00:21]wFMCommunicate OK [18:00:21]requested_item fd.num is exist - process it [18:00:21]SAM_PROTO_GetFieldsCounters [18:00:21]wFMCommunicate request_size=4 [18:00:21]MH_SAM_APDU [18:00:21]CAPDU: 80 13 00 00 [18:00:21]Write to MH i2c: E2 08 00 EA 03 80 13 00 00 00 00 00 00 69 [18:00:21]Write i2c OK [18:00:21]MH_I2C_Read... [18:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:21]Read from MH i2c: E2 [18:00:21]MH_I2C_Read... [18:00:21]Read from MH i2c: E2 62 00 [18:00:21]MH_I2C_Read... [18:00:21]Read from MH i2c: E2 62 00 EA 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 22 02 00 0E 04 04 00 C5 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 55 [18:00:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 22 02 00 0E 04 04 00 C5 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 [18:00:22]wFMCommunicate OK [18:00:22]SAM_PROTO_GetFieldsCounters done [18:00:22]requested_item shift.num is exist - process it [18:00:22]requested_item shift.opened is exist - process it [18:00:22]req_shift_opened [18:00:22]FM_GetShiftState [18:00:22]SAM_PROTO_GetShiftState [18:00:22]wFMCommunicate request_size=4 [18:00:22]MH_SAM_APDU [18:00:22]CAPDU: 80 13 01 00 [18:00:22]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [18:00:22]Write i2c OK [18:00:22]MH_I2C_Read... [18:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:22]Read from MH i2c: E2 [18:00:22]MH_I2C_Read... [18:00:22]Read from MH i2c: E2 0E 00 [18:00:22]MH_I2C_Read... [18:00:22]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FC [18:00:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:00:22]wFMCommunicate OK [18:00:22]SAM_PROTO_GetShiftState done [18:00:22]FM_GetShiftState done [18:00:22]req_shift_opened done [18:00:22]requested_item shift.open_date is exist - process it [18:00:22]req_shift_open_date [18:00:22]req_shift_open_date done [18:00:22]produce_requested_data done [18:00:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139835,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:00:22]process_action_free close_receipt [18:00:22]json_value_free [18:00:22]json_value_free done [18:00:22]process_json_proto returns [18:00:22]Send response to host [18:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139835,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:00:22]free response buf [18:00:22]execute_script done [18:00:22]execute_script returns [18:00:22]free content buf [18:00:22]Sock 12.Close socket [18:00:22]Sock 12.Thread stoped [18:00:23]int [18:00:23]Write to MH i2c: 01 00 00 EC 03 EF [18:00:23]*** FLAG_PRN_PAP1 set [18:00:23]Write i2c OK [18:00:23]MH_I2C_Read... [18:00:23]Read from MH i2c: 01 [18:00:23]MH_I2C_Read... [18:00:23]Read from MH i2c: 01 07 00 [18:00:23]MH_I2C_Read... [18:00:23]Read from MH i2c: 01 07 00 EC 03 00 01 00 00 00 FF 0F 05 [18:00:23]state=0 [18:00:23]No paper [18:00:23]int [18:00:23]Write to MH i2c: 01 00 00 ED 03 F0 [18:00:23]*** FLAG_PRN_PAP2 set [18:00:23]Write i2c OK [18:00:23]MH_I2C_Read... [18:00:23]Read from MH i2c: 01 [18:00:23]MH_I2C_Read... [18:00:23]Read from MH i2c: 01 07 00 [18:00:23]MH_I2C_Read... [18:00:23]Read from MH i2c: 01 07 00 ED 03 00 03 00 00 00 FF 0F 08 [18:00:23]state=0 [18:00:23]No paper [18:00:23]Cover opened [18:00:25]ConnectInit Can't take IP for lk.salyk.kg [18:00:25]CommunicateWithHost connect error [18:00:25]CommunicateWithHost err = -1 [18:00:25]OFD Sender: Server communicate error [18:00:27]ConnectInit Can't connect to host [18:00:28]Write to MH i2c: 01 00 00 EE 03 F1 [18:00:28]Write i2c OK [18:00:28]MH_I2C_Read... [18:00:28]Read from MH i2c: 01 [18:00:28]MH_I2C_Read... [18:00:28]Read from MH i2c: 01 07 00 [18:00:28]MH_I2C_Read... [18:00:28]Read from MH i2c: 01 07 00 EE 03 00 03 00 00 00 FF 0F 09 [18:00:28]state=3 [18:00:28]No paper [18:00:28]Cover opened [18:00:30]OFD Sender: Processing packet 139800 [packets to send 172, broken 136] [18:00:30]ProducePacketName [18:00:30]name=ofd_packets/00139800 [18:00:30]OFD Sender: To server: pG, [18:00:30]CommunicateWithHost lk.salyk.kg:30040 [18:00:30]ConnectInit lk.salyk.kg [18:00:33]Write to MH i2c: 01 00 00 EF 03 F2 [18:00:33]Write i2c OK [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: 01 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: 01 07 00 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: 01 07 00 EF 03 00 03 00 00 00 FF 0F 0A [18:00:33]state=3 [18:00:33]No paper [18:00:33]Cover opened [18:00:35]ConnectInit Can't take IP for lk.salyk.kg [18:00:35]CommunicateWithHost connect error [18:00:35]CommunicateWithHost err = -1 [18:00:35]OFD Sender: Server communicate error [18:00:35]int [18:00:35]Write to MH i2c: 01 00 00 F0 03 F3 [18:00:35]*** FLAG_PRN_PAP2 reset [18:00:35]*** FLAG_PRN_PAP1 reset [18:00:35]Write i2c OK [18:00:35]MH_I2C_Read... [18:00:35]Read from MH i2c: 01 [18:00:35]MH_I2C_Read... [18:00:35]Read from MH i2c: 01 07 00 [18:00:35]MH_I2C_Read... [18:00:35]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [18:00:35]state=3 [18:00:35]Cover closed [18:00:36]int [18:00:36]Write to MH i2c: 01 00 00 F1 03 F4 [18:00:36]*** FLAG_PRN_KEY set [18:00:36]Write i2c OK [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 07 00 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 07 00 F1 03 00 08 00 00 00 FF 0F 11 [18:00:36]state=0 [18:00:36]Key pressed [18:00:36]Feed [18:00:36]Write to MH i2c: D8 00 00 F2 03 CC [18:00:36]Write i2c OK [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: D8 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: D8 01 00 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: D8 01 00 F2 03 00 CD [18:00:36]int line is 0 - check status [18:00:36]Write to MH i2c: 01 00 00 F3 03 F6 [18:00:36]Write i2c OK [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 07 00 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 07 00 F3 03 00 48 00 00 00 3C 00 81 [18:00:36]state=2 [18:00:36]Key pressed [18:00:36]int [18:00:36]Write to MH i2c: 01 00 00 F4 03 F7 [18:00:36]Write i2c OK [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 07 00 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 07 00 F4 03 00 48 00 00 00 3C 00 82 [18:00:36]state=2 [18:00:36]Key pressed [18:00:36]int [18:00:36]Write to MH i2c: 01 00 00 F5 03 F8 [18:00:36]*** FLAG_PRN_KEY reset [18:00:36]Write i2c OK [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 07 00 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [18:00:37]state=2 [18:00:37]Stop feed [18:00:37]int [18:00:37]Write to MH i2c: 01 00 00 F6 03 F9 [18:00:37]*** FLAG_PRN_KEY set [18:00:37]Write i2c OK [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: 01 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: 01 07 00 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: 01 07 00 F6 03 00 08 00 00 00 FF 0F 16 [18:00:37]state=0 [18:00:37]Key pressed [18:00:37]Feed [18:00:37]Write to MH i2c: D8 00 00 F7 03 D1 [18:00:37]Write i2c OK [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: D8 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: D8 01 00 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: D8 01 00 F7 03 00 D2 [18:00:37]int line is 0 - check status [18:00:37]Write to MH i2c: 01 00 00 F8 03 FB [18:00:37]*** FLAG_PRN_KEY reset [18:00:37]Write i2c OK [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: 01 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: 01 07 00 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: 01 07 00 F8 03 00 00 00 00 00 FA 0F 0B [18:00:37]state=2 [18:00:37]Stop feed [18:00:37]int [18:00:37]Write to MH i2c: 01 00 00 F9 03 FC [18:00:37]Write i2c OK [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: 01 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: 01 07 00 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: 01 07 00 F9 03 00 00 00 00 00 FF 0F 11 [18:00:37]state=0 [18:00:40]OFD Sender: Processing packet 139800 [packets to send 172, broken 136] [18:00:40]ProducePacketName [18:00:40]name=ofd_packets/00139800 [18:00:40]OFD Sender: To server: pG, [18:00:40]CommunicateWithHost lk.salyk.kg:30040 [18:00:40]ConnectInit lk.salyk.kg [18:00:45]ConnectInit Can't take IP for lk.salyk.kg [18:00:45]CommunicateWithHost connect error [18:00:45]CommunicateWithHost err = -1 [18:00:45]OFD Sender: Server communicate error [18:00:50]OFD Sender: Processing packet 139800 [packets to send 172, broken 136] [18:00:50]ProducePacketName [18:00:50]name=ofd_packets/00139800 [18:00:50]OFD Sender: To server: pG, [18:00:50]CommunicateWithHost lk.salyk.kg:30040 [18:00:50]ConnectInit lk.salyk.kg [18:00:55]ConnectInit Can't take IP for lk.salyk.kg [18:00:55]CommunicateWithHost connect error [18:00:55]CommunicateWithHost err = -1 [18:00:55]OFD Sender: Server communicate error [18:00:56]accept exits with 11 [18:00:56]New connection [18:00:56]New thread 3067219300 created [18:00:56]Thread 3067362660 joined [18:00:56]Waiting for new connection... [18:00:56] Sock 11.Parse request [18:00:56]Sock 11.Check first char [18:00:56]Sock 11.First char is OK [18:00:56]request: POST /json_proto HTTP/1.0 [18:00:56]Method: POST [18:00:56]URL: /json_proto [18:00:56]Method is POST - this is cgi request [18:00:56]url: /json_proto [18:00:56]query_string will be loaded in cgi processing [18:00:56]execute_cgi json_proto POST (null) [18:00:56]execute_cgi path=json_proto method=POST [18:00:56]POST find Content-Length [18:00:56]Host: 172.17.45.67:8080 [18:00:56]Content-Length: 682 [18:00:56]Content-Type: application/json [18:00:56] [18:00:56]POST finish read [18:00:56]Found Content-Length = 682 [18:00:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:56]execute_script... [18:00: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)593685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:56]POST & json_proto [18:00:56]process_json_proto [18:00:56]json parsed OK: [18:00:56]protocol is kg_v1.0 [18:00:56]action value=close_receipt [18:00:56]process_action close_receipt [18:00:56]cmd_close_receipt [18:00:56]MH_GetDate [18:00:56]Write to MH i2c: F0 00 00 FA 03 EC [18:00:56]Write i2c OK [18:00:56]MH_I2C_Read... [18:00:56]Read from MH i2c: F0 [18:00:56]MH_I2C_Read... [18:00:56]Read from MH i2c: F0 09 00 [18:00:56]MH_I2C_Read... [18:00:56]Read from MH i2c: F0 09 00 FA 03 00 D8 D9 C4 66 5F 7F 2B 66 3F [18:00:56]GetLastDocTimeStamp 1724176815 [18:00:56]current date 1724176856 [18:00:56]FM_GetShiftState [18:00:56]SAM_PROTO_GetShiftState [18:00:56]wFMCommunicate request_size=4 [18:00:56]MH_SAM_APDU [18:00:56]CAPDU: 80 13 01 00 [18:00:56]Write to MH i2c: E2 08 00 FB 03 80 13 01 00 00 00 00 00 7B [18:00:56]Write i2c OK [18:00:56]MH_I2C_Read... [18:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:56]Read from MH i2c: E2 [18:00:56]MH_I2C_Read... [18:00:56]Read from MH i2c: E2 0E 00 [18:00:56]MH_I2C_Read... [18:00:56]Read from MH i2c: E2 0E 00 FB 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0C [18:00:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:00:56]wFMCommunicate OK [18:00:56]SAM_PROTO_GetShiftState done [18:00:56]FM_GetShiftState done [18:00:56]opened in 1724113785 [18:00:56]opened+sec_in_day 1724200185 [18:00:56]quantity*price = 200043 [18:00:56]sum+1 = 200044 [18:00:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 308 20.08.2024 18:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139836 ФПД: 178495712356156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180056&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139836&fm=178495712356156&tin=02508201610067®Number=0000000000092569&sum=200000 [18:00:59]StoreToDocumentArchive [18:00:59]shift 453 fd 139836 [18:00:59]save to /storage/0453/doc_00139836 [18:00:59]save last doc name /storage/0453/doc_00139836 to /storage/kkm_last_doc_name [18:00:59]save OK [18:00:59]Clear old archive folders... [18:00:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:59]tlvbuf is 002784A0 [18:00:59]SAM_PROTO_ClearQueue [18:00:59]wFMCommunicate request_size=4 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 09 00 00 [18:00:59]Write to MH i2c: E2 08 00 08 04 80 09 00 00 00 00 00 00 7E [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 03 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [18:00:59]RAPDU: 90 00 [18:00:59]wFMCommunicate OK [18:00:59]SAM_PROTO_ClearQueue done [18:00:59]KKMCreateOFDPacket [18:00:59]OFDProtocolAddRootSTLVToBuf [18:00:59]FM_MakeSignedData [18:00:59]FM_MakeSignedData [18:00:59]SAM_PROTO_SignData [18:00:59]wFMCommunicate request_size=4 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 0D 01 02 [18:00:59]Write to MH i2c: E2 08 00 09 04 80 0D 01 02 00 00 00 00 86 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 03 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [18:00:59]RAPDU: 90 00 [18:00:59]wFMCommunicate OK [18:00:59]wFMCommunicate request_size=255 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 34 01 00 00 F4 03 04 00 D8 D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 22 02 00 35 04 06 00 A2 [18:00:59]Write to MH i2c: E2 02 01 0A 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 D8 D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 22 02 00 35 04 06 00 A2 00 00 9F [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 0A 04 00 90 00 82 [18:01:00]RAPDU: 90 00 [18:01:00]wFMCommunicate OK [18:01:00]wFMCommunicate request_size=10 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 0D 02 02 05 57 45 87 67 3C [18:01:00]Write to MH i2c: E2 0D 00 0B 04 80 0D 02 02 05 00 57 45 87 67 3C 00 00 59 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]OFD Sender: Processing packet 139800 [packets to send 172, broken 136] [18:01:00]ProducePacketName [18:01:00]name=ofd_packets/00139800 [18:01:00]OFD Sender: To server: pG, [18:01:00]CommunicateWithHost lk.salyk.kg:30040 [18:01:00]ConnectInit lk.salyk.kg [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:00]Read from MH i2c: E2 03 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 03 00 0B 04 00 90 00 83 [18:01:00]RAPDU: 90 00 [18:01:00]wFMCommunicate OK [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 0D 03 02 [18:01:00]Write to MH i2c: E2 08 00 0C 04 80 0D 03 02 00 00 00 00 8B [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 0B 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 0B 00 0C 04 00 55 20 10 BA 05 E3 81 5F 90 00 93 [18:01:00]RAPDU: 55 20 10 BA 05 E3 81 5F 90 00 [18:01:00]wFMCommunicate OK [18:01:00]SAM_PROTO_SignData done [18:01:00]FM_MakeSignedData done [18:01:00]CreateOFDProtocolMessage [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 11 00 00 [18:01:00]Write to MH i2c: E2 08 00 0D 04 80 11 00 00 00 00 00 00 8B [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 17 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 17 00 0D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [18:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:01:00]wFMCommunicate OK [18:01:00]CreateOFDProtocolMessage done [18:01:00]OFDSenderStorePacket 139836 [18:01:00]StoreOFDPacket docnum=139836 [18:01:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 78 20 07 01 40 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 D8 D9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 22 02 00 35 04 06 00 A2 57 45 87 67 3C 55 20 10 BA 05 E3 81 5F [18:01:00]CheckFolder [18:01:00]dirname=/storage/ofd_packets [18:01:00]CheckFolder done [18:01:00]ProducePacketName [18:01:00]name=ofd_packets/00139836 [18:01:00]NVStorageSaveData ofd_packets/00139836 [18:01:00]File name is /storage/ofd_packets/00139836 [18:01:00]Write 301 bytes [18:01:00]NVStorageSaveData done [18:01:00]OFDSenderStorePacket done [18:01:00]KKMCreateOFDPacket done [18:01:00]NVStorageSaveData kkm_last_timestamp [18:01:00]File name is /storage/kkm_last_timestamp [18:01:00]Write 4 bytes [18:01:00]NVStorageSaveData done [18:01:00]ExternCall_PrintAddStr [18:01:00]wPrintStart [18:01:00]Write to MH i2c: 01 00 00 0E 04 12 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: 01 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: 01 07 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 FF 0F 27 [18:01:01]RasterBufferAndPrint [18:01:01]line Счет N : (1)593685 [18:01:01]line ИНН: 02508201610067 [18:01:01]line Контрольно-Кассовый Чек [18:01:01]line ПРОДАЖА [18:01:01]line ТРК (МРК, ГНК) : 31 [18:01:01]line Товар: 2710124500 [18:01:01]line Аи-95-К-5 [18:01:01]line 26.960 * 74.20 [18:01:01]line = 2000.43 [18:01:01]line НДС 12% НСП 1% [18:01:01]line > о реализуемом товаре [18:01:01]line ОКРУГЛЕНИЕ: -0.43 [18:01:01]line ИТОГО: 2000.00 [18:01:01]line Внесено: 2000.00 [18:01:01]line СДАЧА: 0.00 [18:01:01]line НСП 1% : 17.70 [18:01:01]line НДС 12% : 212.43 [18:01:01]line Наличными: 2000.00 [18:01:01]line Безнал.: 0.00 [18:01:01]line Место: АЗС № 136 "Партнер Нефть" [18:01:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:01:01]line СНО: Общий режим [18:01:01]line Чек 308 20.08.2024 18:00 [18:01:01]line Смена: 453 ФФД: 1.0 [18:01:01]line ЗНМ: 0300000067 [18:01:01]line РНМ: 0000000000092569 [18:01:01]line Версия ККМ: 001 [18:01:01]line ФМ: 0000000000871776 [18:01:01]line ФД: 139836 [18:01:01]line ФПД: 178495712356156 [18:01:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180056&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139836&fm=178495712356156&tin=02508201610067®Number=0000000000092569&sum=200000 [18:01:01]written 0, free lines is 4095 [18:01:01]Write to MH i2c: 01 00 00 39 04 3D [18:01:01]Write i2c OK [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: 01 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: 01 07 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 F2 0C 42 [18:01:01]RasterBufferAndPrint [18:01:01]line [18:01:01]line [18:01:01]line [18:01:01]line [18:01:01]line [18:01:01]written 0, free lines is 3402 [18:01:01]MH_Cut [18:01:01]Write to MH i2c: D1 01 00 40 04 01 16 [18:01:01]Write i2c OK [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: D1 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: D1 01 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: D1 01 00 40 04 00 15 [18:01:01]Write to MH i2c: 01 00 00 41 04 45 [18:01:01]Write i2c OK [18:01:01]MH_I2C_Read... [18:01:02]*** Cut start [18:01:02]*** Partial cut [18:01:02]*** CUTSNS_PIN = 1 [18:01:02]*** CUTSNS_PIN = 0 [18:01:02]*** Brake cut motor [18:01:02]Read from MH i2c: 01 [18:01:02]MH_I2C_Read... [18:01:02]*** Stop cut motor [18:01:02]*** Cut end [18:01:02]Read from MH i2c: 01 07 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: 01 07 00 41 04 00 00 00 00 00 FF 0F 5A [18:01:02]process_action close_receipt done [18:01:02]requested_data is exist [18:01:02]produce_requested_data [18:01:02]requested_item fm.sn is exist - process it [18:01:02]wFMCommunicate request_size=4 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 11 00 00 [18:01:02]Write to MH i2c: E2 08 00 42 04 80 11 00 00 00 00 00 00 C0 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 17 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 17 00 42 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [18:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:01:03]wFMCommunicate OK [18:01:03]requested_item fd.num is exist - process it [18:01:03]SAM_PROTO_GetFieldsCounters [18:01:03]wFMCommunicate request_size=4 [18:01:03]MH_SAM_APDU [18:01:03]CAPDU: 80 13 00 00 [18:01:03]Write to MH i2c: E2 08 00 43 04 80 13 00 00 00 00 00 00 C3 [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:03]Read from MH i2c: E2 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: E2 62 00 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: E2 62 00 43 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 22 02 00 0E 04 04 00 C5 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 B3 [18:01:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 22 02 00 0E 04 04 00 C5 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 [18:01:03]wFMCommunicate OK [18:01:03]SAM_PROTO_GetFieldsCounters done [18:01:03]requested_item shift.num is exist - process it [18:01:03]requested_item shift.opened is exist - process it [18:01:03]req_shift_opened [18:01:03]FM_GetShiftState [18:01:03]SAM_PROTO_GetShiftState [18:01:03]wFMCommunicate request_size=4 [18:01:03]MH_SAM_APDU [18:01:03]CAPDU: 80 13 01 00 [18:01:03]Write to MH i2c: E2 08 00 44 04 80 13 01 00 00 00 00 00 C5 [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:03]Read from MH i2c: E2 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: E2 0E 00 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: E2 0E 00 44 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 56 [18:01:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:01:03]wFMCommunicate OK [18:01:03]SAM_PROTO_GetShiftState done [18:01:03]FM_GetShiftState done [18:01:03]req_shift_opened done [18:01:03]requested_item shift.open_date is exist - process it [18:01:03]req_shift_open_date [18:01:03]req_shift_open_date done [18:01:03]produce_requested_data done [18:01:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139836,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:01:03]process_action_free close_receipt [18:01:03]json_value_free [18:01:03]json_value_free done [18:01:03]process_json_proto returns [18:01:03]Send response to host [18:01:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139836,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:01:03]free response buf [18:01:03]execute_script done [18:01:03]execute_script returns [18:01:03]free content buf [18:01:03]Sock 11.Close socket [18:01:03]Sock 11.Thread stoped [18:01:05]ConnectInit Can't take IP for lk.salyk.kg [18:01:05]CommunicateWithHost connect error [18:01:05]CommunicateWithHost err = -1 [18:01:05]OFD Sender: Server communicate error [18:01:05]OFD Sender: Processing packet 139800 [packets to send 173, broken 136] [18:01:05]ProducePacketName [18:01:05]name=ofd_packets/00139800 [18:01:05]OFD Sender: To server: pG, [18:01:05]CommunicateWithHost lk.salyk.kg:30040 [18:01:05]ConnectInit lk.salyk.kg [18:01:10]ConnectInit Can't take IP for lk.salyk.kg [18:01:10]CommunicateWithHost connect error [18:01:10]CommunicateWithHost err = -1 [18:01:10]OFD Sender: Server communicate error [18:01:15]OFD Sender: Processing packet 139800 [packets to send 173, broken 136] [18:01:15]ProducePacketName [18:01:15]name=ofd_packets/00139800 [18:01:15]OFD Sender: To server: pG, [18:01:15]CommunicateWithHost lk.salyk.kg:30040 [18:01:15]ConnectInit lk.salyk.kg [18:01:20]ConnectInit Can't take IP for lk.salyk.kg [18:01:20]CommunicateWithHost connect error [18:01:20]CommunicateWithHost err = -1 [18:01:20]OFD Sender: Server communicate error [18:01:25]OFD Sender: Processing packet 139800 [packets to send 173, broken 136] [18:01:25]ProducePacketName [18:01:25]name=ofd_packets/00139800 [18:01:25]OFD Sender: To server: pG, [18:01:25]CommunicateWithHost lk.salyk.kg:30040 [18:01:25]ConnectInit lk.salyk.kg [18:01:30]ConnectInit Can't take IP for lk.salyk.kg [18:01:30]CommunicateWithHost connect error [18:01:30]CommunicateWithHost err = -1 [18:01:30]OFD Sender: Server communicate error [18:01:35]OFD Sender: Processing packet 139800 [packets to send 173, broken 136] [18:01:35]ProducePacketName [18:01:35]name=ofd_packets/00139800 [18:01:35]OFD Sender: To server: pG, [18:01:35]CommunicateWithHost lk.salyk.kg:30040 [18:01:35]ConnectInit lk.salyk.kg [18:01:40]ConnectInit Can't take IP for lk.salyk.kg [18:01:40]CommunicateWithHost connect error [18:01:40]CommunicateWithHost err = -1 [18:01:40]OFD Sender: Server communicate error [18:01:45]OFD Sender: Processing packet 139800 [packets to send 173, broken 136] [18:01:45]ProducePacketName [18:01:45]name=ofd_packets/00139800 [18:01:45]OFD Sender: To server: pG, [18:01:45]CommunicateWithHost lk.salyk.kg:30040 [18:01:45]ConnectInit lk.salyk.kg [18:01:50]ConnectInit Can't take IP for lk.salyk.kg [18:01:50]CommunicateWithHost connect error [18:01:50]CommunicateWithHost err = -1 [18:01:50]OFD Sender: Server communicate error [18:01:55]OFD Sender: Processing packet 139800 [packets to send 173, broken 136] [18:01:55]ProducePacketName [18:01:55]name=ofd_packets/00139800 [18:01:55]OFD Sender: To server: pG, [18:01:55]CommunicateWithHost lk.salyk.kg:30040 [18:01:55]ConnectInit lk.salyk.kg [18:02:00]ConnectInit Can't take IP for lk.salyk.kg [18:02:00]CommunicateWithHost connect error [18:02:00]CommunicateWithHost err = -1 [18:02:00]OFD Sender: Server communicate error [18:02:05]OFD Sender: Processing packet 139800 [packets to send 173, broken 136] [18:02:05]ProducePacketName [18:02:05]name=ofd_packets/00139800 [18:02:05]OFD Sender: To server: pG, [18:02:05]CommunicateWithHost lk.salyk.kg:30040 [18:02:05]ConnectInit lk.salyk.kg [18:02:10]ConnectInit Can't take IP for lk.salyk.kg [18:02:10]CommunicateWithHost connect error [18:02:10]CommunicateWithHost err = -1 [18:02:10]OFD Sender: Server communicate error [18:02:15]OFD Sender: Processing packet 139800 [packets to send 173, broken 136] [18:02:15]ProducePacketName [18:02:15]name=ofd_packets/00139800 [18:02:15]OFD Sender: To server: pG, [18:02:15]CommunicateWithHost lk.salyk.kg:30040 [18:02:15]ConnectInit lk.salyk.kg [18:02:20]ConnectInit Can't take IP for lk.salyk.kg [18:02:20]CommunicateWithHost connect error [18:02:20]CommunicateWithHost err = -1 [18:02:20]OFD Sender: Server communicate error [18:02:22]accept exits with 7 [18:02:22]New connection [18:02:22]New thread 3067362660 created [18:02:22]Thread 3067219300 joined [18:02:22]Waiting for new connection... [18:02:22] Sock 7.Parse request [18:02:22]Sock 7.Check first char [18:02:22]Sock 7.First char is OK [18:02:22]request: POST /json_proto HTTP/1.0 [18:02:22]Method: POST [18:02:22]URL: /json_proto [18:02:22]Method is POST - this is cgi request [18:02:22]url: /json_proto [18:02:22]query_string will be loaded in cgi processing [18:02:22]execute_cgi json_proto POST (null) [18:02:22]execute_cgi path=json_proto method=POST [18:02:22]POST find Content-Length [18:02:22]Host: 172.17.45.67:8080 [18:02:22]Content-Length: 677 [18:02:22]Content-Type: application/json [18:02:22] [18:02:22]POST finish read [18:02:22]Found Content-Length = 677 [18:02:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.800, "sum" : 325.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 325.00, "total" : 325.00, "payments": [ { "type": 0, "sum" : 325.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:22]execute_script... [18:02: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)593688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.800, "sum" : 325.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 325.00, "total" : 325.00, "payments": [ { "type": 0, "sum" : 325.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:22]POST & json_proto [18:02:22]process_json_proto [18:02:22]json parsed OK: [18:02:22]protocol is kg_v1.0 [18:02:22]action value=close_receipt [18:02:22]process_action close_receipt [18:02:22]cmd_close_receipt [18:02:22]MH_GetDate [18:02:22]Write to MH i2c: F0 00 00 45 04 38 [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: F0 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: F0 09 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: F0 09 00 45 04 00 2E DA C4 66 5F 7F 2B 66 E2 [18:02:22]GetLastDocTimeStamp 1724176856 [18:02:22]current date 1724176942 [18:02:22]FM_GetShiftState [18:02:22]SAM_PROTO_GetShiftState [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 13 01 00 [18:02:22]Write to MH i2c: E2 08 00 46 04 80 13 01 00 00 00 00 00 C7 [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 0E 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 0E 00 46 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 58 [18:02:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:02:23]wFMCommunicate OK [18:02:23]SAM_PROTO_GetShiftState done [18:02:23]FM_GetShiftState done [18:02:23]opened in 1724113785 [18:02:23]opened+sec_in_day 1724200185 [18:02:23]quantity*price = 32544 [18:02:23]sum+1 = 32545 [18:02:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 325.00 Внесено: 325.00 СДАЧА: 0.00 НСП 1% : 2.88 НДС 12% : 34.56 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 309 20.08.2024 18:02 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139837 ФПД: 271662631924275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180223&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139837&fm=271662631924275&tin=02508201610067®Number=0000000000092569&sum=32500 [18:02:25]StoreToDocumentArchive [18:02:25]shift 453 fd 139837 [18:02:25]save to /storage/0453/doc_00139837 [18:02:25]save last doc name /storage/0453/doc_00139837 to /storage/kkm_last_doc_name [18:02:25]save OK [18:02:25]Clear old archive folders... [18:02:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:25]tlvbuf is 002A2710 [18:02:25]SAM_PROTO_ClearQueue [18:02:25]wFMCommunicate request_size=4 [18:02:25]MH_SAM_APDU [18:02:25]CAPDU: 80 09 00 00 [18:02:25]Write to MH i2c: E2 08 00 53 04 80 09 00 00 00 00 00 00 C9 [18:02:25]Write i2c OK [18:02:25]MH_I2C_Read... [18:02:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:25]Read from MH i2c: E2 [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: E2 03 00 [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [18:02:25]RAPDU: 90 00 [18:02:25]wFMCommunicate OK [18:02:25]SAM_PROTO_ClearQueue done [18:02:25]KKMCreateOFDPacket [18:02:25]OFDProtocolAddRootSTLVToBuf [18:02:25]FM_MakeSignedData [18:02:25]FM_MakeSignedData [18:02:25]SAM_PROTO_SignData [18:02:25]wFMCommunicate request_size=4 [18:02:25]MH_SAM_APDU [18:02:25]CAPDU: 80 0D 01 02 [18:02:25]Write to MH i2c: E2 08 00 54 04 80 0D 01 02 00 00 00 00 D1 [18:02:25]Write i2c OK [18:02:25]MH_I2C_Read... [18:02:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:25]Read from MH i2c: E2 [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: E2 03 00 [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [18:02:25]RAPDU: 90 00 [18:02:25]wFMCommunicate OK [18:02:25]wFMCommunicate request_size=255 [18:02:25]MH_SAM_APDU [18:02:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 20 7F OFD Sender: Processing packet 139800 [packets to send 173, broken 136] [18:02:25]00 ProducePacketName [18:02:25]00 name=ofd_packets/00139800 [18:02:25]00 00 F2 03 01 00 01 OFD Sender: To server: pG, [18:02:25]F6 CommunicateWithHost lk.salyk.kg:30040 [18:02:25]03 ConnectInit lk.salyk.kg [18:02:25]01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 2F DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 22 02 00 35 04 06 00 F7 [18:02:26]Write to MH i2c: E2 02 01 55 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 20 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 2F DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 22 02 00 35 04 06 00 F7 00 00 05 [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:26]Read from MH i2c: E2 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [18:02:27]RAPDU: 90 00 [18:02:27]wFMCommunicate OK [18:02:27]wFMCommunicate request_size=10 [18:02:27]MH_SAM_APDU [18:02:27]CAPDU: 80 0D 02 02 05 13 62 AC B2 33 [18:02:27]Write to MH i2c: E2 0D 00 56 04 80 0D 02 02 05 00 13 62 AC B2 33 00 00 E4 [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:27]Read from MH i2c: E2 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 03 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 03 00 56 04 00 90 00 CE [18:02:27]RAPDU: 90 00 [18:02:27]wFMCommunicate OK [18:02:27]wFMCommunicate request_size=4 [18:02:27]MH_SAM_APDU [18:02:27]CAPDU: 80 0D 03 02 [18:02:27]Write to MH i2c: E2 08 00 57 04 80 0D 03 02 00 00 00 00 D6 [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:27]Read from MH i2c: E2 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 0B 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 0B 00 57 04 00 36 F6 52 E7 87 E4 BB 16 90 00 78 [18:02:27]RAPDU: 36 F6 52 E7 87 E4 BB 16 90 00 [18:02:27]wFMCommunicate OK [18:02:27]SAM_PROTO_SignData done [18:02:27]FM_MakeSignedData done [18:02:27]CreateOFDProtocolMessage [18:02:27]wFMCommunicate request_size=4 [18:02:27]MH_SAM_APDU [18:02:27]CAPDU: 80 11 00 00 [18:02:27]Write to MH i2c: E2 08 00 58 04 80 11 00 00 00 00 00 00 D6 [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:27]Read from MH i2c: E2 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 17 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 17 00 58 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2D [18:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:02:27]wFMCommunicate OK [18:02:27]CreateOFDProtocolMessage done [18:02:27]OFDSenderStorePacket 139837 [18:02:27]StoreOFDPacket docnum=139837 [18:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AC 02 07 01 AC 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 12 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 20 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 2F DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 22 02 00 35 04 06 00 F7 13 62 AC B2 33 36 F6 52 E7 87 E4 BB 16 [18:02:27]CheckFolder [18:02:27]dirname=/storage/ofd_packets [18:02:27]CheckFolder done [18:02:27]ProducePacketName [18:02:27]name=ofd_packets/00139837 [18:02:27]NVStorageSaveData ofd_packets/00139837 [18:02:27]File name is /storage/ofd_packets/00139837 [18:02:27]Write 301 bytes [18:02:27]NVStorageSaveData done [18:02:27]OFDSenderStorePacket done [18:02:27]KKMCreateOFDPacket done [18:02:27]NVStorageSaveData kkm_last_timestamp [18:02:27]File name is /storage/kkm_last_timestamp [18:02:27]Write 4 bytes [18:02:27]NVStorageSaveData done [18:02:27]ExternCall_PrintAddStr [18:02:27]wPrintStart [18:02:27]Write to MH i2c: 01 00 00 59 04 5D [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: 01 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: 01 07 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 FF 0F 72 [18:02:27]RasterBufferAndPrint [18:02:27]line Счет N : (1)593688 [18:02:27]line ИНН: 02508201610067 [18:02:27]line Контрольно-Кассовый Чек [18:02:27]line ПРОДАЖА [18:02:27]line ТРК (МРК, ГНК) : 62 [18:02:27]line Товар: 2710124130 [18:02:27]line Аи-92-К-5 [18:02:27]line 4.800 * 67.80 [18:02:27]line = 325.44 [18:02:27]line НДС 12% НСП 1% [18:02:27]line > о реализуемом товаре [18:02:27]line ОКРУГЛЕНИЕ: -0.44 [18:02:27]line ИТОГО: 325.00 [18:02:27]line Внесено: 325.00 [18:02:27]line СДАЧА: 0.00 [18:02:27]line НСП 1% : 2.88 [18:02:27]line НДС 12% : 34.56 [18:02:27]line Наличными: 325.00 [18:02:27]line Безнал.: 0.00 [18:02:27]line Место: АЗС № 136 "Партнер Нефть" [18:02:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:02:27]line СНО: Общий режим [18:02:27]line Чек 309 20.08.2024 18:02 [18:02:27]line Смена: 453 ФФД: 1.0 [18:02:27]line ЗНМ: 0300000067 [18:02:27]line РНМ: 0000000000092569 [18:02:27]line Версия ККМ: 001 [18:02:27]line ФМ: 0000000000871776 [18:02:27]line ФД: 139837 [18:02:27]line ФПД: 271662631924275 [18:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180223&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139837&fm=271662631924275&tin=02508201610067®Number=0000000000092569&sum=32500 [18:02:27]written 0, free lines is 4095 [18:02:28]Write to MH i2c: 01 00 00 84 04 88 [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: 01 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: 01 07 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: 01 07 00 84 04 00 00 00 00 00 F2 0C 8D [18:02:28]RasterBufferAndPrint [18:02:28]line [18:02:28]line [18:02:28]line [18:02:28]line [18:02:28]line [18:02:28]written 0, free lines is 3413 [18:02:28]MH_Cut [18:02:28]Write to MH i2c: D1 01 00 8B 04 01 61 [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: D1 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: D1 01 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: D1 01 00 8B 04 00 60 [18:02:28]Write to MH i2c: 01 00 00 8C 04 90 [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]*** Cut start [18:02:28]*** Partial cut [18:02:28]*** CUTSNS_PIN = 1 [18:02:28]*** CUTSNS_PIN = 0 [18:02:29]*** Brake cut motor [18:02:29]Read from MH i2c: 01 [18:02:29]MH_I2C_Read... [18:02:29]*** Stop cut motor [18:02:29]*** Cut end [18:02:29]Read from MH i2c: 01 07 00 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: 01 07 00 8C 04 00 00 00 00 00 FF 0F A5 [18:02:29]process_action close_receipt done [18:02:29]requested_data is exist [18:02:29]produce_requested_data [18:02:29]requested_item fm.sn is exist - process it [18:02:29]wFMCommunicate request_size=4 [18:02:29]MH_SAM_APDU [18:02:29]CAPDU: 80 11 00 00 [18:02:29]Write to MH i2c: E2 08 00 8D 04 80 11 00 00 00 00 00 00 0B [18:02:29]Write i2c OK [18:02:29]MH_I2C_Read... [18:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:29]Read from MH i2c: E2 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 17 00 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 17 00 8D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [18:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:02:29]wFMCommunicate OK [18:02:29]requested_item fd.num is exist - process it [18:02:29]SAM_PROTO_GetFieldsCounters [18:02:29]wFMCommunicate request_size=4 [18:02:29]MH_SAM_APDU [18:02:29]CAPDU: 80 13 00 00 [18:02:29]Write to MH i2c: E2 08 00 8E 04 80 13 00 00 00 00 00 00 0E [18:02:29]Write i2c OK [18:02:29]MH_I2C_Read... [18:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:29]Read from MH i2c: E2 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 62 00 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 62 00 8E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 22 02 00 0E 04 04 00 C5 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 02 [18:02:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 22 02 00 0E 04 04 00 C5 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 [18:02:30]wFMCommunicate OK [18:02:30]SAM_PROTO_GetFieldsCounters done [18:02:30]requested_item shift.num is exist - process it [18:02:30]requested_item shift.opened is exist - process it [18:02:30]req_shift_opened [18:02:30]FM_GetShiftState [18:02:30]SAM_PROTO_GetShiftState [18:02:30]wFMCommunicate request_size=4 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 13 01 00 [18:02:30]Write to MH i2c: E2 08 00 8F 04 80 13 01 00 00 00 00 00 10 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 0E 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 0E 00 8F 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A1 [18:02:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:02:30]wFMCommunicate OK [18:02:30]SAM_PROTO_GetShiftState done [18:02:30]FM_GetShiftState done [18:02:30]req_shift_opened done [18:02:30]requested_item shift.open_date is exist - process it [18:02:30]req_shift_open_date [18:02:30]req_shift_open_date done [18:02:30]produce_requested_data done [18:02:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139837,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:02:30]process_action_free close_receipt [18:02:30]json_value_free [18:02:30]json_value_free done [18:02:30]process_json_proto returns [18:02:30]Send response to host [18:02:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139837,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:02:30]free response buf [18:02:30]execute_script done [18:02:30]execute_script returns [18:02:30]free content buf [18:02:30]Sock 7.Close socket [18:02:30]Sock 7.Thread stoped [18:02:30]ConnectInit Can't take IP for lk.salyk.kg [18:02:31]CommunicateWithHost connect error [18:02:31]CommunicateWithHost err = -1 [18:02:31]OFD Sender: Server communicate error [18:02:31]OFD Sender: Processing packet 139800 [packets to send 174, broken 136] [18:02:31]ProducePacketName [18:02:31]name=ofd_packets/00139800 [18:02:31]OFD Sender: To server: pG, [18:02:31]CommunicateWithHost lk.salyk.kg:30040 [18:02:31]ConnectInit lk.salyk.kg [18:02:36]ConnectInit Can't take IP for lk.salyk.kg [18:02:36]CommunicateWithHost connect error [18:02:36]CommunicateWithHost err = -1 [18:02:36]OFD Sender: Server communicate error [18:02:41]OFD Sender: Processing packet 139800 [packets to send 174, broken 136] [18:02:41]ProducePacketName [18:02:41]name=ofd_packets/00139800 [18:02:41]OFD Sender: To server: pG, [18:02:41]CommunicateWithHost lk.salyk.kg:30040 [18:02:41]ConnectInit lk.salyk.kg [18:02:45]ConnectInit Can't connect to host [18:02:46]ConnectInit Can't take IP for lk.salyk.kg [18:02:46]CommunicateWithHost connect error [18:02:46]CommunicateWithHost err = -1 [18:02:46]OFD Sender: Server communicate error [18:02:51]OFD Sender: Processing packet 139800 [packets to send 174, broken 136] [18:02:51]ProducePacketName [18:02:51]name=ofd_packets/00139800 [18:02:51]OFD Sender: To server: pG, [18:02:51]CommunicateWithHost lk.salyk.kg:30040 [18:02:51]ConnectInit lk.salyk.kg [18:02:56]ConnectInit Can't take IP for lk.salyk.kg [18:02:56]CommunicateWithHost connect error [18:02:56]CommunicateWithHost err = -1 [18:02:56]OFD Sender: Server communicate error [18:03:01]OFD Sender: Processing packet 139800 [packets to send 174, broken 136] [18:03:01]ProducePacketName [18:03:01]name=ofd_packets/00139800 [18:03:01]OFD Sender: To server: pG, [18:03:01]CommunicateWithHost lk.salyk.kg:30040 [18:03:01]ConnectInit lk.salyk.kg [18:03:06]ConnectInit Can't take IP for lk.salyk.kg [18:03:06]CommunicateWithHost connect error [18:03:06]CommunicateWithHost err = -1 [18:03:06]OFD Sender: Server communicate error [18:03:11]OFD Sender: Processing packet 139800 [packets to send 174, broken 136] [18:03:11]ProducePacketName [18:03:11]name=ofd_packets/00139800 [18:03:11]OFD Sender: To server: pG, [18:03:11]CommunicateWithHost lk.salyk.kg:30040 [18:03:11]ConnectInit lk.salyk.kg [18:03:16]ConnectInit Can't take IP for lk.salyk.kg [18:03:16]CommunicateWithHost connect error [18:03:16]CommunicateWithHost err = -1 [18:03:16]OFD Sender: Server communicate error [18:03:18]accept exits with 9 [18:03:18]New connection [18:03:18]New thread 3067219300 created [18:03:18]Thread 3067362660 joined [18:03:18]Waiting for new connection... [18:03:18] Sock 9.Parse request [18:03:18]Sock 9.Check first char [18:03:18]Sock 9.First char is OK [18:03:18]request: POST /json_proto HTTP/1.0 [18:03:18]Method: POST [18:03:18]URL: /json_proto [18:03:18]Method is POST - this is cgi request [18:03:18]url: /json_proto [18:03:18]query_string will be loaded in cgi processing [18:03:18]execute_cgi json_proto POST (null) [18:03:18]execute_cgi path=json_proto method=POST [18:03:18]POST find Content-Length [18:03:18]Host: 172.17.45.67:8080 [18:03:18]Content-Length: 682 [18:03:18]Content-Type: application/json [18:03:18] [18:03:18]POST finish read [18:03:18]Found Content-Length = 682 [18:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:18]execute_script... [18:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:18]POST & json_proto [18:03:18]process_json_proto [18:03:18]json parsed OK: [18:03:18]protocol is kg_v1.0 [18:03:18]action value=close_receipt [18:03:18]process_action close_receipt [18:03:18]cmd_close_receipt [18:03:18]MH_GetDate [18:03:18]Write to MH i2c: F0 00 00 90 04 83 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: F0 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: F0 09 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: F0 09 00 90 04 00 66 DA C4 66 5F 7F 2B 66 65 [18:03:18]GetLastDocTimeStamp 1724176943 [18:03:18]current date 1724176998 [18:03:18]FM_GetShiftState [18:03:18]SAM_PROTO_GetShiftState [18:03:18]wFMCommunicate request_size=4 [18:03:18]MH_SAM_APDU [18:03:18]CAPDU: 80 13 01 00 [18:03:18]Write to MH i2c: E2 08 00 91 04 80 13 01 00 00 00 00 00 12 [18:03:18]Write i2c OK [18:03:18]MH_I2C_Read... [18:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:18]Read from MH i2c: E2 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0E 00 [18:03:18]MH_I2C_Read... [18:03:18]Read from MH i2c: E2 0E 00 91 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A3 [18:03:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:03:18]wFMCommunicate OK [18:03:18]SAM_PROTO_GetShiftState done [18:03:18]FM_GetShiftState done [18:03:18]opened in 1724113785 [18:03:18]opened+sec_in_day 1724200185 [18:03:18]quantity*price = 250054 [18:03:18]sum+1 = 250055 [18:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 310 20.08.2024 18:03 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139838 ФПД: 85441356970144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180319&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139838&fm=85441356970144&tin=02508201610067®Number=0000000000092569&sum=250000 [18:03:21]StoreToDocumentArchive [18:03:21]shift 453 fd 139838 [18:03:21]save to /storage/0453/doc_00139838 [18:03:21]save last doc name /storage/0453/doc_00139838 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 0014CB20 [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 9E 04 80 09 00 00 00 00 00 00 14 [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 9E 04 00 90 00 16 [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 9F 04 80 0D 01 02 00 00 00 00 1C [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 9F 04 00 90 00 17 [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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 67 DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 22 02 00 35 04 06 00 4D [18:03:22]Write to MH i2c: E2 02 01 A0 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 67 DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 22 02 00 35 04 06 00 4D 00 00 B7 [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:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 03 00 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 03 00 A0 04 00 90 00 18 [18:03:23]RAPDU: 90 00 [18:03:23]wFMCommunicate OK [18:03:23]wFMCommunicate request_size=10 [18:03:23]MH_SAM_APDU [18:03:23]CAPDU: 80 0D 02 02 05 B5 5D BB 38 A0 [18:03:23]Write to MH i2c: E2 0D 00 A1 04 80 0D 02 02 05 00 B5 5D BB 38 A0 00 00 CE [18:03:23]Write i2c OK [18:03:23]MH_I2C_Read... [18:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:23]Read from MH i2c: E2 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 03 00 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 03 00 A1 04 00 90 00 19 [18:03:23]RAPDU: 90 00 [18:03:23]wFMCommunicate OK [18:03:23]wFMCommunicate request_size=4 [18:03:23]MH_SAM_APDU [18:03:23]CAPDU: 80 0D 03 02 [18:03:23]Write to MH i2c: E2 08 00 A2 04 80 0D 03 02 00 00 00 00 21 [18:03:23]Write i2c OK [18:03:23]MH_I2C_Read... [18:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:23]Read from MH i2c: E2 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 0B 00 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 0B 00 A2 04 00 C9 F8 1F 36 98 8B 9C F8 90 00 EF [18:03:23]RAPDU: C9 F8 1F 36 98 8B 9C F8 90 00 [18:03:23]wFMCommunicate OK [18:03:23]SAM_PROTO_SignData done [18:03:23]FM_MakeSignedData done [18:03:23]CreateOFDProtocolMessage [18:03:23]wFMCommunicate request_size=4 [18:03:23]MH_SAM_APDU [18:03:23]CAPDU: 80 11 00 00 [18:03:23]Write to MH i2c: E2 08 00 A3 04 80 11 00 00 00 00 00 00 21 [18:03:23]Write i2c OK [18:03:23]MH_I2C_Read... [18:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:23]Read from MH i2c: E2 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 17 00 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: E2 17 00 A3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 78 [18:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:03:23]wFMCommunicate OK [18:03:23]CreateOFDProtocolMessage done [18:03:23]OFDSenderStorePacket 139838 [18:03:23]StoreOFDPacket docnum=139838 [18:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F9 32 07 01 32 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 67 DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 22 02 00 35 04 06 00 4D B5 5D BB 38 A0 C9 F8 1F 36 98 8B 9C F8 [18:03:23]CheckFolder [18:03:23]dirname=/storage/ofd_packets [18:03:23]CheckFolder done [18:03:23]ProducePacketName [18:03:23]name=ofd_packets/00139838 [18:03:23]NVStorageSaveData ofd_packets/00139838 [18:03:23]File name is /storage/ofd_packets/00139838 [18:03:23]Write 301 bytes [18:03:23]NVStorageSaveData done [18:03:23]OFDSenderStorePacket done [18:03:23]KKMCreateOFDPacket done [18:03:23]NVStorageSaveData kkm_last_timestamp [18:03:23]File name is /storage/kkm_last_timestamp [18:03:23]Write 4 bytes [18:03:23]NVStorageSaveData done [18:03:23]ExternCall_PrintAddStr [18:03:23]wPrintStart [18:03:23]Write to MH i2c: 01 00 00 A4 04 A8 [18:03:23]Write i2c OK [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: 01 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: 01 07 00 [18:03:23]MH_I2C_Read... [18:03:23]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 FF 0F BD [18:03:23]RasterBufferAndPrint [18:03:23]line Счет N : (1)593687 [18:03:23]line ИНН: 02508201610067 [18:03:23]line Контрольно-Кассовый Чек [18:03:23]line ПРОДАЖА [18:03:23]line ТРК (МРК, ГНК) : 41 [18:03:23]line Товар: 2710124500 [18:03:23]line Аи-95-К-5 [18:03:23]line 33.700 * 74.20 [18:03:23]line = 2500.54 [18:03:23]line НДС 12% НСП 1% [18:03:23]line > о реализуемом товаре [18:03:23]line ОКРУГЛЕНИЕ: -0.54 [18:03:23]line ИТОГО: 2500.00 [18:03:23]line Внесено: 2500.00 [18:03:23]line СДАЧА: 0.00 [18:03:23]line НСП 1% : 22.13 [18:03:23]line НДС 12% : 265.54 [18:03:23]line Наличными: 2500.00 [18:03:23]line Безнал.: 0.00 [18:03:23]line Место: АЗС № 136 "Партнер Нефть" [18:03:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:03:23]line СНО: Общий режим [18:03:23]line Чек 310 20.08.2024 18:03 [18:03:23]line Смена: 453 ФФД: 1.0 [18:03:23]line ЗНМ: 0300000067 [18:03:23]line РНМ: 0000000000092569 [18:03:23]line Версия ККМ: 001 [18:03:23]line ФМ: 0000000000871776 [18:03:23]line ФД: 139838 [18:03:23]line ФПД: 85441356970144 [18:03:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180319&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139838&fm=85441356970144&tin=02508201610067®Number=0000000000092569&sum=250000 [18:03:23]written 0, free lines is 4095 [18:03:24]Write to MH i2c: 01 00 00 CF 04 D3 [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: 01 [18:03:24]MH_I2C_Read... [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 CF 04 00 00 00 00 00 F5 0C DB [18:03:24]RasterBufferAndPrint [18:03:24]line [18:03:24]line [18:03:24]line [18:03:24]line [18:03:24]line [18:03:24]written 0, free lines is 3416 [18:03:24]MH_Cut [18:03:24]Write to MH i2c: D1 01 00 D6 04 01 AC [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: D1 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: D1 01 00 [18:03:24]MH_I2C_Read... [18:03:24]Read from MH i2c: D1 01 00 D6 04 00 AB [18:03:24]Write to MH i2c: 01 00 00 D7 04 DB [18:03:24]Write i2c OK [18:03:24]MH_I2C_Read... [18:03:24]*** Cut start [18:03:24]*** Partial cut [18:03:24]*** CUTSNS_PIN = 1 [18:03:24]*** CUTSNS_PIN = 0 [18:03:25]*** Brake cut motor [18:03:25]Read from MH i2c: 01 [18:03:25]MH_I2C_Read... [18:03:25]*** Stop cut motor [18:03:25]*** Cut end [18:03:25]Read from MH i2c: 01 07 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: 01 07 00 D7 04 00 00 00 00 00 FF 0F F0 [18:03:25]process_action close_receipt done [18:03:25]requested_data is exist [18:03:25]produce_requested_data [18:03:25]requested_item fm.sn is exist - process it [18:03:25]wFMCommunicate request_size=4 [18:03:25]MH_SAM_APDU [18:03:25]CAPDU: 80 11 00 00 [18:03:25]Write to MH i2c: E2 08 00 D8 04 80 11 00 00 00 00 00 00 56 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:25]Read from MH i2c: E2 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 17 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 17 00 D8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AD [18:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:03:25]wFMCommunicate OK [18:03:25]requested_item fd.num is exist - process it [18:03:25]SAM_PROTO_GetFieldsCounters [18:03:25]wFMCommunicate request_size=4 [18:03:25]MH_SAM_APDU [18:03:25]CAPDU: 80 13 00 00 [18:03:25]Write to MH i2c: E2 08 00 D9 04 80 13 00 00 00 00 00 00 59 [18:03:25]Write i2c OK [18:03:25]MH_I2C_Read... [18:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:25]Read from MH i2c: E2 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 62 00 [18:03:25]MH_I2C_Read... [18:03:25]Read from MH i2c: E2 62 00 D9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 22 02 00 0E 04 04 00 C5 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 51 [18:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 22 02 00 0E 04 04 00 C5 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 [18:03:26]wFMCommunicate OK [18:03:26]SAM_PROTO_GetFieldsCounters done [18:03:26]requested_item shift.num is exist - process it [18:03:26]requested_item shift.opened is exist - process it [18:03:26]req_shift_opened [18:03:26]FM_GetShiftState [18:03:26]SAM_PROTO_GetShiftState [18:03:26]wFMCommunicate request_size=4 [18:03:26]MH_SAM_APDU [18:03:26]CAPDU: 80 13 01 00 [18:03:26]Write to MH i2c: E2 08 00 DA 04 80 13 01 00 00 00 00 00 5B [18:03:26]Write i2c OK [18:03:26]MH_I2C_Read... [18:03:26]ConnectInit Can't take IP for lk.salyk.kg [18:03:26]CommunicateWithHost connect error [18:03:26]CommunicateWithHost err = -1 [18:03:26]OFD Sender: Server communicate error [18:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:26]Read from MH i2c: E2 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0E 00 [18:03:26]MH_I2C_Read... [18:03:26]Read from MH i2c: E2 0E 00 DA 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EC [18:03:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:03:26]wFMCommunicate OK [18:03:26]SAM_PROTO_GetShiftState done [18:03:26]FM_GetShiftState done [18:03:26]req_shift_opened done [18:03:26]requested_item shift.open_date is exist - process it [18:03:26]req_shift_open_date [18:03:26]req_shift_open_date done [18:03:26]produce_requested_data done [18:03:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139838,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:03:26]process_action_free close_receipt [18:03:26]json_value_free [18:03:26]json_value_free done [18:03:26]process_json_proto returns [18:03:26]Send response to host [18:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139838,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:03:26]free response buf [18:03:26]execute_script done [18:03:26]execute_script returns [18:03:26]free content buf [18:03:26]Sock 9.Close socket [18:03:26]Sock 9.Thread stoped [18:03:26]OFD Sender: Processing packet 139800 [packets to send 175, broken 136] [18:03:26]ProducePacketName [18:03:26]name=ofd_packets/00139800 [18:03:26]OFD Sender: To server: pG, [18:03:26]CommunicateWithHost lk.salyk.kg:30040 [18:03:26]ConnectInit lk.salyk.kg [18:03:31]ConnectInit Can't take IP for lk.salyk.kg [18:03:31]CommunicateWithHost connect error [18:03:31]CommunicateWithHost err = -1 [18:03:31]OFD Sender: Server communicate error [18:03:36]OFD Sender: Processing packet 139800 [packets to send 175, broken 136] [18:03:36]ProducePacketName [18:03:36]name=ofd_packets/00139800 [18:03:36]OFD Sender: To server: pG, [18:03:36]CommunicateWithHost lk.salyk.kg:30040 [18:03:36]ConnectInit lk.salyk.kg [18:03:41]ConnectInit Can't take IP for lk.salyk.kg [18:03:41]CommunicateWithHost connect error [18:03:41]CommunicateWithHost err = -1 [18:03:41]OFD Sender: Server communicate error [18:03:46]OFD Sender: Processing packet 139800 [packets to send 175, broken 136] [18:03:46]ProducePacketName [18:03:46]name=ofd_packets/00139800 [18:03:46]OFD Sender: To server: pG, [18:03:46]CommunicateWithHost lk.salyk.kg:30040 [18:03:46]ConnectInit lk.salyk.kg [18:03:51]ConnectInit Can't take IP for lk.salyk.kg [18:03:51]CommunicateWithHost connect error [18:03:51]CommunicateWithHost err = -1 [18:03:51]OFD Sender: Server communicate error [18:03:56]OFD Sender: Processing packet 139800 [packets to send 175, broken 136] [18:03:56]ProducePacketName [18:03:56]name=ofd_packets/00139800 [18:03:56]OFD Sender: To server: pG, [18:03:56]CommunicateWithHost lk.salyk.kg:30040 [18:03:56]ConnectInit lk.salyk.kg [18:03:58]accept exits with 10 [18:03:58]New connection [18:03:58]New thread 3067362660 created [18:03:58]Thread 3067219300 joined [18:03:58]Waiting for new connection... [18:03:58] Sock 10.Parse request [18:03:58]Sock 10.Check first char [18:03:58]Sock 10.First char is OK [18:03:58]request: POST /json_proto HTTP/1.0 [18:03:58]Method: POST [18:03:58]URL: /json_proto [18:03:58]Method is POST - this is cgi request [18:03:58]url: /json_proto [18:03:58]query_string will be loaded in cgi processing [18:03:58]execute_cgi json_proto POST (null) [18:03:58]execute_cgi path=json_proto method=POST [18:03:58]POST find Content-Length [18:03:58]Host: 172.17.45.67:8080 [18:03:58]Content-Length: 678 [18:03:58]Content-Type: application/json [18:03:58] [18:03:58]POST finish read [18:03:58]Found Content-Length = 678 [18:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:58]execute_script... [18:03:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:58]POST & json_proto [18:03:58]process_json_proto [18:03:58]json parsed OK: [18:03:58]protocol is kg_v1.0 [18:03:58]action value=close_receipt [18:03:58]process_action close_receipt [18:03:58]cmd_close_receipt [18:03:58]MH_GetDate [18:03:58]Write to MH i2c: F0 00 00 DB 04 CE [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: F0 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: F0 09 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: F0 09 00 DB 04 00 8E DA C4 66 5F 7F 2B 66 D8 [18:03:58]GetLastDocTimeStamp 1724176999 [18:03:58]current date 1724177038 [18:03:58]FM_GetShiftState [18:03:58]SAM_PROTO_GetShiftState [18:03:58]wFMCommunicate request_size=4 [18:03:58]MH_SAM_APDU [18:03:58]CAPDU: 80 13 01 00 [18:03:58]Write to MH i2c: E2 08 00 DC 04 80 13 01 00 00 00 00 00 5D [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:58]Read from MH i2c: E2 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 DC 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EE [18:03:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:03:58]wFMCommunicate OK [18:03:58]SAM_PROTO_GetShiftState done [18:03:58]FM_GetShiftState done [18:03:58]opened in 1724113785 [18:03:58]opened+sec_in_day 1724200185 [18:03:58]quantity*price = 80061 [18:03:58]sum+1 = 80063 [18:03:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 311 20.08.2024 18:03 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139839 ФПД: 214217705849167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180358&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139839&fm=214217705849167&tin=02508201610067®Number=0000000000092569&sum=80000 [18:04:01]StoreToDocumentArchive [18:04:01]shift 453 fd 139839 [18:04:01]save to /storage/0453/doc_00139839 [18:04:01]save last doc name /storage/0453/doc_00139839 to /storage/kkm_last_doc_name [18:04:01]save OK [18:04:01]Clear old archive folders... [18:04:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:01]tlvbuf is 002BD3B0 [18:04:01]SAM_PROTO_ClearQueue [18:04:01]wFMCommunicate request_size=4 [18:04:01]MH_SAM_APDU [18:04:01]CAPDU: 80 09 00 00 [18:04:01]Write to MH i2c: E2 08 00 E9 04 80 09 00 00 00 00 00 00 5F [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:01]Read from MH i2c: E2 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: E2 03 00 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: E2 03 00 E9 04 00 90 00 61 [18:04:01]RAPDU: 90 00 [18:04:01]wFMCommunicate OK [18:04:01]SAM_PROTO_ClearQueue done [18:04:01]KKMCreateOFDPacket [18:04:01]OFDProtocolAddRootSTLVToBuf [18:04:01]FM_MakeSignedData [18:04:01]FM_MakeSignedData [18:04:01]SAM_PROTO_SignData [18:04:01]wFMCommunicate request_size=4 [18:04:01]MH_SAM_APDU [18:04:01]CAPDU: 80 0D 01 02 [18:04:01]Write to MH i2c: E2 08 00 EA 04 80 0D 01 02 00 00 00 00 67 [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:01]Read from MH i2c: E2 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: E2 03 00 [18:04:01]MH_I2C_Read... [18:04:01]Read from MH i2c: E2 03 00 EA 04 00 90 00 62 [18:04:01]RAPDU: 90 00 [18:04:01]wFMCommunicate OK [18:04:01]wFMCommunicate request_size=255 [18:04:01]MH_SAM_APDU [18:04:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 ConnectInit Can't take IP for lk.salyk.kg [18:04:01]01 CommunicateWithHost connect error [18:04:01]BC CommunicateWithHost err = -1 [18:04:01]OFD Sender: Server communicate error [18:04:01]04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 8E DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 22 02 00 35 04 06 00 C2 [18:04:02]Write to MH i2c: E2 02 01 EB 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 8E DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 22 02 00 35 04 06 00 C2 00 00 22 [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:02]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 EB 04 00 90 00 63 [18:04:03]RAPDU: 90 00 [18:04:03]wFMCommunicate OK [18:04:03]wFMCommunicate request_size=10 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 0D 02 02 05 D4 72 43 01 4F [18:04:03]Write to MH i2c: E2 0D 00 EC 04 80 0D 02 02 05 00 D4 72 43 01 4F 00 00 4D [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 03 00 EC 04 00 90 00 64 [18:04:03]RAPDU: 90 00 [18:04:03]wFMCommunicate OK [18:04:03]wFMCommunicate request_size=4 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 0D 03 02 [18:04:03]Write to MH i2c: E2 08 00 ED 04 80 0D 03 02 00 00 00 00 6C [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 0B 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 0B 00 ED 04 00 5C 32 34 35 D3 D3 83 9D 90 00 2A [18:04:03]RAPDU: 5C 32 34 35 D3 D3 83 9D 90 00 [18:04:03]wFMCommunicate OK [18:04:03]SAM_PROTO_SignData done [18:04:03]FM_MakeSignedData done [18:04:03]CreateOFDProtocolMessage [18:04:03]wFMCommunicate request_size=4 [18:04:03]MH_SAM_APDU [18:04:03]CAPDU: 80 11 00 00 [18:04:03]Write to MH i2c: E2 08 00 EE 04 80 11 00 00 00 00 00 00 6C [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:03]Read from MH i2c: E2 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 17 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: E2 17 00 EE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C3 [18:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:04:03]wFMCommunicate OK [18:04:03]CreateOFDProtocolMessage done [18:04:03]OFDSenderStorePacket 139839 [18:04:03]StoreOFDPacket docnum=139839 [18:04:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 69 9E 07 01 A1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 8E DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 22 02 00 35 04 06 00 C2 D4 72 43 01 4F 5C 32 34 35 D3 D3 83 9D [18:04:03]CheckFolder [18:04:03]dirname=/storage/ofd_packets [18:04:03]CheckFolder done [18:04:03]ProducePacketName [18:04:03]name=ofd_packets/00139839 [18:04:03]NVStorageSaveData ofd_packets/00139839 [18:04:03]File name is /storage/ofd_packets/00139839 [18:04:03]Write 301 bytes [18:04:03]NVStorageSaveData done [18:04:03]OFDSenderStorePacket done [18:04:03]KKMCreateOFDPacket done [18:04:03]NVStorageSaveData kkm_last_timestamp [18:04:03]File name is /storage/kkm_last_timestamp [18:04:03]Write 4 bytes [18:04:03]NVStorageSaveData done [18:04:03]ExternCall_PrintAddStr [18:04:03]wPrintStart [18:04:03]Write to MH i2c: 01 00 00 EF 04 F3 [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 07 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 FF 0F 08 [18:04:03]RasterBufferAndPrint [18:04:03]line Счет N : (1)593689 [18:04:03]line ИНН: 02508201610067 [18:04:03]line Контрольно-Кассовый Чек [18:04:03]line ПРОДАЖА [18:04:03]line ТРК (МРК, ГНК) : 31 [18:04:03]line Товар: 2710124500 [18:04:03]line Аи-95-К-5 [18:04:03]line 10.790 * 74.20 [18:04:03]line = 800.62 [18:04:03]line НДС 12% НСП 1% [18:04:03]line > о реализуемом товаре [18:04:03]line ОКРУГЛЕНИЕ: -0.62 [18:04:03]line ИТОГО: 800.00 [18:04:03]line Внесено: 800.00 [18:04:03]line СДАЧА: 0.00 [18:04:03]line НСП 1% : 7.08 [18:04:03]line НДС 12% : 85.02 [18:04:03]line Наличными: 800.00 [18:04:03]line Безнал.: 0.00 [18:04:03]line Место: АЗС № 136 "Партнер Нефть" [18:04:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:04:03]line СНО: Общий режим [18:04:03]line Чек 311 20.08.2024 18:03 [18:04:03]OFD Sender: Processing packet 139800 [packets to send 176, broken 136] [18:04:03]line Смена: 453 ФФД: 1.0 [18:04:03]ProducePacketName [18:04:03]line ЗНМ: 0300000067 [18:04:03]name=ofd_packets/00139800 [18:04:03]line РНМ: 0000000000092569 [18:04:03]OFD Sender: To server: pG, [18:04:03]line Версия ККМ: 001 [18:04:03]CommunicateWithHost lk.salyk.kg:30040 [18:04:03]line ФМ: 0000000000871776 [18:04:03]line ФД: 139839 [18:04:03]line ФПД: 214217705849167 [18:04:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180358&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139839&fm=214217705849167&tin=02508201610067®Number=0000000000092569&sum=80000 [18:04:03]ConnectInit lk.salyk.kg [18:04:03]written 0, free lines is 4095 [18:04:04]Write to MH i2c: 01 00 00 1A 05 1F [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 E8 0C 1A [18:04:04]RasterBufferAndPrint [18:04:04]line [18:04:04]line [18:04:04]line [18:04:04]line [18:04:04]line [18:04:04]written 0, free lines is 3410 [18:04:04]MH_Cut [18:04:04]Write to MH i2c: D1 01 00 21 05 01 F8 [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: D1 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: D1 01 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: D1 01 00 21 05 00 F7 [18:04:04]Write to MH i2c: 01 00 00 22 05 27 [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:05]*** Cut start [18:04:05]*** Partial cut [18:04:05]*** CUTSNS_PIN = 1 [18:04:05]*** CUTSNS_PIN = 0 [18:04:05]*** Brake cut motor [18:04:05]Read from MH i2c: 01 [18:04:05]MH_I2C_Read... [18:04:05]*** Stop cut motor [18:04:05]*** Cut end [18:04:05]Read from MH i2c: 01 07 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: 01 07 00 22 05 00 00 00 00 00 FF 0F 3C [18:04:05]process_action close_receipt done [18:04:05]requested_data is exist [18:04:05]produce_requested_data [18:04:05]requested_item fm.sn is exist - process it [18:04:05]wFMCommunicate request_size=4 [18:04:05]MH_SAM_APDU [18:04:05]CAPDU: 80 11 00 00 [18:04:05]Write to MH i2c: E2 08 00 23 05 80 11 00 00 00 00 00 00 A2 [18:04:05]Write i2c OK [18:04:05]MH_I2C_Read... [18:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:05]Read from MH i2c: E2 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 17 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 17 00 23 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [18:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:04:05]wFMCommunicate OK [18:04:05]requested_item fd.num is exist - process it [18:04:05]SAM_PROTO_GetFieldsCounters [18:04:05]wFMCommunicate request_size=4 [18:04:05]MH_SAM_APDU [18:04:05]CAPDU: 80 13 00 00 [18:04:05]Write to MH i2c: E2 08 00 24 05 80 13 00 00 00 00 00 00 A5 [18:04:05]Write i2c OK [18:04:05]MH_I2C_Read... [18:04:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:06]Read from MH i2c: E2 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 62 00 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 62 00 24 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 22 02 00 0E 04 04 00 C5 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 A1 [18:04:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 22 02 00 0E 04 04 00 C5 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 [18:04:06]wFMCommunicate OK [18:04:06]SAM_PROTO_GetFieldsCounters done [18:04:06]requested_item shift.num is exist - process it [18:04:06]requested_item shift.opened is exist - process it [18:04:06]req_shift_opened [18:04:06]FM_GetShiftState [18:04:06]SAM_PROTO_GetShiftState [18:04:06]wFMCommunicate request_size=4 [18:04:06]MH_SAM_APDU [18:04:06]CAPDU: 80 13 01 00 [18:04:06]Write to MH i2c: E2 08 00 25 05 80 13 01 00 00 00 00 00 A7 [18:04:06]Write i2c OK [18:04:06]MH_I2C_Read... [18:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:06]Read from MH i2c: E2 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 0E 00 [18:04:06]MH_I2C_Read... [18:04:06]Read from MH i2c: E2 0E 00 25 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 38 [18:04:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:04:06]wFMCommunicate OK [18:04:06]SAM_PROTO_GetShiftState done [18:04:06]FM_GetShiftState done [18:04:06]req_shift_opened done [18:04:06]requested_item shift.open_date is exist - process it [18:04:06]req_shift_open_date [18:04:06]req_shift_open_date done [18:04:06]produce_requested_data done [18:04:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139839,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:04:06]process_action_free close_receipt [18:04:06]json_value_free [18:04:06]json_value_free done [18:04:06]process_json_proto returns [18:04:06]Send response to host [18:04:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139839,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:04:06]free response buf [18:04:06]execute_script done [18:04:06]execute_script returns [18:04:06]free content buf [18:04:06]Sock 10.Close socket [18:04:06]Sock 10.Thread stoped [18:04:08]ConnectInit Can't take IP for lk.salyk.kg [18:04:08]CommunicateWithHost connect error [18:04:08]CommunicateWithHost err = -1 [18:04:08]OFD Sender: Server communicate error [18:04:13]OFD Sender: Processing packet 139800 [packets to send 176, broken 136] [18:04:13]ProducePacketName [18:04:13]name=ofd_packets/00139800 [18:04:13]OFD Sender: To server: pG, [18:04:13]CommunicateWithHost lk.salyk.kg:30040 [18:04:13]ConnectInit lk.salyk.kg [18:04:16]accept exits with 12 [18:04:16]New connection [18:04:16]New thread 3067219300 created [18:04:16]Thread 3067362660 joined [18:04:16]Waiting for new connection... [18:04:16] Sock 12.Parse request [18:04:16]Sock 12.Check first char [18:04:16]Sock 12.First char is OK [18:04:16]request: POST /json_proto HTTP/1.0 [18:04:16]Method: POST [18:04:16]URL: /json_proto [18:04:16]Method is POST - this is cgi request [18:04:16]url: /json_proto [18:04:16]query_string will be loaded in cgi processing [18:04:16]execute_cgi json_proto POST (null) [18:04:16]execute_cgi path=json_proto method=POST [18:04:16]POST find Content-Length [18:04:16]Host: 172.17.45.67:8080 [18:04:16]Content-Length: 677 [18:04:16]Content-Type: application/json [18:04:16] [18:04:16]POST finish read [18:04:16]Found Content-Length = 677 [18:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:16]execute_script... [18:04: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)593690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:16]POST & json_proto [18:04:16]process_json_proto [18:04:16]json parsed OK: [18:04:16]protocol is kg_v1.0 [18:04:16]action value=close_receipt [18:04:16]process_action close_receipt [18:04:16]cmd_close_receipt [18:04:16]MH_GetDate [18:04:16]Write to MH i2c: F0 00 00 26 05 1A [18:04:16]Write i2c OK [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: F0 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: F0 09 00 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: F0 09 00 26 05 00 A0 DA C4 66 5F 7F 2B 66 36 [18:04:16]GetLastDocTimeStamp 1724177038 [18:04:16]current date 1724177056 [18:04:16]FM_GetShiftState [18:04:16]SAM_PROTO_GetShiftState [18:04:16]wFMCommunicate request_size=4 [18:04:16]MH_SAM_APDU [18:04:16]CAPDU: 80 13 01 00 [18:04:16]Write to MH i2c: E2 08 00 27 05 80 13 01 00 00 00 00 00 A9 [18:04:16]Write i2c OK [18:04:16]MH_I2C_Read... [18:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:16]Read from MH i2c: E2 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: E2 0E 00 [18:04:16]MH_I2C_Read... [18:04:16]Read from MH i2c: E2 0E 00 27 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3A [18:04:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:04:16]wFMCommunicate OK [18:04:16]SAM_PROTO_GetShiftState done [18:04:16]FM_GetShiftState done [18:04:16]opened in 1724113785 [18:04:16]opened+sec_in_day 1724200185 [18:04:16]quantity*price = 40002 [18:04:16]sum+1 = 40003 [18:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 312 20.08.2024 18:04 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139840 ФПД: 122335566842143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139840&fm=122335566842143&tin=02508201610067®Number=0000000000092569&sum=40000 [18:04:19]StoreToDocumentArchive [18:04:19]shift 453 fd 139840 [18:04:19]save to /storage/0453/doc_00139840 [18:04:19]save last doc name /storage/0453/doc_00139840 to /storage/kkm_last_doc_name [18:04:19]save OK [18:04:19]Clear old archive folders... [18:04:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:19]tlvbuf is 002C0000 [18:04:19]SAM_PROTO_ClearQueue [18:04:19]wFMCommunicate request_size=4 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 09 00 00 [18:04:19]Write to MH i2c: E2 08 00 34 05 80 09 00 00 00 00 00 00 AB [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [18:04:19]RAPDU: 90 00 [18:04:19]wFMCommunicate OK [18:04:19]SAM_PROTO_ClearQueue done [18:04:19]KKMCreateOFDPacket [18:04:19]OFDProtocolAddRootSTLVToBuf [18:04:19]FM_MakeSignedData [18:04:19]FM_MakeSignedData [18:04:19]SAM_PROTO_SignData [18:04:19]wFMCommunicate request_size=4 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 0D 01 02 [18:04:19]Write to MH i2c: E2 08 00 35 05 80 0D 01 02 00 00 00 00 B3 [18:04:19]Write i2c OK [18:04:19]MH_I2C_Read... [18:04:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:19]Read from MH i2c: E2 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 [18:04:19]MH_I2C_Read... [18:04:19]Read from MH i2c: E2 03 00 35 05 00 90 00 AE [18:04:19]RAPDU: 90 00 [18:04:19]wFMCommunicate OK [18:04:19]wFMCommunicate request_size=255 [18:04:19]MH_SAM_APDU [18:04:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 38 01 00 00 F4 03 04 00 A0 DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 22 02 00 35 04 06 00 6F [18:04:20]Write to MH i2c: E2 02 01 36 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 A0 DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 22 02 00 35 04 06 00 6F 00 00 97 [18:04:20]Write i2c OK [18:04:20]MH_I2C_Read... [18:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:20]Read from MH i2c: E2 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: E2 03 00 [18:04:20]MH_I2C_Read... [18:04:20]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [18:04:21]RAPDU: 90 00 [18:04:21]wFMCommunicate OK [18:04:21]wFMCommunicate request_size=10 [18:04:21]MH_SAM_APDU [18:04:21]CAPDU: 80 0D 02 02 05 43 78 01 49 1F [18:04:21]Write to MH i2c: E2 0D 00 37 05 80 0D 02 02 05 00 43 78 01 49 1F 00 00 E4 [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:21]Read from MH i2c: E2 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 03 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 03 00 37 05 00 90 00 B0 [18:04:21]RAPDU: 90 00 [18:04:21]wFMCommunicate OK [18:04:21]wFMCommunicate request_size=4 [18:04:21]MH_SAM_APDU [18:04:21]CAPDU: 80 0D 03 02 [18:04:21]Write to MH i2c: E2 08 00 38 05 80 0D 03 02 00 00 00 00 B8 [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:21]Read from MH i2c: E2 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 0B 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 0B 00 38 05 00 6E 64 EC 19 CB 9B 8F 13 90 00 98 [18:04:21]RAPDU: 6E 64 EC 19 CB 9B 8F 13 90 00 [18:04:21]wFMCommunicate OK [18:04:21]SAM_PROTO_SignData done [18:04:21]FM_MakeSignedData done [18:04:21]CreateOFDProtocolMessage [18:04:21]wFMCommunicate request_size=4 [18:04:21]MH_SAM_APDU [18:04:21]CAPDU: 80 11 00 00 [18:04:21]Write to MH i2c: E2 08 00 39 05 80 11 00 00 00 00 00 00 B8 [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:21]Read from MH i2c: E2 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 17 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: E2 17 00 39 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [18:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:04:21]wFMCommunicate OK [18:04:21]CreateOFDProtocolMessage done [18:04:21]OFDSenderStorePacket 139840 [18:04:21]StoreOFDPacket docnum=139840 [18:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AF BF 07 01 20 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 A0 DA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 22 02 00 35 04 06 00 6F 43 78 01 49 1F 6E 64 EC 19 CB 9B 8F 13 [18:04:21]CheckFolder [18:04:21]dirname=/storage/ofd_packets [18:04:21]CheckFolder done [18:04:21]ProducePacketName [18:04:21]name=ofd_packets/00139840 [18:04:21]NVStorageSaveData ofd_packets/00139840 [18:04:21]File name is /storage/ofd_packets/00139840 [18:04:21]Write 301 bytes [18:04:21]NVStorageSaveData done [18:04:21]OFDSenderStorePacket done [18:04:21]KKMCreateOFDPacket done [18:04:21]NVStorageSaveData kkm_last_timestamp [18:04:21]File name is /storage/kkm_last_timestamp [18:04:21]Write 4 bytes [18:04:21]NVStorageSaveData done [18:04:21]ExternCall_PrintAddStr [18:04:21]wPrintStart [18:04:21]Write to MH i2c: 01 00 00 3A 05 3F [18:04:21]Write i2c OK [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: 01 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: 01 07 00 [18:04:21]MH_I2C_Read... [18:04:21]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 FF 0F 54 [18:04:21]RasterBufferAndPrint [18:04:21]line Счет N : (1)593690 [18:04:21]line ИНН: 02508201610067 [18:04:21]line Контрольно-Кассовый Чек [18:04:21]line ПРОДАЖА [18:04:21]line ТРК (МРК, ГНК) : 62 [18:04:21]line Товар: 2710124130 [18:04:21]line Аи-92-К-5 [18:04:21]line 5.900 * 67.80 [18:04:21]line = 400.02 [18:04:21]line НДС 12% НСП 1% [18:04:21]line > о реализуемом товаре [18:04:21]line ОКРУГЛЕНИЕ: -0.02 [18:04:21]line ИТОГО: 400.00 [18:04:21]line Внесено: 400.00 [18:04:21]line СДАЧА: 0.00 [18:04:21]line НСП 1% : 3.54 [18:04:21]line НДС 12% : 42.48 [18:04:21]line Наличными: 400.00 [18:04:21]line Безнал.: 0.00 [18:04:21]line Место: АЗС № 136 "Партнер Нефть" [18:04:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:04:21]line СНО: Общий режим [18:04:21]line Чек 312 20.08.2024 18:04 [18:04:21]line Смена: 453 ФФД: 1.0 [18:04:21]line ЗНМ: 0300000067 [18:04:21]line РНМ: 0000000000092569 [18:04:21]line Версия ККМ: 001 [18:04:21]line ФМ: 0000000000871776 [18:04:21]line ФД: 139840 [18:04:21]line ФПД: 122335566842143 [18:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139840&fm=122335566842143&tin=02508201610067®Number=0000000000092569&sum=40000 [18:04:21]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:04:21]ProducePacketName [18:04:21]name=ofd_packets/00139800 [18:04:21]OFD Sender: To server: pG, [18:04:21]CommunicateWithHost lk.salyk.kg:30040 [18:04:21]ConnectInit lk.salyk.kg [18:04:21]written 0, free lines is 4095 [18:04:22]Write to MH i2c: 01 00 00 65 05 6A [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: 01 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: 01 07 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 F0 0C 6D [18:04:22]RasterBufferAndPrint [18:04:22]line [18:04:22]line [18:04:22]line [18:04:22]line [18:04:22]line [18:04:22]written 0, free lines is 3427 [18:04:22]MH_Cut [18:04:22]Write to MH i2c: D1 01 00 6C 05 01 43 [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: D1 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: D1 01 00 [18:04:22]MH_I2C_Read... [18:04:22]Read from MH i2c: D1 01 00 6C 05 00 42 [18:04:22]Write to MH i2c: 01 00 00 6D 05 72 [18:04:22]Write i2c OK [18:04:22]MH_I2C_Read... [18:04:23]*** Cut start [18:04:23]*** Partial cut [18:04:23]*** CUTSNS_PIN = 1 [18:04:23]*** CUTSNS_PIN = 0 [18:04:23]*** Brake cut motor [18:04:23]Read from MH i2c: 01 [18:04:23]MH_I2C_Read... [18:04:23]*** Stop cut motor [18:04:23]*** Cut end [18:04:23]Read from MH i2c: 01 07 00 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: 01 07 00 6D 05 00 00 00 00 00 FF 0F 87 [18:04:23]process_action close_receipt done [18:04:23]requested_data is exist [18:04:23]produce_requested_data [18:04:23]requested_item fm.sn is exist - process it [18:04:23]wFMCommunicate request_size=4 [18:04:23]MH_SAM_APDU [18:04:23]CAPDU: 80 11 00 00 [18:04:23]Write to MH i2c: E2 08 00 6E 05 80 11 00 00 00 00 00 00 ED [18:04:23]Write i2c OK [18:04:23]MH_I2C_Read... [18:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:23]Read from MH i2c: E2 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: E2 17 00 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: E2 17 00 6E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [18:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:04:23]wFMCommunicate OK [18:04:23]requested_item fd.num is exist - process it [18:04:23]SAM_PROTO_GetFieldsCounters [18:04:23]wFMCommunicate request_size=4 [18:04:23]MH_SAM_APDU [18:04:23]CAPDU: 80 13 00 00 [18:04:23]Write to MH i2c: E2 08 00 6F 05 80 13 00 00 00 00 00 00 F0 [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:24]Read from MH i2c: E2 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 62 00 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 62 00 6F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 22 02 00 0E 04 04 00 C5 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 F0 [18:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 22 02 00 0E 04 04 00 C5 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 [18:04:24]wFMCommunicate OK [18:04:24]SAM_PROTO_GetFieldsCounters done [18:04:24]requested_item shift.num is exist - process it [18:04:24]requested_item shift.opened is exist - process it [18:04:24]req_shift_opened [18:04:24]FM_GetShiftState [18:04:24]SAM_PROTO_GetShiftState [18:04:24]wFMCommunicate request_size=4 [18:04:24]MH_SAM_APDU [18:04:24]CAPDU: 80 13 01 00 [18:04:24]Write to MH i2c: E2 08 00 70 05 80 13 01 00 00 00 00 00 F2 [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:24]Read from MH i2c: E2 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 0E 00 [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: E2 0E 00 70 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 83 [18:04:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:04:24]wFMCommunicate OK [18:04:24]SAM_PROTO_GetShiftState done [18:04:24]FM_GetShiftState done [18:04:24]req_shift_opened done [18:04:24]requested_item shift.open_date is exist - process it [18:04:24]req_shift_open_date [18:04:24]req_shift_open_date done [18:04:24]produce_requested_data done [18:04:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139840,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:04:24]process_action_free close_receipt [18:04:24]json_value_free [18:04:24]json_value_free done [18:04:24]process_json_proto returns [18:04:24]Send response to host [18:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139840,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:04:24]free response buf [18:04:24]execute_script done [18:04:24]execute_script returns [18:04:24]free content buf [18:04:24]Sock 12.Close socket [18:04:24]Sock 12.Thread stoped [18:04:24]int [18:04:24]Write to MH i2c: 01 00 00 71 05 76 [18:04:24]*** FLAG_PRN_KEY set [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]Read from MH i2c: 01 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 71 05 00 08 00 00 00 FF 0F 93 [18:04:25]state=0 [18:04:25]Key pressed [18:04:25]Feed [18:04:25]Write to MH i2c: D8 00 00 72 05 4E [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: D8 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: D8 01 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: D8 01 00 72 05 00 4F [18:04:25]int line is 0 - check status [18:04:25]Write to MH i2c: 01 00 00 73 05 78 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 73 05 00 48 00 00 00 3C 00 03 [18:04:25]state=2 [18:04:25]Key pressed [18:04:25]int line is 0 - check status [18:04:25]Write to MH i2c: 01 00 00 74 05 79 [18:04:25]*** FLAG_PRN_KEY reset [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 FF 0F 8E [18:04:25]state=2 [18:04:25]Stop feed [18:04:25]int [18:04:25]Write to MH i2c: 01 00 00 75 05 7A [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [18:04:25]state=0 [18:04:26]ConnectInit Can't take IP for lk.salyk.kg [18:04:26]CommunicateWithHost connect error [18:04:26]CommunicateWithHost err = -1 [18:04:26]OFD Sender: Server communicate error [18:04:31]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:04:31]ProducePacketName [18:04:31]name=ofd_packets/00139800 [18:04:31]OFD Sender: To server: pG, [18:04:31]CommunicateWithHost lk.salyk.kg:30040 [18:04:31]ConnectInit lk.salyk.kg [18:04:36]ConnectInit Can't take IP for lk.salyk.kg [18:04:36]CommunicateWithHost connect error [18:04:36]CommunicateWithHost err = -1 [18:04:36]OFD Sender: Server communicate error [18:04:41]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:04:41]ProducePacketName [18:04:41]name=ofd_packets/00139800 [18:04:41]OFD Sender: To server: pG, [18:04:42]CommunicateWithHost lk.salyk.kg:30040 [18:04:42]ConnectInit lk.salyk.kg [18:04:47]ConnectInit Can't take IP for lk.salyk.kg [18:04:47]CommunicateWithHost connect error [18:04:47]CommunicateWithHost err = -1 [18:04:47]OFD Sender: Server communicate error [18:04:52]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:04:52]ProducePacketName [18:04:52]name=ofd_packets/00139800 [18:04:52]OFD Sender: To server: pG, [18:04:52]CommunicateWithHost lk.salyk.kg:30040 [18:04:52]ConnectInit lk.salyk.kg [18:04:57]ConnectInit Can't take IP for lk.salyk.kg [18:04:57]CommunicateWithHost connect error [18:04:57]CommunicateWithHost err = -1 [18:04:57]OFD Sender: Server communicate error [18:05:02]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:05:02]ProducePacketName [18:05:02]name=ofd_packets/00139800 [18:05:02]OFD Sender: To server: pG, [18:05:02]CommunicateWithHost lk.salyk.kg:30040 [18:05:02]ConnectInit lk.salyk.kg [18:05:03]ConnectInit Can't connect to host [18:05:07]ConnectInit Can't take IP for lk.salyk.kg [18:05:07]CommunicateWithHost connect error [18:05:07]CommunicateWithHost err = -1 [18:05:07]OFD Sender: Server communicate error [18:05:12]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:05:12]ProducePacketName [18:05:12]name=ofd_packets/00139800 [18:05:12]OFD Sender: To server: pG, [18:05:12]CommunicateWithHost lk.salyk.kg:30040 [18:05:12]ConnectInit lk.salyk.kg [18:05:17]ConnectInit Can't take IP for lk.salyk.kg [18:05:17]CommunicateWithHost connect error [18:05:17]CommunicateWithHost err = -1 [18:05:17]OFD Sender: Server communicate error [18:05:22]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:05:22]ProducePacketName [18:05:22]name=ofd_packets/00139800 [18:05:22]OFD Sender: To server: pG, [18:05:22]CommunicateWithHost lk.salyk.kg:30040 [18:05:22]ConnectInit lk.salyk.kg [18:05:27]ConnectInit Can't take IP for lk.salyk.kg [18:05:27]CommunicateWithHost connect error [18:05:27]CommunicateWithHost err = -1 [18:05:27]OFD Sender: Server communicate error [18:05:32]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:05:32]ProducePacketName [18:05:32]name=ofd_packets/00139800 [18:05:32]OFD Sender: To server: pG, [18:05:32]CommunicateWithHost lk.salyk.kg:30040 [18:05:32]ConnectInit lk.salyk.kg [18:05:37]ConnectInit Can't take IP for lk.salyk.kg [18:05:37]CommunicateWithHost connect error [18:05:37]CommunicateWithHost err = -1 [18:05:37]OFD Sender: Server communicate error [18:05:42]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:05:42]ProducePacketName [18:05:42]name=ofd_packets/00139800 [18:05:42]OFD Sender: To server: pG, [18:05:42]CommunicateWithHost lk.salyk.kg:30040 [18:05:42]ConnectInit lk.salyk.kg [18:05:47]ConnectInit Can't take IP for lk.salyk.kg [18:05:47]CommunicateWithHost connect error [18:05:47]CommunicateWithHost err = -1 [18:05:47]OFD Sender: Server communicate error [18:05:52]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:05:52]ProducePacketName [18:05:52]name=ofd_packets/00139800 [18:05:52]OFD Sender: To server: pG, [18:05:52]CommunicateWithHost lk.salyk.kg:30040 [18:05:52]ConnectInit lk.salyk.kg [18:05:57]ConnectInit Can't take IP for lk.salyk.kg [18:05:57]CommunicateWithHost connect error [18:05:57]CommunicateWithHost err = -1 [18:05:57]OFD Sender: Server communicate error [18:06:02]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:06:02]ProducePacketName [18:06:02]name=ofd_packets/00139800 [18:06:02]OFD Sender: To server: pG, [18:06:02]CommunicateWithHost lk.salyk.kg:30040 [18:06:02]ConnectInit lk.salyk.kg [18:06:07]ConnectInit Can't take IP for lk.salyk.kg [18:06:07]CommunicateWithHost connect error [18:06:07]CommunicateWithHost err = -1 [18:06:07]OFD Sender: Server communicate error [18:06:12]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:06:12]ProducePacketName [18:06:12]name=ofd_packets/00139800 [18:06:12]OFD Sender: To server: pG, [18:06:12]CommunicateWithHost lk.salyk.kg:30040 [18:06:12]ConnectInit lk.salyk.kg [18:06:17]ConnectInit Can't take IP for lk.salyk.kg [18:06:17]CommunicateWithHost connect error [18:06:17]CommunicateWithHost err = -1 [18:06:17]OFD Sender: Server communicate error [18:06:22]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:06:22]ProducePacketName [18:06:22]name=ofd_packets/00139800 [18:06:22]OFD Sender: To server: pG, [18:06:22]CommunicateWithHost lk.salyk.kg:30040 [18:06:22]ConnectInit lk.salyk.kg [18:06:27]ConnectInit Can't take IP for lk.salyk.kg [18:06:27]CommunicateWithHost connect error [18:06:27]CommunicateWithHost err = -1 [18:06:27]OFD Sender: Server communicate error [18:06:32]OFD Sender: Processing packet 139800 [packets to send 177, broken 136] [18:06:32]ProducePacketName [18:06:32]name=ofd_packets/00139800 [18:06:32]OFD Sender: To server: pG, [18:06:32]CommunicateWithHost lk.salyk.kg:30040 [18:06:32]ConnectInit lk.salyk.kg [18:06:37]ConnectInit Can't take IP for lk.salyk.kg [18:06:37]CommunicateWithHost connect error [18:06:37]CommunicateWithHost err = -1 [18:06:37]OFD Sender: Server communicate error [18:06:39]accept exits with 11 [18:06:39]New connection [18:06:39]New thread 3067362660 created [18:06:39]Thread 3067219300 joined [18:06:39]Waiting for new connection... [18:06:39] Sock 11.Parse request [18:06:39]Sock 11.Check first char [18:06:39]Sock 11.First char is OK [18:06:39]request: POST /json_proto HTTP/1.0 [18:06:39]Method: POST [18:06:39]URL: /json_proto [18:06:39]Method is POST - this is cgi request [18:06:39]url: /json_proto [18:06:39]query_string will be loaded in cgi processing [18:06:39]execute_cgi json_proto POST (null) [18:06:39]execute_cgi path=json_proto method=POST [18:06:39]POST find Content-Length [18:06:39]Host: 172.17.45.67:8080 [18:06:39]Content-Length: 682 [18:06:39]Content-Type: application/json [18:06:39] [18:06:39]POST finish read [18:06:39]Found Content-Length = 682 [18:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:39]execute_script... [18:06: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)593691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:39]POST & json_proto [18:06:39]process_json_proto [18:06:39]json parsed OK: [18:06:39]protocol is kg_v1.0 [18:06:39]action value=close_receipt [18:06:40]process_action close_receipt [18:06:40]cmd_close_receipt [18:06:40]MH_GetDate [18:06:40]Write to MH i2c: F0 00 00 76 05 6A [18:06:40]Write i2c OK [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: F0 [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: F0 09 00 [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: F0 09 00 76 05 00 30 DB C4 66 5F 7F 2B 66 17 [18:06:40]GetLastDocTimeStamp 1724177056 [18:06:40]current date 1724177200 [18:06:40]FM_GetShiftState [18:06:40]SAM_PROTO_GetShiftState [18:06:40]wFMCommunicate request_size=4 [18:06:40]MH_SAM_APDU [18:06:40]CAPDU: 80 13 01 00 [18:06:40]Write to MH i2c: E2 08 00 77 05 80 13 01 00 00 00 00 00 F9 [18:06:40]Write i2c OK [18:06:40]MH_I2C_Read... [18:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:40]Read from MH i2c: E2 [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: E2 0E 00 [18:06:40]MH_I2C_Read... [18:06:40]Read from MH i2c: E2 0E 00 77 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8A [18:06:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:06:40]wFMCommunicate OK [18:06:40]SAM_PROTO_GetShiftState done [18:06:40]FM_GetShiftState done [18:06:40]opened in 1724113785 [18:06:40]opened+sec_in_day 1724200185 [18:06:40]quantity*price = 100005 [18:06:40]sum+1 = 100006 [18:06:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 313 20.08.2024 18:06 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139841 ФПД: 252440691122026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180640&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139841&fm=252440691122026&tin=02508201610067®Number=0000000000092569&sum=100000 [18:06:43]StoreToDocumentArchive [18:06:43]shift 453 fd 139841 [18:06:43]save to /storage/0453/doc_00139841 [18:06:43]save last doc name /storage/0453/doc_00139841 to /storage/kkm_last_doc_name [18:06:43]save OK [18:06:43]Clear old archive folders... [18:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:43]tlvbuf is 003390F0 [18:06:43]SAM_PROTO_ClearQueue [18:06:43]wFMCommunicate request_size=4 [18:06:43]MH_SAM_APDU [18:06:43]CAPDU: 80 09 00 00 [18:06:43]Write to MH i2c: E2 08 00 84 05 80 09 00 00 00 00 00 00 FB [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:43]Read from MH i2c: E2 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 84 05 00 90 00 FD [18:06:43]RAPDU: 90 00 [18:06:43]wFMCommunicate OK [18:06:43]SAM_PROTO_ClearQueue done [18:06:43]KKMCreateOFDPacket [18:06:43]OFDProtocolAddRootSTLVToBuf [18:06:43]FM_MakeSignedData [18:06:43]FM_MakeSignedData [18:06:43]SAM_PROTO_SignData [18:06:43]wFMCommunicate request_size=4 [18:06:43]MH_SAM_APDU [18:06:43]CAPDU: 80 0D 01 02 [18:06:43]Write to MH i2c: E2 08 00 85 05 80 0D 01 02 00 00 00 00 03 [18:06:43]Write i2c OK [18:06:43]MH_I2C_Read... [18:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:43]Read from MH i2c: E2 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 [18:06:43]MH_I2C_Read... [18:06:43]Read from MH i2c: E2 03 00 85 05 00 90 00 FE [18:06:43]RAPDU: 90 00 [18:06:43]wFMCommunicate OK [18:06:43]wFMCommunicate request_size=255 [18:06:43]MH_SAM_APDU [18:06:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 30 DB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 22 02 00 35 04 06 00 E5 [18:06:44]Write to MH i2c: E2 02 01 86 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 30 DB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 22 02 00 35 04 06 00 E5 00 00 9A [18:06:44]Write i2c OK [18:06:44]MH_I2C_Read... [18:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:45]Read from MH i2c: E2 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: E2 03 00 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: E2 03 00 86 05 00 90 00 FF [18:06:45]RAPDU: 90 00 [18:06:45]wFMCommunicate OK [18:06:45]wFMCommunicate request_size=10 [18:06:45]MH_SAM_APDU [18:06:45]CAPDU: 80 0D 02 02 05 97 ED B8 9F 6A [18:06:45]Write to MH i2c: E2 0D 00 87 05 80 0D 02 02 05 00 97 ED B8 9F 6A 00 00 55 [18:06:45]Write i2c OK [18:06:45]MH_I2C_Read... [18:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:45]Read from MH i2c: E2 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: E2 03 00 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: E2 03 00 87 05 00 90 00 00 [18:06:45]RAPDU: 90 00 [18:06:45]wFMCommunicate OK [18:06:45]wFMCommunicate request_size=4 [18:06:45]MH_SAM_APDU [18:06:45]CAPDU: 80 0D 03 02 [18:06:45]Write to MH i2c: E2 08 00 88 05 80 0D 03 02 00 00 00 00 08 [18:06:45]Write i2c OK [18:06:45]MH_I2C_Read... [18:06:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:45]Read from MH i2c: E2 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: E2 0B 00 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: E2 0B 00 88 05 00 93 3D 06 5E D9 64 5C E7 90 00 BD [18:06:45]RAPDU: 93 3D 06 5E D9 64 5C E7 90 00 [18:06:45]wFMCommunicate OK [18:06:45]SAM_PROTO_SignData done [18:06:45]FM_MakeSignedData done [18:06:45]CreateOFDProtocolMessage [18:06:45]wFMCommunicate request_size=4 [18:06:45]MH_SAM_APDU [18:06:45]CAPDU: 80 11 00 00 [18:06:45]Write to MH i2c: E2 08 00 89 05 80 11 00 00 00 00 00 00 08 [18:06:45]Write i2c OK [18:06:45]MH_I2C_Read... [18:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:45]Read from MH i2c: E2 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: E2 17 00 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: E2 17 00 89 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [18:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:06:45]wFMCommunicate OK [18:06:45]CreateOFDProtocolMessage done [18:06:45]OFDSenderStorePacket 139841 [18:06:45]StoreOFDPacket docnum=139841 [18:06:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0C 7A 07 01 30 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 30 DB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 22 02 00 35 04 06 00 E5 97 ED B8 9F 6A 93 3D 06 5E D9 64 5C E7 [18:06:45]CheckFolder [18:06:45]dirname=/storage/ofd_packets [18:06:45]CheckFolder done [18:06:45]ProducePacketName [18:06:45]name=ofd_packets/00139841 [18:06:45]NVStorageSaveData ofd_packets/00139841 [18:06:45]File name is /storage/ofd_packets/00139841 [18:06:45]Write 301 bytes [18:06:45]NVStorageSaveData done [18:06:45]OFDSenderStorePacket done [18:06:45]KKMCreateOFDPacket done [18:06:45]NVStorageSaveData kkm_last_timestamp [18:06:45]File name is /storage/kkm_last_timestamp [18:06:45]Write 4 bytes [18:06:45]NVStorageSaveData done [18:06:45]ExternCall_PrintAddStr [18:06:45]wPrintStart [18:06:45]Write to MH i2c: 01 00 00 8A 05 8F [18:06:45]Write i2c OK [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: 01 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: 01 07 00 [18:06:45]MH_I2C_Read... [18:06:45]Read from MH i2c: 01 07 00 8A 05 00 00 00 00 00 FF 0F A4 [18:06:45]RasterBufferAndPrint [18:06:45]line Счет N : (1)593691 [18:06:45]line ИНН: 02508201610067 [18:06:45]line Контрольно-Кассовый Чек [18:06:45]line ПРОДАЖА [18:06:45]line ТРК (МРК, ГНК) : 52 [18:06:45]line Товар: 2710124130 [18:06:45]line Аи-92-К-5 [18:06:45]line 14.750 * 67.80 [18:06:45]line = 1000.05 [18:06:45]line НДС 12% НСП 1% [18:06:45]line > о реализуемом товаре [18:06:45]line ОКРУГЛЕНИЕ: -0.05 [18:06:45]line ИТОГО: 1000.00 [18:06:45]line Внесено: 1000.00 [18:06:45]line СДАЧА: 0.00 [18:06:45]line НСП 1% : 8.85 [18:06:45]line НДС 12% : 106.20 [18:06:45]line Наличными: 1000.00 [18:06:45]line Безнал.: 0.00 [18:06:45]line Место: АЗС № 136 "Партнер Нефть" [18:06:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:06:45]line СНО: Общий режим [18:06:45]line Чек 313 20.08.2024 18:06 [18:06:45]line Смена: 453 ФФД: 1.0 [18:06:45]line ЗНМ: 0300000067 [18:06:45]line РНМ: 0000000000092569 [18:06:45]line Версия ККМ: 001 [18:06:45]line ФМ: 0000000000871776 [18:06:45]line ФД: 139841 [18:06:45]line ФПД: 252440691122026 [18:06:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180640&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139841&fm=252440691122026&tin=02508201610067®Number=0000000000092569&sum=100000 [18:06:45]written 0, free lines is 4095 [18:06:46]Write to MH i2c: 01 00 00 B5 05 BA [18:06:46]Write i2c OK [18:06:46]MH_I2C_Read... [18:06:46]Read from MH i2c: 01 [18:06:46]MH_I2C_Read... [18:06:46]Read from MH i2c: 01 07 00 [18:06:46]MH_I2C_Read... [18:06:46]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 F5 0C C2 [18:06:46]RasterBufferAndPrint [18:06:46]line [18:06:46]line [18:06:46]line [18:06:46]line [18:06:46]line [18:06:46]written 0, free lines is 3436 [18:06:46]MH_Cut [18:06:46]Write to MH i2c: D1 01 00 BC 05 01 93 [18:06:46]Write i2c OK [18:06:46]MH_I2C_Read... [18:06:46]Read from MH i2c: D1 [18:06:46]MH_I2C_Read... [18:06:46]Read from MH i2c: D1 01 00 [18:06:46]MH_I2C_Read... [18:06:46]Read from MH i2c: D1 01 00 BC 05 00 92 [18:06:46]Write to MH i2c: 01 00 00 BD 05 C2 [18:06:46]Write i2c OK [18:06:46]MH_I2C_Read... [18:06:47]*** Cut start [18:06:47]*** Partial cut [18:06:47]*** CUTSNS_PIN = 1 [18:06:47]*** CUTSNS_PIN = 0 [18:06:47]*** Brake cut motor [18:06:47]ConnectInit Can't take IP for lk.salyk.kg [18:06:47]CommunicateWithHost connect error [18:06:47]CommunicateWithHost err = -1 [18:06:47]OFD Sender: Server communicate error [18:06:47]Read from MH i2c: 01 [18:06:47]MH_I2C_Read... [18:06:47]*** Stop cut motor [18:06:47]*** Cut end [18:06:47]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:06:47]ProducePacketName [18:06:47]name=ofd_packets/00139800 [18:06:47]OFD Sender: To server: pG, [18:06:47]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [18:06:47]01 ConnectInit lk.salyk.kg [18:06:47]07 00 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: 01 07 00 BD 05 00 00 00 00 00 FF 0F D7 [18:06:47]process_action close_receipt done [18:06:47]requested_data is exist [18:06:47]produce_requested_data [18:06:47]requested_item fm.sn is exist - process it [18:06:47]wFMCommunicate request_size=4 [18:06:47]MH_SAM_APDU [18:06:47]CAPDU: 80 11 00 00 [18:06:47]Write to MH i2c: E2 08 00 BE 05 80 11 00 00 00 00 00 00 3D [18:06:47]Write i2c OK [18:06:47]MH_I2C_Read... [18:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:47]Read from MH i2c: E2 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: E2 17 00 [18:06:47]MH_I2C_Read... [18:06:47]Read from MH i2c: E2 17 00 BE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [18:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:06:48]wFMCommunicate OK [18:06:48]requested_item fd.num is exist - process it [18:06:48]SAM_PROTO_GetFieldsCounters [18:06:48]wFMCommunicate request_size=4 [18:06:48]MH_SAM_APDU [18:06:48]CAPDU: 80 13 00 00 [18:06:48]Write to MH i2c: E2 08 00 BF 05 80 13 00 00 00 00 00 00 40 [18:06:48]Write i2c OK [18:06:48]MH_I2C_Read... [18:06:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:48]Read from MH i2c: E2 [18:06:48]MH_I2C_Read... [18:06:48]Read from MH i2c: E2 62 00 [18:06:48]MH_I2C_Read... [18:06:48]Read from MH i2c: E2 62 00 BF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 22 02 00 0E 04 04 00 C5 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 44 [18:06:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 22 02 00 0E 04 04 00 C5 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 [18:06:48]wFMCommunicate OK [18:06:48]SAM_PROTO_GetFieldsCounters done [18:06:48]requested_item shift.num is exist - process it [18:06:48]requested_item shift.opened is exist - process it [18:06:48]req_shift_opened [18:06:48]FM_GetShiftState [18:06:48]SAM_PROTO_GetShiftState [18:06:48]wFMCommunicate request_size=4 [18:06:48]MH_SAM_APDU [18:06:48]CAPDU: 80 13 01 00 [18:06:48]Write to MH i2c: E2 08 00 C0 05 80 13 01 00 00 00 00 00 42 [18:06:48]Write i2c OK [18:06:48]MH_I2C_Read... [18:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:48]Read from MH i2c: E2 [18:06:48]MH_I2C_Read... [18:06:48]Read from MH i2c: E2 0E 00 [18:06:48]MH_I2C_Read... [18:06:48]Read from MH i2c: E2 0E 00 C0 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D3 [18:06:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:06:48]wFMCommunicate OK [18:06:48]SAM_PROTO_GetShiftState done [18:06:48]FM_GetShiftState done [18:06:48]req_shift_opened done [18:06:48]requested_item shift.open_date is exist - process it [18:06:48]req_shift_open_date [18:06:48]req_shift_open_date done [18:06:48]produce_requested_data done [18:06:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139841,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:06:48]process_action_free close_receipt [18:06:48]json_value_free [18:06:48]json_value_free done [18:06:48]process_json_proto returns [18:06:48]Send response to host [18:06:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139841,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:06:48]free response buf [18:06:48]execute_script done [18:06:48]execute_script returns [18:06:48]free content buf [18:06:48]Sock 11.Close socket [18:06:48]Sock 11.Thread stoped [18:06:52]ConnectInit Can't take IP for lk.salyk.kg [18:06:52]CommunicateWithHost connect error [18:06:52]CommunicateWithHost err = -1 [18:06:52]OFD Sender: Server communicate error [18:06:57]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:06:57]ProducePacketName [18:06:57]name=ofd_packets/00139800 [18:06:57]OFD Sender: To server: pG, [18:06:57]CommunicateWithHost lk.salyk.kg:30040 [18:06:57]ConnectInit lk.salyk.kg [18:07:02]ConnectInit Can't take IP for lk.salyk.kg [18:07:02]CommunicateWithHost connect error [18:07:02]CommunicateWithHost err = -1 [18:07:02]OFD Sender: Server communicate error [18:07:07]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:07:07]ProducePacketName [18:07:07]name=ofd_packets/00139800 [18:07:07]OFD Sender: To server: pG, [18:07:07]CommunicateWithHost lk.salyk.kg:30040 [18:07:07]ConnectInit lk.salyk.kg [18:07:12]ConnectInit Can't take IP for lk.salyk.kg [18:07:12]CommunicateWithHost connect error [18:07:12]CommunicateWithHost err = -1 [18:07:12]OFD Sender: Server communicate error [18:07:17]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:07:17]ProducePacketName [18:07:17]name=ofd_packets/00139800 [18:07:17]OFD Sender: To server: pG, [18:07:17]CommunicateWithHost lk.salyk.kg:30040 [18:07:17]ConnectInit lk.salyk.kg [18:07:21]ConnectInit Can't connect to host [18:07:22]ConnectInit Can't take IP for lk.salyk.kg [18:07:22]CommunicateWithHost connect error [18:07:22]CommunicateWithHost err = -1 [18:07:22]OFD Sender: Server communicate error [18:07:27]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:07:27]ProducePacketName [18:07:27]name=ofd_packets/00139800 [18:07:27]OFD Sender: To server: pG, [18:07:27]CommunicateWithHost lk.salyk.kg:30040 [18:07:27]ConnectInit lk.salyk.kg [18:07:32]ConnectInit Can't take IP for lk.salyk.kg [18:07:32]CommunicateWithHost connect error [18:07:32]CommunicateWithHost err = -1 [18:07:32]OFD Sender: Server communicate error [18:07:37]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:07:37]ProducePacketName [18:07:37]name=ofd_packets/00139800 [18:07:37]OFD Sender: To server: pG, [18:07:37]CommunicateWithHost lk.salyk.kg:30040 [18:07:37]ConnectInit lk.salyk.kg [18:07:42]ConnectInit Can't take IP for lk.salyk.kg [18:07:42]CommunicateWithHost connect error [18:07:42]CommunicateWithHost err = -1 [18:07:42]OFD Sender: Server communicate error [18:07:47]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:07:47]ProducePacketName [18:07:47]name=ofd_packets/00139800 [18:07:47]OFD Sender: To server: pG, [18:07:47]CommunicateWithHost lk.salyk.kg:30040 [18:07:47]ConnectInit lk.salyk.kg [18:07:52]ConnectInit Can't take IP for lk.salyk.kg [18:07:52]CommunicateWithHost connect error [18:07:52]CommunicateWithHost err = -1 [18:07:52]OFD Sender: Server communicate error [18:07:57]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:07:57]ProducePacketName [18:07:57]name=ofd_packets/00139800 [18:07:57]OFD Sender: To server: pG, [18:07:57]CommunicateWithHost lk.salyk.kg:30040 [18:07:57]ConnectInit lk.salyk.kg [18:08:02]ConnectInit Can't take IP for lk.salyk.kg [18:08:02]CommunicateWithHost connect error [18:08:02]CommunicateWithHost err = -1 [18:08:02]OFD Sender: Server communicate error [18:08:07]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:08:07]ProducePacketName [18:08:08]name=ofd_packets/00139800 [18:08:08]OFD Sender: To server: pG, [18:08:08]CommunicateWithHost lk.salyk.kg:30040 [18:08:08]ConnectInit lk.salyk.kg [18:08:13]ConnectInit Can't take IP for lk.salyk.kg [18:08:13]CommunicateWithHost connect error [18:08:13]CommunicateWithHost err = -1 [18:08:13]OFD Sender: Server communicate error [18:08:18]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:08:18]ProducePacketName [18:08:18]name=ofd_packets/00139800 [18:08:18]OFD Sender: To server: pG, [18:08:18]CommunicateWithHost lk.salyk.kg:30040 [18:08:18]ConnectInit lk.salyk.kg [18:08:23]ConnectInit Can't take IP for lk.salyk.kg [18:08:23]CommunicateWithHost connect error [18:08:23]CommunicateWithHost err = -1 [18:08:23]OFD Sender: Server communicate error [18:08:28]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:08:28]ProducePacketName [18:08:28]name=ofd_packets/00139800 [18:08:28]OFD Sender: To server: pG, [18:08:28]CommunicateWithHost lk.salyk.kg:30040 [18:08:28]ConnectInit lk.salyk.kg [18:08:33]ConnectInit Can't take IP for lk.salyk.kg [18:08:33]CommunicateWithHost connect error [18:08:33]CommunicateWithHost err = -1 [18:08:33]OFD Sender: Server communicate error [18:08:38]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:08:38]ProducePacketName [18:08:38]name=ofd_packets/00139800 [18:08:38]OFD Sender: To server: pG, [18:08:38]CommunicateWithHost lk.salyk.kg:30040 [18:08:38]ConnectInit lk.salyk.kg [18:08:43]ConnectInit Can't take IP for lk.salyk.kg [18:08:43]CommunicateWithHost connect error [18:08:43]CommunicateWithHost err = -1 [18:08:43]OFD Sender: Server communicate error [18:08:48]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:08:48]ProducePacketName [18:08:48]name=ofd_packets/00139800 [18:08:48]OFD Sender: To server: pG, [18:08:48]CommunicateWithHost lk.salyk.kg:30040 [18:08:48]ConnectInit lk.salyk.kg [18:08:53]ConnectInit Can't take IP for lk.salyk.kg [18:08:53]CommunicateWithHost connect error [18:08:53]CommunicateWithHost err = -1 [18:08:53]OFD Sender: Server communicate error [18:08:58]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:08:58]ProducePacketName [18:08:58]name=ofd_packets/00139800 [18:08:58]OFD Sender: To server: pG, [18:08:58]CommunicateWithHost lk.salyk.kg:30040 [18:08:58]ConnectInit lk.salyk.kg [18:09:03]ConnectInit Can't take IP for lk.salyk.kg [18:09:03]CommunicateWithHost connect error [18:09:03]CommunicateWithHost err = -1 [18:09:03]OFD Sender: Server communicate error [18:09:08]OFD Sender: Processing packet 139800 [packets to send 178, broken 136] [18:09:08]ProducePacketName [18:09:08]name=ofd_packets/00139800 [18:09:08]OFD Sender: To server: pG, [18:09:08]CommunicateWithHost lk.salyk.kg:30040 [18:09:08]ConnectInit lk.salyk.kg [18:09:10]accept exits with 9 [18:09:10]New connection [18:09:10]New thread 3067219300 created [18:09:10]Thread 3067362660 joined [18:09:10]Waiting for new connection... [18:09:10] Sock 9.Parse request [18:09:10]Sock 9.Check first char [18:09:10]Sock 9.First char is OK [18:09:10]request: POST /json_proto HTTP/1.0 [18:09:10]Method: POST [18:09:10]URL: /json_proto [18:09:10]Method is POST - this is cgi request [18:09:10]url: /json_proto [18:09:10]query_string will be loaded in cgi processing [18:09:10]execute_cgi json_proto POST (null) [18:09:10]execute_cgi path=json_proto method=POST [18:09:10]POST find Content-Length [18:09:10]Host: 172.17.45.67:8080 [18:09:10]Content-Length: 677 [18:09:10]Content-Type: application/json [18:09:10] [18:09:10]POST finish read [18:09:10]Found Content-Length = 677 [18:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:10]execute_script... [18:09:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:10]POST & json_proto [18:09:10]process_json_proto [18:09:10]json parsed OK: [18:09:10]protocol is kg_v1.0 [18:09:10]action value=close_receipt [18:09:10]process_action close_receipt [18:09:10]cmd_close_receipt [18:09:10]MH_GetDate [18:09:10]Write to MH i2c: F0 00 00 C1 05 B5 [18:09:10]Write i2c OK [18:09:10]MH_I2C_Read... [18:09:10]Read from MH i2c: F0 [18:09:10]MH_I2C_Read... [18:09:10]Read from MH i2c: F0 09 00 [18:09:10]MH_I2C_Read... [18:09:10]Read from MH i2c: F0 09 00 C1 05 00 C6 DB C4 66 5F 7F 2B 66 F8 [18:09:10]GetLastDocTimeStamp 1724177200 [18:09:10]current date 1724177350 [18:09:10]FM_GetShiftState [18:09:10]SAM_PROTO_GetShiftState [18:09:10]wFMCommunicate request_size=4 [18:09:10]MH_SAM_APDU [18:09:10]CAPDU: 80 13 01 00 [18:09:10]Write to MH i2c: E2 08 00 C2 05 80 13 01 00 00 00 00 00 44 [18:09:10]Write i2c OK [18:09:10]MH_I2C_Read... [18:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:10]Read from MH i2c: E2 [18:09:10]MH_I2C_Read... [18:09:10]Read from MH i2c: E2 0E 00 [18:09:10]MH_I2C_Read... [18:09:10]Read from MH i2c: E2 0E 00 C2 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D5 [18:09:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:09:10]wFMCommunicate OK [18:09:10]SAM_PROTO_GetShiftState done [18:09:10]FM_GetShiftState done [18:09:10]opened in 1724113785 [18:09:10]opened+sec_in_day 1724200185 [18:09:10]quantity*price = 30035 [18:09:10]sum+1 = 30036 [18:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 314 20.08.2024 18:09 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139842 ФПД: 170638874423021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T180911&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139842&fm=170638874423021&tin=02508201610067®Number=0000000000092569&sum=30000 [18:09:13]StoreToDocumentArchive [18:09:13]shift 453 fd 139842 [18:09:13]save to /storage/0453/doc_00139842 [18:09:13]save last doc name /storage/0453/doc_00139842 to /storage/kkm_last_doc_name [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10052126+1714126687=1724178813 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 7E E1 C4 66 5F 7F 2B 66 F7 [18:33:34]Current date/time: 20.08.2024 18:33 [18:33:34]FM_Init [18:33:34]wFMConnect [18:33:34]MH_SAM_On [18:33:34]Write to MH i2c: E0 00 00 08 00 E7 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_init finished! [18:33:34]*** atr: [18:33:34]*** 0F 3B D5 18 FF 81 91 FE [18:33:34]*** 1F C3 80 73 C8 21 10 0A [18:33:34]*** 00 00 00 00 00 00 00 00 [18:33:34]*** 00 00 00 00 00 00 00 00 [18:33:34]*** 00 00 00 00 00 00 00 00 [18:33:34]*** 00 00 00 00 00 00 00 00 [18:33:34]*** 00 00 00 00 00 00 00 00 [18:33:34]*** 00 00 00 00 00 00 00 00 [18:33:34]Read from MH i2c: E0 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E0 10 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:33:34]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:33:34]wFMCommunicate request_size=10 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:33:34]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 11 00 00 [18:33:34]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [18:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:33:34]wFMCommunicate OK [18:33:34]Detected FM SN is 0000000000871776 [18:33:34]Stored FM SN is 0000000000871776 [18:33:34]wFMCommunicate request_size=9 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 16 00 00 04 3F B1 00 00 [18:33:34]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]FM PIN OK [18:33:34]wFMCommunicate request_size=8 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 14 04 00 03 02 00 01 [18:33:34]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=13 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:33:34]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 11 00 00 [18:33:34]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [18:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:33:34]wFMCommunicate OK [18:33:34]DocumentArchiveInit [18:33:34]Start Httpd... [18:33:34]Httpd thread 3067227492 created [18:33:34]Write to MH i2c: 01 00 00 0F 00 0F [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:33:34]MH Int Process started [18:33:34]Allocated Socket 8 [18:33:34]Bind OK [18:33:34]Listen OK [18:33:34]httpd running on port 8080 [18:33:34]Waiting for new connection... [18:33:34]OFD Sender: Processing packet 139857 [packets to send 140, broken 136] [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00139857 [18:33:34]OFD Sender: To server: pG, [18:33:34]CommunicateWithHost lk.salyk.kg:30040 [18:33:34]ConnectInit lk.salyk.kg [18:33:34]Connected sock=6 [18:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 B3 07 01 4C 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 EF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 3F E0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 22 02 00 35 04 06 00 E9 EF 4F FE 1E 55 30 E3 2B A7 A0 0B 91 3C [18:33:34]accept exits with 9 [18:33:34]New connection [18:33:34]New thread 3066940772 created [18:33:34]Waiting for new connection... [18:33:34] Sock 9.Parse request [18:33:34]Sock 9.Check first char [18:33:34]Sock 9.First char is OK [18:33:34]request: POST /json_proto HTTP/1.0 [18:33:34]Method: POST [18:33:34]URL: /json_proto [18:33:34]Method is POST - this is cgi request [18:33:34]url: /json_proto [18:33:34]query_string will be loaded in cgi processing [18:33:34]execute_cgi json_proto POST (null) [18:33:34]execute_cgi path=json_proto method=POST [18:33:34]POST find Content-Length [18:33:34]Host: 172.17.45.67:8080 [18:33:34]Content-Length: 215 [18:33:34]Content-Type: application/json [18:33:34] [18:33:34]POST finish read [18:33:34]Found Content-Length = 215 [18:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:34]execute_script... [18:33:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:34]POST & json_proto [18:33:34]process_json_proto [18:33:34]json parsed OK: [18:33:34]protocol is kg_v1.0 [18:33:34]action value=get_value [18:33:34]process_action get_value [18:33:34]cmd_get_value [18:33:34]process_action get_value done [18:33:34]requested_data is exist [18:33:34]produce_requested_data [18:33:34]requested_item kkm.sn is exist - process it [18:33:34]requested_item kkm.ver is exist - process it [18:33:34]requested_item fm.sn is exist - process it [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 11 00 00 [18:33:34]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [18:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:33:34]wFMCommunicate OK [18:33:34]requested_item fd.num is exist - process it [18:33:34]SAM_PROTO_GetFieldsCounters [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 13 00 00 [18:33:34]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 58 E4 47 00 EE CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 22 02 00 F4 03 04 00 0F 88 C4 66 B6 04 01 00 00 8F BE 00 11 E0 00 37 00 [18:33:35]CommunicateWithHost err = 0 [18:33:35]CheckOFDResponse [18:33:35]1017 (14) - 77093643461234 [18:33:35]1041 (16) - 0000000000871776 [18:33:35]1040 (4) - 139857 [18:33:35]1012 (4) - 20.08.2024 12:11 [18:33:35]1206 (1) - 0 [18:33:35]OFD Sender: Remove packet 139857 [18:33:35]ProducePacketName [18:33:35]name=ofd_packets/00139857 [18:33:35]NVStorageDeleteData [18:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:35]Read from MH i2c: E2 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 62 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 22 02 00 0E 04 04 00 C5 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 DD [18:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 22 02 00 0E 04 04 00 C5 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 [18:33:35]wFMCommunicate OK [18:33:35]SAM_PROTO_GetFieldsCounters done [18:33:35]requested_item shift.num is exist - process it [18:33:35]requested_item shift.opened is exist - process it [18:33:35]req_shift_opened [18:33:35]FM_GetShiftState [18:33:35]SAM_PROTO_GetShiftState [18:33:35]wFMCommunicate request_size=4 [18:33:35]MH_SAM_APDU [18:33:35]CAPDU: 80 13 01 00 [18:33:35]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:35]Read from MH i2c: E2 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 0E 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 20 [18:33:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:33:35]wFMCommunicate OK [18:33:35]SAM_PROTO_GetShiftState done [18:33:35]FM_GetShiftState done [18:33:35]req_shift_opened done [18:33:35]requested_item shift.open_date is exist - process it [18:33:35]req_shift_open_date [18:33:35]req_shift_open_date done [18:33:35]produce_requested_data done [18:33:35]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139860,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:33:35]process_action_free get_value [18:33:35]json_value_free [18:33:35]json_value_free done [18:33:35]process_json_proto returns [18:33:35]Send response to host [18:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139860,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:33:35]free response buf [18:33:35]execute_script done [18:33:35]execute_script returns [18:33:35]free content buf [18:33:35]Sock 9.Close socket [18:33:35]Sock 9.Thread stoped [18:33:35]accept exits with 10 [18:33:35]New connection [18:33:35]New thread 3066797412 created [18:33:35]Thread 3066940772 joined [18:33:35]Waiting for new connection... [18:33:35] Sock 10.Parse request [18:33:35]Sock 10.Check first char [18:33:35]Sock 10.First char is OK [18:33:35]request: POST /json_proto HTTP/1.0 [18:33:35]Method: POST [18:33:35]URL: /json_proto [18:33:35]Method is POST - this is cgi request [18:33:35]url: /json_proto [18:33:35]query_string will be loaded in cgi processing [18:33:35]execute_cgi json_proto POST (null) [18:33:35]execute_cgi path=json_proto method=POST [18:33:35]POST find Content-Length [18:33:35]Host: 172.17.45.67:8080 [18:33:35]Content-Length: 331 [18:33:35]Content-Type: application/json [18:33:35] [18:33:35]POST finish read [18:33:35]Found Content-Length = 331 [18:33:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:33:35]execute_script... [18:33:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:33:35]POST & json_proto [18:33:35]process_json_proto [18:33:35]json parsed OK: [18:33:35]protocol is kg_v1.0 [18:33:35]action value=get_value [18:33:35]process_action get_value [18:33:35]cmd_get_value [18:33:35]process_action get_value done [18:33:35]requested_data is exist [18:33:35]produce_requested_data [18:33:35]requested_item fm.sale.total is exist - process it [18:33:35]SAM_PROTO_GetFMData [18:33:35]wFMCommunicate request_size=4 [18:33:35]MH_SAM_APDU [18:33:35]CAPDU: 80 13 03 00 [18:33:35]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]OFD Sender: Processing packet 139858 [packets to send 139, broken 136] [18:33:35]ProducePacketName [18:33:35]name=ofd_packets/00139858 [18:33:35]OFD Sender: To server: pG, [18:33:35]CommunicateWithHost lk.salyk.kg:30040 [18:33:35]ConnectInit lk.salyk.kg [18:33:35]Connected sock=9 [18:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 BA 6E 00 01 FA C8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 61 E0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 22 02 00 35 04 06 00 9E 12 73 CB A7 84 DC 64 4A F6 36 06 24 FE [18:33:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:33:35]Read from MH i2c: E2 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 FD 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 C9 1E 02 00 69 04 A3 00 6F 04 04 00 48 1E 02 00 B1 04 05 00 A7 FC AB 3B 02 70 04 05 00 E0 C5 7A F1 01 72 04 04 00 C7 36 31 4A 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 85 A4 BC 3C 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 1E 99 0F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 57 [18:33:35]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 C9 1E 02 00 69 04 A3 00 6F 04 04 00 48 1E 02 00 B1 04 05 00 A7 FC AB 3B 02 70 04 05 00 E0 C5 7A F1 01 72 04 04 00 C7 36 31 4A 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 85 A4 BC 3C 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 1E 99 0F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [18:33:35]wFMCommunicate OK [18:33:35]wFMCommunicate request_size=4 [18:33:35]MH_SAM_APDU [18:33:35]CAPDU: 80 17 00 00 [18:33:35]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E4 89 47 00 DE 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 22 02 00 F4 03 04 00 10 88 C4 66 B6 04 01 00 00 E9 BE 6D 7B E6 B5 29 8B [18:33:35]CommunicateWithHost err = 0 [18:33:35]CheckOFDResponse [18:33:35]1017 (14) - 77093643461234 [18:33:35]1041 (16) - 0000000000871776 [18:33:35]1040 (4) - 139858 [18:33:35]1012 (4) - 20.08.2024 12:12 [18:33:35]1206 (1) - 0 [18:33:35]OFD Sender: Remove packet 139858 [18:33:35]ProducePacketName [18:33:35]name=ofd_packets/00139858 [18:33:35]NVStorageDeleteData [18:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:33:36]Read from MH i2c: E2 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 FD 00 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 99 [18:33:36]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [18:33:36]wFMCommunicate OK [18:33:36]wFMCommunicate request_size=4 [18:33:36]MH_SAM_APDU [18:33:36]CAPDU: 80 17 00 00 [18:33:36]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:33:36]Write i2c OK [18:33:36]MH_I2C_Read... [18:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:33:36]Read from MH i2c: E2 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 FD 00 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [18:33:36]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [18:33:36]wFMCommunicate OK [18:33:36]wFMCommunicate request_size=4 [18:33:36]MH_SAM_APDU [18:33:36]CAPDU: 80 17 00 00 [18:33:36]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:33:36]OFD Sender: Processing packet 139859 [packets to send 138, broken 136] [18:33:36]ProducePacketName [18:33:36]name=ofd_packets/00139859 [18:33:36]OFD Sender: To server: pG, [18:33:36]CommunicateWithHost lk.salyk.kg:30040 [18:33:36]ConnectInit lk.salyk.kg [18:33:36]Write i2c OK [18:33:36]MH_I2C_Read... [18:33:36]Connected sock=9 [18:33:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2C 63 07 01 EC 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 4B 01 00 00 F4 03 04 00 A6 E0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 22 02 00 35 04 06 00 A4 B2 D5 A8 67 E7 FF 28 30 3E 39 A5 19 EC [18:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:33:36]Read from MH i2c: E2 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 FD 00 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [18:33:36]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [18:33:36]wFMCommunicate OK [18:33:36]wFMCommunicate request_size=4 [18:33:36]MH_SAM_APDU [18:33:36]CAPDU: 80 17 00 00 [18:33:36]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:33:36]Write i2c OK [18:33:36]MH_I2C_Read... [18:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3B A6 47 00 86 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 22 02 00 F4 03 04 00 11 88 C4 66 B6 04 01 00 00 8E 74 43 95 0B 13 AC AE [18:33:36]CommunicateWithHost err = 0 [18:33:36]CheckOFDResponse [18:33:36]1017 (14) - 77093643461234 [18:33:36]1041 (16) - 0000000000871776 [18:33:36]1040 (4) - 139859 [18:33:36]1012 (4) - 20.08.2024 12:12 [18:33:36]1206 (1) - 0 [18:33:36]OFD Sender: Remove packet 139859 [18:33:36]ProducePacketName [18:33:36]name=ofd_packets/00139859 [18:33:36]NVStorageDeleteData [18:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [18:33:37]Read from MH i2c: E2 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 E1 00 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [18:33:37]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:33:37]wFMCommunicate OK [18:33:37]SAM_PROTO_GetFMData done [18:33:37]requested_item fm.sale_refund.total is exist - process it [18:33:37]requested_item fm.buy.total is exist - process it [18:33:37]requested_item shift.sale.total is exist - process it [18:33:37]SAM_PROTO_GetShiftData [18:33:37]wFMCommunicate request_size=4 [18:33:37]MH_SAM_APDU [18:33:37]CAPDU: 80 13 02 00 [18:33:37]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:33:37]Write i2c OK [18:33:37]MH_I2C_Read... [18:33:37]OFD Sender: Processing packet 139860 [packets to send 137, broken 136] [18:33:37]ProducePacketName [18:33:37]name=ofd_packets/00139860 [18:33:37]OFD Sender: To server: pG, [18:33:37]CommunicateWithHost lk.salyk.kg:30040 [18:33:37]ConnectInit lk.salyk.kg [18:33:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:33:37]Read from MH i2c: E2 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 FD 00 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 4C 01 00 00 69 04 9E 00 6F 04 04 00 4C 01 00 00 B1 04 04 00 C8 8B 64 01 70 04 04 00 D8 DF 50 01 72 04 03 00 F0 AB 13 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 74 E0 25 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 10 28 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 29 [18:33:37]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4C 01 00 00 69 04 9E 00 6F 04 04 00 4C 01 00 00 B1 04 04 00 C8 8B 64 01 70 04 04 00 D8 DF 50 01 72 04 03 00 F0 AB 13 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 74 E0 25 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 10 28 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [18:33:37]wFMCommunicate OK [18:33:37]wFMCommunicate request_size=4 [18:33:37]MH_SAM_APDU [18:33:37]CAPDU: 80 17 00 00 [18:33:37]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:33:37]Write i2c OK [18:33:37]MH_I2C_Read... [18:33:37]Connected sock=9 [18:33:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 1F EA 08 01 F4 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 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 D6 E0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 22 02 00 35 04 06 00 D3 12 FA 3D A7 9C 48 BD B2 29 3B D4 65 33 [18:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:33:37]Read from MH i2c: E2 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 FD 00 [18:33:37]MH_I2C_Read... [18:33:37]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 B2 [18:33:38]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 [18:33:38]wFMCommunicate OK [18:33:38]wFMCommunicate request_size=4 [18:33:38]MH_SAM_APDU [18:33:38]CAPDU: 80 17 00 00 [18:33:38]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:33:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F6 E6 47 00 D9 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 22 02 00 F4 03 04 00 12 88 C4 66 B6 04 01 00 00 E1 FF DA 97 7E 2E EC 32 [18:33:38]CommunicateWithHost err = 0 [18:33:38]CheckOFDResponse [18:33:38]1017 (14) - 77093643461234 [18:33:38]1041 (16) - 0000000000871776 [18:33:38]1040 (4) - 139860 [18:33:38]1012 (4) - 20.08.2024 12:12 [18:33:38]1206 (1) - 0 [18:33:38]OFD Sender: Remove packet 139860 [18:33:38]ProducePacketName [18:33:38]name=ofd_packets/00139860 [18:33:38]NVStorageDeleteData [18:33:38]Write i2c OK [18:33:38]MH_I2C_Read... [18:33:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:33:38]Read from MH i2c: E2 [18:33:38]MH_I2C_Read... [18:33:38]Read from MH i2c: E2 FD 00 [18:33:38]MH_I2C_Read... [18:33:38]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 53 [18:33:38]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [18:33:38]wFMCommunicate OK [18:33:38]wFMCommunicate request_size=4 [18:33:38]MH_SAM_APDU [18:33:38]CAPDU: 80 17 00 00 [18:33:38]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:33:38]Write i2c OK [18:33:38]MH_I2C_Read... [18:33:38]OFD Sender: No OFD packet to send [18:33:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:33:38]Read from MH i2c: E2 [18:33:38]MH_I2C_Read... [18:33:38]Read from MH i2c: E2 FD 00 [18:33:38]MH_I2C_Read... [18:33:38]Read from MH i2c: E2 FD 00 1B 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 13 [18:33:38]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [18:33:38]wFMCommunicate OK [18:33:38]wFMCommunicate request_size=4 [18:33:38]MH_SAM_APDU [18:33:38]CAPDU: 80 17 00 00 [18:33:38]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:33:38]Write i2c OK [18:33:38]MH_I2C_Read... [18:33:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [18:33:39]Read from MH i2c: E2 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: E2 CE 00 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [18:33:39]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:33:39]wFMCommunicate OK [18:33:39]SAM_PROTO_GetShiftData done [18:33:39]requested_item shift.sale.total_cash is exist - process it [18:33:39]requested_item shift.sale_refund.total is exist - process it [18:33:39]requested_item shift.sale_refund.total_cash is exist - process it [18:33:39]requested_item shift.buy.total is exist - process it [18:33:39]requested_item shift.buy.total_cash is exist - process it [18:33:39]produce_requested_data done [18:33:39]produce_requested_data return {"fm.sale.total":95910616.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":233666.00,"shift.sale.total_cash":220774.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:33:39]process_action_free get_value [18:33:39]json_value_free [18:33:39]json_value_free done [18:33:39]process_json_proto returns [18:33:39]Send response to host [18:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95910616.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":233666.00,"shift.sale.total_cash":220774.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:33:39]free response buf [18:33:39]execute_script done [18:33:39]execute_script returns [18:33:39]free content buf [18:33:39]Sock 10.Close socket [18:33:39]Sock 10.Thread stoped [18:33:39]accept exits with 6 [18:33:39]New connection [18:33:39]New thread 3066940772 created [18:33:39]Thread 3066797412 joined [18:33:39]Waiting for new connection... [18:33:39] Sock 6.Parse request [18:33:39]Sock 6.Check first char [18:33:39]Sock 6.First char is OK [18:33:39]request: POST /json_proto HTTP/1.0 [18:33:39]Method: POST [18:33:39]URL: /json_proto [18:33:39]Method is POST - this is cgi request [18:33:39]url: /json_proto [18:33:39]query_string will be loaded in cgi processing [18:33:39]execute_cgi json_proto POST (null) [18:33:39]execute_cgi path=json_proto method=POST [18:33:39]POST find Content-Length [18:33:39]Host: 172.17.45.67:8080 [18:33:39]Content-Length: 677 [18:33:39]Content-Type: application/json [18:33:39] [18:33:39]POST finish read [18:33:39]Found Content-Length = 677 [18:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:39]execute_script... [18:33: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)593711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:39]POST & json_proto [18:33:39]process_json_proto [18:33:39]json parsed OK: [18:33:39]protocol is kg_v1.0 [18:33:39]action value=close_receipt [18:33:39]process_action close_receipt [18:33:39]cmd_close_receipt [18:33:39]MH_GetDate [18:33:39]Write to MH i2c: F0 00 00 1D 00 0C [18:33:39]Write i2c OK [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: F0 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: F0 09 00 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: F0 09 00 1D 00 00 84 E1 C4 66 5F 7F 2B 66 13 [18:33:39]GetLastDocTimeStamp 1724178646 [18:33:39]current date 1724178820 [18:33:39]FM_GetShiftState [18:33:39]SAM_PROTO_GetShiftState [18:33:39]wFMCommunicate request_size=4 [18:33:39]MH_SAM_APDU [18:33:39]CAPDU: 80 13 01 00 [18:33:39]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:33:39]Write i2c OK [18:33:39]MH_I2C_Read... [18:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:39]Read from MH i2c: E2 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: E2 0E 00 [18:33:39]MH_I2C_Read... [18:33:39]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2C [18:33:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:33:39]wFMCommunicate OK [18:33:39]SAM_PROTO_GetShiftState done [18:33:39]FM_GetShiftState done [18:33:39]opened in 1724113785 [18:33:39]opened+sec_in_day 1724200185 [18:33:39]quantity*price = 15051 [18:33:39]sum+1 = 15053 [18:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 333 20.08.2024 18:33 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139861 ФПД: 226292250914261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T183340&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139861&fm=226292250914261&tin=02508201610067®Number=0000000000092569&sum=15000 [18:33:41]StoreToDocumentArchive [18:33:41]shift 453 fd 139861 [18:33:41]save to /storage/0453/doc_00139861 [18:33:41]save last doc name /storage/0453/doc_00139861 to /storage/kkm_last_doc_name [18:33:41]save OK [18:33:41]Clear old archive folders... [18:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:41]tlvbuf is 00456EE0 [18:33:41]SAM_PROTO_ClearQueue [18:33:41]wFMCommunicate request_size=4 [18:33:41]MH_SAM_APDU [18:33:41]CAPDU: 80 09 00 00 [18:33:41]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:41]Read from MH i2c: E2 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 03 00 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:33:41]RAPDU: 90 00 [18:33:41]wFMCommunicate OK [18:33:41]SAM_PROTO_ClearQueue done [18:33:41]KKMCreateOFDPacket [18:33:41]OFDProtocolAddRootSTLVToBuf [18:33:41]FM_MakeSignedData [18:33:41]FM_MakeSignedData [18:33:41]SAM_PROTO_SignData [18:33:41]wFMCommunicate request_size=4 [18:33:41]MH_SAM_APDU [18:33:41]CAPDU: 80 0D 01 02 [18:33:41]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:41]Read from MH i2c: E2 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 03 00 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:33:41]RAPDU: 90 00 [18:33:41]wFMCommunicate OK [18:33:41]wFMCommunicate request_size=255 [18:33:41]MH_SAM_APDU [18:33:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 84 E1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 22 02 00 35 04 06 00 CD [18:33:41]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 84 E1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 22 02 00 35 04 06 00 CD 00 00 5F [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:41]Read from MH i2c: E2 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 03 00 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:33:41]RAPDU: 90 00 [18:33:41]wFMCommunicate OK [18:33:41]wFMCommunicate request_size=10 [18:33:41]MH_SAM_APDU [18:33:41]CAPDU: 80 0D 02 02 05 CF C5 3B 2D D5 [18:33:41]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 CF C5 3B 2D D5 00 00 83 [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:41]Read from MH i2c: E2 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 03 00 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:33:41]RAPDU: 90 00 [18:33:41]wFMCommunicate OK [18:33:41]wFMCommunicate request_size=4 [18:33:41]MH_SAM_APDU [18:33:41]CAPDU: 80 0D 03 02 [18:33:41]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:41]Read from MH i2c: E2 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 0B 00 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 0B 00 2F 00 00 6D E4 8F 25 CB 5D DC 1E 90 00 D2 [18:33:41]RAPDU: 6D E4 8F 25 CB 5D DC 1E 90 00 [18:33:41]wFMCommunicate OK [18:33:41]SAM_PROTO_SignData done [18:33:41]FM_MakeSignedData done [18:33:41]CreateOFDProtocolMessage [18:33:41]wFMCommunicate request_size=4 [18:33:41]MH_SAM_APDU [18:33:41]CAPDU: 80 11 00 00 [18:33:41]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:42]Read from MH i2c: E2 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 17 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [18:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:33:42]wFMCommunicate OK [18:33:42]CreateOFDProtocolMessage done [18:33:42]OFDSenderStorePacket 139861 [18:33:42]StoreOFDPacket docnum=139861 [18:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F6 DA 07 01 D8 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 84 E1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 22 02 00 35 04 06 00 CD CF C5 3B 2D D5 6D E4 8F 25 CB 5D DC 1E [18:33:42]CheckFolder [18:33:42]dirname=/storage/ofd_packets [18:33:42]CheckFolder done [18:33:42]ProducePacketName [18:33:42]name=ofd_packets/00139861 [18:33:42]NVStorageSaveData ofd_packets/00139861 [18:33:42]File name is /storage/ofd_packets/00139861 [18:33:42]Write 301 bytes [18:33:42]NVStorageSaveData done [18:33:42]OFDSenderStorePacket done [18:33:42]KKMCreateOFDPacket done [18:33:42]NVStorageSaveData kkm_last_timestamp [18:33:42]File name is /storage/kkm_last_timestamp [18:33:42]Write 4 bytes [18:33:42]NVStorageSaveData done [18:33:42]ExternCall_PrintAddStr [18:33:42]wPrintStart [18:33:42]Write to MH i2c: 01 00 00 31 00 31 [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: 01 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: 01 07 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:33:42]RasterBufferAndPrint [18:33:42]line Счет N : (1)593711 [18:33:42]line ИНН: 02508201610067 [18:33:42]line Контрольно-Кассовый Чек [18:33:42]line ПРОДАЖА [18:33:42]line ТРК (МРК, ГНК) : 32 [18:33:42]line Товар: 2710124130 [18:33:42]line Аи-92-К-5 [18:33:42]line 2.220 * 67.80 [18:33:42]line = 150.52 [18:33:42]line НДС 12% НСП 1% [18:33:42]line > о реализуемом товаре [18:33:42]line ОКРУГЛЕНИЕ: -0.52 [18:33:42]line ИТОГО: 150.00 [18:33:42]line Внесено: 150.00 [18:33:42]line СДАЧА: 0.00 [18:33:42]line НСП 1% : 1.33 [18:33:42]line НДС 12% : 15.98 [18:33:42]line Наличными: 150.00 [18:33:42]line Безнал.: 0.00 [18:33:42]line Место: АЗС № 136 "Партнер Нефть" [18:33:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:33:42]line СНО: Общий режим [18:33:42]line Чек 333 20.08.2024 18:33 [18:33:42]line Смена: 453 ФФД: 1.0 [18:33:42]line ЗНМ: 0300000067 [18:33:42]line РНМ: 0000000000092569 [18:33:42]line Версия ККМ: 001 [18:33:42]line ФМ: 0000000000871776 [18:33:42]line ФД: 139861 [18:33:42]line ФПД: 226292250914261 [18:33:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T183340&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139861&fm=226292250914261&tin=02508201610067®Number=0000000000092569&sum=15000 [18:33:42]written 0, free lines is 4095 [18:33:42]OFD Sender: Processing packet 139861 [packets to send 137, broken 136] [18:33:42]ProducePacketName [18:33:42]name=ofd_packets/00139861 [18:33:42]OFD Sender: To server: pG, [18:33:42]CommunicateWithHost lk.salyk.kg:30040 [18:33:42]ConnectInit lk.salyk.kg [18:33:42]Connected sock=10 [18:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F6 DA 07 01 D8 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 84 E1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 22 02 00 35 04 06 00 CD CF C5 3B 2D D5 6D E4 8F 25 CB 5D DC 1E [18:33:42]Write to MH i2c: 01 00 00 5C 00 5C [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: 01 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: 01 07 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E0 0C 4F [18:33:42]RasterBufferAndPrint [18:33:42]line [18:33:42]line [18:33:42]line [18:33:42]line [18:33:42]line [18:33:42]written 0, free lines is 3323 [18:33:42]MH_Cut [18:33:42]Write to MH i2c: D1 01 00 63 00 01 35 [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: D1 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: D1 01 00 [18:33:42]MH_I2C_Read... [18:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E3 50 47 00 20 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 22 02 00 F4 03 04 00 17 88 C4 66 B6 04 01 00 00 62 FE 82 D4 8B F7 1B 15 [18:33:42]CommunicateWithHost err = 0 [18:33:42]CheckOFDResponse [18:33:42]1017 (14) - 77093643461234 [18:33:42]1041 (16) - 0000000000871776 [18:33:42]1040 (4) - 139861 [18:33:42]1012 (4) - 20.08.2024 12:12 [18:33:42]1206 (1) - 0 [18:33:42]OFD Sender: Remove packet 139861 [18:33:42]ProducePacketName [18:33:42]name=ofd_packets/00139861 [18:33:42]NVStorageDeleteData [18:33:42]Read from MH i2c: D1 01 00 63 00 00 34 [18:33:42]Write to MH i2c: 01 00 00 64 00 64 [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:43]OFD Sender: No OFD packet to send [18:33:43]*** Cut start [18:33:43]*** Partial cut [18:33:43]*** CUTSNS_PIN = 1 [18:33:43]*** CUTSNS_PIN = 0 [18:33:43]*** Brake cut motor [18:33:43]Read from MH i2c: 01 *** Stop cut motor [18:33:43]*** Cut end [18:33:43] [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: 01 07 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [18:33:43]process_action close_receipt done [18:33:43]requested_data is exist [18:33:43]produce_requested_data [18:33:43]requested_item fm.sn is exist - process it [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 11 00 00 [18:33:43]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 17 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [18:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:33:43]wFMCommunicate OK [18:33:43]requested_item fd.num is exist - process it [18:33:43]SAM_PROTO_GetFieldsCounters [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 13 00 00 [18:33:43]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 62 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 22 02 00 0E 04 04 00 C5 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 36 [18:33:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 22 02 00 0E 04 04 00 C5 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 [18:33:44]wFMCommunicate OK [18:33:44]SAM_PROTO_GetFieldsCounters done [18:33:44]requested_item shift.num is exist - process it [18:33:44]requested_item shift.opened is exist - process it [18:33:44]req_shift_opened [18:33:44]FM_GetShiftState [18:33:44]SAM_PROTO_GetShiftState [18:33:44]wFMCommunicate request_size=4 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 13 01 00 [18:33:44]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 0E 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 75 [18:33:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:33:44]wFMCommunicate OK [18:33:44]SAM_PROTO_GetShiftState done [18:33:44]FM_GetShiftState done [18:33:44]req_shift_opened done [18:33:44]requested_item shift.open_date is exist - process it [18:33:44]req_shift_open_date [18:33:44]req_shift_open_date done [18:33:44]produce_requested_data done [18:33:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139861,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:33:44]process_action_free close_receipt [18:33:44]json_value_free [18:33:44]json_value_free done [18:33:44]process_json_proto returns [18:33:44]Send response to host [18:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139861,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:33:44]free response buf [18:33:44]execute_script done [18:33:44]execute_script returns [18:33:44]free content buf [18:33:44]Sock 6.Close socket [18:33:44]Sock 6.Thread stoped [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]accept exits with 9 [18:34:43]New connection [18:34:43]New thread 3066797412 created [18:34:43]Thread 3066940772 joined [18:34:43]Waiting for new connection... [18:34:43] Sock 9.Parse request [18:34:43]Sock 9.Check first char [18:34:43]Sock 9.First char is OK [18:34:43]request: POST /json_proto HTTP/1.0 [18:34:43]Method: POST [18:34:43]URL: /json_proto [18:34:43]Method is POST - this is cgi request [18:34:43]url: /json_proto [18:34:43]query_string will be loaded in cgi processing [18:34:43]execute_cgi json_proto POST (null) [18:34:43]execute_cgi path=json_proto method=POST [18:34:43]POST find Content-Length [18:34:43]Host: 172.17.45.67:8080 [18:34:43]Content-Length: 682 [18:34:43]Content-Type: application/json [18:34:43] [18:34:43]POST finish read [18:34:43]Found Content-Length = 682 [18:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:43]execute_script... [18:34: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)593713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:43]POST & json_proto [18:34:43]process_json_proto [18:34:43]json parsed OK: [18:34:43]protocol is kg_v1.0 [18:34:43]action value=close_receipt [18:34:43]process_action close_receipt [18:34:43]cmd_close_receipt [18:34:43]MH_GetDate [18:34:43]Write to MH i2c: F0 00 00 68 00 57 [18:34:43]Write i2c OK [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: F0 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: F0 09 00 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: F0 09 00 68 00 00 C3 E1 C4 66 5F 7F 2B 66 9D [18:34:43]GetLastDocTimeStamp 1724178820 [18:34:43]current date 1724178883 [18:34:43]FM_GetShiftState [18:34:43]SAM_PROTO_GetShiftState [18:34:43]wFMCommunicate request_size=4 [18:34:43]MH_SAM_APDU [18:34:43]CAPDU: 80 13 01 00 [18:34:43]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [18:34:43]Write i2c OK [18:34:43]MH_I2C_Read... [18:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:43]Read from MH i2c: E2 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: E2 0E 00 [18:34:43]MH_I2C_Read... [18:34:43]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 77 [18:34:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:34:43]wFMCommunicate OK [18:34:43]SAM_PROTO_GetShiftState done [18:34:43]FM_GetShiftState done [18:34:43]opened in 1724113785 [18:34:43]opened+sec_in_day 1724200185 [18:34:43]quantity*price = 100021 [18:34:43]sum+1 = 100023 [18:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 334 20.08.2024 18:34 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139862 ФПД: 233687274679595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T183443&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139862&fm=233687274679595&tin=02508201610067®Number=0000000000092569&sum=100000 [18:34:44]StoreToDocumentArchive [18:34:44]shift 453 fd 139862 [18:34:44]save to /storage/0453/doc_00139862 [18:34:44]save last doc name /storage/0453/doc_00139862 to /storage/kkm_last_doc_name [18:34:44]save OK [18:34:44]Clear old archive folders... [18:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:44]tlvbuf is 00463680 [18:34:44]SAM_PROTO_ClearQueue [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 09 00 00 [18:34:44]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]SAM_PROTO_ClearQueue done [18:34:44]KKMCreateOFDPacket [18:34:44]OFDProtocolAddRootSTLVToBuf [18:34:44]FM_MakeSignedData [18:34:44]FM_MakeSignedData [18:34:44]SAM_PROTO_SignData [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 01 02 [18:34:44]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]wFMCommunicate request_size=255 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 C3 E1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 22 02 00 35 04 06 00 D4 [18:34:44]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 C3 E1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 22 02 00 35 04 06 00 D4 00 00 D7 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]wFMCommunicate request_size=10 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 02 02 05 89 8E FE ED 2B [18:34:44]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 89 8E FE ED 2B 00 00 2A [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [18:34:44]RAPDU: 90 00 [18:34:44]wFMCommunicate OK [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 0D 03 02 [18:34:44]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 0B 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 0B 00 7A 00 00 A9 BA 3C D4 91 3C 87 5C 90 00 19 [18:34:44]RAPDU: A9 BA 3C D4 91 3C 87 5C 90 00 [18:34:44]wFMCommunicate OK [18:34:44]SAM_PROTO_SignData done [18:34:44]FM_MakeSignedData done [18:34:44]CreateOFDProtocolMessage [18:34:44]wFMCommunicate request_size=4 [18:34:44]MH_SAM_APDU [18:34:44]CAPDU: 80 11 00 00 [18:34:44]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:44]Read from MH i2c: E2 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 17 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [18:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:34:44]wFMCommunicate OK [18:34:44]CreateOFDProtocolMessage done [18:34:44]OFDSenderStorePacket 139862 [18:34:44]StoreOFDPacket docnum=139862 [18:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F2 17 07 01 80 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 C3 E1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 22 02 00 35 04 06 00 D4 89 8E FE ED 2B A9 BA 3C D4 91 3C 87 5C [18:34:44]CheckFolder [18:34:44]dirname=/storage/ofd_packets [18:34:44]CheckFolder done [18:34:44]ProducePacketName [18:34:44]name=ofd_packets/00139862 [18:34:44]NVStorageSaveData ofd_packets/00139862 [18:34:44]File name is /storage/ofd_packets/00139862 [18:34:44]Write 301 bytes [18:34:44]NVStorageSaveData done [18:34:44]OFDSenderStorePacket done [18:34:44]KKMCreateOFDPacket done [18:34:44]NVStorageSaveData kkm_last_timestamp [18:34:44]File name is /storage/kkm_last_timestamp [18:34:44]Write 4 bytes [18:34:44]NVStorageSaveData done [18:34:44]ExternCall_PrintAddStr [18:34:44]wPrintStart [18:34:44]Write to MH i2c: 01 00 00 7C 00 7C [18:34:44]Write i2c OK [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 07 00 [18:34:44]MH_I2C_Read... [18:34:44]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [18:34:44]RasterBufferAndPrint [18:34:44]line Счет N : (1)593713 [18:34:44]line ИНН: 02508201610067 [18:34:44]line Контрольно-Кассовый Чек [18:34:44]line ПРОДАЖА [18:34:44]line ТРК (МРК, ГНК) : 61 [18:34:44]line Товар: 2710124500 [18:34:44]line Аи-95-К-5 [18:34:44]line 13.480 * 74.20 [18:34:44]line = 1000.22 [18:34:44]line НДС 12% НСП 1% [18:34:44]line > о реализуемом товаре [18:34:44]line ОКРУГЛЕНИЕ: -0.22 [18:34:44]line ИТОГО: 1000.00 [18:34:44]line Внесено: 1000.00 [18:34:44]line СДАЧА: 0.00 [18:34:44]line НСП 1% : 8.85 [18:34:44]line НДС 12% : 106.22 [18:34:44]line Наличными: 1000.00 [18:34:44]line Безнал.: 0.00 [18:34:44]line Место: АЗС № 136 "Партнер Нефть" [18:34:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:34:44]line СНО: Общий режим [18:34:44]line Чек 334 20.08.2024 18:34 [18:34:44]line Смена: 453 ФФД: 1.0 [18:34:44]line ЗНМ: 0300000067 [18:34:44]line РНМ: 0000000000092569 [18:34:44]line Версия ККМ: 001 [18:34:44]line ФМ: 0000000000871776 [18:34:44]line ФД: 139862 [18:34:44]line ФПД: 233687274679595 [18:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T183443&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139862&fm=233687274679595&tin=02508201610067®Number=0000000000092569&sum=100000 [18:34:45]OFD Sender: Processing packet 139862 [packets to send 137, broken 136] [18:34:45]ProducePacketName [18:34:45]name=ofd_packets/00139862 [18:34:45]OFD Sender: To server: pG, [18:34:45]CommunicateWithHost lk.salyk.kg:30040 [18:34:45]ConnectInit lk.salyk.kg [18:34:45]written 0, free lines is 4095 [18:34:45]Connected sock=10 [18:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F2 17 07 01 80 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 C3 E1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 22 02 00 35 04 06 00 D4 89 8E FE ED 2B A9 BA 3C D4 91 3C 87 5C [18:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 46 50 47 00 0A 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 22 02 00 F4 03 04 00 56 88 C4 66 B6 04 01 00 00 E5 B9 47 9D F9 83 1B EB [18:34:45]CommunicateWithHost err = 0 [18:34:45]CheckOFDResponse [18:34:45]1017 (14) - 77093643461234 [18:34:45]1041 (16) - 0000000000871776 [18:34:45]1040 (4) - 139862 [18:34:45]1012 (4) - 20.08.2024 12:13 [18:34:45]1206 (1) - 0 [18:34:45]OFD Sender: Remove packet 139862 [18:34:45]ProducePacketName [18:34:45]name=ofd_packets/00139862 [18:34:45]NVStorageDeleteData [18:34:45]Write to MH i2c: 01 00 00 A7 00 A7 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 D5 0C 8F [18:34:45]RasterBufferAndPrint [18:34:45]line [18:34:45]line [18:34:45]line [18:34:45]line [18:34:45]line [18:34:45]written 0, free lines is 3293 [18:34:45]MH_Cut [18:34:45]Write to MH i2c: D1 01 00 AE 00 01 80 [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: D1 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: D1 01 00 [18:34:45]MH_I2C_Read... [18:34:45]Read from MH i2c: D1 01 00 AE 00 00 7F [18:34:45]Write to MH i2c: 01 00 00 AF 00 AF [18:34:45]Write i2c OK [18:34:45]MH_I2C_Read... [18:34:46]OFD Sender: No OFD packet to send [18:34:46]*** Cut start [18:34:46]*** Partial cut [18:34:46]*** CUTSNS_PIN = 1 [18:34:46]*** CUTSNS_PIN = 0 [18:34:46]*** Brake cut motor [18:34:46]Read from MH i2c: 01 [18:34:46]MH_I2C_Read... [18:34:46]*** Stop cut motor [18:34:46]*** Cut end [18:34:46]Read from MH i2c: 01 07 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [18:34:46]process_action close_receipt done [18:34:46]requested_data is exist [18:34:46]produce_requested_data [18:34:46]requested_item fm.sn is exist - process it [18:34:46]wFMCommunicate request_size=4 [18:34:46]MH_SAM_APDU [18:34:46]CAPDU: 80 11 00 00 [18:34:46]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:46]Read from MH i2c: E2 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 17 00 [18:34:46]MH_I2C_Read... [18:34:46]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [18:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:34:46]wFMCommunicate OK [18:34:46]requested_item fd.num is exist - process it [18:34:46]SAM_PROTO_GetFieldsCounters [18:34:46]wFMCommunicate request_size=4 [18:34:46]MH_SAM_APDU [18:34:46]CAPDU: 80 13 00 00 [18:34:46]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [18:34:46]Write i2c OK [18:34:46]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 62 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 22 02 00 0E 04 04 00 C5 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 85 [18:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 22 02 00 0E 04 04 00 C5 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 [18:34:47]wFMCommunicate OK [18:34:47]SAM_PROTO_GetFieldsCounters done [18:34:47]requested_item shift.num is exist - process it [18:34:47]requested_item shift.opened is exist - process it [18:34:47]req_shift_opened [18:34:47]FM_GetShiftState [18:34:47]SAM_PROTO_GetShiftState [18:34:47]wFMCommunicate request_size=4 [18:34:47]MH_SAM_APDU [18:34:47]CAPDU: 80 13 01 00 [18:34:47]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [18:34:47]Write i2c OK [18:34:47]MH_I2C_Read... [18:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:47]Read from MH i2c: E2 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 0E 00 [18:34:47]MH_I2C_Read... [18:34:47]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C0 [18:34:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:34:47]wFMCommunicate OK [18:34:47]SAM_PROTO_GetShiftState done [18:34:47]FM_GetShiftState done [18:34:47]req_shift_opened done [18:34:47]requested_item shift.open_date is exist - process it [18:34:47]req_shift_open_date [18:34:47]req_shift_open_date done [18:34:47]produce_requested_data done [18:34:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139862,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:34:47]process_action_free close_receipt [18:34:47]json_value_free [18:34:47]json_value_free done [18:34:47]process_json_proto returns [18:34:47]Send response to host [18:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139862,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:34:47]free response buf [18:34:47]execute_script done [18:34:47]execute_script returns [18:34:47]free content buf [18:34:47]Sock 9.Close socket [18:34:47]Sock 9.Thread stoped [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:46]int [18:35:46]Write to MH i2c: 01 00 00 B3 00 B3 [18:35:46]*** FLAG_PRN_KEY set [18:35:46]Write i2c OK [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 07 00 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 07 00 B3 00 00 08 00 00 00 FF 0F D0 [18:35:46]state=0 [18:35:46]Key pressed [18:35:46]Feed [18:35:46]Write to MH i2c: D8 00 00 B4 00 8B [18:35:46]Write i2c OK [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: D8 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: D8 01 00 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: D8 01 00 B4 00 00 8C [18:35:46]int [18:35:46]Write to MH i2c: 01 00 00 B5 00 B5 [18:35:46]Write i2c OK [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 07 00 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 07 00 B5 00 00 48 00 00 00 3C 00 40 [18:35:46]state=2 [18:35:46]Key pressed [18:35:46]int [18:35:46]Write to MH i2c: 01 00 00 B6 00 B6 [18:35:46]*** FLAG_PRN_KEY reset [18:35:46]Write i2c OK [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 07 00 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 F6 0F C2 [18:35:46]state=2 [18:35:46]Stop feed [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:45]accept exits with 7 [18:36:45]New connection [18:36:45]New thread 3066940772 created [18:36:45]Thread 3066797412 joined [18:36:45]Waiting for new connection... [18:36:45] Sock 7.Parse request [18:36:45]Sock 7.Check first char [18:36:45]Sock 7.First char is OK [18:36:45]request: POST /json_proto HTTP/1.0 [18:36:45]Method: POST [18:36:45]URL: /json_proto [18:36:45]Method is POST - this is cgi request [18:36:45]url: /json_proto [18:36:45]query_string will be loaded in cgi processing [18:36:45]execute_cgi json_proto POST (null) [18:36:45]execute_cgi path=json_proto method=POST [18:36:45]POST find Content-Length [18:36:45]Host: 172.17.45.67:8080 [18:36:45]Content-Length: 834 [18:36:45]Content-Type: application/json [18:36:45] [18:36:45]POST finish read [18:36:45]Found Content-Length = 834 [18:36:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:45]execute_script... [18:36: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)593714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:45]POST & json_proto [18:36:45]process_json_proto [18:36:45]json parsed OK: [18:36:45]protocol is kg_v1.0 [18:36:45]action value=close_receipt [18:36:45]process_action close_receipt [18:36:45]cmd_close_receipt [18:36:45]MH_GetDate [18:36:45]Write to MH i2c: F0 00 00 B7 00 A6 [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: F0 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: F0 09 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: F0 09 00 B7 00 00 3E E2 C4 66 5F 7F 2B 66 68 [18:36:45]GetLastDocTimeStamp 1724178883 [18:36:45]current date 1724179006 [18:36:45]FM_GetShiftState [18:36:45]SAM_PROTO_GetShiftState [18:36:45]wFMCommunicate request_size=4 [18:36:45]MH_SAM_APDU [18:36:45]CAPDU: 80 13 01 00 [18:36:45]Write to MH i2c: E2 08 00 B8 00 80 13 01 00 00 00 00 00 35 [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:45]Read from MH i2c: E2 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 0E 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 0E 00 B8 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C6 [18:36:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:36:45]wFMCommunicate OK [18:36:45]SAM_PROTO_GetShiftState done [18:36:45]FM_GetShiftState done [18:36:45]opened in 1724113785 [18:36:45]opened+sec_in_day 1724200185 [18:36:45]quantity*price = 30035 [18:36:45]sum+1 = 30036 [18:36:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 335 20.08.2024 18:36 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139863 ФПД: 38653963685261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T183646&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139863&fm=38653963685261&tin=02508201610067®Number=0000000000092569&sum=30000 [18:36:46]StoreToDocumentArchive [18:36:46]shift 453 fd 139863 [18:36:46]save to /storage/0453/doc_00139863 [18:36:46]save last doc name /storage/0453/doc_00139863 to /storage/kkm_last_doc_name [18:36:46]save OK [18:36:46]Clear old archive folders... [18:36:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:46]tlvbuf is 0047BB60 [18:36:46]SAM_PROTO_ClearQueue [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 09 00 00 [18:36:46]Write to MH i2c: E2 08 00 C5 00 80 09 00 00 00 00 00 00 37 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 03 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [18:36:46]RAPDU: 90 00 [18:36:46]wFMCommunicate OK [18:36:46]SAM_PROTO_ClearQueue done [18:36:46]KKMCreateOFDPacket [18:36:46]OFDProtocolAddRootSTLVToBuf [18:36:46]FM_MakeSignedData [18:36:46]FM_MakeSignedData [18:36:46]SAM_PROTO_SignData [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 0D 01 02 [18:36:46]Write to MH i2c: E2 08 00 C6 00 80 0D 01 02 00 00 00 00 3F [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 03 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [18:36:46]RAPDU: 90 00 [18:36:46]wFMCommunicate OK [18:36:46]wFMCommunicate request_size=255 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 3E E2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 22 02 00 35 04 06 00 23 [18:36:46]Write to MH i2c: E2 02 01 C7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 3E E2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 22 02 00 35 04 06 00 23 00 00 E5 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=10 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 02 02 05 27 D3 C6 4D 8D [18:36:47]Write to MH i2c: E2 0D 00 C8 00 80 0D 02 02 05 00 27 D3 C6 4D 8D 00 00 E6 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 03 02 [18:36:47]Write to MH i2c: E2 08 00 C9 00 80 0D 03 02 00 00 00 00 44 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 0B 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 0B 00 C9 00 00 9A E8 B3 BB 65 58 E6 BF 90 00 97 [18:36:47]RAPDU: 9A E8 B3 BB 65 58 E6 BF 90 00 [18:36:47]wFMCommunicate OK [18:36:47]SAM_PROTO_SignData done [18:36:47]FM_MakeSignedData done [18:36:47]CreateOFDProtocolMessage [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 11 00 00 [18:36:47]Write to MH i2c: E2 08 00 CA 00 80 11 00 00 00 00 00 00 44 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 17 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 17 00 CA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [18:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:36:47]wFMCommunicate OK [18:36:47]CreateOFDProtocolMessage done [18:36:47]OFDSenderStorePacket 139863 [18:36:47]StoreOFDPacket docnum=139863 [18:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EB 9B 07 01 4D DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 3E E2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 22 02 00 35 04 06 00 23 27 D3 C6 4D 8D 9A E8 B3 BB 65 58 E6 BF [18:36:47]CheckFolder [18:36:47]dirname=/storage/ofd_packets [18:36:47]CheckFolder done [18:36:47]ProducePacketName [18:36:47]name=ofd_packets/00139863 [18:36:47]NVStorageSaveData ofd_packets/00139863 [18:36:47]File name is /storage/ofd_packets/00139863 [18:36:47]Write 301 bytes [18:36:47]NVStorageSaveData done [18:36:47]OFDSenderStorePacket done [18:36:47]KKMCreateOFDPacket done [18:36:47]NVStorageSaveData kkm_last_timestamp [18:36:47]File name is /storage/kkm_last_timestamp [18:36:47]Write 4 bytes [18:36:47]NVStorageSaveData done [18:36:47]ExternCall_PrintAddStr [18:36:47]wPrintStart [18:36:47]Write to MH i2c: 01 00 00 CB 00 CB [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 CB 00 00 00 00 00 00 FF 0F E0 [18:36:47]RasterBufferAndPrint [18:36:47]line Счет N : (1)593714 [18:36:47]line ИНН: 02508201610067 [18:36:47]line Контрольно-Кассовый Чек [18:36:47]line ПРОДАЖА [18:36:47]line ТРК (МРК, ГНК) : 32 [18:36:47]line Товар: 2710124130 [18:36:47]line Аи-92-К-5 [18:36:47]line 4.430 * 67.80 [18:36:47]line = 300.35 [18:36:47]line НДС 12% НСП 1% [18:36:47]line > о реализуемом товаре [18:36:47]line ОКРУГЛЕНИЕ: -0.35 [18:36:47]line ИТОГО: 300.00 [18:36:47]line НСП 1% : 2.66 [18:36:47]line НДС 12% : 31.90 [18:36:47]line Наличными: 0.00 [18:36:47]line Безнал.: 300.00 [18:36:47]line Место: АЗС № 136 "Партнер Нефть" [18:36:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:36:47]line СНО: Общий режим [18:36:47]line Чек 335 20.08.2024 18:36 [18:36:47]line Смена: 453 ФФД: 1.0 [18:36:47]line ЗНМ: 0300000067 [18:36:47]line РНМ: 0000000000092569 [18:36:47]line Версия ККМ: 001 [18:36:47]line Платежная система: Бакай Банк [18:36:47]line ФМ: 0000000000871776 [18:36:47]line ФД: 139863 [18:36:47]line ФПД: 38653963685261 [18:36:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T183646&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139863&fm=38653963685261&tin=02508201610067®Number=0000000000092569&sum=30000 [18:36:47]OFD Sender: Processing packet 139863 [packets to send 137, broken 136] [18:36:47]ProducePacketName [18:36:47]name=ofd_packets/00139863 [18:36:47]OFD Sender: To server: pG, [18:36:47]CommunicateWithHost lk.salyk.kg:30040 [18:36:47]ConnectInit lk.salyk.kg [18:36:47]written 0, free lines is 4095 [18:36:47]Connected sock=10 [18:36:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EB 9B 07 01 4D DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 3E E2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 22 02 00 35 04 06 00 23 27 D3 C6 4D 8D 9A E8 B3 BB 65 58 E6 BF [18:36:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D0 CF 47 00 12 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 22 02 00 F4 03 04 00 D0 88 C4 66 B6 04 01 00 00 02 2D 5C 4C E1 DE DF F9 [18:36:47]CommunicateWithHost err = 0 [18:36:47]CheckOFDResponse [18:36:47]1017 (14) - 77093643461234 [18:36:47]1041 (16) - 0000000000871776 [18:36:47]1040 (4) - 139863 [18:36:47]1012 (4) - 20.08.2024 12:15 [18:36:47]1206 (1) - 0 [18:36:47]OFD Sender: Remove packet 139863 [18:36:47]ProducePacketName [18:36:47]name=ofd_packets/00139863 [18:36:47]NVStorageDeleteData [18:36:47]Write to MH i2c: 01 00 00 F6 00 F6 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 DD 0C E6 [18:36:47]RasterBufferAndPrint [18:36:47]line [18:36:47]line [18:36:47]line [18:36:47]line [18:36:47]line [18:36:47]written 0, free lines is 3299 [18:36:47]MH_Cut [18:36:47]Write to MH i2c: D1 01 00 FD 00 01 CF [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: D1 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: D1 01 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: D1 01 00 FD 00 00 CE [18:36:47]Write to MH i2c: 01 00 00 FE 00 FE [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:48]OFD Sender: No OFD packet to send [18:36:48]*** Cut start [18:36:48]*** Partial cut [18:36:48]*** CUTSNS_PIN = 1 [18:36:48]*** CUTSNS_PIN = 0 [18:36:48]*** Brake cut motor [18:36:49]Read from MH i2c: 01 [18:36:49]MH_I2C_Read... [18:36:49]*** Stop cut motor [18:36:49]*** Cut end [18:36:49]Read from MH i2c: 01 07 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: 01 07 00 FE 00 00 00 00 00 00 FF 0F 13 [18:36:49]process_action close_receipt done [18:36:49]requested_data is exist [18:36:49]produce_requested_data [18:36:49]requested_item fm.sn is exist - process it [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 11 00 00 [18:36:49]Write to MH i2c: E2 08 00 FF 00 80 11 00 00 00 00 00 00 79 [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 17 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 17 00 FF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [18:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:36:49]wFMCommunicate OK [18:36:49]requested_item fd.num is exist - process it [18:36:49]SAM_PROTO_GetFieldsCounters [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 13 00 00 [18:36:49]Write to MH i2c: E2 08 00 00 01 80 13 00 00 00 00 00 00 7D [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 62 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 62 00 00 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 22 02 00 0E 04 04 00 C5 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 D9 [18:36:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 22 02 00 0E 04 04 00 C5 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 [18:36:49]wFMCommunicate OK [18:36:49]SAM_PROTO_GetFieldsCounters done [18:36:49]requested_item shift.num is exist - process it [18:36:49]requested_item shift.opened is exist - process it [18:36:49]req_shift_opened [18:36:49]FM_GetShiftState [18:36:49]SAM_PROTO_GetShiftState [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 13 01 00 [18:36:49]Write to MH i2c: E2 08 00 01 01 80 13 01 00 00 00 00 00 7F [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 0E 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 0E 00 01 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 10 [18:36:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:36:49]wFMCommunicate OK [18:36:49]SAM_PROTO_GetShiftState done [18:36:49]FM_GetShiftState done [18:36:49]req_shift_opened done [18:36:49]requested_item shift.open_date is exist - process it [18:36:49]req_shift_open_date [18:36:49]req_shift_open_date done [18:36:49]produce_requested_data done [18:36:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139863,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:36:49]process_action_free close_receipt [18:36:49]json_value_free [18:36:49]json_value_free done [18:36:49]process_json_proto returns [18:36:49]Send response to host [18:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139863,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:36:49]free response buf [18:36:49]execute_script done [18:36:49]execute_script returns [18:36:49]free content buf [18:36:49]Sock 7.Close socket [18:36:49]Sock 7.Thread stoped [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:10]accept exits with 9 [18:40:10]New connection [18:40:10]New thread 3066797412 created [18:40:10]Thread 3066940772 joined [18:40:10]Waiting for new connection... [18:40:10] Sock 9.Parse request [18:40:10]Sock 9.Check first char [18:40:10]Sock 9.First char is OK [18:40:10]request: POST /json_proto HTTP/1.0 [18:40:10]Method: POST [18:40:10]URL: /json_proto [18:40:10]Method is POST - this is cgi request [18:40:10]url: /json_proto [18:40:10]query_string will be loaded in cgi processing [18:40:10]execute_cgi json_proto POST (null) [18:40:10]execute_cgi path=json_proto method=POST [18:40:10]POST find Content-Length [18:40:10]Host: 172.17.45.67:8080 [18:40:10]Content-Length: 682 [18:40:10]Content-Type: application/json [18:40:10] [18:40:10]POST finish read [18:40:10]Found Content-Length = 682 [18:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:10]execute_script... [18:40: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)593715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:10]POST & json_proto [18:40:10]process_json_proto [18:40:10]json parsed OK: [18:40:10]protocol is kg_v1.0 [18:40:10]action value=close_receipt [18:40:10]process_action close_receipt [18:40:10]cmd_close_receipt [18:40:10]MH_GetDate [18:40:10]Write to MH i2c: F0 00 00 02 01 F2 [18:40:10]Write i2c OK [18:40:10]MH_I2C_Read... [18:40:10]Read from MH i2c: F0 [18:40:10]MH_I2C_Read... [18:40:10]Read from MH i2c: F0 09 00 [18:40:10]MH_I2C_Read... [18:40:10]Read from MH i2c: F0 09 00 02 01 00 0A E3 C4 66 5F 7F 2B 66 81 [18:40:10]GetLastDocTimeStamp 1724179006 [18:40:10]current date 1724179210 [18:40:10]FM_GetShiftState [18:40:10]SAM_PROTO_GetShiftState [18:40:10]wFMCommunicate request_size=4 [18:40:10]MH_SAM_APDU [18:40:10]CAPDU: 80 13 01 00 [18:40:10]Write to MH i2c: E2 08 00 03 01 80 13 01 00 00 00 00 00 81 [18:40:10]Write i2c OK [18:40:10]MH_I2C_Read... [18:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:10]Read from MH i2c: E2 [18:40:10]MH_I2C_Read... [18:40:10]Read from MH i2c: E2 0E 00 [18:40:10]MH_I2C_Read... [18:40:10]Read from MH i2c: E2 0E 00 03 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 12 [18:40:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:40:10]wFMCommunicate OK [18:40:10]SAM_PROTO_GetShiftState done [18:40:10]FM_GetShiftState done [18:40:10]opened in 1724113785 [18:40:10]opened+sec_in_day 1724200185 [18:40:10]quantity*price = 100005 [18:40:10]sum+1 = 100006 [18:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 336 20.08.2024 18:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139864 ФПД: 266347767863822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139864&fm=266347767863822&tin=02508201610067®Number=0000000000092569&sum=100000 [18:40:11]StoreToDocumentArchive [18:40:11]shift 453 fd 139864 [18:40:11]save to /storage/0453/doc_00139864 [18:40:11]save last doc name /storage/0453/doc_00139864 to /storage/kkm_last_doc_name [18:40:11]save OK [18:40:11]Clear old archive folders... [18:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:11]tlvbuf is 0047B720 [18:40:11]SAM_PROTO_ClearQueue [18:40:11]wFMCommunicate request_size=4 [18:40:11]MH_SAM_APDU [18:40:11]CAPDU: 80 09 00 00 [18:40:11]Write to MH i2c: E2 08 00 10 01 80 09 00 00 00 00 00 00 83 [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [18:40:11]RAPDU: 90 00 [18:40:11]wFMCommunicate OK [18:40:11]SAM_PROTO_ClearQueue done [18:40:11]KKMCreateOFDPacket [18:40:11]OFDProtocolAddRootSTLVToBuf [18:40:11]FM_MakeSignedData [18:40:11]FM_MakeSignedData [18:40:11]SAM_PROTO_SignData [18:40:11]wFMCommunicate request_size=4 [18:40:11]MH_SAM_APDU [18:40:11]CAPDU: 80 0D 01 02 [18:40:11]Write to MH i2c: E2 08 00 11 01 80 0D 01 02 00 00 00 00 8B [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [18:40:11]RAPDU: 90 00 [18:40:11]wFMCommunicate OK [18:40:11]wFMCommunicate request_size=255 [18:40:11]MH_SAM_APDU [18:40:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 0A E3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 22 02 00 35 04 06 00 F2 [18:40:11]Write to MH i2c: E2 02 01 12 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 0A E3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 22 02 00 35 04 06 00 F2 00 00 3F [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [18:40:11]RAPDU: 90 00 [18:40:11]wFMCommunicate OK [18:40:11]wFMCommunicate request_size=10 [18:40:11]MH_SAM_APDU [18:40:11]CAPDU: 80 0D 02 02 05 3D EC 17 1A 0E [18:40:11]Write to MH i2c: E2 0D 00 13 01 80 0D 02 02 05 00 3D EC 17 1A 0E 00 00 00 [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 03 00 13 01 00 90 00 88 [18:40:11]RAPDU: 90 00 [18:40:11]wFMCommunicate OK [18:40:11]wFMCommunicate request_size=4 [18:40:11]MH_SAM_APDU [18:40:11]CAPDU: 80 0D 03 02 [18:40:11]Write to MH i2c: E2 08 00 14 01 80 0D 03 02 00 00 00 00 90 [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 0B 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 0B 00 14 01 00 A4 56 90 49 9F 5C 38 81 90 00 18 [18:40:11]RAPDU: A4 56 90 49 9F 5C 38 81 90 00 [18:40:11]wFMCommunicate OK [18:40:11]SAM_PROTO_SignData done [18:40:11]FM_MakeSignedData done [18:40:11]CreateOFDProtocolMessage [18:40:11]wFMCommunicate request_size=4 [18:40:11]MH_SAM_APDU [18:40:11]CAPDU: 80 11 00 00 [18:40:11]Write to MH i2c: E2 08 00 15 01 80 11 00 00 00 00 00 00 90 [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:11]Read from MH i2c: E2 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 17 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: E2 17 00 15 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E7 [18:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:40:11]wFMCommunicate OK [18:40:11]CreateOFDProtocolMessage done [18:40:11]OFDSenderStorePacket 139864 [18:40:11]StoreOFDPacket docnum=139864 [18:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 84 7C 07 01 43 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 0A E3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 22 02 00 35 04 06 00 F2 3D EC 17 1A 0E A4 56 90 49 9F 5C 38 81 [18:40:11]CheckFolder [18:40:11]dirname=/storage/ofd_packets [18:40:11]CheckFolder done [18:40:11]ProducePacketName [18:40:11]name=ofd_packets/00139864 [18:40:11]NVStorageSaveData ofd_packets/00139864 [18:40:11]File name is /storage/ofd_packets/00139864 [18:40:11]Write 301 bytes [18:40:11]NVStorageSaveData done [18:40:11]OFDSenderStorePacket done [18:40:11]KKMCreateOFDPacket done [18:40:11]NVStorageSaveData kkm_last_timestamp [18:40:11]File name is /storage/kkm_last_timestamp [18:40:11]Write 4 bytes [18:40:11]NVStorageSaveData done [18:40:11]ExternCall_PrintAddStr [18:40:11]wPrintStart [18:40:11]Write to MH i2c: 01 00 00 16 01 17 [18:40:11]Write i2c OK [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: 01 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: 01 07 00 [18:40:11]MH_I2C_Read... [18:40:11]Read from MH i2c: 01 07 00 16 01 00 00 00 00 00 FF 0F 2C [18:40:11]RasterBufferAndPrint [18:40:11]line Счет N : (1)593715 [18:40:11]line ИНН: 02508201610067 [18:40:11]line Контрольно-Кассовый Чек [18:40:11]line ПРОДАЖА [18:40:11]line ТРК (МРК, ГНК) : 52 [18:40:11]line Товар: 2710124130 [18:40:11]line Аи-92-К-5 [18:40:11]line 14.750 * 67.80 [18:40:11]line = 1000.05 [18:40:11]line НДС 12% НСП 1% [18:40:11]line > о реализуемом товаре [18:40:11]line ОКРУГЛЕНИЕ: -0.05 [18:40:11]line ИТОГО: 1000.00 [18:40:11]line Внесено: 1000.00 [18:40:11]line СДАЧА: 0.00 [18:40:11]line НСП 1% : 8.85 [18:40:11]line НДС 12% : 106.20 [18:40:11]line Наличными: 1000.00 [18:40:11]line Безнал.: 0.00 [18:40:11]line Место: АЗС № 136 "Партнер Нефть" [18:40:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:40:11]line СНО: Общий режим [18:40:11]line Чек 336 20.08.2024 18:40 [18:40:11]line Смена: 453 ФФД: 1.0 [18:40:11]line ЗНМ: 0300000067 [18:40:11]line РНМ: 0000000000092569 [18:40:11]line Версия ККМ: 001 [18:40:11]line ФМ: 0000000000871776 [18:40:11]line ФД: 139864 [18:40:11]line ФПД: 266347767863822 [18:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139864&fm=266347767863822&tin=02508201610067®Number=0000000000092569&sum=100000 [18:40:12]OFD Sender: Processing packet 139864 [packets to send 137, broken 136] [18:40:12]ProducePacketName [18:40:12]name=ofd_packets/00139864 [18:40:12]OFD Sender: To server: pG, [18:40:12]CommunicateWithHost lk.salyk.kg:30040 [18:40:12]ConnectInit lk.salyk.kg [18:40:12]written 0, free lines is 4095 [18:40:12]Connected sock=7 [18:40:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 84 7C 07 01 43 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 0A E3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 22 02 00 35 04 06 00 F2 3D EC 17 1A 0E A4 56 90 49 9F 5C 38 81 [18:40:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FD 4D 47 00 ED FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 22 02 00 F4 03 04 00 9D 89 C4 66 B6 04 01 00 00 86 0F 20 26 80 1D F4 D8 [18:40:12]CommunicateWithHost err = 0 [18:40:12]CheckOFDResponse [18:40:12]1017 (14) - 77093643461234 [18:40:12]1041 (16) - 0000000000871776 [18:40:12]1040 (4) - 139864 [18:40:12]1012 (4) - 20.08.2024 12:18 [18:40:12]1206 (1) - 0 [18:40:12]OFD Sender: Remove packet 139864 [18:40:12]ProducePacketName [18:40:12]name=ofd_packets/00139864 [18:40:12]NVStorageDeleteData [18:40:12]Write to MH i2c: 01 00 00 41 01 42 [18:40:12]Write i2c OK [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: 01 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: 01 07 00 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 D3 0C 28 [18:40:12]RasterBufferAndPrint [18:40:12]line [18:40:12]line [18:40:12]line [18:40:12]line [18:40:12]line [18:40:12]written 0, free lines is 3289 [18:40:12]MH_Cut [18:40:12]Write to MH i2c: D1 01 00 48 01 01 1B [18:40:12]Write i2c OK [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: D1 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: D1 01 00 [18:40:12]MH_I2C_Read... [18:40:12]Read from MH i2c: D1 01 00 48 01 00 1A [18:40:12]Write to MH i2c: 01 00 00 49 01 4A [18:40:12]Write i2c OK [18:40:12]MH_I2C_Read... [18:40:13]OFD Sender: No OFD packet to send [18:40:13]*** Cut start [18:40:13]*** Partial cut [18:40:13]*** CUTSNS_PIN = 1 [18:40:13]*** CUTSNS_PIN = 0 [18:40:13]*** Brake cut motor [18:40:13]Read from MH i2c: 01 [18:40:13]MH_I2C_Read... [18:40:13]*** Stop cut motor [18:40:13]*** Cut end [18:40:13]Read from MH i2c: 01 07 00 [18:40:13]MH_I2C_Read... [18:40:13]Read from MH i2c: 01 07 00 49 01 00 00 00 00 00 FF 0F 5F [18:40:13]process_action close_receipt done [18:40:13]requested_data is exist [18:40:13]produce_requested_data [18:40:13]requested_item fm.sn is exist - process it [18:40:13]wFMCommunicate request_size=4 [18:40:13]MH_SAM_APDU [18:40:13]CAPDU: 80 11 00 00 [18:40:13]Write to MH i2c: E2 08 00 4A 01 80 11 00 00 00 00 00 00 C5 [18:40:13]Write i2c OK [18:40:14]MH_I2C_Read... [18:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:14]Read from MH i2c: E2 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: E2 17 00 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: E2 17 00 4A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1C [18:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:40:14]wFMCommunicate OK [18:40:14]requested_item fd.num is exist - process it [18:40:14]SAM_PROTO_GetFieldsCounters [18:40:14]wFMCommunicate request_size=4 [18:40:14]MH_SAM_APDU [18:40:14]CAPDU: 80 13 00 00 [18:40:14]Write to MH i2c: E2 08 00 4B 01 80 13 00 00 00 00 00 00 C8 [18:40:14]Write i2c OK [18:40:14]MH_I2C_Read... [18:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:14]Read from MH i2c: E2 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: E2 62 00 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: E2 62 00 4B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 22 02 00 0E 04 04 00 C5 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 28 [18:40:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 22 02 00 0E 04 04 00 C5 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 [18:40:14]wFMCommunicate OK [18:40:14]SAM_PROTO_GetFieldsCounters done [18:40:14]requested_item shift.num is exist - process it [18:40:14]requested_item shift.opened is exist - process it [18:40:14]req_shift_opened [18:40:14]FM_GetShiftState [18:40:14]SAM_PROTO_GetShiftState [18:40:14]wFMCommunicate request_size=4 [18:40:14]MH_SAM_APDU [18:40:14]CAPDU: 80 13 01 00 [18:40:14]Write to MH i2c: E2 08 00 4C 01 80 13 01 00 00 00 00 00 CA [18:40:14]Write i2c OK [18:40:14]MH_I2C_Read... [18:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:14]Read from MH i2c: E2 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: E2 0E 00 [18:40:14]MH_I2C_Read... [18:40:14]Read from MH i2c: E2 0E 00 4C 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5B [18:40:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:40:14]wFMCommunicate OK [18:40:14]SAM_PROTO_GetShiftState done [18:40:14]FM_GetShiftState done [18:40:14]req_shift_opened done [18:40:14]requested_item shift.open_date is exist - process it [18:40:14]req_shift_open_date [18:40:14]req_shift_open_date done [18:40:14]produce_requested_data done [18:40:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139864,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:40:14]process_action_free close_receipt [18:40:14]json_value_free [18:40:14]json_value_free done [18:40:14]process_json_proto returns [18:40:14]Send response to host [18:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139864,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:40:14]free response buf [18:40:14]execute_script done [18:40:14]execute_script returns [18:40:14]free content buf [18:40:14]Sock 9.Close socket [18:40:14]Sock 9.Thread stoped [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:33]accept exits with 10 [18:40:33]New connection [18:40:33]New thread 3066940772 created [18:40:33]Thread 3066797412 joined [18:40:33]Waiting for new connection... [18:40:33] Sock 10.Parse request [18:40:33]Sock 10.Check first char [18:40:33]Sock 10.First char is OK [18:40:33]request: POST /json_proto HTTP/1.0 [18:40:33]Method: POST [18:40:33]URL: /json_proto [18:40:33]Method is POST - this is cgi request [18:40:33]url: /json_proto [18:40:33]query_string will be loaded in cgi processing [18:40:33]execute_cgi json_proto POST (null) [18:40:33]execute_cgi path=json_proto method=POST [18:40:33]POST find Content-Length [18:40:33]Host: 172.17.45.67:8080 [18:40:33]Content-Length: 682 [18:40:33]Content-Type: application/json [18:40:33] [18:40:33]POST finish read [18:40:33]Found Content-Length = 682 [18:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:33]execute_script... [18:40: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)593716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:33]POST & json_proto [18:40:33]process_json_proto [18:40:33]json parsed OK: [18:40:33]protocol is kg_v1.0 [18:40:33]action value=close_receipt [18:40:33]process_action close_receipt [18:40:33]cmd_close_receipt [18:40:33]MH_GetDate [18:40:33]Write to MH i2c: F0 00 00 4D 01 3D [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: F0 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: F0 09 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: F0 09 00 4D 01 00 22 E3 C4 66 5F 7F 2B 66 E4 [18:40:33]GetLastDocTimeStamp 1724179210 [18:40:33]current date 1724179234 [18:40:33]FM_GetShiftState [18:40:33]SAM_PROTO_GetShiftState [18:40:33]wFMCommunicate request_size=4 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 13 01 00 [18:40:33]Write to MH i2c: E2 08 00 4E 01 80 13 01 00 00 00 00 00 CC [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 0E 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 0E 00 4E 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5D [18:40:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:40:33]wFMCommunicate OK [18:40:33]SAM_PROTO_GetShiftState done [18:40:33]FM_GetShiftState done [18:40:33]opened in 1724113785 [18:40:33]opened+sec_in_day 1724200185 [18:40:33]quantity*price = 100021 [18:40:33]sum+1 = 100023 [18:40:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 337 20.08.2024 18:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139865 ФПД: 38987105600732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184034&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139865&fm=38987105600732&tin=02508201610067®Number=0000000000092569&sum=100000 [18:40:34]StoreToDocumentArchive [18:40:34]shift 453 fd 139865 [18:40:34]save to /storage/0453/doc_00139865 [18:40:34]save last doc name /storage/0453/doc_00139865 to /storage/kkm_last_doc_name [18:40:34]save OK [18:40:34]Clear old archive folders... [18:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:34]tlvbuf is 003DE500 [18:40:34]SAM_PROTO_ClearQueue [18:40:34]wFMCommunicate request_size=4 [18:40:34]MH_SAM_APDU [18:40:34]CAPDU: 80 09 00 00 [18:40:34]Write to MH i2c: E2 08 00 5B 01 80 09 00 00 00 00 00 00 CE [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:34]Read from MH i2c: E2 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 03 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [18:40:34]RAPDU: 90 00 [18:40:34]wFMCommunicate OK [18:40:34]SAM_PROTO_ClearQueue done [18:40:34]KKMCreateOFDPacket [18:40:34]OFDProtocolAddRootSTLVToBuf [18:40:34]FM_MakeSignedData [18:40:34]FM_MakeSignedData [18:40:34]SAM_PROTO_SignData [18:40:34]wFMCommunicate request_size=4 [18:40:34]MH_SAM_APDU [18:40:34]CAPDU: 80 0D 01 02 [18:40:34]Write to MH i2c: E2 08 00 5C 01 80 0D 01 02 00 00 00 00 D6 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:34]Read from MH i2c: E2 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 03 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [18:40:34]RAPDU: 90 00 [18:40:34]wFMCommunicate OK [18:40:34]wFMCommunicate request_size=255 [18:40:34]MH_SAM_APDU [18:40:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 22 E3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 22 02 00 35 04 06 00 23 [18:40:34]Write to MH i2c: E2 02 01 5D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 22 E3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 22 02 00 35 04 06 00 23 00 00 73 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 03 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [18:40:35]RAPDU: 90 00 [18:40:35]wFMCommunicate OK [18:40:35]wFMCommunicate request_size=10 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 0D 02 02 05 75 64 94 84 DC [18:40:35]Write to MH i2c: E2 0D 00 5E 01 80 0D 02 02 05 00 75 64 94 84 DC 00 00 B0 [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 03 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [18:40:35]RAPDU: 90 00 [18:40:35]wFMCommunicate OK [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 0D 03 02 [18:40:35]Write to MH i2c: E2 08 00 5F 01 80 0D 03 02 00 00 00 00 DB [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 0B 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 0B 00 5F 01 00 1A 34 C9 EF 7B 0D 3B 6A 90 00 0F [18:40:35]RAPDU: 1A 34 C9 EF 7B 0D 3B 6A 90 00 [18:40:35]wFMCommunicate OK [18:40:35]SAM_PROTO_SignData done [18:40:35]FM_MakeSignedData done [18:40:35]CreateOFDProtocolMessage [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 11 00 00 [18:40:35]Write to MH i2c: E2 08 00 60 01 80 11 00 00 00 00 00 00 DB [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 17 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 17 00 60 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 32 [18:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:40:35]wFMCommunicate OK [18:40:35]CreateOFDProtocolMessage done [18:40:35]OFDSenderStorePacket 139865 [18:40:35]StoreOFDPacket docnum=139865 [18:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 48 07 01 26 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 22 E3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 22 02 00 35 04 06 00 23 75 64 94 84 DC 1A 34 C9 EF 7B 0D 3B 6A [18:40:35]CheckFolder [18:40:35]dirname=/storage/ofd_packets [18:40:35]CheckFolder done [18:40:35]ProducePacketName [18:40:35]name=ofd_packets/00139865 [18:40:35]NVStorageSaveData ofd_packets/00139865 [18:40:35]File name is /storage/ofd_packets/00139865 [18:40:35]Write 301 bytes [18:40:35]NVStorageSaveData done [18:40:35]OFDSenderStorePacket done [18:40:35]KKMCreateOFDPacket done [18:40:35]NVStorageSaveData kkm_last_timestamp [18:40:35]File name is /storage/kkm_last_timestamp [18:40:35]Write 4 bytes [18:40:35]NVStorageSaveData done [18:40:35]ExternCall_PrintAddStr [18:40:35]wPrintStart [18:40:35]Write to MH i2c: 01 00 00 61 01 62 [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: 01 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: 01 07 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: 01 07 00 61 01 00 00 00 00 00 FF 0F 77 [18:40:35]RasterBufferAndPrint [18:40:35]line Счет N : (1)593716 [18:40:35]line ИНН: 02508201610067 [18:40:35]line Контрольно-Кассовый Чек [18:40:35]line ПРОДАЖА [18:40:35]line ТРК (МРК, ГНК) : 31 [18:40:35]line Товар: 2710124500 [18:40:35]line Аи-95-К-5 [18:40:35]line 13.480 * 74.20 [18:40:35]line = 1000.22 [18:40:35]line НДС 12% НСП 1% [18:40:35]line > о реализуемом товаре [18:40:35]line ОКРУГЛЕНИЕ: -0.22 [18:40:35]line ИТОГО: 1000.00 [18:40:35]line Внесено: 1000.00 [18:40:35]line СДАЧА: 0.00 [18:40:35]line НСП 1% : 8.85 [18:40:35]line НДС 12% : 106.22 [18:40:35]line Наличными: 1000.00 [18:40:35]line Безнал.: 0.00 [18:40:35]line Место: АЗС № 136 "Партнер Нефть" [18:40:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:40:35]line СНО: Общий режим [18:40:35]line Чек 337 20.08.2024 18:40 [18:40:35]line Смена: 453 ФФД: 1.0 [18:40:35]line ЗНМ: 0300000067 [18:40:35]line РНМ: 0000000000092569 [18:40:35]line Версия ККМ: 001 [18:40:35]line ФМ: 0000000000871776 [18:40:35]line ФД: 139865 [18:40:35]line ФПД: 38987105600732 [18:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184034&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139865&fm=38987105600732&tin=02508201610067®Number=0000000000092569&sum=100000 [18:40:35]written 0, free lines is 4095 [18:40:35]OFD Sender: Processing packet 139865 [packets to send 137, broken 136] [18:40:35]ProducePacketName [18:40:35]name=ofd_packets/00139865 [18:40:35]OFD Sender: To server: pG, [18:40:35]CommunicateWithHost lk.salyk.kg:30040 [18:40:35]ConnectInit lk.salyk.kg [18:40:35]Connected sock=9 [18:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 48 07 01 26 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 22 E3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 22 02 00 35 04 06 00 23 75 64 94 84 DC 1A 34 C9 EF 7B 0D 3B 6A [18:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FC C2 47 00 07 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 22 02 00 F4 03 04 00 B4 89 C4 66 B6 04 01 00 00 6A EA D9 D7 68 4D F3 3B [18:40:35]CommunicateWithHost err = 0 [18:40:35]CheckOFDResponse [18:40:35]1017 (14) - 77093643461234 [18:40:35]1041 (16) - 0000000000871776 [18:40:35]1040 (4) - 139865 [18:40:35]1012 (4) - 20.08.2024 12:19 [18:40:35]1206 (1) - 0 [18:40:35]OFD Sender: Remove packet 139865 [18:40:35]ProducePacketName [18:40:35]name=ofd_packets/00139865 [18:40:35]NVStorageDeleteData [18:40:36]Write to MH i2c: 01 00 00 8C 01 8D [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 07 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 D8 0C 78 [18:40:36]RasterBufferAndPrint [18:40:36]line [18:40:36]line [18:40:36]line [18:40:36]line [18:40:36]line [18:40:36]written 0, free lines is 3296 [18:40:36]MH_Cut [18:40:36]Write to MH i2c: D1 01 00 93 01 01 66 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: D1 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: D1 01 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: D1 01 00 93 01 00 65 [18:40:36]Write to MH i2c: 01 00 00 94 01 95 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]OFD Sender: No OFD packet to send [18:40:36]*** Cut start [18:40:36]*** Partial cut [18:40:36]*** CUTSNS_PIN = 1 [18:40:36]*** CUTSNS_PIN = 0 [18:40:36]*** Brake cut motor [18:40:37]Read from MH i2c: 01 [18:40:37]MH_I2C_Read... [18:40:37]*** Stop cut motor [18:40:37]*** Cut end [18:40:37]Read from MH i2c: 01 07 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 07 00 94 01 00 00 00 00 00 FF 0F AA [18:40:37]process_action close_receipt done [18:40:37]requested_data is exist [18:40:37]produce_requested_data [18:40:37]requested_item fm.sn is exist - process it [18:40:37]wFMCommunicate request_size=4 [18:40:37]MH_SAM_APDU [18:40:37]CAPDU: 80 11 00 00 [18:40:37]Write to MH i2c: E2 08 00 95 01 80 11 00 00 00 00 00 00 10 [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:37]Read from MH i2c: E2 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 17 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 17 00 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 67 [18:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:40:37]wFMCommunicate OK [18:40:37]requested_item fd.num is exist - process it [18:40:37]SAM_PROTO_GetFieldsCounters [18:40:37]wFMCommunicate request_size=4 [18:40:37]MH_SAM_APDU [18:40:37]CAPDU: 80 13 00 00 [18:40:37]Write to MH i2c: E2 08 00 96 01 80 13 00 00 00 00 00 00 13 [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:37]Read from MH i2c: E2 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 62 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 62 00 96 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 22 02 00 0E 04 04 00 C5 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 77 [18:40:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 22 02 00 0E 04 04 00 C5 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 [18:40:37]wFMCommunicate OK [18:40:37]SAM_PROTO_GetFieldsCounters done [18:40:37]requested_item shift.num is exist - process it [18:40:37]requested_item shift.opened is exist - process it [18:40:37]req_shift_opened [18:40:37]FM_GetShiftState [18:40:37]SAM_PROTO_GetShiftState [18:40:37]wFMCommunicate request_size=4 [18:40:37]MH_SAM_APDU [18:40:37]CAPDU: 80 13 01 00 [18:40:37]Write to MH i2c: E2 08 00 97 01 80 13 01 00 00 00 00 00 15 [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:37]Read from MH i2c: E2 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 0E 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 0E 00 97 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A6 [18:40:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:40:37]wFMCommunicate OK [18:40:37]SAM_PROTO_GetShiftState done [18:40:37]FM_GetShiftState done [18:40:37]req_shift_opened done [18:40:37]requested_item shift.open_date is exist - process it [18:40:37]req_shift_open_date [18:40:37]req_shift_open_date done [18:40:37]produce_requested_data done [18:40:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139865,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:40:37]process_action_free close_receipt [18:40:37]json_value_free [18:40:37]json_value_free done [18:40:37]process_json_proto returns [18:40:37]Send response to host [18:40:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139865,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:40:37]free response buf [18:40:37]execute_script done [18:40:37]execute_script returns [18:40:37]free content buf [18:40:37]Sock 10.Close socket [18:40:37]Sock 10.Thread stoped [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:34]accept exits with 7 [18:44:34]New connection [18:44:34]New thread 3066797412 created [18:44:34]Thread 3066940772 joined [18:44:34]Waiting for new connection... [18:44:34] Sock 7.Parse request [18:44:34]Sock 7.Check first char [18:44:34]Sock 7.First char is OK [18:44:34]request: POST /json_proto HTTP/1.0 [18:44:34]Method: POST [18:44:34]URL: /json_proto [18:44:34]Method is POST - this is cgi request [18:44:34]url: /json_proto [18:44:34]query_string will be loaded in cgi processing [18:44:34]execute_cgi json_proto POST (null) [18:44:34]execute_cgi path=json_proto method=POST [18:44:34]POST find Content-Length [18:44:34]Host: 172.17.45.67:8080 [18:44:34]Content-Length: 682 [18:44:34]Content-Type: application/json [18:44:34] [18:44:34]POST finish read [18:44:34]Found Content-Length = 682 [18:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:34]execute_script... [18:44: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)593717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:34]POST & json_proto [18:44:34]process_json_proto [18:44:34]json parsed OK: [18:44:34]protocol is kg_v1.0 [18:44:34]action value=close_receipt [18:44:34]process_action close_receipt [18:44:34]cmd_close_receipt [18:44:34]MH_GetDate [18:44:34]Write to MH i2c: F0 00 00 98 01 88 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: F0 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: F0 09 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: F0 09 00 98 01 00 12 E4 C4 66 5F 7F 2B 66 20 [18:44:34]GetLastDocTimeStamp 1724179234 [18:44:34]current date 1724179474 [18:44:34]FM_GetShiftState [18:44:34]SAM_PROTO_GetShiftState [18:44:34]wFMCommunicate request_size=4 [18:44:34]MH_SAM_APDU [18:44:34]CAPDU: 80 13 01 00 [18:44:34]Write to MH i2c: E2 08 00 99 01 80 13 01 00 00 00 00 00 17 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:34]Read from MH i2c: E2 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 0E 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 0E 00 99 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A8 [18:44:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:44:34]wFMCommunicate OK [18:44:34]SAM_PROTO_GetShiftState done [18:44:34]FM_GetShiftState done [18:44:34]opened in 1724113785 [18:44:34]opened+sec_in_day 1724200185 [18:44:34]quantity*price = 100005 [18:44:34]sum+1 = 100006 [18:44:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 338 20.08.2024 18:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139866 ФПД: 149754413004769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184434&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139866&fm=149754413004769&tin=02508201610067®Number=0000000000092569&sum=100000 [18:44:35]StoreToDocumentArchive [18:44:35]shift 453 fd 139866 [18:44:35]save to /storage/0453/doc_00139866 [18:44:35]save last doc name /storage/0453/doc_00139866 to /storage/kkm_last_doc_name [18:44:35]save OK [18:44:35]Clear old archive folders... [18:44:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:35]tlvbuf is 0047BA40 [18:44:35]SAM_PROTO_ClearQueue [18:44:35]wFMCommunicate request_size=4 [18:44:35]MH_SAM_APDU [18:44:35]CAPDU: 80 09 00 00 [18:44:35]Write to MH i2c: E2 08 00 A6 01 80 09 00 00 00 00 00 00 19 [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:35]Read from MH i2c: E2 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 03 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [18:44:35]RAPDU: 90 00 [18:44:35]wFMCommunicate OK [18:44:35]SAM_PROTO_ClearQueue done [18:44:35]KKMCreateOFDPacket [18:44:35]OFDProtocolAddRootSTLVToBuf [18:44:35]FM_MakeSignedData [18:44:35]FM_MakeSignedData [18:44:35]SAM_PROTO_SignData [18:44:35]wFMCommunicate request_size=4 [18:44:35]MH_SAM_APDU [18:44:35]CAPDU: 80 0D 01 02 [18:44:35]Write to MH i2c: E2 08 00 A7 01 80 0D 01 02 00 00 00 00 21 [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:35]Read from MH i2c: E2 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 03 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [18:44:35]RAPDU: 90 00 [18:44:35]wFMCommunicate OK [18:44:35]wFMCommunicate request_size=255 [18:44:35]MH_SAM_APDU [18:44:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 12 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 22 02 00 35 04 06 00 88 [18:44:35]Write to MH i2c: E2 02 01 A8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 12 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 22 02 00 35 04 06 00 88 00 00 78 [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:35]Read from MH i2c: E2 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 03 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [18:44:35]RAPDU: 90 00 [18:44:35]wFMCommunicate OK [18:44:35]wFMCommunicate request_size=10 [18:44:35]MH_SAM_APDU [18:44:35]CAPDU: 80 0D 02 02 05 33 6A 97 37 E1 [18:44:35]Write to MH i2c: E2 0D 00 A9 01 80 0D 02 02 05 00 33 6A 97 37 E1 00 00 7A [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:35]Read from MH i2c: E2 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 03 00 [18:44:35]MH_I2C_Read... [18:44:35]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [18:44:35]RAPDU: 90 00 [18:44:35]wFMCommunicate OK [18:44:35]wFMCommunicate request_size=4 [18:44:35]MH_SAM_APDU [18:44:35]CAPDU: 80 0D 03 02 [18:44:35]Write to MH i2c: E2 08 00 AA 01 80 0D 03 02 00 00 00 00 26 [18:44:35]Write i2c OK [18:44:35]MH_I2C_Read... [18:44:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 0B 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 0B 00 AA 01 00 BD 6D 88 BB F6 C4 18 55 90 00 BB [18:44:36]RAPDU: BD 6D 88 BB F6 C4 18 55 90 00 [18:44:36]wFMCommunicate OK [18:44:36]SAM_PROTO_SignData done [18:44:36]FM_MakeSignedData done [18:44:36]CreateOFDProtocolMessage [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 11 00 00 [18:44:36]Write to MH i2c: E2 08 00 AB 01 80 11 00 00 00 00 00 00 26 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 17 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 17 00 AB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [18:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:44:36]wFMCommunicate OK [18:44:36]CreateOFDProtocolMessage done [18:44:36]OFDSenderStorePacket 139866 [18:44:36]StoreOFDPacket docnum=139866 [18:44:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5C 32 07 01 CD 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 12 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 22 02 00 35 04 06 00 88 33 6A 97 37 E1 BD 6D 88 BB F6 C4 18 55 [18:44:36]CheckFolder [18:44:36]dirname=/storage/ofd_packets [18:44:36]CheckFolder done [18:44:36]ProducePacketName [18:44:36]name=ofd_packets/00139866 [18:44:36]NVStorageSaveData ofd_packets/00139866 [18:44:36]File name is /storage/ofd_packets/00139866 [18:44:36]Write 301 bytes [18:44:36]NVStorageSaveData done [18:44:36]OFDSenderStorePacket done [18:44:36]KKMCreateOFDPacket done [18:44:36]NVStorageSaveData kkm_last_timestamp [18:44:36]File name is /storage/kkm_last_timestamp [18:44:36]Write 4 bytes [18:44:36]NVStorageSaveData done [18:44:36]ExternCall_PrintAddStr [18:44:36]wPrintStart [18:44:36]Write to MH i2c: 01 00 00 AC 01 AD [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 07 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 07 00 AC 01 00 00 00 00 00 FF 0F C2 [18:44:36]RasterBufferAndPrint [18:44:36]line Счет N : (1)593717 [18:44:36]line ИНН: 02508201610067 [18:44:36]line Контрольно-Кассовый Чек [18:44:36]line ПРОДАЖА [18:44:36]line ТРК (МРК, ГНК) : 52 [18:44:36]line Товар: 2710124130 [18:44:36]line Аи-92-К-5 [18:44:36]line 14.750 * 67.80 [18:44:36]line = 1000.05 [18:44:36]line НДС 12% НСП 1% [18:44:36]line > о реализуемом товаре [18:44:36]line ОКРУГЛЕНИЕ: -0.05 [18:44:36]line ИТОГО: 1000.00 [18:44:36]line Внесено: 1000.00 [18:44:36]line СДАЧА: 0.00 [18:44:36]line НСП 1% : 8.85 [18:44:36]line НДС 12% : 106.20 [18:44:36]line Наличными: 1000.00 [18:44:36]line Безнал.: 0.00 [18:44:36]line Место: АЗС № 136 "Партнер Нефть" [18:44:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:44:36]line СНО: Общий режим [18:44:36]line Чек 338 20.08.2024 18:44 [18:44:36]line Смена: 453 ФФД: 1.0 [18:44:36]line ЗНМ: 0300000067 [18:44:36]line РНМ: 0000000000092569 [18:44:36]line Версия ККМ: 001 [18:44:36]line ФМ: 0000000000871776 [18:44:36]line ФД: 139866 [18:44:36]line ФПД: 149754413004769 [18:44:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184434&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139866&fm=149754413004769&tin=02508201610067®Number=0000000000092569&sum=100000 [18:44:36]OFD Sender: Processing packet 139866 [packets to send 137, broken 136] [18:44:36]ProducePacketName [18:44:36]name=ofd_packets/00139866 [18:44:36]OFD Sender: To server: pG, [18:44:36]CommunicateWithHost lk.salyk.kg:30040 [18:44:36]ConnectInit lk.salyk.kg [18:44:36]written 0, free lines is 4095 [18:44:36]Connected sock=10 [18:44:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5C 32 07 01 CD 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 12 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 22 02 00 35 04 06 00 88 33 6A 97 37 E1 BD 6D 88 BB F6 C4 18 55 [18:44:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A7 AF 47 00 ED 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 22 02 00 F4 03 04 00 A5 8A C4 66 B6 04 01 00 00 9F 46 B5 13 BC DE CB BE [18:44:36]CommunicateWithHost err = 0 [18:44:36]CheckOFDResponse [18:44:36]1017 (14) - 77093643461234 [18:44:36]1041 (16) - 0000000000871776 [18:44:36]1040 (4) - 139866 [18:44:36]1012 (4) - 20.08.2024 12:23 [18:44:36]1206 (1) - 0 [18:44:36]OFD Sender: Remove packet 139866 [18:44:36]ProducePacketName [18:44:36]name=ofd_packets/00139866 [18:44:36]NVStorageDeleteData [18:44:36]Write to MH i2c: 01 00 00 D7 01 D8 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 07 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 E5 0C D0 [18:44:36]RasterBufferAndPrint [18:44:36]line [18:44:36]line [18:44:36]line [18:44:36]line [18:44:36]line [18:44:36]written 0, free lines is 3307 [18:44:36]MH_Cut [18:44:36]Write to MH i2c: D1 01 00 DE 01 01 B1 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: D1 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: D1 01 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: D1 01 00 DE 01 00 B0 [18:44:36]Write to MH i2c: 01 00 00 DF 01 E0 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:37]OFD Sender: No OFD packet to send [18:44:37]*** Cut start [18:44:37]*** Partial cut [18:44:37]*** CUTSNS_PIN = 1 [18:44:37]*** CUTSNS_PIN = 0 [18:44:37]*** Brake cut motor [18:44:38]Read from MH i2c: 01 [18:44:38]MH_I2C_Read... [18:44:38]*** Stop cut motor [18:44:38]*** Cut end [18:44:38]Read from MH i2c: 01 07 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: 01 07 00 DF 01 00 00 00 00 00 FF 0F F5 [18:44:38]process_action close_receipt done [18:44:38]requested_data is exist [18:44:38]produce_requested_data [18:44:38]requested_item fm.sn is exist - process it [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 11 00 00 [18:44:38]Write to MH i2c: E2 08 00 E0 01 80 11 00 00 00 00 00 00 5B [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 17 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 17 00 E0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [18:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:44:38]wFMCommunicate OK [18:44:38]requested_item fd.num is exist - process it [18:44:38]SAM_PROTO_GetFieldsCounters [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 13 00 00 [18:44:38]Write to MH i2c: E2 08 00 E1 01 80 13 00 00 00 00 00 00 5E [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 62 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 62 00 E1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 22 02 00 0E 04 04 00 C5 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 C6 [18:44:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 22 02 00 0E 04 04 00 C5 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 [18:44:38]wFMCommunicate OK [18:44:38]SAM_PROTO_GetFieldsCounters done [18:44:38]requested_item shift.num is exist - process it [18:44:38]requested_item shift.opened is exist - process it [18:44:38]req_shift_opened [18:44:38]FM_GetShiftState [18:44:38]SAM_PROTO_GetShiftState [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 13 01 00 [18:44:38]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 0E 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F1 [18:44:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:44:38]wFMCommunicate OK [18:44:38]SAM_PROTO_GetShiftState done [18:44:38]FM_GetShiftState done [18:44:38]req_shift_opened done [18:44:38]requested_item shift.open_date is exist - process it [18:44:38]req_shift_open_date [18:44:38]req_shift_open_date done [18:44:38]produce_requested_data done [18:44:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139866,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:44:38]process_action_free close_receipt [18:44:38]json_value_free [18:44:38]json_value_free done [18:44:38]process_json_proto returns [18:44:38]Send response to host [18:44:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139866,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:44:38]free response buf [18:44:38]execute_script done [18:44:38]execute_script returns [18:44:38]free content buf [18:44:38]Sock 7.Close socket [18:44:38]Sock 7.Thread stoped [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:49]accept exits with 9 [18:44:49]New connection [18:44:49]New thread 3066940772 created [18:44:49]Thread 3066797412 joined [18:44:49]Waiting for new connection... [18:44:49] Sock 9.Parse request [18:44:49]Sock 9.Check first char [18:44:49]Sock 9.First char is OK [18:44:49]request: POST /json_proto HTTP/1.0 [18:44:49]Method: POST [18:44:49]URL: /json_proto [18:44:49]Method is POST - this is cgi request [18:44:49]url: /json_proto [18:44:49]query_string will be loaded in cgi processing [18:44:49]execute_cgi json_proto POST (null) [18:44:49]execute_cgi path=json_proto method=POST [18:44:49]POST find Content-Length [18:44:49]Host: 172.17.45.67:8080 [18:44:49]Content-Length: 682 [18:44:49]Content-Type: application/json [18:44:49] [18:44:49]POST finish read [18:44:49]Found Content-Length = 682 [18:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:49]execute_script... [18:44: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)593718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:49]POST & json_proto [18:44:49]process_json_proto [18:44:49]json parsed OK: [18:44:49]protocol is kg_v1.0 [18:44:49]action value=close_receipt [18:44:49]process_action close_receipt [18:44:49]cmd_close_receipt [18:44:49]MH_GetDate [18:44:49]Write to MH i2c: F0 00 00 E3 01 D3 [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: F0 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: F0 09 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: F0 09 00 E3 01 00 21 E4 C4 66 5F 7F 2B 66 7A [18:44:49]GetLastDocTimeStamp 1724179474 [18:44:49]current date 1724179489 [18:44:49]FM_GetShiftState [18:44:49]SAM_PROTO_GetShiftState [18:44:49]wFMCommunicate request_size=4 [18:44:49]MH_SAM_APDU [18:44:49]CAPDU: 80 13 01 00 [18:44:49]Write to MH i2c: E2 08 00 E4 01 80 13 01 00 00 00 00 00 62 [18:44:49]Write i2c OK [18:44:49]MH_I2C_Read... [18:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:49]Read from MH i2c: E2 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 0E 00 [18:44:49]MH_I2C_Read... [18:44:49]Read from MH i2c: E2 0E 00 E4 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F3 [18:44:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:44:49]wFMCommunicate OK [18:44:49]SAM_PROTO_GetShiftState done [18:44:49]FM_GetShiftState done [18:44:49]opened in 1724113785 [18:44:49]opened+sec_in_day 1724200185 [18:44:49]quantity*price = 100005 [18:44:49]sum+1 = 100006 [18:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 339 20.08.2024 18:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139867 ФПД: 279916555348522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184449&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139867&fm=279916555348522&tin=02508201610067®Number=0000000000092569&sum=100000 [18:44:50]StoreToDocumentArchive [18:44:50]shift 453 fd 139867 [18:44:50]save to /storage/0453/doc_00139867 [18:44:50]save last doc name /storage/0453/doc_00139867 to /storage/kkm_last_doc_name [18:44:50]save OK [18:44:50]Clear old archive folders... [18:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:50]tlvbuf is 003DC1B0 [18:44:50]SAM_PROTO_ClearQueue [18:44:50]wFMCommunicate request_size=4 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 09 00 00 [18:44:50]Write to MH i2c: E2 08 00 F1 01 80 09 00 00 00 00 00 00 64 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [18:44:50]RAPDU: 90 00 [18:44:50]wFMCommunicate OK [18:44:50]SAM_PROTO_ClearQueue done [18:44:50]KKMCreateOFDPacket [18:44:50]OFDProtocolAddRootSTLVToBuf [18:44:50]FM_MakeSignedData [18:44:50]FM_MakeSignedData [18:44:50]SAM_PROTO_SignData [18:44:50]wFMCommunicate request_size=4 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 0D 01 02 [18:44:50]Write to MH i2c: E2 08 00 F2 01 80 0D 01 02 00 00 00 00 6C [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [18:44:50]RAPDU: 90 00 [18:44:50]wFMCommunicate OK [18:44:50]wFMCommunicate request_size=255 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 21 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 22 02 00 35 04 06 00 FE [18:44:50]Write to MH i2c: E2 02 01 F3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 21 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 22 02 00 35 04 06 00 FE 00 00 4A [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [18:44:50]RAPDU: 90 00 [18:44:50]wFMCommunicate OK [18:44:50]wFMCommunicate request_size=10 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 0D 02 02 05 95 26 D9 2A 2A [18:44:50]Write to MH i2c: E2 0D 00 F4 01 80 0D 02 02 05 00 95 26 D9 2A 2A 00 00 61 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [18:44:50]RAPDU: 90 00 [18:44:50]wFMCommunicate OK [18:44:50]wFMCommunicate request_size=4 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 0D 03 02 [18:44:50]Write to MH i2c: E2 08 00 F5 01 80 0D 03 02 00 00 00 00 71 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 0B 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 0B 00 F5 01 00 D3 6F F5 94 68 C0 BE F4 90 00 17 [18:44:50]RAPDU: D3 6F F5 94 68 C0 BE F4 90 00 [18:44:50]wFMCommunicate OK [18:44:50]SAM_PROTO_SignData done [18:44:50]FM_MakeSignedData done [18:44:50]CreateOFDProtocolMessage [18:44:50]wFMCommunicate request_size=4 [18:44:50]MH_SAM_APDU [18:44:50]CAPDU: 80 11 00 00 [18:44:50]Write to MH i2c: E2 08 00 F6 01 80 11 00 00 00 00 00 00 71 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:50]Read from MH i2c: E2 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 17 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: E2 17 00 F6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [18:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:44:50]wFMCommunicate OK [18:44:50]CreateOFDProtocolMessage done [18:44:50]OFDSenderStorePacket 139867 [18:44:50]StoreOFDPacket docnum=139867 [18:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BA AF 07 01 C8 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 21 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 22 02 00 35 04 06 00 FE 95 26 D9 2A 2A D3 6F F5 94 68 C0 BE F4 [18:44:50]CheckFolder [18:44:50]dirname=/storage/ofd_packets [18:44:50]CheckFolder done [18:44:50]ProducePacketName [18:44:50]name=ofd_packets/00139867 [18:44:50]NVStorageSaveData ofd_packets/00139867 [18:44:50]File name is /storage/ofd_packets/00139867 [18:44:50]Write 301 bytes [18:44:50]NVStorageSaveData done [18:44:50]OFDSenderStorePacket done [18:44:50]KKMCreateOFDPacket done [18:44:50]NVStorageSaveData kkm_last_timestamp [18:44:50]File name is /storage/kkm_last_timestamp [18:44:50]Write 4 bytes [18:44:50]NVStorageSaveData done [18:44:50]OFD Sender: Processing packet 139867 [packets to send 137, broken 136] [18:44:50]ProducePacketName [18:44:50]name=ofd_packets/00139867 [18:44:50]OFD Sender: To server: pG, [18:44:50]CommunicateWithHost lk.salyk.kg:30040 [18:44:50]ConnectInit lk.salyk.kg [18:44:50]ExternCall_PrintAddStr [18:44:50]wPrintStart [18:44:50]Write to MH i2c: 01 00 00 F7 01 F8 [18:44:50]Write i2c OK [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 07 00 [18:44:50]MH_I2C_Read... [18:44:50]Read from MH i2c: 01 07 00 F7 01 00 00 00 00 00 FF 0F 0D [18:44:50]RasterBufferAndPrint [18:44:50]line Счет N : (1)593718 [18:44:50]line ИНН: 02508201610067 [18:44:50]line Контрольно-Кассовый Чек [18:44:50]line ПРОДАЖА [18:44:50]line ТРК (МРК, ГНК) : 32 [18:44:50]line Товар: 2710124130 [18:44:50]line Аи-92-К-5 [18:44:50]line 14.750 * 67.80 [18:44:50]line = 1000.05 [18:44:50]line НДС 12% НСП 1% [18:44:50]line > о реализуемом товаре [18:44:50]line ОКРУГЛЕНИЕ: -0.05 [18:44:50]line ИТОГО: 1000.00 [18:44:50]line Внесено: 1000.00 [18:44:50]line СДАЧА: 0.00 [18:44:50]line НСП 1% : 8.85 [18:44:50]line НДС 12% : 106.20 [18:44:50]line Наличными: 1000.00 [18:44:50]line Безнал.: 0.00 [18:44:50]line Место: АЗС № 136 "Партнер Нефть" [18:44:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:44:50]line СНО: Общий режим [18:44:50]line Чек 339 20.08.2024 18:44 [18:44:50]line Смена: 453 ФФД: 1.0 [18:44:50]line ЗНМ: 0300000067 [18:44:50]line РНМ: 0000000000092569 [18:44:50]line Версия ККМ: 001 [18:44:50]line ФМ: 0000000000871776 [18:44:50]line ФД: 139867 [18:44:50]line ФПД: 279916555348522 [18:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184449&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139867&fm=279916555348522&tin=02508201610067®Number=0000000000092569&sum=100000 [18:44:51]Connected sock=11 [18:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BA AF 07 01 C8 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 21 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 22 02 00 35 04 06 00 FE 95 26 D9 2A 2A D3 6F F5 94 68 C0 BE F4 [18:44:51]written 0, free lines is 4095 [18:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1D A8 47 00 F8 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 22 02 00 F4 03 04 00 B4 8A C4 66 B6 04 01 00 00 87 66 E5 F5 E5 3E F9 5D [18:44:51]CommunicateWithHost err = 0 [18:44:51]CheckOFDResponse [18:44:51]1017 (14) - 77093643461234 [18:44:51]1041 (16) - 0000000000871776 [18:44:51]1040 (4) - 139867 [18:44:51]1012 (4) - 20.08.2024 12:23 [18:44:51]1206 (1) - 0 [18:44:51]OFD Sender: Remove packet 139867 [18:44:51]ProducePacketName [18:44:51]name=ofd_packets/00139867 [18:44:51]NVStorageDeleteData [18:44:51]Write to MH i2c: 01 00 00 22 02 24 [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: 01 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: 01 07 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 CF 0C 06 [18:44:51]RasterBufferAndPrint [18:44:51]line [18:44:51]line [18:44:51]line [18:44:51]line [18:44:51]line [18:44:51]written 0, free lines is 3285 [18:44:51]MH_Cut [18:44:51]Write to MH i2c: D1 01 00 29 02 01 FD [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: D1 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: D1 01 00 [18:44:51]MH_I2C_Read... [18:44:51]Read from MH i2c: D1 01 00 29 02 00 FC [18:44:51]Write to MH i2c: 01 00 00 2A 02 2C [18:44:51]Write i2c OK [18:44:51]MH_I2C_Read... [18:44:52]OFD Sender: No OFD packet to send [18:44:52]*** Cut start [18:44:52]*** Partial cut [18:44:52]*** CUTSNS_PIN = 1 [18:44:52]*** CUTSNS_PIN = 0 [18:44:52]*** Brake cut motor [18:44:53]Read from MH i2c: 01 [18:44:53]MH_I2C_Read... [18:44:53]*** Stop cut motor [18:44:53]*** Cut end [18:44:53]Read from MH i2c: 01 07 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [18:44:53]process_action close_receipt done [18:44:53]requested_data is exist [18:44:53]produce_requested_data [18:44:53]requested_item fm.sn is exist - process it [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 11 00 00 [18:44:53]Write to MH i2c: E2 08 00 2B 02 80 11 00 00 00 00 00 00 A7 [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 17 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 17 00 2B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [18:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:44:53]wFMCommunicate OK [18:44:53]requested_item fd.num is exist - process it [18:44:53]SAM_PROTO_GetFieldsCounters [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 13 00 00 [18:44:53]Write to MH i2c: E2 08 00 2C 02 80 13 00 00 00 00 00 00 AA [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 62 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 62 00 2C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [18:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 22 02 00 0E 04 04 00 C5 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 [18:44:53]wFMCommunicate OK [18:44:53]SAM_PROTO_GetFieldsCounters done [18:44:53]requested_item shift.num is exist - process it [18:44:53]requested_item shift.opened is exist - process it [18:44:53]req_shift_opened [18:44:53]FM_GetShiftState [18:44:53]SAM_PROTO_GetShiftState [18:44:53]wFMCommunicate request_size=4 [18:44:53]MH_SAM_APDU [18:44:53]CAPDU: 80 13 01 00 [18:44:53]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [18:44:53]Write i2c OK [18:44:53]MH_I2C_Read... [18:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:53]Read from MH i2c: E2 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0E 00 [18:44:53]MH_I2C_Read... [18:44:53]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3D [18:44:53]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:44:53]wFMCommunicate OK [18:44:53]SAM_PROTO_GetShiftState done [18:44:53]FM_GetShiftState done [18:44:53]req_shift_opened done [18:44:53]requested_item shift.open_date is exist - process it [18:44:53]req_shift_open_date [18:44:53]req_shift_open_date done [18:44:53]produce_requested_data done [18:44:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139867,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:44:53]process_action_free close_receipt [18:44:53]json_value_free [18:44:53]json_value_free done [18:44:53]process_json_proto returns [18:44:53]Send response to host [18:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139867,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:44:53]free response buf [18:44:53]execute_script done [18:44:53]execute_script returns [18:44:53]free content buf [18:44:53]Sock 9.Close socket [18:44:53]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:45]accept exits with 7 [18:46:45]New connection [18:46:45]New thread 3066797412 created [18:46:45]Thread 3066940772 joined [18:46:45]Waiting for new connection... [18:46:45] Sock 7.Parse request [18:46:45]Sock 7.Check first char [18:46:45]Sock 7.First char is OK [18:46:45]request: POST /json_proto HTTP/1.0 [18:46:45]Method: POST [18:46:45]URL: /json_proto [18:46:45]Method is POST - this is cgi request [18:46:45]url: /json_proto [18:46:45]query_string will be loaded in cgi processing [18:46:45]execute_cgi json_proto POST (null) [18:46:45]execute_cgi path=json_proto method=POST [18:46:45]POST find Content-Length [18:46:45]Host: 172.17.45.67:8080 [18:46:45]Content-Length: 678 [18:46:45]Content-Type: application/json [18:46:45] [18:46:45]POST finish read [18:46:45]Found Content-Length = 678 [18:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.530, "sum" : 849.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 849.00, "total" : 849.00, "payments": [ { "type": 0, "sum" : 849.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:45]execute_script... [18:46: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)593719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.530, "sum" : 849.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 849.00, "total" : 849.00, "payments": [ { "type": 0, "sum" : 849.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:45]POST & json_proto [18:46:45]process_json_proto [18:46:45]json parsed OK: [18:46:45]protocol is kg_v1.0 [18:46:45]action value=close_receipt [18:46:45]process_action close_receipt [18:46:45]cmd_close_receipt [18:46:45]MH_GetDate [18:46:45]Write to MH i2c: F0 00 00 2E 02 1F [18:46:45]Write i2c OK [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: F0 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: F0 09 00 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: F0 09 00 2E 02 00 95 E4 C4 66 5F 7F 2B 66 3A [18:46:45]GetLastDocTimeStamp 1724179489 [18:46:45]current date 1724179605 [18:46:45]FM_GetShiftState [18:46:45]SAM_PROTO_GetShiftState [18:46:45]wFMCommunicate request_size=4 [18:46:45]MH_SAM_APDU [18:46:45]CAPDU: 80 13 01 00 [18:46:45]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [18:46:45]Write i2c OK [18:46:45]MH_I2C_Read... [18:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:45]Read from MH i2c: E2 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: E2 0E 00 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3F [18:46:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:46:45]wFMCommunicate OK [18:46:45]SAM_PROTO_GetShiftState done [18:46:45]FM_GetShiftState done [18:46:45]opened in 1724113785 [18:46:45]opened+sec_in_day 1724200185 [18:46:45]quantity*price = 84953 [18:46:45]sum+1 = 84954 [18:46:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 849.00 Внесено: 849.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.22 Наличными: 849.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 340 20.08.2024 18:46 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139868 ФПД: 24137401455203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184646&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139868&fm=24137401455203&tin=02508201610067®Number=0000000000092569&sum=84900 [18:46:46]StoreToDocumentArchive [18:46:46]shift 453 fd 139868 [18:46:46]save to /storage/0453/doc_00139868 [18:46:46]save last doc name /storage/0453/doc_00139868 to /storage/kkm_last_doc_name [18:46:46]save OK [18:46:46]Clear old archive folders... [18:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:46]tlvbuf is 0047AB40 [18:46:46]SAM_PROTO_ClearQueue [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 09 00 00 [18:46:46]Write to MH i2c: E2 08 00 3C 02 80 09 00 00 00 00 00 00 B0 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [18:46:46]RAPDU: 90 00 [18:46:46]wFMCommunicate OK [18:46:46]SAM_PROTO_ClearQueue done [18:46:46]KKMCreateOFDPacket [18:46:46]OFDProtocolAddRootSTLVToBuf [18:46:46]FM_MakeSignedData [18:46:46]FM_MakeSignedData [18:46:46]SAM_PROTO_SignData [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 0D 01 02 [18:46:46]Write to MH i2c: E2 08 00 3D 02 80 0D 01 02 00 00 00 00 B8 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [18:46:46]RAPDU: 90 00 [18:46:46]wFMCommunicate OK [18:46:46]wFMCommunicate request_size=255 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D9 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 23 00 00 00 00 07 04 06 00 A4 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 96 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 22 02 00 35 04 06 00 15 [18:46:46]Write to MH i2c: E2 02 01 3E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D9 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 23 00 00 00 00 07 04 06 00 A4 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 96 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 22 02 00 35 04 06 00 15 00 00 30 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [18:46:46]RAPDU: 90 00 [18:46:46]wFMCommunicate OK [18:46:46]wFMCommunicate request_size=10 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 0D 02 02 05 F3 ED 3D 52 63 [18:46:46]Write to MH i2c: E2 0D 00 3F 02 80 0D 02 02 05 00 F3 ED 3D 52 63 00 00 97 [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:46]Read from MH i2c: E2 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 [18:46:46]MH_I2C_Read... [18:46:46]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [18:46:46]RAPDU: 90 00 [18:46:46]wFMCommunicate OK [18:46:46]wFMCommunicate request_size=4 [18:46:46]MH_SAM_APDU [18:46:46]CAPDU: 80 0D 03 02 [18:46:46]Write to MH i2c: E2 08 00 40 02 80 0D 03 02 00 00 00 00 BD [18:46:46]Write i2c OK [18:46:46]MH_I2C_Read... [18:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:47]Read from MH i2c: E2 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 0B 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 0B 00 40 02 00 98 66 F6 87 C4 FB 55 FE 90 00 4B [18:46:47]RAPDU: 98 66 F6 87 C4 FB 55 FE 90 00 [18:46:47]wFMCommunicate OK [18:46:47]SAM_PROTO_SignData done [18:46:47]FM_MakeSignedData done [18:46:47]CreateOFDProtocolMessage [18:46:47]wFMCommunicate request_size=4 [18:46:47]MH_SAM_APDU [18:46:47]CAPDU: 80 11 00 00 [18:46:47]Write to MH i2c: E2 08 00 41 02 80 11 00 00 00 00 00 00 BD [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:47]Read from MH i2c: E2 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 17 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 17 00 41 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [18:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:46:47]wFMCommunicate OK [18:46:47]CreateOFDProtocolMessage done [18:46:47]OFDSenderStorePacket 139868 [18:46:47]StoreOFDPacket docnum=139868 [18:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 56 C1 07 01 15 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D9 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 23 00 00 00 00 07 04 06 00 A4 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 96 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 22 02 00 35 04 06 00 15 F3 ED 3D 52 63 98 66 F6 87 C4 FB 55 FE [18:46:47]CheckFolder [18:46:47]dirname=/storage/ofd_packets [18:46:47]CheckFolder done [18:46:47]ProducePacketName [18:46:47]name=ofd_packets/00139868 [18:46:47]NVStorageSaveData ofd_packets/00139868 [18:46:47]File name is /storage/ofd_packets/00139868 [18:46:47]Write 301 bytes [18:46:47]NVStorageSaveData done [18:46:47]OFDSenderStorePacket done [18:46:47]KKMCreateOFDPacket done [18:46:47]NVStorageSaveData kkm_last_timestamp [18:46:47]File name is /storage/kkm_last_timestamp [18:46:47]Write 4 bytes [18:46:47]NVStorageSaveData done [18:46:47]ExternCall_PrintAddStr [18:46:47]wPrintStart [18:46:47]Write to MH i2c: 01 00 00 42 02 44 [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 FF 0F 59 [18:46:47]RasterBufferAndPrint [18:46:47]line Счет N : (1)593719 [18:46:47]line ИНН: 02508201610067 [18:46:47]line Контрольно-Кассовый Чек [18:46:47]line ПРОДАЖА [18:46:47]line ТРК (МРК, ГНК) : 62 [18:46:47]line Товар: 2710124130 [18:46:47]line Аи-92-К-5 [18:46:47]line 12.530 * 67.80 [18:46:47]line = 849.53 [18:46:47]line НДС 12% НСП 1% [18:46:47]line > о реализуемом товаре [18:46:47]line ОКРУГЛЕНИЕ: -0.53 [18:46:47]line ИТОГО: 849.00 [18:46:47]line Внесено: 849.00 [18:46:47]line СДАЧА: 0.00 [18:46:47]line НСП 1% : 7.52 [18:46:47]line НДС 12% : 90.22 [18:46:47]line Наличными: 849.00 [18:46:47]line Безнал.: 0.00 [18:46:47]line Место: АЗС № 136 "Партнер Нефть" [18:46:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:46:47]line СНО: Общий режим [18:46:47]line Чек 340 20.08.2024 18:46 [18:46:47]line Смена: 453 ФФД: 1.0 [18:46:47]line ЗНМ: 0300000067 [18:46:47]line РНМ: 0000000000092569 [18:46:47]line Версия ККМ: 001 [18:46:47]line ФМ: 0000000000871776 [18:46:47]line ФД: 139868 [18:46:47]line ФПД: 24137401455203 [18:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184646&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139868&fm=24137401455203&tin=02508201610067®Number=0000000000092569&sum=84900 [18:46:47]written 0, free lines is 4095 [18:46:47]OFD Sender: Processing packet 139868 [packets to send 137, broken 136] [18:46:47]ProducePacketName [18:46:47]name=ofd_packets/00139868 [18:46:47]OFD Sender: To server: pG, [18:46:47]CommunicateWithHost lk.salyk.kg:30040 [18:46:47]ConnectInit lk.salyk.kg [18:46:47]Connected sock=10 [18:46:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 56 C1 07 01 15 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D9 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 23 00 00 00 00 07 04 06 00 A4 4B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 96 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 22 02 00 35 04 06 00 15 F3 ED 3D 52 63 98 66 F6 87 C4 FB 55 FE [18:46:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F4 A0 47 00 45 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 22 02 00 F4 03 04 00 28 8B C4 66 B6 04 01 00 00 1B 9A 1C FE 4B 6F BE AE [18:46:47]CommunicateWithHost err = 0 [18:46:47]CheckOFDResponse [18:46:47]1017 (14) - 77093643461234 [18:46:47]1041 (16) - 0000000000871776 [18:46:47]1040 (4) - 139868 [18:46:47]1012 (4) - 20.08.2024 12:25 [18:46:47]1206 (1) - 0 [18:46:47]OFD Sender: Remove packet 139868 [18:46:47]ProducePacketName [18:46:47]name=ofd_packets/00139868 [18:46:47]NVStorageDeleteData [18:46:47]Write to MH i2c: 01 00 00 6D 02 6F [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 D9 0C 5B [18:46:47]RasterBufferAndPrint [18:46:47]line [18:46:47]line [18:46:47]line [18:46:47]line [18:46:47]line [18:46:47]written 0, free lines is 3294 [18:46:47]MH_Cut [18:46:47]Write to MH i2c: D1 01 00 74 02 01 48 [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: D1 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: D1 01 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: D1 01 00 74 02 00 47 [18:46:47]Write to MH i2c: 01 00 00 75 02 77 [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:48]OFD Sender: No OFD packet to send [18:46:48]*** Cut start [18:46:48]*** Partial cut [18:46:48]*** CUTSNS_PIN = 1 [18:46:48]*** CUTSNS_PIN = 0 [18:46:48]*** Brake cut motor [18:46:49]Read from MH i2c: 01 [18:46:49]MH_I2C_Read... [18:46:49]*** Stop cut motor [18:46:49]*** Cut end [18:46:49]Read from MH i2c: 01 07 00 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 FF 0F 8C [18:46:49]process_action close_receipt done [18:46:49]requested_data is exist [18:46:49]produce_requested_data [18:46:49]requested_item fm.sn is exist - process it [18:46:49]wFMCommunicate request_size=4 [18:46:49]MH_SAM_APDU [18:46:49]CAPDU: 80 11 00 00 [18:46:49]Write to MH i2c: E2 08 00 76 02 80 11 00 00 00 00 00 00 F2 [18:46:49]Write i2c OK [18:46:49]MH_I2C_Read... [18:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:49]Read from MH i2c: E2 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: E2 17 00 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: E2 17 00 76 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [18:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:46:49]wFMCommunicate OK [18:46:49]requested_item fd.num is exist - process it [18:46:49]SAM_PROTO_GetFieldsCounters [18:46:49]wFMCommunicate request_size=4 [18:46:49]MH_SAM_APDU [18:46:49]CAPDU: 80 13 00 00 [18:46:49]Write to MH i2c: E2 08 00 77 02 80 13 00 00 00 00 00 00 F5 [18:46:49]Write i2c OK [18:46:49]MH_I2C_Read... [18:46:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:49]Read from MH i2c: E2 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: E2 62 00 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: E2 62 00 77 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 22 02 00 0E 04 04 00 C5 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 65 [18:46:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 22 02 00 0E 04 04 00 C5 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 [18:46:49]wFMCommunicate OK [18:46:49]SAM_PROTO_GetFieldsCounters done [18:46:49]requested_item shift.num is exist - process it [18:46:49]requested_item shift.opened is exist - process it [18:46:49]req_shift_opened [18:46:49]FM_GetShiftState [18:46:49]SAM_PROTO_GetShiftState [18:46:49]wFMCommunicate request_size=4 [18:46:49]MH_SAM_APDU [18:46:49]CAPDU: 80 13 01 00 [18:46:49]Write to MH i2c: E2 08 00 78 02 80 13 01 00 00 00 00 00 F7 [18:46:49]Write i2c OK [18:46:49]MH_I2C_Read... [18:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:49]Read from MH i2c: E2 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: E2 0E 00 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: E2 0E 00 78 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 88 [18:46:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:46:49]wFMCommunicate OK [18:46:49]SAM_PROTO_GetShiftState done [18:46:49]FM_GetShiftState done [18:46:49]req_shift_opened done [18:46:49]requested_item shift.open_date is exist - process it [18:46:49]req_shift_open_date [18:46:49]req_shift_open_date done [18:46:49]produce_requested_data done [18:46:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139868,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:46:49]process_action_free close_receipt [18:46:49]json_value_free [18:46:49]json_value_free done [18:46:49]process_json_proto returns [18:46:49]Send response to host [18:46:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139868,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:46:49]free response buf [18:46:49]execute_script done [18:46:49]execute_script returns [18:46:49]free content buf [18:46:49]Sock 7.Close socket [18:46:49]Sock 7.Thread stoped [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]accept exits with 9 [18:48:03]New connection [18:48:03]New thread 3066940772 created [18:48:03]Thread 3066797412 joined [18:48:03]Waiting for new connection... [18:48:03] Sock 9.Parse request [18:48:03]Sock 9.Check first char [18:48:03]Sock 9.First char is OK [18:48:03]request: POST /json_proto HTTP/1.0 [18:48:03]Method: POST [18:48:03]URL: /json_proto [18:48:03]Method is POST - this is cgi request [18:48:03]url: /json_proto [18:48:03]query_string will be loaded in cgi processing [18:48:03]execute_cgi json_proto POST (null) [18:48:03]execute_cgi path=json_proto method=POST [18:48:03]POST find Content-Length [18:48:03]Host: 172.17.45.67:8080 [18:48:03]Content-Length: 682 [18:48:03]Content-Type: application/json [18:48:03] [18:48:03]POST finish read [18:48:03]Found Content-Length = 682 [18:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:03]execute_script... [18:48: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)593720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:03]POST & json_proto [18:48:03]process_json_proto [18:48:03]json parsed OK: [18:48:03]protocol is kg_v1.0 [18:48:03]action value=close_receipt [18:48:03]process_action close_receipt [18:48:03]cmd_close_receipt [18:48:03]MH_GetDate [18:48:03]Write to MH i2c: F0 00 00 79 02 6A [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: F0 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: F0 09 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: F0 09 00 79 02 00 E3 E4 C4 66 5F 7F 2B 66 D3 [18:48:03]GetLastDocTimeStamp 1724179606 [18:48:03]current date 1724179683 [18:48:03]FM_GetShiftState [18:48:03]SAM_PROTO_GetShiftState [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 13 01 00 [18:48:03]Write to MH i2c: E2 08 00 7A 02 80 13 01 00 00 00 00 00 F9 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 0E 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 0E 00 7A 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8A [18:48:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:48:03]wFMCommunicate OK [18:48:03]SAM_PROTO_GetShiftState done [18:48:03]FM_GetShiftState done [18:48:03]opened in 1724113785 [18:48:03]opened+sec_in_day 1724200185 [18:48:03]quantity*price = 100005 [18:48:03]sum+1 = 100006 [18:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 341 20.08.2024 18:48 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139869 ФПД: 245090653898861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139869&fm=245090653898861&tin=02508201610067®Number=0000000000092569&sum=100000 [18:48:04]StoreToDocumentArchive [18:48:04]shift 453 fd 139869 [18:48:04]save to /storage/0453/doc_00139869 [18:48:04]save last doc name /storage/0453/doc_00139869 to /storage/kkm_last_doc_name [18:48:04]save OK [18:48:04]Clear old archive folders... [18:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:04]tlvbuf is 003DB450 [18:48:04]SAM_PROTO_ClearQueue [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 09 00 00 [18:48:04]Write to MH i2c: E2 08 00 87 02 80 09 00 00 00 00 00 00 FB [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [18:48:04]RAPDU: 90 00 [18:48:04]wFMCommunicate OK [18:48:04]SAM_PROTO_ClearQueue done [18:48:04]KKMCreateOFDPacket [18:48:04]OFDProtocolAddRootSTLVToBuf [18:48:04]FM_MakeSignedData [18:48:04]FM_MakeSignedData [18:48:04]SAM_PROTO_SignData [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 0D 01 02 [18:48:04]Write to MH i2c: E2 08 00 88 02 80 0D 01 02 00 00 00 00 03 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [18:48:04]RAPDU: 90 00 [18:48:04]wFMCommunicate OK [18:48:04]wFMCommunicate request_size=255 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 E3 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 22 02 00 35 04 06 00 DE [18:48:04]Write to MH i2c: E2 02 01 89 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 E3 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 22 02 00 35 04 06 00 DE 00 00 87 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [18:48:04]RAPDU: 90 00 [18:48:04]wFMCommunicate OK [18:48:04]wFMCommunicate request_size=10 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 0D 02 02 05 E8 9D 5D 08 6D [18:48:04]Write to MH i2c: E2 0D 00 8A 02 80 0D 02 02 05 00 E8 9D 5D 08 6D 00 00 67 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [18:48:04]RAPDU: 90 00 [18:48:04]wFMCommunicate OK [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 0D 03 02 [18:48:04]Write to MH i2c: E2 08 00 8B 02 80 0D 03 02 00 00 00 00 08 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0B 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0B 00 8B 02 00 24 75 DC 99 1B E2 1D 90 90 00 C1 [18:48:04]RAPDU: 24 75 DC 99 1B E2 1D 90 90 00 [18:48:04]wFMCommunicate OK [18:48:04]SAM_PROTO_SignData done [18:48:04]FM_MakeSignedData done [18:48:04]CreateOFDProtocolMessage [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 11 00 00 [18:48:04]Write to MH i2c: E2 08 00 8C 02 80 11 00 00 00 00 00 00 08 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 17 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 17 00 8C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [18:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:48:04]wFMCommunicate OK [18:48:04]CreateOFDProtocolMessage done [18:48:04]OFDSenderStorePacket 139869 [18:48:04]StoreOFDPacket docnum=139869 [18:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 64 60 07 01 EF 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 E3 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 22 02 00 35 04 06 00 DE E8 9D 5D 08 6D 24 75 DC 99 1B E2 1D 90 [18:48:04]CheckFolder [18:48:04]dirname=/storage/ofd_packets [18:48:04]CheckFolder done [18:48:04]ProducePacketName [18:48:04]name=ofd_packets/00139869 [18:48:04]NVStorageSaveData ofd_packets/00139869 [18:48:04]File name is /storage/ofd_packets/00139869 [18:48:04]Write 301 bytes [18:48:04]NVStorageSaveData done [18:48:04]OFDSenderStorePacket done [18:48:04]KKMCreateOFDPacket done [18:48:04]NVStorageSaveData kkm_last_timestamp [18:48:04]File name is /storage/kkm_last_timestamp [18:48:04]Write 4 bytes [18:48:04]NVStorageSaveData done [18:48:04]ExternCall_PrintAddStr [18:48:04]wPrintStart [18:48:04]Write to MH i2c: 01 00 00 8D 02 8F [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 07 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 07 00 8D 02 00 00 00 00 00 FF 0F A4 [18:48:04]RasterBufferAndPrint [18:48:04]line Счет N : (1)593720 [18:48:04]line ИНН: 02508201610067 [18:48:04]line Контрольно-Кассовый Чек [18:48:04]line ПРОДАЖА [18:48:04]line ТРК (МРК, ГНК) : 42 [18:48:04]line Товар: 2710124130 [18:48:04]line Аи-92-К-5 [18:48:04]line 14.750 * 67.80 [18:48:04]line = 1000.05 [18:48:04]line НДС 12% НСП 1% [18:48:04]line > о реализуемом товаре [18:48:04]line ОКРУГЛЕНИЕ: -0.05 [18:48:04]line ИТОГО: 1000.00 [18:48:04]line Внесено: 1000.00 [18:48:04]line СДАЧА: 0.00 [18:48:04]line НСП 1% : 8.85 [18:48:04]line НДС 12% : 106.20 [18:48:04]line Наличными: 1000.00 [18:48:04]line Безнал.: 0.00 [18:48:04]line Место: АЗС № 136 "Партнер Нефть" [18:48:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:48:04]line СНО: Общий режим [18:48:04]line Чек 341 20.08.2024 18:48 [18:48:04]line Смена: 453 ФФД: 1.0 [18:48:04]line ЗНМ: 0300000067 [18:48:04]line РНМ: 0000000000092569 [18:48:04]line Версия ККМ: 001 [18:48:04]line ФМ: 0000000000871776 [18:48:04]line ФД: 139869 [18:48:04]line ФПД: 245090653898861 [18:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139869&fm=245090653898861&tin=02508201610067®Number=0000000000092569&sum=100000 [18:48:05]OFD Sender: Processing packet 139869 [packets to send 137, broken 136] [18:48:05]ProducePacketName [18:48:05]name=ofd_packets/00139869 [18:48:05]OFD Sender: To server: pG, [18:48:05]CommunicateWithHost lk.salyk.kg:30040 [18:48:05]ConnectInit lk.salyk.kg [18:48:05]written 0, free lines is 4095 [18:48:05]Connected sock=10 [18:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 64 60 07 01 EF 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 E3 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 22 02 00 35 04 06 00 DE E8 9D 5D 08 6D 24 75 DC 99 1B E2 1D 90 [18:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8F 1B 47 00 7A 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 22 02 00 F4 03 04 00 76 8B C4 66 B6 04 01 00 00 87 53 3D 37 11 A1 9F 77 [18:48:05]CommunicateWithHost err = 0 [18:48:05]CheckOFDResponse [18:48:05]1017 (14) - 77093643461234 [18:48:05]1041 (16) - 0000000000871776 [18:48:05]1040 (4) - 139869 [18:48:05]1012 (4) - 20.08.2024 12:26 [18:48:05]1206 (1) - 0 [18:48:05]OFD Sender: Remove packet 139869 [18:48:05]ProducePacketName [18:48:05]name=ofd_packets/00139869 [18:48:05]NVStorageDeleteData [18:48:05]Write to MH i2c: 01 00 00 B8 02 BA [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 07 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 E3 0C B0 [18:48:05]RasterBufferAndPrint [18:48:05]line [18:48:05]line [18:48:05]line [18:48:05]line [18:48:05]line [18:48:05]written 0, free lines is 3305 [18:48:05]MH_Cut [18:48:05]Write to MH i2c: D1 01 00 BF 02 01 93 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: D1 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: D1 01 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: D1 01 00 BF 02 00 92 [18:48:05]Write to MH i2c: 01 00 00 C0 02 C2 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:06]OFD Sender: No OFD packet to send [18:48:06]*** Cut start [18:48:06]*** Partial cut [18:48:06]*** CUTSNS_PIN = 1 [18:48:06]*** CUTSNS_PIN = 0 [18:48:06]*** Brake cut motor [18:48:06]Read from MH i2c: 01 [18:48:06]MH_I2C_Read... [18:48:06]*** Stop cut motor [18:48:06]*** Cut end [18:48:06]Read from MH i2c: 01 07 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: 01 07 00 C0 02 00 00 00 00 00 FF 0F D7 [18:48:06]process_action close_receipt done [18:48:06]requested_data is exist [18:48:06]produce_requested_data [18:48:06]requested_item fm.sn is exist - process it [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 11 00 00 [18:48:06]Write to MH i2c: E2 08 00 C1 02 80 11 00 00 00 00 00 00 3D [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:06]Read from MH i2c: E2 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 17 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 17 00 C1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [18:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:48:06]wFMCommunicate OK [18:48:06]requested_item fd.num is exist - process it [18:48:06]SAM_PROTO_GetFieldsCounters [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 13 00 00 [18:48:06]Write to MH i2c: E2 08 00 C2 02 80 13 00 00 00 00 00 00 40 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:07]Read from MH i2c: E2 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 62 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 62 00 C2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 22 02 00 0E 04 04 00 C5 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 B4 [18:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 22 02 00 0E 04 04 00 C5 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 [18:48:07]wFMCommunicate OK [18:48:07]SAM_PROTO_GetFieldsCounters done [18:48:07]requested_item shift.num is exist - process it [18:48:07]requested_item shift.opened is exist - process it [18:48:07]req_shift_opened [18:48:07]FM_GetShiftState [18:48:07]SAM_PROTO_GetShiftState [18:48:07]wFMCommunicate request_size=4 [18:48:07]MH_SAM_APDU [18:48:07]CAPDU: 80 13 01 00 [18:48:07]Write to MH i2c: E2 08 00 C3 02 80 13 01 00 00 00 00 00 42 [18:48:07]Write i2c OK [18:48:07]MH_I2C_Read... [18:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:07]Read from MH i2c: E2 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 0E 00 [18:48:07]MH_I2C_Read... [18:48:07]Read from MH i2c: E2 0E 00 C3 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D3 [18:48:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:48:07]wFMCommunicate OK [18:48:07]SAM_PROTO_GetShiftState done [18:48:07]FM_GetShiftState done [18:48:07]req_shift_opened done [18:48:07]requested_item shift.open_date is exist - process it [18:48:07]req_shift_open_date [18:48:07]req_shift_open_date done [18:48:07]produce_requested_data done [18:48:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139869,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:48:07]process_action_free close_receipt [18:48:07]json_value_free [18:48:07]json_value_free done [18:48:07]process_json_proto returns [18:48:07]Send response to host [18:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139869,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:48:07]free response buf [18:48:07]execute_script done [18:48:07]execute_script returns [18:48:07]free content buf [18:48:07]Sock 9.Close socket [18:48:07]Sock 9.Thread stoped [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:21]accept exits with 7 [18:48:21]New connection [18:48:21]New thread 3066797412 created [18:48:21]Thread 3066940772 joined [18:48:21]Waiting for new connection... [18:48:21] Sock 7.Parse request [18:48:21]Sock 7.Check first char [18:48:21]Sock 7.First char is OK [18:48:21]request: POST /json_proto HTTP/1.0 [18:48:21]Method: POST [18:48:21]URL: /json_proto [18:48:21]Method is POST - this is cgi request [18:48:21]url: /json_proto [18:48:21]query_string will be loaded in cgi processing [18:48:21]execute_cgi json_proto POST (null) [18:48:21]execute_cgi path=json_proto method=POST [18:48:21]POST find Content-Length [18:48:21]Host: 172.17.45.67:8080 [18:48:21]Content-Length: 677 [18:48:21]Content-Type: application/json [18:48:21] [18:48:21]POST finish read [18:48:21]Found Content-Length = 677 [18:48:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:21]execute_script... [18:48: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)593721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:21]POST & json_proto [18:48:21]process_json_proto [18:48:21]json parsed OK: [18:48:21]protocol is kg_v1.0 [18:48:21]action value=close_receipt [18:48:21]process_action close_receipt [18:48:21]cmd_close_receipt [18:48:21]MH_GetDate [18:48:21]Write to MH i2c: F0 00 00 C4 02 B5 [18:48:21]Write i2c OK [18:48:21]MH_I2C_Read... [18:48:21]Read from MH i2c: F0 [18:48:21]MH_I2C_Read... [18:48:21]Read from MH i2c: F0 09 00 [18:48:21]MH_I2C_Read... [18:48:21]Read from MH i2c: F0 09 00 C4 02 00 F6 E4 C4 66 5F 7F 2B 66 31 [18:48:21]GetLastDocTimeStamp 1724179683 [18:48:21]current date 1724179702 [18:48:21]FM_GetShiftState [18:48:21]SAM_PROTO_GetShiftState [18:48:21]wFMCommunicate request_size=4 [18:48:21]MH_SAM_APDU [18:48:21]CAPDU: 80 13 01 00 [18:48:21]Write to MH i2c: E2 08 00 C5 02 80 13 01 00 00 00 00 00 44 [18:48:21]Write i2c OK [18:48:21]MH_I2C_Read... [18:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:22]Read from MH i2c: E2 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: E2 0E 00 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: E2 0E 00 C5 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D5 [18:48:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:48:22]wFMCommunicate OK [18:48:22]SAM_PROTO_GetShiftState done [18:48:22]FM_GetShiftState done [18:48:22]opened in 1724113785 [18:48:22]opened+sec_in_day 1724200185 [18:48:22]quantity*price = 50036 [18:48:22]sum+1 = 50037 [18:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 342 20.08.2024 18:48 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139870 ФПД: 125247262553382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184822&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139870&fm=125247262553382&tin=02508201610067®Number=0000000000092569&sum=50000 [18:48:23]StoreToDocumentArchive [18:48:23]shift 453 fd 139870 [18:48:23]save to /storage/0453/doc_00139870 [18:48:23]save last doc name /storage/0453/doc_00139870 to /storage/kkm_last_doc_name [18:48:23]save OK [18:48:23]Clear old archive folders... [18:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:23]tlvbuf is 003E60B0 [18:48:23]SAM_PROTO_ClearQueue [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 09 00 00 [18:48:23]Write to MH i2c: E2 08 00 D2 02 80 09 00 00 00 00 00 00 46 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [18:48:23]RAPDU: 90 00 [18:48:23]wFMCommunicate OK [18:48:23]SAM_PROTO_ClearQueue done [18:48:23]KKMCreateOFDPacket [18:48:23]OFDProtocolAddRootSTLVToBuf [18:48:23]FM_MakeSignedData [18:48:23]FM_MakeSignedData [18:48:23]SAM_PROTO_SignData [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 0D 01 02 [18:48:23]Write to MH i2c: E2 08 00 D3 02 80 0D 01 02 00 00 00 00 4E [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [18:48:23]RAPDU: 90 00 [18:48:23]wFMCommunicate OK [18:48:23]wFMCommunicate request_size=255 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 F6 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 22 02 00 35 04 06 00 71 [18:48:23]Write to MH i2c: E2 02 01 D4 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 F6 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 22 02 00 35 04 06 00 71 00 00 EB [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [18:48:23]RAPDU: 90 00 [18:48:23]wFMCommunicate OK [18:48:23]wFMCommunicate request_size=10 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 0D 02 02 05 E9 66 97 F5 26 [18:48:23]Write to MH i2c: E2 0D 00 D5 02 80 0D 02 02 05 00 E9 66 97 F5 26 00 00 5C [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [18:48:23]RAPDU: 90 00 [18:48:23]wFMCommunicate OK [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 0D 03 02 [18:48:23]Write to MH i2c: E2 08 00 D6 02 80 0D 03 02 00 00 00 00 53 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 0B 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 0B 00 D6 02 00 5B 18 33 BD 7E 9D 81 67 90 00 BA [18:48:23]RAPDU: 5B 18 33 BD 7E 9D 81 67 90 00 [18:48:23]wFMCommunicate OK [18:48:23]SAM_PROTO_SignData done [18:48:23]FM_MakeSignedData done [18:48:23]CreateOFDProtocolMessage [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 11 00 00 [18:48:23]Write to MH i2c: E2 08 00 D7 02 80 11 00 00 00 00 00 00 53 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 17 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 17 00 D7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [18:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:48:23]wFMCommunicate OK [18:48:23]CreateOFDProtocolMessage done [18:48:23]OFDSenderStorePacket 139870 [18:48:23]StoreOFDPacket docnum=139870 [18:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EA 8D 07 01 12 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 F6 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 22 02 00 35 04 06 00 71 E9 66 97 F5 26 5B 18 33 BD 7E 9D 81 67 [18:48:23]CheckFolder [18:48:23]dirname=/storage/ofd_packets [18:48:23]CheckFolder done [18:48:23]ProducePacketName [18:48:23]name=ofd_packets/00139870 [18:48:23]NVStorageSaveData ofd_packets/00139870 [18:48:23]File name is /storage/ofd_packets/00139870 [18:48:23]Write 301 bytes [18:48:23]NVStorageSaveData done [18:48:23]OFDSenderStorePacket done [18:48:23]KKMCreateOFDPacket done [18:48:23]NVStorageSaveData kkm_last_timestamp [18:48:23]File name is /storage/kkm_last_timestamp [18:48:23]Write 4 bytes [18:48:23]NVStorageSaveData done [18:48:23]ExternCall_PrintAddStr [18:48:23]wPrintStart [18:48:23]Write to MH i2c: 01 00 00 D8 02 DA [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: 01 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: 01 07 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 FF 0F EF [18:48:23]RasterBufferAndPrint [18:48:23]line Счет N : (1)593721 [18:48:23]line ИНН: 02508201610067 [18:48:23]line Контрольно-Кассовый Чек [18:48:23]line ПРОДАЖА [18:48:23]line ТРК (МРК, ГНК) : 52 [18:48:23]line Товар: 2710124130 [18:48:23]line Аи-92-К-5 [18:48:23]line 7.380 * 67.80 [18:48:23]line = 500.36 [18:48:23]line НДС 12% НСП 1% [18:48:23]line > о реализуемом товаре [18:48:23]line ОКРУГЛЕНИЕ: -0.36 [18:48:23]line ИТОГО: 500.00 [18:48:23]line Внесено: 500.00 [18:48:23]line СДАЧА: 0.00 [18:48:23]line НСП 1% : 4.43 [18:48:23]line НДС 12% : 53.14 [18:48:23]line Наличными: 500.00 [18:48:23]line Безнал.: 0.00 [18:48:23]line Место: АЗС № 136 "Партнер Нефть" [18:48:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:48:23]line СНО: Общий режим [18:48:23]line Чек 342 20.08.2024 18:48 [18:48:23]line Смена: 453 ФФД: 1.0 [18:48:23]line ЗНМ: 0300000067 [18:48:23]line РНМ: 0000000000092569 [18:48:23]line Версия ККМ: 001 [18:48:23]line ФМ: 0000000000871776 [18:48:23]line ФД: 139870 [18:48:23]line ФПД: 125247262553382 [18:48:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T184822&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139870&fm=125247262553382&tin=02508201610067®Number=0000000000092569&sum=50000 [18:48:24]written 0, free lines is 4095 [18:48:24]OFD Sender: Processing packet 139870 [packets to send 137, broken 136] [18:48:24]ProducePacketName [18:48:24]name=ofd_packets/00139870 [18:48:24]OFD Sender: To server: pG, [18:48:24]CommunicateWithHost lk.salyk.kg:30040 [18:48:24]ConnectInit lk.salyk.kg [18:48:24]Connected sock=11 [18:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EA 8D 07 01 12 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 F6 E4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 22 02 00 35 04 06 00 71 E9 66 97 F5 26 5B 18 33 BD 7E 9D 81 67 [18:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 54 D1 47 00 49 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 22 02 00 F4 03 04 00 89 8B C4 66 B6 04 01 00 00 2B EA E6 17 6E 9E 6E 36 [18:48:24]CommunicateWithHost err = 0 [18:48:24]CheckOFDResponse [18:48:24]1017 (14) - 77093643461234 [18:48:24]1041 (16) - 0000000000871776 [18:48:24]1040 (4) - 139870 [18:48:24]1012 (4) - 20.08.2024 12:26 [18:48:24]1206 (1) - 0 [18:48:24]OFD Sender: Remove packet 139870 [18:48:24]ProducePacketName [18:48:24]name=ofd_packets/00139870 [18:48:24]NVStorageDeleteData [18:48:24]Write to MH i2c: 01 00 00 03 03 06 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 07 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 CD 0C E6 [18:48:24]RasterBufferAndPrint [18:48:24]line [18:48:24]line [18:48:24]line [18:48:24]line [18:48:24]line [18:48:24]written 0, free lines is 3283 [18:48:24]MH_Cut [18:48:24]Write to MH i2c: D1 01 00 0A 03 01 DF [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: D1 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: D1 01 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: D1 01 00 0A 03 00 DE [18:48:24]Write to MH i2c: 01 00 00 0B 03 0E [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]OFD Sender: No OFD packet to send [18:48:25]*** Cut start [18:48:25]*** Partial cut [18:48:25]*** CUTSNS_PIN = 1 [18:48:25]*** CUTSNS_PIN = 0 [18:48:25]*** Brake cut motor [18:48:25]Read from MH i2c: 01 [18:48:25]MH_I2C_Read... [18:48:25]*** Stop cut motor [18:48:25]*** Cut end [18:48:25]Read from MH i2c: 01 07 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 07 00 0B 03 00 00 00 00 00 FF 0F 23 [18:48:25]process_action close_receipt done [18:48:25]requested_data is exist [18:48:25]produce_requested_data [18:48:25]requested_item fm.sn is exist - process it [18:48:25]wFMCommunicate request_size=4 [18:48:25]MH_SAM_APDU [18:48:25]CAPDU: 80 11 00 00 [18:48:25]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:25]Read from MH i2c: E2 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 17 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 17 00 0C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [18:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:48:25]wFMCommunicate OK [18:48:25]requested_item fd.num is exist - process it [18:48:25]SAM_PROTO_GetFieldsCounters [18:48:25]wFMCommunicate request_size=4 [18:48:25]MH_SAM_APDU [18:48:25]CAPDU: 80 13 00 00 [18:48:25]Write to MH i2c: E2 08 00 0D 03 80 13 00 00 00 00 00 00 8C [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:25]Read from MH i2c: E2 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 62 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 62 00 0D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 22 02 00 0E 04 04 00 C5 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 04 [18:48:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 22 02 00 0E 04 04 00 C5 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 [18:48:25]wFMCommunicate OK [18:48:25]SAM_PROTO_GetFieldsCounters done [18:48:25]requested_item shift.num is exist - process it [18:48:25]requested_item shift.opened is exist - process it [18:48:25]req_shift_opened [18:48:25]FM_GetShiftState [18:48:25]SAM_PROTO_GetShiftState [18:48:25]wFMCommunicate request_size=4 [18:48:25]MH_SAM_APDU [18:48:25]CAPDU: 80 13 01 00 [18:48:25]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:25]Read from MH i2c: E2 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 0E 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1F [18:48:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:48:25]wFMCommunicate OK [18:48:25]SAM_PROTO_GetShiftState done [18:48:25]FM_GetShiftState done [18:48:25]req_shift_opened done [18:48:25]requested_item shift.open_date is exist - process it [18:48:25]req_shift_open_date [18:48:26]req_shift_open_date done [18:48:26]produce_requested_data done [18:48:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139870,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:48:26]process_action_free close_receipt [18:48:26]json_value_free [18:48:26]json_value_free done [18:48:26]process_json_proto returns [18:48:26]Send response to host [18:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139870,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:48:26]free response buf [18:48:26]execute_script done [18:48:26]execute_script returns [18:48:26]free content buf [18:48:26]Sock 7.Close socket [18:48:26]Sock 7.Thread stoped [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]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:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:35]accept exits with 9 [18:53:35]New connection [18:53:35]New thread 3066940772 created [18:53:35]Thread 3066797412 joined [18:53:35]Waiting for new connection... [18:53:35] Sock 9.Parse request [18:53:35]Sock 9.Check first char [18:53:35]Sock 9.First char is OK [18:53:35]request: POST /json_proto HTTP/1.0 [18:53:35]Method: POST [18:53:35]URL: /json_proto [18:53:35]Method is POST - this is cgi request [18:53:35]url: /json_proto [18:53:35]query_string will be loaded in cgi processing [18:53:35]execute_cgi json_proto POST (null) [18:53:35]execute_cgi path=json_proto method=POST [18:53:35]POST find Content-Length [18:53:35]Host: 172.17.45.67:8080 [18:53:35]Content-Length: 658 [18:53:35]Content-Type: application/json [18:53:35] [18:53:35]POST finish read [18:53:35]Found Content-Length = 658 [18:53:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:35]execute_script... [18:53: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)593723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:35]POST & json_proto [18:53:35]process_json_proto [18:53:35]json parsed OK: [18:53:35]protocol is kg_v1.0 [18:53:35]action value=close_receipt [18:53:35]process_action close_receipt [18:53:35]cmd_close_receipt [18:53:35]MH_GetDate [18:53:35]Write to MH i2c: F0 00 00 0F 03 01 [18:53:35]Write i2c OK [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: F0 [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: F0 09 00 [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: F0 09 00 0F 03 00 30 E6 C4 66 5F 7F 2B 66 B9 [18:53:35]GetLastDocTimeStamp 1724179702 [18:53:35]current date 1724180016 [18:53:35]FM_GetShiftState [18:53:35]SAM_PROTO_GetShiftState [18:53:35]wFMCommunicate request_size=4 [18:53:35]MH_SAM_APDU [18:53:35]CAPDU: 80 13 01 00 [18:53:35]Write to MH i2c: E2 08 00 10 03 80 13 01 00 00 00 00 00 90 [18:53:35]Write i2c OK [18:53:35]MH_I2C_Read... [18:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:35]Read from MH i2c: E2 [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: E2 0E 00 [18:53:35]MH_I2C_Read... [18:53:35]Read from MH i2c: E2 0E 00 10 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 21 [18:53:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:53:35]wFMCommunicate OK [18:53:35]SAM_PROTO_GetShiftState done [18:53:35]FM_GetShiftState done [18:53:35]opened in 1724113785 [18:53:35]opened+sec_in_day 1724200185 [18:53:35]quantity*price = 50017 [18:53:35]sum+1 = 50019 [18:53:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 343 20.08.2024 18:53 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139871 ФПД: 201619675973865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185336&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139871&fm=201619675973865&tin=02508201610067®Number=0000000000092569&sum=50000 [18:53:36]StoreToDocumentArchive [18:53:36]shift 453 fd 139871 [18:53:36]save to /storage/0453/doc_00139871 [18:53:36]save last doc name /storage/0453/doc_00139871 to /storage/kkm_last_doc_name [18:53:36]save OK [18:53:36]Clear old archive folders... [18:53:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:53:36]tlvbuf is 003E5B40 [18:53:36]SAM_PROTO_ClearQueue [18:53:36]wFMCommunicate request_size=4 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 09 00 00 [18:53:36]Write to MH i2c: E2 08 00 1D 03 80 09 00 00 00 00 00 00 92 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [18:53:36]RAPDU: 90 00 [18:53:36]wFMCommunicate OK [18:53:36]SAM_PROTO_ClearQueue done [18:53:36]KKMCreateOFDPacket [18:53:36]OFDProtocolAddRootSTLVToBuf [18:53:36]FM_MakeSignedData [18:53:36]FM_MakeSignedData [18:53:36]SAM_PROTO_SignData [18:53:36]wFMCommunicate request_size=4 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 0D 01 02 [18:53:36]Write to MH i2c: E2 08 00 1E 03 80 0D 01 02 00 00 00 00 9A [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:36]Read from MH i2c: E2 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 [18:53:36]MH_I2C_Read... [18:53:36]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [18:53:36]RAPDU: 90 00 [18:53:36]wFMCommunicate OK [18:53:36]wFMCommunicate request_size=253 [18:53:36]MH_SAM_APDU [18:53:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 57 01 00 00 F4 03 04 00 30 E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 22 02 00 35 04 06 00 B7 5F 3D 2A 88 E9 [18:53:36]Write to MH i2c: E2 00 01 1F 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 57 01 00 00 F4 03 04 00 30 E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 22 02 00 35 04 06 00 B7 5F 3D 2A 88 E9 00 00 82 [18:53:36]Write i2c OK [18:53:36]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [18:53:37]RAPDU: 90 00 [18:53:37]wFMCommunicate OK [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 0D 03 02 [18:53:37]Write to MH i2c: E2 08 00 20 03 80 0D 03 02 00 00 00 00 9E [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 0B 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 0B 00 20 03 00 9E 6E 15 94 14 CD B5 89 90 00 73 [18:53:37]RAPDU: 9E 6E 15 94 14 CD B5 89 90 00 [18:53:37]wFMCommunicate OK [18:53:37]SAM_PROTO_SignData done [18:53:37]FM_MakeSignedData done [18:53:37]CreateOFDProtocolMessage [18:53:37]wFMCommunicate request_size=4 [18:53:37]MH_SAM_APDU [18:53:37]CAPDU: 80 11 00 00 [18:53:37]Write to MH i2c: E2 08 00 21 03 80 11 00 00 00 00 00 00 9E [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:37]Read from MH i2c: E2 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 17 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: E2 17 00 21 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F5 [18:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:53:37]wFMCommunicate OK [18:53:37]CreateOFDProtocolMessage done [18:53:37]OFDSenderStorePacket 139871 [18:53:37]StoreOFDPacket docnum=139871 [18:53:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 7A 13 00 01 13 DF 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 57 01 00 00 F4 03 04 00 30 E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 22 02 00 35 04 06 00 B7 5F 3D 2A 88 E9 9E 6E 15 94 14 CD B5 89 [18:53:37]CheckFolder [18:53:37]dirname=/storage/ofd_packets [18:53:37]CheckFolder done [18:53:37]ProducePacketName [18:53:37]name=ofd_packets/00139871 [18:53:37]NVStorageSaveData ofd_packets/00139871 [18:53:37]File name is /storage/ofd_packets/00139871 [18:53:37]Write 294 bytes [18:53:37]NVStorageSaveData done [18:53:37]OFDSenderStorePacket done [18:53:37]KKMCreateOFDPacket done [18:53:37]NVStorageSaveData kkm_last_timestamp [18:53:37]File name is /storage/kkm_last_timestamp [18:53:37]Write 4 bytes [18:53:37]NVStorageSaveData done [18:53:37]ExternCall_PrintAddStr [18:53:37]wPrintStart [18:53:37]Write to MH i2c: 01 00 00 22 03 25 [18:53:37]Write i2c OK [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 07 00 [18:53:37]MH_I2C_Read... [18:53:37]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 FF 0F 3A [18:53:37]RasterBufferAndPrint [18:53:37]line Счет N : (1)593723 [18:53:37]line ИНН: 02508201610067 [18:53:37]line Контрольно-Кассовый Чек [18:53:37]line ПРОДАЖА [18:53:37]line ТРК (МРК, ГНК) : 53 [18:53:37]line Товар: 2710124130 [18:53:37]line SU-92 [18:53:37]line 7.270 * 68.80 [18:53:37]line = 500.18 [18:53:37]line НДС 12% НСП 1% [18:53:37]line > о реализуемом товаре [18:53:37]line ОКРУГЛЕНИЕ: -0.18 [18:53:37]line ИТОГО: 500.00 [18:53:37]line Внесено: 500.00 [18:53:37]line СДАЧА: 0.00 [18:53:37]line НСП 1% : 4.43 [18:53:37]line НДС 12% : 53.12 [18:53:37]line Наличными: 500.00 [18:53:37]line Безнал.: 0.00 [18:53:37]line Место: АЗС № 136 "Партнер Нефть" [18:53:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:53:37]line СНО: Общий режим [18:53:37]line Чек 343 20.08.2024 18:53 [18:53:37]line Смена: 453 ФФД: 1.0 [18:53:37]line ЗНМ: 0300000067 [18:53:37]line РНМ: 0000000000092569 [18:53:37]line Версия ККМ: 001 [18:53:37]line ФМ: 0000000000871776 [18:53:37]line ФД: 139871 [18:53:37]line ФПД: 201619675973865 [18:53:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185336&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139871&fm=201619675973865&tin=02508201610067®Number=0000000000092569&sum=50000 [18:53:37]OFD Sender: Processing packet 139871 [packets to send 137, broken 136] [18:53:37]ProducePacketName [18:53:37]name=ofd_packets/00139871 [18:53:37]OFD Sender: To server: pG, [18:53:37]CommunicateWithHost lk.salyk.kg:30040 [18:53:37]ConnectInit lk.salyk.kg [18:53:37]written 0, free lines is 4095 [18:53:37]Connected sock=10 [18:53:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 7A 13 00 01 13 DF 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 57 01 00 00 F4 03 04 00 30 E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 22 02 00 35 04 06 00 B7 5F 3D 2A 88 E9 9E 6E 15 94 14 CD B5 89 [18:53:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 78 26 47 00 73 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 22 02 00 F4 03 04 00 C2 8C C4 66 B6 04 01 00 00 8D 86 FD 0F 1F EB 95 71 [18:53:38]CommunicateWithHost err = 0 [18:53:38]CheckOFDResponse [18:53:38]1017 (14) - 77093643461234 [18:53:38]1041 (16) - 0000000000871776 [18:53:38]1040 (4) - 139871 [18:53:38]1012 (4) - 20.08.2024 12:32 [18:53:38]1206 (1) - 0 [18:53:38]OFD Sender: Remove packet 139871 [18:53:38]ProducePacketName [18:53:38]name=ofd_packets/00139871 [18:53:38]NVStorageDeleteData [18:53:38]Write to MH i2c: 01 00 00 4D 03 50 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 07 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 D4 0C 37 [18:53:38]RasterBufferAndPrint [18:53:38]line [18:53:38]line [18:53:38]line [18:53:38]line [18:53:38]line [18:53:38]written 0, free lines is 3292 [18:53:38]MH_Cut [18:53:38]Write to MH i2c: D1 01 00 54 03 01 29 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: D1 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: D1 01 00 [18:53:38]MH_I2C_Read... [18:53:38]Read from MH i2c: D1 01 00 54 03 00 28 [18:53:38]Write to MH i2c: 01 00 00 55 03 58 [18:53:38]Write i2c OK [18:53:38]MH_I2C_Read... [18:53:38]OFD Sender: No OFD packet to send [18:53:38]*** Cut start [18:53:38]*** Partial cut [18:53:38]*** CUTSNS_PIN = 1 [18:53:38]*** CUTSNS_PIN = 0 [18:53:39]*** Brake cut motor [18:53:39]Read from MH i2c: 01 [18:53:39]MH_I2C_Read... [18:53:39]*** Stop cut motor [18:53:39]*** Cut end [18:53:39]Read from MH i2c: 01 07 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 FF 0F 6D [18:53:39]process_action close_receipt done [18:53:39]requested_data is exist [18:53:39]produce_requested_data [18:53:39]requested_item fm.sn is exist - process it [18:53:39]wFMCommunicate request_size=4 [18:53:39]MH_SAM_APDU [18:53:39]CAPDU: 80 11 00 00 [18:53:39]Write to MH i2c: E2 08 00 56 03 80 11 00 00 00 00 00 00 D3 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 17 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 17 00 56 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [18:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:53:39]wFMCommunicate OK [18:53:39]requested_item fd.num is exist - process it [18:53:39]SAM_PROTO_GetFieldsCounters [18:53:39]wFMCommunicate request_size=4 [18:53:39]MH_SAM_APDU [18:53:39]CAPDU: 80 13 00 00 [18:53:39]Write to MH i2c: E2 08 00 57 03 80 13 00 00 00 00 00 00 D6 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 62 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 62 00 57 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 22 02 00 0E 04 04 00 C5 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 52 [18:53:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 22 02 00 0E 04 04 00 C5 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 [18:53:39]wFMCommunicate OK [18:53:39]SAM_PROTO_GetFieldsCounters done [18:53:39]requested_item shift.num is exist - process it [18:53:39]requested_item shift.opened is exist - process it [18:53:39]req_shift_opened [18:53:39]FM_GetShiftState [18:53:39]SAM_PROTO_GetShiftState [18:53:39]wFMCommunicate request_size=4 [18:53:39]MH_SAM_APDU [18:53:39]CAPDU: 80 13 01 00 [18:53:39]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [18:53:39]Write i2c OK [18:53:39]MH_I2C_Read... [18:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:39]Read from MH i2c: E2 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0E 00 [18:53:39]MH_I2C_Read... [18:53:39]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 69 [18:53:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:53:39]wFMCommunicate OK [18:53:39]SAM_PROTO_GetShiftState done [18:53:39]FM_GetShiftState done [18:53:39]req_shift_opened done [18:53:39]requested_item shift.open_date is exist - process it [18:53:39]req_shift_open_date [18:53:39]req_shift_open_date done [18:53:39]produce_requested_data done [18:53:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139871,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:53:39]process_action_free close_receipt [18:53:39]json_value_free [18:53:39]json_value_free done [18:53:39]process_json_proto returns [18:53:39]Send response to host [18:53:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139871,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:53:39]free response buf [18:53:39]execute_script done [18:53:39]execute_script returns [18:53:39]free content buf [18:53:39]Sock 9.Close socket [18:53:39]Sock 9.Thread stoped [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:04]accept exits with 7 [18:54:04]New connection [18:54:04]New thread 3066797412 created [18:54:04]Thread 3066940772 joined [18:54:04]Waiting for new connection... [18:54:04] Sock 7.Parse request [18:54:04]Sock 7.Check first char [18:54:04]Sock 7.First char is OK [18:54:04]request: POST /json_proto HTTP/1.0 [18:54:04]Method: POST [18:54:04]URL: /json_proto [18:54:04]Method is POST - this is cgi request [18:54:04]url: /json_proto [18:54:04]query_string will be loaded in cgi processing [18:54:04]execute_cgi json_proto POST (null) [18:54:04]execute_cgi path=json_proto method=POST [18:54:04]POST find Content-Length [18:54:04]Host: 172.17.45.67:8080 [18:54:04]Content-Length: 687 [18:54:04]Content-Type: application/json [18:54:04] [18:54:04]POST finish read [18:54:04]Found Content-Length = 687 [18:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:54:04]execute_script... [18: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)593722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:54:04]POST & json_proto [18:54:04]process_json_proto [18:54:04]json parsed OK: [18:54:04]protocol is kg_v1.0 [18:54:04]action value=close_receipt [18:54:04]process_action close_receipt [18:54:04]cmd_close_receipt [18:54:04]MH_GetDate [18:54:04]Write to MH i2c: F0 00 00 59 03 4B [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: F0 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: F0 09 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: F0 09 00 59 03 00 4D E6 C4 66 5F 7F 2B 66 20 [18:54:04]GetLastDocTimeStamp 1724180016 [18:54:04]current date 1724180045 [18:54:04]FM_GetShiftState [18:54:04]SAM_PROTO_GetShiftState [18:54:04]wFMCommunicate request_size=4 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 13 01 00 [18:54:04]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 0E 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6B [18:54:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:54:04]wFMCommunicate OK [18:54:04]SAM_PROTO_GetShiftState done [18:54:04]FM_GetShiftState done [18:54:04]opened in 1724113785 [18:54:04]opened+sec_in_day 1724200185 [18:54:04]quantity*price = 100050 [18:54:04]sum+1 = 100052 [18:54:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 344 20.08.2024 18:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139872 ФПД: 232668205625662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139872&fm=232668205625662&tin=02508201610067®Number=0000000000092569&sum=100000 [18:54:05]StoreToDocumentArchive [18:54:05]shift 453 fd 139872 [18:54:05]save to /storage/0453/doc_00139872 [18:54:05]save last doc name /storage/0453/doc_00139872 to /storage/kkm_last_doc_name [18:54:05]save OK [18:54:05]Clear old archive folders... [18:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:54:05]tlvbuf is 0047ADC0 [18:54:05]SAM_PROTO_ClearQueue [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 09 00 00 [18:54:05]Write to MH i2c: E2 08 00 67 03 80 09 00 00 00 00 00 00 DC [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 03 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [18:54:05]RAPDU: 90 00 [18:54:05]wFMCommunicate OK [18:54:05]SAM_PROTO_ClearQueue done [18:54:05]KKMCreateOFDPacket [18:54:05]OFDProtocolAddRootSTLVToBuf [18:54:05]FM_MakeSignedData [18:54:05]FM_MakeSignedData [18:54:05]SAM_PROTO_SignData [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 0D 01 02 [18:54:05]Write to MH i2c: E2 08 00 68 03 80 0D 01 02 00 00 00 00 E4 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 03 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [18:54:05]RAPDU: 90 00 [18:54:05]wFMCommunicate OK [18:54:05]wFMCommunicate request_size=255 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 58 01 00 00 F4 03 04 00 4D E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 22 02 00 35 04 06 00 [18:54:05]Write to MH i2c: E2 02 01 69 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 58 01 00 00 F4 03 04 00 4D E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 22 02 00 35 04 06 00 00 00 5B [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:06]Read from MH i2c: E2 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 03 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [18:54:06]RAPDU: 90 00 [18:54:06]wFMCommunicate OK [18:54:06]wFMCommunicate request_size=11 [18:54:06]MH_SAM_APDU [18:54:06]CAPDU: 80 0D 02 02 06 D3 9C 49 BF 31 3E [18:54:06]Write to MH i2c: E2 0E 00 6A 03 80 0D 02 02 06 00 D3 9C 49 BF 31 3E 00 00 D9 [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:06]Read from MH i2c: E2 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 03 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [18:54:06]RAPDU: 90 00 [18:54:06]wFMCommunicate OK [18:54:06]wFMCommunicate request_size=4 [18:54:06]MH_SAM_APDU [18:54:06]CAPDU: 80 0D 03 02 [18:54:06]Write to MH i2c: E2 08 00 6B 03 80 0D 03 02 00 00 00 00 E9 [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:06]Read from MH i2c: E2 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 0B 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 0B 00 6B 03 00 EA 7F E3 AE BD DA 8F 80 90 00 8A [18:54:06]RAPDU: EA 7F E3 AE BD DA 8F 80 90 00 [18:54:06]wFMCommunicate OK [18:54:06]SAM_PROTO_SignData done [18:54:06]FM_MakeSignedData done [18:54:06]CreateOFDProtocolMessage [18:54:06]wFMCommunicate request_size=4 [18:54:06]MH_SAM_APDU [18:54:06]CAPDU: 80 11 00 00 [18:54:06]Write to MH i2c: E2 08 00 6C 03 80 11 00 00 00 00 00 00 E9 [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:06]Read from MH i2c: E2 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 17 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 17 00 6C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [18:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:54:06]wFMCommunicate OK [18:54:06]CreateOFDProtocolMessage done [18:54:06]OFDSenderStorePacket 139872 [18:54:06]StoreOFDPacket docnum=139872 [18:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 54 D9 08 01 68 EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 58 01 00 00 F4 03 04 00 4D E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 22 02 00 35 04 06 00 D3 9C 49 BF 31 3E EA 7F E3 AE BD DA 8F 80 [18:54:06]CheckFolder [18:54:06]dirname=/storage/ofd_packets [18:54:06]CheckFolder done [18:54:06]ProducePacketName [18:54:06]name=ofd_packets/00139872 [18:54:06]NVStorageSaveData ofd_packets/00139872 [18:54:06]File name is /storage/ofd_packets/00139872 [18:54:06]Write 302 bytes [18:54:06]NVStorageSaveData done [18:54:06]OFDSenderStorePacket done [18:54:06]KKMCreateOFDPacket done [18:54:06]NVStorageSaveData kkm_last_timestamp [18:54:06]File name is /storage/kkm_last_timestamp [18:54:06]Write 4 bytes [18:54:06]NVStorageSaveData done [18:54:06]ExternCall_PrintAddStr [18:54:06]wPrintStart [18:54:06]Write to MH i2c: 01 00 00 6D 03 70 [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 6D 03 00 00 00 00 00 FF 0F 85 [18:54:06]RasterBufferAndPrint [18:54:06]line Счет N : (1)593722 [18:54:06]line ИНН: 02508201610067 [18:54:06]line Контрольно-Кассовый Чек [18:54:06]line ПРОДАЖА [18:54:06]line ТРК (МРК, ГНК) : 21 [18:54:06]line Товар: 2710194210 [18:54:06]line ДТ(л)-К-5 [18:54:06]line 13.130 * 76.20 [18:54:06]line = 1000.51 [18:54:06]line НДС 12% НСП 1% [18:54:06]line > о реализуемом товаре [18:54:06]line ОКРУГЛЕНИЕ: -0.51 [18:54:06]line ИТОГО: 1000.00 [18:54:06]line Внесено: 1000.00 [18:54:06]line СДАЧА: 0.00 [18:54:06]line НСП 1% : 8.85 [18:54:06]line НДС 12% : 106.25 [18:54:06]line Наличными: 1000.00 [18:54:06]line Безнал.: 0.00 [18:54:06]line Место: АЗС № 136 "Партнер Нефть" [18:54:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:54:06]line СНО: Общий режим [18:54:06]line Чек 344 20.08.2024 18:54 [18:54:06]line Смена: 453 ФФД: 1.0 [18:54:06]line ЗНМ: 0300000067 [18:54:06]line РНМ: 0000000000092569 [18:54:06]line Версия ККМ: 001 [18:54:06]line ФМ: 0000000000871776 [18:54:06]line ФД: 139872 [18:54:06]line ФПД: 232668205625662 [18:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139872&fm=232668205625662&tin=02508201610067®Number=0000000000092569&sum=100000 [18:54:06]OFD Sender: Processing packet 139872 [packets to send 137, broken 136] [18:54:06]ProducePacketName [18:54:06]name=ofd_packets/00139872 [18:54:06]OFD Sender: To server: pG, [18:54:06]CommunicateWithHost lk.salyk.kg:30040 [18:54:06]ConnectInit lk.salyk.kg [18:54:06]written 0, free lines is 4095 [18:54:06]Connected sock=10 [18:54:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 54 D9 08 01 68 EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 58 01 00 00 F4 03 04 00 4D E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 22 02 00 35 04 06 00 D3 9C 49 BF 31 3E EA 7F E3 AE BD DA 8F 80 [18:54:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2D E5 47 00 5D 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 22 02 00 F4 03 04 00 DF 8C C4 66 B6 04 01 00 00 E2 51 02 A2 36 89 29 A9 [18:54:06]CommunicateWithHost err = 0 [18:54:06]CheckOFDResponse [18:54:06]1017 (14) - 77093643461234 [18:54:06]1041 (16) - 0000000000871776 [18:54:06]1040 (4) - 139872 [18:54:06]1012 (4) - 20.08.2024 12:32 [18:54:06]1206 (1) - 0 [18:54:06]OFD Sender: Remove packet 139872 [18:54:06]ProducePacketName [18:54:06]name=ofd_packets/00139872 [18:54:06]NVStorageDeleteData [18:54:06]Write to MH i2c: 01 00 00 98 03 9B [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 D5 0C 83 [18:54:06]RasterBufferAndPrint [18:54:06]line [18:54:06]line [18:54:06]line [18:54:06]line [18:54:06]line [18:54:06]written 0, free lines is 3293 [18:54:06]MH_Cut [18:54:06]Write to MH i2c: D1 01 00 9F 03 01 74 [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: D1 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: D1 01 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: D1 01 00 9F 03 00 73 [18:54:06]Write to MH i2c: 01 00 00 A0 03 A3 [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:07]OFD Sender: No OFD packet to send [18:54:07]*** Cut start [18:54:07]*** Partial cut [18:54:07]*** CUTSNS_PIN = 1 [18:54:07]*** CUTSNS_PIN = 0 [18:54:07]*** Brake cut motor [18:54:08]Read from MH i2c: 01 [18:54:08]MH_I2C_Read... [18:54:08]*** Stop cut motor [18:54:08]*** Cut end [18:54:08]Read from MH i2c: 01 07 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 FF 0F B8 [18:54:08]process_action close_receipt done [18:54:08]requested_data is exist [18:54:08]produce_requested_data [18:54:08]requested_item fm.sn is exist - process it [18:54:08]wFMCommunicate request_size=4 [18:54:08]MH_SAM_APDU [18:54:08]CAPDU: 80 11 00 00 [18:54:08]Write to MH i2c: E2 08 00 A1 03 80 11 00 00 00 00 00 00 1E [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:08]Read from MH i2c: E2 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 17 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 17 00 A1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [18:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:54:08]wFMCommunicate OK [18:54:08]requested_item fd.num is exist - process it [18:54:08]SAM_PROTO_GetFieldsCounters [18:54:08]wFMCommunicate request_size=4 [18:54:08]MH_SAM_APDU [18:54:08]CAPDU: 80 13 00 00 [18:54:08]Write to MH i2c: E2 08 00 A2 03 80 13 00 00 00 00 00 00 21 [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:08]Read from MH i2c: E2 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 62 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 62 00 A2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 22 02 00 0E 04 04 00 C5 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 A1 [18:54:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 22 02 00 0E 04 04 00 C5 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:54:08]wFMCommunicate OK [18:54:08]SAM_PROTO_GetFieldsCounters done [18:54:08]requested_item shift.num is exist - process it [18:54:08]requested_item shift.opened is exist - process it [18:54:08]req_shift_opened [18:54:08]FM_GetShiftState [18:54:08]SAM_PROTO_GetShiftState [18:54:08]wFMCommunicate request_size=4 [18:54:08]MH_SAM_APDU [18:54:08]CAPDU: 80 13 01 00 [18:54:08]Write to MH i2c: E2 08 00 A3 03 80 13 01 00 00 00 00 00 23 [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:08]Read from MH i2c: E2 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 0E 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 0E 00 A3 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B4 [18:54:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:54:08]wFMCommunicate OK [18:54:08]SAM_PROTO_GetShiftState done [18:54:08]FM_GetShiftState done [18:54:08]req_shift_opened done [18:54:08]requested_item shift.open_date is exist - process it [18:54:08]req_shift_open_date [18:54:08]req_shift_open_date done [18:54:08]produce_requested_data done [18:54:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139872,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:54:08]process_action_free close_receipt [18:54:08]json_value_free [18:54:08]json_value_free done [18:54:08]process_json_proto returns [18:54:08]Send response to host [18:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139872,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:54:08]free response buf [18:54:08]execute_script done [18:54:08]execute_script returns [18:54:08]free content buf [18:54:08]Sock 7.Close socket [18:54:08]Sock 7.Thread stoped [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:39]int [18:54:39]Write to MH i2c: 01 00 00 A4 03 A7 [18:54:39]*** FLAG_PRN_KEY set [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 07 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 07 00 A4 03 00 08 00 00 00 FF 0F C4 [18:54:39]state=0 [18:54:39]Key pressed [18:54:39]Feed [18:54:39]Write to MH i2c: D8 00 00 A5 03 7F [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: D8 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: D8 01 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: D8 01 00 A5 03 00 80 [18:54:39]int [18:54:39]Write to MH i2c: 01 00 00 A6 03 A9 [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 07 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 07 00 A6 03 00 48 00 00 00 3C 00 34 [18:54:39]state=2 [18:54:39]Key pressed [18:54:40]int [18:54:40]Write to MH i2c: 01 00 00 A7 03 AA [18:54:40]*** FLAG_PRN_KEY reset [18:54:40]Write i2c OK [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 07 00 [18:54:40]MH_I2C_Read... [18:54:40]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 F5 0F B5 [18:54:40]state=2 [18:54:40]Stop feed [18:54:42]OFD Sender: No OFD packet to send [18:54:46]accept exits with 9 [18:54:46]New connection [18:54:46]New thread 3066940772 created [18:54:46]Thread 3066797412 joined [18:54:46]Waiting for new connection... [18:54:46] Sock 9.Parse request [18:54:46]Sock 9.Check first char [18:54:46]Sock 9.First char is OK [18:54:46]request: POST /json_proto HTTP/1.0 [18:54:46]Method: POST [18:54:46]URL: /json_proto [18:54:46]Method is POST - this is cgi request [18:54:46]url: /json_proto [18:54:46]query_string will be loaded in cgi processing [18:54:46]execute_cgi json_proto POST (null) [18:54:46]execute_cgi path=json_proto method=POST [18:54:46]POST find Content-Length [18:54:46]Host: 172.17.45.67:8080 [18:54:46]Content-Length: 677 [18:54:46]Content-Type: application/json [18:54:46] [18:54:46]POST finish read [18:54:46]Found Content-Length = 677 [18:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:46]execute_script... [18:54: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)593724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:46]POST & json_proto [18:54:46]process_json_proto [18:54:46]json parsed OK: [18:54:46]protocol is kg_v1.0 [18:54:46]action value=close_receipt [18:54:46]process_action close_receipt [18:54:46]cmd_close_receipt [18:54:46]MH_GetDate [18:54:46]Write to MH i2c: F0 00 00 A8 03 9A [18:54:46]Write i2c OK [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: F0 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: F0 09 00 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: F0 09 00 A8 03 00 77 E6 C4 66 5F 7F 2B 66 99 [18:54:46]GetLastDocTimeStamp 1724180045 [18:54:46]current date 1724180087 [18:54:46]FM_GetShiftState [18:54:46]SAM_PROTO_GetShiftState [18:54:46]wFMCommunicate request_size=4 [18:54:46]MH_SAM_APDU [18:54:46]CAPDU: 80 13 01 00 [18:54:46]Write to MH i2c: E2 08 00 A9 03 80 13 01 00 00 00 00 00 29 [18:54:46]Write i2c OK [18:54:46]MH_I2C_Read... [18:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:46]Read from MH i2c: E2 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: E2 0E 00 [18:54:46]MH_I2C_Read... [18:54:46]Read from MH i2c: E2 0E 00 A9 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BA [18:54:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:54:46]wFMCommunicate OK [18:54:46]SAM_PROTO_GetShiftState done [18:54:46]FM_GetShiftState done [18:54:46]opened in 1724113785 [18:54:46]opened+sec_in_day 1724200185 [18:54:46]quantity*price = 40002 [18:54:46]sum+1 = 40003 [18:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 345 20.08.2024 18:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139873 ФПД: 231503767606744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185447&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139873&fm=231503767606744&tin=02508201610067®Number=0000000000092569&sum=40000 [18:54:48]StoreToDocumentArchive [18:54:48]shift 453 fd 139873 [18:54:48]save to /storage/0453/doc_00139873 [18:54:48]save last doc name /storage/0453/doc_00139873 to /storage/kkm_last_doc_name [18:54:48]save OK [18:54:48]Clear old archive folders... [18:54:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:48]tlvbuf is 00468EF0 [18:54:48]SAM_PROTO_ClearQueue [18:54:48]wFMCommunicate request_size=4 [18:54:48]MH_SAM_APDU [18:54:48]CAPDU: 80 09 00 00 [18:54:48]Write to MH i2c: E2 08 00 B6 03 80 09 00 00 00 00 00 00 2B [18:54:48]Write i2c OK [18:54:48]MH_I2C_Read... [18:54:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:48]Read from MH i2c: E2 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 03 00 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [18:54:48]RAPDU: 90 00 [18:54:48]wFMCommunicate OK [18:54:48]SAM_PROTO_ClearQueue done [18:54:48]KKMCreateOFDPacket [18:54:48]OFDProtocolAddRootSTLVToBuf [18:54:48]FM_MakeSignedData [18:54:48]FM_MakeSignedData [18:54:48]SAM_PROTO_SignData [18:54:48]wFMCommunicate request_size=4 [18:54:48]MH_SAM_APDU [18:54:48]CAPDU: 80 0D 01 02 [18:54:48]Write to MH i2c: E2 08 00 B7 03 80 0D 01 02 00 00 00 00 33 [18:54:48]Write i2c OK [18:54:48]MH_I2C_Read... [18:54:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:48]Read from MH i2c: E2 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 03 00 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [18:54:48]RAPDU: 90 00 [18:54:48]wFMCommunicate OK [18:54:48]wFMCommunicate request_size=255 [18:54:48]MH_SAM_APDU [18:54:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 77 E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 22 02 00 35 04 06 00 D2 [18:54:48]Write to MH i2c: E2 02 01 B8 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 77 E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 22 02 00 35 04 06 00 D2 00 00 9F [18:54:48]Write i2c OK [18:54:48]MH_I2C_Read... [18:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:48]Read from MH i2c: E2 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 03 00 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [18:54:48]RAPDU: 90 00 [18:54:48]wFMCommunicate OK [18:54:48]wFMCommunicate request_size=10 [18:54:48]MH_SAM_APDU [18:54:48]CAPDU: 80 0D 02 02 05 8D 2B D5 15 D8 [18:54:48]Write to MH i2c: E2 0D 00 B9 03 80 0D 02 02 05 00 8D 2B D5 15 D8 00 00 BA [18:54:48]Write i2c OK [18:54:48]MH_I2C_Read... [18:54:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:48]Read from MH i2c: E2 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 03 00 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [18:54:48]RAPDU: 90 00 [18:54:48]wFMCommunicate OK [18:54:48]wFMCommunicate request_size=4 [18:54:48]MH_SAM_APDU [18:54:48]CAPDU: 80 0D 03 02 [18:54:48]Write to MH i2c: E2 08 00 BA 03 80 0D 03 02 00 00 00 00 38 [18:54:48]Write i2c OK [18:54:48]MH_I2C_Read... [18:54:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:48]Read from MH i2c: E2 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 0B 00 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 0B 00 BA 03 00 8A 17 D7 33 60 58 A2 D6 90 00 14 [18:54:48]RAPDU: 8A 17 D7 33 60 58 A2 D6 90 00 [18:54:48]wFMCommunicate OK [18:54:48]SAM_PROTO_SignData done [18:54:48]FM_MakeSignedData done [18:54:48]CreateOFDProtocolMessage [18:54:48]wFMCommunicate request_size=4 [18:54:48]MH_SAM_APDU [18:54:48]CAPDU: 80 11 00 00 [18:54:48]Write to MH i2c: E2 08 00 BB 03 80 11 00 00 00 00 00 00 38 [18:54:48]Write i2c OK [18:54:48]MH_I2C_Read... [18:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:48]Read from MH i2c: E2 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 17 00 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 17 00 BB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [18:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:54:48]wFMCommunicate OK [18:54:48]CreateOFDProtocolMessage done [18:54:48]OFDSenderStorePacket 139873 [18:54:48]StoreOFDPacket docnum=139873 [18:54:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B7 85 07 01 C8 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 77 E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 22 02 00 35 04 06 00 D2 8D 2B D5 15 D8 8A 17 D7 33 60 58 A2 D6 [18:54:48]CheckFolder [18:54:48]dirname=/storage/ofd_packets [18:54:48]CheckFolder done [18:54:48]ProducePacketName [18:54:48]name=ofd_packets/00139873 [18:54:48]NVStorageSaveData ofd_packets/00139873 [18:54:48]File name is /storage/ofd_packets/00139873 [18:54:48]Write 301 bytes [18:54:48]NVStorageSaveData done [18:54:48]OFDSenderStorePacket done [18:54:48]KKMCreateOFDPacket done [18:54:48]NVStorageSaveData kkm_last_timestamp [18:54:48]File name is /storage/kkm_last_timestamp [18:54:48]Write 4 bytes [18:54:48]NVStorageSaveData done [18:54:48]ExternCall_PrintAddStr [18:54:48]wPrintStart [18:54:48]Write to MH i2c: 01 00 00 BC 03 BF [18:54:48]Write i2c OK [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: 01 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: 01 07 00 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: 01 07 00 BC 03 00 00 00 00 00 FF 0F D4 [18:54:48]RasterBufferAndPrint [18:54:48]line Счет N : (1)593724 [18:54:48]line ИНН: 02508201610067 [18:54:48]line Контрольно-Кассовый Чек [18:54:48]line ПРОДАЖА [18:54:48]line ТРК (МРК, ГНК) : 62 [18:54:48]line Товар: 2710124130 [18:54:48]line Аи-92-К-5 [18:54:48]line 5.900 * 67.80 [18:54:48]line = 400.02 [18:54:48]line НДС 12% НСП 1% [18:54:48]line > о реализуемом товаре [18:54:48]line ОКРУГЛЕНИЕ: -0.02 [18:54:48]line ИТОГО: 400.00 [18:54:48]line Внесено: 400.00 [18:54:48]line СДАЧА: 0.00 [18:54:48]line НСП 1% : 3.54 [18:54:48]line НДС 12% : 42.48 [18:54:48]line Наличными: 400.00 [18:54:48]line Безнал.: 0.00 [18:54:48]line Место: АЗС № 136 "Партнер Нефть" [18:54:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:54:48]line СНО: Общий режим [18:54:48]line Чек 345 20.08.2024 18:54 [18:54:48]line Смена: 453 ФФД: 1.0 [18:54:48]line ЗНМ: 0300000067 [18:54:48]line РНМ: 0000000000092569 [18:54:48]line Версия ККМ: 001 [18:54:48]line ФМ: 0000000000871776 [18:54:48]line ФД: 139873 [18:54:48]line ФПД: 231503767606744 [18:54:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185447&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139873&fm=231503767606744&tin=02508201610067®Number=0000000000092569&sum=40000 [18:54:48]OFD Sender: Processing packet 139873 [packets to send 137, broken 136] [18:54:48]ProducePacketName [18:54:48]name=ofd_packets/00139873 [18:54:48]OFD Sender: To server: pG, [18:54:48]CommunicateWithHost lk.salyk.kg:30040 [18:54:48]ConnectInit lk.salyk.kg [18:54:48]written 0, free lines is 4095 [18:54:49]Connected sock=10 [18:54:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B7 85 07 01 C8 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 77 E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 22 02 00 35 04 06 00 D2 8D 2B D5 15 D8 8A 17 D7 33 60 58 A2 D6 [18:54:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3A BC 47 00 74 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 22 02 00 F4 03 04 00 0A 8D C4 66 B6 04 01 00 00 23 83 AD F7 A7 39 99 27 [18:54:49]CommunicateWithHost err = 0 [18:54:49]CheckOFDResponse [18:54:49]1017 (14) - 77093643461234 [18:54:49]1041 (16) - 0000000000871776 [18:54:49]1040 (4) - 139873 [18:54:49]1012 (4) - 20.08.2024 12:33 [18:54:49]1206 (1) - 0 [18:54:49]OFD Sender: Remove packet 139873 [18:54:49]ProducePacketName [18:54:49]name=ofd_packets/00139873 [18:54:49]NVStorageDeleteData [18:54:49]Write to MH i2c: 01 00 00 E7 03 EA [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: 01 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: 01 07 00 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 DD 0C DA [18:54:49]RasterBufferAndPrint [18:54:49]line [18:54:49]line [18:54:49]line [18:54:49]line [18:54:49]line [18:54:49]written 0, free lines is 3299 [18:54:49]MH_Cut [18:54:49]Write to MH i2c: D1 01 00 EE 03 01 C3 [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: D1 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: D1 01 00 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: D1 01 00 EE 03 00 C2 [18:54:49]Write to MH i2c: 01 00 00 EF 03 F2 [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]OFD Sender: No OFD packet to send [18:54:50]*** Cut start [18:54:50]*** Partial cut [18:54:50]*** CUTSNS_PIN = 1 [18:54:50]*** CUTSNS_PIN = 0 [18:54:50]*** Brake cut motor [18:54:50]Read from MH i2c: 01 [18:54:50]MH_I2C_Read... [18:54:50]*** Stop cut motor [18:54:50]*** Cut end [18:54:50]Read from MH i2c: 01 07 00 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [18:54:50]process_action close_receipt done [18:54:50]requested_data is exist [18:54:50]produce_requested_data [18:54:50]requested_item fm.sn is exist - process it [18:54:50]wFMCommunicate request_size=4 [18:54:50]MH_SAM_APDU [18:54:50]CAPDU: 80 11 00 00 [18:54:50]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [18:54:50]Write i2c OK [18:54:50]MH_I2C_Read... [18:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:50]Read from MH i2c: E2 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: E2 17 00 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [18:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:54:50]wFMCommunicate OK [18:54:50]requested_item fd.num is exist - process it [18:54:50]SAM_PROTO_GetFieldsCounters [18:54:50]wFMCommunicate request_size=4 [18:54:50]MH_SAM_APDU [18:54:50]CAPDU: 80 13 00 00 [18:54:50]Write to MH i2c: E2 08 00 F1 03 80 13 00 00 00 00 00 00 70 [18:54:50]Write i2c OK [18:54:50]MH_I2C_Read... [18:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:50]Read from MH i2c: E2 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: E2 62 00 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: E2 62 00 F1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 22 02 00 0E 04 04 00 C5 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 F4 [18:54:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 22 02 00 0E 04 04 00 C5 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:54:50]wFMCommunicate OK [18:54:50]SAM_PROTO_GetFieldsCounters done [18:54:50]requested_item shift.num is exist - process it [18:54:50]requested_item shift.opened is exist - process it [18:54:50]req_shift_opened [18:54:50]FM_GetShiftState [18:54:50]SAM_PROTO_GetShiftState [18:54:50]wFMCommunicate request_size=4 [18:54:50]MH_SAM_APDU [18:54:50]CAPDU: 80 13 01 00 [18:54:50]Write to MH i2c: E2 08 00 F2 03 80 13 01 00 00 00 00 00 72 [18:54:50]Write i2c OK [18:54:50]MH_I2C_Read... [18:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:50]Read from MH i2c: E2 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: E2 0E 00 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: E2 0E 00 F2 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 03 [18:54:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:54:50]wFMCommunicate OK [18:54:50]SAM_PROTO_GetShiftState done [18:54:50]FM_GetShiftState done [18:54:50]req_shift_opened done [18:54:50]requested_item shift.open_date is exist - process it [18:54:50]req_shift_open_date [18:54:50]req_shift_open_date done [18:54:50]produce_requested_data done [18:54:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139873,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:54:50]process_action_free close_receipt [18:54:50]json_value_free [18:54:50]json_value_free done [18:54:50]process_json_proto returns [18:54:50]Send response to host [18:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139873,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:54:50]free response buf [18:54:50]execute_script done [18:54:50]execute_script returns [18:54:50]free content buf [18:54:50]Sock 9.Close socket [18:54:50]Sock 9.Thread stoped [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:42]accept exits with 7 [18:55:42]New connection [18:55:42]New thread 3066797412 created [18:55:42]Thread 3066940772 joined [18:55:42]Waiting for new connection... [18:55:42] Sock 7.Parse request [18:55:42]Sock 7.Check first char [18:55:42]Sock 7.First char is OK [18:55:42]request: POST /json_proto HTTP/1.0 [18:55:42]Method: POST [18:55:42]URL: /json_proto [18:55:42]Method is POST - this is cgi request [18:55:42]url: /json_proto [18:55:42]query_string will be loaded in cgi processing [18:55:42]execute_cgi json_proto POST (null) [18:55:42]execute_cgi path=json_proto method=POST [18:55:42]POST find Content-Length [18:55:42]Host: 172.17.45.67:8080 [18:55:42]Content-Length: 677 [18:55:42]Content-Type: application/json [18:55:42] [18:55:42]POST finish read [18:55:42]Found Content-Length = 677 [18:55:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:42]execute_script... [18:55: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)593726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:55:42]POST & json_proto [18:55:42]process_json_proto [18:55:42]json parsed OK: [18:55:42]protocol is kg_v1.0 [18:55:42]action value=close_receipt [18:55:42]process_action close_receipt [18:55:42]cmd_close_receipt [18:55:42]MH_GetDate [18:55:42]Write to MH i2c: F0 00 00 F3 03 E5 [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: F0 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: F0 09 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: F0 09 00 F3 03 00 AF E6 C4 66 5F 7F 2B 66 1C [18:55:42]GetLastDocTimeStamp 1724180087 [18:55:42]current date 1724180143 [18:55:42]FM_GetShiftState [18:55:42]SAM_PROTO_GetShiftState [18:55:42]wFMCommunicate request_size=4 [18:55:42]MH_SAM_APDU [18:55:42]CAPDU: 80 13 01 00 [18:55:42]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [18:55:42]Write i2c OK [18:55:42]MH_I2C_Read... [18:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:42]Read from MH i2c: E2 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 0E 00 [18:55:42]MH_I2C_Read... [18:55:42]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 05 [18:55:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:55:42]wFMCommunicate OK [18:55:42]SAM_PROTO_GetShiftState done [18:55:42]FM_GetShiftState done [18:55:42]opened in 1724113785 [18:55:42]opened+sec_in_day 1724200185 [18:55:42]quantity*price = 30035 [18:55:42]sum+1 = 30036 [18:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 346 20.08.2024 18:55 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139874 ФПД: 248047225446144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139874&fm=248047225446144&tin=02508201610067®Number=0000000000092569&sum=30000 [18:55:43]StoreToDocumentArchive [18:55:43]shift 453 fd 139874 [18:55:43]save to /storage/0453/doc_00139874 [18:55:43]save last doc name /storage/0453/doc_00139874 to /storage/kkm_last_doc_name [18:55:43]save OK [18:55:43]Clear old archive folders... [18:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:55:43]tlvbuf is 003E0940 [18:55:43]SAM_PROTO_ClearQueue [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 09 00 00 [18:55:43]Write to MH i2c: E2 08 00 01 04 80 09 00 00 00 00 00 00 77 [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:43]Read from MH i2c: E2 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 03 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [18:55:43]RAPDU: 90 00 [18:55:43]wFMCommunicate OK [18:55:43]SAM_PROTO_ClearQueue done [18:55:43]KKMCreateOFDPacket [18:55:43]OFDProtocolAddRootSTLVToBuf [18:55:43]FM_MakeSignedData [18:55:43]FM_MakeSignedData [18:55:43]SAM_PROTO_SignData [18:55:43]wFMCommunicate request_size=4 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 0D 01 02 [18:55:43]Write to MH i2c: E2 08 00 02 04 80 0D 01 02 00 00 00 00 7F [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:43]Read from MH i2c: E2 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 03 00 [18:55:43]MH_I2C_Read... [18:55:43]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [18:55:43]RAPDU: 90 00 [18:55:43]wFMCommunicate OK [18:55:43]wFMCommunicate request_size=255 [18:55:43]MH_SAM_APDU [18:55:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 AF E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 22 02 00 35 04 06 00 E1 [18:55:43]Write to MH i2c: E2 02 01 03 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 AF E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 22 02 00 35 04 06 00 E1 00 00 6E [18:55:43]Write i2c OK [18:55:43]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [18:55:44]RAPDU: 90 00 [18:55:44]wFMCommunicate OK [18:55:44]wFMCommunicate request_size=10 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 0D 02 02 05 98 FE C2 9F 00 [18:55:44]Write to MH i2c: E2 0D 00 04 04 80 0D 02 02 05 00 98 FE C2 9F 00 00 00 83 [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [18:55:44]RAPDU: 90 00 [18:55:44]wFMCommunicate OK [18:55:44]wFMCommunicate request_size=4 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 0D 03 02 [18:55:44]Write to MH i2c: E2 08 00 05 04 80 0D 03 02 00 00 00 00 84 [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 0B 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 0B 00 05 04 00 45 F6 D7 06 C3 C7 F5 23 90 00 3F [18:55:44]RAPDU: 45 F6 D7 06 C3 C7 F5 23 90 00 [18:55:44]wFMCommunicate OK [18:55:44]SAM_PROTO_SignData done [18:55:44]FM_MakeSignedData done [18:55:44]CreateOFDProtocolMessage [18:55:44]wFMCommunicate request_size=4 [18:55:44]MH_SAM_APDU [18:55:44]CAPDU: 80 11 00 00 [18:55:44]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:44]Read from MH i2c: E2 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 17 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [18:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:55:44]wFMCommunicate OK [18:55:44]CreateOFDProtocolMessage done [18:55:44]OFDSenderStorePacket 139874 [18:55:44]StoreOFDPacket docnum=139874 [18:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B 8C 07 01 12 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 AF E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 22 02 00 35 04 06 00 E1 98 FE C2 9F 00 45 F6 D7 06 C3 C7 F5 23 [18:55:44]CheckFolder [18:55:44]dirname=/storage/ofd_packets [18:55:44]CheckFolder done [18:55:44]ProducePacketName [18:55:44]name=ofd_packets/00139874 [18:55:44]NVStorageSaveData ofd_packets/00139874 [18:55:44]File name is /storage/ofd_packets/00139874 [18:55:44]Write 301 bytes [18:55:44]NVStorageSaveData done [18:55:44]OFDSenderStorePacket done [18:55:44]KKMCreateOFDPacket done [18:55:44]NVStorageSaveData kkm_last_timestamp [18:55:44]File name is /storage/kkm_last_timestamp [18:55:44]Write 4 bytes [18:55:44]NVStorageSaveData done [18:55:44]ExternCall_PrintAddStr [18:55:44]wPrintStart [18:55:44]Write to MH i2c: 01 00 00 07 04 0B [18:55:44]Write i2c OK [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: 01 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: 01 07 00 [18:55:44]MH_I2C_Read... [18:55:44]Read from MH i2c: 01 07 00 07 04 00 00 00 00 00 FF 0F 20 [18:55:44]RasterBufferAndPrint [18:55:44]line Счет N : (1)593726 [18:55:44]line ИНН: 02508201610067 [18:55:44]line Контрольно-Кассовый Чек [18:55:44]line ПРОДАЖА [18:55:44]line ТРК (МРК, ГНК) : 32 [18:55:44]line Товар: 2710124130 [18:55:44]line Аи-92-К-5 [18:55:44]line 4.430 * 67.80 [18:55:44]line = 300.35 [18:55:44]line НДС 12% НСП 1% [18:55:44]line > о реализуемом товаре [18:55:44]line ОКРУГЛЕНИЕ: -0.35 [18:55:44]line ИТОГО: 300.00 [18:55:44]line Внесено: 300.00 [18:55:44]line СДАЧА: 0.00 [18:55:44]line НСП 1% : 2.66 [18:55:44]line НДС 12% : 31.90 [18:55:44]line Наличными: 300.00 [18:55:44]line Безнал.: 0.00 [18:55:44]line Место: АЗС № 136 "Партнер Нефть" [18:55:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:55:44]line СНО: Общий режим [18:55:44]line Чек 346 20.08.2024 18:55 [18:55:44]line Смена: 453 ФФД: 1.0 [18:55:44]line ЗНМ: 0300000067 [18:55:44]line РНМ: 0000000000092569 [18:55:44]line Версия ККМ: 001 [18:55:44]line ФМ: 0000000000871776 [18:55:44]line ФД: 139874 [18:55:44]line ФПД: 248047225446144 [18:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139874&fm=248047225446144&tin=02508201610067®Number=0000000000092569&sum=30000 [18:55:44]written 0, free lines is 4095 [18:55:44]OFD Sender: Processing packet 139874 [packets to send 137, broken 136] [18:55:44]ProducePacketName [18:55:44]name=ofd_packets/00139874 [18:55:44]OFD Sender: To server: pG, [18:55:44]CommunicateWithHost lk.salyk.kg:30040 [18:55:44]ConnectInit lk.salyk.kg [18:55:44]Connected sock=10 [18:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B 8C 07 01 12 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 AF E6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 22 02 00 35 04 06 00 E1 98 FE C2 9F 00 45 F6 D7 06 C3 C7 F5 23 [18:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 23 E2 47 00 F6 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 22 02 00 F4 03 04 00 41 8D C4 66 B6 04 01 00 00 A3 32 71 66 AF 2A 17 53 [18:55:44]CommunicateWithHost err = 0 [18:55:44]CheckOFDResponse [18:55:44]1017 (14) - 77093643461234 [18:55:44]1041 (16) - 0000000000871776 [18:55:44]1040 (4) - 139874 [18:55:44]1012 (4) - 20.08.2024 12:34 [18:55:44]1206 (1) - 0 [18:55:44]OFD Sender: Remove packet 139874 [18:55:44]ProducePacketName [18:55:44]name=ofd_packets/00139874 [18:55:44]NVStorageDeleteData [18:55:45]Write to MH i2c: 01 00 00 32 04 36 [18:55:45]Write i2c OK [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: 01 [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: 01 07 00 [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 D5 0C 1E [18:55:45]RasterBufferAndPrint [18:55:45]line [18:55:45]line [18:55:45]line [18:55:45]line [18:55:45]line [18:55:45]written 0, free lines is 3289 [18:55:45]MH_Cut [18:55:45]Write to MH i2c: D1 01 00 39 04 01 0F [18:55:45]Write i2c OK [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: D1 [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: D1 01 00 [18:55:45]MH_I2C_Read... [18:55:45]Read from MH i2c: D1 01 00 39 04 00 0E [18:55:45]Write to MH i2c: 01 00 00 3A 04 3E [18:55:45]Write i2c OK [18:55:45]MH_I2C_Read... [18:55:45]OFD Sender: No OFD packet to send [18:55:45]*** Cut start [18:55:45]*** Partial cut [18:55:45]*** CUTSNS_PIN = 1 [18:55:45]*** CUTSNS_PIN = 0 [18:55:45]*** Brake cut motor [18:55:46]Read from MH i2c: 01 [18:55:46]MH_I2C_Read... [18:55:46]*** Stop cut motor [18:55:46]*** Cut end [18:55:46]Read from MH i2c: 01 07 00 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [18:55:46]process_action close_receipt done [18:55:46]requested_data is exist [18:55:46]produce_requested_data [18:55:46]requested_item fm.sn is exist - process it [18:55:46]wFMCommunicate request_size=4 [18:55:46]MH_SAM_APDU [18:55:46]CAPDU: 80 11 00 00 [18:55:46]Write to MH i2c: E2 08 00 3B 04 80 11 00 00 00 00 00 00 B9 [18:55:46]Write i2c OK [18:55:46]MH_I2C_Read... [18:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:46]Read from MH i2c: E2 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: E2 17 00 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: E2 17 00 3B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [18:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:55:46]wFMCommunicate OK [18:55:46]requested_item fd.num is exist - process it [18:55:46]SAM_PROTO_GetFieldsCounters [18:55:46]wFMCommunicate request_size=4 [18:55:46]MH_SAM_APDU [18:55:46]CAPDU: 80 13 00 00 [18:55:46]Write to MH i2c: E2 08 00 3C 04 80 13 00 00 00 00 00 00 BC [18:55:46]Write i2c OK [18:55:46]MH_I2C_Read... [18:55:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:46]Read from MH i2c: E2 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: E2 62 00 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: E2 62 00 3C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 22 02 00 0E 04 04 00 C5 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 44 [18:55:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 22 02 00 0E 04 04 00 C5 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:55:46]wFMCommunicate OK [18:55:46]SAM_PROTO_GetFieldsCounters done [18:55:46]requested_item shift.num is exist - process it [18:55:46]requested_item shift.opened is exist - process it [18:55:46]req_shift_opened [18:55:46]FM_GetShiftState [18:55:46]SAM_PROTO_GetShiftState [18:55:46]wFMCommunicate request_size=4 [18:55:46]MH_SAM_APDU [18:55:46]CAPDU: 80 13 01 00 [18:55:46]Write to MH i2c: E2 08 00 3D 04 80 13 01 00 00 00 00 00 BE [18:55:46]Write i2c OK [18:55:46]MH_I2C_Read... [18:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:46]Read from MH i2c: E2 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: E2 0E 00 [18:55:46]MH_I2C_Read... [18:55:46]Read from MH i2c: E2 0E 00 3D 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4F [18:55:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:55:46]wFMCommunicate OK [18:55:46]SAM_PROTO_GetShiftState done [18:55:46]FM_GetShiftState done [18:55:46]req_shift_opened done [18:55:46]requested_item shift.open_date is exist - process it [18:55:46]req_shift_open_date [18:55:46]req_shift_open_date done [18:55:46]produce_requested_data done [18:55:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139874,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:55:46]process_action_free close_receipt [18:55:46]json_value_free [18:55:46]json_value_free done [18:55:46]process_json_proto returns [18:55:46]Send response to host [18:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139874,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:55:46]free response buf [18:55:46]execute_script done [18:55:46]execute_script returns [18:55:46]free content buf [18:55:46]Sock 7.Close socket [18:55:46]Sock 7.Thread stoped [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:12]accept exits with 9 [18:57:12]New connection [18:57:12]New thread 3066940772 created [18:57:12]Thread 3066797412 joined [18:57:12]Waiting for new connection... [18:57:12] Sock 9.Parse request [18:57:12]Sock 9.Check first char [18:57:12]Sock 9.First char is OK [18:57:12]request: POST /json_proto HTTP/1.0 [18:57:12]Method: POST [18:57:12]URL: /json_proto [18:57:12]Method is POST - this is cgi request [18:57:12]url: /json_proto [18:57:12]query_string will be loaded in cgi processing [18:57:12]execute_cgi json_proto POST (null) [18:57:12]execute_cgi path=json_proto method=POST [18:57:12]POST find Content-Length [18:57:12]Host: 172.17.45.67:8080 [18:57:12]Content-Length: 682 [18:57:12]Content-Type: application/json [18:57:12] [18:57:12]POST finish read [18:57:12]Found Content-Length = 682 [18:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 41.300, "sum" : 2800.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:12]execute_script... [18:57: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)593725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 41.300, "sum" : 2800.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:12]POST & json_proto [18:57:12]process_json_proto [18:57:12]json parsed OK: [18:57:12]protocol is kg_v1.0 [18:57:12]action value=close_receipt [18:57:12]process_action close_receipt [18:57:12]cmd_close_receipt [18:57:12]MH_GetDate [18:57:12]Write to MH i2c: F0 00 00 3E 04 31 [18:57:12]Write i2c OK [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: F0 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: F0 09 00 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: F0 09 00 3E 04 00 08 E7 C4 66 5F 7F 2B 66 C2 [18:57:12]GetLastDocTimeStamp 1724180143 [18:57:12]current date 1724180232 [18:57:12]FM_GetShiftState [18:57:12]SAM_PROTO_GetShiftState [18:57:12]wFMCommunicate request_size=4 [18:57:12]MH_SAM_APDU [18:57:12]CAPDU: 80 13 01 00 [18:57:12]Write to MH i2c: E2 08 00 3F 04 80 13 01 00 00 00 00 00 C0 [18:57:12]Write i2c OK [18:57:12]MH_I2C_Read... [18:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:12]Read from MH i2c: E2 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 0E 00 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 0E 00 3F 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 51 [18:57:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:57:12]wFMCommunicate OK [18:57:12]SAM_PROTO_GetShiftState done [18:57:12]FM_GetShiftState done [18:57:12]opened in 1724113785 [18:57:12]opened+sec_in_day 1724200185 [18:57:12]quantity*price = 280014 [18:57:12]sum+1 = 280015 [18:57:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.36 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 347 20.08.2024 18:57 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139875 ФПД: 21427618965232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185713&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139875&fm=21427618965232&tin=02508201610067®Number=0000000000092569&sum=280000 [18:57:13]StoreToDocumentArchive [18:57:13]shift 453 fd 139875 [18:57:13]save to /storage/0453/doc_00139875 [18:57:13]save last doc name /storage/0453/doc_00139875 to /storage/kkm_last_doc_name [18:57:13]save OK [18:57:13]Clear old archive folders... [18:57:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:13]tlvbuf is 003E15F0 [18:57:13]SAM_PROTO_ClearQueue [18:57:13]wFMCommunicate request_size=4 [18:57:13]MH_SAM_APDU [18:57:13]CAPDU: 80 09 00 00 [18:57:13]Write to MH i2c: E2 08 00 4C 04 80 09 00 00 00 00 00 00 C2 [18:57:13]Write i2c OK [18:57:13]MH_I2C_Read... [18:57:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:13]Read from MH i2c: E2 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 03 00 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [18:57:13]RAPDU: 90 00 [18:57:13]wFMCommunicate OK [18:57:13]SAM_PROTO_ClearQueue done [18:57:13]KKMCreateOFDPacket [18:57:13]OFDProtocolAddRootSTLVToBuf [18:57:13]FM_MakeSignedData [18:57:13]FM_MakeSignedData [18:57:13]SAM_PROTO_SignData [18:57:13]wFMCommunicate request_size=4 [18:57:13]MH_SAM_APDU [18:57:13]CAPDU: 80 0D 01 02 [18:57:13]Write to MH i2c: E2 08 00 4D 04 80 0D 01 02 00 00 00 00 CA [18:57:13]Write i2c OK [18:57:13]MH_I2C_Read... [18:57:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:13]Read from MH i2c: E2 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 03 00 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [18:57:13]RAPDU: 90 00 [18:57:13]wFMCommunicate OK [18:57:13]wFMCommunicate request_size=255 [18:57:13]MH_SAM_APDU [18:57:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 A1 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CE 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 74 00 00 00 00 07 04 06 00 C0 45 04 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 09 E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 22 02 00 35 04 06 00 13 [18:57:13]Write to MH i2c: E2 02 01 4E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 A1 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CE 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 74 00 00 00 00 07 04 06 00 C0 45 04 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 09 E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 22 02 00 35 04 06 00 13 00 00 BB [18:57:13]Write i2c OK [18:57:13]MH_I2C_Read... [18:57:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:13]Read from MH i2c: E2 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 03 00 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [18:57:13]RAPDU: 90 00 [18:57:13]wFMCommunicate OK [18:57:13]wFMCommunicate request_size=10 [18:57:13]MH_SAM_APDU [18:57:13]CAPDU: 80 0D 02 02 05 7D 01 9D E6 F0 [18:57:13]Write to MH i2c: E2 0D 00 4F 04 80 0D 02 02 05 00 7D 01 9D E6 F0 00 00 C8 [18:57:13]Write i2c OK [18:57:13]MH_I2C_Read... [18:57:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:13]Read from MH i2c: E2 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 03 00 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [18:57:13]RAPDU: 90 00 [18:57:13]wFMCommunicate OK [18:57:13]wFMCommunicate request_size=4 [18:57:13]MH_SAM_APDU [18:57:13]CAPDU: 80 0D 03 02 [18:57:13]Write to MH i2c: E2 08 00 50 04 80 0D 03 02 00 00 00 00 CF [18:57:13]Write i2c OK [18:57:13]MH_I2C_Read... [18:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:14]Read from MH i2c: E2 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: E2 0B 00 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: E2 0B 00 50 04 00 30 D5 90 B3 FC 81 DD BB 90 00 2D [18:57:14]RAPDU: 30 D5 90 B3 FC 81 DD BB 90 00 [18:57:14]wFMCommunicate OK [18:57:14]SAM_PROTO_SignData done [18:57:14]FM_MakeSignedData done [18:57:14]CreateOFDProtocolMessage [18:57:14]wFMCommunicate request_size=4 [18:57:14]MH_SAM_APDU [18:57:14]CAPDU: 80 11 00 00 [18:57:14]Write to MH i2c: E2 08 00 51 04 80 11 00 00 00 00 00 00 CF [18:57:14]Write i2c OK [18:57:14]MH_I2C_Read... [18:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:14]Read from MH i2c: E2 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: E2 17 00 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: E2 17 00 51 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [18:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:57:14]wFMCommunicate OK [18:57:14]CreateOFDProtocolMessage done [18:57:14]OFDSenderStorePacket 139875 [18:57:14]StoreOFDPacket docnum=139875 [18:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 3F 07 01 73 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 A1 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CE 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 74 00 00 00 00 07 04 06 00 C0 45 04 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 09 E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 22 02 00 35 04 06 00 13 7D 01 9D E6 F0 30 D5 90 B3 FC 81 DD BB [18:57:14]CheckFolder [18:57:14]dirname=/storage/ofd_packets [18:57:14]CheckFolder done [18:57:14]ProducePacketName [18:57:14]name=ofd_packets/00139875 [18:57:14]NVStorageSaveData ofd_packets/00139875 [18:57:14]File name is /storage/ofd_packets/00139875 [18:57:14]Write 301 bytes [18:57:14]NVStorageSaveData done [18:57:14]OFDSenderStorePacket done [18:57:14]KKMCreateOFDPacket done [18:57:14]NVStorageSaveData kkm_last_timestamp [18:57:14]File name is /storage/kkm_last_timestamp [18:57:14]Write 4 bytes [18:57:14]NVStorageSaveData done [18:57:14]ExternCall_PrintAddStr [18:57:14]wPrintStart [18:57:14]Write to MH i2c: 01 00 00 52 04 56 [18:57:14]Write i2c OK [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: 01 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: 01 07 00 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: 01 07 00 52 04 00 00 00 00 00 FF 0F 6B [18:57:14]RasterBufferAndPrint [18:57:14]line Счет N : (1)593725 [18:57:14]line ИНН: 02508201610067 [18:57:14]line Контрольно-Кассовый Чек [18:57:14]line ПРОДАЖА [18:57:14]line ТРК (МРК, ГНК) : 42 [18:57:14]line Товар: 2710124130 [18:57:14]line Аи-92-К-5 [18:57:14]line 41.300 * 67.80 [18:57:14]line = 2800.14 [18:57:14]line НДС 12% НСП 1% [18:57:14]line > о реализуемом товаре [18:57:14]line ОКРУГЛЕНИЕ: -0.14 [18:57:14]line ИТОГО: 2800.00 [18:57:14]line Внесено: 2800.00 [18:57:14]line СДАЧА: 0.00 [18:57:14]line НСП 1% : 24.78 [18:57:14]line НДС 12% : 297.36 [18:57:14]line Наличными: 2800.00 [18:57:14]line Безнал.: 0.00 [18:57:14]line Место: АЗС № 136 "Партнер Нефть" [18:57:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:57:14]line СНО: Общий режим [18:57:14]line Чек 347 20.08.2024 18:57 [18:57:14]line Смена: 453 ФФД: 1.0 [18:57:14]line ЗНМ: 0300000067 [18:57:14]line РНМ: 0000000000092569 [18:57:14]line Версия ККМ: 001 [18:57:14]line ФМ: 0000000000871776 [18:57:14]line ФД: 139875 [18:57:14]line ФПД: 21427618965232 [18:57:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185713&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139875&fm=21427618965232&tin=02508201610067®Number=0000000000092569&sum=280000 [18:57:14]written 0, free lines is 4095 [18:57:14]OFD Sender: Processing packet 139875 [packets to send 137, broken 136] [18:57:14]ProducePacketName [18:57:14]name=ofd_packets/00139875 [18:57:14]OFD Sender: To server: pG, [18:57:14]CommunicateWithHost lk.salyk.kg:30040 [18:57:14]ConnectInit lk.salyk.kg [18:57:14]Connected sock=10 [18:57:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 3F 07 01 73 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 A1 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CE 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 74 00 00 00 00 07 04 06 00 C0 45 04 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 09 E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 22 02 00 35 04 06 00 13 7D 01 9D E6 F0 30 D5 90 B3 FC 81 DD BB [18:57:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 81 F2 47 00 B6 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 22 02 00 F4 03 04 00 9B 8D C4 66 B6 04 01 00 00 41 7D F3 01 46 8C 0E 65 [18:57:14]CommunicateWithHost err = 0 [18:57:14]CheckOFDResponse [18:57:14]1017 (14) - 77093643461234 [18:57:14]1041 (16) - 0000000000871776 [18:57:14]1040 (4) - 139875 [18:57:14]1012 (4) - 20.08.2024 12:35 [18:57:14]1206 (1) - 0 [18:57:14]OFD Sender: Remove packet 139875 [18:57:14]ProducePacketName [18:57:14]name=ofd_packets/00139875 [18:57:14]NVStorageDeleteData [18:57:14]Write to MH i2c: 01 00 00 7D 04 81 [18:57:14]Write i2c OK [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: 01 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: 01 07 00 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 D7 0C 6B [18:57:14]RasterBufferAndPrint [18:57:14]line [18:57:14]line [18:57:14]line [18:57:14]line [18:57:14]line [18:57:14]written 0, free lines is 3296 [18:57:14]MH_Cut [18:57:14]Write to MH i2c: D1 01 00 84 04 01 5A [18:57:14]Write i2c OK [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: D1 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: D1 01 00 [18:57:14]MH_I2C_Read... [18:57:14]Read from MH i2c: D1 01 00 84 04 00 59 [18:57:14]Write to MH i2c: 01 00 00 85 04 89 [18:57:14]Write i2c OK [18:57:14]MH_I2C_Read... [18:57:15]OFD Sender: No OFD packet to send [18:57:15]*** Cut start [18:57:15]*** Partial cut [18:57:15]*** CUTSNS_PIN = 1 [18:57:15]*** CUTSNS_PIN = 0 [18:57:15]*** Brake cut motor [18:57:16]Read from MH i2c: 01 [18:57:16]MH_I2C_Read... [18:57:16]*** Stop cut motor [18:57:16]*** Cut end [18:57:16]Read from MH i2c: 01 07 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 FF 0F 9E [18:57:16]process_action close_receipt done [18:57:16]requested_data is exist [18:57:16]produce_requested_data [18:57:16]requested_item fm.sn is exist - process it [18:57:16]wFMCommunicate request_size=4 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 11 00 00 [18:57:16]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 17 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [18:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:57:16]wFMCommunicate OK [18:57:16]requested_item fd.num is exist - process it [18:57:16]SAM_PROTO_GetFieldsCounters [18:57:16]wFMCommunicate request_size=4 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 13 00 00 [18:57:16]Write to MH i2c: E2 08 00 87 04 80 13 00 00 00 00 00 00 07 [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 62 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 62 00 87 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 22 02 00 0E 04 04 00 C5 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 93 [18:57:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 22 02 00 0E 04 04 00 C5 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:57:16]wFMCommunicate OK [18:57:16]SAM_PROTO_GetFieldsCounters done [18:57:16]requested_item shift.num is exist - process it [18:57:16]requested_item shift.opened is exist - process it [18:57:16]req_shift_opened [18:57:16]FM_GetShiftState [18:57:16]SAM_PROTO_GetShiftState [18:57:16]wFMCommunicate request_size=4 [18:57:16]MH_SAM_APDU [18:57:16]CAPDU: 80 13 01 00 [18:57:16]Write to MH i2c: E2 08 00 88 04 80 13 01 00 00 00 00 00 09 [18:57:16]Write i2c OK [18:57:16]MH_I2C_Read... [18:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:16]Read from MH i2c: E2 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 0E 00 [18:57:16]MH_I2C_Read... [18:57:16]Read from MH i2c: E2 0E 00 88 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9A [18:57:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:57:16]wFMCommunicate OK [18:57:16]SAM_PROTO_GetShiftState done [18:57:16]FM_GetShiftState done [18:57:16]req_shift_opened done [18:57:16]requested_item shift.open_date is exist - process it [18:57:16]req_shift_open_date [18:57:16]req_shift_open_date done [18:57:16]produce_requested_data done [18:57:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139875,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:57:16]process_action_free close_receipt [18:57:16]json_value_free [18:57:16]json_value_free done [18:57:16]process_json_proto returns [18:57:16]Send response to host [18:57:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139875,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:57:16]free response buf [18:57:16]execute_script done [18:57:16]execute_script returns [18:57:16]free content buf [18:57:16]Sock 9.Close socket [18:57:16]Sock 9.Thread stoped [18:57:20]OFD Sender: No OFD packet to send [18:57:20]accept exits with 7 [18:57:20]New connection [18:57:20]New thread 3066797412 created [18:57:20]Thread 3066940772 joined [18:57:20]Waiting for new connection... [18:57:20] Sock 7.Parse request [18:57:20]Sock 7.Check first char [18:57:20]Sock 7.First char is OK [18:57:20]request: POST /json_proto HTTP/1.0 [18:57:20]Method: POST [18:57:20]URL: /json_proto [18:57:20]Method is POST - this is cgi request [18:57:20]url: /json_proto [18:57:20]query_string will be loaded in cgi processing [18:57:20]execute_cgi json_proto POST (null) [18:57:20]execute_cgi path=json_proto method=POST [18:57:20]POST find Content-Length [18:57:20]Host: 172.17.45.67:8080 [18:57:20]Content-Length: 682 [18:57:20]Content-Type: application/json [18:57:20] [18:57:20]POST finish read [18:57:20]Found Content-Length = 682 [18:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:20]execute_script... [18:57: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)593727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:20]POST & json_proto [18:57:20]process_json_proto [18:57:20]json parsed OK: [18:57:20]protocol is kg_v1.0 [18:57:20]action value=close_receipt [18:57:20]process_action close_receipt [18:57:20]cmd_close_receipt [18:57:20]MH_GetDate [18:57:20]Write to MH i2c: F0 00 00 89 04 7C [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: F0 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: F0 09 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: F0 09 00 89 04 00 11 E7 C4 66 5F 7F 2B 66 16 [18:57:20]GetLastDocTimeStamp 1724180233 [18:57:20]current date 1724180241 [18:57:20]FM_GetShiftState [18:57:20]SAM_PROTO_GetShiftState [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 13 01 00 [18:57:20]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 0E 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9C [18:57:20]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:57:20]wFMCommunicate OK [18:57:20]SAM_PROTO_GetShiftState done [18:57:20]FM_GetShiftState done [18:57:20]opened in 1724113785 [18:57:20]opened+sec_in_day 1724200185 [18:57:20]quantity*price = 20040 [18:57:20]sum+1 = 20042 [18:57:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 348 20.08.2024 18:57 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139876 ФПД: 13426812555872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185721&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139876&fm=13426812555872&tin=02508201610067®Number=0000000000092569&sum=20000 [18:57:21]StoreToDocumentArchive [18:57:21]shift 453 fd 139876 [18:57:21]save to /storage/0453/doc_00139876 [18:57:21]save last doc name /storage/0453/doc_00139876 to /storage/kkm_last_doc_name [18:57:21]save OK [18:57:21]Clear old archive folders... [18:57:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:57:21]tlvbuf is 003EE280 [18:57:21]SAM_PROTO_ClearQueue [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 09 00 00 [18:57:21]Write to MH i2c: E2 08 00 97 04 80 09 00 00 00 00 00 00 0D [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [18:57:21]RAPDU: 90 00 [18:57:21]wFMCommunicate OK [18:57:21]SAM_PROTO_ClearQueue done [18:57:21]KKMCreateOFDPacket [18:57:21]OFDProtocolAddRootSTLVToBuf [18:57:21]FM_MakeSignedData [18:57:21]FM_MakeSignedData [18:57:21]SAM_PROTO_SignData [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 0D 01 02 [18:57:21]Write to MH i2c: E2 08 00 98 04 80 0D 01 02 00 00 00 00 15 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [18:57:21]RAPDU: 90 00 [18:57:21]wFMCommunicate OK [18:57:21]wFMCommunicate request_size=255 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 11 E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 22 02 00 35 04 06 00 [18:57:21]Write to MH i2c: E2 02 01 99 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 11 E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 22 02 00 35 04 06 00 00 00 DE [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [18:57:22]RAPDU: 90 00 [18:57:22]wFMCommunicate OK [18:57:22]wFMCommunicate request_size=11 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 0D 02 02 06 0C 36 2C 64 92 60 [18:57:22]Write to MH i2c: E2 0E 00 9A 04 80 0D 02 02 06 00 0C 36 2C 64 92 60 00 00 E8 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [18:57:22]RAPDU: 90 00 [18:57:22]wFMCommunicate OK [18:57:22]wFMCommunicate request_size=4 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 0D 03 02 [18:57:22]Write to MH i2c: E2 08 00 9B 04 80 0D 03 02 00 00 00 00 1A [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 0B 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 0B 00 9B 04 00 B8 67 7A CD 62 62 0D C2 90 00 14 [18:57:22]RAPDU: B8 67 7A CD 62 62 0D C2 90 00 [18:57:22]wFMCommunicate OK [18:57:22]SAM_PROTO_SignData done [18:57:22]FM_MakeSignedData done [18:57:22]CreateOFDProtocolMessage [18:57:22]wFMCommunicate request_size=4 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 11 00 00 [18:57:22]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 17 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 71 [18:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:57:22]wFMCommunicate OK [18:57:22]CreateOFDProtocolMessage done [18:57:22]OFDSenderStorePacket 139876 [18:57:22]StoreOFDPacket docnum=139876 [18:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 59 D8 08 01 0A D4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 11 E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 22 02 00 35 04 06 00 0C 36 2C 64 92 60 B8 67 7A CD 62 62 0D C2 [18:57:22]CheckFolder [18:57:22]dirname=/storage/ofd_packets [18:57:22]CheckFolder done [18:57:22]ProducePacketName [18:57:22]name=ofd_packets/00139876 [18:57:22]NVStorageSaveData ofd_packets/00139876 [18:57:22]File name is /storage/ofd_packets/00139876 [18:57:22]Write 302 bytes [18:57:22]NVStorageSaveData done [18:57:22]OFDSenderStorePacket done [18:57:22]KKMCreateOFDPacket done [18:57:22]NVStorageSaveData kkm_last_timestamp [18:57:22]File name is /storage/kkm_last_timestamp [18:57:22]Write 4 bytes [18:57:22]NVStorageSaveData done [18:57:22]ExternCall_PrintAddStr [18:57:22]wPrintStart [18:57:22]Write to MH i2c: 01 00 00 9D 04 A1 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [18:57:22]RasterBufferAndPrint [18:57:22]line Счет N : (1)593727 [18:57:22]line ИНН: 02508201610067 [18:57:22]line Контрольно-Кассовый Чек [18:57:22]line ПРОДАЖА [18:57:22]line ТРК (МРК, ГНК) : 54 [18:57:22]line Товар: 2710194210 [18:57:22]line ДТ(л)-К-5 [18:57:22]line 2.630 * 76.20 [18:57:22]line = 200.41 [18:57:22]line НДС 12% НСП 1% [18:57:22]line > о реализуемом товаре [18:57:22]line ОКРУГЛЕНИЕ: -0.41 [18:57:22]line ИТОГО: 200.00 [18:57:22]line Внесено: 200.00 [18:57:22]line СДАЧА: 0.00 [18:57:22]line НСП 1% : 1.77 [18:57:22]line НДС 12% : 21.28 [18:57:22]line Наличными: 200.00 [18:57:22]line Безнал.: 0.00 [18:57:22]line Место: АЗС № 136 "Партнер Нефть" [18:57:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:57:22]line СНО: Общий режим [18:57:22]line Чек 348 20.08.2024 18:57 [18:57:22]line Смена: 453 ФФД: 1.0 [18:57:22]line ЗНМ: 0300000067 [18:57:22]line РНМ: 0000000000092569 [18:57:22]line Версия ККМ: 001 [18:57:22]line ФМ: 0000000000871776 [18:57:22]line ФД: 139876 [18:57:22]line ФПД: 13426812555872 [18:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185721&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139876&fm=13426812555872&tin=02508201610067®Number=0000000000092569&sum=20000 [18:57:22]written 0, free lines is 4095 [18:57:22]OFD Sender: Processing packet 139876 [packets to send 137, broken 136] [18:57:22]ProducePacketName [18:57:22]name=ofd_packets/00139876 [18:57:22]OFD Sender: To server: pG, [18:57:22]CommunicateWithHost lk.salyk.kg:30040 [18:57:22]ConnectInit lk.salyk.kg [18:57:22]Connected sock=9 [18:57:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 59 D8 08 01 0A D4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 11 E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 22 02 00 35 04 06 00 0C 36 2C 64 92 60 B8 67 7A CD 62 62 0D C2 [18:57:22]Write to MH i2c: 01 00 00 C8 04 CC [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 DE 0C BD [18:57:22]RasterBufferAndPrint [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]written 0, free lines is 3303 [18:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D8 7C 47 00 F2 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 22 02 00 F4 03 04 00 A3 8D C4 66 B6 04 01 00 00 02 1E 8A 19 F1 0B E7 76 [18:57:22]CommunicateWithHost err = 0 [18:57:22]CheckOFDResponse [18:57:22]1017 (14) - 77093643461234 [18:57:22]1041 (16) - 0000000000871776 [18:57:22]1040 (4) - 139876 [18:57:22]1012 (4) - 20.08.2024 12:35 [18:57:22]1206 (1) - 0 [18:57:22]OFD Sender: Remove packet 139876 [18:57:22]ProducePacketName [18:57:22]name=ofd_packets/00139876 [18:57:22]NVStorageDeleteData [18:57:22]MH_Cut [18:57:22]Write to MH i2c: D1 01 00 CF 04 01 A5 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 01 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 01 00 CF 04 00 A4 [18:57:22]Write to MH i2c: 01 00 00 D0 04 D4 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:23]OFD Sender: No OFD packet to send [18:57:23]*** Cut start [18:57:23]*** Partial cut [18:57:23]*** CUTSNS_PIN = 1 [18:57:23]*** CUTSNS_PIN = 0 [18:57:23]*** Brake cut motor [18:57:24]Read from MH i2c: 01 [18:57:24]MH_I2C_Read... [18:57:24]*** Stop cut motor [18:57:24]*** Cut end [18:57:24]Read from MH i2c: 01 07 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [18:57:24]process_action close_receipt done [18:57:24]requested_data is exist [18:57:24]produce_requested_data [18:57:24]requested_item fm.sn is exist - process it [18:57:24]wFMCommunicate request_size=4 [18:57:24]MH_SAM_APDU [18:57:24]CAPDU: 80 11 00 00 [18:57:24]Write to MH i2c: E2 08 00 D1 04 80 11 00 00 00 00 00 00 4F [18:57:24]Write i2c OK [18:57:24]MH_I2C_Read... [18:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 17 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 17 00 D1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [18:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:57:24]wFMCommunicate OK [18:57:24]requested_item fd.num is exist - process it [18:57:24]SAM_PROTO_GetFieldsCounters [18:57:24]wFMCommunicate request_size=4 [18:57:24]MH_SAM_APDU [18:57:24]CAPDU: 80 13 00 00 [18:57:24]Write to MH i2c: E2 08 00 D2 04 80 13 00 00 00 00 00 00 52 [18:57:24]Write i2c OK [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:24]Read from MH i2c: E2 62 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 62 00 D2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 22 02 00 0E 04 04 00 C5 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 E2 [18:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 22 02 00 0E 04 04 00 C5 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:57:24]wFMCommunicate OK [18:57:24]SAM_PROTO_GetFieldsCounters done [18:57:24]requested_item shift.num is exist - process it [18:57:24]requested_item shift.opened is exist - process it [18:57:24]req_shift_opened [18:57:24]FM_GetShiftState [18:57:24]SAM_PROTO_GetShiftState [18:57:24]wFMCommunicate request_size=4 [18:57:24]MH_SAM_APDU [18:57:24]CAPDU: 80 13 01 00 [18:57:24]Write to MH i2c: E2 08 00 D3 04 80 13 01 00 00 00 00 00 54 [18:57:24]Write i2c OK [18:57:24]MH_I2C_Read... [18:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 0E 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 0E 00 D3 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E5 [18:57:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:57:24]wFMCommunicate OK [18:57:24]SAM_PROTO_GetShiftState done [18:57:24]FM_GetShiftState done [18:57:24]req_shift_opened done [18:57:24]requested_item shift.open_date is exist - process it [18:57:24]req_shift_open_date [18:57:24]req_shift_open_date done [18:57:24]produce_requested_data done [18:57:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139876,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:57:24]process_action_free close_receipt [18:57:24]json_value_free [18:57:24]json_value_free done [18:57:24]process_json_proto returns [18:57:24]Send response to host [18:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139876,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:57:24]free response buf [18:57:24]execute_script done [18:57:24]execute_script returns [18:57:24]free content buf [18:57:24]Sock 7.Close socket [18:57:24]Sock 7.Thread stoped [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:06]accept exits with 10 [18:59:06]New connection [18:59:06]New thread 3066940772 created [18:59:06]Thread 3066797412 joined [18:59:06]Waiting for new connection... [18:59:06] Sock 10.Parse request [18:59:06]Sock 10.Check first char [18:59:06]Sock 10.First char is OK [18:59:06]request: POST /json_proto HTTP/1.0 [18:59:06]Method: POST [18:59:06]URL: /json_proto [18:59:06]Method is POST - this is cgi request [18:59:06]url: /json_proto [18:59:06]query_string will be loaded in cgi processing [18:59:06]execute_cgi json_proto POST (null) [18:59:06]execute_cgi path=json_proto method=POST [18:59:06]POST find Content-Length [18:59:06]Host: 172.17.45.67:8080 [18:59:06]Content-Length: 677 [18:59:06]Content-Type: application/json [18:59:06] [18:59:06]POST finish read [18:59:06]Found Content-Length = 677 [18:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:06]execute_script... [18:59:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:06]POST & json_proto [18:59:06]process_json_proto [18:59:06]json parsed OK: [18:59:06]protocol is kg_v1.0 [18:59:06]action value=close_receipt [18:59:06]process_action close_receipt [18:59:06]cmd_close_receipt [18:59:06]MH_GetDate [18:59:06]Write to MH i2c: F0 00 00 D4 04 C7 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: F0 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: F0 09 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: F0 09 00 D4 04 00 7B E7 C4 66 5F 7F 2B 66 CB [18:59:06]GetLastDocTimeStamp 1724180241 [18:59:06]current date 1724180347 [18:59:06]FM_GetShiftState [18:59:06]SAM_PROTO_GetShiftState [18:59:06]wFMCommunicate request_size=4 [18:59:06]MH_SAM_APDU [18:59:06]CAPDU: 80 13 01 00 [18:59:06]Write to MH i2c: E2 08 00 D5 04 80 13 01 00 00 00 00 00 56 [18:59:06]Write i2c OK [18:59:06]MH_I2C_Read... [18:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:06]Read from MH i2c: E2 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0E 00 [18:59:06]MH_I2C_Read... [18:59:06]Read from MH i2c: E2 0E 00 D5 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E7 [18:59:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:59:06]wFMCommunicate OK [18:59:06]SAM_PROTO_GetShiftState done [18:59:06]FM_GetShiftState done [18:59:06]opened in 1724113785 [18:59:06]opened+sec_in_day 1724200185 [18:59:06]quantity*price = 40002 [18:59:06]sum+1 = 40003 [18:59:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 349 20.08.2024 18:59 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139877 ФПД: 216670133022416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139877&fm=216670133022416&tin=02508201610067®Number=0000000000092569&sum=40000 [18:59:07]StoreToDocumentArchive [18:59:07]shift 453 fd 139877 [18:59:07]save to /storage/0453/doc_00139877 [18:59:07]save last doc name /storage/0453/doc_00139877 to /storage/kkm_last_doc_name [18:59:07]save OK [18:59:07]Clear old archive folders... [18:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:07]tlvbuf is 003DDB90 [18:59:07]SAM_PROTO_ClearQueue [18:59:07]wFMCommunicate request_size=4 [18:59:07]MH_SAM_APDU [18:59:07]CAPDU: 80 09 00 00 [18:59:07]Write to MH i2c: E2 08 00 E2 04 80 09 00 00 00 00 00 00 58 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:07]Read from MH i2c: E2 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [18:59:07]RAPDU: 90 00 [18:59:07]wFMCommunicate OK [18:59:07]SAM_PROTO_ClearQueue done [18:59:07]KKMCreateOFDPacket [18:59:07]OFDProtocolAddRootSTLVToBuf [18:59:07]FM_MakeSignedData [18:59:07]FM_MakeSignedData [18:59:07]SAM_PROTO_SignData [18:59:07]wFMCommunicate request_size=4 [18:59:07]MH_SAM_APDU [18:59:07]CAPDU: 80 0D 01 02 [18:59:07]Write to MH i2c: E2 08 00 E3 04 80 0D 01 02 00 00 00 00 60 [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:07]Read from MH i2c: E2 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [18:59:07]RAPDU: 90 00 [18:59:07]wFMCommunicate OK [18:59:07]wFMCommunicate request_size=255 [18:59:07]MH_SAM_APDU [18:59:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 7B E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 22 02 00 35 04 06 00 C5 [18:59:07]Write to MH i2c: E2 02 01 E4 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 7B E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 22 02 00 35 04 06 00 C5 00 00 CC [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:07]Read from MH i2c: E2 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 [18:59:07]MH_I2C_Read... [18:59:07]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [18:59:07]RAPDU: 90 00 [18:59:07]wFMCommunicate OK [18:59:07]wFMCommunicate request_size=10 [18:59:07]MH_SAM_APDU [18:59:07]CAPDU: 80 0D 02 02 05 0F 72 4F EE D0 [18:59:07]Write to MH i2c: E2 0D 00 E5 04 80 0D 02 02 05 00 0F 72 4F EE D0 00 00 FB [18:59:07]Write i2c OK [18:59:07]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 03 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 03 00 E5 04 00 90 00 5D [18:59:08]RAPDU: 90 00 [18:59:08]wFMCommunicate OK [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 0D 03 02 [18:59:08]Write to MH i2c: E2 08 00 E6 04 80 0D 03 02 00 00 00 00 65 [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 0B 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 0B 00 E6 04 00 37 81 08 CA 30 D8 33 A3 90 00 CE [18:59:08]RAPDU: 37 81 08 CA 30 D8 33 A3 90 00 [18:59:08]wFMCommunicate OK [18:59:08]SAM_PROTO_SignData done [18:59:08]FM_MakeSignedData done [18:59:08]CreateOFDProtocolMessage [18:59:08]wFMCommunicate request_size=4 [18:59:08]MH_SAM_APDU [18:59:08]CAPDU: 80 11 00 00 [18:59:08]Write to MH i2c: E2 08 00 E7 04 80 11 00 00 00 00 00 00 65 [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:08]Read from MH i2c: E2 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 17 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: E2 17 00 E7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BC [18:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:59:08]wFMCommunicate OK [18:59:08]CreateOFDProtocolMessage done [18:59:08]OFDSenderStorePacket 139877 [18:59:08]StoreOFDPacket docnum=139877 [18:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8A 44 07 01 78 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 7B E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 22 02 00 35 04 06 00 C5 0F 72 4F EE D0 37 81 08 CA 30 D8 33 A3 [18:59:08]CheckFolder [18:59:08]dirname=/storage/ofd_packets [18:59:08]CheckFolder done [18:59:08]ProducePacketName [18:59:08]name=ofd_packets/00139877 [18:59:08]NVStorageSaveData ofd_packets/00139877 [18:59:08]File name is /storage/ofd_packets/00139877 [18:59:08]Write 301 bytes [18:59:08]NVStorageSaveData done [18:59:08]OFDSenderStorePacket done [18:59:08]KKMCreateOFDPacket done [18:59:08]NVStorageSaveData kkm_last_timestamp [18:59:08]File name is /storage/kkm_last_timestamp [18:59:08]Write 4 bytes [18:59:08]NVStorageSaveData done [18:59:08]ExternCall_PrintAddStr [18:59:08]wPrintStart [18:59:08]Write to MH i2c: 01 00 00 E8 04 EC [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: 01 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: 01 07 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 FF 0F 01 [18:59:08]RasterBufferAndPrint [18:59:08]line Счет N : (1)593728 [18:59:08]line ИНН: 02508201610067 [18:59:08]line Контрольно-Кассовый Чек [18:59:08]line ПРОДАЖА [18:59:08]line ТРК (МРК, ГНК) : 32 [18:59:08]line Товар: 2710124130 [18:59:08]line Аи-92-К-5 [18:59:08]line 5.900 * 67.80 [18:59:08]line = 400.02 [18:59:08]line НДС 12% НСП 1% [18:59:08]line > о реализуемом товаре [18:59:08]line ОКРУГЛЕНИЕ: -0.02 [18:59:08]line ИТОГО: 400.00 [18:59:08]line Внесено: 400.00 [18:59:08]line СДАЧА: 0.00 [18:59:08]line НСП 1% : 3.54 [18:59:08]line НДС 12% : 42.48 [18:59:08]line Наличными: 400.00 [18:59:08]line Безнал.: 0.00 [18:59:08]line Место: АЗС № 136 "Партнер Нефть" [18:59:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:59:08]line СНО: Общий режим [18:59:08]line Чек 349 20.08.2024 18:59 [18:59:08]line Смена: 453 ФФД: 1.0 [18:59:08]line ЗНМ: 0300000067 [18:59:08]line РНМ: 0000000000092569 [18:59:08]line Версия ККМ: 001 [18:59:08]line ФМ: 0000000000871776 [18:59:08]line ФД: 139877 [18:59:08]line ФПД: 216670133022416 [18:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T185907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139877&fm=216670133022416&tin=02508201610067®Number=0000000000092569&sum=40000 [18:59:08]written 0, free lines is 4095 [18:59:08]OFD Sender: Processing packet 139877 [packets to send 137, broken 136] [18:59:08]ProducePacketName [18:59:08]name=ofd_packets/00139877 [18:59:08]OFD Sender: To server: pG, [18:59:08]CommunicateWithHost lk.salyk.kg:30040 [18:59:08]ConnectInit lk.salyk.kg [18:59:08]Connected sock=9 [18:59:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8A 44 07 01 78 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 7B E7 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 22 02 00 35 04 06 00 C5 0F 72 4F EE D0 37 81 08 CA 30 D8 33 A3 [18:59:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 68 7B 47 00 5B A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 22 02 00 F4 03 04 00 0D 8E C4 66 B6 04 01 00 00 DF A6 79 67 75 93 AD 4F [18:59:08]CommunicateWithHost err = 0 [18:59:08]CheckOFDResponse [18:59:08]1017 (14) - 77093643461234 [18:59:08]1041 (16) - 0000000000871776 [18:59:08]1040 (4) - 139877 [18:59:08]1012 (4) - 20.08.2024 12:37 [18:59:08]1206 (1) - 0 [18:59:08]OFD Sender: Remove packet 139877 [18:59:08]ProducePacketName [18:59:08]name=ofd_packets/00139877 [18:59:08]NVStorageDeleteData [18:59:08]Write to MH i2c: 01 00 00 13 05 18 [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: 01 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: 01 07 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 D4 0C FF [18:59:08]RasterBufferAndPrint [18:59:08]line [18:59:08]line [18:59:08]line [18:59:08]line [18:59:08]line [18:59:08]written 0, free lines is 3288 [18:59:08]MH_Cut [18:59:08]Write to MH i2c: D1 01 00 1A 05 01 F1 [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: D1 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: D1 01 00 [18:59:08]MH_I2C_Read... [18:59:08]Read from MH i2c: D1 01 00 1A 05 00 F0 [18:59:08]Write to MH i2c: 01 00 00 1B 05 20 [18:59:08]Write i2c OK [18:59:08]MH_I2C_Read... [18:59:09]OFD Sender: No OFD packet to send [18:59:09]*** Cut start [18:59:09]*** Partial cut [18:59:09]*** CUTSNS_PIN = 1 [18:59:09]*** CUTSNS_PIN = 0 [18:59:09]*** Brake cut motor [18:59:10]Read from MH i2c: 01 [18:59:10]MH_I2C_Read... [18:59:10]*** Stop cut motor [18:59:10]*** Cut end [18:59:10]Read from MH i2c: 01 07 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [18:59:10]process_action close_receipt done [18:59:10]requested_data is exist [18:59:10]produce_requested_data [18:59:10]requested_item fm.sn is exist - process it [18:59:10]wFMCommunicate request_size=4 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 11 00 00 [18:59:10]Write to MH i2c: E2 08 00 1C 05 80 11 00 00 00 00 00 00 9B [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 17 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 17 00 1C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [18:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:59:10]wFMCommunicate OK [18:59:10]requested_item fd.num is exist - process it [18:59:10]SAM_PROTO_GetFieldsCounters [18:59:10]wFMCommunicate request_size=4 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 13 00 00 [18:59:10]Write to MH i2c: E2 08 00 1D 05 80 13 00 00 00 00 00 00 9E [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 62 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 62 00 1D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 22 02 00 0E 04 04 00 C5 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 32 [18:59:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 22 02 00 0E 04 04 00 C5 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:59:10]wFMCommunicate OK [18:59:10]SAM_PROTO_GetFieldsCounters done [18:59:10]requested_item shift.num is exist - process it [18:59:10]requested_item shift.opened is exist - process it [18:59:10]req_shift_opened [18:59:10]FM_GetShiftState [18:59:10]SAM_PROTO_GetShiftState [18:59:10]wFMCommunicate request_size=4 [18:59:10]MH_SAM_APDU [18:59:10]CAPDU: 80 13 01 00 [18:59:10]Write to MH i2c: E2 08 00 1E 05 80 13 01 00 00 00 00 00 A0 [18:59:10]Write i2c OK [18:59:10]MH_I2C_Read... [18:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:10]Read from MH i2c: E2 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 0E 00 [18:59:10]MH_I2C_Read... [18:59:10]Read from MH i2c: E2 0E 00 1E 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 31 [18:59:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [18:59:10]wFMCommunicate OK [18:59:10]SAM_PROTO_GetShiftState done [18:59:10]FM_GetShiftState done [18:59:10]req_shift_opened done [18:59:10]requested_item shift.open_date is exist - process it [18:59:10]req_shift_open_date [18:59:10]req_shift_open_date done [18:59:10]produce_requested_data done [18:59:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139877,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [18:59:10]process_action_free close_receipt [18:59:10]json_value_free [18:59:10]json_value_free done [18:59:10]process_json_proto returns [18:59:10]Send response to host [18:59:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139877,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [18:59:10]free response buf [18:59:10]execute_script done [18:59:10]execute_script returns [18:59:10]free content buf [18:59:10]Sock 10.Close socket [18:59:10]Sock 10.Thread stoped [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:06]accept exits with 7 [19:04:06]New connection [19:04:06]New thread 3066797412 created [19:04:06]Thread 3066940772 joined [19:04:06]Waiting for new connection... [19:04:06] Sock 7.Parse request [19:04:06]Sock 7.Check first char [19:04:06]Sock 7.First char is OK [19:04:06]request: POST /json_proto HTTP/1.0 [19:04:06]Method: POST [19:04:06]URL: /json_proto [19:04:06]Method is POST - this is cgi request [19:04:06]url: /json_proto [19:04:06]query_string will be loaded in cgi processing [19:04:06]execute_cgi json_proto POST (null) [19:04:06]execute_cgi path=json_proto method=POST [19:04:06]POST find Content-Length [19:04:06]Host: 172.17.45.67:8080 [19:04:06]Content-Length: 677 [19:04:06]Content-Type: application/json [19:04:06] [19:04:06]POST finish read [19:04:06]Found Content-Length = 677 [19:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:06]execute_script... [19: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)593729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:06]POST & json_proto [19:04:06]process_json_proto [19:04:06]json parsed OK: [19:04:06]protocol is kg_v1.0 [19:04:06]action value=close_receipt [19:04:06]process_action close_receipt [19:04:06]cmd_close_receipt [19:04:06]MH_GetDate [19:04:06]Write to MH i2c: F0 00 00 1F 05 13 [19:04:06]Write i2c OK [19:04:06]MH_I2C_Read... [19:04:06]Read from MH i2c: F0 [19:04:06]MH_I2C_Read... [19:04:06]Read from MH i2c: F0 09 00 [19:04:06]MH_I2C_Read... [19:04:06]Read from MH i2c: F0 09 00 1F 05 00 A6 E8 C4 66 5F 7F 2B 66 43 [19:04:06]GetLastDocTimeStamp 1724180347 [19:04:06]current date 1724180646 [19:04:06]FM_GetShiftState [19:04:06]SAM_PROTO_GetShiftState [19:04:06]wFMCommunicate request_size=4 [19:04:06]MH_SAM_APDU [19:04:06]CAPDU: 80 13 01 00 [19:04:06]Write to MH i2c: E2 08 00 20 05 80 13 01 00 00 00 00 00 A2 [19:04:06]Write i2c OK [19:04:06]MH_I2C_Read... [19:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:06]Read from MH i2c: E2 [19:04:06]MH_I2C_Read... [19:04:06]Read from MH i2c: E2 0E 00 [19:04:06]MH_I2C_Read... [19:04:06]Read from MH i2c: E2 0E 00 20 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 33 [19:04:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:04:06]wFMCommunicate OK [19:04:06]SAM_PROTO_GetShiftState done [19:04:06]FM_GetShiftState done [19:04:06]opened in 1724113785 [19:04:06]opened+sec_in_day 1724200185 [19:04:06]quantity*price = 30035 [19:04:06]sum+1 = 30036 [19:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 350 20.08.2024 19:04 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139878 ФПД: 218807544612434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T190406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139878&fm=218807544612434&tin=02508201610067®Number=0000000000092569&sum=30000 [19:04:07]StoreToDocumentArchive [19:04:07]shift 453 fd 139878 [19:04:07]save to /storage/0453/doc_00139878 [19:04:07]save last doc name /storage/0453/doc_00139878 to /storage/kkm_last_doc_name [19:04:07]save OK [19:04:07]Clear old archive folders... [19:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:07]tlvbuf is 003E05D0 [19:04:07]SAM_PROTO_ClearQueue [19:04:07]wFMCommunicate request_size=4 [19:04:07]MH_SAM_APDU [19:04:07]CAPDU: 80 09 00 00 [19:04:07]Write to MH i2c: E2 08 00 2D 05 80 09 00 00 00 00 00 00 A4 [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:07]Read from MH i2c: E2 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 03 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [19:04:07]RAPDU: 90 00 [19:04:07]wFMCommunicate OK [19:04:07]SAM_PROTO_ClearQueue done [19:04:07]KKMCreateOFDPacket [19:04:07]OFDProtocolAddRootSTLVToBuf [19:04:07]FM_MakeSignedData [19:04:07]FM_MakeSignedData [19:04:07]SAM_PROTO_SignData [19:04:07]wFMCommunicate request_size=4 [19:04:07]MH_SAM_APDU [19:04:07]CAPDU: 80 0D 01 02 [19:04:07]Write to MH i2c: E2 08 00 2E 05 80 0D 01 02 00 00 00 00 AC [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:07]Read from MH i2c: E2 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 03 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [19:04:07]RAPDU: 90 00 [19:04:07]wFMCommunicate OK [19:04:07]wFMCommunicate request_size=255 [19:04:07]MH_SAM_APDU [19:04:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 A6 E8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 22 02 00 35 04 06 00 C7 [19:04:07]Write to MH i2c: E2 02 01 2F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 A6 E8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 22 02 00 35 04 06 00 C7 00 00 82 [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:07]Read from MH i2c: E2 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 03 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 03 00 2F 05 00 90 00 A8 [19:04:07]RAPDU: 90 00 [19:04:07]wFMCommunicate OK [19:04:07]wFMCommunicate request_size=10 [19:04:07]MH_SAM_APDU [19:04:07]CAPDU: 80 0D 02 02 05 01 19 F8 86 52 [19:04:07]Write to MH i2c: E2 0D 00 30 05 80 0D 02 02 05 00 01 19 F8 86 52 00 00 A3 [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:07]Read from MH i2c: E2 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 03 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 03 00 30 05 00 90 00 A9 [19:04:07]RAPDU: 90 00 [19:04:07]wFMCommunicate OK [19:04:07]wFMCommunicate request_size=4 [19:04:07]MH_SAM_APDU [19:04:07]CAPDU: 80 0D 03 02 [19:04:07]Write to MH i2c: E2 08 00 31 05 80 0D 03 02 00 00 00 00 B1 [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:07]Read from MH i2c: E2 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 0B 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 0B 00 31 05 00 51 E1 9F 2B 83 82 55 7B 90 00 83 [19:04:07]RAPDU: 51 E1 9F 2B 83 82 55 7B 90 00 [19:04:07]wFMCommunicate OK [19:04:07]SAM_PROTO_SignData done [19:04:07]FM_MakeSignedData done [19:04:07]CreateOFDProtocolMessage [19:04:07]wFMCommunicate request_size=4 [19:04:07]MH_SAM_APDU [19:04:07]CAPDU: 80 11 00 00 [19:04:07]Write to MH i2c: E2 08 00 32 05 80 11 00 00 00 00 00 00 B1 [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:07]Read from MH i2c: E2 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 17 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: E2 17 00 32 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 08 [19:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:04:07]wFMCommunicate OK [19:04:07]CreateOFDProtocolMessage done [19:04:07]OFDSenderStorePacket 139878 [19:04:07]StoreOFDPacket docnum=139878 [19:04:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 00 02 07 01 29 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 A6 E8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 22 02 00 35 04 06 00 C7 01 19 F8 86 52 51 E1 9F 2B 83 82 55 7B [19:04:07]CheckFolder [19:04:07]dirname=/storage/ofd_packets [19:04:07]CheckFolder done [19:04:07]ProducePacketName [19:04:07]name=ofd_packets/00139878 [19:04:07]NVStorageSaveData ofd_packets/00139878 [19:04:07]File name is /storage/ofd_packets/00139878 [19:04:07]Write 301 bytes [19:04:07]NVStorageSaveData done [19:04:07]OFDSenderStorePacket done [19:04:07]KKMCreateOFDPacket done [19:04:07]NVStorageSaveData kkm_last_timestamp [19:04:07]File name is /storage/kkm_last_timestamp [19:04:07]Write 4 bytes [19:04:07]NVStorageSaveData done [19:04:07]ExternCall_PrintAddStr [19:04:07]wPrintStart [19:04:07]Write to MH i2c: 01 00 00 33 05 38 [19:04:07]Write i2c OK [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: 01 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: 01 07 00 [19:04:07]MH_I2C_Read... [19:04:07]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 FF 0F 4D [19:04:07]RasterBufferAndPrint [19:04:07]line Счет N : (1)593729 [19:04:07]line ИНН: 02508201610067 [19:04:07]line Контрольно-Кассовый Чек [19:04:07]line ПРОДАЖА [19:04:07]line ТРК (МРК, ГНК) : 52 [19:04:07]line Товар: 2710124130 [19:04:07]line Аи-92-К-5 [19:04:07]line 4.430 * 67.80 [19:04:07]line = 300.35 [19:04:07]line НДС 12% НСП 1% [19:04:07]line > о реализуемом товаре [19:04:07]line ОКРУГЛЕНИЕ: -0.35 [19:04:07]line ИТОГО: 300.00 [19:04:07]line Внесено: 300.00 [19:04:07]line СДАЧА: 0.00 [19:04:07]line НСП 1% : 2.66 [19:04:07]line НДС 12% : 31.90 [19:04:07]line Наличными: 300.00 [19:04:07]line Безнал.: 0.00 [19:04:07]line Место: АЗС № 136 "Партнер Нефть" [19:04:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:04:07]line СНО: Общий режим [19:04:07]line Чек 350 20.08.2024 19:04 [19:04:07]line Смена: 453 ФФД: 1.0 [19:04:07]line ЗНМ: 0300000067 [19:04:07]line РНМ: 0000000000092569 [19:04:07]line Версия ККМ: 001 [19:04:07]line ФМ: 0000000000871776 [19:04:07]line ФД: 139878 [19:04:07]line ФПД: 218807544612434 [19:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T190406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139878&fm=218807544612434&tin=02508201610067®Number=0000000000092569&sum=30000 [19:04:08]OFD Sender: Processing packet 139878 [packets to send 137, broken 136] [19:04:08]ProducePacketName [19:04:08]name=ofd_packets/00139878 [19:04:08]OFD Sender: To server: pG, [19:04:08]CommunicateWithHost lk.salyk.kg:30040 [19:04:08]ConnectInit lk.salyk.kg [19:04:08]written 0, free lines is 4095 [19:04:08]Connected sock=11 [19:04:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 00 02 07 01 29 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 A6 E8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 22 02 00 35 04 06 00 C7 01 19 F8 86 52 51 E1 9F 2B 83 82 55 7B [19:04:08]Write to MH i2c: 01 00 00 5E 05 63 [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 07 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 D3 0C 49 [19:04:08]RasterBufferAndPrint [19:04:08]line [19:04:08]line [19:04:08]line [19:04:08]line [19:04:08]line [19:04:08]written 0, free lines is 3287 [19:04:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 14 E3 47 00 D0 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 22 02 00 F4 03 04 00 39 8F C4 66 B6 04 01 00 00 E2 21 43 5A 9A 61 FC FB [19:04:08]CommunicateWithHost err = 0 [19:04:08]CheckOFDResponse [19:04:08]1017 (14) - 77093643461234 [19:04:08]1041 (16) - 0000000000871776 [19:04:08]1040 (4) - 139878 [19:04:08]1012 (4) - 20.08.2024 12:42 [19:04:08]1206 (1) - 0 [19:04:08]OFD Sender: Remove packet 139878 [19:04:08]ProducePacketName [19:04:08]name=ofd_packets/00139878 [19:04:08]NVStorageDeleteData [19:04:08]MH_Cut [19:04:08]Write to MH i2c: D1 01 00 65 05 01 3C [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: D1 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: D1 01 00 [19:04:08]MH_I2C_Read... [19:04:08]Read from MH i2c: D1 01 00 65 05 00 3B [19:04:08]Write to MH i2c: 01 00 00 66 05 6B [19:04:08]Write i2c OK [19:04:08]MH_I2C_Read... [19:04:09]OFD Sender: No OFD packet to send [19:04:09]*** Cut start [19:04:09]*** Partial cut [19:04:09]*** CUTSNS_PIN = 1 [19:04:09]*** CUTSNS_PIN = 0 [19:04:09]*** Brake cut motor [19:04:10]Read from MH i2c: 01 [19:04:10]MH_I2C_Read... [19:04:10]*** Stop cut motor [19:04:10]*** Cut end [19:04:10]Read from MH i2c: 01 07 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: 01 07 00 66 05 00 00 00 00 00 FF 0F 80 [19:04:10]process_action close_receipt done [19:04:10]requested_data is exist [19:04:10]produce_requested_data [19:04:10]requested_item fm.sn is exist - process it [19:04:10]wFMCommunicate request_size=4 [19:04:10]MH_SAM_APDU [19:04:10]CAPDU: 80 11 00 00 [19:04:10]Write to MH i2c: E2 08 00 67 05 80 11 00 00 00 00 00 00 E6 [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:10]Read from MH i2c: E2 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 17 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 17 00 67 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3D [19:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:04:10]wFMCommunicate OK [19:04:10]requested_item fd.num is exist - process it [19:04:10]SAM_PROTO_GetFieldsCounters [19:04:10]wFMCommunicate request_size=4 [19:04:10]MH_SAM_APDU [19:04:10]CAPDU: 80 13 00 00 [19:04:10]Write to MH i2c: E2 08 00 68 05 80 13 00 00 00 00 00 00 E9 [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:10]Read from MH i2c: E2 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 62 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 62 00 68 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 22 02 00 0E 04 04 00 C5 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 81 [19:04:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 22 02 00 0E 04 04 00 C5 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 [19:04:10]wFMCommunicate OK [19:04:10]SAM_PROTO_GetFieldsCounters done [19:04:10]requested_item shift.num is exist - process it [19:04:10]requested_item shift.opened is exist - process it [19:04:10]req_shift_opened [19:04:10]FM_GetShiftState [19:04:10]SAM_PROTO_GetShiftState [19:04:10]wFMCommunicate request_size=4 [19:04:10]MH_SAM_APDU [19:04:10]CAPDU: 80 13 01 00 [19:04:10]Write to MH i2c: E2 08 00 69 05 80 13 01 00 00 00 00 00 EB [19:04:10]Write i2c OK [19:04:10]MH_I2C_Read... [19:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:10]Read from MH i2c: E2 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 0E 00 [19:04:10]MH_I2C_Read... [19:04:10]Read from MH i2c: E2 0E 00 69 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7C [19:04:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:04:10]wFMCommunicate OK [19:04:10]SAM_PROTO_GetShiftState done [19:04:10]FM_GetShiftState done [19:04:10]req_shift_opened done [19:04:10]requested_item shift.open_date is exist - process it [19:04:10]req_shift_open_date [19:04:10]req_shift_open_date done [19:04:10]produce_requested_data done [19:04:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139878,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:04:10]process_action_free close_receipt [19:04:10]json_value_free [19:04:10]json_value_free done [19:04:10]process_json_proto returns [19:04:10]Send response to host [19:04:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139878,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:04:10]free response buf [19:04:10]execute_script done [19:04:10]execute_script returns [19:04:10]free content buf [19:04:10]Sock 7.Close socket [19:04:10]Sock 7.Thread stoped [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]accept exits with 9 [19:10:14]New connection [19:10:14]New thread 3066940772 created [19:10:14]Thread 3066797412 joined [19:10:14]Waiting for new connection... [19:10:14] Sock 9.Parse request [19:10:14]Sock 9.Check first char [19:10:14]Sock 9.First char is OK [19:10:14]request: POST /json_proto HTTP/1.0 [19:10:14]Method: POST [19:10:14]URL: /json_proto [19:10:14]Method is POST - this is cgi request [19:10:14]url: /json_proto [19:10:14]query_string will be loaded in cgi processing [19:10:14]execute_cgi json_proto POST (null) [19:10:14]execute_cgi path=json_proto method=POST [19:10:14]POST find Content-Length [19:10:14]Host: 172.17.45.67:8080 [19:10:14]Content-Length: 677 [19:10:14]Content-Type: application/json [19:10:14] [19:10:14]POST finish read [19:10:14]Found Content-Length = 677 [19:10:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:14]execute_script... [19:10:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:14]POST & json_proto [19:10:14]process_json_proto [19:10:14]json parsed OK: [19:10:14]protocol is kg_v1.0 [19:10:14]action value=close_receipt [19:10:14]process_action close_receipt [19:10:14]cmd_close_receipt [19:10:14]MH_GetDate [19:10:14]Write to MH i2c: F0 00 00 6A 05 5E [19:10:14]Write i2c OK [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: F0 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: F0 09 00 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: F0 09 00 6A 05 00 16 EA C4 66 5F 7F 2B 66 00 [19:10:14]GetLastDocTimeStamp 1724180646 [19:10:14]current date 1724181014 [19:10:14]FM_GetShiftState [19:10:14]SAM_PROTO_GetShiftState [19:10:14]wFMCommunicate request_size=4 [19:10:14]MH_SAM_APDU [19:10:14]CAPDU: 80 13 01 00 [19:10:14]Write to MH i2c: E2 08 00 6B 05 80 13 01 00 00 00 00 00 ED [19:10:14]Write i2c OK [19:10:14]MH_I2C_Read... [19:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:14]Read from MH i2c: E2 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: E2 0E 00 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: E2 0E 00 6B 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7E [19:10:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:10:14]wFMCommunicate OK [19:10:14]SAM_PROTO_GetShiftState done [19:10:14]FM_GetShiftState done [19:10:14]opened in 1724113785 [19:10:14]opened+sec_in_day 1724200185 [19:10:14]quantity*price = 40002 [19:10:14]sum+1 = 40003 [19:10:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 351 20.08.2024 19:10 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139879 ФПД: 185937179656299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139879&fm=185937179656299&tin=02508201610067®Number=0000000000092569&sum=40000 [19:10:15]StoreToDocumentArchive [19:10:15]shift 453 fd 139879 [19:10:15]save to /storage/0453/doc_00139879 [19:10:15]save last doc name /storage/0453/doc_00139879 to /storage/kkm_last_doc_name [19:10:15]save OK [19:10:15]Clear old archive folders... [19:10:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:15]tlvbuf is 003ECD90 [19:10:15]SAM_PROTO_ClearQueue [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 09 00 00 [19:10:15]Write to MH i2c: E2 08 00 78 05 80 09 00 00 00 00 00 00 EF [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [19:10:15]RAPDU: 90 00 [19:10:15]wFMCommunicate OK [19:10:15]SAM_PROTO_ClearQueue done [19:10:15]KKMCreateOFDPacket [19:10:15]OFDProtocolAddRootSTLVToBuf [19:10:15]FM_MakeSignedData [19:10:15]FM_MakeSignedData [19:10:15]SAM_PROTO_SignData [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 0D 01 02 [19:10:15]Write to MH i2c: E2 08 00 79 05 80 0D 01 02 00 00 00 00 F7 [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 79 05 00 90 00 F2 [19:10:15]RAPDU: 90 00 [19:10:15]wFMCommunicate OK [19:10:15]wFMCommunicate request_size=255 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 16 EA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 22 02 00 35 04 06 00 A9 [19:10:15]Write to MH i2c: E2 02 01 7A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 16 EA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 22 02 00 35 04 06 00 A9 00 00 E9 [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 7A 05 00 90 00 F3 [19:10:15]RAPDU: 90 00 [19:10:15]wFMCommunicate OK [19:10:15]wFMCommunicate request_size=10 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 0D 02 02 05 1B DF 8B 40 6B [19:10:15]Write to MH i2c: E2 0D 00 7B 05 80 0D 02 02 05 00 1B DF 8B 40 6B 00 00 34 [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 03 00 7B 05 00 90 00 F4 [19:10:15]RAPDU: 90 00 [19:10:15]wFMCommunicate OK [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 0D 03 02 [19:10:15]Write to MH i2c: E2 08 00 7C 05 80 0D 03 02 00 00 00 00 FC [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 0B 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 0B 00 7C 05 00 D7 3B B1 D1 75 E6 67 F8 90 00 4B [19:10:15]RAPDU: D7 3B B1 D1 75 E6 67 F8 90 00 [19:10:15]wFMCommunicate OK [19:10:15]SAM_PROTO_SignData done [19:10:15]FM_MakeSignedData done [19:10:15]CreateOFDProtocolMessage [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 11 00 00 [19:10:15]Write to MH i2c: E2 08 00 7D 05 80 11 00 00 00 00 00 00 FC [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 17 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 17 00 7D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [19:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:10:15]wFMCommunicate OK [19:10:15]CreateOFDProtocolMessage done [19:10:15]OFDSenderStorePacket 139879 [19:10:15]StoreOFDPacket docnum=139879 [19:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2A 0C 07 01 96 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 16 EA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 22 02 00 35 04 06 00 A9 1B DF 8B 40 6B D7 3B B1 D1 75 E6 67 F8 [19:10:15]CheckFolder [19:10:15]dirname=/storage/ofd_packets [19:10:15]CheckFolder done [19:10:15]ProducePacketName [19:10:15]name=ofd_packets/00139879 [19:10:15]NVStorageSaveData ofd_packets/00139879 [19:10:15]File name is /storage/ofd_packets/00139879 [19:10:15]Write 301 bytes [19:10:15]NVStorageSaveData done [19:10:15]OFDSenderStorePacket done [19:10:15]KKMCreateOFDPacket done [19:10:15]NVStorageSaveData kkm_last_timestamp [19:10:15]File name is /storage/kkm_last_timestamp [19:10:15]Write 4 bytes [19:10:15]NVStorageSaveData done [19:10:15]ExternCall_PrintAddStr [19:10:15]wPrintStart [19:10:15]Write to MH i2c: 01 00 00 7E 05 83 [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: 01 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: 01 07 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: 01 07 00 7E 05 00 00 00 00 00 FF 0F 98 [19:10:15]RasterBufferAndPrint [19:10:15]line Счет N : (1)593731 [19:10:15]line ИНН: 02508201610067 [19:10:15]line Контрольно-Кассовый Чек [19:10:15]line ПРОДАЖА [19:10:15]line ТРК (МРК, ГНК) : 62 [19:10:15]line Товар: 2710124130 [19:10:15]line Аи-92-К-5 [19:10:15]line 5.900 * 67.80 [19:10:15]line = 400.02 [19:10:15]line НДС 12% НСП 1% [19:10:15]line > о реализуемом товаре [19:10:15]line ОКРУГЛЕНИЕ: -0.02 [19:10:15]line ИТОГО: 400.00 [19:10:15]line Внесено: 400.00 [19:10:15]line СДАЧА: 0.00 [19:10:15]line НСП 1% : 3.54 [19:10:15]line НДС 12% : 42.48 [19:10:15]line Наличными: 400.00 [19:10:15]line Безнал.: 0.00 [19:10:15]line Место: АЗС № 136 "Партнер Нефть" [19:10:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:10:15]line СНО: Общий режим [19:10:15]line Чек 351 20.08.2024 19:10 [19:10:15]line Смена: 453 ФФД: 1.0 [19:10:15]line ЗНМ: 0300000067 [19:10:15]line РНМ: 0000000000092569 [19:10:15]line Версия ККМ: 001 [19:10:15]line ФМ: 0000000000871776 [19:10:15]line ФД: 139879 [19:10:15]line ФПД: 185937179656299 [19:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139879&fm=185937179656299&tin=02508201610067®Number=0000000000092569&sum=40000 [19:10:16]written 0, free lines is 4095 [19:10:16]OFD Sender: Processing packet 139879 [packets to send 137, broken 136] [19:10:16]ProducePacketName [19:10:16]name=ofd_packets/00139879 [19:10:16]OFD Sender: To server: pG, [19:10:16]CommunicateWithHost lk.salyk.kg:30040 [19:10:16]ConnectInit lk.salyk.kg [19:10:16]Connected sock=10 [19:10:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2A 0C 07 01 96 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 16 EA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 22 02 00 35 04 06 00 A9 1B DF 8B 40 6B D7 3B B1 D1 75 E6 67 F8 [19:10:16]Write to MH i2c: 01 00 00 A9 05 AE [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: 01 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: 01 07 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 D9 0C 9A [19:10:16]RasterBufferAndPrint [19:10:16]line [19:10:16]line [19:10:16]line [19:10:16]line [19:10:16]line [19:10:16]written 0, free lines is 3296 [19:10:16]MH_Cut [19:10:16]Write to MH i2c: D1 01 00 B0 05 01 87 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: D1 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: D1 01 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: D1 01 00 B0 05 00 86 [19:10:16]Write to MH i2c: 01 00 00 B1 05 B6 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F4 E7 47 00 6E 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 22 02 00 F4 03 04 00 A9 90 C4 66 B6 04 01 00 00 2B A8 C3 AC C5 AF BD CB [19:10:16]CommunicateWithHost err = 0 [19:10:16]CheckOFDResponse [19:10:16]1017 (14) - 77093643461234 [19:10:16]1041 (16) - 0000000000871776 [19:10:16]1040 (4) - 139879 [19:10:16]1012 (4) - 20.08.2024 12:48 [19:10:16]1206 (1) - 0 [19:10:16]OFD Sender: Remove packet 139879 [19:10:16]ProducePacketName [19:10:16]name=ofd_packets/00139879 [19:10:16]NVStorageDeleteData [19:10:17]OFD Sender: No OFD packet to send [19:10:17]*** Cut start [19:10:17]*** Partial cut [19:10:17]*** CUTSNS_PIN = 1 [19:10:17]*** CUTSNS_PIN = 0 [19:10:17]*** Brake cut motor [19:10:17]Read from MH i2c: 01 [19:10:17]MH_I2C_Read... [19:10:17]*** Stop cut motor [19:10:17]*** Cut end [19:10:17]Read from MH i2c: 01 07 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 FF 0F CB [19:10:17]process_action close_receipt done [19:10:17]requested_data is exist [19:10:17]produce_requested_data [19:10:17]requested_item fm.sn is exist - process it [19:10:17]wFMCommunicate request_size=4 [19:10:17]MH_SAM_APDU [19:10:17]CAPDU: 80 11 00 00 [19:10:17]Write to MH i2c: E2 08 00 B2 05 80 11 00 00 00 00 00 00 31 [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:17]Read from MH i2c: E2 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 17 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 17 00 B2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [19:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:10:17]wFMCommunicate OK [19:10:17]requested_item fd.num is exist - process it [19:10:17]SAM_PROTO_GetFieldsCounters [19:10:17]wFMCommunicate request_size=4 [19:10:17]MH_SAM_APDU [19:10:17]CAPDU: 80 13 00 00 [19:10:17]Write to MH i2c: E2 08 00 B3 05 80 13 00 00 00 00 00 00 34 [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 62 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 62 00 B3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 22 02 00 0E 04 04 00 C5 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 D0 [19:10:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 22 02 00 0E 04 04 00 C5 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 [19:10:18]wFMCommunicate OK [19:10:18]SAM_PROTO_GetFieldsCounters done [19:10:18]requested_item shift.num is exist - process it [19:10:18]requested_item shift.opened is exist - process it [19:10:18]req_shift_opened [19:10:18]FM_GetShiftState [19:10:18]SAM_PROTO_GetShiftState [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 13 01 00 [19:10:18]Write to MH i2c: E2 08 00 B4 05 80 13 01 00 00 00 00 00 36 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 0E 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 0E 00 B4 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C7 [19:10:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:10:18]wFMCommunicate OK [19:10:18]SAM_PROTO_GetShiftState done [19:10:18]FM_GetShiftState done [19:10:18]req_shift_opened done [19:10:18]requested_item shift.open_date is exist - process it [19:10:18]req_shift_open_date [19:10:18]req_shift_open_date done [19:10:18]produce_requested_data done [19:10:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139879,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:10:18]process_action_free close_receipt [19:10:18]json_value_free [19:10:18]json_value_free done [19:10:18]process_json_proto returns [19:10:18]Send response to host [19:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139879,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:10:18]free response buf [19:10:18]execute_script done [19:10:18]execute_script returns [19:10:18]free content buf [19:10:18]Sock 9.Close socket [19:10:18]Sock 9.Thread stoped [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:12:59]accept exits with 7 [19:12:59]New connection [19:12:59]New thread 3066797412 created [19:12:59]Thread 3066940772 joined [19:12:59]Waiting for new connection... [19:12:59] Sock 7.Parse request [19:12:59]Sock 7.Check first char [19:12:59]Sock 7.First char is OK [19:12:59]request: POST /json_proto HTTP/1.0 [19:12:59]Method: POST [19:12:59]URL: /json_proto [19:12:59]Method is POST - this is cgi request [19:12:59]url: /json_proto [19:12:59]query_string will be loaded in cgi processing [19:12:59]execute_cgi json_proto POST (null) [19:12:59]execute_cgi path=json_proto method=POST [19:12:59]POST find Content-Length [19:12:59]Host: 172.17.45.67:8080 [19:12:59]Content-Length: 682 [19:12:59]Content-Type: application/json [19:12:59] [19:12:59]POST finish read [19:12:59]Found Content-Length = 682 [19:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:59]execute_script... [19:12: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)593732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:59]POST & json_proto [19:12:59]process_json_proto [19:12:59]json parsed OK: [19:12:59]protocol is kg_v1.0 [19:12:59]action value=close_receipt [19:12:59]process_action close_receipt [19:12:59]cmd_close_receipt [19:12:59]MH_GetDate [19:12:59]Write to MH i2c: F0 00 00 B5 05 A9 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 B5 05 00 BB EA C4 66 5F 7F 2B 66 F0 [19:12:59]GetLastDocTimeStamp 1724181014 [19:12:59]current date 1724181179 [19:12:59]FM_GetShiftState [19:12:59]SAM_PROTO_GetShiftState [19:12:59]wFMCommunicate request_size=4 [19:12:59]MH_SAM_APDU [19:12:59]CAPDU: 80 13 01 00 [19:12:59]Write to MH i2c: E2 08 00 B6 05 80 13 01 00 00 00 00 00 38 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:59]Read from MH i2c: E2 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 B6 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C9 [19:12:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:12:59]wFMCommunicate OK [19:12:59]SAM_PROTO_GetShiftState done [19:12:59]FM_GetShiftState done [19:12:59]opened in 1724113785 [19:12:59]opened+sec_in_day 1724200185 [19:12:59]quantity*price = 150032 [19:12:59]sum+1 = 150033 [19:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 352 20.08.2024 19:12 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139880 ФПД: 157221813068326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191259&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139880&fm=157221813068326&tin=02508201610067®Number=0000000000092569&sum=150000 [19:13:00]StoreToDocumentArchive [19:13:00]shift 453 fd 139880 [19:13:00]save to /storage/0453/doc_00139880 [19:13:00]save last doc name /storage/0453/doc_00139880 to /storage/kkm_last_doc_name [19:13:00]save OK [19:13:00]Clear old archive folders... [19:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:00]tlvbuf is 0046A340 [19:13:00]SAM_PROTO_ClearQueue [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 09 00 00 [19:13:00]Write to MH i2c: E2 08 00 C3 05 80 09 00 00 00 00 00 00 3A [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 C3 05 00 90 00 3C [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]SAM_PROTO_ClearQueue done [19:13:00]KKMCreateOFDPacket [19:13:00]OFDProtocolAddRootSTLVToBuf [19:13:00]FM_MakeSignedData [19:13:00]FM_MakeSignedData [19:13:00]SAM_PROTO_SignData [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 01 02 [19:13:00]Write to MH i2c: E2 08 00 C4 05 80 0D 01 02 00 00 00 00 42 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 C4 05 00 90 00 3D [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=255 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 60 01 00 00 F4 03 04 00 BB EA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 22 02 00 35 04 06 00 8E [19:13:00]Write to MH i2c: E2 02 01 C5 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 60 01 00 00 F4 03 04 00 BB EA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 22 02 00 35 04 06 00 8E 00 00 4E [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 C5 05 00 90 00 3E [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=10 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 02 02 05 FE 0E 51 A2 26 [19:13:00]Write to MH i2c: E2 0D 00 C6 05 80 0D 02 02 05 00 FE 0E 51 A2 26 00 00 74 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 C6 05 00 90 00 3F [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 03 02 [19:13:00]Write to MH i2c: E2 08 00 C7 05 80 0D 03 02 00 00 00 00 47 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 0B 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 0B 00 C7 05 00 C6 C8 E6 19 EE 73 44 C7 90 00 41 [19:13:00]RAPDU: C6 C8 E6 19 EE 73 44 C7 90 00 [19:13:00]wFMCommunicate OK [19:13:00]SAM_PROTO_SignData done [19:13:00]FM_MakeSignedData done [19:13:00]CreateOFDProtocolMessage [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 11 00 00 [19:13:00]Write to MH i2c: E2 08 00 C8 05 80 11 00 00 00 00 00 00 47 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 17 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 17 00 C8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [19:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:13:00]wFMCommunicate OK [19:13:00]CreateOFDProtocolMessage done [19:13:00]OFDSenderStorePacket 139880 [19:13:00]StoreOFDPacket docnum=139880 [19:13:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 AC 07 01 9D 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 BB EA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 22 02 00 35 04 06 00 8E FE 0E 51 A2 26 C6 C8 E6 19 EE 73 44 C7 [19:13:00]CheckFolder [19:13:00]dirname=/storage/ofd_packets [19:13:00]CheckFolder done [19:13:00]ProducePacketName [19:13:00]name=ofd_packets/00139880 [19:13:00]NVStorageSaveData ofd_packets/00139880 [19:13:00]File name is /storage/ofd_packets/00139880 [19:13:00]Write 301 bytes [19:13:00]NVStorageSaveData done [19:13:00]OFDSenderStorePacket done [19:13:00]KKMCreateOFDPacket done [19:13:00]NVStorageSaveData kkm_last_timestamp [19:13:00]File name is /storage/kkm_last_timestamp [19:13:00]Write 4 bytes [19:13:00]NVStorageSaveData done [19:13:00]OFD Sender: Processing packet 139880 [packets to send 137, broken 136] [19:13:00]ProducePacketName [19:13:00]name=ofd_packets/00139880 [19:13:00]OFD Sender: To server: pG, [19:13:00]CommunicateWithHost lk.salyk.kg:30040 [19:13:00]ConnectInit lk.salyk.kg [19:13:00]ExternCall_PrintAddStr [19:13:00]wPrintStart [19:13:00]Write to MH i2c: 01 00 00 C9 05 CE [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 07 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 07 00 C9 05 00 00 00 00 00 FF 0F E3 [19:13:00]RasterBufferAndPrint [19:13:00]line Счет N : (1)593732 [19:13:00]line ИНН: 02508201610067 [19:13:00]line Контрольно-Кассовый Чек [19:13:00]line ПРОДАЖА [19:13:00]line ТРК (МРК, ГНК) : 51 [19:13:00]line Товар: 2710124500 [19:13:00]line Аи-95-К-5 [19:13:00]line 20.220 * 74.20 [19:13:00]line = 1500.32 [19:13:00]line НДС 12% НСП 1% [19:13:00]line > о реализуемом товаре [19:13:00]line ОКРУГЛЕНИЕ: -0.32 [19:13:00]line ИТОГО: 1500.00 [19:13:00]line Внесено: 1500.00 [19:13:00]line СДАЧА: 0.00 [19:13:00]line НСП 1% : 13.28 [19:13:00]line НДС 12% : 159.33 [19:13:00]line Наличными: 1500.00 [19:13:00]line Безнал.: 0.00 [19:13:00]line Место: АЗС № 136 "Партнер Нефть" [19:13:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:13:00]line СНО: Общий режим [19:13:00]line Чек 352 20.08.2024 19:12 [19:13:00]line Смена: 453 ФФД: 1.0 [19:13:00]line ЗНМ: 0300000067 [19:13:00]line РНМ: 0000000000092569 [19:13:00]line Версия ККМ: 001 [19:13:00]line ФМ: 0000000000871776 [19:13:00]line ФД: 139880 [19:13:00]line ФПД: 157221813068326 [19:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191259&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139880&fm=157221813068326&tin=02508201610067®Number=0000000000092569&sum=150000 [19:13:01]Connected sock=11 [19:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 AC 07 01 9D 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 BB EA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 22 02 00 35 04 06 00 8E FE 0E 51 A2 26 C6 C8 E6 19 EE 73 44 C7 [19:13:01]written 0, free lines is 4095 [19:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6F D5 47 00 E2 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 22 02 00 F4 03 04 00 4E 91 C4 66 B6 04 01 00 00 ED F8 E6 90 05 65 B4 4F [19:13:01]CommunicateWithHost err = 0 [19:13:01]CheckOFDResponse [19:13:01]1017 (14) - 77093643461234 [19:13:01]1041 (16) - 0000000000871776 [19:13:01]1040 (4) - 139880 [19:13:01]1012 (4) - 20.08.2024 12:51 [19:13:01]1206 (1) - 0 [19:13:01]OFD Sender: Remove packet 139880 [19:13:01]ProducePacketName [19:13:01]name=ofd_packets/00139880 [19:13:01]NVStorageDeleteData [19:13:01]Write to MH i2c: 01 00 00 F4 05 F9 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 F4 05 00 00 00 00 00 D9 0C E5 [19:13:01]RasterBufferAndPrint [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]written 0, free lines is 3296 [19:13:01]MH_Cut [19:13:01]Write to MH i2c: D1 01 00 FB 05 01 D2 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 FB 05 00 D1 [19:13:01]Write to MH i2c: 01 00 00 FC 05 01 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:02]OFD Sender: No OFD packet to send [19:13:02]*** Cut start [19:13:02]*** Partial cut [19:13:02]*** CUTSNS_PIN = 1 [19:13:02]*** CUTSNS_PIN = 0 [19:13:02]*** Brake cut motor [19:13:03]Read from MH i2c: 01 [19:13:03]MH_I2C_Read... [19:13:03]*** Stop cut motor [19:13:03]*** Cut end [19:13:03]Read from MH i2c: 01 07 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: 01 07 00 FC 05 00 00 00 00 00 FF 0F 16 [19:13:03]process_action close_receipt done [19:13:03]requested_data is exist [19:13:03]produce_requested_data [19:13:03]requested_item fm.sn is exist - process it [19:13:03]wFMCommunicate request_size=4 [19:13:03]MH_SAM_APDU [19:13:03]CAPDU: 80 11 00 00 [19:13:03]Write to MH i2c: E2 08 00 FD 05 80 11 00 00 00 00 00 00 7C [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 17 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 17 00 FD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [19:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:13:03]wFMCommunicate OK [19:13:03]requested_item fd.num is exist - process it [19:13:03]SAM_PROTO_GetFieldsCounters [19:13:03]wFMCommunicate request_size=4 [19:13:03]MH_SAM_APDU [19:13:03]CAPDU: 80 13 00 00 [19:13:03]Write to MH i2c: E2 08 00 FE 05 80 13 00 00 00 00 00 00 7F [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 62 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 62 00 FE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 22 02 00 0E 04 04 00 C5 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 1F [19:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 22 02 00 0E 04 04 00 C5 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 [19:13:03]wFMCommunicate OK [19:13:03]SAM_PROTO_GetFieldsCounters done [19:13:03]requested_item shift.num is exist - process it [19:13:03]requested_item shift.opened is exist - process it [19:13:03]req_shift_opened [19:13:03]FM_GetShiftState [19:13:03]SAM_PROTO_GetShiftState [19:13:03]wFMCommunicate request_size=4 [19:13:03]MH_SAM_APDU [19:13:03]CAPDU: 80 13 01 00 [19:13:03]Write to MH i2c: E2 08 00 FF 05 80 13 01 00 00 00 00 00 81 [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0E 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0E 00 FF 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 12 [19:13:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:13:03]wFMCommunicate OK [19:13:03]SAM_PROTO_GetShiftState done [19:13:03]FM_GetShiftState done [19:13:03]req_shift_opened done [19:13:03]requested_item shift.open_date is exist - process it [19:13:03]req_shift_open_date [19:13:03]req_shift_open_date done [19:13:03]produce_requested_data done [19:13:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139880,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:13:03]process_action_free close_receipt [19:13:03]json_value_free [19:13:03]json_value_free done [19:13:03]process_json_proto returns [19:13:03]Send response to host [19:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139880,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:13:03]free response buf [19:13:03]execute_script done [19:13:03]execute_script returns [19:13:03]free content buf [19:13:03]Sock 7.Close socket [19:13:03]Sock 7.Thread stoped [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:12]accept exits with 10 [19:15:12]New connection [19:15:12]New thread 3066940772 created [19:15:12]Thread 3066797412 joined [19:15:12]Waiting for new connection... [19:15:12] Sock 10.Parse request [19:15:12]Sock 10.Check first char [19:15:12]Sock 10.First char is OK [19:15:12]request: POST /json_proto HTTP/1.0 [19:15:12]Method: POST [19:15:12]URL: /json_proto [19:15:12]Method is POST - this is cgi request [19:15:12]url: /json_proto [19:15:12]query_string will be loaded in cgi processing [19:15:12]execute_cgi json_proto POST (null) [19:15:12]execute_cgi path=json_proto method=POST [19:15:12]POST find Content-Length [19:15:12]Host: 172.17.45.67:8080 [19:15:12]Content-Length: 658 [19:15:12]Content-Type: application/json [19:15:12] [19:15:12]POST finish read [19:15:12]Found Content-Length = 658 [19:15:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:12]execute_script... [19: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)593733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:12]POST & json_proto [19:15:12]process_json_proto [19:15:12]json parsed OK: [19:15:12]protocol is kg_v1.0 [19:15:12]action value=close_receipt [19:15:12]process_action close_receipt [19:15:12]cmd_close_receipt [19:15:12]MH_GetDate [19:15:12]Write to MH i2c: F0 00 00 00 06 F5 [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: F0 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: F0 09 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: F0 09 00 00 06 00 40 EB C4 66 5F 7F 2B 66 C2 [19:15:12]GetLastDocTimeStamp 1724181179 [19:15:12]current date 1724181312 [19:15:12]FM_GetShiftState [19:15:12]SAM_PROTO_GetShiftState [19:15:12]wFMCommunicate request_size=4 [19:15:12]MH_SAM_APDU [19:15:12]CAPDU: 80 13 01 00 [19:15:12]Write to MH i2c: E2 08 00 01 06 80 13 01 00 00 00 00 00 84 [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:12]Read from MH i2c: E2 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 0E 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 0E 00 01 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 15 [19:15:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:15:12]wFMCommunicate OK [19:15:12]SAM_PROTO_GetShiftState done [19:15:12]FM_GetShiftState done [19:15:12]opened in 1724113785 [19:15:12]opened+sec_in_day 1724200185 [19:15:12]quantity*price = 50017 [19:15:12]sum+1 = 50019 [19:15:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 353 20.08.2024 19:15 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139881 ФПД: 116537166580246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191513&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139881&fm=116537166580246&tin=02508201610067®Number=0000000000092569&sum=50000 [19:15:13]StoreToDocumentArchive [19:15:13]shift 453 fd 139881 [19:15:13]save to /storage/0453/doc_00139881 [19:15:13]save last doc name /storage/0453/doc_00139881 to /storage/kkm_last_doc_name [19:15:13]save OK [19:15:13]Clear old archive folders... [19:15:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:15:13]tlvbuf is B6F55370 [19:15:13]SAM_PROTO_ClearQueue [19:15:13]wFMCommunicate request_size=4 [19:15:13]MH_SAM_APDU [19:15:13]CAPDU: 80 09 00 00 [19:15:13]Write to MH i2c: E2 08 00 0E 06 80 09 00 00 00 00 00 00 86 [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:13]Read from MH i2c: E2 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 0E 06 00 90 00 88 [19:15:13]RAPDU: 90 00 [19:15:13]wFMCommunicate OK [19:15:13]SAM_PROTO_ClearQueue done [19:15:13]KKMCreateOFDPacket [19:15:13]OFDProtocolAddRootSTLVToBuf [19:15:13]FM_MakeSignedData [19:15:13]FM_MakeSignedData [19:15:13]SAM_PROTO_SignData [19:15:13]wFMCommunicate request_size=4 [19:15:13]MH_SAM_APDU [19:15:13]CAPDU: 80 0D 01 02 [19:15:13]Write to MH i2c: E2 08 00 0F 06 80 0D 01 02 00 00 00 00 8E [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:13]Read from MH i2c: E2 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 0F 06 00 90 00 89 [19:15:13]RAPDU: 90 00 [19:15:13]wFMCommunicate OK [19:15:13]wFMCommunicate request_size=253 [19:15:13]MH_SAM_APDU [19:15:13]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 01 00 00 F4 03 04 00 41 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 22 02 00 35 04 06 00 69 FD 6C 6A CA 16 [19:15:13]Write to MH i2c: E2 00 01 10 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 01 00 00 F4 03 04 00 41 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 22 02 00 35 04 06 00 69 FD 6C 6A CA 16 00 00 CE [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:13]Read from MH i2c: E2 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 10 06 00 90 00 8A [19:15:13]RAPDU: 90 00 [19:15:13]wFMCommunicate OK [19:15:13]wFMCommunicate request_size=4 [19:15:13]MH_SAM_APDU [19:15:13]CAPDU: 80 0D 03 02 [19:15:13]Write to MH i2c: E2 08 00 11 06 80 0D 03 02 00 00 00 00 92 [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:13]Read from MH i2c: E2 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 0B 00 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 0B 00 11 06 00 9D 55 E5 C6 55 A0 94 50 90 00 09 [19:15:13]RAPDU: 9D 55 E5 C6 55 A0 94 50 90 00 [19:15:13]wFMCommunicate OK [19:15:13]SAM_PROTO_SignData done [19:15:13]FM_MakeSignedData done [19:15:13]CreateOFDProtocolMessage [19:15:13]wFMCommunicate request_size=4 [19:15:13]MH_SAM_APDU [19:15:13]CAPDU: 80 11 00 00 [19:15:13]Write to MH i2c: E2 08 00 12 06 80 11 00 00 00 00 00 00 92 [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:13]Read from MH i2c: E2 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 17 00 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 17 00 12 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E9 [19:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:15:13]wFMCommunicate OK [19:15:13]CreateOFDProtocolMessage done [19:15:13]OFDSenderStorePacket 139881 [19:15:13]StoreOFDPacket docnum=139881 [19:15:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 EA 23 00 01 7D 4D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 01 00 00 F4 03 04 00 41 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 22 02 00 35 04 06 00 69 FD 6C 6A CA 16 9D 55 E5 C6 55 A0 94 50 [19:15:13]CheckFolder [19:15:13]dirname=/storage/ofd_packets [19:15:13]CheckFolder done [19:15:13]ProducePacketName [19:15:13]name=ofd_packets/00139881 [19:15:13]NVStorageSaveData ofd_packets/00139881 [19:15:13]File name is /storage/ofd_packets/00139881 [19:15:13]Write 294 bytes [19:15:13]NVStorageSaveData done [19:15:13]OFDSenderStorePacket done [19:15:13]KKMCreateOFDPacket done [19:15:13]NVStorageSaveData kkm_last_timestamp [19:15:13]File name is /storage/kkm_last_timestamp [19:15:13]Write 4 bytes [19:15:13]NVStorageSaveData done [19:15:13]ExternCall_PrintAddStr [19:15:13]wPrintStart [19:15:13]Write to MH i2c: 01 00 00 13 06 19 [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: 01 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: 01 07 00 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: 01 07 00 13 06 00 00 00 00 00 FF 0F 2E [19:15:13]RasterBufferAndPrint [19:15:13]line Счет N : (1)593733 [19:15:13]line ИНН: 02508201610067 [19:15:13]line Контрольно-Кассовый Чек [19:15:13]line ПРОДАЖА [19:15:13]line ТРК (МРК, ГНК) : 43 [19:15:13]line Товар: 2710124130 [19:15:13]line SU-92 [19:15:13]line 7.270 * 68.80 [19:15:13]line = 500.18 [19:15:13]line НДС 12% НСП 1% [19:15:13]line > о реализуемом товаре [19:15:13]line ОКРУГЛЕНИЕ: -0.18 [19:15:13]line ИТОГО: 500.00 [19:15:13]line Внесено: 500.00 [19:15:13]line СДАЧА: 0.00 [19:15:13]line НСП 1% : 4.43 [19:15:13]line НДС 12% : 53.12 [19:15:13]line Наличными: 500.00 [19:15:13]line Безнал.: 0.00 [19:15:13]line Место: АЗС № 136 "Партнер Нефть" [19:15:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:15:13]line СНО: Общий режим [19:15:13]line Чек 353 20.08.2024 19:15 [19:15:13]line Смена: 453 ФФД: 1.0 [19:15:13]line ЗНМ: 0300000067 [19:15:13]line РНМ: 0000000000092569 [19:15:13]line Версия ККМ: 001 [19:15:13]line ФМ: 0000000000871776 [19:15:13]line ФД: 139881 [19:15:13]line ФПД: 116537166580246 [19:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191513&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139881&fm=116537166580246&tin=02508201610067®Number=0000000000092569&sum=50000 [19:15:14]OFD Sender: Processing packet 139881 [packets to send 137, broken 136] [19:15:14]ProducePacketName [19:15:14]name=ofd_packets/00139881 [19:15:14]OFD Sender: To server: pG, [19:15:14]CommunicateWithHost lk.salyk.kg:30040 [19:15:14]ConnectInit lk.salyk.kg [19:15:14]written 0, free lines is 4095 [19:15:14]Connected sock=9 [19:15:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 EA 23 00 01 7D 4D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 61 01 00 00 F4 03 04 00 41 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 22 02 00 35 04 06 00 69 FD 6C 6A CA 16 9D 55 E5 C6 55 A0 94 50 [19:15:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 73 47 47 00 42 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 22 02 00 F4 03 04 00 D3 91 C4 66 B6 04 01 00 00 2D 57 1E 8E 41 98 B4 B2 [19:15:14]CommunicateWithHost err = 0 [19:15:14]CheckOFDResponse [19:15:14]1017 (14) - 77093643461234 [19:15:14]1041 (16) - 0000000000871776 [19:15:14]1040 (4) - 139881 [19:15:14]1012 (4) - 20.08.2024 12:53 [19:15:14]1206 (1) - 0 [19:15:14]OFD Sender: Remove packet 139881 [19:15:14]ProducePacketName [19:15:14]name=ofd_packets/00139881 [19:15:14]NVStorageDeleteData [19:15:14]Write to MH i2c: 01 00 00 3E 06 44 [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 07 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 07 00 3E 06 00 00 00 00 00 CF 0C 26 [19:15:14]RasterBufferAndPrint [19:15:14]line [19:15:14]line [19:15:14]line [19:15:14]line [19:15:14]line [19:15:14]written 0, free lines is 3282 [19:15:14]MH_Cut [19:15:14]Write to MH i2c: D1 01 00 45 06 01 1D [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: D1 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: D1 01 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: D1 01 00 45 06 00 1C [19:15:14]Write to MH i2c: 01 00 00 46 06 4C [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:15]OFD Sender: No OFD packet to send [19:15:15]*** Cut start [19:15:15]*** Partial cut [19:15:15]*** CUTSNS_PIN = 1 [19:15:15]*** CUTSNS_PIN = 0 [19:15:15]*** Brake cut motor [19:15:16]Read from MH i2c: 01 [19:15:16]MH_I2C_Read... [19:15:16]*** Stop cut motor [19:15:16]*** Cut end [19:15:16]Read from MH i2c: 01 07 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: 01 07 00 46 06 00 00 00 00 00 FF 0F 61 [19:15:16]process_action close_receipt done [19:15:16]requested_data is exist [19:15:16]produce_requested_data [19:15:16]requested_item fm.sn is exist - process it [19:15:16]wFMCommunicate request_size=4 [19:15:16]MH_SAM_APDU [19:15:16]CAPDU: 80 11 00 00 [19:15:16]Write to MH i2c: E2 08 00 47 06 80 11 00 00 00 00 00 00 C7 [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:16]Read from MH i2c: E2 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 17 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 17 00 47 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [19:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:15:16]wFMCommunicate OK [19:15:16]requested_item fd.num is exist - process it [19:15:16]SAM_PROTO_GetFieldsCounters [19:15:16]wFMCommunicate request_size=4 [19:15:16]MH_SAM_APDU [19:15:16]CAPDU: 80 13 00 00 [19:15:16]Write to MH i2c: E2 08 00 48 06 80 13 00 00 00 00 00 00 CA [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:16]Read from MH i2c: E2 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 62 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 62 00 48 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 22 02 00 0E 04 04 00 C5 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 6E [19:15:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 22 02 00 0E 04 04 00 C5 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 [19:15:16]wFMCommunicate OK [19:15:16]SAM_PROTO_GetFieldsCounters done [19:15:16]requested_item shift.num is exist - process it [19:15:16]requested_item shift.opened is exist - process it [19:15:16]req_shift_opened [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 49 06 80 13 01 00 00 00 00 00 CC [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 49 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5D [19:15:16]RAPDU: 09 00 01 79 E3 C3 66 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]req_shift_opened done [19:15:16]requested_item shift.open_date is exist - process it [19:15:16]req_shift_open_date [19:15:16]req_shift_open_date done [19:15:16]produce_requested_data done [19:15:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139881,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:15:16]process_action_free close_receipt [19:15:16]json_value_free [19:15:16]json_value_free done [19:15:16]process_json_proto returns [19:15:16]Send response to host [19:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139881,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:15:16]free response buf [19:15:16]execute_script done [19:15:16]execute_script returns [19:15:16]free content buf [19:15:16]Sock 10.Close socket [19:15:16]Sock 10.Thread stoped [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:30]int [19:15:30]Write to MH i2c: 01 00 00 4A 06 50 [19:15:30]*** FLAG_PRN_KEY set [19:15:30]Write i2c OK [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 07 00 [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 07 00 4A 06 00 08 00 00 00 FF 0F 6D [19:15:30]state=0 [19:15:30]Key pressed [19:15:30]Feed [19:15:30]Write to MH i2c: D8 00 00 4B 06 28 [19:15:30]Write i2c OK [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: D8 [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: D8 01 00 [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: D8 01 00 4B 06 00 29 [19:15:30]int [19:15:30]Write to MH i2c: 01 00 00 4C 06 52 [19:15:30]Write i2c OK [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 07 00 [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 07 00 4C 06 00 48 00 00 00 3C 00 DD [19:15:30]state=2 [19:15:30]Key pressed [19:15:30]int [19:15:30]Write to MH i2c: 01 00 00 4D 06 53 [19:15:30]*** FLAG_PRN_KEY reset [19:15:30]Write i2c OK [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 07 00 [19:15:30]MH_I2C_Read... [19:15:30]Read from MH i2c: 01 07 00 4D 06 00 00 00 00 00 F6 0F 5F [19:15:30]state=2 [19:15:30]Stop feed [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:52]accept exits with 7 [19:16:52]New connection [19:16:52]New thread 3066797412 created [19:16:52]Thread 3066940772 joined [19:16:52]Waiting for new connection... [19:16:52] Sock 7.Parse request [19:16:52]Sock 7.Check first char [19:16:52]Sock 7.First char is OK [19:16:52]request: POST /json_proto HTTP/1.0 [19:16:52]Method: POST [19:16:52]URL: /json_proto [19:16:52]Method is POST - this is cgi request [19:16:52]url: /json_proto [19:16:52]query_string will be loaded in cgi processing [19:16:52]execute_cgi json_proto POST (null) [19:16:52]execute_cgi path=json_proto method=POST [19:16:52]POST find Content-Length [19:16:52]Host: 172.17.45.67:8080 [19:16:52]Content-Length: 677 [19:16:52]Content-Type: application/json [19:16:52] [19:16:52]POST finish read [19:16:52]Found Content-Length = 677 [19:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:52]execute_script... [19:16: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)593734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:52]POST & json_proto [19:16:52]process_json_proto [19:16:52]json parsed OK: [19:16:52]protocol is kg_v1.0 [19:16:52]action value=close_receipt [19:16:52]process_action close_receipt [19:16:52]cmd_close_receipt [19:16:52]MH_GetDate [19:16:52]Write to MH i2c: F0 00 00 4E 06 43 [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: F0 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: F0 09 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: F0 09 00 4E 06 00 A5 EB C4 66 5F 7F 2B 66 75 [19:16:52]GetLastDocTimeStamp 1724181313 [19:16:52]current date 1724181413 [19:16:52]FM_GetShiftState [19:16:52]SAM_PROTO_GetShiftState [19:16:52]wFMCommunicate request_size=4 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 13 01 00 [19:16:52]Write to MH i2c: E2 08 00 4F 06 80 13 01 00 00 00 00 00 D2 [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 0E 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 0E 00 4F 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 63 [19:16:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:16:52]wFMCommunicate OK [19:16:52]SAM_PROTO_GetShiftState done [19:16:52]FM_GetShiftState done [19:16:52]opened in 1724113785 [19:16:52]opened+sec_in_day 1724200185 [19:16:52]quantity*price = 35052 [19:16:52]sum+1 = 35054 [19:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 354 20.08.2024 19:16 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139882 ФПД: 31824039275597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191653&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139882&fm=31824039275597&tin=02508201610067®Number=0000000000092569&sum=35000 [19:16:53]StoreToDocumentArchive [19:16:53]shift 453 fd 139882 [19:16:53]save to /storage/0453/doc_00139882 [19:16:53]save last doc name /storage/0453/doc_00139882 to /storage/kkm_last_doc_name [19:16:53]save OK [19:16:53]Clear old archive folders... [19:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:53]tlvbuf is 003E0E90 [19:16:53]SAM_PROTO_ClearQueue [19:16:53]wFMCommunicate request_size=4 [19:16:53]MH_SAM_APDU [19:16:53]CAPDU: 80 09 00 00 [19:16:53]Write to MH i2c: E2 08 00 5C 06 80 09 00 00 00 00 00 00 D4 [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:53]Read from MH i2c: E2 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 03 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 03 00 5C 06 00 90 00 D6 [19:16:53]RAPDU: 90 00 [19:16:53]wFMCommunicate OK [19:16:53]SAM_PROTO_ClearQueue done [19:16:53]KKMCreateOFDPacket [19:16:53]OFDProtocolAddRootSTLVToBuf [19:16:53]FM_MakeSignedData [19:16:53]FM_MakeSignedData [19:16:53]SAM_PROTO_SignData [19:16:53]wFMCommunicate request_size=4 [19:16:53]MH_SAM_APDU [19:16:53]CAPDU: 80 0D 01 02 [19:16:53]Write to MH i2c: E2 08 00 5D 06 80 0D 01 02 00 00 00 00 DC [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:53]Read from MH i2c: E2 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 03 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [19:16:53]RAPDU: 90 00 [19:16:53]wFMCommunicate OK [19:16:53]wFMCommunicate request_size=255 [19:16:53]MH_SAM_APDU [19:16:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 A5 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 22 02 00 35 04 06 00 1C [19:16:53]Write to MH i2c: E2 02 01 5E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 A5 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 22 02 00 35 04 06 00 1C 00 00 1D [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:54]Read from MH i2c: E2 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 03 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [19:16:54]RAPDU: 90 00 [19:16:54]wFMCommunicate OK [19:16:54]wFMCommunicate request_size=10 [19:16:54]MH_SAM_APDU [19:16:54]CAPDU: 80 0D 02 02 05 F1 9C 8E 6C 4D [19:16:54]Write to MH i2c: E2 0D 00 5F 06 80 0D 02 02 05 00 F1 9C 8E 6C 4D 00 00 BD [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:54]Read from MH i2c: E2 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 03 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [19:16:54]RAPDU: 90 00 [19:16:54]wFMCommunicate OK [19:16:54]wFMCommunicate request_size=4 [19:16:54]MH_SAM_APDU [19:16:54]CAPDU: 80 0D 03 02 [19:16:54]Write to MH i2c: E2 08 00 60 06 80 0D 03 02 00 00 00 00 E1 [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:54]Read from MH i2c: E2 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 0B 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 0B 00 60 06 00 85 CB 3F 80 CA 6D BE EB 90 00 D1 [19:16:54]RAPDU: 85 CB 3F 80 CA 6D BE EB 90 00 [19:16:54]wFMCommunicate OK [19:16:54]SAM_PROTO_SignData done [19:16:54]FM_MakeSignedData done [19:16:54]CreateOFDProtocolMessage [19:16:54]wFMCommunicate request_size=4 [19:16:54]MH_SAM_APDU [19:16:54]CAPDU: 80 11 00 00 [19:16:54]Write to MH i2c: E2 08 00 61 06 80 11 00 00 00 00 00 00 E1 [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:54]Read from MH i2c: E2 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 17 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: E2 17 00 61 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 38 [19:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:16:54]wFMCommunicate OK [19:16:54]CreateOFDProtocolMessage done [19:16:54]OFDSenderStorePacket 139882 [19:16:54]StoreOFDPacket docnum=139882 [19:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 09 89 07 01 ED 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 A5 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 22 02 00 35 04 06 00 1C F1 9C 8E 6C 4D 85 CB 3F 80 CA 6D BE EB [19:16:54]CheckFolder [19:16:54]dirname=/storage/ofd_packets [19:16:54]CheckFolder done [19:16:54]ProducePacketName [19:16:54]name=ofd_packets/00139882 [19:16:54]NVStorageSaveData ofd_packets/00139882 [19:16:54]File name is /storage/ofd_packets/00139882 [19:16:54]Write 301 bytes [19:16:54]NVStorageSaveData done [19:16:54]OFDSenderStorePacket done [19:16:54]KKMCreateOFDPacket done [19:16:54]NVStorageSaveData kkm_last_timestamp [19:16:54]File name is /storage/kkm_last_timestamp [19:16:54]Write 4 bytes [19:16:54]NVStorageSaveData done [19:16:54]ExternCall_PrintAddStr [19:16:54]wPrintStart [19:16:54]Write to MH i2c: 01 00 00 62 06 68 [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: 01 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: 01 07 00 [19:16:54]MH_I2C_Read... [19:16:54]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 FF 0F 7D [19:16:54]RasterBufferAndPrint [19:16:54]line Счет N : (1)593734 [19:16:54]line ИНН: 02508201610067 [19:16:54]line Контрольно-Кассовый Чек [19:16:54]line ПРОДАЖА [19:16:54]line ТРК (МРК, ГНК) : 62 [19:16:54]line Товар: 2710124130 [19:16:54]line Аи-92-К-5 [19:16:54]line 5.170 * 67.80 [19:16:54]line = 350.53 [19:16:54]line НДС 12% НСП 1% [19:16:54]line > о реализуемом товаре [19:16:54]line ОКРУГЛЕНИЕ: -0.53 [19:16:54]line ИТОГО: 350.00 [19:16:54]line Внесено: 350.00 [19:16:54]line СДАЧА: 0.00 [19:16:54]line НСП 1% : 3.10 [19:16:54]line НДС 12% : 37.22 [19:16:54]line Наличными: 350.00 [19:16:54]line Безнал.: 0.00 [19:16:54]line Место: АЗС № 136 "Партнер Нефть" [19:16:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:16:54]line СНО: Общий режим [19:16:54]line Чек 354 20.08.2024 19:16 [19:16:54]line Смена: 453 ФФД: 1.0 [19:16:54]line ЗНМ: 0300000067 [19:16:54]line РНМ: 0000000000092569 [19:16:54]line Версия ККМ: 001 [19:16:54]line ФМ: 0000000000871776 [19:16:54]line ФД: 139882 [19:16:54]line ФПД: 31824039275597 [19:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191653&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139882&fm=31824039275597&tin=02508201610067®Number=0000000000092569&sum=35000 [19:16:54]OFD Sender: Processing packet 139882 [packets to send 137, broken 136] [19:16:54]ProducePacketName [19:16:54]name=ofd_packets/00139882 [19:16:54]OFD Sender: To server: pG, [19:16:54]CommunicateWithHost lk.salyk.kg:30040 [19:16:54]ConnectInit lk.salyk.kg [19:16:54]written 0, free lines is 4095 [19:16:54]Connected sock=10 [19:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 09 89 07 01 ED 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 A5 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 22 02 00 35 04 06 00 1C F1 9C 8E 6C 4D 85 CB 3F 80 CA 6D BE EB [19:16:55]Write to MH i2c: 01 00 00 8D 06 93 [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: 01 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: 01 07 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: 01 07 00 8D 06 00 00 00 00 00 DE 0C 84 [19:16:55]RasterBufferAndPrint [19:16:55]line [19:16:55]line [19:16:55]line [19:16:55]line [19:16:55]line [19:16:55]written 0, free lines is 3297 [19:16:55]MH_Cut [19:16:55]Write to MH i2c: D1 01 00 94 06 01 6C [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: D1 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: D1 01 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: D1 01 00 94 06 00 6B [19:16:55]Write to MH i2c: 01 00 00 95 06 9B [19:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 08 42 47 00 CB 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 22 02 00 F4 03 04 00 38 92 C4 66 B6 04 01 00 00 19 B4 64 52 BA BB 49 8F [19:16:55]CommunicateWithHost err = 0 [19:16:55]CheckOFDResponse [19:16:55]1017 (14) - 77093643461234 [19:16:55]1041 (16) - 0000000000871776 [19:16:55]1040 (4) - 139882 [19:16:55]1012 (4) - 20.08.2024 12:55 [19:16:55]1206 (1) - 0 [19:16:55]OFD Sender: Remove packet 139882 [19:16:55]ProducePacketName [19:16:55]name=ofd_packets/00139882 [19:16:55]NVStorageDeleteData [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]OFD Sender: No OFD packet to send [19:16:55]*** Cut start [19:16:55]*** Partial cut [19:16:55]*** CUTSNS_PIN = 1 [19:16:55]*** CUTSNS_PIN = 0 [19:16:56]*** Brake cut motor [19:16:56]Read from MH i2c: 01 [19:16:56]MH_I2C_Read... [19:16:56]*** Stop cut motor [19:16:56]*** Cut end [19:16:56]Read from MH i2c: 01 07 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: 01 07 00 95 06 00 00 00 00 00 FF 0F B0 [19:16:56]process_action close_receipt done [19:16:56]requested_data is exist [19:16:56]produce_requested_data [19:16:56]requested_item fm.sn is exist - process it [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 11 00 00 [19:16:56]Write to MH i2c: E2 08 00 96 06 80 11 00 00 00 00 00 00 16 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 17 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 17 00 96 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [19:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:16:56]wFMCommunicate OK [19:16:56]requested_item fd.num is exist - process it [19:16:56]SAM_PROTO_GetFieldsCounters [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 13 00 00 [19:16:56]Write to MH i2c: E2 08 00 97 06 80 13 00 00 00 00 00 00 19 [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 62 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 62 00 97 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 22 02 00 0E 04 04 00 C5 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 C1 [19:16:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 22 02 00 0E 04 04 00 C5 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 [19:16:56]wFMCommunicate OK [19:16:56]SAM_PROTO_GetFieldsCounters done [19:16:56]requested_item shift.num is exist - process it [19:16:56]requested_item shift.opened is exist - process it [19:16:56]req_shift_opened [19:16:56]FM_GetShiftState [19:16:56]SAM_PROTO_GetShiftState [19:16:56]wFMCommunicate request_size=4 [19:16:56]MH_SAM_APDU [19:16:56]CAPDU: 80 13 01 00 [19:16:56]Write to MH i2c: E2 08 00 98 06 80 13 01 00 00 00 00 00 1B [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:56]Read from MH i2c: E2 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 0E 00 [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: E2 0E 00 98 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AC [19:16:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:16:56]wFMCommunicate OK [19:16:56]SAM_PROTO_GetShiftState done [19:16:56]FM_GetShiftState done [19:16:56]req_shift_opened done [19:16:56]requested_item shift.open_date is exist - process it [19:16:56]req_shift_open_date [19:16:56]req_shift_open_date done [19:16:56]produce_requested_data done [19:16:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139882,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:16:56]process_action_free close_receipt [19:16:56]json_value_free [19:16:56]json_value_free done [19:16:56]process_json_proto returns [19:16:56]Send response to host [19:16:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139882,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:16:56]free response buf [19:16:56]execute_script done [19:16:56]execute_script returns [19:16:56]free content buf [19:16:56]Sock 7.Close socket [19:16:56]Sock 7.Thread stoped [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:23]accept exits with 9 [19:17:23]New connection [19:17:23]New thread 3066940772 created [19:17:23]Thread 3066797412 joined [19:17:23]Waiting for new connection... [19:17:23] Sock 9.Parse request [19:17:23]Sock 9.Check first char [19:17:23]Sock 9.First char is OK [19:17:23]request: POST /json_proto HTTP/1.0 [19:17:23]Method: POST [19:17:23]URL: /json_proto [19:17:23]Method is POST - this is cgi request [19:17:23]url: /json_proto [19:17:23]query_string will be loaded in cgi processing [19:17:23]execute_cgi json_proto POST (null) [19:17:23]execute_cgi path=json_proto method=POST [19:17:23]POST find Content-Length [19:17:23]Host: 172.17.45.67:8080 [19:17:23]Content-Length: 663 [19:17:23]Content-Type: application/json [19:17:23] [19:17:23]POST finish read [19:17:23]Found Content-Length = 663 [19:17:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:23]execute_script... [19:17: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)593736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:23]POST & json_proto [19:17:23]process_json_proto [19:17:23]json parsed OK: [19:17:23]protocol is kg_v1.0 [19:17:23]action value=close_receipt [19:17:23]process_action close_receipt [19:17:23]cmd_close_receipt [19:17:23]MH_GetDate [19:17:23]Write to MH i2c: F0 00 00 99 06 8E [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: F0 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: F0 09 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: F0 09 00 99 06 00 C4 EB C4 66 5F 7F 2B 66 DF [19:17:23]GetLastDocTimeStamp 1724181413 [19:17:23]current date 1724181444 [19:17:23]FM_GetShiftState [19:17:23]SAM_PROTO_GetShiftState [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 13 01 00 [19:17:23]Write to MH i2c: E2 08 00 9A 06 80 13 01 00 00 00 00 00 1D [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 0E 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 0E 00 9A 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AE [19:17:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:17:24]wFMCommunicate OK [19:17:24]SAM_PROTO_GetShiftState done [19:17:24]FM_GetShiftState done [19:17:24]opened in 1724113785 [19:17:24]opened+sec_in_day 1724200185 [19:17:24]quantity*price = 100035 [19:17:24]sum+1 = 100036 [19:17:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 355 20.08.2024 19:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139883 ФПД: 155703920599304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191724&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139883&fm=155703920599304&tin=02508201610067®Number=0000000000092569&sum=100000 [19:17:25]StoreToDocumentArchive [19:17:25]shift 453 fd 139883 [19:17:25]save to /storage/0453/doc_00139883 [19:17:25]save last doc name /storage/0453/doc_00139883 to /storage/kkm_last_doc_name [19:17:25]save OK [19:17:25]Clear old archive folders... [19:17:25]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:17:25]tlvbuf is 003EE240 [19:17:25]SAM_PROTO_ClearQueue [19:17:25]wFMCommunicate request_size=4 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 09 00 00 [19:17:25]Write to MH i2c: E2 08 00 A7 06 80 09 00 00 00 00 00 00 1F [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [19:17:25]RAPDU: 90 00 [19:17:25]wFMCommunicate OK [19:17:25]SAM_PROTO_ClearQueue done [19:17:25]KKMCreateOFDPacket [19:17:25]OFDProtocolAddRootSTLVToBuf [19:17:25]FM_MakeSignedData [19:17:25]FM_MakeSignedData [19:17:25]SAM_PROTO_SignData [19:17:25]wFMCommunicate request_size=4 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 0D 01 02 [19:17:25]Write to MH i2c: E2 08 00 A8 06 80 0D 01 02 00 00 00 00 27 [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [19:17:25]RAPDU: 90 00 [19:17:25]wFMCommunicate OK [19:17:25]wFMCommunicate request_size=253 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 C4 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 22 02 00 35 04 06 00 8D 9C A4 E0 A1 08 [19:17:25]Write to MH i2c: E2 00 01 A9 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 C4 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 22 02 00 35 04 06 00 8D 9C A4 E0 A1 08 00 00 87 [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 03 00 A9 06 00 90 00 23 [19:17:25]RAPDU: 90 00 [19:17:25]wFMCommunicate OK [19:17:25]wFMCommunicate request_size=4 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 0D 03 02 [19:17:25]Write to MH i2c: E2 08 00 AA 06 80 0D 03 02 00 00 00 00 2B [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 0B 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 0B 00 AA 06 00 27 98 48 B0 F2 75 F2 28 90 00 64 [19:17:25]RAPDU: 27 98 48 B0 F2 75 F2 28 90 00 [19:17:25]wFMCommunicate OK [19:17:25]SAM_PROTO_SignData done [19:17:25]FM_MakeSignedData done [19:17:25]CreateOFDProtocolMessage [19:17:25]wFMCommunicate request_size=4 [19:17:25]MH_SAM_APDU [19:17:25]CAPDU: 80 11 00 00 [19:17:25]Write to MH i2c: E2 08 00 AB 06 80 11 00 00 00 00 00 00 2B [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:25]Read from MH i2c: E2 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 17 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: E2 17 00 AB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 82 [19:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:17:25]wFMCommunicate OK [19:17:25]CreateOFDProtocolMessage done [19:17:25]OFDSenderStorePacket 139883 [19:17:25]StoreOFDPacket docnum=139883 [19:17:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 12 FC 00 01 46 61 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 C4 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 22 02 00 35 04 06 00 8D 9C A4 E0 A1 08 27 98 48 B0 F2 75 F2 28 [19:17:25]CheckFolder [19:17:25]dirname=/storage/ofd_packets [19:17:25]CheckFolder done [19:17:25]ProducePacketName [19:17:25]name=ofd_packets/00139883 [19:17:25]NVStorageSaveData ofd_packets/00139883 [19:17:25]File name is /storage/ofd_packets/00139883 [19:17:25]Write 294 bytes [19:17:25]NVStorageSaveData done [19:17:25]OFDSenderStorePacket done [19:17:25]KKMCreateOFDPacket done [19:17:25]NVStorageSaveData kkm_last_timestamp [19:17:25]File name is /storage/kkm_last_timestamp [19:17:25]Write 4 bytes [19:17:25]NVStorageSaveData done [19:17:25]ExternCall_PrintAddStr [19:17:25]wPrintStart [19:17:25]Write to MH i2c: 01 00 00 AC 06 B2 [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 07 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [19:17:25]RasterBufferAndPrint [19:17:25]line Счет N : (1)593736 [19:17:25]line ИНН: 02508201610067 [19:17:25]line Контрольно-Кассовый Чек [19:17:25]line ПРОДАЖА [19:17:25]line ТРК (МРК, ГНК) : 53 [19:17:25]line Товар: 2710124130 [19:17:25]line SU-92 [19:17:25]line 14.540 * 68.80 [19:17:25]line = 1000.35 [19:17:25]line НДС 12% НСП 1% [19:17:25]line > о реализуемом товаре [19:17:25]line ОКРУГЛЕНИЕ: -0.35 [19:17:25]line ИТОГО: 1000.00 [19:17:25]line Внесено: 1000.00 [19:17:25]line СДАЧА: 0.00 [19:17:25]line НСП 1% : 8.85 [19:17:25]line НДС 12% : 106.23 [19:17:25]line Наличными: 1000.00 [19:17:25]line Безнал.: 0.00 [19:17:25]line Место: АЗС № 136 "Партнер Нефть" [19:17:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:17:25]line СНО: Общий режим [19:17:25]line Чек 355 20.08.2024 19:17 [19:17:25]line Смена: 453 ФФД: 1.0 [19:17:25]line ЗНМ: 0300000067 [19:17:25]line РНМ: 0000000000092569 [19:17:25]line Версия ККМ: 001 [19:17:25]line ФМ: 0000000000871776 [19:17:25]line ФД: 139883 [19:17:25]line ФПД: 155703920599304 [19:17:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191724&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139883&fm=155703920599304&tin=02508201610067®Number=0000000000092569&sum=100000 [19:17:25]OFD Sender: Processing packet 139883 [packets to send 137, broken 136] [19:17:25]ProducePacketName [19:17:25]name=ofd_packets/00139883 [19:17:25]OFD Sender: To server: pG, [19:17:25]CommunicateWithHost lk.salyk.kg:30040 [19:17:25]ConnectInit lk.salyk.kg [19:17:25]written 0, free lines is 4095 [19:17:26]Connected sock=10 [19:17:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 12 FC 00 01 46 61 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 C4 EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 22 02 00 35 04 06 00 8D 9C A4 E0 A1 08 27 98 48 B0 F2 75 F2 28 [19:17:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2B 01 47 00 C7 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 22 02 00 F4 03 04 00 57 92 C4 66 B6 04 01 00 00 82 6A 79 FB C1 A3 2B AE [19:17:26]CommunicateWithHost err = 0 [19:17:26]CheckOFDResponse [19:17:26]1017 (14) - 77093643461234 [19:17:26]1041 (16) - 0000000000871776 [19:17:26]1040 (4) - 139883 [19:17:26]1012 (4) - 20.08.2024 12:55 [19:17:26]1206 (1) - 0 [19:17:26]OFD Sender: Remove packet 139883 [19:17:26]ProducePacketName [19:17:26]name=ofd_packets/00139883 [19:17:26]NVStorageDeleteData [19:17:26]Write to MH i2c: 01 00 00 D7 06 DD [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: 01 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: 01 07 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: 01 07 00 D7 06 00 00 00 00 00 D0 0C C0 [19:17:26]RasterBufferAndPrint [19:17:26]line [19:17:26]line [19:17:26]line [19:17:26]line [19:17:26]line [19:17:26]written 0, free lines is 3286 [19:17:26]MH_Cut [19:17:26]Write to MH i2c: D1 01 00 DE 06 01 B6 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: D1 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: D1 01 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: D1 01 00 DE 06 00 B5 [19:17:26]Write to MH i2c: 01 00 00 DF 06 E5 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]OFD Sender: No OFD packet to send [19:17:27]*** Cut start [19:17:27]*** Partial cut [19:17:27]*** CUTSNS_PIN = 1 [19:17:27]*** CUTSNS_PIN = 0 [19:17:27]*** Brake cut motor [19:17:27]Read from MH i2c: 01 [19:17:27]MH_I2C_Read... [19:17:27]*** Stop cut motor [19:17:27]*** Cut end [19:17:27]Read from MH i2c: 01 07 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 FF 0F FA [19:17:27]process_action close_receipt done [19:17:27]requested_data is exist [19:17:27]produce_requested_data [19:17:27]requested_item fm.sn is exist - process it [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 11 00 00 [19:17:27]Write to MH i2c: E2 08 00 E0 06 80 11 00 00 00 00 00 00 60 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 17 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 17 00 E0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B7 [19:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:17:27]wFMCommunicate OK [19:17:27]requested_item fd.num is exist - process it [19:17:27]SAM_PROTO_GetFieldsCounters [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 13 00 00 [19:17:27]Write to MH i2c: E2 08 00 E1 06 80 13 00 00 00 00 00 00 63 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 62 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 62 00 E1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 22 02 00 0E 04 04 00 C5 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 0F [19:17:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 22 02 00 0E 04 04 00 C5 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 [19:17:27]wFMCommunicate OK [19:17:27]SAM_PROTO_GetFieldsCounters done [19:17:27]requested_item shift.num is exist - process it [19:17:27]requested_item shift.opened is exist - process it [19:17:27]req_shift_opened [19:17:27]FM_GetShiftState [19:17:27]SAM_PROTO_GetShiftState [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 13 01 00 [19:17:27]Write to MH i2c: E2 08 00 E2 06 80 13 01 00 00 00 00 00 65 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 0E 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 0E 00 E2 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F6 [19:17:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:17:27]wFMCommunicate OK [19:17:27]SAM_PROTO_GetShiftState done [19:17:27]FM_GetShiftState done [19:17:27]req_shift_opened done [19:17:27]requested_item shift.open_date is exist - process it [19:17:27]req_shift_open_date [19:17:27]req_shift_open_date done [19:17:27]produce_requested_data done [19:17:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139883,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:17:27]process_action_free close_receipt [19:17:27]json_value_free [19:17:27]json_value_free done [19:17:27]process_json_proto returns [19:17:27]Send response to host [19:17:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139883,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:17:27]free response buf [19:17:27]execute_script done [19:17:27]execute_script returns [19:17:27]free content buf [19:17:27]Sock 9.Close socket [19:17:27]Sock 9.Thread stoped [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:04]accept exits with 7 [19:18:04]New connection [19:18:04]New thread 3066797412 created [19:18:04]Thread 3066940772 joined [19:18:04]Waiting for new connection... [19:18:04] Sock 7.Parse request [19:18:04]Sock 7.Check first char [19:18:04]Sock 7.First char is OK [19:18:04]request: POST /json_proto HTTP/1.0 [19:18:04]Method: POST [19:18:04]URL: /json_proto [19:18:04]Method is POST - this is cgi request [19:18:04]url: /json_proto [19:18:04]query_string will be loaded in cgi processing [19:18:04]execute_cgi json_proto POST (null) [19:18:04]execute_cgi path=json_proto method=POST [19:18:04]POST find Content-Length [19:18:04]Host: 172.17.45.67:8080 [19:18:04]Content-Length: 658 [19:18:04]Content-Type: application/json [19:18:04] [19:18:04]POST finish read [19:18:04]Found Content-Length = 658 [19:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:04]execute_script... [19:18: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)593738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:04]POST & json_proto [19:18:04]process_json_proto [19:18:04]json parsed OK: [19:18:04]protocol is kg_v1.0 [19:18:04]action value=close_receipt [19:18:04]process_action close_receipt [19:18:04]cmd_close_receipt [19:18:04]MH_GetDate [19:18:04]Write to MH i2c: F0 00 00 E3 06 D8 [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: F0 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: F0 09 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: F0 09 00 E3 06 00 ED EB C4 66 5F 7F 2B 66 52 [19:18:04]GetLastDocTimeStamp 1724181444 [19:18:04]current date 1724181485 [19:18:04]FM_GetShiftState [19:18:04]SAM_PROTO_GetShiftState [19:18:04]wFMCommunicate request_size=4 [19:18:04]MH_SAM_APDU [19:18:04]CAPDU: 80 13 01 00 [19:18:04]Write to MH i2c: E2 08 00 E4 06 80 13 01 00 00 00 00 00 67 [19:18:04]Write i2c OK [19:18:04]MH_I2C_Read... [19:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:04]Read from MH i2c: E2 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 0E 00 [19:18:04]MH_I2C_Read... [19:18:04]Read from MH i2c: E2 0E 00 E4 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F8 [19:18:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:18:04]wFMCommunicate OK [19:18:04]SAM_PROTO_GetShiftState done [19:18:04]FM_GetShiftState done [19:18:04]opened in 1724113785 [19:18:04]opened+sec_in_day 1724200185 [19:18:04]quantity*price = 50017 [19:18:04]sum+1 = 50019 [19:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 356 20.08.2024 19:18 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139884 ФПД: 215159336033905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191805&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139884&fm=215159336033905&tin=02508201610067®Number=0000000000092569&sum=50000 [19:18:05]StoreToDocumentArchive [19:18:05]shift 453 fd 139884 [19:18:05]save to /storage/0453/doc_00139884 [19:18:05]save last doc name /storage/0453/doc_00139884 to /storage/kkm_last_doc_name [19:18:05]save OK [19:18:05]Clear old archive folders... [19:18:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:18:05]tlvbuf is 00477630 [19:18:05]SAM_PROTO_ClearQueue [19:18:05]wFMCommunicate request_size=4 [19:18:05]MH_SAM_APDU [19:18:05]CAPDU: 80 09 00 00 [19:18:05]Write to MH i2c: E2 08 00 F1 06 80 09 00 00 00 00 00 00 69 [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:05]Read from MH i2c: E2 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 F1 06 00 90 00 6B [19:18:05]RAPDU: 90 00 [19:18:05]wFMCommunicate OK [19:18:05]SAM_PROTO_ClearQueue done [19:18:05]KKMCreateOFDPacket [19:18:05]OFDProtocolAddRootSTLVToBuf [19:18:05]FM_MakeSignedData [19:18:05]FM_MakeSignedData [19:18:05]SAM_PROTO_SignData [19:18:05]wFMCommunicate request_size=4 [19:18:05]MH_SAM_APDU [19:18:05]CAPDU: 80 0D 01 02 [19:18:05]Write to MH i2c: E2 08 00 F2 06 80 0D 01 02 00 00 00 00 71 [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:05]Read from MH i2c: E2 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 [19:18:05]MH_I2C_Read... [19:18:05]Read from MH i2c: E2 03 00 F2 06 00 90 00 6C [19:18:05]RAPDU: 90 00 [19:18:05]wFMCommunicate OK [19:18:05]wFMCommunicate request_size=253 [19:18:05]MH_SAM_APDU [19:18:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 01 00 00 F4 03 04 00 ED EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 22 02 00 35 04 06 00 C3 AF AF CB 5E 71 [19:18:05]Write to MH i2c: E2 00 01 F3 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 01 00 00 F4 03 04 00 ED EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 22 02 00 35 04 06 00 C3 AF AF CB 5E 71 00 00 02 [19:18:05]Write i2c OK [19:18:05]MH_I2C_Read... [19:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:06]Read from MH i2c: E2 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: E2 03 00 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: E2 03 00 F3 06 00 90 00 6D [19:18:06]RAPDU: 90 00 [19:18:06]wFMCommunicate OK [19:18:06]wFMCommunicate request_size=4 [19:18:06]MH_SAM_APDU [19:18:06]CAPDU: 80 0D 03 02 [19:18:06]Write to MH i2c: E2 08 00 F4 06 80 0D 03 02 00 00 00 00 75 [19:18:06]Write i2c OK [19:18:06]MH_I2C_Read... [19:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:06]Read from MH i2c: E2 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: E2 0B 00 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: E2 0B 00 F4 06 00 2A 2C 33 4E 83 6D 51 C0 90 00 4E [19:18:06]RAPDU: 2A 2C 33 4E 83 6D 51 C0 90 00 [19:18:06]wFMCommunicate OK [19:18:06]SAM_PROTO_SignData done [19:18:06]FM_MakeSignedData done [19:18:06]CreateOFDProtocolMessage [19:18:06]wFMCommunicate request_size=4 [19:18:06]MH_SAM_APDU [19:18:06]CAPDU: 80 11 00 00 [19:18:06]Write to MH i2c: E2 08 00 F5 06 80 11 00 00 00 00 00 00 75 [19:18:06]Write i2c OK [19:18:06]MH_I2C_Read... [19:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:06]Read from MH i2c: E2 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: E2 17 00 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: E2 17 00 F5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [19:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:18:06]wFMCommunicate OK [19:18:06]CreateOFDProtocolMessage done [19:18:06]OFDSenderStorePacket 139884 [19:18:06]StoreOFDPacket docnum=139884 [19:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 AA 2D 00 01 C2 B5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 01 00 00 F4 03 04 00 ED EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 22 02 00 35 04 06 00 C3 AF AF CB 5E 71 2A 2C 33 4E 83 6D 51 C0 [19:18:06]CheckFolder [19:18:06]dirname=/storage/ofd_packets [19:18:06]CheckFolder done [19:18:06]ProducePacketName [19:18:06]name=ofd_packets/00139884 [19:18:06]NVStorageSaveData ofd_packets/00139884 [19:18:06]File name is /storage/ofd_packets/00139884 [19:18:06]Write 294 bytes [19:18:06]NVStorageSaveData done [19:18:06]OFDSenderStorePacket done [19:18:06]KKMCreateOFDPacket done [19:18:06]NVStorageSaveData kkm_last_timestamp [19:18:06]File name is /storage/kkm_last_timestamp [19:18:06]Write 4 bytes [19:18:06]NVStorageSaveData done [19:18:06]ExternCall_PrintAddStr [19:18:06]wPrintStart [19:18:06]Write to MH i2c: 01 00 00 F6 06 FC [19:18:06]Write i2c OK [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: 01 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: 01 07 00 [19:18:06]MH_I2C_Read... [19:18:06]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 FF 0F 11 [19:18:06]RasterBufferAndPrint [19:18:06]line Счет N : (1)593738 [19:18:06]line ИНН: 02508201610067 [19:18:06]line Контрольно-Кассовый Чек [19:18:06]line ПРОДАЖА [19:18:06]line ТРК (МРК, ГНК) : 33 [19:18:06]line Товар: 2710124130 [19:18:06]line SU-92 [19:18:06]line 7.270 * 68.80 [19:18:06]line = 500.18 [19:18:06]line НДС 12% НСП 1% [19:18:06]line > о реализуемом товаре [19:18:06]line ОКРУГЛЕНИЕ: -0.18 [19:18:06]line ИТОГО: 500.00 [19:18:06]line Внесено: 500.00 [19:18:06]line СДАЧА: 0.00 [19:18:06]line НСП 1% : 4.43 [19:18:06]line НДС 12% : 53.12 [19:18:06]line Наличными: 500.00 [19:18:06]line Безнал.: 0.00 [19:18:06]line Место: АЗС № 136 "Партнер Нефть" [19:18:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:18:06]line СНО: Общий режим [19:18:06]line Чек 356 20.08.2024 19:18 [19:18:06]line Смена: 453 ФФД: 1.0 [19:18:06]line ЗНМ: 0300000067 [19:18:06]line РНМ: 0000000000092569 [19:18:06]line Версия ККМ: 001 [19:18:06]line ФМ: 0000000000871776 [19:18:06]line ФД: 139884 [19:18:06]line ФПД: 215159336033905 [19:18:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191805&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139884&fm=215159336033905&tin=02508201610067®Number=0000000000092569&sum=50000 [19:18:06]OFD Sender: Processing packet 139884 [packets to send 137, broken 136] [19:18:06]ProducePacketName [19:18:06]name=ofd_packets/00139884 [19:18:06]OFD Sender: To server: pG, [19:18:06]CommunicateWithHost lk.salyk.kg:30040 [19:18:06]ConnectInit lk.salyk.kg [19:18:06]written 0, free lines is 4095 [19:18:06]Connected sock=10 [19:18:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 AA 2D 00 01 C2 B5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 01 00 00 F4 03 04 00 ED EB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 22 02 00 35 04 06 00 C3 AF AF CB 5E 71 2A 2C 33 4E 83 6D 51 C0 [19:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 18 13 47 00 BE CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 22 02 00 F4 03 04 00 7F 92 C4 66 B6 04 01 00 00 23 CB 05 92 E1 0C A5 3E [19:18:07]CommunicateWithHost err = 0 [19:18:07]CheckOFDResponse [19:18:07]1017 (14) - 77093643461234 [19:18:07]1041 (16) - 0000000000871776 [19:18:07]1040 (4) - 139884 [19:18:07]1012 (4) - 20.08.2024 12:56 [19:18:07]1206 (1) - 0 [19:18:07]OFD Sender: Remove packet 139884 [19:18:07]ProducePacketName [19:18:07]name=ofd_packets/00139884 [19:18:07]NVStorageDeleteData [19:18:07]Write to MH i2c: 01 00 00 21 07 28 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: 01 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: 01 07 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: 01 07 00 21 07 00 00 00 00 00 CD 0C 08 [19:18:07]RasterBufferAndPrint [19:18:07]line [19:18:07]line [19:18:07]line [19:18:07]line [19:18:07]line [19:18:07]written 0, free lines is 3283 [19:18:07]MH_Cut [19:18:07]Write to MH i2c: D1 01 00 28 07 01 01 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: D1 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: D1 01 00 [19:18:07]MH_I2C_Read... [19:18:07]Read from MH i2c: D1 01 00 28 07 00 00 [19:18:07]Write to MH i2c: 01 00 00 29 07 30 [19:18:07]Write i2c OK [19:18:07]MH_I2C_Read... [19:18:07]OFD Sender: No OFD packet to send [19:18:07]*** Cut start [19:18:07]*** Partial cut [19:18:07]*** CUTSNS_PIN = 1 [19:18:07]*** CUTSNS_PIN = 0 [19:18:08]*** Brake cut motor [19:18:08]Read from MH i2c: 01 [19:18:08]MH_I2C_Read... [19:18:08]*** Stop cut motor [19:18:08]*** Cut end [19:18:08]Read from MH i2c: 01 07 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: 01 07 00 29 07 00 00 00 00 00 FF 0F 45 [19:18:08]process_action close_receipt done [19:18:08]requested_data is exist [19:18:08]produce_requested_data [19:18:08]requested_item fm.sn is exist - process it [19:18:08]wFMCommunicate request_size=4 [19:18:08]MH_SAM_APDU [19:18:08]CAPDU: 80 11 00 00 [19:18:08]Write to MH i2c: E2 08 00 2A 07 80 11 00 00 00 00 00 00 AB [19:18:08]Write i2c OK [19:18:08]MH_I2C_Read... [19:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:08]Read from MH i2c: E2 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 17 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 17 00 2A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 02 [19:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:18:08]wFMCommunicate OK [19:18:08]requested_item fd.num is exist - process it [19:18:08]SAM_PROTO_GetFieldsCounters [19:18:08]wFMCommunicate request_size=4 [19:18:08]MH_SAM_APDU [19:18:08]CAPDU: 80 13 00 00 [19:18:08]Write to MH i2c: E2 08 00 2B 07 80 13 00 00 00 00 00 00 AE [19:18:08]Write i2c OK [19:18:08]MH_I2C_Read... [19:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:08]Read from MH i2c: E2 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 62 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 62 00 2B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 22 02 00 0E 04 04 00 C5 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 5E [19:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 22 02 00 0E 04 04 00 C5 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 [19:18:08]wFMCommunicate OK [19:18:08]SAM_PROTO_GetFieldsCounters done [19:18:08]requested_item shift.num is exist - process it [19:18:08]requested_item shift.opened is exist - process it [19:18:08]req_shift_opened [19:18:08]FM_GetShiftState [19:18:08]SAM_PROTO_GetShiftState [19:18:08]wFMCommunicate request_size=4 [19:18:08]MH_SAM_APDU [19:18:08]CAPDU: 80 13 01 00 [19:18:08]Write to MH i2c: E2 08 00 2C 07 80 13 01 00 00 00 00 00 B0 [19:18:08]Write i2c OK [19:18:08]MH_I2C_Read... [19:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:08]Read from MH i2c: E2 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 0E 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 0E 00 2C 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 41 [19:18:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:18:08]wFMCommunicate OK [19:18:08]SAM_PROTO_GetShiftState done [19:18:08]FM_GetShiftState done [19:18:08]req_shift_opened done [19:18:08]requested_item shift.open_date is exist - process it [19:18:08]req_shift_open_date [19:18:08]req_shift_open_date done [19:18:08]produce_requested_data done [19:18:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139884,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:18:08]process_action_free close_receipt [19:18:08]json_value_free [19:18:08]json_value_free done [19:18:08]process_json_proto returns [19:18:08]Send response to host [19:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139884,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:18:08]free response buf [19:18:08]execute_script done [19:18:08]execute_script returns [19:18:08]free content buf [19:18:08]Sock 7.Close socket [19:18:08]Sock 7.Thread stoped [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:51]accept exits with 9 [19:18:51]New connection [19:18:51]New thread 3066940772 created [19:18:51]Thread 3066797412 joined [19:18:51]Waiting for new connection... [19:18:51] Sock 9.Parse request [19:18:51]Sock 9.Check first char [19:18:51]Sock 9.First char is OK [19:18:51]request: POST /json_proto HTTP/1.0 [19:18:51]Method: POST [19:18:51]URL: /json_proto [19:18:51]Method is POST - this is cgi request [19:18:51]url: /json_proto [19:18:51]query_string will be loaded in cgi processing [19:18:51]execute_cgi json_proto POST (null) [19:18:51]execute_cgi path=json_proto method=POST [19:18:51]POST find Content-Length [19:18:51]Host: 172.17.45.67:8080 [19:18:51]Content-Length: 682 [19:18:51]Content-Type: application/json [19:18:51] [19:18:51]POST finish read [19:18:51]Found Content-Length = 682 [19:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [19:18:51]execute_script... [19:18: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)593739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [19:18:51]POST & json_proto [19:18:51]process_json_proto [19:18:51]json parsed OK: [19:18:51]protocol is kg_v1.0 [19:18:51]action value=close_receipt [19:18:51]process_action close_receipt [19:18:51]cmd_close_receipt [19:18:51]MH_GetDate [19:18:51]Write to MH i2c: F0 00 00 2D 07 23 [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: F0 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: F0 09 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: F0 09 00 2D 07 00 1B EC C4 66 5F 7F 2B 66 CC [19:18:51]GetLastDocTimeStamp 1724181485 [19:18:51]current date 1724181531 [19:18:51]FM_GetShiftState [19:18:51]SAM_PROTO_GetShiftState [19:18:51]wFMCommunicate request_size=4 [19:18:51]MH_SAM_APDU [19:18:51]CAPDU: 80 13 01 00 [19:18:51]Write to MH i2c: E2 08 00 2E 07 80 13 01 00 00 00 00 00 B2 [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:51]Read from MH i2c: E2 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 0E 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 0E 00 2E 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 43 [19:18:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:18:51]wFMCommunicate OK [19:18:51]SAM_PROTO_GetShiftState done [19:18:51]FM_GetShiftState done [19:18:51]opened in 1724113785 [19:18:51]opened+sec_in_day 1724200185 [19:18:51]quantity*price = 50063 [19:18:51]sum+1 = 50064 [19:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 357 20.08.2024 19:18 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139885 ФПД: 200076198593280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191851&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139885&fm=200076198593280&tin=02508201610067®Number=0000000000092569&sum=50000 [19:18:52]StoreToDocumentArchive [19:18:52]shift 453 fd 139885 [19:18:52]save to /storage/0453/doc_00139885 [19:18:52]save last doc name /storage/0453/doc_00139885 to /storage/kkm_last_doc_name [19:18:52]save OK [19:18:52]Clear old archive folders... [19:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:18:52]tlvbuf is 004021D0 [19:18:52]SAM_PROTO_ClearQueue [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 09 00 00 [19:18:52]Write to MH i2c: E2 08 00 3B 07 80 09 00 00 00 00 00 00 B4 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [19:18:52]RAPDU: 90 00 [19:18:52]wFMCommunicate OK [19:18:52]SAM_PROTO_ClearQueue done [19:18:52]KKMCreateOFDPacket [19:18:52]OFDProtocolAddRootSTLVToBuf [19:18:52]FM_MakeSignedData [19:18:52]FM_MakeSignedData [19:18:52]SAM_PROTO_SignData [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 0D 01 02 [19:18:52]Write to MH i2c: E2 08 00 3C 07 80 0D 01 02 00 00 00 00 BC [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 3C 07 00 90 00 B7 [19:18:52]RAPDU: 90 00 [19:18:52]wFMCommunicate OK [19:18:52]wFMCommunicate request_size=255 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 65 01 00 00 F4 03 04 00 1B EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 22 02 00 35 04 06 00 [19:18:52]Write to MH i2c: E2 02 01 3D 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 65 01 00 00 F4 03 04 00 1B EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 22 02 00 35 04 06 00 00 00 A9 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 3D 07 00 90 00 B8 [19:18:52]RAPDU: 90 00 [19:18:52]wFMCommunicate OK [19:18:52]wFMCommunicate request_size=11 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 0D 02 02 06 B5 F7 DE BE C3 00 [19:18:52]Write to MH i2c: E2 0E 00 3E 07 80 0D 02 02 06 00 B5 F7 DE BE C3 00 00 00 D6 [19:18:52]OFD Sender: No OFD packet to send [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 3E 07 00 90 00 B9 [19:18:52]RAPDU: 90 00 [19:18:52]wFMCommunicate OK [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 0D 03 02 [19:18:52]Write to MH i2c: E2 08 00 3F 07 80 0D 03 02 00 00 00 00 C1 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 0B 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 0B 00 3F 07 00 A3 9F 5E 29 7A D9 5A 77 90 00 AF [19:18:52]RAPDU: A3 9F 5E 29 7A D9 5A 77 90 00 [19:18:52]wFMCommunicate OK [19:18:52]SAM_PROTO_SignData done [19:18:52]FM_MakeSignedData done [19:18:52]CreateOFDProtocolMessage [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 11 00 00 [19:18:52]Write to MH i2c: E2 08 00 40 07 80 11 00 00 00 00 00 00 C1 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 17 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 17 00 40 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [19:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:18:52]wFMCommunicate OK [19:18:52]CreateOFDProtocolMessage done [19:18:52]OFDSenderStorePacket 139885 [19:18:52]StoreOFDPacket docnum=139885 [19:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A0 41 08 01 03 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 65 01 00 00 F4 03 04 00 1B EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 22 02 00 35 04 06 00 B5 F7 DE BE C3 00 A3 9F 5E 29 7A D9 5A 77 [19:18:52]CheckFolder [19:18:52]dirname=/storage/ofd_packets [19:18:52]CheckFolder done [19:18:52]ProducePacketName [19:18:52]name=ofd_packets/00139885 [19:18:52]NVStorageSaveData ofd_packets/00139885 [19:18:52]File name is /storage/ofd_packets/00139885 [19:18:52]Write 302 bytes [19:18:52]NVStorageSaveData done [19:18:52]OFDSenderStorePacket done [19:18:52]KKMCreateOFDPacket done [19:18:52]NVStorageSaveData kkm_last_timestamp [19:18:52]File name is /storage/kkm_last_timestamp [19:18:52]Write 4 bytes [19:18:52]NVStorageSaveData done [19:18:52]ExternCall_PrintAddStr [19:18:52]wPrintStart [19:18:52]Write to MH i2c: 01 00 00 41 07 48 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: 01 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: 01 07 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: 01 07 00 41 07 00 00 00 00 00 FF 0F 5D [19:18:52]RasterBufferAndPrint [19:18:52]line Счет N : (1)593739 [19:18:52]line ИНН: 02508201610067 [19:18:52]line Контрольно-Кассовый Чек [19:18:52]line ПРОДАЖА [19:18:52]line ТРК (МРК, ГНК) : 44 [19:18:52]line Товар: 2710194210 [19:18:52]line ДТ(л)-К-5 [19:18:52]line 6.570 * 76.20 [19:18:52]line = 500.63 [19:18:52]line НДС 12% НСП 1% [19:18:52]line > о реализуемом товаре [19:18:52]line ОКРУГЛЕНИЕ: -0.63 [19:18:52]line ИТОГО: 500.00 [19:18:52]line Внесено: 500.00 [19:18:52]line СДАЧА: 0.00 [19:18:52]line НСП 1% : 4.43 [19:18:52]line НДС 12% : 53.16 [19:18:52]line Наличными: 500.00 [19:18:52]line Безнал.: 0.00 [19:18:52]line Место: АЗС № 136 "Партнер Нефть" [19:18:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:18:52]line СНО: Общий режим [19:18:52]line Чек 357 20.08.2024 19:18 [19:18:52]line Смена: 453 ФФД: 1.0 [19:18:52]line ЗНМ: 0300000067 [19:18:52]line РНМ: 0000000000092569 [19:18:52]line Версия ККМ: 001 [19:18:52]line ФМ: 0000000000871776 [19:18:52]line ФД: 139885 [19:18:52]line ФПД: 200076198593280 [19:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191851&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139885&fm=200076198593280&tin=02508201610067®Number=0000000000092569&sum=50000 [19:18:52]written 0, free lines is 4095 [19:18:52]OFD Sender: Processing packet 139885 [packets to send 137, broken 136] [19:18:52]ProducePacketName [19:18:52]name=ofd_packets/00139885 [19:18:52]OFD Sender: To server: pG, [19:18:52]CommunicateWithHost lk.salyk.kg:30040 [19:18:52]ConnectInit lk.salyk.kg [19:18:53]Connected sock=10 [19:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A0 41 08 01 03 C6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 65 01 00 00 F4 03 04 00 1B EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 22 02 00 35 04 06 00 B5 F7 DE BE C3 00 A3 9F 5E 29 7A D9 5A 77 [19:18:53]Write to MH i2c: 01 00 00 6C 07 73 [19:18:53]Write i2c OK [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: 01 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: 01 07 00 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: 01 07 00 6C 07 00 00 00 00 00 DA 0C 60 [19:18:53]RasterBufferAndPrint [19:18:53]line [19:18:53]line [19:18:53]line [19:18:53]line [19:18:53]line [19:18:53]written 0, free lines is 3298 [19:18:53]MH_Cut [19:18:53]Write to MH i2c: D1 01 00 73 07 01 4C [19:18:53]Write i2c OK [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: D1 [19:18:53]MH_I2C_Read... [19:18:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 11 2F 47 00 97 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 22 02 00 F4 03 04 00 AE 92 C4 66 B6 04 01 00 00 05 B5 62 2E 85 4B 2D 06 [19:18:53]CommunicateWithHost err = 0 [19:18:53]CheckOFDResponse [19:18:53]1017 (14) - 77093643461234 [19:18:53]1041 (16) - 0000000000871776 [19:18:53]1040 (4) - 139885 [19:18:53]1012 (4) - 20.08.2024 12:57 [19:18:53]1206 (1) - 0 [19:18:53]OFD Sender: Remove packet 139885 [19:18:53]ProducePacketName [19:18:53]name=ofd_packets/00139885 [19:18:53]NVStorageDeleteData [19:18:53]Read from MH i2c: D1 01 00 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: D1 01 00 73 07 00 4B [19:18:53]Write to MH i2c: 01 00 00 74 07 7B [19:18:53]Write i2c OK [19:18:53]MH_I2C_Read... [19:18:53]OFD Sender: No OFD packet to send [19:18:54]*** Cut start [19:18:54]*** Partial cut [19:18:54]*** CUTSNS_PIN = 1 [19:18:54]*** CUTSNS_PIN = 0 [19:18:54]*** Brake cut motor [19:18:54]Read from MH i2c: 01 [19:18:54]MH_I2C_Read... [19:18:54]*** Stop cut motor [19:18:54]*** Cut end [19:18:54]Read from MH i2c: 01 07 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: 01 07 00 74 07 00 00 00 00 00 FF 0F 90 [19:18:54]process_action close_receipt done [19:18:54]requested_data is exist [19:18:54]produce_requested_data [19:18:54]requested_item fm.sn is exist - process it [19:18:54]wFMCommunicate request_size=4 [19:18:54]MH_SAM_APDU [19:18:54]CAPDU: 80 11 00 00 [19:18:54]Write to MH i2c: E2 08 00 75 07 80 11 00 00 00 00 00 00 F6 [19:18:54]Write i2c OK [19:18:54]MH_I2C_Read... [19:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:54]Read from MH i2c: E2 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 17 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 17 00 75 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [19:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:18:54]wFMCommunicate OK [19:18:54]requested_item fd.num is exist - process it [19:18:54]SAM_PROTO_GetFieldsCounters [19:18:54]wFMCommunicate request_size=4 [19:18:54]MH_SAM_APDU [19:18:54]CAPDU: 80 13 00 00 [19:18:54]Write to MH i2c: E2 08 00 76 07 80 13 00 00 00 00 00 00 F9 [19:18:54]Write i2c OK [19:18:54]MH_I2C_Read... [19:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:54]Read from MH i2c: E2 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 62 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 62 00 76 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 22 02 00 0E 04 04 00 C5 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 AD [19:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 22 02 00 0E 04 04 00 C5 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 [19:18:54]wFMCommunicate OK [19:18:54]SAM_PROTO_GetFieldsCounters done [19:18:54]requested_item shift.num is exist - process it [19:18:54]requested_item shift.opened is exist - process it [19:18:54]req_shift_opened [19:18:54]FM_GetShiftState [19:18:54]SAM_PROTO_GetShiftState [19:18:54]wFMCommunicate request_size=4 [19:18:54]MH_SAM_APDU [19:18:54]CAPDU: 80 13 01 00 [19:18:54]Write to MH i2c: E2 08 00 77 07 80 13 01 00 00 00 00 00 FB [19:18:54]Write i2c OK [19:18:54]MH_I2C_Read... [19:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:54]Read from MH i2c: E2 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 0E 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 0E 00 77 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8C [19:18:54]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:18:54]wFMCommunicate OK [19:18:54]SAM_PROTO_GetShiftState done [19:18:54]FM_GetShiftState done [19:18:54]req_shift_opened done [19:18:54]requested_item shift.open_date is exist - process it [19:18:54]req_shift_open_date [19:18:54]req_shift_open_date done [19:18:54]produce_requested_data done [19:18:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139885,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:18:54]process_action_free close_receipt [19:18:54]json_value_free [19:18:54]json_value_free done [19:18:54]process_json_proto returns [19:18:54]Send response to host [19:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139885,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:18:54]free response buf [19:18:54]execute_script done [19:18:54]execute_script returns [19:18:54]free content buf [19:18:54]Sock 9.Close socket [19:18:54]Sock 9.Thread stoped [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:21]accept exits with 7 [19:19:21]New connection [19:19:21]New thread 3066797412 created [19:19:21]Thread 3066940772 joined [19:19:21]Waiting for new connection... [19:19:21] Sock 7.Parse request [19:19:21]Sock 7.Check first char [19:19:21]Sock 7.First char is OK [19:19:21]request: POST /json_proto HTTP/1.0 [19:19:21]Method: POST [19:19:21]URL: /json_proto [19:19:21]Method is POST - this is cgi request [19:19:21]url: /json_proto [19:19:21]query_string will be loaded in cgi processing [19:19:21]execute_cgi json_proto POST (null) [19:19:21]execute_cgi path=json_proto method=POST [19:19:21]POST find Content-Length [19:19:21]Host: 172.17.45.67:8080 [19:19:21]Content-Length: 678 [19:19:21]Content-Type: application/json [19:19:21] [19:19:21]POST finish read [19:19:21]Found Content-Length = 678 [19:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:21]execute_script... [19:19:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:21]POST & json_proto [19:19:21]process_json_proto [19:19:21]json parsed OK: [19:19:21]protocol is kg_v1.0 [19:19:21]action value=close_receipt [19:19:21]process_action close_receipt [19:19:21]cmd_close_receipt [19:19:21]MH_GetDate [19:19:21]Write to MH i2c: F0 00 00 78 07 6E [19:19:21]Write i2c OK [19:19:21]MH_I2C_Read... [19:19:21]Read from MH i2c: F0 [19:19:21]MH_I2C_Read... [19:19:21]Read from MH i2c: F0 09 00 [19:19:21]MH_I2C_Read... [19:19:21]Read from MH i2c: F0 09 00 78 07 00 3A EC C4 66 5F 7F 2B 66 36 [19:19:21]GetLastDocTimeStamp 1724181531 [19:19:21]current date 1724181562 [19:19:21]FM_GetShiftState [19:19:21]SAM_PROTO_GetShiftState [19:19:21]wFMCommunicate request_size=4 [19:19:21]MH_SAM_APDU [19:19:21]CAPDU: 80 13 01 00 [19:19:21]Write to MH i2c: E2 08 00 79 07 80 13 01 00 00 00 00 00 FD [19:19:21]Write i2c OK [19:19:21]MH_I2C_Read... [19:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:21]Read from MH i2c: E2 [19:19:21]MH_I2C_Read... [19:19:21]Read from MH i2c: E2 0E 00 [19:19:21]MH_I2C_Read... [19:19:21]Read from MH i2c: E2 0E 00 79 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8E [19:19:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:19:21]wFMCommunicate OK [19:19:21]SAM_PROTO_GetShiftState done [19:19:21]FM_GetShiftState done [19:19:21]opened in 1724113785 [19:19:21]opened+sec_in_day 1724200185 [19:19:21]quantity*price = 70037 [19:19:21]sum+1 = 70038 [19:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 358 20.08.2024 19:19 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139886 ФПД: 163668925820911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191922&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139886&fm=163668925820911&tin=02508201610067®Number=0000000000092569&sum=70000 [19:19:22]StoreToDocumentArchive [19:19:22]shift 453 fd 139886 [19:19:22]save to /storage/0453/doc_00139886 [19:19:22]save last doc name /storage/0453/doc_00139886 to /storage/kkm_last_doc_name [19:19:22]save OK [19:19:22]Clear old archive folders... [19:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:22]tlvbuf is 003F5810 [19:19:22]SAM_PROTO_ClearQueue [19:19:22]wFMCommunicate request_size=4 [19:19:22]MH_SAM_APDU [19:19:22]CAPDU: 80 09 00 00 [19:19:22]Write to MH i2c: E2 08 00 86 07 80 09 00 00 00 00 00 00 FF [19:19:22]Write i2c OK [19:19:22]MH_I2C_Read... [19:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:22]Read from MH i2c: E2 [19:19:22]MH_I2C_Read... [19:19:22]Read from MH i2c: E2 03 00 [19:19:22]MH_I2C_Read... [19:19:22]Read from MH i2c: E2 03 00 86 07 00 90 00 01 [19:19:22]RAPDU: 90 00 [19:19:22]wFMCommunicate OK [19:19:22]SAM_PROTO_ClearQueue done [19:19:22]KKMCreateOFDPacket [19:19:22]OFDProtocolAddRootSTLVToBuf [19:19:22]FM_MakeSignedData [19:19:22]FM_MakeSignedData [19:19:22]SAM_PROTO_SignData [19:19:22]wFMCommunicate request_size=4 [19:19:22]MH_SAM_APDU [19:19:22]CAPDU: 80 0D 01 02 [19:19:22]Write to MH i2c: E2 08 00 87 07 80 0D 01 02 00 00 00 00 07 [19:19:22]Write i2c OK [19:19:22]MH_I2C_Read... [19:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:23]Read from MH i2c: E2 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 87 07 00 90 00 02 [19:19:23]RAPDU: 90 00 [19:19:23]wFMCommunicate OK [19:19:23]wFMCommunicate request_size=255 [19:19:23]MH_SAM_APDU [19:19:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 3A EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 22 02 00 35 04 06 00 94 [19:19:23]Write to MH i2c: E2 02 01 88 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 3A EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 22 02 00 35 04 06 00 94 00 00 1A [19:19:23]Write i2c OK [19:19:23]MH_I2C_Read... [19:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:23]Read from MH i2c: E2 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 88 07 00 90 00 03 [19:19:23]RAPDU: 90 00 [19:19:23]wFMCommunicate OK [19:19:23]wFMCommunicate request_size=10 [19:19:23]MH_SAM_APDU [19:19:23]CAPDU: 80 0D 02 02 05 DB 24 2F 2F EF [19:19:23]Write to MH i2c: E2 0D 00 89 07 80 0D 02 02 05 00 DB 24 2F 2F EF 00 00 60 [19:19:23]Write i2c OK [19:19:23]MH_I2C_Read... [19:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:23]Read from MH i2c: E2 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 03 00 89 07 00 90 00 04 [19:19:23]RAPDU: 90 00 [19:19:23]wFMCommunicate OK [19:19:23]wFMCommunicate request_size=4 [19:19:23]MH_SAM_APDU [19:19:23]CAPDU: 80 0D 03 02 [19:19:23]Write to MH i2c: E2 08 00 8A 07 80 0D 03 02 00 00 00 00 0C [19:19:23]Write i2c OK [19:19:23]MH_I2C_Read... [19:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:23]Read from MH i2c: E2 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 0B 00 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 0B 00 8A 07 00 94 61 3C F9 05 E5 74 34 90 00 C9 [19:19:23]RAPDU: 94 61 3C F9 05 E5 74 34 90 00 [19:19:23]wFMCommunicate OK [19:19:23]SAM_PROTO_SignData done [19:19:23]FM_MakeSignedData done [19:19:23]CreateOFDProtocolMessage [19:19:23]wFMCommunicate request_size=4 [19:19:23]MH_SAM_APDU [19:19:23]CAPDU: 80 11 00 00 [19:19:23]Write to MH i2c: E2 08 00 8B 07 80 11 00 00 00 00 00 00 0C [19:19:23]Write i2c OK [19:19:23]MH_I2C_Read... [19:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:23]Read from MH i2c: E2 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 17 00 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: E2 17 00 8B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [19:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:19:23]wFMCommunicate OK [19:19:23]CreateOFDProtocolMessage done [19:19:23]OFDSenderStorePacket 139886 [19:19:23]StoreOFDPacket docnum=139886 [19:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 B3 07 01 4B B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 3A EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 22 02 00 35 04 06 00 94 DB 24 2F 2F EF 94 61 3C F9 05 E5 74 34 [19:19:23]CheckFolder [19:19:23]dirname=/storage/ofd_packets [19:19:23]CheckFolder done [19:19:23]ProducePacketName [19:19:23]name=ofd_packets/00139886 [19:19:23]NVStorageSaveData ofd_packets/00139886 [19:19:23]File name is /storage/ofd_packets/00139886 [19:19:23]Write 301 bytes [19:19:23]NVStorageSaveData done [19:19:23]OFDSenderStorePacket done [19:19:23]KKMCreateOFDPacket done [19:19:23]NVStorageSaveData kkm_last_timestamp [19:19:23]File name is /storage/kkm_last_timestamp [19:19:23]Write 4 bytes [19:19:23]NVStorageSaveData done [19:19:23]ExternCall_PrintAddStr [19:19:23]wPrintStart [19:19:23]Write to MH i2c: 01 00 00 8C 07 93 [19:19:23]Write i2c OK [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: 01 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: 01 07 00 [19:19:23]MH_I2C_Read... [19:19:23]Read from MH i2c: 01 07 00 8C 07 00 00 00 00 00 FF 0F A8 [19:19:23]RasterBufferAndPrint [19:19:23]line Счет N : (1)593740 [19:19:23]line ИНН: 02508201610067 [19:19:23]line Контрольно-Кассовый Чек [19:19:23]line ПРОДАЖА [19:19:23]line ТРК (МРК, ГНК) : 62 [19:19:23]line Товар: 2710124130 [19:19:23]line Аи-92-К-5 [19:19:23]line 10.330 * 67.80 [19:19:23]line = 700.37 [19:19:23]line НДС 12% НСП 1% [19:19:23]line > о реализуемом товаре [19:19:23]line ОКРУГЛЕНИЕ: -0.37 [19:19:23]line ИТОГО: 700.00 [19:19:23]line Внесено: 700.00 [19:19:23]line СДАЧА: 0.00 [19:19:23]line НСП 1% : 6.20 [19:19:23]line НДС 12% : 74.38 [19:19:23]line Наличными: 700.00 [19:19:23]line Безнал.: 0.00 [19:19:23]line Место: АЗС № 136 "Партнер Нефть" [19:19:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:19:23]line СНО: Общий режим [19:19:23]line Чек 358 20.08.2024 19:19 [19:19:23]line Смена: 453 ФФД: 1.0 [19:19:23]line ЗНМ: 0300000067 [19:19:23]line РНМ: 0000000000092569 [19:19:23]line Версия ККМ: 001 [19:19:23]line ФМ: 0000000000871776 [19:19:23]line ФД: 139886 [19:19:23]line ФПД: 163668925820911 [19:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T191922&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139886&fm=163668925820911&tin=02508201610067®Number=0000000000092569&sum=70000 [19:19:23]written 0, free lines is 4095 [19:19:23]OFD Sender: Processing packet 139886 [packets to send 137, broken 136] [19:19:23]ProducePacketName [19:19:23]name=ofd_packets/00139886 [19:19:23]OFD Sender: To server: pG, [19:19:23]CommunicateWithHost lk.salyk.kg:30040 [19:19:23]ConnectInit lk.salyk.kg [19:19:23]Connected sock=10 [19:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 B3 07 01 4B B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 3A EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 22 02 00 35 04 06 00 94 DB 24 2F 2F EF 94 61 3C F9 05 E5 74 34 [19:19:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 26 0A 47 00 95 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 22 02 00 F4 03 04 00 CD 92 C4 66 B6 04 01 00 00 3D ED 52 82 81 CF 25 AF [19:19:24]CommunicateWithHost err = 0 [19:19:24]CheckOFDResponse [19:19:24]1017 (14) - 77093643461234 [19:19:24]1041 (16) - 0000000000871776 [19:19:24]1040 (4) - 139886 [19:19:24]1012 (4) - 20.08.2024 12:57 [19:19:24]1206 (1) - 0 [19:19:24]OFD Sender: Remove packet 139886 [19:19:24]ProducePacketName [19:19:24]name=ofd_packets/00139886 [19:19:24]NVStorageDeleteData [19:19:24]Write to MH i2c: 01 00 00 B7 07 BE [19:19:24]Write i2c OK [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: 01 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: 01 07 00 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: 01 07 00 B7 07 00 00 00 00 00 DA 0C AB [19:19:24]RasterBufferAndPrint [19:19:24]line [19:19:24]line [19:19:24]line [19:19:24]line [19:19:24]line [19:19:24]written 0, free lines is 3297 [19:19:24]MH_Cut [19:19:24]Write to MH i2c: D1 01 00 BE 07 01 97 [19:19:24]Write i2c OK [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: D1 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: D1 01 00 [19:19:24]MH_I2C_Read... [19:19:24]Read from MH i2c: D1 01 00 BE 07 00 96 [19:19:24]Write to MH i2c: 01 00 00 BF 07 C6 [19:19:24]Write i2c OK [19:19:24]MH_I2C_Read... [19:19:24]OFD Sender: No OFD packet to send [19:19:24]*** Cut start [19:19:24]*** Partial cut [19:19:24]*** CUTSNS_PIN = 1 [19:19:25]*** CUTSNS_PIN = 0 [19:19:25]*** Brake cut motor [19:19:25]Read from MH i2c: 01 [19:19:25]MH_I2C_Read... [19:19:25]*** Stop cut motor [19:19:25]*** Cut end [19:19:25]Read from MH i2c: 01 07 00 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 FF 0F DB [19:19:25]process_action close_receipt done [19:19:25]requested_data is exist [19:19:25]produce_requested_data [19:19:25]requested_item fm.sn is exist - process it [19:19:25]wFMCommunicate request_size=4 [19:19:25]MH_SAM_APDU [19:19:25]CAPDU: 80 11 00 00 [19:19:25]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [19:19:25]Write i2c OK [19:19:25]MH_I2C_Read... [19:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:25]Read from MH i2c: E2 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: E2 17 00 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [19:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:19:25]wFMCommunicate OK [19:19:25]requested_item fd.num is exist - process it [19:19:25]SAM_PROTO_GetFieldsCounters [19:19:25]wFMCommunicate request_size=4 [19:19:25]MH_SAM_APDU [19:19:25]CAPDU: 80 13 00 00 [19:19:25]Write to MH i2c: E2 08 00 C1 07 80 13 00 00 00 00 00 00 44 [19:19:25]Write i2c OK [19:19:25]MH_I2C_Read... [19:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:25]Read from MH i2c: E2 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: E2 62 00 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: E2 62 00 C1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 22 02 00 0E 04 04 00 C5 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 FC [19:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 22 02 00 0E 04 04 00 C5 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 [19:19:25]wFMCommunicate OK [19:19:25]SAM_PROTO_GetFieldsCounters done [19:19:25]requested_item shift.num is exist - process it [19:19:25]requested_item shift.opened is exist - process it [19:19:25]req_shift_opened [19:19:25]FM_GetShiftState [19:19:25]SAM_PROTO_GetShiftState [19:19:25]wFMCommunicate request_size=4 [19:19:25]MH_SAM_APDU [19:19:25]CAPDU: 80 13 01 00 [19:19:25]Write to MH i2c: E2 08 00 C2 07 80 13 01 00 00 00 00 00 46 [19:19:25]Write i2c OK [19:19:25]MH_I2C_Read... [19:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:25]Read from MH i2c: E2 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: E2 0E 00 [19:19:25]MH_I2C_Read... [19:19:25]Read from MH i2c: E2 0E 00 C2 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D7 [19:19:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:19:25]wFMCommunicate OK [19:19:25]SAM_PROTO_GetShiftState done [19:19:25]FM_GetShiftState done [19:19:25]req_shift_opened done [19:19:25]requested_item shift.open_date is exist - process it [19:19:25]req_shift_open_date [19:19:25]req_shift_open_date done [19:19:25]produce_requested_data done [19:19:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139886,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:19:25]process_action_free close_receipt [19:19:25]json_value_free [19:19:25]json_value_free done [19:19:25]process_json_proto returns [19:19:25]Send response to host [19:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139886,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:19:25]free response buf [19:19:25]execute_script done [19:19:25]execute_script returns [19:19:25]free content buf [19:19:25]Sock 7.Close socket [19:19:25]Sock 7.Thread stoped [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:07]accept exits with 9 [19:21:07]New connection [19:21:07]New thread 3066940772 created [19:21:07]Thread 3066797412 joined [19:21:07]Waiting for new connection... [19:21:07] Sock 9.Parse request [19:21:07]Sock 9.Check first char [19:21:07]Sock 9.First char is OK [19:21:07]request: POST /json_proto HTTP/1.0 [19:21:07]Method: POST [19:21:07]URL: /json_proto [19:21:07]Method is POST - this is cgi request [19:21:07]url: /json_proto [19:21:07]query_string will be loaded in cgi processing [19:21:07]execute_cgi json_proto POST (null) [19:21:07]execute_cgi path=json_proto method=POST [19:21:07]POST find Content-Length [19:21:07]Host: 172.17.45.67:8080 [19:21:07]Content-Length: 677 [19:21:07]Content-Type: application/json [19:21:07] [19:21:07]POST finish read [19:21:07]Found Content-Length = 677 [19:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:07]execute_script... [19:21: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)593741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:07]POST & json_proto [19:21:07]process_json_proto [19:21:07]json parsed OK: [19:21:07]protocol is kg_v1.0 [19:21:07]action value=close_receipt [19:21:07]process_action close_receipt [19:21:07]cmd_close_receipt [19:21:07]MH_GetDate [19:21:07]Write to MH i2c: F0 00 00 C3 07 B9 [19:21:07]Write i2c OK [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: F0 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: F0 09 00 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: F0 09 00 C3 07 00 A4 EC C4 66 5F 7F 2B 66 EB [19:21:07]GetLastDocTimeStamp 1724181562 [19:21:07]current date 1724181668 [19:21:07]FM_GetShiftState [19:21:07]SAM_PROTO_GetShiftState [19:21:07]wFMCommunicate request_size=4 [19:21:07]MH_SAM_APDU [19:21:07]CAPDU: 80 13 01 00 [19:21:07]Write to MH i2c: E2 08 00 C4 07 80 13 01 00 00 00 00 00 48 [19:21:07]Write i2c OK [19:21:07]MH_I2C_Read... [19:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:07]Read from MH i2c: E2 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: E2 0E 00 [19:21:07]MH_I2C_Read... [19:21:07]Read from MH i2c: E2 0E 00 C4 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D9 [19:21:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:21:07]wFMCommunicate OK [19:21:07]SAM_PROTO_GetShiftState done [19:21:07]FM_GetShiftState done [19:21:07]opened in 1724113785 [19:21:07]opened+sec_in_day 1724200185 [19:21:07]quantity*price = 55053 [19:21:07]sum+1 = 55055 [19:21:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 359 20.08.2024 19:21 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139887 ФПД: 173516124935903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139887&fm=173516124935903&tin=02508201610067®Number=0000000000092569&sum=55000 [19:21:08]StoreToDocumentArchive [19:21:08]shift 453 fd 139887 [19:21:08]save to /storage/0453/doc_00139887 [19:21:08]save last doc name /storage/0453/doc_00139887 to /storage/kkm_last_doc_name [19:21:08]save OK [19:21:08]Clear old archive folders... [19:21:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:08]tlvbuf is 003F6490 [19:21:08]SAM_PROTO_ClearQueue [19:21:08]wFMCommunicate request_size=4 [19:21:08]MH_SAM_APDU [19:21:08]CAPDU: 80 09 00 00 [19:21:08]Write to MH i2c: E2 08 00 D1 07 80 09 00 00 00 00 00 00 4A [19:21:08]Write i2c OK [19:21:08]MH_I2C_Read... [19:21:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:08]Read from MH i2c: E2 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 03 00 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 03 00 D1 07 00 90 00 4C [19:21:08]RAPDU: 90 00 [19:21:08]wFMCommunicate OK [19:21:08]SAM_PROTO_ClearQueue done [19:21:08]KKMCreateOFDPacket [19:21:08]OFDProtocolAddRootSTLVToBuf [19:21:08]FM_MakeSignedData [19:21:08]FM_MakeSignedData [19:21:08]SAM_PROTO_SignData [19:21:08]wFMCommunicate request_size=4 [19:21:08]MH_SAM_APDU [19:21:08]CAPDU: 80 0D 01 02 [19:21:08]Write to MH i2c: E2 08 00 D2 07 80 0D 01 02 00 00 00 00 52 [19:21:08]Write i2c OK [19:21:08]MH_I2C_Read... [19:21:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:08]Read from MH i2c: E2 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 03 00 [19:21:08]MH_I2C_Read... [19:21:08]Read from MH i2c: E2 03 00 D2 07 00 90 00 4D [19:21:08]RAPDU: 90 00 [19:21:08]wFMCommunicate OK [19:21:08]wFMCommunicate request_size=255 [19:21:08]MH_SAM_APDU [19:21:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 A4 EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 22 02 00 35 04 06 00 9D [19:21:08]Write to MH i2c: E2 02 01 D3 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 A4 EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 22 02 00 35 04 06 00 9D 00 00 00 [19:21:08]Write i2c OK [19:21:08]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 D3 07 00 90 00 4E [19:21:09]RAPDU: 90 00 [19:21:09]wFMCommunicate OK [19:21:09]wFMCommunicate request_size=10 [19:21:09]MH_SAM_APDU [19:21:09]CAPDU: 80 0D 02 02 05 CF DE FD 56 DF [19:21:09]Write to MH i2c: E2 0D 00 D4 07 80 0D 02 02 05 00 CF DE FD 56 DF 00 00 3E [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [19:21:09]RAPDU: 90 00 [19:21:09]wFMCommunicate OK [19:21:09]wFMCommunicate request_size=4 [19:21:09]MH_SAM_APDU [19:21:09]CAPDU: 80 0D 03 02 [19:21:09]Write to MH i2c: E2 08 00 D5 07 80 0D 03 02 00 00 00 00 57 [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 0B 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 0B 00 D5 07 00 DE 9E F0 51 91 C7 F7 3C 90 00 A0 [19:21:09]RAPDU: DE 9E F0 51 91 C7 F7 3C 90 00 [19:21:09]wFMCommunicate OK [19:21:09]SAM_PROTO_SignData done [19:21:09]FM_MakeSignedData done [19:21:09]CreateOFDProtocolMessage [19:21:09]wFMCommunicate request_size=4 [19:21:09]MH_SAM_APDU [19:21:09]CAPDU: 80 11 00 00 [19:21:09]Write to MH i2c: E2 08 00 D6 07 80 11 00 00 00 00 00 00 57 [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:09]Read from MH i2c: E2 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 17 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: E2 17 00 D6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [19:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:21:09]wFMCommunicate OK [19:21:09]CreateOFDProtocolMessage done [19:21:09]OFDSenderStorePacket 139887 [19:21:09]StoreOFDPacket docnum=139887 [19:21:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 71 49 07 01 03 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 A4 EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 22 02 00 35 04 06 00 9D CF DE FD 56 DF DE 9E F0 51 91 C7 F7 3C [19:21:09]CheckFolder [19:21:09]dirname=/storage/ofd_packets [19:21:09]CheckFolder done [19:21:09]ProducePacketName [19:21:09]name=ofd_packets/00139887 [19:21:09]NVStorageSaveData ofd_packets/00139887 [19:21:09]File name is /storage/ofd_packets/00139887 [19:21:09]Write 301 bytes [19:21:09]NVStorageSaveData done [19:21:09]OFDSenderStorePacket done [19:21:09]KKMCreateOFDPacket done [19:21:09]NVStorageSaveData kkm_last_timestamp [19:21:09]File name is /storage/kkm_last_timestamp [19:21:09]Write 4 bytes [19:21:09]NVStorageSaveData done [19:21:09]OFD Sender: Processing packet 139887 [packets to send 137, broken 136] [19:21:09]ProducePacketName [19:21:09]name=ofd_packets/00139887 [19:21:09]OFD Sender: To server: pG, [19:21:09]CommunicateWithHost lk.salyk.kg:30040 [19:21:09]ConnectInit lk.salyk.kg [19:21:09]ExternCall_PrintAddStr [19:21:09]wPrintStart [19:21:09]Write to MH i2c: 01 00 00 D7 07 DE [19:21:09]Write i2c OK [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: 01 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: 01 07 00 [19:21:09]MH_I2C_Read... [19:21:09]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [19:21:09]RasterBufferAndPrint [19:21:09]line Счет N : (1)593741 [19:21:09]line ИНН: 02508201610067 [19:21:09]line Контрольно-Кассовый Чек [19:21:09]line ПРОДАЖА [19:21:09]line ТРК (МРК, ГНК) : 42 [19:21:09]line Товар: 2710124130 [19:21:09]line Аи-92-К-5 [19:21:09]line 8.120 * 67.80 [19:21:09]line = 550.54 [19:21:09]line НДС 12% НСП 1% [19:21:09]line > о реализуемом товаре [19:21:09]line ОКРУГЛЕНИЕ: -0.54 [19:21:09]line ИТОГО: 550.00 [19:21:09]line Внесено: 550.00 [19:21:09]line СДАЧА: 0.00 [19:21:09]line НСП 1% : 4.87 [19:21:09]line НДС 12% : 58.46 [19:21:09]line Наличными: 550.00 [19:21:09]line Безнал.: 0.00 [19:21:09]line Место: АЗС № 136 "Партнер Нефть" [19:21:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:21:09]line СНО: Общий режим [19:21:09]line Чек 359 20.08.2024 19:21 [19:21:09]line Смена: 453 ФФД: 1.0 [19:21:09]line ЗНМ: 0300000067 [19:21:09]line РНМ: 0000000000092569 [19:21:09]line Версия ККМ: 001 [19:21:09]line ФМ: 0000000000871776 [19:21:09]line ФД: 139887 [19:21:09]line ФПД: 173516124935903 [19:21:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139887&fm=173516124935903&tin=02508201610067®Number=0000000000092569&sum=55000 [19:21:09]Connected sock=11 [19:21:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 71 49 07 01 03 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 A4 EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 22 02 00 35 04 06 00 9D CF DE FD 56 DF DE 9E F0 51 91 C7 F7 3C [19:21:09]written 0, free lines is 4095 [19:21:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A6 5B 47 00 78 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 22 02 00 F4 03 04 00 36 93 C4 66 B6 04 01 00 00 8C 56 67 D0 5C 3C 8D F7 [19:21:09]CommunicateWithHost err = 0 [19:21:09]CheckOFDResponse [19:21:09]1017 (14) - 77093643461234 [19:21:09]1041 (16) - 0000000000871776 [19:21:09]1040 (4) - 139887 [19:21:09]1012 (4) - 20.08.2024 12:59 [19:21:09]1206 (1) - 0 [19:21:09]OFD Sender: Remove packet 139887 [19:21:09]ProducePacketName [19:21:09]name=ofd_packets/00139887 [19:21:09]NVStorageDeleteData [19:21:10]Write to MH i2c: 01 00 00 02 08 0A [19:21:10]Write i2c OK [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: 01 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: 01 07 00 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 D8 0C F5 [19:21:10]RasterBufferAndPrint [19:21:10]line [19:21:10]line [19:21:10]line [19:21:10]line [19:21:10]line [19:21:10]written 0, free lines is 3295 [19:21:10]MH_Cut [19:21:10]Write to MH i2c: D1 01 00 09 08 01 E3 [19:21:10]Write i2c OK [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: D1 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: D1 01 00 [19:21:10]MH_I2C_Read... [19:21:10]Read from MH i2c: D1 01 00 09 08 00 E2 [19:21:10]Write to MH i2c: 01 00 00 0A 08 12 [19:21:10]Write i2c OK [19:21:10]MH_I2C_Read... [19:21:10]OFD Sender: No OFD packet to send [19:21:10]*** Cut start [19:21:10]*** Partial cut [19:21:10]*** CUTSNS_PIN = 1 [19:21:10]*** CUTSNS_PIN = 0 [19:21:11]*** Brake cut motor [19:21:11]Read from MH i2c: 01 [19:21:11]MH_I2C_Read... [19:21:11]*** Stop cut motor [19:21:11]*** Cut end [19:21:11]Read from MH i2c: 01 07 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: 01 07 00 0A 08 00 00 00 00 00 FF 0F 27 [19:21:11]process_action close_receipt done [19:21:11]requested_data is exist [19:21:11]produce_requested_data [19:21:11]requested_item fm.sn is exist - process it [19:21:11]wFMCommunicate request_size=4 [19:21:11]MH_SAM_APDU [19:21:11]CAPDU: 80 11 00 00 [19:21:11]Write to MH i2c: E2 08 00 0B 08 80 11 00 00 00 00 00 00 8D [19:21:11]Write i2c OK [19:21:11]MH_I2C_Read... [19:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:11]Read from MH i2c: E2 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 17 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 17 00 0B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E4 [19:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:21:11]wFMCommunicate OK [19:21:11]requested_item fd.num is exist - process it [19:21:11]SAM_PROTO_GetFieldsCounters [19:21:11]wFMCommunicate request_size=4 [19:21:11]MH_SAM_APDU [19:21:11]CAPDU: 80 13 00 00 [19:21:11]Write to MH i2c: E2 08 00 0C 08 80 13 00 00 00 00 00 00 90 [19:21:11]Write i2c OK [19:21:11]MH_I2C_Read... [19:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:11]Read from MH i2c: E2 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 62 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 62 00 0C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 22 02 00 0E 04 04 00 C5 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 4C [19:21:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 22 02 00 0E 04 04 00 C5 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 [19:21:11]wFMCommunicate OK [19:21:11]SAM_PROTO_GetFieldsCounters done [19:21:11]requested_item shift.num is exist - process it [19:21:11]requested_item shift.opened is exist - process it [19:21:11]req_shift_opened [19:21:11]FM_GetShiftState [19:21:11]SAM_PROTO_GetShiftState [19:21:11]wFMCommunicate request_size=4 [19:21:11]MH_SAM_APDU [19:21:11]CAPDU: 80 13 01 00 [19:21:11]Write to MH i2c: E2 08 00 0D 08 80 13 01 00 00 00 00 00 92 [19:21:11]Write i2c OK [19:21:11]MH_I2C_Read... [19:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:11]Read from MH i2c: E2 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 0E 00 [19:21:11]MH_I2C_Read... [19:21:11]Read from MH i2c: E2 0E 00 0D 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 23 [19:21:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:21:11]wFMCommunicate OK [19:21:11]SAM_PROTO_GetShiftState done [19:21:11]FM_GetShiftState done [19:21:11]req_shift_opened done [19:21:11]requested_item shift.open_date is exist - process it [19:21:11]req_shift_open_date [19:21:11]req_shift_open_date done [19:21:11]produce_requested_data done [19:21:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139887,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:21:11]process_action_free close_receipt [19:21:11]json_value_free [19:21:11]json_value_free done [19:21:11]process_json_proto returns [19:21:11]Send response to host [19:21:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139887,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:21:11]free response buf [19:21:11]execute_script done [19:21:11]execute_script returns [19:21:11]free content buf [19:21:11]Sock 9.Close socket [19:21:11]Sock 9.Thread stoped [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:21]int [19:21:21]Write to MH i2c: 01 00 00 0E 08 16 [19:21:21]*** FLAG_PRN_KEY set [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 0E 08 00 08 00 00 00 FF 0F 33 [19:21:21]state=0 [19:21:21]Key pressed [19:21:21]Feed [19:21:21]Write to MH i2c: D8 00 00 0F 08 EE [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: D8 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: D8 01 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: D8 01 00 0F 08 00 EF [19:21:21]int [19:21:21]Write to MH i2c: 01 00 00 10 08 18 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 10 08 00 48 00 00 00 3C 00 A3 [19:21:21]state=2 [19:21:21]Key pressed [19:21:21]int [19:21:21]Write to MH i2c: 01 00 00 11 08 19 [19:21:21]*** FLAG_PRN_KEY reset [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 11 08 00 00 00 00 00 FB 0F 2A [19:21:21]state=2 [19:21:21]Stop feed [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:23]accept exits with 7 [19:22:23]New connection [19:22:23]New thread 3066797412 created [19:22:23]Thread 3066940772 joined [19:22:23]Waiting for new connection... [19:22:23] Sock 7.Parse request [19:22:23]Sock 7.Check first char [19:22:23]Sock 7.First char is OK [19:22:23]request: POST /json_proto HTTP/1.0 [19:22:23]Method: POST [19:22:23]URL: /json_proto [19:22:23]Method is POST - this is cgi request [19:22:23]url: /json_proto [19:22:23]query_string will be loaded in cgi processing [19:22:23]execute_cgi json_proto POST (null) [19:22:23]execute_cgi path=json_proto method=POST [19:22:23]POST find Content-Length [19:22:23]Host: 172.17.45.67:8080 [19:22:23]Content-Length: 682 [19:22:23]Content-Type: application/json [19:22:23] [19:22:23]POST finish read [19:22:23]Found Content-Length = 682 [19:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 32.350, "sum" : 2400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:23]execute_script... [19: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)593742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 32.350, "sum" : 2400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:23]POST & json_proto [19:22:23]process_json_proto [19:22:23]json parsed OK: [19:22:23]protocol is kg_v1.0 [19:22:23]action value=close_receipt [19:22:23]process_action close_receipt [19:22:23]cmd_close_receipt [19:22:23]MH_GetDate [19:22:23]Write to MH i2c: F0 00 00 12 08 09 [19:22:23]Write i2c OK [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: F0 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: F0 09 00 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: F0 09 00 12 08 00 F0 EC C4 66 5F 7F 2B 66 87 [19:22:23]GetLastDocTimeStamp 1724181668 [19:22:23]current date 1724181744 [19:22:23]FM_GetShiftState [19:22:23]SAM_PROTO_GetShiftState [19:22:23]wFMCommunicate request_size=4 [19:22:23]MH_SAM_APDU [19:22:23]CAPDU: 80 13 01 00 [19:22:23]Write to MH i2c: E2 08 00 13 08 80 13 01 00 00 00 00 00 98 [19:22:23]Write i2c OK [19:22:23]MH_I2C_Read... [19:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:23]Read from MH i2c: E2 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: E2 0E 00 [19:22:23]MH_I2C_Read... [19:22:23]Read from MH i2c: E2 0E 00 13 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 29 [19:22:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:22:23]wFMCommunicate OK [19:22:23]SAM_PROTO_GetShiftState done [19:22:23]FM_GetShiftState done [19:22:23]opened in 1724113785 [19:22:23]opened+sec_in_day 1724200185 [19:22:23]quantity*price = 240037 [19:22:23]sum+1 = 240038 [19:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.91 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 360 20.08.2024 19:22 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139888 ФПД: 41598800556517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192224&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139888&fm=41598800556517&tin=02508201610067®Number=0000000000092569&sum=240000 [19:22:24]StoreToDocumentArchive [19:22:24]shift 453 fd 139888 [19:22:24]save to /storage/0453/doc_00139888 [19:22:24]save last doc name /storage/0453/doc_00139888 to /storage/kkm_last_doc_name [19:22:24]save OK [19:22:24]Clear old archive folders... [19:22:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:24]tlvbuf is 00477720 [19:22:24]SAM_PROTO_ClearQueue [19:22:24]wFMCommunicate request_size=4 [19:22:24]MH_SAM_APDU [19:22:24]CAPDU: 80 09 00 00 [19:22:24]Write to MH i2c: E2 08 00 20 08 80 09 00 00 00 00 00 00 9A [19:22:24]Write i2c OK [19:22:24]MH_I2C_Read... [19:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:25]Read from MH i2c: E2 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 03 00 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 03 00 20 08 00 90 00 9C [19:22:25]RAPDU: 90 00 [19:22:25]wFMCommunicate OK [19:22:25]SAM_PROTO_ClearQueue done [19:22:25]KKMCreateOFDPacket [19:22:25]OFDProtocolAddRootSTLVToBuf [19:22:25]FM_MakeSignedData [19:22:25]FM_MakeSignedData [19:22:25]SAM_PROTO_SignData [19:22:25]wFMCommunicate request_size=4 [19:22:25]MH_SAM_APDU [19:22:25]CAPDU: 80 0D 01 02 [19:22:25]Write to MH i2c: E2 08 00 21 08 80 0D 01 02 00 00 00 00 A2 [19:22:25]Write i2c OK [19:22:25]MH_I2C_Read... [19:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:25]Read from MH i2c: E2 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 03 00 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 03 00 21 08 00 90 00 9D [19:22:25]RAPDU: 90 00 [19:22:25]wFMCommunicate OK [19:22:25]wFMCommunicate request_size=255 [19:22:25]MH_SAM_APDU [19:22:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 7E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A5 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 63 00 00 00 00 07 04 06 00 80 A9 03 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 F0 EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 22 02 00 35 04 06 00 25 [19:22:25]Write to MH i2c: E2 02 01 22 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 7E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A5 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 63 00 00 00 00 07 04 06 00 80 A9 03 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 F0 EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 22 02 00 35 04 06 00 25 00 00 8F [19:22:25]Write i2c OK [19:22:25]MH_I2C_Read... [19:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:25]Read from MH i2c: E2 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 03 00 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 03 00 22 08 00 90 00 9E [19:22:25]RAPDU: 90 00 [19:22:25]wFMCommunicate OK [19:22:25]wFMCommunicate request_size=10 [19:22:25]MH_SAM_APDU [19:22:25]CAPDU: 80 0D 02 02 05 D5 79 BA F1 E5 [19:22:25]Write to MH i2c: E2 0D 00 23 08 80 0D 02 02 05 00 D5 79 BA F1 E5 00 00 8D [19:22:25]Write i2c OK [19:22:25]MH_I2C_Read... [19:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:25]Read from MH i2c: E2 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 03 00 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 03 00 23 08 00 90 00 9F [19:22:25]RAPDU: 90 00 [19:22:25]wFMCommunicate OK [19:22:25]wFMCommunicate request_size=4 [19:22:25]MH_SAM_APDU [19:22:25]CAPDU: 80 0D 03 02 [19:22:25]Write to MH i2c: E2 08 00 24 08 80 0D 03 02 00 00 00 00 A7 [19:22:25]Write i2c OK [19:22:25]MH_I2C_Read... [19:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:25]Read from MH i2c: E2 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 0B 00 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 0B 00 24 08 00 E2 25 69 DD 0C 1E 25 20 90 00 64 [19:22:25]RAPDU: E2 25 69 DD 0C 1E 25 20 90 00 [19:22:25]wFMCommunicate OK [19:22:25]SAM_PROTO_SignData done [19:22:25]FM_MakeSignedData done [19:22:25]CreateOFDProtocolMessage [19:22:25]wFMCommunicate request_size=4 [19:22:25]MH_SAM_APDU [19:22:25]CAPDU: 80 11 00 00 [19:22:25]Write to MH i2c: E2 08 00 25 08 80 11 00 00 00 00 00 00 A7 [19:22:25]Write i2c OK [19:22:25]MH_I2C_Read... [19:22:25]OFD Sender: No OFD packet to send [19:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:25]Read from MH i2c: E2 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 17 00 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: E2 17 00 25 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [19:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:22:25]wFMCommunicate OK [19:22:25]CreateOFDProtocolMessage done [19:22:25]OFDSenderStorePacket 139888 [19:22:25]StoreOFDPacket docnum=139888 [19:22:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F 9E 07 01 70 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 7E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A5 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 63 00 00 00 00 07 04 06 00 80 A9 03 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 F0 EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 22 02 00 35 04 06 00 25 D5 79 BA F1 E5 E2 25 69 DD 0C 1E 25 20 [19:22:25]CheckFolder [19:22:25]dirname=/storage/ofd_packets [19:22:25]CheckFolder done [19:22:25]ProducePacketName [19:22:25]name=ofd_packets/00139888 [19:22:25]NVStorageSaveData ofd_packets/00139888 [19:22:25]File name is /storage/ofd_packets/00139888 [19:22:25]Write 301 bytes [19:22:25]NVStorageSaveData done [19:22:25]OFDSenderStorePacket done [19:22:25]KKMCreateOFDPacket done [19:22:25]NVStorageSaveData kkm_last_timestamp [19:22:25]File name is /storage/kkm_last_timestamp [19:22:25]Write 4 bytes [19:22:25]NVStorageSaveData done [19:22:25]ExternCall_PrintAddStr [19:22:25]wPrintStart [19:22:25]Write to MH i2c: 01 00 00 26 08 2E [19:22:25]Write i2c OK [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: 01 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: 01 07 00 [19:22:25]MH_I2C_Read... [19:22:25]Read from MH i2c: 01 07 00 26 08 00 00 00 00 00 FF 0F 43 [19:22:25]RasterBufferAndPrint [19:22:25]line Счет N : (1)593742 [19:22:25]line ИНН: 02508201610067 [19:22:25]line Контрольно-Кассовый Чек [19:22:25]line ПРОДАЖА [19:22:25]line ТРК (МРК, ГНК) : 51 [19:22:25]line Товар: 2710124500 [19:22:25]line Аи-95-К-5 [19:22:25]line 32.350 * 74.20 [19:22:25]line = 2400.37 [19:22:25]line НДС 12% НСП 1% [19:22:25]line > о реализуемом товаре [19:22:25]line ОКРУГЛЕНИЕ: -0.37 [19:22:25]line ИТОГО: 2400.00 [19:22:25]line Внесено: 2400.00 [19:22:25]line СДАЧА: 0.00 [19:22:25]line НСП 1% : 21.24 [19:22:25]line НДС 12% : 254.91 [19:22:25]line Наличными: 2400.00 [19:22:25]line Безнал.: 0.00 [19:22:25]line Место: АЗС № 136 "Партнер Нефть" [19:22:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:22:25]line СНО: Общий режим [19:22:25]line Чек 360 20.08.2024 19:22 [19:22:25]line Смена: 453 ФФД: 1.0 [19:22:25]line ЗНМ: 0300000067 [19:22:25]line РНМ: 0000000000092569 [19:22:25]line Версия ККМ: 001 [19:22:25]line ФМ: 0000000000871776 [19:22:25]line ФД: 139888 [19:22:25]line ФПД: 41598800556517 [19:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192224&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139888&fm=41598800556517&tin=02508201610067®Number=0000000000092569&sum=240000 [19:22:25]OFD Sender: Processing packet 139888 [packets to send 137, broken 136] [19:22:25]ProducePacketName [19:22:25]name=ofd_packets/00139888 [19:22:25]OFD Sender: To server: pG, [19:22:25]CommunicateWithHost lk.salyk.kg:30040 [19:22:25]ConnectInit lk.salyk.kg [19:22:25]written 0, free lines is 4095 [19:22:25]Connected sock=10 [19:22:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F 9E 07 01 70 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 7E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A5 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 63 00 00 00 00 07 04 06 00 80 A9 03 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 F0 EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 22 02 00 35 04 06 00 25 D5 79 BA F1 E5 E2 25 69 DD 0C 1E 25 20 [19:22:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1D 6D 47 00 12 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 22 02 00 F4 03 04 00 83 93 C4 66 B6 04 01 00 00 24 6C E7 06 44 C8 07 A0 [19:22:26]CommunicateWithHost err = 0 [19:22:26]CheckOFDResponse [19:22:26]1017 (14) - 77093643461234 [19:22:26]1041 (16) - 0000000000871776 [19:22:26]1040 (4) - 139888 [19:22:26]1012 (4) - 20.08.2024 13:00 [19:22:26]1206 (1) - 0 [19:22:26]OFD Sender: Remove packet 139888 [19:22:26]ProducePacketName [19:22:26]name=ofd_packets/00139888 [19:22:26]NVStorageDeleteData [19:22:26]Write to MH i2c: 01 00 00 51 08 59 [19:22:26]Write i2c OK [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: 01 [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: 01 07 00 [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: 01 07 00 51 08 00 00 00 00 00 DC 0C 48 [19:22:26]RasterBufferAndPrint [19:22:26]line [19:22:26]line [19:22:26]line [19:22:26]line [19:22:26]line [19:22:26]written 0, free lines is 3298 [19:22:26]MH_Cut [19:22:26]Write to MH i2c: D1 01 00 58 08 01 32 [19:22:26]Write i2c OK [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: D1 [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: D1 01 00 [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: D1 01 00 58 08 00 31 [19:22:26]Write to MH i2c: 01 00 00 59 08 61 [19:22:26]Write i2c OK [19:22:26]MH_I2C_Read... [19:22:26]OFD Sender: No OFD packet to send [19:22:27]*** Cut start [19:22:27]*** Partial cut [19:22:27]*** CUTSNS_PIN = 1 [19:22:27]*** CUTSNS_PIN = 0 [19:22:27]*** Brake cut motor [19:22:27]Read from MH i2c: 01 [19:22:27]MH_I2C_Read... [19:22:27]*** Stop cut motor [19:22:27]*** Cut end [19:22:27]Read from MH i2c: 01 07 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: 01 07 00 59 08 00 00 00 00 00 FF 0F 76 [19:22:27]process_action close_receipt done [19:22:27]requested_data is exist [19:22:27]produce_requested_data [19:22:27]requested_item fm.sn is exist - process it [19:22:27]wFMCommunicate request_size=4 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 11 00 00 [19:22:27]Write to MH i2c: E2 08 00 5A 08 80 11 00 00 00 00 00 00 DC [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:27]Read from MH i2c: E2 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 17 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 17 00 5A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [19:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:22:27]wFMCommunicate OK [19:22:27]requested_item fd.num is exist - process it [19:22:27]SAM_PROTO_GetFieldsCounters [19:22:27]wFMCommunicate request_size=4 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 13 00 00 [19:22:27]Write to MH i2c: E2 08 00 5B 08 80 13 00 00 00 00 00 00 DF [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:27]Read from MH i2c: E2 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 62 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 62 00 5B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 22 02 00 0E 04 04 00 C5 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 9F [19:22:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 22 02 00 0E 04 04 00 C5 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 [19:22:27]wFMCommunicate OK [19:22:27]SAM_PROTO_GetFieldsCounters done [19:22:27]requested_item shift.num is exist - process it [19:22:27]requested_item shift.opened is exist - process it [19:22:27]req_shift_opened [19:22:27]FM_GetShiftState [19:22:27]SAM_PROTO_GetShiftState [19:22:27]wFMCommunicate request_size=4 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 13 01 00 [19:22:27]Write to MH i2c: E2 08 00 5C 08 80 13 01 00 00 00 00 00 E1 [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:27]Read from MH i2c: E2 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 0E 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 0E 00 5C 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 72 [19:22:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:22:27]wFMCommunicate OK [19:22:27]SAM_PROTO_GetShiftState done [19:22:27]FM_GetShiftState done [19:22:27]req_shift_opened done [19:22:27]requested_item shift.open_date is exist - process it [19:22:27]req_shift_open_date [19:22:27]req_shift_open_date done [19:22:27]produce_requested_data done [19:22:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139888,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:22:27]process_action_free close_receipt [19:22:27]json_value_free [19:22:27]json_value_free done [19:22:27]process_json_proto returns [19:22:27]Send response to host [19:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139888,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:22:27]free response buf [19:22:27]execute_script done [19:22:27]execute_script returns [19:22:27]free content buf [19:22:27]Sock 7.Close socket [19:22:27]Sock 7.Thread stoped [19:22:31]OFD Sender: No OFD packet to send [19:22:35]accept exits with 9 [19:22:35]New connection [19:22:35]New thread 3066940772 created [19:22:35]Thread 3066797412 joined [19:22:35]Waiting for new connection... [19:22:35] Sock 9.Parse request [19:22:35]Sock 9.Check first char [19:22:35]Sock 9.First char is OK [19:22:35]request: POST /json_proto HTTP/1.0 [19:22:35]Method: POST [19:22:35]URL: /json_proto [19:22:35]Method is POST - this is cgi request [19:22:35]url: /json_proto [19:22:35]query_string will be loaded in cgi processing [19:22:35]execute_cgi json_proto POST (null) [19:22:35]execute_cgi path=json_proto method=POST [19:22:35]POST find Content-Length [19:22:35]Host: 172.17.45.67:8080 [19:22:35]Content-Length: 677 [19:22:35]Content-Type: application/json [19:22:35] [19:22:35]POST finish read [19:22:35]Found Content-Length = 677 [19:22:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:35]execute_script... [19:22: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)593743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:35]POST & json_proto [19:22:35]process_json_proto [19:22:35]json parsed OK: [19:22:35]protocol is kg_v1.0 [19:22:35]action value=close_receipt [19:22:35]process_action close_receipt [19:22:35]cmd_close_receipt [19:22:35]MH_GetDate [19:22:35]Write to MH i2c: F0 00 00 5D 08 54 [19:22:35]Write i2c OK [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: F0 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: F0 09 00 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: F0 09 00 5D 08 00 FC EC C4 66 5F 7F 2B 66 DE [19:22:35]GetLastDocTimeStamp 1724181744 [19:22:35]current date 1724181756 [19:22:35]FM_GetShiftState [19:22:35]SAM_PROTO_GetShiftState [19:22:35]wFMCommunicate request_size=4 [19:22:35]MH_SAM_APDU [19:22:35]CAPDU: 80 13 01 00 [19:22:35]Write to MH i2c: E2 08 00 5E 08 80 13 01 00 00 00 00 00 E3 [19:22:35]Write i2c OK [19:22:35]MH_I2C_Read... [19:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:35]Read from MH i2c: E2 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 0E 00 [19:22:35]MH_I2C_Read... [19:22:35]Read from MH i2c: E2 0E 00 5E 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 74 [19:22:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:22:35]wFMCommunicate OK [19:22:35]SAM_PROTO_GetShiftState done [19:22:35]FM_GetShiftState done [19:22:35]opened in 1724113785 [19:22:35]opened+sec_in_day 1724200185 [19:22:35]quantity*price = 50036 [19:22:35]sum+1 = 50037 [19:22:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 361 20.08.2024 19:22 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139889 ФПД: 160494569383439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192236&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139889&fm=160494569383439&tin=02508201610067®Number=0000000000092569&sum=50000 [19:22:36]StoreToDocumentArchive [19:22:36]shift 453 fd 139889 [19:22:36]save to /storage/0453/doc_00139889 [19:22:36]save last doc name /storage/0453/doc_00139889 to /storage/kkm_last_doc_name [19:22:36]save OK [19:22:36]Clear old archive folders... [19:22:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:36]tlvbuf is 003EB280 [19:22:36]SAM_PROTO_ClearQueue [19:22:36]wFMCommunicate request_size=4 [19:22:36]MH_SAM_APDU [19:22:36]CAPDU: 80 09 00 00 [19:22:36]Write to MH i2c: E2 08 00 6B 08 80 09 00 00 00 00 00 00 E5 [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:36]OFD Sender: No OFD packet to send [19:22:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:36]Read from MH i2c: E2 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: E2 03 00 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: E2 03 00 6B 08 00 90 00 E7 [19:22:36]RAPDU: 90 00 [19:22:36]wFMCommunicate OK [19:22:36]SAM_PROTO_ClearQueue done [19:22:36]KKMCreateOFDPacket [19:22:36]OFDProtocolAddRootSTLVToBuf [19:22:36]FM_MakeSignedData [19:22:36]FM_MakeSignedData [19:22:36]SAM_PROTO_SignData [19:22:36]wFMCommunicate request_size=4 [19:22:36]MH_SAM_APDU [19:22:36]CAPDU: 80 0D 01 02 [19:22:36]Write to MH i2c: E2 08 00 6C 08 80 0D 01 02 00 00 00 00 ED [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:36]Read from MH i2c: E2 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: E2 03 00 [19:22:36]MH_I2C_Read... [19:22:36]Read from MH i2c: E2 03 00 6C 08 00 90 00 E8 [19:22:36]RAPDU: 90 00 [19:22:36]wFMCommunicate OK [19:22:36]wFMCommunicate request_size=255 [19:22:36]MH_SAM_APDU [19:22:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 FC EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 22 02 00 35 04 06 00 91 [19:22:36]Write to MH i2c: E2 02 01 6D 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 FC EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 22 02 00 35 04 06 00 91 00 00 DE [19:22:36]Write i2c OK [19:22:36]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [19:22:37]RAPDU: 90 00 [19:22:37]wFMCommunicate OK [19:22:37]wFMCommunicate request_size=10 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 0D 02 02 05 F8 0D CB E6 0F [19:22:37]Write to MH i2c: E2 0D 00 6E 08 80 0D 02 02 05 00 F8 0D CB E6 0F 00 00 BF [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [19:22:37]RAPDU: 90 00 [19:22:37]wFMCommunicate OK [19:22:37]wFMCommunicate request_size=4 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 0D 03 02 [19:22:37]Write to MH i2c: E2 08 00 6F 08 80 0D 03 02 00 00 00 00 F2 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 0B 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 0B 00 6F 08 00 F1 58 21 19 50 18 4F A6 90 00 D3 [19:22:37]RAPDU: F1 58 21 19 50 18 4F A6 90 00 [19:22:37]wFMCommunicate OK [19:22:37]SAM_PROTO_SignData done [19:22:37]FM_MakeSignedData done [19:22:37]CreateOFDProtocolMessage [19:22:37]wFMCommunicate request_size=4 [19:22:37]MH_SAM_APDU [19:22:37]CAPDU: 80 11 00 00 [19:22:37]Write to MH i2c: E2 08 00 70 08 80 11 00 00 00 00 00 00 F2 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:37]Read from MH i2c: E2 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 17 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: E2 17 00 70 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [19:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:22:37]wFMCommunicate OK [19:22:37]CreateOFDProtocolMessage done [19:22:37]OFDSenderStorePacket 139889 [19:22:37]StoreOFDPacket docnum=139889 [19:22:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BA 05 07 01 DA 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 FC EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 22 02 00 35 04 06 00 91 F8 0D CB E6 0F F1 58 21 19 50 18 4F A6 [19:22:37]CheckFolder [19:22:37]dirname=/storage/ofd_packets [19:22:37]CheckFolder done [19:22:37]ProducePacketName [19:22:37]name=ofd_packets/00139889 [19:22:37]NVStorageSaveData ofd_packets/00139889 [19:22:37]File name is /storage/ofd_packets/00139889 [19:22:37]Write 301 bytes [19:22:37]NVStorageSaveData done [19:22:37]OFDSenderStorePacket done [19:22:37]KKMCreateOFDPacket done [19:22:37]NVStorageSaveData kkm_last_timestamp [19:22:37]File name is /storage/kkm_last_timestamp [19:22:37]Write 4 bytes [19:22:37]NVStorageSaveData done [19:22:37]ExternCall_PrintAddStr [19:22:37]wPrintStart [19:22:37]Write to MH i2c: 01 00 00 71 08 79 [19:22:37]Write i2c OK [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: 01 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: 01 07 00 [19:22:37]MH_I2C_Read... [19:22:37]Read from MH i2c: 01 07 00 71 08 00 00 00 00 00 FF 0F 8E [19:22:37]RasterBufferAndPrint [19:22:37]line Счет N : (1)593743 [19:22:37]line ИНН: 02508201610067 [19:22:37]line Контрольно-Кассовый Чек [19:22:37]line ПРОДАЖА [19:22:37]line ТРК (МРК, ГНК) : 62 [19:22:37]line Товар: 2710124130 [19:22:37]line Аи-92-К-5 [19:22:37]line 7.380 * 67.80 [19:22:37]line = 500.36 [19:22:37]line НДС 12% НСП 1% [19:22:37]line > о реализуемом товаре [19:22:37]line ОКРУГЛЕНИЕ: -0.36 [19:22:37]line ИТОГО: 500.00 [19:22:37]line Внесено: 500.00 [19:22:37]line СДАЧА: 0.00 [19:22:37]line НСП 1% : 4.43 [19:22:37]line НДС 12% : 53.14 [19:22:37]line Наличными: 500.00 [19:22:37]line Безнал.: 0.00 [19:22:37]line Место: АЗС № 136 "Партнер Нефть" [19:22:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:22:37]line СНО: Общий режим [19:22:37]line Чек 361 20.08.2024 19:22 [19:22:37]line Смена: 453 ФФД: 1.0 [19:22:37]line ЗНМ: 0300000067 [19:22:37]line РНМ: 0000000000092569 [19:22:37]line Версия ККМ: 001 [19:22:37]line ФМ: 0000000000871776 [19:22:37]line ФД: 139889 [19:22:37]line ФПД: 160494569383439 [19:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192236&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139889&fm=160494569383439&tin=02508201610067®Number=0000000000092569&sum=50000 [19:22:37]OFD Sender: Processing packet 139889 [packets to send 137, broken 136] [19:22:37]ProducePacketName [19:22:37]name=ofd_packets/00139889 [19:22:37]OFD Sender: To server: pG, [19:22:37]CommunicateWithHost lk.salyk.kg:30040 [19:22:37]ConnectInit lk.salyk.kg [19:22:37]written 0, free lines is 4095 [19:22:37]Connected sock=10 [19:22:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BA 05 07 01 DA 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 FC EC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 22 02 00 35 04 06 00 91 F8 0D CB E6 0F F1 58 21 19 50 18 4F A6 [19:22:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6F F2 47 00 74 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 22 02 00 F4 03 04 00 8E 93 C4 66 B6 04 01 00 00 F9 A7 C5 4A 4F 76 F6 8B [19:22:37]CommunicateWithHost err = 0 [19:22:37]CheckOFDResponse [19:22:37]1017 (14) - 77093643461234 [19:22:37]1041 (16) - 0000000000871776 [19:22:37]1040 (4) - 139889 [19:22:37]1012 (4) - 20.08.2024 13:01 [19:22:37]1206 (1) - 0 [19:22:37]OFD Sender: Remove packet 139889 [19:22:37]ProducePacketName [19:22:37]name=ofd_packets/00139889 [19:22:37]NVStorageDeleteData [19:22:38]Write to MH i2c: 01 00 00 9C 08 A4 [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 07 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: 01 07 00 9C 08 00 00 00 00 00 E1 0C 98 [19:22:38]RasterBufferAndPrint [19:22:38]line [19:22:38]line [19:22:38]line [19:22:38]line [19:22:38]line [19:22:38]written 0, free lines is 3306 [19:22:38]MH_Cut [19:22:38]Write to MH i2c: D1 01 00 A3 08 01 7D [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: D1 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: D1 01 00 [19:22:38]MH_I2C_Read... [19:22:38]Read from MH i2c: D1 01 00 A3 08 00 7C [19:22:38]Write to MH i2c: 01 00 00 A4 08 AC [19:22:38]Write i2c OK [19:22:38]MH_I2C_Read... [19:22:38]OFD Sender: No OFD packet to send [19:22:38]*** Cut start [19:22:38]*** Partial cut [19:22:38]*** CUTSNS_PIN = 1 [19:22:38]*** CUTSNS_PIN = 0 [19:22:39]*** Brake cut motor [19:22:39]Read from MH i2c: 01 [19:22:39]MH_I2C_Read... [19:22:39]*** Stop cut motor [19:22:39]*** Cut end [19:22:39]Read from MH i2c: 01 07 00 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: 01 07 00 A4 08 00 00 00 00 00 FF 0F C1 [19:22:39]process_action close_receipt done [19:22:39]requested_data is exist [19:22:39]produce_requested_data [19:22:39]requested_item fm.sn is exist - process it [19:22:39]wFMCommunicate request_size=4 [19:22:39]MH_SAM_APDU [19:22:39]CAPDU: 80 11 00 00 [19:22:39]Write to MH i2c: E2 08 00 A5 08 80 11 00 00 00 00 00 00 27 [19:22:39]Write i2c OK [19:22:39]MH_I2C_Read... [19:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:39]Read from MH i2c: E2 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 17 00 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 17 00 A5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [19:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:22:39]wFMCommunicate OK [19:22:39]requested_item fd.num is exist - process it [19:22:39]SAM_PROTO_GetFieldsCounters [19:22:39]wFMCommunicate request_size=4 [19:22:39]MH_SAM_APDU [19:22:39]CAPDU: 80 13 00 00 [19:22:39]Write to MH i2c: E2 08 00 A6 08 80 13 00 00 00 00 00 00 2A [19:22:39]Write i2c OK [19:22:39]MH_I2C_Read... [19:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:39]Read from MH i2c: E2 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 62 00 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 62 00 A6 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 22 02 00 0E 04 04 00 C5 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 EE [19:22:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 22 02 00 0E 04 04 00 C5 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 [19:22:39]wFMCommunicate OK [19:22:39]SAM_PROTO_GetFieldsCounters done [19:22:39]requested_item shift.num is exist - process it [19:22:39]requested_item shift.opened is exist - process it [19:22:39]req_shift_opened [19:22:39]FM_GetShiftState [19:22:39]SAM_PROTO_GetShiftState [19:22:39]wFMCommunicate request_size=4 [19:22:39]MH_SAM_APDU [19:22:39]CAPDU: 80 13 01 00 [19:22:39]Write to MH i2c: E2 08 00 A7 08 80 13 01 00 00 00 00 00 2C [19:22:39]Write i2c OK [19:22:39]MH_I2C_Read... [19:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:39]Read from MH i2c: E2 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 0E 00 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 0E 00 A7 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BD [19:22:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:22:39]wFMCommunicate OK [19:22:39]SAM_PROTO_GetShiftState done [19:22:39]FM_GetShiftState done [19:22:39]req_shift_opened done [19:22:39]requested_item shift.open_date is exist - process it [19:22:39]req_shift_open_date [19:22:39]req_shift_open_date done [19:22:39]produce_requested_data done [19:22:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139889,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:22:39]process_action_free close_receipt [19:22:39]json_value_free [19:22:39]json_value_free done [19:22:39]process_json_proto returns [19:22:39]Send response to host [19:22:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139889,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:22:39]free response buf [19:22:39]execute_script done [19:22:39]execute_script returns [19:22:39]free content buf [19:22:39]Sock 9.Close socket [19:22:39]Sock 9.Thread stoped [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:51]accept exits with 7 [19:22:51]New connection [19:22:51]New thread 3066797412 created [19:22:51]Thread 3066940772 joined [19:22:51]Waiting for new connection... [19:22:51] Sock 7.Parse request [19:22:51]Sock 7.Check first char [19:22:51]Sock 7.First char is OK [19:22:51]request: POST /json_proto HTTP/1.0 [19:22:51]Method: POST [19:22:51]URL: /json_proto [19:22:51]Method is POST - this is cgi request [19:22:51]url: /json_proto [19:22:51]query_string will be loaded in cgi processing [19:22:51]execute_cgi json_proto POST (null) [19:22:51]execute_cgi path=json_proto method=POST [19:22:51]POST find Content-Length [19:22:51]Host: 172.17.45.67:8080 [19:22:51]Content-Length: 677 [19:22:51]Content-Type: application/json [19:22:51] [19:22:51]POST finish read [19:22:51]Found Content-Length = 677 [19:22:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:51]execute_script... [19:22: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)593744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:51]POST & json_proto [19:22:51]process_json_proto [19:22:51]json parsed OK: [19:22:51]protocol is kg_v1.0 [19:22:51]action value=close_receipt [19:22:51]process_action close_receipt [19:22:51]cmd_close_receipt [19:22:51]MH_GetDate [19:22:51]Write to MH i2c: F0 00 00 A8 08 9F [19:22:51]Write i2c OK [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: F0 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: F0 09 00 [19:22:51]MH_I2C_Read... [19:22:51]Read from MH i2c: F0 09 00 A8 08 00 0C ED C4 66 5F 7F 2B 66 3A [19:22:51]GetLastDocTimeStamp 1724181756 [19:22:51]current date 1724181772 [19:22:51]FM_GetShiftState [19:22:51]SAM_PROTO_GetShiftState [19:22:51]wFMCommunicate request_size=4 [19:22:51]MH_SAM_APDU [19:22:51]CAPDU: 80 13 01 00 [19:22:51]Write to MH i2c: E2 08 00 A9 08 80 13 01 00 00 00 00 00 2E [19:22:51]Write i2c OK [19:22:51]MH_I2C_Read... [19:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:52]Read from MH i2c: E2 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 0E 00 [19:22:52]MH_I2C_Read... [19:22:52]Read from MH i2c: E2 0E 00 A9 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BF [19:22:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:22:52]wFMCommunicate OK [19:22:52]SAM_PROTO_GetShiftState done [19:22:52]FM_GetShiftState done [19:22:52]opened in 1724113785 [19:22:52]opened+sec_in_day 1724200185 [19:22:52]quantity*price = 60027 [19:22:52]sum+1 = 60029 [19:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 362 20.08.2024 19:22 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139890 ФПД: 240822620915625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192252&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139890&fm=240822620915625&tin=02508201610067®Number=0000000000092569&sum=60000 [19:22:53]StoreToDocumentArchive [19:22:53]shift 453 fd 139890 [19:22:53]save to /storage/0453/doc_00139890 [19:22:53]save last doc name /storage/0453/doc_00139890 to /storage/kkm_last_doc_name [19:22:53]save OK [19:22:53]Clear old archive folders... [19:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:53]tlvbuf is 003FA660 [19:22:53]SAM_PROTO_ClearQueue [19:22:53]wFMCommunicate request_size=4 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 09 00 00 [19:22:53]Write to MH i2c: E2 08 00 B6 08 80 09 00 00 00 00 00 00 30 [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 B6 08 00 90 00 32 [19:22:53]RAPDU: 90 00 [19:22:53]wFMCommunicate OK [19:22:53]SAM_PROTO_ClearQueue done [19:22:53]KKMCreateOFDPacket [19:22:53]OFDProtocolAddRootSTLVToBuf [19:22:53]FM_MakeSignedData [19:22:53]FM_MakeSignedData [19:22:53]SAM_PROTO_SignData [19:22:53]wFMCommunicate request_size=4 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 0D 01 02 [19:22:53]Write to MH i2c: E2 08 00 B7 08 80 0D 01 02 00 00 00 00 38 [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 B7 08 00 90 00 33 [19:22:53]RAPDU: 90 00 [19:22:53]wFMCommunicate OK [19:22:53]wFMCommunicate request_size=255 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 0C ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 22 02 00 35 04 06 00 DB [19:22:53]Write to MH i2c: E2 02 01 B8 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 0C ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 22 02 00 35 04 06 00 DB 00 00 F4 [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]OFD Sender: No OFD packet to send [19:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 B8 08 00 90 00 34 [19:22:53]RAPDU: 90 00 [19:22:53]wFMCommunicate OK [19:22:53]wFMCommunicate request_size=10 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 0D 02 02 05 06 E2 C6 07 A9 [19:22:53]Write to MH i2c: E2 0D 00 B9 08 80 0D 02 02 05 00 06 E2 C6 07 A9 00 00 A3 [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 03 00 B9 08 00 90 00 35 [19:22:53]RAPDU: 90 00 [19:22:53]wFMCommunicate OK [19:22:53]wFMCommunicate request_size=4 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 0D 03 02 [19:22:53]Write to MH i2c: E2 08 00 BA 08 80 0D 03 02 00 00 00 00 3D [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 0B 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 0B 00 BA 08 00 4F 0A 3C FD 90 54 BD E4 90 00 55 [19:22:53]RAPDU: 4F 0A 3C FD 90 54 BD E4 90 00 [19:22:53]wFMCommunicate OK [19:22:53]SAM_PROTO_SignData done [19:22:53]FM_MakeSignedData done [19:22:53]CreateOFDProtocolMessage [19:22:53]wFMCommunicate request_size=4 [19:22:53]MH_SAM_APDU [19:22:53]CAPDU: 80 11 00 00 [19:22:53]Write to MH i2c: E2 08 00 BB 08 80 11 00 00 00 00 00 00 3D [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:53]Read from MH i2c: E2 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 17 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: E2 17 00 BB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [19:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:22:53]wFMCommunicate OK [19:22:53]CreateOFDProtocolMessage done [19:22:53]OFDSenderStorePacket 139890 [19:22:53]StoreOFDPacket docnum=139890 [19:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B8 85 07 01 CD 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 0C ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 22 02 00 35 04 06 00 DB 06 E2 C6 07 A9 4F 0A 3C FD 90 54 BD E4 [19:22:53]CheckFolder [19:22:53]dirname=/storage/ofd_packets [19:22:53]CheckFolder done [19:22:53]ProducePacketName [19:22:53]name=ofd_packets/00139890 [19:22:53]NVStorageSaveData ofd_packets/00139890 [19:22:53]File name is /storage/ofd_packets/00139890 [19:22:53]Write 301 bytes [19:22:53]NVStorageSaveData done [19:22:53]OFDSenderStorePacket done [19:22:53]KKMCreateOFDPacket done [19:22:53]NVStorageSaveData kkm_last_timestamp [19:22:53]File name is /storage/kkm_last_timestamp [19:22:53]Write 4 bytes [19:22:53]NVStorageSaveData done [19:22:53]ExternCall_PrintAddStr [19:22:53]wPrintStart [19:22:53]Write to MH i2c: 01 00 00 BC 08 C4 [19:22:53]Write i2c OK [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: 01 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: 01 07 00 [19:22:53]MH_I2C_Read... [19:22:53]Read from MH i2c: 01 07 00 BC 08 00 00 00 00 00 FF 0F D9 [19:22:53]RasterBufferAndPrint [19:22:53]line Счет N : (1)593744 [19:22:53]line ИНН: 02508201610067 [19:22:53]line Контрольно-Кассовый Чек [19:22:53]line ПРОДАЖА [19:22:53]line ТРК (МРК, ГНК) : 31 [19:22:53]line Товар: 2710124500 [19:22:53]line Аи-95-К-5 [19:22:53]line 8.090 * 74.20 [19:22:53]line = 600.28 [19:22:53]line НДС 12% НСП 1% [19:22:53]line > о реализуемом товаре [19:22:53]line ОКРУГЛЕНИЕ: -0.28 [19:22:53]line ИТОГО: 600.00 [19:22:53]line Внесено: 600.00 [19:22:53]line СДАЧА: 0.00 [19:22:53]line НСП 1% : 5.31 [19:22:53]line НДС 12% : 63.75 [19:22:53]line Наличными: 600.00 [19:22:53]line Безнал.: 0.00 [19:22:53]line Место: АЗС № 136 "Партнер Нефть" [19:22:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:22:53]line СНО: Общий режим [19:22:53]line Чек 362 20.08.2024 19:22 [19:22:53]line Смена: 453 ФФД: 1.0 [19:22:53]line ЗНМ: 0300000067 [19:22:53]line РНМ: 0000000000092569 [19:22:53]line Версия ККМ: 001 [19:22:53]line ФМ: 0000000000871776 [19:22:53]line ФД: 139890 [19:22:53]line ФПД: 240822620915625 [19:22:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192252&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139890&fm=240822620915625&tin=02508201610067®Number=0000000000092569&sum=60000 [19:22:53]written 0, free lines is 4095 [19:22:53]OFD Sender: Processing packet 139890 [packets to send 137, broken 136] [19:22:53]ProducePacketName [19:22:53]name=ofd_packets/00139890 [19:22:53]OFD Sender: To server: pG, [19:22:53]CommunicateWithHost lk.salyk.kg:30040 [19:22:53]ConnectInit lk.salyk.kg [19:22:53]Connected sock=10 [19:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B8 85 07 01 CD 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 0C ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 22 02 00 35 04 06 00 DB 06 E2 C6 07 A9 4F 0A 3C FD 90 54 BD E4 [19:22:54]Write to MH i2c: 01 00 00 E7 08 EF [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 07 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: 01 07 00 E7 08 00 00 00 00 00 E4 0C E6 [19:22:54]RasterBufferAndPrint [19:22:54]line [19:22:54]line [19:22:54]line [19:22:54]line [19:22:54]line [19:22:54]written 0, free lines is 3309 [19:22:54]MH_Cut [19:22:54]Write to MH i2c: D1 01 00 EE 08 01 C8 [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: D1 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: D1 01 00 [19:22:54]MH_I2C_Read... [19:22:54]Read from MH i2c: D1 01 00 EE 08 00 C7 [19:22:54]Write to MH i2c: 01 00 00 EF 08 F7 [19:22:54]Write i2c OK [19:22:54]MH_I2C_Read... [19:22:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 70 D1 47 00 6F FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 22 02 00 F4 03 04 00 9F 93 C4 66 B6 04 01 00 00 D0 DB EF E0 C8 C8 67 F2 [19:22:54]CommunicateWithHost err = 0 [19:22:54]CheckOFDResponse [19:22:54]1017 (14) - 77093643461234 [19:22:54]1041 (16) - 0000000000871776 [19:22:54]1040 (4) - 139890 [19:22:54]1012 (4) - 20.08.2024 13:01 [19:22:54]1206 (1) - 0 [19:22:54]OFD Sender: Remove packet 139890 [19:22:54]ProducePacketName [19:22:54]name=ofd_packets/00139890 [19:22:54]NVStorageDeleteData [19:22:54]OFD Sender: No OFD packet to send [19:22:54]*** Cut start [19:22:54]*** Partial cut [19:22:54]*** CUTSNS_PIN = 1 [19:22:54]*** CUTSNS_PIN = 0 [19:22:55]*** Brake cut motor [19:22:55]Read from MH i2c: 01 [19:22:55]MH_I2C_Read... [19:22:55]*** Stop cut motor [19:22:55]*** Cut end [19:22:55]Read from MH i2c: 01 07 00 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: 01 07 00 EF 08 00 00 00 00 00 FF 0F 0C [19:22:55]process_action close_receipt done [19:22:55]requested_data is exist [19:22:55]produce_requested_data [19:22:55]requested_item fm.sn is exist - process it [19:22:55]wFMCommunicate request_size=4 [19:22:55]MH_SAM_APDU [19:22:55]CAPDU: 80 11 00 00 [19:22:55]Write to MH i2c: E2 08 00 F0 08 80 11 00 00 00 00 00 00 72 [19:22:55]Write i2c OK [19:22:55]MH_I2C_Read... [19:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:55]Read from MH i2c: E2 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: E2 17 00 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: E2 17 00 F0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C9 [19:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:22:55]wFMCommunicate OK [19:22:55]requested_item fd.num is exist - process it [19:22:55]SAM_PROTO_GetFieldsCounters [19:22:55]wFMCommunicate request_size=4 [19:22:55]MH_SAM_APDU [19:22:55]CAPDU: 80 13 00 00 [19:22:55]Write to MH i2c: E2 08 00 F1 08 80 13 00 00 00 00 00 00 75 [19:22:55]Write i2c OK [19:22:55]MH_I2C_Read... [19:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:55]Read from MH i2c: E2 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: E2 62 00 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: E2 62 00 F1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 22 02 00 0E 04 04 00 C5 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 3D [19:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 22 02 00 0E 04 04 00 C5 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 [19:22:55]wFMCommunicate OK [19:22:55]SAM_PROTO_GetFieldsCounters done [19:22:55]requested_item shift.num is exist - process it [19:22:55]requested_item shift.opened is exist - process it [19:22:55]req_shift_opened [19:22:55]FM_GetShiftState [19:22:55]SAM_PROTO_GetShiftState [19:22:55]wFMCommunicate request_size=4 [19:22:55]MH_SAM_APDU [19:22:55]CAPDU: 80 13 01 00 [19:22:55]Write to MH i2c: E2 08 00 F2 08 80 13 01 00 00 00 00 00 77 [19:22:55]Write i2c OK [19:22:55]MH_I2C_Read... [19:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:55]Read from MH i2c: E2 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: E2 0E 00 [19:22:55]MH_I2C_Read... [19:22:55]Read from MH i2c: E2 0E 00 F2 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 08 [19:22:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:22:55]wFMCommunicate OK [19:22:55]SAM_PROTO_GetShiftState done [19:22:55]FM_GetShiftState done [19:22:55]req_shift_opened done [19:22:55]requested_item shift.open_date is exist - process it [19:22:55]req_shift_open_date [19:22:55]req_shift_open_date done [19:22:55]produce_requested_data done [19:22:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139890,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:22:55]process_action_free close_receipt [19:22:55]json_value_free [19:22:55]json_value_free done [19:22:55]process_json_proto returns [19:22:55]Send response to host [19:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139890,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:22:55]free response buf [19:22:55]execute_script done [19:22:55]execute_script returns [19:22:55]free content buf [19:22:55]Sock 7.Close socket [19:22:55]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:24]accept exits with 9 [19:23:24]New connection [19:23:24]New thread 3066940772 created [19:23:24]Thread 3066797412 joined [19:23:24]Waiting for new connection... [19:23:24] Sock 9.Parse request [19:23:24]Sock 9.Check first char [19:23:24]Sock 9.First char is OK [19:23:24]request: POST /json_proto HTTP/1.0 [19:23:24]Method: POST [19:23:24]URL: /json_proto [19:23:24]Method is POST - this is cgi request [19:23:24]url: /json_proto [19:23:24]query_string will be loaded in cgi processing [19:23:24]execute_cgi json_proto POST (null) [19:23:24]execute_cgi path=json_proto method=POST [19:23:24]POST find Content-Length [19:23:24]Host: 172.17.45.67:8080 [19:23:24]Content-Length: 677 [19:23:24]Content-Type: application/json [19:23:24] [19:23:24]POST finish read [19:23:24]Found Content-Length = 677 [19:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:24]execute_script... [19:23: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)593745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:24]POST & json_proto [19:23:24]process_json_proto [19:23:24]json parsed OK: [19:23:24]protocol is kg_v1.0 [19:23:24]action value=close_receipt [19:23:24]process_action close_receipt [19:23:24]cmd_close_receipt [19:23:24]MH_GetDate [19:23:24]Write to MH i2c: F0 00 00 F3 08 EA [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: F0 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: F0 09 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: F0 09 00 F3 08 00 2D ED C4 66 5F 7F 2B 66 A6 [19:23:24]GetLastDocTimeStamp 1724181772 [19:23:24]current date 1724181805 [19:23:24]FM_GetShiftState [19:23:24]SAM_PROTO_GetShiftState [19:23:24]wFMCommunicate request_size=4 [19:23:24]MH_SAM_APDU [19:23:24]CAPDU: 80 13 01 00 [19:23:24]Write to MH i2c: E2 08 00 F4 08 80 13 01 00 00 00 00 00 79 [19:23:24]Write i2c OK [19:23:24]MH_I2C_Read... [19:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:24]Read from MH i2c: E2 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 0E 00 [19:23:24]MH_I2C_Read... [19:23:24]Read from MH i2c: E2 0E 00 F4 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0A [19:23:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:23:24]wFMCommunicate OK [19:23:24]SAM_PROTO_GetShiftState done [19:23:24]FM_GetShiftState done [19:23:24]opened in 1724113785 [19:23:24]opened+sec_in_day 1724200185 [19:23:24]quantity*price = 40002 [19:23:24]sum+1 = 40003 [19:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 363 20.08.2024 19:23 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139891 ФПД: 223565017066908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192325&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139891&fm=223565017066908&tin=02508201610067®Number=0000000000092569&sum=40000 [19:23:26]StoreToDocumentArchive [19:23:26]shift 453 fd 139891 [19:23:26]save to /storage/0453/doc_00139891 [19:23:26]save last doc name /storage/0453/doc_00139891 to /storage/kkm_last_doc_name [19:23:26]save OK [19:23:26]Clear old archive folders... [19:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:26]tlvbuf is 003F57D0 [19:23:26]SAM_PROTO_ClearQueue [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 09 00 00 [19:23:26]Write to MH i2c: E2 08 00 01 09 80 09 00 00 00 00 00 00 7C [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 01 09 00 90 00 7E [19:23:26]RAPDU: 90 00 [19:23:26]wFMCommunicate OK [19:23:26]SAM_PROTO_ClearQueue done [19:23:26]KKMCreateOFDPacket [19:23:26]OFDProtocolAddRootSTLVToBuf [19:23:26]FM_MakeSignedData [19:23:26]FM_MakeSignedData [19:23:26]SAM_PROTO_SignData [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 0D 01 02 [19:23:26]Write to MH i2c: E2 08 00 02 09 80 0D 01 02 00 00 00 00 84 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 02 09 00 90 00 7F [19:23:26]RAPDU: 90 00 [19:23:26]wFMCommunicate OK [19:23:26]wFMCommunicate request_size=255 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 2D ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 22 02 00 35 04 06 00 CB [19:23:26]Write to MH i2c: E2 02 01 03 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 2D ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 22 02 00 35 04 06 00 CB 00 00 CA [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 03 09 00 90 00 80 [19:23:26]RAPDU: 90 00 [19:23:26]wFMCommunicate OK [19:23:26]wFMCommunicate request_size=10 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 0D 02 02 05 54 C9 6D 2D 9C [19:23:26]Write to MH i2c: E2 0D 00 04 09 80 0D 02 02 05 00 54 C9 6D 2D 9C 00 00 E4 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 03 00 04 09 00 90 00 81 [19:23:26]RAPDU: 90 00 [19:23:26]wFMCommunicate OK [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 0D 03 02 [19:23:26]Write to MH i2c: E2 08 00 05 09 80 0D 03 02 00 00 00 00 89 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 0B 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 0B 00 05 09 00 1A 67 A5 50 9F FA 33 0C 90 00 D8 [19:23:26]RAPDU: 1A 67 A5 50 9F FA 33 0C 90 00 [19:23:26]wFMCommunicate OK [19:23:26]SAM_PROTO_SignData done [19:23:26]FM_MakeSignedData done [19:23:26]CreateOFDProtocolMessage [19:23:26]wFMCommunicate request_size=4 [19:23:26]MH_SAM_APDU [19:23:26]CAPDU: 80 11 00 00 [19:23:26]Write to MH i2c: E2 08 00 06 09 80 11 00 00 00 00 00 00 89 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:26]Read from MH i2c: E2 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 17 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: E2 17 00 06 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [19:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:23:26]wFMCommunicate OK [19:23:26]CreateOFDProtocolMessage done [19:23:26]OFDSenderStorePacket 139891 [19:23:26]StoreOFDPacket docnum=139891 [19:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4E 6E 07 01 50 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 2D ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 22 02 00 35 04 06 00 CB 54 C9 6D 2D 9C 1A 67 A5 50 9F FA 33 0C [19:23:26]CheckFolder [19:23:26]dirname=/storage/ofd_packets [19:23:26]CheckFolder done [19:23:26]ProducePacketName [19:23:26]name=ofd_packets/00139891 [19:23:26]NVStorageSaveData ofd_packets/00139891 [19:23:26]File name is /storage/ofd_packets/00139891 [19:23:26]Write 301 bytes [19:23:26]NVStorageSaveData done [19:23:26]OFDSenderStorePacket done [19:23:26]KKMCreateOFDPacket done [19:23:26]NVStorageSaveData kkm_last_timestamp [19:23:26]File name is /storage/kkm_last_timestamp [19:23:26]Write 4 bytes [19:23:26]NVStorageSaveData done [19:23:26]ExternCall_PrintAddStr [19:23:26]wPrintStart [19:23:26]Write to MH i2c: 01 00 00 07 09 10 [19:23:26]Write i2c OK [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: 01 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: 01 07 00 [19:23:26]MH_I2C_Read... [19:23:26]Read from MH i2c: 01 07 00 07 09 00 00 00 00 00 FF 0F 25 [19:23:26]RasterBufferAndPrint [19:23:26]line Счет N : (1)593745 [19:23:26]line ИНН: 02508201610067 [19:23:26]line Контрольно-Кассовый Чек [19:23:26]line ПРОДАЖА [19:23:26]line ТРК (МРК, ГНК) : 42 [19:23:26]line Товар: 2710124130 [19:23:26]line Аи-92-К-5 [19:23:26]line 5.900 * 67.80 [19:23:26]line = 400.02 [19:23:26]line НДС 12% НСП 1% [19:23:26]line > о реализуемом товаре [19:23:26]line ОКРУГЛЕНИЕ: -0.02 [19:23:26]line ИТОГО: 400.00 [19:23:26]line Внесено: 400.00 [19:23:26]line СДАЧА: 0.00 [19:23:26]line НСП 1% : 3.54 [19:23:26]line НДС 12% : 42.48 [19:23:26]line Наличными: 400.00 [19:23:26]line Безнал.: 0.00 [19:23:26]line Место: АЗС № 136 "Партнер Нефть" [19:23:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:23:26]line СНО: Общий режим [19:23:26]line Чек 363 20.08.2024 19:23 [19:23:26]line Смена: 453 ФФД: 1.0 [19:23:26]line ЗНМ: 0300000067 [19:23:26]line РНМ: 0000000000092569 [19:23:26]line Версия ККМ: 001 [19:23:26]line ФМ: 0000000000871776 [19:23:26]line ФД: 139891 [19:23:26]line ФПД: 223565017066908 [19:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192325&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139891&fm=223565017066908&tin=02508201610067®Number=0000000000092569&sum=40000 [19:23:26]OFD Sender: Processing packet 139891 [packets to send 137, broken 136] [19:23:26]ProducePacketName [19:23:26]name=ofd_packets/00139891 [19:23:26]OFD Sender: To server: pG, [19:23:26]CommunicateWithHost lk.salyk.kg:30040 [19:23:26]ConnectInit lk.salyk.kg [19:23:26]written 0, free lines is 4095 [19:23:27]Connected sock=10 [19:23:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4E 6E 07 01 50 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 2D ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 22 02 00 35 04 06 00 CB 54 C9 6D 2D 9C 1A 67 A5 50 9F FA 33 0C [19:23:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5E 03 47 00 A3 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 22 02 00 F4 03 04 00 C0 93 C4 66 B6 04 01 00 00 F2 9B C0 5E D3 E1 08 93 [19:23:27]CommunicateWithHost err = 0 [19:23:27]CheckOFDResponse [19:23:27]1017 (14) - 77093643461234 [19:23:27]1041 (16) - 0000000000871776 [19:23:27]1040 (4) - 139891 [19:23:27]1012 (4) - 20.08.2024 13:01 [19:23:27]1206 (1) - 0 [19:23:27]OFD Sender: Remove packet 139891 [19:23:27]ProducePacketName [19:23:27]name=ofd_packets/00139891 [19:23:27]NVStorageDeleteData [19:23:27]Write to MH i2c: 01 00 00 32 09 3B [19:23:27]Write i2c OK [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: 01 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: 01 07 00 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: 01 07 00 32 09 00 00 00 00 00 D4 0C 22 [19:23:27]RasterBufferAndPrint [19:23:27]line [19:23:27]line [19:23:27]line [19:23:27]line [19:23:27]line [19:23:27]written 0, free lines is 3288 [19:23:27]MH_Cut [19:23:27]Write to MH i2c: D1 01 00 39 09 01 14 [19:23:27]Write i2c OK [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: D1 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: D1 01 00 [19:23:27]MH_I2C_Read... [19:23:27]Read from MH i2c: D1 01 00 39 09 00 13 [19:23:27]Write to MH i2c: 01 00 00 3A 09 43 [19:23:27]Write i2c OK [19:23:27]MH_I2C_Read... [19:23:27]OFD Sender: No OFD packet to send [19:23:28]*** Cut start [19:23:28]*** Partial cut [19:23:28]*** CUTSNS_PIN = 1 [19:23:28]*** CUTSNS_PIN = 0 [19:23:28]*** Brake cut motor [19:23:28]Read from MH i2c: 01 [19:23:28]MH_I2C_Read... [19:23:28]*** Stop cut motor [19:23:28]*** Cut end [19:23:28]Read from MH i2c: 01 07 00 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: 01 07 00 3A 09 00 00 00 00 00 FF 0F 58 [19:23:28]process_action close_receipt done [19:23:28]requested_data is exist [19:23:28]produce_requested_data [19:23:28]requested_item fm.sn is exist - process it [19:23:28]wFMCommunicate request_size=4 [19:23:28]MH_SAM_APDU [19:23:28]CAPDU: 80 11 00 00 [19:23:28]Write to MH i2c: E2 08 00 3B 09 80 11 00 00 00 00 00 00 BE [19:23:28]Write i2c OK [19:23:28]MH_I2C_Read... [19:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:28]Read from MH i2c: E2 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: E2 17 00 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: E2 17 00 3B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [19:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:23:28]wFMCommunicate OK [19:23:28]requested_item fd.num is exist - process it [19:23:28]SAM_PROTO_GetFieldsCounters [19:23:28]wFMCommunicate request_size=4 [19:23:28]MH_SAM_APDU [19:23:28]CAPDU: 80 13 00 00 [19:23:28]Write to MH i2c: E2 08 00 3C 09 80 13 00 00 00 00 00 00 C1 [19:23:28]Write i2c OK [19:23:28]MH_I2C_Read... [19:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:28]Read from MH i2c: E2 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: E2 62 00 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: E2 62 00 3C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 22 02 00 0E 04 04 00 C5 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 8D [19:23:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 22 02 00 0E 04 04 00 C5 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 [19:23:28]wFMCommunicate OK [19:23:28]SAM_PROTO_GetFieldsCounters done [19:23:28]requested_item shift.num is exist - process it [19:23:28]requested_item shift.opened is exist - process it [19:23:28]req_shift_opened [19:23:28]FM_GetShiftState [19:23:28]SAM_PROTO_GetShiftState [19:23:28]wFMCommunicate request_size=4 [19:23:28]MH_SAM_APDU [19:23:28]CAPDU: 80 13 01 00 [19:23:28]Write to MH i2c: E2 08 00 3D 09 80 13 01 00 00 00 00 00 C3 [19:23:28]Write i2c OK [19:23:28]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 3D 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 54 [19:23:28]RAPDU: 09 00 01 79 E3 C3 66 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]req_shift_opened done [19:23:28]requested_item shift.open_date is exist - process it [19:23:28]req_shift_open_date [19:23:28]req_shift_open_date done [19:23:28]produce_requested_data done [19:23:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139891,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:23:28]process_action_free close_receipt [19:23:28]json_value_free [19:23:28]json_value_free done [19:23:28]process_json_proto returns [19:23:28]Send response to host [19:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139891,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:23:28]free response buf [19:23:28]execute_script done [19:23:28]execute_script returns [19:23:28]free content buf [19:23:28]Sock 9.Close socket [19:23:28]Sock 9.Thread stoped [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:35]accept exits with 7 [19:24:35]New connection [19:24:35]New thread 3066797412 created [19:24:35]Thread 3066940772 joined [19:24:35]Waiting for new connection... [19:24:35] Sock 7.Parse request [19:24:35]Sock 7.Check first char [19:24:35]Sock 7.First char is OK [19:24:35]request: POST /json_proto HTTP/1.0 [19:24:35]Method: POST [19:24:35]URL: /json_proto [19:24:35]Method is POST - this is cgi request [19:24:35]url: /json_proto [19:24:35]query_string will be loaded in cgi processing [19:24:35]execute_cgi json_proto POST (null) [19:24:35]execute_cgi path=json_proto method=POST [19:24:35]POST find Content-Length [19:24:35]Host: 172.17.45.67:8080 [19:24:35]Content-Length: 658 [19:24:35]Content-Type: application/json [19:24:35] [19:24:35]POST finish read [19:24:35]Found Content-Length = 658 [19:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:35]execute_script... [19:24:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:35]POST & json_proto [19:24:35]process_json_proto [19:24:35]json parsed OK: [19:24:35]protocol is kg_v1.0 [19:24:35]action value=close_receipt [19:24:35]process_action close_receipt [19:24:35]cmd_close_receipt [19:24:35]MH_GetDate [19:24:35]Write to MH i2c: F0 00 00 3E 09 36 [19:24:35]Write i2c OK [19:24:35]MH_I2C_Read... [19:24:35]Read from MH i2c: F0 [19:24:35]MH_I2C_Read... [19:24:35]Read from MH i2c: F0 09 00 [19:24:35]MH_I2C_Read... [19:24:35]Read from MH i2c: F0 09 00 3E 09 00 74 ED C4 66 5F 7F 2B 66 39 [19:24:35]GetLastDocTimeStamp 1724181805 [19:24:35]current date 1724181876 [19:24:35]FM_GetShiftState [19:24:35]SAM_PROTO_GetShiftState [19:24:35]wFMCommunicate request_size=4 [19:24:35]MH_SAM_APDU [19:24:35]CAPDU: 80 13 01 00 [19:24:35]Write to MH i2c: E2 08 00 3F 09 80 13 01 00 00 00 00 00 C5 [19:24:35]Write i2c OK [19:24:35]MH_I2C_Read... [19:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:35]Read from MH i2c: E2 [19:24:35]MH_I2C_Read... [19:24:35]Read from MH i2c: E2 0E 00 [19:24:35]MH_I2C_Read... [19:24:35]Read from MH i2c: E2 0E 00 3F 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 56 [19:24:35]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:24:35]wFMCommunicate OK [19:24:35]SAM_PROTO_GetShiftState done [19:24:35]FM_GetShiftState done [19:24:35]opened in 1724113785 [19:24:35]opened+sec_in_day 1724200185 [19:24:35]quantity*price = 50017 [19:24:35]sum+1 = 50019 [19:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 364 20.08.2024 19:24 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139892 ФПД: 39895992612474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139892&fm=39895992612474&tin=02508201610067®Number=0000000000092569&sum=50000 [19:24:37]StoreToDocumentArchive [19:24:37]shift 453 fd 139892 [19:24:37]save to /storage/0453/doc_00139892 [19:24:37]save last doc name /storage/0453/doc_00139892 to /storage/kkm_last_doc_name [19:24:37]save OK [19:24:37]Clear old archive folders... [19:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:24:37]tlvbuf is 00412400 [19:24:37]SAM_PROTO_ClearQueue [19:24:37]wFMCommunicate request_size=4 [19:24:37]MH_SAM_APDU [19:24:37]CAPDU: 80 09 00 00 [19:24:37]Write to MH i2c: E2 08 00 4C 09 80 09 00 00 00 00 00 00 C7 [19:24:37]Write i2c OK [19:24:37]MH_I2C_Read... [19:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:37]Read from MH i2c: E2 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 03 00 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 03 00 4C 09 00 90 00 C9 [19:24:37]RAPDU: 90 00 [19:24:37]wFMCommunicate OK [19:24:37]SAM_PROTO_ClearQueue done [19:24:37]KKMCreateOFDPacket [19:24:37]OFDProtocolAddRootSTLVToBuf [19:24:37]FM_MakeSignedData [19:24:37]FM_MakeSignedData [19:24:37]SAM_PROTO_SignData [19:24:37]wFMCommunicate request_size=4 [19:24:37]MH_SAM_APDU [19:24:37]CAPDU: 80 0D 01 02 [19:24:37]Write to MH i2c: E2 08 00 4D 09 80 0D 01 02 00 00 00 00 CF [19:24:37]Write i2c OK [19:24:37]MH_I2C_Read... [19:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:37]Read from MH i2c: E2 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 03 00 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 03 00 4D 09 00 90 00 CA [19:24:37]RAPDU: 90 00 [19:24:37]wFMCommunicate OK [19:24:37]wFMCommunicate request_size=253 [19:24:37]MH_SAM_APDU [19:24:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 01 00 00 F4 03 04 00 74 ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 22 02 00 35 04 06 00 24 49 02 77 B6 7A [19:24:37]Write to MH i2c: E2 00 01 4E 09 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 01 00 00 F4 03 04 00 74 ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 22 02 00 35 04 06 00 24 49 02 77 B6 7A 00 00 54 [19:24:37]Write i2c OK [19:24:37]MH_I2C_Read... [19:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:37]Read from MH i2c: E2 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 03 00 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 03 00 4E 09 00 90 00 CB [19:24:37]RAPDU: 90 00 [19:24:37]wFMCommunicate OK [19:24:37]wFMCommunicate request_size=4 [19:24:37]MH_SAM_APDU [19:24:37]CAPDU: 80 0D 03 02 [19:24:37]Write to MH i2c: E2 08 00 4F 09 80 0D 03 02 00 00 00 00 D3 [19:24:37]Write i2c OK [19:24:37]MH_I2C_Read... [19:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:37]Read from MH i2c: E2 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 0B 00 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 0B 00 4F 09 00 2B 40 0A CB 5B F9 1E B3 90 00 39 [19:24:37]RAPDU: 2B 40 0A CB 5B F9 1E B3 90 00 [19:24:37]wFMCommunicate OK [19:24:37]SAM_PROTO_SignData done [19:24:37]FM_MakeSignedData done [19:24:37]CreateOFDProtocolMessage [19:24:37]wFMCommunicate request_size=4 [19:24:37]MH_SAM_APDU [19:24:37]CAPDU: 80 11 00 00 [19:24:37]Write to MH i2c: E2 08 00 50 09 80 11 00 00 00 00 00 00 D3 [19:24:37]Write i2c OK [19:24:37]MH_I2C_Read... [19:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:37]Read from MH i2c: E2 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 17 00 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: E2 17 00 50 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [19:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:24:37]wFMCommunicate OK [19:24:37]CreateOFDProtocolMessage done [19:24:37]OFDSenderStorePacket 139892 [19:24:37]StoreOFDPacket docnum=139892 [19:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 52 13 00 01 A5 3F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 01 00 00 F4 03 04 00 74 ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 22 02 00 35 04 06 00 24 49 02 77 B6 7A 2B 40 0A CB 5B F9 1E B3 [19:24:37]CheckFolder [19:24:37]dirname=/storage/ofd_packets [19:24:37]CheckFolder done [19:24:37]ProducePacketName [19:24:37]name=ofd_packets/00139892 [19:24:37]NVStorageSaveData ofd_packets/00139892 [19:24:37]File name is /storage/ofd_packets/00139892 [19:24:37]Write 294 bytes [19:24:37]NVStorageSaveData done [19:24:37]OFDSenderStorePacket done [19:24:37]KKMCreateOFDPacket done [19:24:37]NVStorageSaveData kkm_last_timestamp [19:24:37]File name is /storage/kkm_last_timestamp [19:24:37]Write 4 bytes [19:24:37]NVStorageSaveData done [19:24:37]ExternCall_PrintAddStr [19:24:37]wPrintStart [19:24:37]Write to MH i2c: 01 00 00 51 09 5A [19:24:37]Write i2c OK [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: 01 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: 01 07 00 [19:24:37]MH_I2C_Read... [19:24:37]Read from MH i2c: 01 07 00 51 09 00 00 00 00 00 FF 0F 6F [19:24:37]RasterBufferAndPrint [19:24:37]line Счет N : (1)593748 [19:24:37]line ИНН: 02508201610067 [19:24:37]line Контрольно-Кассовый Чек [19:24:37]line ПРОДАЖА [19:24:37]line ТРК (МРК, ГНК) : 43 [19:24:37]line Товар: 2710124130 [19:24:37]line SU-92 [19:24:37]line 7.270 * 68.80 [19:24:37]line = 500.18 [19:24:37]line НДС 12% НСП 1% [19:24:37]line > о реализуемом товаре [19:24:37]line ОКРУГЛЕНИЕ: -0.18 [19:24:37]line ИТОГО: 500.00 [19:24:37]line Внесено: 500.00 [19:24:37]line СДАЧА: 0.00 [19:24:37]line НСП 1% : 4.43 [19:24:37]line НДС 12% : 53.12 [19:24:37]line Наличными: 500.00 [19:24:37]line Безнал.: 0.00 [19:24:37]line Место: АЗС № 136 "Партнер Нефть" [19:24:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:24:37]line СНО: Общий режим [19:24:37]line Чек 364 20.08.2024 19:24 [19:24:37]line Смена: 453 ФФД: 1.0 [19:24:37]line ЗНМ: 0300000067 [19:24:37]line РНМ: 0000000000092569 [19:24:37]line Версия ККМ: 001 [19:24:37]line ФМ: 0000000000871776 [19:24:37]line ФД: 139892 [19:24:37]line ФПД: 39895992612474 [19:24:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139892&fm=39895992612474&tin=02508201610067®Number=0000000000092569&sum=50000 [19:24:37]OFD Sender: Processing packet 139892 [packets to send 137, broken 136] [19:24:37]ProducePacketName [19:24:37]name=ofd_packets/00139892 [19:24:37]OFD Sender: To server: pG, [19:24:37]CommunicateWithHost lk.salyk.kg:30040 [19:24:37]ConnectInit lk.salyk.kg [19:24:37]written 0, free lines is 4095 [19:24:38]Connected sock=10 [19:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 52 13 00 01 A5 3F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 01 00 00 F4 03 04 00 74 ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 22 02 00 35 04 06 00 24 49 02 77 B6 7A 2B 40 0A CB 5B F9 1E B3 [19:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 CD 3F 47 00 8D 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 22 02 00 F4 03 04 00 07 94 C4 66 B6 04 01 00 00 A0 9D D5 C2 EC 6D 58 26 [19:24:38]CommunicateWithHost err = 0 [19:24:38]CheckOFDResponse [19:24:38]1017 (14) - 77093643461234 [19:24:38]1041 (16) - 0000000000871776 [19:24:38]1040 (4) - 139892 [19:24:38]1012 (4) - 20.08.2024 13:03 [19:24:38]1206 (1) - 0 [19:24:38]OFD Sender: Remove packet 139892 [19:24:38]ProducePacketName [19:24:38]name=ofd_packets/00139892 [19:24:38]NVStorageDeleteData [19:24:38]Write to MH i2c: 01 00 00 7C 09 85 [19:24:38]Write i2c OK [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: 01 [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: 01 07 00 [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: 01 07 00 7C 09 00 00 00 00 00 D6 0C 6E [19:24:38]RasterBufferAndPrint [19:24:38]line [19:24:38]line [19:24:38]line [19:24:38]line [19:24:38]line [19:24:38]written 0, free lines is 3290 [19:24:38]MH_Cut [19:24:38]Write to MH i2c: D1 01 00 83 09 01 5E [19:24:38]Write i2c OK [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: D1 [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: D1 01 00 [19:24:38]MH_I2C_Read... [19:24:38]Read from MH i2c: D1 01 00 83 09 00 5D [19:24:38]Write to MH i2c: 01 00 00 84 09 8D [19:24:38]Write i2c OK [19:24:38]MH_I2C_Read... [19:24:38]OFD Sender: No OFD packet to send [19:24:39]*** Cut start [19:24:39]*** Partial cut [19:24:39]*** CUTSNS_PIN = 1 [19:24:39]*** CUTSNS_PIN = 0 [19:24:39]*** Brake cut motor [19:24:39]Read from MH i2c: 01 [19:24:39]MH_I2C_Read... [19:24:39]*** Stop cut motor [19:24:39]*** Cut end [19:24:39]Read from MH i2c: 01 07 00 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: 01 07 00 84 09 00 00 00 00 00 FF 0F A2 [19:24:39]process_action close_receipt done [19:24:39]requested_data is exist [19:24:39]produce_requested_data [19:24:39]requested_item fm.sn is exist - process it [19:24:39]wFMCommunicate request_size=4 [19:24:39]MH_SAM_APDU [19:24:39]CAPDU: 80 11 00 00 [19:24:39]Write to MH i2c: E2 08 00 85 09 80 11 00 00 00 00 00 00 08 [19:24:39]Write i2c OK [19:24:39]MH_I2C_Read... [19:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:39]Read from MH i2c: E2 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: E2 17 00 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: E2 17 00 85 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [19:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:24:39]wFMCommunicate OK [19:24:39]requested_item fd.num is exist - process it [19:24:39]SAM_PROTO_GetFieldsCounters [19:24:39]wFMCommunicate request_size=4 [19:24:39]MH_SAM_APDU [19:24:39]CAPDU: 80 13 00 00 [19:24:39]Write to MH i2c: E2 08 00 86 09 80 13 00 00 00 00 00 00 0B [19:24:39]Write i2c OK [19:24:39]MH_I2C_Read... [19:24:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:39]Read from MH i2c: E2 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: E2 62 00 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: E2 62 00 86 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 22 02 00 0E 04 04 00 C5 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 DB [19:24:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 22 02 00 0E 04 04 00 C5 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 [19:24:39]wFMCommunicate OK [19:24:39]SAM_PROTO_GetFieldsCounters done [19:24:39]requested_item shift.num is exist - process it [19:24:39]requested_item shift.opened is exist - process it [19:24:39]req_shift_opened [19:24:39]FM_GetShiftState [19:24:39]SAM_PROTO_GetShiftState [19:24:39]wFMCommunicate request_size=4 [19:24:39]MH_SAM_APDU [19:24:39]CAPDU: 80 13 01 00 [19:24:39]Write to MH i2c: E2 08 00 87 09 80 13 01 00 00 00 00 00 0D [19:24:39]Write i2c OK [19:24:39]MH_I2C_Read... [19:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:39]Read from MH i2c: E2 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: E2 0E 00 [19:24:39]MH_I2C_Read... [19:24:39]Read from MH i2c: E2 0E 00 87 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9E [19:24:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:24:39]wFMCommunicate OK [19:24:39]SAM_PROTO_GetShiftState done [19:24:39]FM_GetShiftState done [19:24:39]req_shift_opened done [19:24:39]requested_item shift.open_date is exist - process it [19:24:39]req_shift_open_date [19:24:39]req_shift_open_date done [19:24:39]produce_requested_data done [19:24:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139892,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:24:39]process_action_free close_receipt [19:24:39]json_value_free [19:24:39]json_value_free done [19:24:39]process_json_proto returns [19:24:39]Send response to host [19:24:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139892,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:24:39]free response buf [19:24:39]execute_script done [19:24:39]execute_script returns [19:24:39]free content buf [19:24:39]Sock 7.Close socket [19:24:39]Sock 7.Thread stoped [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:55]accept exits with 9 [19:24:55]New connection [19:24:55]New thread 3066940772 created [19:24:55]Thread 3066797412 joined [19:24:55]Waiting for new connection... [19:24:55] Sock 9.Parse request [19:24:55]Sock 9.Check first char [19:24:55]Sock 9.First char is OK [19:24:55]request: POST /json_proto HTTP/1.0 [19:24:55]Method: POST [19:24:55]URL: /json_proto [19:24:55]Method is POST - this is cgi request [19:24:55]url: /json_proto [19:24:55]query_string will be loaded in cgi processing [19:24:55]execute_cgi json_proto POST (null) [19:24:55]execute_cgi path=json_proto method=POST [19:24:55]POST find Content-Length [19:24:55]Host: 172.17.45.67:8080 [19:24:55]Content-Length: 682 [19:24:55]Content-Type: application/json [19:24:55] [19:24:55]POST finish read [19:24:55]Found Content-Length = 682 [19:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:55]execute_script... [19:24:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:55]POST & json_proto [19:24:55]process_json_proto [19:24:55]json parsed OK: [19:24:55]protocol is kg_v1.0 [19:24:55]action value=close_receipt [19:24:55]process_action close_receipt [19:24:55]cmd_close_receipt [19:24:55]MH_GetDate [19:24:55]Write to MH i2c: F0 00 00 88 09 80 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: F0 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: F0 09 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: F0 09 00 88 09 00 88 ED C4 66 5F 7F 2B 66 97 [19:24:55]GetLastDocTimeStamp 1724181876 [19:24:55]current date 1724181896 [19:24:55]FM_GetShiftState [19:24:55]SAM_PROTO_GetShiftState [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 13 01 00 [19:24:55]Write to MH i2c: E2 08 00 89 09 80 13 01 00 00 00 00 00 0F [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0E 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0E 00 89 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A0 [19:24:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:24:55]wFMCommunicate OK [19:24:55]SAM_PROTO_GetShiftState done [19:24:55]FM_GetShiftState done [19:24:55]opened in 1724113785 [19:24:55]opened+sec_in_day 1724200185 [19:24:55]quantity*price = 100021 [19:24:55]sum+1 = 100023 [19:24:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 365 20.08.2024 19:24 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139893 ФПД: 198303013845839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192456&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139893&fm=198303013845839&tin=02508201610067®Number=0000000000092569&sum=100000 [19:24:56]StoreToDocumentArchive [19:24:56]shift 453 fd 139893 [19:24:56]save to /storage/0453/doc_00139893 [19:24:56]save last doc name /storage/0453/doc_00139893 to /storage/kkm_last_doc_name [19:24:56]save OK [19:24:56]Clear old archive folders... [19:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:56]tlvbuf is 00477370 [19:24:56]SAM_PROTO_ClearQueue [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 09 00 00 [19:24:56]Write to MH i2c: E2 08 00 96 09 80 09 00 00 00 00 00 00 11 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 96 09 00 90 00 13 [19:24:56]RAPDU: 90 00 [19:24:56]wFMCommunicate OK [19:24:56]SAM_PROTO_ClearQueue done [19:24:56]KKMCreateOFDPacket [19:24:56]OFDProtocolAddRootSTLVToBuf [19:24:56]FM_MakeSignedData [19:24:56]FM_MakeSignedData [19:24:56]SAM_PROTO_SignData [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 0D 01 02 [19:24:56]Write to MH i2c: E2 08 00 97 09 80 0D 01 02 00 00 00 00 19 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 97 09 00 90 00 14 [19:24:56]RAPDU: 90 00 [19:24:56]wFMCommunicate OK [19:24:56]wFMCommunicate request_size=255 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 88 ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 22 02 00 35 04 06 00 B4 [19:24:56]Write to MH i2c: E2 02 01 98 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 6D 01 00 00 F4 03 04 00 88 ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 22 02 00 35 04 06 00 B4 00 00 EF [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 98 09 00 90 00 15 [19:24:57]RAPDU: 90 00 [19:24:57]wFMCommunicate OK [19:24:57]wFMCommunicate request_size=10 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 0D 02 02 05 5B 04 B2 BB 4F [19:24:57]Write to MH i2c: E2 0D 00 99 09 80 0D 02 02 05 00 5B 04 B2 BB 4F 00 00 41 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 03 00 99 09 00 90 00 16 [19:24:57]RAPDU: 90 00 [19:24:57]wFMCommunicate OK [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 0D 03 02 [19:24:57]Write to MH i2c: E2 08 00 9A 09 80 0D 03 02 00 00 00 00 1E [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 0B 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 0B 00 9A 09 00 77 47 5B FB F4 99 0D C5 90 00 92 [19:24:57]RAPDU: 77 47 5B FB F4 99 0D C5 90 00 [19:24:57]wFMCommunicate OK [19:24:57]SAM_PROTO_SignData done [19:24:57]FM_MakeSignedData done [19:24:57]CreateOFDProtocolMessage [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 11 00 00 [19:24:57]Write to MH i2c: E2 08 00 9B 09 80 11 00 00 00 00 00 00 1E [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 17 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 17 00 9B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [19:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:24:57]wFMCommunicate OK [19:24:57]CreateOFDProtocolMessage done [19:24:57]OFDSenderStorePacket 139893 [19:24:57]StoreOFDPacket docnum=139893 [19:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9D 35 07 01 1E E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 6D 01 00 00 F4 03 04 00 88 ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 22 02 00 35 04 06 00 B4 5B 04 B2 BB 4F 77 47 5B FB F4 99 0D C5 [19:24:57]CheckFolder [19:24:57]dirname=/storage/ofd_packets [19:24:57]CheckFolder done [19:24:57]ProducePacketName [19:24:57]name=ofd_packets/00139893 [19:24:57]NVStorageSaveData ofd_packets/00139893 [19:24:57]File name is /storage/ofd_packets/00139893 [19:24:57]Write 301 bytes [19:24:57]NVStorageSaveData done [19:24:57]OFDSenderStorePacket done [19:24:57]KKMCreateOFDPacket done [19:24:57]NVStorageSaveData kkm_last_timestamp [19:24:57]File name is /storage/kkm_last_timestamp [19:24:57]Write 4 bytes [19:24:57]NVStorageSaveData done [19:24:57]ExternCall_PrintAddStr [19:24:57]wPrintStart [19:24:57]Write to MH i2c: 01 00 00 9C 09 A5 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 9C 09 00 00 00 00 00 FF 0F BA [19:24:57]RasterBufferAndPrint [19:24:57]line Счет N : (1)593747 [19:24:57]line ИНН: 02508201610067 [19:24:57]line Контрольно-Кассовый Чек [19:24:57]line ПРОДАЖА [19:24:57]line ТРК (МРК, ГНК) : 51 [19:24:57]line Товар: 2710124500 [19:24:57]line Аи-95-К-5 [19:24:57]line 13.480 * 74.20 [19:24:57]line = 1000.22 [19:24:57]line НДС 12% НСП 1% [19:24:57]line > о реализуемом товаре [19:24:57]line ОКРУГЛЕНИЕ: -0.22 [19:24:57]line ИТОГО: 1000.00 [19:24:57]line Внесено: 1000.00 [19:24:57]line СДАЧА: 0.00 [19:24:57]line НСП 1% : 8.85 [19:24:57]line НДС 12% : 106.22 [19:24:57]line Наличными: 1000.00 [19:24:57]line Безнал.: 0.00 [19:24:57]line Место: АЗС № 136 "Партнер Нефть" [19:24:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:24:57]line СНО: Общий режим [19:24:57]line Чек 365 20.08.2024 19:24 [19:24:57]line Смена: 453 ФФД: 1.0 [19:24:57]line ЗНМ: 0300000067 [19:24:57]line РНМ: 0000000000092569 [19:24:57]line Версия ККМ: 001 [19:24:57]line ФМ: 0000000000871776 [19:24:57]line ФД: 139893 [19:24:57]line ФПД: 198303013845839 [19:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192456&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139893&fm=198303013845839&tin=02508201610067®Number=0000000000092569&sum=100000 [19:24:57]written 0, free lines is 4095 [19:24:57]OFD Sender: Processing packet 139893 [packets to send 137, broken 136] [19:24:57]ProducePacketName [19:24:57]name=ofd_packets/00139893 [19:24:57]OFD Sender: To server: pG, [19:24:57]CommunicateWithHost lk.salyk.kg:30040 [19:24:57]ConnectInit lk.salyk.kg [19:24:57]Connected sock=10 [19:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9D 35 07 01 1E E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 6D 01 00 00 F4 03 04 00 88 ED C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 22 02 00 35 04 06 00 B4 5B 04 B2 BB 4F 77 47 5B FB F4 99 0D C5 [19:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F7 AC 47 00 D9 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 22 02 00 F4 03 04 00 1B 94 C4 66 B6 04 01 00 00 C8 39 DD 5D 42 9C 9A D2 [19:24:58]CommunicateWithHost err = 0 [19:24:58]CheckOFDResponse [19:24:58]1017 (14) - 77093643461234 [19:24:58]1041 (16) - 0000000000871776 [19:24:58]1040 (4) - 139893 [19:24:58]1012 (4) - 20.08.2024 13:03 [19:24:58]1206 (1) - 0 [19:24:58]OFD Sender: Remove packet 139893 [19:24:58]ProducePacketName [19:24:58]name=ofd_packets/00139893 [19:24:58]NVStorageDeleteData [19:24:58]Write to MH i2c: 01 00 00 C7 09 D0 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 07 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: 01 07 00 C7 09 00 00 00 00 00 D7 0C BA [19:24:58]RasterBufferAndPrint [19:24:58]line [19:24:58]line [19:24:58]line [19:24:58]line [19:24:58]line [19:24:58]written 0, free lines is 3296 [19:24:58]MH_Cut [19:24:58]Write to MH i2c: D1 01 00 CE 09 01 A9 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: D1 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: D1 01 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: D1 01 00 CE 09 00 A8 [19:24:58]Write to MH i2c: 01 00 00 CF 09 D8 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]OFD Sender: No OFD packet to send [19:24:58]*** Cut start [19:24:58]*** Partial cut [19:24:58]*** CUTSNS_PIN = 1 [19:24:58]*** CUTSNS_PIN = 0 [19:24:59]*** Brake cut motor [19:24:59]Read from MH i2c: 01 [19:24:59]MH_I2C_Read... [19:24:59]*** Stop cut motor [19:24:59]*** Cut end [19:24:59]Read from MH i2c: 01 07 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 CF 09 00 00 00 00 00 FF 0F ED [19:24:59]process_action close_receipt done [19:24:59]requested_data is exist [19:24:59]produce_requested_data [19:24:59]requested_item fm.sn is exist - process it [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 11 00 00 [19:24:59]Write to MH i2c: E2 08 00 D0 09 80 11 00 00 00 00 00 00 53 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 D0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [19:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:24:59]wFMCommunicate OK [19:24:59]requested_item fd.num is exist - process it [19:24:59]SAM_PROTO_GetFieldsCounters [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 13 00 00 [19:24:59]Write to MH i2c: E2 08 00 D1 09 80 13 00 00 00 00 00 00 56 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 62 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 62 00 D1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 22 02 00 0E 04 04 00 C5 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 2A [19:24:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 22 02 00 0E 04 04 00 C5 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 [19:24:59]wFMCommunicate OK [19:24:59]SAM_PROTO_GetFieldsCounters done [19:24:59]requested_item shift.num is exist - process it [19:24:59]requested_item shift.opened is exist - process it [19:24:59]req_shift_opened [19:24:59]FM_GetShiftState [19:24:59]SAM_PROTO_GetShiftState [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 13 01 00 [19:24:59]Write to MH i2c: E2 08 00 D2 09 80 13 01 00 00 00 00 00 58 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0E 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0E 00 D2 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E9 [19:24:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:24:59]wFMCommunicate OK [19:24:59]SAM_PROTO_GetShiftState done [19:24:59]FM_GetShiftState done [19:24:59]req_shift_opened done [19:24:59]requested_item shift.open_date is exist - process it [19:24:59]req_shift_open_date [19:24:59]req_shift_open_date done [19:24:59]produce_requested_data done [19:24:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139893,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:24:59]process_action_free close_receipt [19:24:59]json_value_free [19:24:59]json_value_free done [19:24:59]process_json_proto returns [19:24:59]Send response to host [19:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139893,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:24:59]free response buf [19:24:59]execute_script done [19:24:59]execute_script returns [19:24:59]free content buf [19:24:59]Sock 9.Close socket [19:24:59]Sock 9.Thread stoped [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:12]accept exits with 7 [19:27:12]New connection [19:27:12]New thread 3066797412 created [19:27:12]Thread 3066940772 joined [19:27:12]Waiting for new connection... [19:27:12] Sock 7.Parse request [19:27:12]Sock 7.Check first char [19:27:12]Sock 7.First char is OK [19:27:12]request: POST /json_proto HTTP/1.0 [19:27:12]Method: POST [19:27:12]URL: /json_proto [19:27:12]Method is POST - this is cgi request [19:27:12]url: /json_proto [19:27:12]query_string will be loaded in cgi processing [19:27:12]execute_cgi json_proto POST (null) [19:27:12]execute_cgi path=json_proto method=POST [19:27:12]POST find Content-Length [19:27:12]Host: 172.17.45.67:8080 [19:27:12]Content-Length: 682 [19:27:12]Content-Type: application/json [19:27:12] [19:27:12]POST finish read [19:27:12]Found Content-Length = 682 [19:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:12]execute_script... [19: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)593749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:12]POST & json_proto [19:27:12]process_json_proto [19:27:12]json parsed OK: [19:27:12]protocol is kg_v1.0 [19:27:12]action value=close_receipt [19:27:12]process_action close_receipt [19:27:12]cmd_close_receipt [19:27:12]MH_GetDate [19:27:12]Write to MH i2c: F0 00 00 D3 09 CB [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: F0 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: F0 09 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: F0 09 00 D3 09 00 10 EE C4 66 5F 7F 2B 66 6B [19:27:12]GetLastDocTimeStamp 1724181896 [19:27:12]current date 1724182032 [19:27:12]FM_GetShiftState [19:27:12]SAM_PROTO_GetShiftState [19:27:12]wFMCommunicate request_size=4 [19:27:12]MH_SAM_APDU [19:27:12]CAPDU: 80 13 01 00 [19:27:12]Write to MH i2c: E2 08 00 D4 09 80 13 01 00 00 00 00 00 5A [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:12]Read from MH i2c: E2 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: E2 0E 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: E2 0E 00 D4 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EB [19:27:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:27:12]wFMCommunicate OK [19:27:12]SAM_PROTO_GetShiftState done [19:27:12]FM_GetShiftState done [19:27:12]opened in 1724113785 [19:27:12]opened+sec_in_day 1724200185 [19:27:12]quantity*price = 250054 [19:27:12]sum+1 = 250055 [19:27:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 366 20.08.2024 19:27 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139894 ФПД: 280987791325639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192712&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139894&fm=280987791325639&tin=02508201610067®Number=0000000000092569&sum=250000 [19:27:13]StoreToDocumentArchive [19:27:13]shift 453 fd 139894 [19:27:13]save to /storage/0453/doc_00139894 [19:27:13]save last doc name /storage/0453/doc_00139894 to /storage/kkm_last_doc_name [19:27:13]save OK [19:27:13]Clear old archive folders... [19:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:13]tlvbuf is B6DA5010 [19:27:13]SAM_PROTO_ClearQueue [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 09 00 00 [19:27:13]Write to MH i2c: E2 08 00 E1 09 80 09 00 00 00 00 00 00 5C [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 E1 09 00 90 00 5E [19:27:13]RAPDU: 90 00 [19:27:13]wFMCommunicate OK [19:27:13]SAM_PROTO_ClearQueue done [19:27:13]KKMCreateOFDPacket [19:27:13]OFDProtocolAddRootSTLVToBuf [19:27:13]FM_MakeSignedData [19:27:13]FM_MakeSignedData [19:27:13]SAM_PROTO_SignData [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 0D 01 02 [19:27:13]Write to MH i2c: E2 08 00 E2 09 80 0D 01 02 00 00 00 00 64 [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 E2 09 00 90 00 5F [19:27:13]RAPDU: 90 00 [19:27:13]wFMCommunicate OK [19:27:13]wFMCommunicate request_size=255 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 10 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 22 02 00 35 04 06 00 FF [19:27:13]Write to MH i2c: E2 02 01 E3 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 10 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 22 02 00 35 04 06 00 FF 00 00 DE [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 E3 09 00 90 00 60 [19:27:13]RAPDU: 90 00 [19:27:13]wFMCommunicate OK [19:27:13]wFMCommunicate request_size=10 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 0D 02 02 05 8E 91 7C F9 C7 [19:27:13]Write to MH i2c: E2 0D 00 E4 09 80 0D 02 02 05 00 8E 91 7C F9 C7 00 00 CC [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 E4 09 00 90 00 61 [19:27:13]RAPDU: 90 00 [19:27:13]wFMCommunicate OK [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 0D 03 02 [19:27:13]Write to MH i2c: E2 08 00 E5 09 80 0D 03 02 00 00 00 00 69 [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 0B 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 0B 00 E5 09 00 2F C8 B4 85 A7 31 4A D0 90 00 8C [19:27:13]RAPDU: 2F C8 B4 85 A7 31 4A D0 90 00 [19:27:13]wFMCommunicate OK [19:27:13]SAM_PROTO_SignData done [19:27:13]FM_MakeSignedData done [19:27:13]CreateOFDProtocolMessage [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 11 00 00 [19:27:13]Write to MH i2c: E2 08 00 E6 09 80 11 00 00 00 00 00 00 69 [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]OFD Sender: No OFD packet to send [19:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 17 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 17 00 E6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [19:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:27:13]wFMCommunicate OK [19:27:13]CreateOFDProtocolMessage done [19:27:13]OFDSenderStorePacket 139894 [19:27:13]StoreOFDPacket docnum=139894 [19:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2E 54 07 01 E4 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 10 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 22 02 00 35 04 06 00 FF 8E 91 7C F9 C7 2F C8 B4 85 A7 31 4A D0 [19:27:13]CheckFolder [19:27:13]dirname=/storage/ofd_packets [19:27:13]CheckFolder done [19:27:13]ProducePacketName [19:27:13]name=ofd_packets/00139894 [19:27:13]NVStorageSaveData ofd_packets/00139894 [19:27:13]File name is /storage/ofd_packets/00139894 [19:27:13]Write 301 bytes [19:27:13]NVStorageSaveData done [19:27:13]OFDSenderStorePacket done [19:27:13]KKMCreateOFDPacket done [19:27:13]NVStorageSaveData kkm_last_timestamp [19:27:13]File name is /storage/kkm_last_timestamp [19:27:13]Write 4 bytes [19:27:13]NVStorageSaveData done [19:27:13]ExternCall_PrintAddStr [19:27:13]wPrintStart [19:27:13]Write to MH i2c: 01 00 00 E7 09 F0 [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: 01 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: 01 07 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: 01 07 00 E7 09 00 00 00 00 00 FF 0F 05 [19:27:13]RasterBufferAndPrint [19:27:13]line Счет N : (1)593749 [19:27:13]line ИНН: 02508201610067 [19:27:13]line Контрольно-Кассовый Чек [19:27:13]line ПРОДАЖА [19:27:13]line ТРК (МРК, ГНК) : 61 [19:27:13]line Товар: 2710124500 [19:27:13]line Аи-95-К-5 [19:27:13]line 33.700 * 74.20 [19:27:13]line = 2500.54 [19:27:13]line НДС 12% НСП 1% [19:27:13]line > о реализуемом товаре [19:27:13]line ОКРУГЛЕНИЕ: -0.54 [19:27:13]line ИТОГО: 2500.00 [19:27:13]line Внесено: 2500.00 [19:27:13]line СДАЧА: 0.00 [19:27:13]line НСП 1% : 22.13 [19:27:13]line НДС 12% : 265.54 [19:27:13]line Наличными: 2500.00 [19:27:13]line Безнал.: 0.00 [19:27:13]line Место: АЗС № 136 "Партнер Нефть" [19:27:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:27:13]line СНО: Общий режим [19:27:13]line Чек 366 20.08.2024 19:27 [19:27:13]line Смена: 453 ФФД: 1.0 [19:27:13]line ЗНМ: 0300000067 [19:27:13]line РНМ: 0000000000092569 [19:27:13]line Версия ККМ: 001 [19:27:13]line ФМ: 0000000000871776 [19:27:13]line ФД: 139894 [19:27:13]line ФПД: 280987791325639 [19:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T192712&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139894&fm=280987791325639&tin=02508201610067®Number=0000000000092569&sum=250000 [19:27:14]OFD Sender: Processing packet 139894 [packets to send 137, broken 136] [19:27:14]ProducePacketName [19:27:14]name=ofd_packets/00139894 [19:27:14]OFD Sender: To server: pG, [19:27:14]CommunicateWithHost lk.salyk.kg:30040 [19:27:14]ConnectInit lk.salyk.kg [19:27:14]written 0, free lines is 4095 [19:27:14]Connected sock=10 [19:27:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2E 54 07 01 E4 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 10 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 22 02 00 35 04 06 00 FF 8E 91 7C F9 C7 2F C8 B4 85 A7 31 4A D0 [19:27:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EE 2C 47 00 16 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 22 02 00 F4 03 04 00 A3 94 C4 66 B6 04 01 00 00 E2 F2 04 81 63 C0 5D 11 [19:27:14]CommunicateWithHost err = 0 [19:27:14]CheckOFDResponse [19:27:14]1017 (14) - 77093643461234 [19:27:14]1041 (16) - 0000000000871776 [19:27:14]1040 (4) - 139894 [19:27:14]1012 (4) - 20.08.2024 13:05 [19:27:14]1206 (1) - 0 [19:27:14]OFD Sender: Remove packet 139894 [19:27:14]ProducePacketName [19:27:14]name=ofd_packets/00139894 [19:27:14]NVStorageDeleteData [19:27:14]Write to MH i2c: 01 00 00 12 0A 1C [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: 01 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: 01 07 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 DD 0C 0C [19:27:14]RasterBufferAndPrint [19:27:14]line [19:27:14]line [19:27:14]line [19:27:14]line [19:27:14]line [19:27:14]written 0, free lines is 3299 [19:27:14]MH_Cut [19:27:14]Write to MH i2c: D1 01 00 19 0A 01 F5 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: D1 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: D1 01 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: D1 01 00 19 0A 00 F4 [19:27:14]Write to MH i2c: 01 00 00 1A 0A 24 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:15]OFD Sender: No OFD packet to send [19:27:15]*** Cut start [19:27:15]*** Partial cut [19:27:15]*** CUTSNS_PIN = 1 [19:27:15]*** CUTSNS_PIN = 0 [19:27:15]*** Brake cut motor [19:27:15]Read from MH i2c: 01 [19:27:15]MH_I2C_Read... [19:27:15]*** Stop cut motor [19:27:15]*** Cut end [19:27:15]Read from MH i2c: 01 07 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 1A 0A 00 00 00 00 00 FF 0F 39 [19:27:15]process_action close_receipt done [19:27:15]requested_data is exist [19:27:15]produce_requested_data [19:27:15]requested_item fm.sn is exist - process it [19:27:15]wFMCommunicate request_size=4 [19:27:15]MH_SAM_APDU [19:27:15]CAPDU: 80 11 00 00 [19:27:15]Write to MH i2c: E2 08 00 1B 0A 80 11 00 00 00 00 00 00 9F [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:15]Read from MH i2c: E2 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 17 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: E2 17 00 1B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [19:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:27:15]wFMCommunicate OK [19:27:15]requested_item fd.num is exist - process it [19:27:15]SAM_PROTO_GetFieldsCounters [19:27:15]wFMCommunicate request_size=4 [19:27:15]MH_SAM_APDU [19:27:15]CAPDU: 80 13 00 00 [19:27:15]Write to MH i2c: E2 08 00 1C 0A 80 13 00 00 00 00 00 00 A2 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 62 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 62 00 1C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 22 02 00 0E 04 04 00 C5 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 7A [19:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 22 02 00 0E 04 04 00 C5 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 [19:27:16]wFMCommunicate OK [19:27:16]SAM_PROTO_GetFieldsCounters done [19:27:16]requested_item shift.num is exist - process it [19:27:16]requested_item shift.opened is exist - process it [19:27:16]req_shift_opened [19:27:16]FM_GetShiftState [19:27:16]SAM_PROTO_GetShiftState [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 13 01 00 [19:27:16]Write to MH i2c: E2 08 00 1D 0A 80 13 01 00 00 00 00 00 A4 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0E 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0E 00 1D 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 35 [19:27:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:27:16]wFMCommunicate OK [19:27:16]SAM_PROTO_GetShiftState done [19:27:16]FM_GetShiftState done [19:27:16]req_shift_opened done [19:27:16]requested_item shift.open_date is exist - process it [19:27:16]req_shift_open_date [19:27:16]req_shift_open_date done [19:27:16]produce_requested_data done [19:27:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139894,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:27:16]process_action_free close_receipt [19:27:16]json_value_free [19:27:16]json_value_free done [19:27:16]process_json_proto returns [19:27:16]Send response to host [19:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139894,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:27:16]free response buf [19:27:16]execute_script done [19:27:16]execute_script returns [19:27:16]free content buf [19:27:16]Sock 7.Close socket [19:27:16]Sock 7.Thread stoped [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:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:43]accept exits with 9 [19:30:43]New connection [19:30:43]New thread 3066940772 created [19:30:43]Thread 3066797412 joined [19:30:43]Waiting for new connection... [19:30:43] Sock 9.Parse request [19:30:43]Sock 9.Check first char [19:30:43]Sock 9.First char is OK [19:30:43]request: POST /json_proto HTTP/1.0 [19:30:43]Method: POST [19:30:43]URL: /json_proto [19:30:43]Method is POST - this is cgi request [19:30:43]url: /json_proto [19:30:43]query_string will be loaded in cgi processing [19:30:43]execute_cgi json_proto POST (null) [19:30:43]execute_cgi path=json_proto method=POST [19:30:43]POST find Content-Length [19:30:43]Host: 172.17.45.67:8080 [19:30:43]Content-Length: 677 [19:30:43]Content-Type: application/json [19:30:43] [19:30:43]POST finish read [19:30:43]Found Content-Length = 677 [19:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:43]execute_script... [19:30: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)593750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:43]POST & json_proto [19:30:43]process_json_proto [19:30:43]json parsed OK: [19:30:43]protocol is kg_v1.0 [19:30:43]action value=close_receipt [19:30:43]process_action close_receipt [19:30:43]cmd_close_receipt [19:30:43]MH_GetDate [19:30:43]Write to MH i2c: F0 00 00 1E 0A 17 [19:30:43]Write i2c OK [19:30:43]MH_I2C_Read... [19:30:43]Read from MH i2c: F0 [19:30:43]MH_I2C_Read... [19:30:43]Read from MH i2c: F0 09 00 [19:30:43]MH_I2C_Read... [19:30:43]Read from MH i2c: F0 09 00 1E 0A 00 E4 EE C4 66 5F 7F 2B 66 8B [19:30:43]GetLastDocTimeStamp 1724182032 [19:30:43]current date 1724182244 [19:30:43]FM_GetShiftState [19:30:43]SAM_PROTO_GetShiftState [19:30:43]wFMCommunicate request_size=4 [19:30:43]MH_SAM_APDU [19:30:43]CAPDU: 80 13 01 00 [19:30:43]Write to MH i2c: E2 08 00 1F 0A 80 13 01 00 00 00 00 00 A6 [19:30:43]Write i2c OK [19:30:43]MH_I2C_Read... [19:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:43]Read from MH i2c: E2 [19:30:43]MH_I2C_Read... [19:30:43]Read from MH i2c: E2 0E 00 [19:30:43]MH_I2C_Read... [19:30:43]Read from MH i2c: E2 0E 00 1F 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 37 [19:30:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:30:43]wFMCommunicate OK [19:30:43]SAM_PROTO_GetShiftState done [19:30:43]FM_GetShiftState done [19:30:43]opened in 1724113785 [19:30:43]opened+sec_in_day 1724200185 [19:30:43]quantity*price = 40002 [19:30:43]sum+1 = 40003 [19:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 367 20.08.2024 19:30 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139895 ФПД: 43914494835136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T193044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139895&fm=43914494835136&tin=02508201610067®Number=0000000000092569&sum=40000 [19:30:44]StoreToDocumentArchive [19:30:44]shift 453 fd 139895 [19:30:44]save to /storage/0453/doc_00139895 [19:30:44]save last doc name /storage/0453/doc_00139895 to /storage/kkm_last_doc_name [19:30:44]save OK [19:30:44]Clear old archive folders... [19:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:44]tlvbuf is 003C0470 [19:30:44]SAM_PROTO_ClearQueue [19:30:44]wFMCommunicate request_size=4 [19:30:44]MH_SAM_APDU [19:30:44]CAPDU: 80 09 00 00 [19:30:44]Write to MH i2c: E2 08 00 2C 0A 80 09 00 00 00 00 00 00 A8 [19:30:44]Write i2c OK [19:30:44]MH_I2C_Read... [19:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:44]Read from MH i2c: E2 [19:30:44]MH_I2C_Read... [19:30:44]Read from MH i2c: E2 03 00 [19:30:44]MH_I2C_Read... [19:30:44]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [19:30:44]RAPDU: 90 00 [19:30:44]wFMCommunicate OK [19:30:44]SAM_PROTO_ClearQueue done [19:30:44]KKMCreateOFDPacket [19:30:44]OFDProtocolAddRootSTLVToBuf [19:30:44]FM_MakeSignedData [19:30:44]FM_MakeSignedData [19:30:44]SAM_PROTO_SignData [19:30:44]wFMCommunicate request_size=4 [19:30:44]MH_SAM_APDU [19:30:44]CAPDU: 80 0D 01 02 [19:30:44]Write to MH i2c: E2 08 00 2D 0A 80 0D 01 02 00 00 00 00 B0 [19:30:44]Write i2c OK [19:30:44]MH_I2C_Read... [19:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:44]Read from MH i2c: E2 [19:30:44]MH_I2C_Read... [19:30:44]Read from MH i2c: E2 03 00 [19:30:44]MH_I2C_Read... [19:30:44]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [19:30:44]RAPDU: 90 00 [19:30:44]wFMCommunicate OK [19:30:44]wFMCommunicate request_size=255 [19:30:44]MH_SAM_APDU [19:30:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 6F 01 00 00 F4 03 04 00 E4 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 22 02 00 35 04 06 00 27 [19:30:44]Write to MH i2c: E2 02 01 2E 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 E4 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 22 02 00 35 04 06 00 27 00 00 12 [19:30:44]Write i2c OK [19:30:44]MH_I2C_Read... [19:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:45]Read from MH i2c: E2 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: E2 03 00 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [19:30:45]RAPDU: 90 00 [19:30:45]wFMCommunicate OK [19:30:45]wFMCommunicate request_size=10 [19:30:45]MH_SAM_APDU [19:30:45]CAPDU: 80 0D 02 02 05 F0 A3 DD 79 C0 [19:30:45]Write to MH i2c: E2 0D 00 2F 0A 80 0D 02 02 05 00 F0 A3 DD 79 C0 00 00 66 [19:30:45]Write i2c OK [19:30:45]MH_I2C_Read... [19:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:45]Read from MH i2c: E2 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: E2 03 00 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: E2 03 00 2F 0A 00 90 00 AD [19:30:45]RAPDU: 90 00 [19:30:45]wFMCommunicate OK [19:30:45]wFMCommunicate request_size=4 [19:30:45]MH_SAM_APDU [19:30:45]CAPDU: 80 0D 03 02 [19:30:45]Write to MH i2c: E2 08 00 30 0A 80 0D 03 02 00 00 00 00 B5 [19:30:45]Write i2c OK [19:30:45]MH_I2C_Read... [19:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:45]Read from MH i2c: E2 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: E2 0B 00 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: E2 0B 00 30 0A 00 30 24 FC 26 2D 7C 25 53 90 00 4D [19:30:45]RAPDU: 30 24 FC 26 2D 7C 25 53 90 00 [19:30:45]wFMCommunicate OK [19:30:45]SAM_PROTO_SignData done [19:30:45]FM_MakeSignedData done [19:30:45]CreateOFDProtocolMessage [19:30:45]wFMCommunicate request_size=4 [19:30:45]MH_SAM_APDU [19:30:45]CAPDU: 80 11 00 00 [19:30:45]Write to MH i2c: E2 08 00 31 0A 80 11 00 00 00 00 00 00 B5 [19:30:45]Write i2c OK [19:30:45]MH_I2C_Read... [19:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:45]Read from MH i2c: E2 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: E2 17 00 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: E2 17 00 31 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [19:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:30:45]wFMCommunicate OK [19:30:45]CreateOFDProtocolMessage done [19:30:45]OFDSenderStorePacket 139895 [19:30:45]StoreOFDPacket docnum=139895 [19:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7C BE 07 01 3B 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 E4 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 22 02 00 35 04 06 00 27 F0 A3 DD 79 C0 30 24 FC 26 2D 7C 25 53 [19:30:45]CheckFolder [19:30:45]dirname=/storage/ofd_packets [19:30:45]CheckFolder done [19:30:45]ProducePacketName [19:30:45]name=ofd_packets/00139895 [19:30:45]NVStorageSaveData ofd_packets/00139895 [19:30:45]File name is /storage/ofd_packets/00139895 [19:30:45]Write 301 bytes [19:30:45]NVStorageSaveData done [19:30:45]OFDSenderStorePacket done [19:30:45]KKMCreateOFDPacket done [19:30:45]NVStorageSaveData kkm_last_timestamp [19:30:45]File name is /storage/kkm_last_timestamp [19:30:45]Write 4 bytes [19:30:45]NVStorageSaveData done [19:30:45]OFD Sender: Processing packet 139895 [packets to send 137, broken 136] [19:30:45]ProducePacketName [19:30:45]name=ofd_packets/00139895 [19:30:45]OFD Sender: To server: pG, [19:30:45]CommunicateWithHost lk.salyk.kg:30040 [19:30:45]ConnectInit lk.salyk.kg [19:30:45]ExternCall_PrintAddStr [19:30:45]wPrintStart [19:30:45]Write to MH i2c: 01 00 00 32 0A 3C [19:30:45]Write i2c OK [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: 01 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: 01 07 00 [19:30:45]MH_I2C_Read... [19:30:45]Read from MH i2c: 01 07 00 32 0A 00 00 00 00 00 FF 0F 51 [19:30:45]RasterBufferAndPrint [19:30:45]line Счет N : (1)593750 [19:30:45]line ИНН: 02508201610067 [19:30:45]line Контрольно-Кассовый Чек [19:30:45]line ПРОДАЖА [19:30:45]line ТРК (МРК, ГНК) : 32 [19:30:45]line Товар: 2710124130 [19:30:45]line Аи-92-К-5 [19:30:45]line 5.900 * 67.80 [19:30:45]line = 400.02 [19:30:45]line НДС 12% НСП 1% [19:30:45]line > о реализуемом товаре [19:30:45]line ОКРУГЛЕНИЕ: -0.02 [19:30:45]line ИТОГО: 400.00 [19:30:45]line Внесено: 400.00 [19:30:45]line СДАЧА: 0.00 [19:30:45]line НСП 1% : 3.54 [19:30:45]line НДС 12% : 42.48 [19:30:45]line Наличными: 400.00 [19:30:45]line Безнал.: 0.00 [19:30:45]line Место: АЗС № 136 "Партнер Нефть" [19:30:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:30:45]line СНО: Общий режим [19:30:45]line Чек 367 20.08.2024 19:30 [19:30:45]line Смена: 453 ФФД: 1.0 [19:30:45]line ЗНМ: 0300000067 [19:30:45]line РНМ: 0000000000092569 [19:30:45]line Версия ККМ: 001 [19:30:45]line ФМ: 0000000000871776 [19:30:45]line ФД: 139895 [19:30:45]line ФПД: 43914494835136 [19:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T193044&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139895&fm=43914494835136&tin=02508201610067®Number=0000000000092569&sum=40000 [19:30:45]Connected sock=11 [19:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7C BE 07 01 3B 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 E4 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 22 02 00 35 04 06 00 27 F0 A3 DD 79 C0 30 24 FC 26 2D 7C 25 53 [19:30:45]written 0, free lines is 4095 [19:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 50 68 47 00 AE 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 22 02 00 F4 03 04 00 76 95 C4 66 B6 04 01 00 00 F8 BE 63 16 93 19 7F B0 [19:30:45]CommunicateWithHost err = 0 [19:30:45]CheckOFDResponse [19:30:45]1017 (14) - 77093643461234 [19:30:45]1041 (16) - 0000000000871776 [19:30:45]1040 (4) - 139895 [19:30:45]1012 (4) - 20.08.2024 13:09 [19:30:45]1206 (1) - 0 [19:30:45]OFD Sender: Remove packet 139895 [19:30:45]ProducePacketName [19:30:45]name=ofd_packets/00139895 [19:30:45]NVStorageDeleteData [19:30:46]Write to MH i2c: 01 00 00 5D 0A 67 [19:30:46]Write i2c OK [19:30:46]MH_I2C_Read... [19:30:46]Read from MH i2c: 01 [19:30:46]MH_I2C_Read... [19:30:46]Read from MH i2c: 01 07 00 [19:30:46]MH_I2C_Read... [19:30:46]Read from MH i2c: 01 07 00 5D 0A 00 00 00 00 00 D5 0C 4F [19:30:46]RasterBufferAndPrint [19:30:46]line [19:30:46]line [19:30:46]line [19:30:46]line [19:30:46]line [19:30:46]written 0, free lines is 3293 [19:30:46]MH_Cut [19:30:46]Write to MH i2c: D1 01 00 64 0A 01 40 [19:30:46]Write i2c OK [19:30:46]MH_I2C_Read... [19:30:46]Read from MH i2c: D1 [19:30:46]MH_I2C_Read... [19:30:46]Read from MH i2c: D1 01 00 [19:30:46]MH_I2C_Read... [19:30:46]Read from MH i2c: D1 01 00 64 0A 00 3F [19:30:46]Write to MH i2c: 01 00 00 65 0A 6F [19:30:46]Write i2c OK [19:30:46]MH_I2C_Read... [19:30:46]OFD Sender: No OFD packet to send [19:30:46]*** Cut start [19:30:46]*** Partial cut [19:30:46]*** CUTSNS_PIN = 1 [19:30:46]*** CUTSNS_PIN = 0 [19:30:47]*** Brake cut motor [19:30:47]Read from MH i2c: 01 [19:30:47]MH_I2C_Read... [19:30:47]*** Stop cut motor [19:30:47]*** Cut end [19:30:47]Read from MH i2c: 01 07 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: 01 07 00 65 0A 00 00 00 00 00 FF 0F 84 [19:30:47]process_action close_receipt done [19:30:47]requested_data is exist [19:30:47]produce_requested_data [19:30:47]requested_item fm.sn is exist - process it [19:30:47]wFMCommunicate request_size=4 [19:30:47]MH_SAM_APDU [19:30:47]CAPDU: 80 11 00 00 [19:30:47]Write to MH i2c: E2 08 00 66 0A 80 11 00 00 00 00 00 00 EA [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:47]Read from MH i2c: E2 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 17 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 17 00 66 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 41 [19:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:30:47]wFMCommunicate OK [19:30:47]requested_item fd.num is exist - process it [19:30:47]SAM_PROTO_GetFieldsCounters [19:30:47]wFMCommunicate request_size=4 [19:30:47]MH_SAM_APDU [19:30:47]CAPDU: 80 13 00 00 [19:30:47]Write to MH i2c: E2 08 00 67 0A 80 13 00 00 00 00 00 00 ED [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:47]Read from MH i2c: E2 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 62 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 62 00 67 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 22 02 00 0E 04 04 00 C5 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 C9 [19:30:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 22 02 00 0E 04 04 00 C5 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 [19:30:47]wFMCommunicate OK [19:30:47]SAM_PROTO_GetFieldsCounters done [19:30:47]requested_item shift.num is exist - process it [19:30:47]requested_item shift.opened is exist - process it [19:30:47]req_shift_opened [19:30:47]FM_GetShiftState [19:30:47]SAM_PROTO_GetShiftState [19:30:47]wFMCommunicate request_size=4 [19:30:47]MH_SAM_APDU [19:30:47]CAPDU: 80 13 01 00 [19:30:47]Write to MH i2c: E2 08 00 68 0A 80 13 01 00 00 00 00 00 EF [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 [19:30:47]MH_I2C_Read... [19:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:47]Read from MH i2c: E2 0E 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 0E 00 68 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 80 [19:30:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:30:47]wFMCommunicate OK [19:30:47]SAM_PROTO_GetShiftState done [19:30:47]FM_GetShiftState done [19:30:47]req_shift_opened done [19:30:47]requested_item shift.open_date is exist - process it [19:30:47]req_shift_open_date [19:30:47]req_shift_open_date done [19:30:47]produce_requested_data done [19:30:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139895,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:30:47]process_action_free close_receipt [19:30:47]json_value_free [19:30:47]json_value_free done [19:30:47]process_json_proto returns [19:30:47]Send response to host [19:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139895,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:30:47]free response buf [19:30:47]execute_script done [19:30:47]execute_script returns [19:30:47]free content buf [19:30:47]Sock 9.Close socket [19:30:47]Sock 9.Thread stoped [19:30:47]accept exits with 7 [19:30:47]New connection [19:30:47]New thread 3066797412 created [19:30:47]Thread 3066940772 joined [19:30:47]Waiting for new connection... [19:30:47] Sock 7.Parse request [19:30:47]Sock 7.Check first char [19:30:47]Sock 7.First char is OK [19:30:47]request: POST /json_proto HTTP/1.0 [19:30:47]Method: POST [19:30:47]URL: /json_proto [19:30:47]Method is POST - this is cgi request [19:30:47]url: /json_proto [19:30:47]query_string will be loaded in cgi processing [19:30:47]execute_cgi json_proto POST (null) [19:30:47]execute_cgi path=json_proto method=POST [19:30:47]POST find Content-Length [19:30:47]Host: 172.17.45.67:8080 [19:30:47]Content-Length: 677 [19:30:47]Content-Type: application/json [19:30:47] [19:30:47]POST finish read [19:30:47]Found Content-Length = 677 [19:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]execute_script... [19:30: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)593751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]POST & json_proto [19:30:47]process_json_proto [19:30:47]json parsed OK: [19:30:47]protocol is kg_v1.0 [19:30:47]action value=close_receipt [19:30:47]process_action close_receipt [19:30:47]cmd_close_receipt [19:30:47]MH_GetDate [19:30:47]Write to MH i2c: F0 00 00 69 0A 62 [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 09 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: F0 09 00 69 0A 00 E8 EE C4 66 5F 7F 2B 66 DA [19:30:48]GetLastDocTimeStamp 1724182244 [19:30:48]current date 1724182248 [19:30:48]FM_GetShiftState [19:30:48]SAM_PROTO_GetShiftState [19:30:48]wFMCommunicate request_size=4 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 13 01 00 [19:30:48]Write to MH i2c: E2 08 00 6A 0A 80 13 01 00 00 00 00 00 F1 [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:48]Read from MH i2c: E2 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 0E 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 0E 00 6A 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 82 [19:30:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:30:48]wFMCommunicate OK [19:30:48]SAM_PROTO_GetShiftState done [19:30:48]FM_GetShiftState done [19:30:48]opened in 1724113785 [19:30:48]opened+sec_in_day 1724200185 [19:30:48]quantity*price = 50010 [19:30:48]sum+1 = 50012 [19:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 368 20.08.2024 19:30 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139896 ФПД: 227685540453923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T193048&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139896&fm=227685540453923&tin=02508201610067®Number=0000000000092569&sum=50000 [19:30:49]StoreToDocumentArchive [19:30:49]shift 453 fd 139896 [19:30:49]save to /storage/0453/doc_00139896 [19:30:49]save last doc name /storage/0453/doc_00139896 to /storage/kkm_last_doc_name [19:30:49]save OK [19:30:49]Clear old archive folders... [19:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:49]tlvbuf is 004267B0 [19:30:49]SAM_PROTO_ClearQueue [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 09 00 00 [19:30:49]Write to MH i2c: E2 08 00 77 0A 80 09 00 00 00 00 00 00 F3 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]SAM_PROTO_ClearQueue done [19:30:49]KKMCreateOFDPacket [19:30:49]OFDProtocolAddRootSTLVToBuf [19:30:49]FM_MakeSignedData [19:30:49]FM_MakeSignedData [19:30:49]SAM_PROTO_SignData [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 01 02 [19:30:49]Write to MH i2c: E2 08 00 78 0A 80 0D 01 02 00 00 00 00 FB [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 78 0A 00 90 00 F6 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=255 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 E8 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 22 02 00 35 04 06 00 CF [19:30:49]Write to MH i2c: E2 02 01 79 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 E8 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 22 02 00 35 04 06 00 CF 00 00 0E [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 79 0A 00 90 00 F7 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=10 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 02 02 05 14 2B C2 5E 23 [19:30:49]Write to MH i2c: E2 0D 00 7A 0A 80 0D 02 02 05 00 14 2B C2 5E 23 00 00 8A [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 7A 0A 00 90 00 F8 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 03 02 [19:30:49]Write to MH i2c: E2 08 00 7B 0A 80 0D 03 02 00 00 00 00 00 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 0B 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 0B 00 7B 0A 00 83 67 1C 74 B9 E4 34 55 90 00 A1 [19:30:50]RAPDU: 83 67 1C 74 B9 E4 34 55 90 00 [19:30:50]wFMCommunicate OK [19:30:50]SAM_PROTO_SignData done [19:30:50]FM_MakeSignedData done [19:30:50]CreateOFDProtocolMessage [19:30:50]wFMCommunicate request_size=4 [19:30:50]MH_SAM_APDU [19:30:50]CAPDU: 80 11 00 00 [19:30:50]Write to MH i2c: E2 08 00 7C 0A 80 11 00 00 00 00 00 00 00 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:50]Read from MH i2c: E2 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: E2 17 00 7C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 57 [19:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:30:50]wFMCommunicate OK [19:30:50]CreateOFDProtocolMessage done [19:30:50]OFDSenderStorePacket 139896 [19:30:50]StoreOFDPacket docnum=139896 [19:30:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F EF 07 01 C8 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 E8 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 22 02 00 35 04 06 00 CF 14 2B C2 5E 23 83 67 1C 74 B9 E4 34 55 [19:30:50]CheckFolder [19:30:50]dirname=/storage/ofd_packets [19:30:50]CheckFolder done [19:30:50]ProducePacketName [19:30:50]name=ofd_packets/00139896 [19:30:50]NVStorageSaveData ofd_packets/00139896 [19:30:50]File name is /storage/ofd_packets/00139896 [19:30:50]Write 301 bytes [19:30:50]NVStorageSaveData done [19:30:50]OFDSenderStorePacket done [19:30:50]KKMCreateOFDPacket done [19:30:50]NVStorageSaveData kkm_last_timestamp [19:30:50]File name is /storage/kkm_last_timestamp [19:30:50]Write 4 bytes [19:30:50]NVStorageSaveData done [19:30:50]ExternCall_PrintAddStr [19:30:50]wPrintStart [19:30:50]Write to MH i2c: 01 00 00 7D 0A 87 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 7D 0A 00 00 00 00 00 FF 0F 9C [19:30:50]RasterBufferAndPrint [19:30:50]line Счет N : (1)593751 [19:30:50]line ИНН: 02508201610067 [19:30:50]line Контрольно-Кассовый Чек [19:30:50]line ПРОДАЖА [19:30:50]line ТРК (МРК, ГНК) : 51 [19:30:50]line Товар: 2710124500 [19:30:50]line Аи-95-К-5 [19:30:50]line 6.740 * 74.20 [19:30:50]line = 500.11 [19:30:50]line НДС 12% НСП 1% [19:30:50]line > о реализуемом товаре [19:30:50]line ОКРУГЛЕНИЕ: -0.11 [19:30:50]line ИТОГО: 500.00 [19:30:50]line Внесено: 500.00 [19:30:50]line СДАЧА: 0.00 [19:30:50]line НСП 1% : 4.43 [19:30:50]line НДС 12% : 53.11 [19:30:50]line Наличными: 500.00 [19:30:50]line Безнал.: 0.00 [19:30:50]line Место: АЗС № 136 "Партнер Нефть" [19:30:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:30:50]line СНО: Общий режим [19:30:50]line Чек 368 20.08.2024 19:30 [19:30:50]line Смена: 453 ФФД: 1.0 [19:30:50]line ЗНМ: 0300000067 [19:30:50]line РНМ: 0000000000092569 [19:30:50]line Версия ККМ: 001 [19:30:50]line ФМ: 0000000000871776 [19:30:50]line ФД: 139896 [19:30:50]line ФПД: 227685540453923 [19:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T193048&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139896&fm=227685540453923&tin=02508201610067®Number=0000000000092569&sum=50000 [19:30:50]OFD Sender: Processing packet 139896 [packets to send 137, broken 136] [19:30:50]ProducePacketName [19:30:50]name=ofd_packets/00139896 [19:30:50]OFD Sender: To server: pG, [19:30:50]CommunicateWithHost lk.salyk.kg:30040 [19:30:50]ConnectInit lk.salyk.kg [19:30:50]written 0, free lines is 4095 [19:30:50]Connected sock=10 [19:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F EF 07 01 C8 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 70 01 00 00 F4 03 04 00 E8 EE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 22 02 00 35 04 06 00 CF 14 2B C2 5E 23 83 67 1C 74 B9 E4 34 55 [19:30:50]Write to MH i2c: 01 00 00 A8 0A B2 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 DD 0C A2 [19:30:50]RasterBufferAndPrint [19:30:50]line [19:30:50]line [19:30:50]line [19:30:50]line [19:30:50]line [19:30:50]written 0, free lines is 3308 [19:30:50]MH_Cut [19:30:50]Write to MH i2c: D1 01 00 AF 0A 01 8B [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: D1 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: D1 01 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: D1 01 00 AF 0A 00 8A [19:30:50]Write to MH i2c: 01 00 00 B0 0A BA [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 30 C8 47 00 7B 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 22 02 00 F4 03 04 00 7B 95 C4 66 B6 04 01 00 00 9B 98 06 42 3C 01 8C 44 [19:30:51]CommunicateWithHost err = 0 [19:30:51]CheckOFDResponse [19:30:51]1017 (14) - 77093643461234 [19:30:51]1041 (16) - 0000000000871776 [19:30:51]1040 (4) - 139896 [19:30:51]1012 (4) - 20.08.2024 13:09 [19:30:51]1206 (1) - 0 [19:30:51]OFD Sender: Remove packet 139896 [19:30:51]ProducePacketName [19:30:51]name=ofd_packets/00139896 [19:30:51]NVStorageDeleteData [19:30:51]*** Cut start [19:30:51]*** Partial cut [19:30:51]*** CUTSNS_PIN = 1 [19:30:51]OFD Sender: No OFD packet to send [19:30:51]*** CUTSNS_PIN = 0 [19:30:51]*** Brake cut motor [19:30:52]Read from MH i2c: 01 [19:30:52]MH_I2C_Read... [19:30:52]*** Stop cut motor [19:30:52]*** Cut end [19:30:52]Read from MH i2c: 01 07 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: 01 07 00 B0 0A 00 00 00 00 00 FF 0F CF [19:30:52]process_action close_receipt done [19:30:52]requested_data is exist [19:30:52]produce_requested_data [19:30:52]requested_item fm.sn is exist - process it [19:30:52]wFMCommunicate request_size=4 [19:30:52]MH_SAM_APDU [19:30:52]CAPDU: 80 11 00 00 [19:30:52]Write to MH i2c: E2 08 00 B1 0A 80 11 00 00 00 00 00 00 35 [19:30:52]Write i2c OK [19:30:52]MH_I2C_Read... [19:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:52]Read from MH i2c: E2 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 17 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 17 00 B1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [19:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:30:52]wFMCommunicate OK [19:30:52]requested_item fd.num is exist - process it [19:30:52]SAM_PROTO_GetFieldsCounters [19:30:52]wFMCommunicate request_size=4 [19:30:52]MH_SAM_APDU [19:30:52]CAPDU: 80 13 00 00 [19:30:52]Write to MH i2c: E2 08 00 B2 0A 80 13 00 00 00 00 00 00 38 [19:30:52]Write i2c OK [19:30:52]MH_I2C_Read... [19:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:52]Read from MH i2c: E2 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 62 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 62 00 B2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 22 02 00 0E 04 04 00 C5 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 [19:30:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 22 02 00 0E 04 04 00 C5 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 [19:30:52]wFMCommunicate OK [19:30:52]SAM_PROTO_GetFieldsCounters done [19:30:52]requested_item shift.num is exist - process it [19:30:52]requested_item shift.opened is exist - process it [19:30:52]req_shift_opened [19:30:52]FM_GetShiftState [19:30:52]SAM_PROTO_GetShiftState [19:30:52]wFMCommunicate request_size=4 [19:30:52]MH_SAM_APDU [19:30:52]CAPDU: 80 13 01 00 [19:30:52]Write to MH i2c: E2 08 00 B3 0A 80 13 01 00 00 00 00 00 3A [19:30:52]Write i2c OK [19:30:52]MH_I2C_Read... [19:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:52]Read from MH i2c: E2 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 0E 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 0E 00 B3 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CB [19:30:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:30:52]wFMCommunicate OK [19:30:52]SAM_PROTO_GetShiftState done [19:30:52]FM_GetShiftState done [19:30:52]req_shift_opened done [19:30:52]requested_item shift.open_date is exist - process it [19:30:52]req_shift_open_date [19:30:52]req_shift_open_date done [19:30:52]produce_requested_data done [19:30:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139896,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:30:52]process_action_free close_receipt [19:30:52]json_value_free [19:30:52]json_value_free done [19:30:52]process_json_proto returns [19:30:52]Send response to host [19:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139896,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:30:52]free response buf [19:30:52]execute_script done [19:30:52]execute_script returns [19:30:52]free content buf [19:30:52]Sock 7.Close socket [19:30:52]Sock 7.Thread stoped [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:34]int [19:32:34]Write to MH i2c: 01 00 00 B4 0A BE [19:32:34]*** FLAG_PRN_KEY set [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 B4 0A 00 08 00 00 00 FF 0F DB [19:32:34]state=0 [19:32:34]Key pressed [19:32:34]Feed [19:32:34]Write to MH i2c: D8 00 00 B5 0A 96 [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: D8 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: D8 01 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: D8 01 00 B5 0A 00 97 [19:32:34]int [19:32:34]Write to MH i2c: 01 00 00 B6 0A C0 [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 B6 0A 00 48 00 00 00 3C 00 4B [19:32:34]state=2 [19:32:34]Key pressed [19:32:34]int [19:32:34]Write to MH i2c: 01 00 00 B7 0A C1 [19:32:34]*** FLAG_PRN_KEY reset [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 B7 0A 00 00 00 00 00 F6 0F CD [19:32:34]state=2 [19:32:34]Stop feed [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:25]accept exits with 9 [19:37:25]New connection [19:37:25]New thread 3066940772 created [19:37:25] Sock 9.Parse request [19:37:25]Thread 3066797412 joined [19:37:25]Sock 9.Check first char [19:37:25]Waiting for new connection... [19:37:25]Sock 9.First char is OK [19:37:25]request: POST /json_proto HTTP/1.0 [19:37:25]Method: POST [19:37:25]URL: /json_proto [19:37:25]Method is POST - this is cgi request [19:37:25]url: /json_proto [19:37:25]query_string will be loaded in cgi processing [19:37:25]execute_cgi json_proto POST (null) [19:37:25]execute_cgi path=json_proto method=POST [19:37:25]POST find Content-Length [19:37:25]Host: 172.17.45.67:8080 [19:37:25]Content-Length: 818 [19:37:25]Content-Type: application/json [19:37:25] [19:37:25]POST finish read [19:37:25]Found Content-Length = 818 [19:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:25]execute_script... [19:37: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)593752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:25]POST & json_proto [19:37:25]process_json_proto [19:37:25]json parsed OK: [19:37:25]protocol is kg_v1.0 [19:37:25]action value=close_receipt [19:37:25]process_action close_receipt [19:37:25]cmd_close_receipt [19:37:25]MH_GetDate [19:37:25]Write to MH i2c: F0 00 00 B8 0A B1 [19:37:25]Write i2c OK [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: F0 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: F0 09 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: F0 09 00 B8 0A 00 75 F0 C4 66 5F 7F 2B 66 B8 [19:37:25]GetLastDocTimeStamp 1724182248 [19:37:25]current date 1724182645 [19:37:25]FM_GetShiftState [19:37:25]SAM_PROTO_GetShiftState [19:37:25]wFMCommunicate request_size=4 [19:37:25]MH_SAM_APDU [19:37:25]CAPDU: 80 13 01 00 [19:37:25]Write to MH i2c: E2 08 00 B9 0A 80 13 01 00 00 00 00 00 40 [19:37:25]Write i2c OK [19:37:25]MH_I2C_Read... [19:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:25]Read from MH i2c: E2 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 0E 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 0E 00 B9 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D1 [19:37:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:37:25]wFMCommunicate OK [19:37:25]SAM_PROTO_GetShiftState done [19:37:25]FM_GetShiftState done [19:37:25]opened in 1724113785 [19:37:25]opened+sec_in_day 1724200185 [19:37:25]quantity*price = 50036 [19:37:25]sum+1 = 50037 [19:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 369 20.08.2024 19:37 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139897 ФПД: 218002108999853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T193725&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139897&fm=218002108999853&tin=02508201610067®Number=0000000000092569&sum=50000 [19:37:26]StoreToDocumentArchive [19:37:26]shift 453 fd 139897 [19:37:26]save to /storage/0453/doc_00139897 [19:37:26]save last doc name /storage/0453/doc_00139897 to /storage/kkm_last_doc_name [19:37:26]save OK [19:37:26]Clear old archive folders... [19:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:26]tlvbuf is 003C0100 [19:37:26]SAM_PROTO_ClearQueue [19:37:26]wFMCommunicate request_size=4 [19:37:26]MH_SAM_APDU [19:37:26]CAPDU: 80 09 00 00 [19:37:26]Write to MH i2c: E2 08 00 C6 0A 80 09 00 00 00 00 00 00 42 [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:26]Read from MH i2c: E2 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 03 00 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 03 00 C6 0A 00 90 00 44 [19:37:26]RAPDU: 90 00 [19:37:26]wFMCommunicate OK [19:37:26]SAM_PROTO_ClearQueue done [19:37:26]KKMCreateOFDPacket [19:37:26]OFDProtocolAddRootSTLVToBuf [19:37:26]FM_MakeSignedData [19:37:26]FM_MakeSignedData [19:37:26]SAM_PROTO_SignData [19:37:26]wFMCommunicate request_size=4 [19:37:26]MH_SAM_APDU [19:37:26]CAPDU: 80 0D 01 02 [19:37:26]Write to MH i2c: E2 08 00 C7 0A 80 0D 01 02 00 00 00 00 4A [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:26]Read from MH i2c: E2 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 03 00 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 03 00 C7 0A 00 90 00 45 [19:37:26]RAPDU: 90 00 [19:37:26]wFMCommunicate OK [19:37:26]wFMCommunicate request_size=255 [19:37:26]MH_SAM_APDU [19:37:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 75 F0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 22 02 00 35 04 06 00 C6 [19:37:26]Write to MH i2c: E2 02 01 C8 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 75 F0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 22 02 00 35 04 06 00 C6 00 00 FD [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:26]Read from MH i2c: E2 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 03 00 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 03 00 C8 0A 00 90 00 46 [19:37:26]RAPDU: 90 00 [19:37:26]wFMCommunicate OK [19:37:26]wFMCommunicate request_size=10 [19:37:26]MH_SAM_APDU [19:37:26]CAPDU: 80 0D 02 02 05 45 92 44 68 AD [19:37:26]Write to MH i2c: E2 0D 00 C9 0A 80 0D 02 02 05 00 45 92 44 68 AD 00 00 87 [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:26]Read from MH i2c: E2 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 03 00 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 03 00 C9 0A 00 90 00 47 [19:37:26]RAPDU: 90 00 [19:37:26]wFMCommunicate OK [19:37:26]wFMCommunicate request_size=4 [19:37:26]MH_SAM_APDU [19:37:26]CAPDU: 80 0D 03 02 [19:37:26]Write to MH i2c: E2 08 00 CA 0A 80 0D 03 02 00 00 00 00 4F [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:26]Read from MH i2c: E2 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 0B 00 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 0B 00 CA 0A 00 21 24 17 F8 DE B1 C1 E5 90 00 D9 [19:37:26]RAPDU: 21 24 17 F8 DE B1 C1 E5 90 00 [19:37:26]wFMCommunicate OK [19:37:26]SAM_PROTO_SignData done [19:37:26]FM_MakeSignedData done [19:37:26]CreateOFDProtocolMessage [19:37:26]wFMCommunicate request_size=4 [19:37:26]MH_SAM_APDU [19:37:26]CAPDU: 80 11 00 00 [19:37:26]Write to MH i2c: E2 08 00 CB 0A 80 11 00 00 00 00 00 00 4F [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:26]Read from MH i2c: E2 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 17 00 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: E2 17 00 CB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [19:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:37:26]wFMCommunicate OK [19:37:26]CreateOFDProtocolMessage done [19:37:26]OFDSenderStorePacket 139897 [19:37:26]StoreOFDPacket docnum=139897 [19:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 E8 07 01 50 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 75 F0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 22 02 00 35 04 06 00 C6 45 92 44 68 AD 21 24 17 F8 DE B1 C1 E5 [19:37:26]CheckFolder [19:37:26]dirname=/storage/ofd_packets [19:37:26]CheckFolder done [19:37:26]ProducePacketName [19:37:26]name=ofd_packets/00139897 [19:37:26]NVStorageSaveData ofd_packets/00139897 [19:37:26]File name is /storage/ofd_packets/00139897 [19:37:26]Write 301 bytes [19:37:26]NVStorageSaveData done [19:37:26]OFDSenderStorePacket done [19:37:26]KKMCreateOFDPacket done [19:37:26]NVStorageSaveData kkm_last_timestamp [19:37:26]File name is /storage/kkm_last_timestamp [19:37:26]Write 4 bytes [19:37:26]NVStorageSaveData done [19:37:26]ExternCall_PrintAddStr [19:37:26]wPrintStart [19:37:26]Write to MH i2c: 01 00 00 CC 0A D6 [19:37:26]Write i2c OK [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: 01 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: 01 07 00 [19:37:26]MH_I2C_Read... [19:37:26]Read from MH i2c: 01 07 00 CC 0A 00 00 00 00 00 FF 0F EB [19:37:26]RasterBufferAndPrint [19:37:26]line Счет N : (1)593752 [19:37:26]line ИНН: 02508201610067 [19:37:26]line Контрольно-Кассовый Чек [19:37:26]line ПРОДАЖА [19:37:26]line ТРК (МРК, ГНК) : 52 [19:37:26]line Товар: 2710124130 [19:37:26]line Аи-92-К-5 [19:37:26]line 7.380 * 67.80 [19:37:26]line = 500.36 [19:37:26]line НДС 12% НСП 1% [19:37:26]line > о реализуемом товаре [19:37:26]line ОКРУГЛЕНИЕ: -0.36 [19:37:26]line ИТОГО: 500.00 [19:37:26]line НСП 1% : 4.43 [19:37:26]line НДС 12% : 53.14 [19:37:26]line Наличными: 0.00 [19:37:26]line Безнал.: 500.00 [19:37:26]line Место: АЗС № 136 "Партнер Нефть" [19:37:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:37:26]line СНО: Общий режим [19:37:26]line Чек 369 20.08.2024 19:37 [19:37:26]line Смена: 453 ФФД: 1.0 [19:37:26]line ЗНМ: 0300000067 [19:37:26]line РНМ: 0000000000092569 [19:37:26]line Версия ККМ: 001 [19:37:26]line Платежная система: O! деньги [19:37:26]line ФМ: 0000000000871776 [19:37:26]line ФД: 139897 [19:37:26]line ФПД: 218002108999853 [19:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T193725&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139897&fm=218002108999853&tin=02508201610067®Number=0000000000092569&sum=50000 [19:37:27]written 0, free lines is 4095 [19:37:27]OFD Sender: Processing packet 139897 [packets to send 137, broken 136] [19:37:27]ProducePacketName [19:37:27]name=ofd_packets/00139897 [19:37:27]OFD Sender: To server: pG, [19:37:27]CommunicateWithHost lk.salyk.kg:30040 [19:37:27]ConnectInit lk.salyk.kg [19:37:27]Connected sock=10 [19:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 E8 07 01 50 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 75 F0 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 22 02 00 35 04 06 00 C6 45 92 44 68 AD 21 24 17 F8 DE B1 C1 E5 [19:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 CA 58 47 00 C5 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 22 02 00 F4 03 04 00 08 97 C4 66 B6 04 01 00 00 E4 31 CB 7B D2 E0 F8 8A [19:37:27]CommunicateWithHost err = 0 [19:37:27]CheckOFDResponse [19:37:27]1017 (14) - 77093643461234 [19:37:27]1041 (16) - 0000000000871776 [19:37:27]1040 (4) - 139897 [19:37:27]1012 (4) - 20.08.2024 13:15 [19:37:27]1206 (1) - 0 [19:37:27]OFD Sender: Remove packet 139897 [19:37:27]ProducePacketName [19:37:27]name=ofd_packets/00139897 [19:37:27]NVStorageDeleteData [19:37:27]Write to MH i2c: 01 00 00 F7 0A 01 [19:37:27]Write i2c OK [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: 01 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: 01 07 00 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: 01 07 00 F7 0A 00 00 00 00 00 DD 0C F1 [19:37:27]RasterBufferAndPrint [19:37:27]line [19:37:27]line [19:37:27]line [19:37:27]line [19:37:27]line [19:37:27]written 0, free lines is 3299 [19:37:27]MH_Cut [19:37:27]Write to MH i2c: D1 01 00 FE 0A 01 DA [19:37:27]Write i2c OK [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: D1 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: D1 01 00 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: D1 01 00 FE 0A 00 D9 [19:37:27]Write to MH i2c: 01 00 00 FF 0A 09 [19:37:27]Write i2c OK [19:37:27]MH_I2C_Read... [19:37:28]OFD Sender: No OFD packet to send [19:37:28]*** Cut start [19:37:28]*** Partial cut [19:37:28]*** CUTSNS_PIN = 1 [19:37:28]*** CUTSNS_PIN = 0 [19:37:28]*** Brake cut motor [19:37:28]Read from MH i2c: 01 [19:37:28]MH_I2C_Read... [19:37:28]*** Stop cut motor [19:37:28]*** Cut end [19:37:28]Read from MH i2c: 01 07 00 [19:37:28]MH_I2C_Read... [19:37:28]Read from MH i2c: 01 07 00 FF 0A 00 00 00 00 00 FF 0F 1E [19:37:28]process_action close_receipt done [19:37:28]requested_data is exist [19:37:28]produce_requested_data [19:37:28]requested_item fm.sn is exist - process it [19:37:28]wFMCommunicate request_size=4 [19:37:28]MH_SAM_APDU [19:37:28]CAPDU: 80 11 00 00 [19:37:28]Write to MH i2c: E2 08 00 00 0B 80 11 00 00 00 00 00 00 85 [19:37:28]Write i2c OK [19:37:28]MH_I2C_Read... [19:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:28]Read from MH i2c: E2 [19:37:28]MH_I2C_Read... [19:37:28]Read from MH i2c: E2 17 00 [19:37:28]MH_I2C_Read... [19:37:28]Read from MH i2c: E2 17 00 00 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DC [19:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:37:28]wFMCommunicate OK [19:37:28]requested_item fd.num is exist - process it [19:37:28]SAM_PROTO_GetFieldsCounters [19:37:28]wFMCommunicate request_size=4 [19:37:28]MH_SAM_APDU [19:37:28]CAPDU: 80 13 00 00 [19:37:28]Write to MH i2c: E2 08 00 01 0B 80 13 00 00 00 00 00 00 88 [19:37:28]Write i2c OK [19:37:28]MH_I2C_Read... [19:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:29]Read from MH i2c: E2 [19:37:29]MH_I2C_Read... [19:37:29]Read from MH i2c: E2 62 00 [19:37:29]MH_I2C_Read... [19:37:29]Read from MH i2c: E2 62 00 01 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 22 02 00 0E 04 04 00 C5 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 6C [19:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 22 02 00 0E 04 04 00 C5 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 [19:37:29]wFMCommunicate OK [19:37:29]SAM_PROTO_GetFieldsCounters done [19:37:29]requested_item shift.num is exist - process it [19:37:29]requested_item shift.opened is exist - process it [19:37:29]req_shift_opened [19:37:29]FM_GetShiftState [19:37:29]SAM_PROTO_GetShiftState [19:37:29]wFMCommunicate request_size=4 [19:37:29]MH_SAM_APDU [19:37:29]CAPDU: 80 13 01 00 [19:37:29]Write to MH i2c: E2 08 00 02 0B 80 13 01 00 00 00 00 00 8A [19:37:29]Write i2c OK [19:37:29]MH_I2C_Read... [19:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:29]Read from MH i2c: E2 [19:37:29]MH_I2C_Read... [19:37:29]Read from MH i2c: E2 0E 00 [19:37:29]MH_I2C_Read... [19:37:29]Read from MH i2c: E2 0E 00 02 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1B [19:37:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:37:29]wFMCommunicate OK [19:37:29]SAM_PROTO_GetShiftState done [19:37:29]FM_GetShiftState done [19:37:29]req_shift_opened done [19:37:29]requested_item shift.open_date is exist - process it [19:37:29]req_shift_open_date [19:37:29]req_shift_open_date done [19:37:29]produce_requested_data done [19:37:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139897,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:37:29]process_action_free close_receipt [19:37:29]json_value_free [19:37:29]json_value_free done [19:37:29]process_json_proto returns [19:37:29]Send response to host [19:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139897,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:37:29]free response buf [19:37:29]execute_script done [19:37:29]execute_script returns [19:37:29]free content buf [19:37:29]Sock 9.Close socket [19:37:29]Sock 9.Thread stoped [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:39]accept exits with 7 [19:40:39]New connection [19:40:39]New thread 3066797412 created [19:40:39]Thread 3066940772 joined [19:40:39]Waiting for new connection... [19:40:39] Sock 7.Parse request [19:40:39]Sock 7.Check first char [19:40:39]Sock 7.First char is OK [19:40:39]request: POST /json_proto HTTP/1.0 [19:40:39]Method: POST [19:40:39]URL: /json_proto [19:40:39]Method is POST - this is cgi request [19:40:39]url: /json_proto [19:40:39]query_string will be loaded in cgi processing [19:40:39]execute_cgi json_proto POST (null) [19:40:39]execute_cgi path=json_proto method=POST [19:40:39]POST find Content-Length [19:40:39]Host: 172.17.45.67:8080 [19:40:39]Content-Length: 797 [19:40:39]Content-Type: application/json [19:40:39] [19:40:39]POST finish read [19:40:39]Found Content-Length = 797 [19:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:39]execute_script... [19:40: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)593753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:39]POST & json_proto [19:40:39]process_json_proto [19:40:39]json parsed OK: [19:40:39]protocol is kg_v1.0 [19:40:39]action value=close_receipt [19:40:39]process_action close_receipt [19:40:39]cmd_close_receipt [19:40:39]MH_GetDate [19:40:39]Write to MH i2c: F0 00 00 03 0B FD [19:40:39]Write i2c OK [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: F0 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: F0 09 00 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: F0 09 00 03 0B 00 38 F1 C4 66 5F 7F 2B 66 C8 [19:40:39]GetLastDocTimeStamp 1724182645 [19:40:39]current date 1724182840 [19:40:39]FM_GetShiftState [19:40:39]SAM_PROTO_GetShiftState [19:40:39]wFMCommunicate request_size=4 [19:40:39]MH_SAM_APDU [19:40:39]CAPDU: 80 13 01 00 [19:40:39]Write to MH i2c: E2 08 00 04 0B 80 13 01 00 00 00 00 00 8C [19:40:39]Write i2c OK [19:40:39]MH_I2C_Read... [19:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:39]Read from MH i2c: E2 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 0E 00 [19:40:39]MH_I2C_Read... [19:40:39]Read from MH i2c: E2 0E 00 04 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1D [19:40:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:40:39]wFMCommunicate OK [19:40:39]SAM_PROTO_GetShiftState done [19:40:39]FM_GetShiftState done [19:40:39]opened in 1724113785 [19:40:39]opened+sec_in_day 1724200185 [19:40:39]quantity*price = 0 [19:40:39]sum+1 = 1 [19:40:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 370 20.08.2024 19:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139898 ФПД: 170551880307548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T194040&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139898&fm=170551880307548&tin=02508201610067®Number=0000000000092569&sum=0 [19:40:40]StoreToDocumentArchive [19:40:40]shift 453 fd 139898 [19:40:40]save to /storage/0453/doc_00139898 [19:40:40]save last doc name /storage/0453/doc_00139898 to /storage/kkm_last_doc_name [19:40:40]save OK [19:40:40]Clear old archive folders... [19:40:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:40:40]tlvbuf is 003D8D10 [19:40:40]SAM_PROTO_ClearQueue [19:40:40]wFMCommunicate request_size=4 [19:40:40]MH_SAM_APDU [19:40:40]CAPDU: 80 09 00 00 [19:40:40]Write to MH i2c: E2 08 00 11 0B 80 09 00 00 00 00 00 00 8E [19:40:40]Write i2c OK [19:40:40]MH_I2C_Read... [19:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:40]Read from MH i2c: E2 [19:40:40]MH_I2C_Read... [19:40:40]Read from MH i2c: E2 03 00 [19:40:40]MH_I2C_Read... [19:40:40]Read from MH i2c: E2 03 00 11 0B 00 90 00 90 [19:40:40]RAPDU: 90 00 [19:40:40]wFMCommunicate OK [19:40:40]SAM_PROTO_ClearQueue done [19:40:40]KKMCreateOFDPacket [19:40:40]OFDProtocolAddRootSTLVToBuf [19:40:40]FM_MakeSignedData [19:40:40]FM_MakeSignedData [19:40:40]SAM_PROTO_SignData [19:40:40]wFMCommunicate request_size=4 [19:40:40]MH_SAM_APDU [19:40:40]CAPDU: 80 0D 01 02 [19:40:40]Write to MH i2c: E2 08 00 12 0B 80 0D 01 02 00 00 00 00 96 [19:40:40]Write i2c OK [19:40:40]MH_I2C_Read... [19:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:40]Read from MH i2c: E2 [19:40:40]MH_I2C_Read... [19:40:40]Read from MH i2c: E2 03 00 [19:40:40]MH_I2C_Read... [19:40:40]Read from MH i2c: E2 03 00 12 0B 00 90 00 91 [19:40:40]RAPDU: 90 00 [19:40:40]wFMCommunicate OK [19:40:40]wFMCommunicate request_size=255 [19:40:40]MH_SAM_APDU [19:40:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 72 01 00 00 F4 03 04 00 38 F1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 22 02 00 35 04 06 00 [19:40:40]Write to MH i2c: E2 02 01 13 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 72 01 00 00 F4 03 04 00 38 F1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 22 02 00 35 04 06 00 00 00 22 [19:40:40]Write i2c OK [19:40:40]MH_I2C_Read... [19:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:41]Read from MH i2c: E2 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 03 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 03 00 13 0B 00 90 00 92 [19:40:41]RAPDU: 90 00 [19:40:41]wFMCommunicate OK [19:40:41]wFMCommunicate request_size=11 [19:40:41]MH_SAM_APDU [19:40:41]CAPDU: 80 0D 02 02 06 9B 1D B4 3D D3 5C [19:40:41]Write to MH i2c: E2 0E 00 14 0B 80 0D 02 02 06 00 9B 1D B4 3D D3 5C 00 00 7D [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:41]Read from MH i2c: E2 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 03 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 03 00 14 0B 00 90 00 93 [19:40:41]RAPDU: 90 00 [19:40:41]wFMCommunicate OK [19:40:41]wFMCommunicate request_size=4 [19:40:41]MH_SAM_APDU [19:40:41]CAPDU: 80 0D 03 02 [19:40:41]Write to MH i2c: E2 08 00 15 0B 80 0D 03 02 00 00 00 00 9B [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:41]Read from MH i2c: E2 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 0B 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 0B 00 15 0B 00 CB D9 93 84 87 A7 5B BF 90 00 9F [19:40:41]RAPDU: CB D9 93 84 87 A7 5B BF 90 00 [19:40:41]wFMCommunicate OK [19:40:41]SAM_PROTO_SignData done [19:40:41]FM_MakeSignedData done [19:40:41]CreateOFDProtocolMessage [19:40:41]wFMCommunicate request_size=4 [19:40:41]MH_SAM_APDU [19:40:41]CAPDU: 80 11 00 00 [19:40:41]Write to MH i2c: E2 08 00 16 0B 80 11 00 00 00 00 00 00 9B [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:41]Read from MH i2c: E2 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 17 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: E2 17 00 16 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [19:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:40:41]wFMCommunicate OK [19:40:41]CreateOFDProtocolMessage done [19:40:41]OFDSenderStorePacket 139898 [19:40:41]StoreOFDPacket docnum=139898 [19:40:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 37 32 08 01 57 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 72 01 00 00 F4 03 04 00 38 F1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 22 02 00 35 04 06 00 9B 1D B4 3D D3 5C CB D9 93 84 87 A7 5B BF [19:40:41]CheckFolder [19:40:41]dirname=/storage/ofd_packets [19:40:41]CheckFolder done [19:40:41]ProducePacketName [19:40:41]name=ofd_packets/00139898 [19:40:41]NVStorageSaveData ofd_packets/00139898 [19:40:41]File name is /storage/ofd_packets/00139898 [19:40:41]Write 302 bytes [19:40:41]NVStorageSaveData done [19:40:41]OFDSenderStorePacket done [19:40:41]KKMCreateOFDPacket done [19:40:41]NVStorageSaveData kkm_last_timestamp [19:40:41]File name is /storage/kkm_last_timestamp [19:40:41]Write 4 bytes [19:40:41]NVStorageSaveData done [19:40:41]ExternCall_PrintAddStr [19:40:41]wPrintStart [19:40:41]Write to MH i2c: 01 00 00 17 0B 22 [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: 01 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: 01 07 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: 01 07 00 17 0B 00 00 00 00 00 FF 0F 37 [19:40:41]RasterBufferAndPrint [19:40:41]line Счет N : (1)593753 [19:40:41]line ИНН: 02508201610067 [19:40:41]line Контрольно-Кассовый Чек [19:40:41]line ПРОДАЖА [19:40:41]line ТРК (МРК, ГНК) : 34 [19:40:41]line Товар: 2710194210 [19:40:41]line ДТ(л)-К-5 [19:40:41]line 50.000 * 0.00 [19:40:41]line = 0.00 [19:40:41]line НДС 12% НСП 1% [19:40:41]line > о реализуемом товаре [19:40:41]line ИТОГО: 0.00 [19:40:41]line НСП 1% : 0.00 [19:40:41]line НДС 12% : 0.00 [19:40:41]line Наличными: 0.00 [19:40:41]line Безнал.: 0.00 [19:40:41]line Место: АЗС № 136 "Партнер Нефть" [19:40:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:40:41]line СНО: Общий режим [19:40:41]line Чек 370 20.08.2024 19:40 [19:40:41]line Смена: 453 ФФД: 1.0 [19:40:41]line ЗНМ: 0300000067 [19:40:41]line РНМ: 0000000000092569 [19:40:41]line Версия ККМ: 001 [19:40:41]line Талоны: Топливная Карта [19:40:41]line 99761 [19:40:41]line ФМ: 0000000000871776 [19:40:41]line ФД: 139898 [19:40:41]line ФПД: 170551880307548 [19:40:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T194040&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139898&fm=170551880307548&tin=02508201610067®Number=0000000000092569&sum=0 [19:40:41]written 0, free lines is 4095 [19:40:41]OFD Sender: Processing packet 139898 [packets to send 137, broken 136] [19:40:41]ProducePacketName [19:40:41]name=ofd_packets/00139898 [19:40:41]OFD Sender: To server: pG, [19:40:41]CommunicateWithHost lk.salyk.kg:30040 [19:40:41]ConnectInit lk.salyk.kg [19:40:41]Connected sock=10 [19:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 37 32 08 01 57 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 72 01 00 00 F4 03 04 00 38 F1 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 22 02 00 35 04 06 00 9B 1D B4 3D D3 5C CB D9 93 84 87 A7 5B BF [19:40:41]Write to MH i2c: 01 00 00 41 0B 4C [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: 01 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: 01 07 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: 01 07 00 41 0B 00 00 00 00 00 E6 0C 45 [19:40:41]RasterBufferAndPrint [19:40:41]line [19:40:41]line [19:40:41]line [19:40:41]line [19:40:41]line [19:40:41]written 0, free lines is 3309 [19:40:41]MH_Cut [19:40:41]Write to MH i2c: D1 01 00 48 0B 01 25 [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: D1 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: D1 01 00 [19:40:41]MH_I2C_Read... [19:40:41]Read from MH i2c: D1 01 00 48 0B 00 24 [19:40:41]Write to MH i2c: 01 00 00 49 0B 54 [19:40:41]Write i2c OK [19:40:41]MH_I2C_Read... [19:40:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 03 E9 47 00 DC 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 22 02 00 F4 03 04 00 CA 97 C4 66 B6 04 01 00 00 4D 12 94 4E 85 12 A9 3C [19:40:41]CommunicateWithHost err = 0 [19:40:41]CheckOFDResponse [19:40:41]1017 (14) - 77093643461234 [19:40:41]1041 (16) - 0000000000871776 [19:40:41]1040 (4) - 139898 [19:40:41]1012 (4) - 20.08.2024 13:19 [19:40:41]1206 (1) - 0 [19:40:41]OFD Sender: Remove packet 139898 [19:40:41]ProducePacketName [19:40:41]name=ofd_packets/00139898 [19:40:41]NVStorageDeleteData [19:40:42]OFD Sender: No OFD packet to send [19:40:42]*** Cut start [19:40:42]*** Partial cut [19:40:42]*** CUTSNS_PIN = 1 [19:40:42]*** CUTSNS_PIN = 0 [19:40:42]*** Brake cut motor [19:40:42]Read from MH i2c: 01 [19:40:42]MH_I2C_Read... [19:40:42]*** Stop cut motor [19:40:42]*** Cut end [19:40:42]Read from MH i2c: 01 07 00 [19:40:42]MH_I2C_Read... [19:40:42]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 FF 0F 69 [19:40:42]process_action close_receipt done [19:40:42]requested_data is exist [19:40:42]produce_requested_data [19:40:42]requested_item fm.sn is exist - process it [19:40:42]wFMCommunicate request_size=4 [19:40:42]MH_SAM_APDU [19:40:42]CAPDU: 80 11 00 00 [19:40:42]Write to MH i2c: E2 08 00 4A 0B 80 11 00 00 00 00 00 00 CF [19:40:42]Write i2c OK [19:40:42]MH_I2C_Read... [19:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:42]Read from MH i2c: E2 [19:40:42]MH_I2C_Read... [19:40:42]Read from MH i2c: E2 17 00 [19:40:42]MH_I2C_Read... [19:40:42]Read from MH i2c: E2 17 00 4A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [19:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:40:42]wFMCommunicate OK [19:40:42]requested_item fd.num is exist - process it [19:40:42]SAM_PROTO_GetFieldsCounters [19:40:42]wFMCommunicate request_size=4 [19:40:42]MH_SAM_APDU [19:40:42]CAPDU: 80 13 00 00 [19:40:42]Write to MH i2c: E2 08 00 4B 0B 80 13 00 00 00 00 00 00 D2 [19:40:42]Write i2c OK [19:40:42]MH_I2C_Read... [19:40:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:43]Read from MH i2c: E2 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 62 00 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 62 00 4B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 22 02 00 0E 04 04 00 C5 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 BA [19:40:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 22 02 00 0E 04 04 00 C5 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:40:43]wFMCommunicate OK [19:40:43]SAM_PROTO_GetFieldsCounters done [19:40:43]requested_item shift.num is exist - process it [19:40:43]requested_item shift.opened is exist - process it [19:40:43]req_shift_opened [19:40:43]FM_GetShiftState [19:40:43]SAM_PROTO_GetShiftState [19:40:43]wFMCommunicate request_size=4 [19:40:43]MH_SAM_APDU [19:40:43]CAPDU: 80 13 01 00 [19:40:43]Write to MH i2c: E2 08 00 4C 0B 80 13 01 00 00 00 00 00 D4 [19:40:43]Write i2c OK [19:40:43]MH_I2C_Read... [19:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:43]Read from MH i2c: E2 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 0E 00 [19:40:43]MH_I2C_Read... [19:40:43]Read from MH i2c: E2 0E 00 4C 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 65 [19:40:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:40:43]wFMCommunicate OK [19:40:43]SAM_PROTO_GetShiftState done [19:40:43]FM_GetShiftState done [19:40:43]req_shift_opened done [19:40:43]requested_item shift.open_date is exist - process it [19:40:43]req_shift_open_date [19:40:43]req_shift_open_date done [19:40:43]produce_requested_data done [19:40:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139898,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:40:43]process_action_free close_receipt [19:40:43]json_value_free [19:40:43]json_value_free done [19:40:43]process_json_proto returns [19:40:43]Send response to host [19:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139898,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:40:43]free response buf [19:40:43]execute_script done [19:40:43]execute_script returns [19:40:43]free content buf [19:40:43]Sock 7.Close socket [19:40:43]Sock 7.Thread stoped [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [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]accept exits with 9 [19:44:17]New connection [19:44:17]New thread 3066940772 created [19:44:17]Thread 3066797412 joined [19:44:17]Waiting for new connection... [19:44:17] Sock 9.Parse request [19:44:17]Sock 9.Check first char [19:44:17]Sock 9.First char is OK [19:44:17]request: POST /json_proto HTTP/1.0 [19:44:17]Method: POST [19:44:17]URL: /json_proto [19:44:17]Method is POST - this is cgi request [19:44:17]url: /json_proto [19:44:17]query_string will be loaded in cgi processing [19:44:17]execute_cgi json_proto POST (null) [19:44:17]execute_cgi path=json_proto method=POST [19:44:17]POST find Content-Length [19:44:17]Host: 172.17.45.67:8080 [19:44:17]Content-Length: 677 [19:44:17]Content-Type: application/json [19:44:17] [19:44:17]POST finish read [19:44:17]Found Content-Length = 677 [19:44:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:17]execute_script... [19:44: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)593754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:17]POST & json_proto [19:44:17]process_json_proto [19:44:17]json parsed OK: [19:44:17]protocol is kg_v1.0 [19:44:17]action value=close_receipt [19:44:17]process_action close_receipt [19:44:17]cmd_close_receipt [19:44:17]MH_GetDate [19:44:17]Write to MH i2c: F0 00 00 4D 0B 47 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: F0 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: F0 09 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: F0 09 00 4D 0B 00 12 F2 C4 66 5F 7F 2B 66 ED [19:44:17]GetLastDocTimeStamp 1724182840 [19:44:17]current date 1724183058 [19:44:17]FM_GetShiftState [19:44:17]SAM_PROTO_GetShiftState [19:44:17]wFMCommunicate request_size=4 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 13 01 00 [19:44:17]Write to MH i2c: E2 08 00 4E 0B 80 13 01 00 00 00 00 00 D6 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 0E 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 0E 00 4E 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 67 [19:44:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:44:17]wFMCommunicate OK [19:44:17]SAM_PROTO_GetShiftState done [19:44:17]FM_GetShiftState done [19:44:17]opened in 1724113785 [19:44:17]opened+sec_in_day 1724200185 [19:44:17]quantity*price = 35052 [19:44:17]sum+1 = 35054 [19:44:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 371 20.08.2024 19:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139899 ФПД: 38657157459006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T194418&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139899&fm=38657157459006&tin=02508201610067®Number=0000000000092569&sum=35000 [19:44:18]StoreToDocumentArchive [19:44:18]shift 453 fd 139899 [19:44:18]save to /storage/0453/doc_00139899 [19:44:18]save last doc name /storage/0453/doc_00139899 to /storage/kkm_last_doc_name [19:44:18]save OK [19:44:18]Clear old archive folders... [19:44:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:18]tlvbuf is 003BFCC0 [19:44:18]SAM_PROTO_ClearQueue [19:44:18]wFMCommunicate request_size=4 [19:44:18]MH_SAM_APDU [19:44:18]CAPDU: 80 09 00 00 [19:44:18]Write to MH i2c: E2 08 00 5B 0B 80 09 00 00 00 00 00 00 D8 [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:18]Read from MH i2c: E2 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 03 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 03 00 5B 0B 00 90 00 DA [19:44:18]RAPDU: 90 00 [19:44:18]wFMCommunicate OK [19:44:18]SAM_PROTO_ClearQueue done [19:44:18]KKMCreateOFDPacket [19:44:18]OFDProtocolAddRootSTLVToBuf [19:44:18]FM_MakeSignedData [19:44:18]FM_MakeSignedData [19:44:18]SAM_PROTO_SignData [19:44:18]wFMCommunicate request_size=4 [19:44:18]MH_SAM_APDU [19:44:18]CAPDU: 80 0D 01 02 [19:44:18]Write to MH i2c: E2 08 00 5C 0B 80 0D 01 02 00 00 00 00 E0 [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:18]Read from MH i2c: E2 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 03 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 03 00 5C 0B 00 90 00 DB [19:44:18]RAPDU: 90 00 [19:44:18]wFMCommunicate OK [19:44:18]wFMCommunicate request_size=255 [19:44:18]MH_SAM_APDU [19:44:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 12 F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 22 02 00 35 04 06 00 23 [19:44:18]Write to MH i2c: E2 02 01 5D 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 12 F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 22 02 00 35 04 06 00 23 00 00 BE [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:18]Read from MH i2c: E2 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 03 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 03 00 5D 0B 00 90 00 DC [19:44:18]RAPDU: 90 00 [19:44:18]wFMCommunicate OK [19:44:18]wFMCommunicate request_size=10 [19:44:18]MH_SAM_APDU [19:44:18]CAPDU: 80 0D 02 02 05 28 92 23 6C 3E [19:44:18]Write to MH i2c: E2 0D 00 5E 0B 80 0D 02 02 05 00 28 92 23 6C 3E 00 00 74 [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:18]Read from MH i2c: E2 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 03 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 03 00 5E 0B 00 90 00 DD [19:44:18]RAPDU: 90 00 [19:44:18]wFMCommunicate OK [19:44:18]wFMCommunicate request_size=4 [19:44:18]MH_SAM_APDU [19:44:18]CAPDU: 80 0D 03 02 [19:44:18]Write to MH i2c: E2 08 00 5F 0B 80 0D 03 02 00 00 00 00 E5 [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:18]Read from MH i2c: E2 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 0B 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 0B 00 5F 0B 00 47 5F E6 E8 10 51 C4 0F 90 00 8E [19:44:18]RAPDU: 47 5F E6 E8 10 51 C4 0F 90 00 [19:44:18]wFMCommunicate OK [19:44:18]SAM_PROTO_SignData done [19:44:18]FM_MakeSignedData done [19:44:18]CreateOFDProtocolMessage [19:44:18]wFMCommunicate request_size=4 [19:44:18]MH_SAM_APDU [19:44:18]CAPDU: 80 11 00 00 [19:44:18]Write to MH i2c: E2 08 00 60 0B 80 11 00 00 00 00 00 00 E5 [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:18]Read from MH i2c: E2 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 17 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: E2 17 00 60 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [19:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:44:18]wFMCommunicate OK [19:44:18]CreateOFDProtocolMessage done [19:44:18]OFDSenderStorePacket 139899 [19:44:18]StoreOFDPacket docnum=139899 [19:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F 48 07 01 D3 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 12 F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 22 02 00 35 04 06 00 23 28 92 23 6C 3E 47 5F E6 E8 10 51 C4 0F [19:44:18]CheckFolder [19:44:18]dirname=/storage/ofd_packets [19:44:18]CheckFolder done [19:44:18]ProducePacketName [19:44:18]name=ofd_packets/00139899 [19:44:18]NVStorageSaveData ofd_packets/00139899 [19:44:18]File name is /storage/ofd_packets/00139899 [19:44:18]Write 301 bytes [19:44:18]NVStorageSaveData done [19:44:18]OFDSenderStorePacket done [19:44:18]KKMCreateOFDPacket done [19:44:18]NVStorageSaveData kkm_last_timestamp [19:44:18]File name is /storage/kkm_last_timestamp [19:44:18]Write 4 bytes [19:44:18]NVStorageSaveData done [19:44:18]ExternCall_PrintAddStr [19:44:18]wPrintStart [19:44:18]Write to MH i2c: 01 00 00 61 0B 6C [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 07 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 07 00 61 0B 00 00 00 00 00 FF 0F 81 [19:44:18]RasterBufferAndPrint [19:44:18]line Счет N : (1)593754 [19:44:18]line ИНН: 02508201610067 [19:44:18]line Контрольно-Кассовый Чек [19:44:18]line ПРОДАЖА [19:44:18]line ТРК (МРК, ГНК) : 52 [19:44:18]line Товар: 2710124130 [19:44:18]line Аи-92-К-5 [19:44:18]line 5.170 * 67.80 [19:44:18]line = 350.53 [19:44:18]line НДС 12% НСП 1% [19:44:18]line > о реализуемом товаре [19:44:18]line ОКРУГЛЕНИЕ: -0.53 [19:44:18]line ИТОГО: 350.00 [19:44:18]line Внесено: 350.00 [19:44:18]line СДАЧА: 0.00 [19:44:18]line НСП 1% : 3.10 [19:44:18]line НДС 12% : 37.22 [19:44:18]line Наличными: 350.00 [19:44:18]line Безнал.: 0.00 [19:44:18]line Место: АЗС № 136 "Партнер Нефть" [19:44:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:44:18]line СНО: Общий режим [19:44:18]line Чек 371 20.08.2024 19:44 [19:44:18]line Смена: 453 ФФД: 1.0 [19:44:18]line ЗНМ: 0300000067 [19:44:18]line РНМ: 0000000000092569 [19:44:18]line Версия ККМ: 001 [19:44:18]line ФМ: 0000000000871776 [19:44:18]line ФД: 139899 [19:44:18]line ФПД: 38657157459006 [19:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T194418&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139899&fm=38657157459006&tin=02508201610067®Number=0000000000092569&sum=35000 [19:44:19]OFD Sender: Processing packet 139899 [packets to send 137, broken 136] [19:44:19]ProducePacketName [19:44:19]name=ofd_packets/00139899 [19:44:19]OFD Sender: To server: pG, [19:44:19]CommunicateWithHost lk.salyk.kg:30040 [19:44:19]ConnectInit lk.salyk.kg [19:44:19]written 0, free lines is 4095 [19:44:19]Connected sock=10 [19:44:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F 48 07 01 D3 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 12 F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 22 02 00 35 04 06 00 23 28 92 23 6C 3E 47 5F E6 E8 10 51 C4 0F [19:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DF 2B 47 00 D6 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 22 02 00 F4 03 04 00 A4 98 C4 66 B6 04 01 00 00 A8 C0 5F B8 34 0A E3 82 [19:44:19]CommunicateWithHost err = 0 [19:44:19]CheckOFDResponse [19:44:19]1017 (14) - 77093643461234 [19:44:19]1041 (16) - 0000000000871776 [19:44:19]1040 (4) - 139899 [19:44:19]1012 (4) - 20.08.2024 13:22 [19:44:19]1206 (1) - 0 [19:44:19]OFD Sender: Remove packet 139899 [19:44:19]ProducePacketName [19:44:19]name=ofd_packets/00139899 [19:44:19]NVStorageDeleteData [19:44:19]Write to MH i2c: 01 00 00 8C 0B 97 [19:44:19]Write i2c OK [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: 01 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: 01 07 00 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: 01 07 00 8C 0B 00 00 00 00 00 DF 0C 89 [19:44:19]RasterBufferAndPrint [19:44:19]line [19:44:19]line [19:44:19]line [19:44:19]line [19:44:19]line [19:44:19]written 0, free lines is 3301 [19:44:19]MH_Cut [19:44:19]Write to MH i2c: D1 01 00 93 0B 01 70 [19:44:19]Write i2c OK [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: D1 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: D1 01 00 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: D1 01 00 93 0B 00 6F [19:44:19]Write to MH i2c: 01 00 00 94 0B 9F [19:44:19]Write i2c OK [19:44:19]MH_I2C_Read... [19:44:20]OFD Sender: No OFD packet to send [19:44:20]*** Cut start [19:44:20]*** Partial cut [19:44:20]*** CUTSNS_PIN = 1 [19:44:20]*** CUTSNS_PIN = 0 [19:44:20]*** Brake cut motor [19:44:21]Read from MH i2c: 01 [19:44:21]MH_I2C_Read... [19:44:21]*** Stop cut motor [19:44:21]*** Cut end [19:44:21]Read from MH i2c: 01 07 00 [19:44:21]MH_I2C_Read... [19:44:21]Read from MH i2c: 01 07 00 94 0B 00 00 00 00 00 FF 0F B4 [19:44:21]process_action close_receipt done [19:44:21]requested_data is exist [19:44:21]produce_requested_data [19:44:21]requested_item fm.sn is exist - process it [19:44:21]wFMCommunicate request_size=4 [19:44:21]MH_SAM_APDU [19:44:21]CAPDU: 80 11 00 00 [19:44:21]Write to MH i2c: E2 08 00 95 0B 80 11 00 00 00 00 00 00 1A [19:44:21]Write i2c OK [19:44:21]MH_I2C_Read... [19:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:21]Read from MH i2c: E2 [19:44:21]MH_I2C_Read... [19:44:21]Read from MH i2c: E2 17 00 [19:44:21]MH_I2C_Read... [19:44:21]Read from MH i2c: E2 17 00 95 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 71 [19:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:44:21]wFMCommunicate OK [19:44:21]requested_item fd.num is exist - process it [19:44:21]SAM_PROTO_GetFieldsCounters [19:44:21]wFMCommunicate request_size=4 [19:44:21]MH_SAM_APDU [19:44:21]CAPDU: 80 13 00 00 [19:44:21]Write to MH i2c: E2 08 00 96 0B 80 13 00 00 00 00 00 00 1D [19:44:21]Write i2c OK [19:44:21]MH_I2C_Read... [19:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:21]Read from MH i2c: E2 [19:44:21]MH_I2C_Read... [19:44:21]Read from MH i2c: E2 62 00 [19:44:21]MH_I2C_Read... [19:44:21]Read from MH i2c: E2 62 00 96 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 22 02 00 0E 04 04 00 C5 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 09 [19:44:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 22 02 00 0E 04 04 00 C5 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:44:21]wFMCommunicate OK [19:44:21]SAM_PROTO_GetFieldsCounters done [19:44:21]requested_item shift.num is exist - process it [19:44:21]requested_item shift.opened is exist - process it [19:44:21]req_shift_opened [19:44:21]FM_GetShiftState [19:44:21]SAM_PROTO_GetShiftState [19:44:21]wFMCommunicate request_size=4 [19:44:21]MH_SAM_APDU [19:44:21]CAPDU: 80 13 01 00 [19:44:21]Write to MH i2c: E2 08 00 97 0B 80 13 01 00 00 00 00 00 1F [19:44:21]Write i2c OK [19:44:21]MH_I2C_Read... [19:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:21]Read from MH i2c: E2 [19:44:21]MH_I2C_Read... [19:44:21]Read from MH i2c: E2 0E 00 [19:44:21]MH_I2C_Read... [19:44:21]Read from MH i2c: E2 0E 00 97 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B0 [19:44:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:44:21]wFMCommunicate OK [19:44:21]SAM_PROTO_GetShiftState done [19:44:21]FM_GetShiftState done [19:44:21]req_shift_opened done [19:44:21]requested_item shift.open_date is exist - process it [19:44:21]req_shift_open_date [19:44:21]req_shift_open_date done [19:44:21]produce_requested_data done [19:44:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139899,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:44:21]process_action_free close_receipt [19:44:21]json_value_free [19:44:21]json_value_free done [19:44:21]process_json_proto returns [19:44:21]Send response to host [19:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139899,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:44:21]free response buf [19:44:21]execute_script done [19:44:21]execute_script returns [19:44:21]free content buf [19:44:21]Sock 9.Close socket [19:44:21]Sock 9.Thread stoped [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:44:56]accept exits with 7 [19:44:56]New connection [19:44:56]New thread 3066797412 created [19:44:56]Thread 3066940772 joined [19:44:56]Waiting for new connection... [19:44:56] Sock 7.Parse request [19:44:56]Sock 7.Check first char [19:44:56]Sock 7.First char is OK [19:44:56]request: POST /json_proto HTTP/1.0 [19:44:56]Method: POST [19:44:56]URL: /json_proto [19:44:56]Method is POST - this is cgi request [19:44:56]url: /json_proto [19:44:56]query_string will be loaded in cgi processing [19:44:56]execute_cgi json_proto POST (null) [19:44:56]execute_cgi path=json_proto method=POST [19:44:56]POST find Content-Length [19:44:56]Host: 172.17.45.67:8080 [19:44:56]Content-Length: 682 [19:44:56]Content-Type: application/json [19:44:56] [19:44:56]POST finish read [19:44:56]Found Content-Length = 682 [19:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:56]execute_script... [19: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)593755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:56]POST & json_proto [19:44:56]process_json_proto [19:44:56]json parsed OK: [19:44:56]protocol is kg_v1.0 [19:44:56]action value=close_receipt [19:44:56]process_action close_receipt [19:44:56]cmd_close_receipt [19:44:56]MH_GetDate [19:44:56]Write to MH i2c: F0 00 00 98 0B 92 [19:44:56]Write i2c OK [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: F0 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: F0 09 00 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: F0 09 00 98 0B 00 39 F2 C4 66 5F 7F 2B 66 5F [19:44:56]GetLastDocTimeStamp 1724183058 [19:44:56]current date 1724183097 [19:44:56]FM_GetShiftState [19:44:56]SAM_PROTO_GetShiftState [19:44:56]wFMCommunicate request_size=4 [19:44:56]MH_SAM_APDU [19:44:56]CAPDU: 80 13 01 00 [19:44:56]Write to MH i2c: E2 08 00 99 0B 80 13 01 00 00 00 00 00 21 [19:44:56]Write i2c OK [19:44:56]MH_I2C_Read... [19:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:56]Read from MH i2c: E2 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: E2 0E 00 [19:44:56]MH_I2C_Read... [19:44:56]Read from MH i2c: E2 0E 00 99 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B2 [19:44:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:44:56]wFMCommunicate OK [19:44:56]SAM_PROTO_GetShiftState done [19:44:56]FM_GetShiftState done [19:44:56]opened in 1724113785 [19:44:56]opened+sec_in_day 1724200185 [19:44:56]quantity*price = 100005 [19:44:56]sum+1 = 100006 [19:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 372 20.08.2024 19:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139900 ФПД: 46584760945555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T194457&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139900&fm=46584760945555&tin=02508201610067®Number=0000000000092569&sum=100000 [19:44:57]StoreToDocumentArchive [19:44:57]shift 453 fd 139900 [19:44:57]save to /storage/0453/doc_00139900 [19:44:57]save last doc name /storage/0453/doc_00139900 to /storage/kkm_last_doc_name [19:44:57]save OK [19:44:57]Clear old archive folders... [19:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:57]tlvbuf is 003D9610 [19:44:57]SAM_PROTO_ClearQueue [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 09 00 00 [19:44:57]Write to MH i2c: E2 08 00 A6 0B 80 09 00 00 00 00 00 00 23 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 A6 0B 00 90 00 25 [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]SAM_PROTO_ClearQueue done [19:44:57]KKMCreateOFDPacket [19:44:57]OFDProtocolAddRootSTLVToBuf [19:44:57]FM_MakeSignedData [19:44:57]FM_MakeSignedData [19:44:57]SAM_PROTO_SignData [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 01 02 [19:44:57]Write to MH i2c: E2 08 00 A7 0B 80 0D 01 02 00 00 00 00 2B [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 A7 0B 00 90 00 26 [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]wFMCommunicate request_size=255 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 39 F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 22 02 00 35 04 06 00 2A [19:44:57]Write to MH i2c: E2 02 01 A8 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 39 F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 22 02 00 35 04 06 00 2A 00 00 9D [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 A8 0B 00 90 00 27 [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]wFMCommunicate request_size=10 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 02 02 05 5E 5C 20 CB 93 [19:44:57]Write to MH i2c: E2 0D 00 A9 0B 80 0D 02 02 05 00 5E 5C 20 CB 93 00 00 70 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 03 00 A9 0B 00 90 00 28 [19:44:57]RAPDU: 90 00 [19:44:57]wFMCommunicate OK [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 0D 03 02 [19:44:57]Write to MH i2c: E2 08 00 AA 0B 80 0D 03 02 00 00 00 00 30 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:57]Read from MH i2c: E2 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 0B 00 [19:44:57]MH_I2C_Read... [19:44:57]Read from MH i2c: E2 0B 00 AA 0B 00 9F 2F 41 1A 29 94 85 71 90 00 0D [19:44:57]RAPDU: 9F 2F 41 1A 29 94 85 71 90 00 [19:44:57]wFMCommunicate OK [19:44:57]SAM_PROTO_SignData done [19:44:57]FM_MakeSignedData done [19:44:57]CreateOFDProtocolMessage [19:44:57]wFMCommunicate request_size=4 [19:44:57]MH_SAM_APDU [19:44:57]CAPDU: 80 11 00 00 [19:44:57]Write to MH i2c: E2 08 00 AB 0B 80 11 00 00 00 00 00 00 30 [19:44:57]Write i2c OK [19:44:57]MH_I2C_Read... [19:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:57]Read from MH i2c: E2 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: E2 17 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: E2 17 00 AB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 87 [19:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:44:58]wFMCommunicate OK [19:44:58]CreateOFDProtocolMessage done [19:44:58]OFDSenderStorePacket 139900 [19:44:58]StoreOFDPacket docnum=139900 [19:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C8 D7 07 01 75 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 39 F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 22 02 00 35 04 06 00 2A 5E 5C 20 CB 93 9F 2F 41 1A 29 94 85 71 [19:44:58]CheckFolder [19:44:58]dirname=/storage/ofd_packets [19:44:58]CheckFolder done [19:44:58]ProducePacketName [19:44:58]name=ofd_packets/00139900 [19:44:58]NVStorageSaveData ofd_packets/00139900 [19:44:58]File name is /storage/ofd_packets/00139900 [19:44:58]Write 301 bytes [19:44:58]NVStorageSaveData done [19:44:58]OFDSenderStorePacket done [19:44:58]KKMCreateOFDPacket done [19:44:58]NVStorageSaveData kkm_last_timestamp [19:44:58]File name is /storage/kkm_last_timestamp [19:44:58]Write 4 bytes [19:44:58]NVStorageSaveData done [19:44:58]ExternCall_PrintAddStr [19:44:58]wPrintStart [19:44:58]Write to MH i2c: 01 00 00 AC 0B B7 [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 AC 0B 00 00 00 00 00 FF 0F CC [19:44:58]RasterBufferAndPrint [19:44:58]line Счет N : (1)593755 [19:44:58]line ИНН: 02508201610067 [19:44:58]line Контрольно-Кассовый Чек [19:44:58]line ПРОДАЖА [19:44:58]line ТРК (МРК, ГНК) : 42 [19:44:58]line Товар: 2710124130 [19:44:58]line Аи-92-К-5 [19:44:58]line 14.750 * 67.80 [19:44:58]line = 1000.05 [19:44:58]line НДС 12% НСП 1% [19:44:58]line > о реализуемом товаре [19:44:58]line ОКРУГЛЕНИЕ: -0.05 [19:44:58]line ИТОГО: 1000.00 [19:44:58]line Внесено: 1000.00 [19:44:58]line СДАЧА: 0.00 [19:44:58]line НСП 1% : 8.85 [19:44:58]line НДС 12% : 106.20 [19:44:58]line Наличными: 1000.00 [19:44:58]line Безнал.: 0.00 [19:44:58]line Место: АЗС № 136 "Партнер Нефть" [19:44:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:44:58]line СНО: Общий режим [19:44:58]line Чек 372 20.08.2024 19:44 [19:44:58]line Смена: 453 ФФД: 1.0 [19:44:58]line ЗНМ: 0300000067 [19:44:58]line РНМ: 0000000000092569 [19:44:58]line Версия ККМ: 001 [19:44:58]line ФМ: 0000000000871776 [19:44:58]line ФД: 139900 [19:44:58]line ФПД: 46584760945555 [19:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T194457&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139900&fm=46584760945555&tin=02508201610067®Number=0000000000092569&sum=100000 [19:44:58]OFD Sender: Processing packet 139900 [packets to send 137, broken 136] [19:44:58]ProducePacketName [19:44:58]name=ofd_packets/00139900 [19:44:58]OFD Sender: To server: pG, [19:44:58]CommunicateWithHost lk.salyk.kg:30040 [19:44:58]ConnectInit lk.salyk.kg [19:44:58]written 0, free lines is 4095 [19:44:58]Connected sock=10 [19:44:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C8 D7 07 01 75 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 39 F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 22 02 00 35 04 06 00 2A 5E 5C 20 CB 93 9F 2F 41 1A 29 94 85 71 [19:44:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 63 6E 47 00 FA 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 22 02 00 F4 03 04 00 CB 98 C4 66 B6 04 01 00 00 A1 A9 F5 05 0F 59 28 8C [19:44:58]CommunicateWithHost err = 0 [19:44:58]CheckOFDResponse [19:44:58]1017 (14) - 77093643461234 [19:44:58]1041 (16) - 0000000000871776 [19:44:58]1040 (4) - 139900 [19:44:58]1012 (4) - 20.08.2024 13:23 [19:44:58]1206 (1) - 0 [19:44:58]OFD Sender: Remove packet 139900 [19:44:58]ProducePacketName [19:44:58]name=ofd_packets/00139900 [19:44:58]NVStorageDeleteData [19:44:58]Write to MH i2c: 01 00 00 D7 0B E2 [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 D7 0B 00 00 00 00 00 D1 0C C6 [19:44:58]RasterBufferAndPrint [19:44:58]line [19:44:58]line [19:44:58]line [19:44:58]line [19:44:58]line [19:44:58]written 0, free lines is 3287 [19:44:58]MH_Cut [19:44:58]Write to MH i2c: D1 01 00 DE 0B 01 BB [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D1 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D1 01 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D1 01 00 DE 0B 00 BA [19:44:58]Write to MH i2c: 01 00 00 DF 0B EA [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:59]OFD Sender: No OFD packet to send [19:44:59]*** Cut start [19:44:59]*** Partial cut [19:44:59]*** CUTSNS_PIN = 1 [19:44:59]*** CUTSNS_PIN = 0 [19:44:59]*** Brake cut motor [19:45:00]Read from MH i2c: 01 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: 01 07 00 [19:45:00]MH_I2C_Read... [19:45:00]*** Stop cut motor [19:45:00]*** Cut end [19:45:00]Read from MH i2c: 01 07 00 DF 0B 00 00 00 00 00 FF 0F FF [19:45:00]process_action close_receipt done [19:45:00]requested_data is exist [19:45:00]produce_requested_data [19:45:00]requested_item fm.sn is exist - process it [19:45:00]wFMCommunicate request_size=4 [19:45:00]MH_SAM_APDU [19:45:00]CAPDU: 80 11 00 00 [19:45:00]Write to MH i2c: E2 08 00 E0 0B 80 11 00 00 00 00 00 00 65 [19:45:00]Write i2c OK [19:45:00]MH_I2C_Read... [19:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:00]Read from MH i2c: E2 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 17 00 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 17 00 E0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BC [19:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:45:00]wFMCommunicate OK [19:45:00]requested_item fd.num is exist - process it [19:45:00]SAM_PROTO_GetFieldsCounters [19:45:00]wFMCommunicate request_size=4 [19:45:00]MH_SAM_APDU [19:45:00]CAPDU: 80 13 00 00 [19:45:00]Write to MH i2c: E2 08 00 E1 0B 80 13 00 00 00 00 00 00 68 [19:45:00]Write i2c OK [19:45:00]MH_I2C_Read... [19:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:00]Read from MH i2c: E2 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 62 00 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 62 00 E1 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 22 02 00 0E 04 04 00 C5 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 58 [19:45:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 22 02 00 0E 04 04 00 C5 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:45:00]wFMCommunicate OK [19:45:00]SAM_PROTO_GetFieldsCounters done [19:45:00]requested_item shift.num is exist - process it [19:45:00]requested_item shift.opened is exist - process it [19:45:00]req_shift_opened [19:45:00]FM_GetShiftState [19:45:00]SAM_PROTO_GetShiftState [19:45:00]wFMCommunicate request_size=4 [19:45:00]MH_SAM_APDU [19:45:00]CAPDU: 80 13 01 00 [19:45:00]Write to MH i2c: E2 08 00 E2 0B 80 13 01 00 00 00 00 00 6A [19:45:00]Write i2c OK [19:45:00]MH_I2C_Read... [19:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:00]Read from MH i2c: E2 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 0E 00 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 0E 00 E2 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FB [19:45:00]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:45:00]wFMCommunicate OK [19:45:00]SAM_PROTO_GetShiftState done [19:45:00]FM_GetShiftState done [19:45:00]req_shift_opened done [19:45:00]requested_item shift.open_date is exist - process it [19:45:00]req_shift_open_date [19:45:00]req_shift_open_date done [19:45:00]produce_requested_data done [19:45:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139900,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:45:00]process_action_free close_receipt [19:45:00]json_value_free [19:45:00]json_value_free done [19:45:00]process_json_proto returns [19:45:00]Send response to host [19:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139900,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:45:00]free response buf [19:45:00]execute_script done [19:45:00]execute_script returns [19:45:00]free content buf [19:45:00]Sock 7.Close socket [19:45:00]Sock 7.Thread stoped [19:45:00]accept exits with 9 [19:45:00]New connection [19:45:00]New thread 3066940772 created [19:45:00]Thread 3066797412 joined [19:45:00]Waiting for new connection... [19:45:00] Sock 9.Parse request [19:45:00]Sock 9.Check first char [19:45:00]Sock 9.First char is OK [19:45:00]request: POST /json_proto HTTP/1.0 [19:45:00]Method: POST [19:45:00]URL: /json_proto [19:45:00]Method is POST - this is cgi request [19:45:00]url: /json_proto [19:45:00]query_string will be loaded in cgi processing [19:45:00]execute_cgi json_proto POST (null) [19:45:00]execute_cgi path=json_proto method=POST [19:45:00]POST find Content-Length [19:45:00]Host: 172.17.45.67:8080 [19:45:00]Content-Length: 677 [19:45:00]Content-Type: application/json [19:45:00] [19:45:00]POST finish read [19:45:00]Found Content-Length = 677 [19:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:00]execute_script... [19:45: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)593756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:00]POST & json_proto [19:45:00]process_json_proto [19:45:00]json parsed OK: [19:45:00]protocol is kg_v1.0 [19:45:00]action value=close_receipt [19:45:00]process_action close_receipt [19:45:00]cmd_close_receipt [19:45:00]MH_GetDate [19:45:00]Write to MH i2c: F0 00 00 E3 0B DD [19:45:00]Write i2c OK [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: F0 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: F0 09 00 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: F0 09 00 E3 0B 00 3D F2 C4 66 5F 7F 2B 66 AE [19:45:00]GetLastDocTimeStamp 1724183097 [19:45:00]current date 1724183101 [19:45:00]FM_GetShiftState [19:45:00]SAM_PROTO_GetShiftState [19:45:00]wFMCommunicate request_size=4 [19:45:00]MH_SAM_APDU [19:45:00]CAPDU: 80 13 01 00 [19:45:00]Write to MH i2c: E2 08 00 E4 0B 80 13 01 00 00 00 00 00 6C [19:45:00]Write i2c OK [19:45:00]MH_I2C_Read... [19:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:00]Read from MH i2c: E2 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 0E 00 [19:45:00]MH_I2C_Read... [19:45:00]Read from MH i2c: E2 0E 00 E4 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FD [19:45:00]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:45:00]wFMCommunicate OK [19:45:00]SAM_PROTO_GetShiftState done [19:45:00]FM_GetShiftState done [19:45:00]opened in 1724113785 [19:45:00]opened+sec_in_day 1724200185 [19:45:00]quantity*price = 50010 [19:45:00]sum+1 = 50012 [19:45:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 373 20.08.2024 19:45 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139901 ФПД: 27707306009544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T194501&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139901&fm=27707306009544&tin=02508201610067®Number=0000000000092569&sum=50000 [19:45:02]StoreToDocumentArchive [19:45:02]shift 453 fd 139901 [19:45:02]save to /storage/0453/doc_00139901 [19:45:02]save last doc name /storage/0453/doc_00139901 to /storage/kkm_last_doc_name [19:45:02]save OK [19:45:02]Clear old archive folders... [19:45:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:02]tlvbuf is 004855C0 [19:45:02]SAM_PROTO_ClearQueue [19:45:02]wFMCommunicate request_size=4 [19:45:02]MH_SAM_APDU [19:45:02]CAPDU: 80 09 00 00 [19:45:02]Write to MH i2c: E2 08 00 F1 0B 80 09 00 00 00 00 00 00 6E [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:02]Read from MH i2c: E2 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 03 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 03 00 F1 0B 00 90 00 70 [19:45:02]RAPDU: 90 00 [19:45:02]wFMCommunicate OK [19:45:02]SAM_PROTO_ClearQueue done [19:45:02]KKMCreateOFDPacket [19:45:02]OFDProtocolAddRootSTLVToBuf [19:45:02]FM_MakeSignedData [19:45:02]FM_MakeSignedData [19:45:02]SAM_PROTO_SignData [19:45:02]wFMCommunicate request_size=4 [19:45:02]MH_SAM_APDU [19:45:02]CAPDU: 80 0D 01 02 [19:45:02]Write to MH i2c: E2 08 00 F2 0B 80 0D 01 02 00 00 00 00 76 [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:02]Read from MH i2c: E2 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 03 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 03 00 F2 0B 00 90 00 71 [19:45:02]RAPDU: 90 00 [19:45:02]wFMCommunicate OK [19:45:02]wFMCommunicate request_size=255 [19:45:02]MH_SAM_APDU [19:45:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 75 01 00 00 F4 03 04 00 3D F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 22 02 00 35 04 06 00 19 [19:45:02]Write to MH i2c: E2 02 01 F3 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 75 01 00 00 F4 03 04 00 3D F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 22 02 00 35 04 06 00 19 00 00 36 [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:02]Read from MH i2c: E2 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 03 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 03 00 F3 0B 00 90 00 72 [19:45:02]RAPDU: 90 00 [19:45:02]wFMCommunicate OK [19:45:02]wFMCommunicate request_size=10 [19:45:02]MH_SAM_APDU [19:45:02]CAPDU: 80 0D 02 02 05 33 1C 21 E3 C8 [19:45:02]Write to MH i2c: E2 0D 00 F4 0B 80 0D 02 02 05 00 33 1C 21 E3 C8 00 00 9E [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:02]Read from MH i2c: E2 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 03 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 03 00 F4 0B 00 90 00 73 [19:45:02]RAPDU: 90 00 [19:45:02]wFMCommunicate OK [19:45:02]wFMCommunicate request_size=4 [19:45:02]MH_SAM_APDU [19:45:02]CAPDU: 80 0D 03 02 [19:45:02]Write to MH i2c: E2 08 00 F5 0B 80 0D 03 02 00 00 00 00 7B [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:02]Read from MH i2c: E2 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 0B 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 0B 00 F5 0B 00 CE 44 BD 19 0C 3E A3 2A 90 00 7B [19:45:02]RAPDU: CE 44 BD 19 0C 3E A3 2A 90 00 [19:45:02]wFMCommunicate OK [19:45:02]SAM_PROTO_SignData done [19:45:02]FM_MakeSignedData done [19:45:02]CreateOFDProtocolMessage [19:45:02]wFMCommunicate request_size=4 [19:45:02]MH_SAM_APDU [19:45:02]CAPDU: 80 11 00 00 [19:45:02]Write to MH i2c: E2 08 00 F6 0B 80 11 00 00 00 00 00 00 7B [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:02]Read from MH i2c: E2 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 17 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: E2 17 00 F6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [19:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:45:02]wFMCommunicate OK [19:45:02]CreateOFDProtocolMessage done [19:45:02]OFDSenderStorePacket 139901 [19:45:02]StoreOFDPacket docnum=139901 [19:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CA C4 07 01 F3 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 3D F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 22 02 00 35 04 06 00 19 33 1C 21 E3 C8 CE 44 BD 19 0C 3E A3 2A [19:45:02]CheckFolder [19:45:02]dirname=/storage/ofd_packets [19:45:02]CheckFolder done [19:45:02]ProducePacketName [19:45:02]name=ofd_packets/00139901 [19:45:02]NVStorageSaveData ofd_packets/00139901 [19:45:02]File name is /storage/ofd_packets/00139901 [19:45:02]Write 301 bytes [19:45:02]NVStorageSaveData done [19:45:02]OFDSenderStorePacket done [19:45:02]KKMCreateOFDPacket done [19:45:02]NVStorageSaveData kkm_last_timestamp [19:45:02]File name is /storage/kkm_last_timestamp [19:45:02]Write 4 bytes [19:45:02]NVStorageSaveData done [19:45:02]ExternCall_PrintAddStr [19:45:02]wPrintStart [19:45:02]Write to MH i2c: 01 00 00 F7 0B 02 [19:45:02]Write i2c OK [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: 01 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: 01 07 00 [19:45:02]MH_I2C_Read... [19:45:02]Read from MH i2c: 01 07 00 F7 0B 00 00 00 00 00 FF 0F 17 [19:45:02]RasterBufferAndPrint [19:45:02]line Счет N : (1)593756 [19:45:02]line ИНН: 02508201610067 [19:45:02]line Контрольно-Кассовый Чек [19:45:02]line ПРОДАЖА [19:45:02]line ТРК (МРК, ГНК) : 61 [19:45:02]line Товар: 2710124500 [19:45:02]line Аи-95-К-5 [19:45:02]line 6.740 * 74.20 [19:45:02]line = 500.11 [19:45:02]line НДС 12% НСП 1% [19:45:02]line > о реализуемом товаре [19:45:02]line ОКРУГЛЕНИЕ: -0.11 [19:45:02]line ИТОГО: 500.00 [19:45:02]line Внесено: 500.00 [19:45:02]line СДАЧА: 0.00 [19:45:02]line НСП 1% : 4.43 [19:45:02]line НДС 12% : 53.11 [19:45:02]line Наличными: 500.00 [19:45:02]line Безнал.: 0.00 [19:45:02]line Место: АЗС № 136 "Партнер Нефть" [19:45:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:45:02]line СНО: Общий режим [19:45:02]line Чек 373 20.08.2024 19:45 [19:45:02]line Смена: 453 ФФД: 1.0 [19:45:02]line ЗНМ: 0300000067 [19:45:02]line РНМ: 0000000000092569 [19:45:02]line Версия ККМ: 001 [19:45:02]line ФМ: 0000000000871776 [19:45:02]line ФД: 139901 [19:45:02]line ФПД: 27707306009544 [19:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T194501&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139901&fm=27707306009544&tin=02508201610067®Number=0000000000092569&sum=50000 [19:45:02]written 0, free lines is 4095 [19:45:02]OFD Sender: Processing packet 139901 [packets to send 137, broken 136] [19:45:02]ProducePacketName [19:45:02]name=ofd_packets/00139901 [19:45:02]OFD Sender: To server: pG, [19:45:02]CommunicateWithHost lk.salyk.kg:30040 [19:45:02]ConnectInit lk.salyk.kg [19:45:03]Connected sock=7 [19:45:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CA C4 07 01 F3 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 3D F2 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 22 02 00 35 04 06 00 19 33 1C 21 E3 C8 CE 44 BD 19 0C 3E A3 2A [19:45:03]Write to MH i2c: 01 00 00 22 0C 2E [19:45:03]Write i2c OK [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: 01 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: 01 07 00 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: 01 07 00 22 0C 00 00 00 00 00 D8 0C 19 [19:45:03]RasterBufferAndPrint [19:45:03]line [19:45:03]line [19:45:03]line [19:45:03]line [19:45:03]line [19:45:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 16 F9 47 00 86 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 22 02 00 F4 03 04 00 D0 98 C4 66 B6 04 01 00 00 AD FE A5 92 CC A7 2F C5 [19:45:03]CommunicateWithHost err = 0 [19:45:03]CheckOFDResponse [19:45:03]1017 (14) - 77093643461234 [19:45:03]1041 (16) - 0000000000871776 [19:45:03]1040 (4) - 139901 [19:45:03]1012 (4) - 20.08.2024 13:23 [19:45:03]1206 (1) - 0 [19:45:03]OFD Sender: Remove packet 139901 [19:45:03]ProducePacketName [19:45:03]name=ofd_packets/00139901 [19:45:03]NVStorageDeleteData [19:45:03]written 0, free lines is 3301 [19:45:03]MH_Cut [19:45:03]Write to MH i2c: D1 01 00 29 0C 01 07 [19:45:03]Write i2c OK [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: D1 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: D1 01 00 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: D1 01 00 29 0C 00 06 [19:45:03]Write to MH i2c: 01 00 00 2A 0C 36 [19:45:03]Write i2c OK [19:45:03]MH_I2C_Read... [19:45:03]OFD Sender: No OFD packet to send [19:45:04]*** Cut start [19:45:04]*** Partial cut [19:45:04]*** CUTSNS_PIN = 1 [19:45:04]*** CUTSNS_PIN = 0 [19:45:04]*** Brake cut motor [19:45:04]Read from MH i2c: 01 [19:45:04]MH_I2C_Read... [19:45:04]*** Stop cut motor [19:45:04]*** Cut end [19:45:04]Read from MH i2c: 01 07 00 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: 01 07 00 2A 0C 00 00 00 00 00 FF 0F 4B [19:45:04]process_action close_receipt done [19:45:04]requested_data is exist [19:45:04]produce_requested_data [19:45:04]requested_item fm.sn is exist - process it [19:45:04]wFMCommunicate request_size=4 [19:45:04]MH_SAM_APDU [19:45:04]CAPDU: 80 11 00 00 [19:45:04]Write to MH i2c: E2 08 00 2B 0C 80 11 00 00 00 00 00 00 B1 [19:45:04]Write i2c OK [19:45:04]MH_I2C_Read... [19:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:04]Read from MH i2c: E2 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 17 00 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 17 00 2B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 08 [19:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:45:04]wFMCommunicate OK [19:45:04]requested_item fd.num is exist - process it [19:45:04]SAM_PROTO_GetFieldsCounters [19:45:04]wFMCommunicate request_size=4 [19:45:04]MH_SAM_APDU [19:45:04]CAPDU: 80 13 00 00 [19:45:04]Write to MH i2c: E2 08 00 2C 0C 80 13 00 00 00 00 00 00 B4 [19:45:04]Write i2c OK [19:45:04]MH_I2C_Read... [19:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:04]Read from MH i2c: E2 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 62 00 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 62 00 2C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 22 02 00 0E 04 04 00 C5 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 A8 [19:45:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 22 02 00 0E 04 04 00 C5 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:45:04]wFMCommunicate OK [19:45:04]SAM_PROTO_GetFieldsCounters done [19:45:04]requested_item shift.num is exist - process it [19:45:04]requested_item shift.opened is exist - process it [19:45:04]req_shift_opened [19:45:04]FM_GetShiftState [19:45:04]SAM_PROTO_GetShiftState [19:45:04]wFMCommunicate request_size=4 [19:45:04]MH_SAM_APDU [19:45:04]CAPDU: 80 13 01 00 [19:45:04]Write to MH i2c: E2 08 00 2D 0C 80 13 01 00 00 00 00 00 B6 [19:45:04]Write i2c OK [19:45:04]MH_I2C_Read... [19:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:04]Read from MH i2c: E2 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 0E 00 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 0E 00 2D 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 47 [19:45:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:45:04]wFMCommunicate OK [19:45:04]SAM_PROTO_GetShiftState done [19:45:04]FM_GetShiftState done [19:45:04]req_shift_opened done [19:45:04]requested_item shift.open_date is exist - process it [19:45:04]req_shift_open_date [19:45:04]req_shift_open_date done [19:45:04]produce_requested_data done [19:45:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139901,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:45:04]process_action_free close_receipt [19:45:04]json_value_free [19:45:04]json_value_free done [19:45:04]process_json_proto returns [19:45:04]Send response to host [19:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139901,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:45:04]free response buf [19:45:04]execute_script done [19:45:04]execute_script returns [19:45:04]free content buf [19:45:04]Sock 9.Close socket [19:45:04]Sock 9.Thread stoped [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]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]accept exits with 10 [19:51:34]New connection [19:51:34]New thread 3066797412 created [19:51:34]Thread 3066940772 joined [19:51:34]Waiting for new connection... [19:51:34] Sock 10.Parse request [19:51:34]Sock 10.Check first char [19:51:34]Sock 10.First char is OK [19:51:34]request: POST /json_proto HTTP/1.0 [19:51:34]Method: POST [19:51:34]URL: /json_proto [19:51:34]Method is POST - this is cgi request [19:51:34]url: /json_proto [19:51:34]query_string will be loaded in cgi processing [19:51:34]execute_cgi json_proto POST (null) [19:51:34]execute_cgi path=json_proto method=POST [19:51:34]POST find Content-Length [19:51:34]Host: 172.17.45.67:8080 [19:51:34]Content-Length: 677 [19:51:34]Content-Type: application/json [19:51:34] [19:51:34]POST finish read [19:51:34]Found Content-Length = 677 [19:51:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:34]execute_script... [19:51: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)593757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:34]POST & json_proto [19:51:34]process_json_proto [19:51:34]json parsed OK: [19:51:34]protocol is kg_v1.0 [19:51:34]action value=close_receipt [19:51:34]process_action close_receipt [19:51:34]cmd_close_receipt [19:51:34]MH_GetDate [19:51:34]Write to MH i2c: F0 00 00 2E 0C 29 [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: F0 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: F0 09 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: F0 09 00 2E 0C 00 C6 F3 C4 66 5F 7F 2B 66 84 [19:51:34]GetLastDocTimeStamp 1724183101 [19:51:34]current date 1724183494 [19:51:34]FM_GetShiftState [19:51:34]SAM_PROTO_GetShiftState [19:51:34]wFMCommunicate request_size=4 [19:51:34]MH_SAM_APDU [19:51:34]CAPDU: 80 13 01 00 [19:51:34]Write to MH i2c: E2 08 00 2F 0C 80 13 01 00 00 00 00 00 B8 [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:34]Read from MH i2c: E2 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 0E 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 0E 00 2F 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 49 [19:51:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:51:34]wFMCommunicate OK [19:51:34]SAM_PROTO_GetShiftState done [19:51:34]FM_GetShiftState done [19:51:34]opened in 1724113785 [19:51:34]opened+sec_in_day 1724200185 [19:51:34]quantity*price = 40002 [19:51:34]sum+1 = 40003 [19:51:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 374 20.08.2024 19:51 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139902 ФПД: 48453563062815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139902&fm=48453563062815&tin=02508201610067®Number=0000000000092569&sum=40000 [19:51:35]StoreToDocumentArchive [19:51:35]shift 453 fd 139902 [19:51:35]save to /storage/0453/doc_00139902 [19:51:35]save last doc name /storage/0453/doc_00139902 to /storage/kkm_last_doc_name [19:51:35]save OK [19:51:35]Clear old archive folders... [19:51:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:51:35]tlvbuf is 00412ED0 [19:51:35]SAM_PROTO_ClearQueue [19:51:35]wFMCommunicate request_size=4 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 09 00 00 [19:51:35]Write to MH i2c: E2 08 00 3C 0C 80 09 00 00 00 00 00 00 BA [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 3C 0C 00 90 00 BC [19:51:35]RAPDU: 90 00 [19:51:35]wFMCommunicate OK [19:51:35]SAM_PROTO_ClearQueue done [19:51:35]KKMCreateOFDPacket [19:51:35]OFDProtocolAddRootSTLVToBuf [19:51:35]FM_MakeSignedData [19:51:35]FM_MakeSignedData [19:51:35]SAM_PROTO_SignData [19:51:35]wFMCommunicate request_size=4 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 0D 01 02 [19:51:35]Write to MH i2c: E2 08 00 3D 0C 80 0D 01 02 00 00 00 00 C2 [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 3D 0C 00 90 00 BD [19:51:35]RAPDU: 90 00 [19:51:35]wFMCommunicate OK [19:51:35]wFMCommunicate request_size=255 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 C6 F3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 22 02 00 35 04 06 00 2C [19:51:35]Write to MH i2c: E2 02 01 3E 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 C6 F3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 22 02 00 35 04 06 00 2C 00 00 1E [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 3E 0C 00 90 00 BE [19:51:35]RAPDU: 90 00 [19:51:35]wFMCommunicate OK [19:51:35]wFMCommunicate request_size=10 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 0D 02 02 05 11 79 6A 1A 1F [19:51:35]Write to MH i2c: E2 0D 00 3F 0C 80 0D 02 02 05 00 11 79 6A 1A 1F 00 00 FC [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 03 00 3F 0C 00 90 00 BF [19:51:35]RAPDU: 90 00 [19:51:35]wFMCommunicate OK [19:51:35]wFMCommunicate request_size=4 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 0D 03 02 [19:51:35]Write to MH i2c: E2 08 00 40 0C 80 0D 03 02 00 00 00 00 C7 [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 0B 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 0B 00 40 0C 00 A3 DA CC 1E 3D D9 D8 FF 90 00 1C [19:51:35]RAPDU: A3 DA CC 1E 3D D9 D8 FF 90 00 [19:51:35]wFMCommunicate OK [19:51:35]SAM_PROTO_SignData done [19:51:35]FM_MakeSignedData done [19:51:35]CreateOFDProtocolMessage [19:51:35]wFMCommunicate request_size=4 [19:51:35]MH_SAM_APDU [19:51:35]CAPDU: 80 11 00 00 [19:51:35]Write to MH i2c: E2 08 00 41 0C 80 11 00 00 00 00 00 00 C7 [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:35]Read from MH i2c: E2 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 17 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: E2 17 00 41 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [19:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:51:35]wFMCommunicate OK [19:51:35]CreateOFDProtocolMessage done [19:51:35]OFDSenderStorePacket 139902 [19:51:35]StoreOFDPacket docnum=139902 [19:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0B 14 07 01 F7 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 C6 F3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 22 02 00 35 04 06 00 2C 11 79 6A 1A 1F A3 DA CC 1E 3D D9 D8 FF [19:51:35]CheckFolder [19:51:35]dirname=/storage/ofd_packets [19:51:35]CheckFolder done [19:51:35]ProducePacketName [19:51:35]name=ofd_packets/00139902 [19:51:35]NVStorageSaveData ofd_packets/00139902 [19:51:35]File name is /storage/ofd_packets/00139902 [19:51:35]Write 301 bytes [19:51:35]NVStorageSaveData done [19:51:35]OFDSenderStorePacket done [19:51:35]KKMCreateOFDPacket done [19:51:35]NVStorageSaveData kkm_last_timestamp [19:51:35]File name is /storage/kkm_last_timestamp [19:51:35]Write 4 bytes [19:51:35]NVStorageSaveData done [19:51:35]ExternCall_PrintAddStr [19:51:35]wPrintStart [19:51:35]Write to MH i2c: 01 00 00 42 0C 4E [19:51:35]Write i2c OK [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: 01 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: 01 07 00 [19:51:35]MH_I2C_Read... [19:51:35]Read from MH i2c: 01 07 00 42 0C 00 00 00 00 00 FF 0F 63 [19:51:35]RasterBufferAndPrint [19:51:35]line Счет N : (1)593757 [19:51:35]line ИНН: 02508201610067 [19:51:35]line Контрольно-Кассовый Чек [19:51:35]line ПРОДАЖА [19:51:35]line ТРК (МРК, ГНК) : 62 [19:51:35]line Товар: 2710124130 [19:51:35]line Аи-92-К-5 [19:51:35]line 5.900 * 67.80 [19:51:35]line = 400.02 [19:51:35]line НДС 12% НСП 1% [19:51:35]line > о реализуемом товаре [19:51:35]line ОКРУГЛЕНИЕ: -0.02 [19:51:35]line ИТОГО: 400.00 [19:51:35]line Внесено: 400.00 [19:51:35]line СДАЧА: 0.00 [19:51:35]line НСП 1% : 3.54 [19:51:35]line НДС 12% : 42.48 [19:51:35]line Наличными: 400.00 [19:51:35]line Безнал.: 0.00 [19:51:35]line Место: АЗС № 136 "Партнер Нефть" [19:51:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:51:35]line СНО: Общий режим [19:51:35]line Чек 374 20.08.2024 19:51 [19:51:35]line Смена: 453 ФФД: 1.0 [19:51:35]line ЗНМ: 0300000067 [19:51:35]line РНМ: 0000000000092569 [19:51:35]line Версия ККМ: 001 [19:51:35]line ФМ: 0000000000871776 [19:51:35]line ФД: 139902 [19:51:35]line ФПД: 48453563062815 [19:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139902&fm=48453563062815&tin=02508201610067®Number=0000000000092569&sum=40000 [19:51:36]written 0, free lines is 4095 [19:51:36]OFD Sender: Processing packet 139902 [packets to send 137, broken 136] [19:51:36]ProducePacketName [19:51:36]name=ofd_packets/00139902 [19:51:36]OFD Sender: To server: pG, [19:51:36]CommunicateWithHost lk.salyk.kg:30040 [19:51:36]ConnectInit lk.salyk.kg [19:51:36]Connected sock=9 [19:51:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0B 14 07 01 F7 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 C6 F3 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 22 02 00 35 04 06 00 2C 11 79 6A 1A 1F A3 DA CC 1E 3D D9 D8 FF [19:51:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 24 4C 47 00 09 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 22 02 00 F4 03 04 00 59 9A C4 66 B6 04 01 00 00 8E 1F F2 48 9D 7E AB D4 [19:51:36]CommunicateWithHost err = 0 [19:51:36]CheckOFDResponse [19:51:36]1017 (14) - 77093643461234 [19:51:36]1041 (16) - 0000000000871776 [19:51:36]1040 (4) - 139902 [19:51:36]1012 (4) - 20.08.2024 13:30 [19:51:36]1206 (1) - 0 [19:51:36]OFD Sender: Remove packet 139902 [19:51:36]ProducePacketName [19:51:36]name=ofd_packets/00139902 [19:51:36]NVStorageDeleteData [19:51:36]Write to MH i2c: 01 00 00 6D 0C 79 [19:51:36]Write i2c OK [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: 01 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: 01 07 00 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: 01 07 00 6D 0C 00 00 00 00 00 D4 0C 60 [19:51:36]RasterBufferAndPrint [19:51:36]line [19:51:36]line [19:51:36]line [19:51:36]line [19:51:36]line [19:51:36]written 0, free lines is 3292 [19:51:36]MH_Cut [19:51:36]Write to MH i2c: D1 01 00 74 0C 01 52 [19:51:36]Write i2c OK [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: D1 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: D1 01 00 [19:51:36]MH_I2C_Read... [19:51:36]Read from MH i2c: D1 01 00 74 0C 00 51 [19:51:36]Write to MH i2c: 01 00 00 75 0C 81 [19:51:36]Write i2c OK [19:51:36]MH_I2C_Read... [19:51:36]OFD Sender: No OFD packet to send [19:51:37]*** Cut start [19:51:37]*** Partial cut [19:51:37]*** CUTSNS_PIN = 1 [19:51:37]*** CUTSNS_PIN = 0 [19:51:37]*** Brake cut motor [19:51:37]Read from MH i2c: 01 [19:51:37]MH_I2C_Read... [19:51:37]*** Stop cut motor [19:51:37]*** Cut end [19:51:37]Read from MH i2c: 01 07 00 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: 01 07 00 75 0C 00 00 00 00 00 FF 0F 96 [19:51:37]process_action close_receipt done [19:51:37]requested_data is exist [19:51:37]produce_requested_data [19:51:37]requested_item fm.sn is exist - process it [19:51:37]wFMCommunicate request_size=4 [19:51:37]MH_SAM_APDU [19:51:37]CAPDU: 80 11 00 00 [19:51:37]Write to MH i2c: E2 08 00 76 0C 80 11 00 00 00 00 00 00 FC [19:51:37]Write i2c OK [19:51:37]MH_I2C_Read... [19:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:37]Read from MH i2c: E2 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 17 00 [19:51:37]MH_I2C_Read... [19:51:37]Read from MH i2c: E2 17 00 76 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [19:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:51:37]wFMCommunicate OK [19:51:37]requested_item fd.num is exist - process it [19:51:37]SAM_PROTO_GetFieldsCounters [19:51:37]wFMCommunicate request_size=4 [19:51:37]MH_SAM_APDU [19:51:37]CAPDU: 80 13 00 00 [19:51:37]Write to MH i2c: E2 08 00 77 0C 80 13 00 00 00 00 00 00 FF [19:51:37]Write i2c OK [19:51:37]MH_I2C_Read... [19:51:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:38]Read from MH i2c: E2 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: E2 62 00 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: E2 62 00 77 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 22 02 00 0E 04 04 00 C5 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 F7 [19:51:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 22 02 00 0E 04 04 00 C5 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:51:38]wFMCommunicate OK [19:51:38]SAM_PROTO_GetFieldsCounters done [19:51:38]requested_item shift.num is exist - process it [19:51:38]requested_item shift.opened is exist - process it [19:51:38]req_shift_opened [19:51:38]FM_GetShiftState [19:51:38]SAM_PROTO_GetShiftState [19:51:38]wFMCommunicate request_size=4 [19:51:38]MH_SAM_APDU [19:51:38]CAPDU: 80 13 01 00 [19:51:38]Write to MH i2c: E2 08 00 78 0C 80 13 01 00 00 00 00 00 01 [19:51:38]Write i2c OK [19:51:38]MH_I2C_Read... [19:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:38]Read from MH i2c: E2 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: E2 0E 00 [19:51:38]MH_I2C_Read... [19:51:38]Read from MH i2c: E2 0E 00 78 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 92 [19:51:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:51:38]wFMCommunicate OK [19:51:38]SAM_PROTO_GetShiftState done [19:51:38]FM_GetShiftState done [19:51:38]req_shift_opened done [19:51:38]requested_item shift.open_date is exist - process it [19:51:38]req_shift_open_date [19:51:38]req_shift_open_date done [19:51:38]produce_requested_data done [19:51:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139902,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:51:38]process_action_free close_receipt [19:51:38]json_value_free [19:51:38]json_value_free done [19:51:38]process_json_proto returns [19:51:38]Send response to host [19:51:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139902,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:51:38]free response buf [19:51:38]execute_script done [19:51:38]execute_script returns [19:51:38]free content buf [19:51:38]Sock 10.Close socket [19:51:38]Sock 10.Thread stoped [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:41]accept exits with 7 [19:52:41]New connection [19:52:41]New thread 3066940772 created [19:52:41]Thread 3066797412 joined [19:52:41]Waiting for new connection... [19:52:41] Sock 7.Parse request [19:52:41]Sock 7.Check first char [19:52:41]Sock 7.First char is OK [19:52:41]request: POST /json_proto HTTP/1.0 [19:52:41]Method: POST [19:52:41]URL: /json_proto [19:52:41]Method is POST - this is cgi request [19:52:41]url: /json_proto [19:52:41]query_string will be loaded in cgi processing [19:52:41]execute_cgi json_proto POST (null) [19:52:41]execute_cgi path=json_proto method=POST [19:52:41]POST find Content-Length [19:52:41]Host: 172.17.45.67:8080 [19:52:41]Content-Length: 843 [19:52:41]Content-Type: application/json [19:52:41] [19:52:41]POST finish read [19:52:41]Found Content-Length = 843 [19:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:41]execute_script... [19:52: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)593758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:41]POST & json_proto [19:52:41]process_json_proto [19:52:41]json parsed OK: [19:52:41]protocol is kg_v1.0 [19:52:41]action value=close_receipt [19:52:41]process_action close_receipt [19:52:41]cmd_close_receipt [19:52:41]MH_GetDate [19:52:41]Write to MH i2c: F0 00 00 79 0C 74 [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: F0 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: F0 09 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: F0 09 00 79 0C 00 0A F4 C4 66 5F 7F 2B 66 14 [19:52:41]GetLastDocTimeStamp 1724183494 [19:52:41]current date 1724183562 [19:52:41]FM_GetShiftState [19:52:41]SAM_PROTO_GetShiftState [19:52:41]wFMCommunicate request_size=4 [19:52:41]MH_SAM_APDU [19:52:41]CAPDU: 80 13 01 00 [19:52:41]Write to MH i2c: E2 08 00 7A 0C 80 13 01 00 00 00 00 00 03 [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:41]Read from MH i2c: E2 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 0E 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 0E 00 7A 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 94 [19:52:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:52:41]wFMCommunicate OK [19:52:41]SAM_PROTO_GetShiftState done [19:52:41]FM_GetShiftState done [19:52:41]opened in 1724113785 [19:52:41]opened+sec_in_day 1724200185 [19:52:41]quantity*price = 100050 [19:52:41]sum+1 = 100052 [19:52:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 375 20.08.2024 19:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139903 ФПД: 137359199571170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195242&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139903&fm=137359199571170&tin=02508201610067®Number=0000000000092569&sum=100000 [19:52:42]StoreToDocumentArchive [19:52:42]shift 453 fd 139903 [19:52:42]save to /storage/0453/doc_00139903 [19:52:42]save last doc name /storage/0453/doc_00139903 to /storage/kkm_last_doc_name [19:52:42]save OK [19:52:42]Clear old archive folders... [19:52:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:52:43]tlvbuf is 00412AF0 [19:52:43]SAM_PROTO_ClearQueue [19:52:43]wFMCommunicate request_size=4 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 09 00 00 [19:52:43]Write to MH i2c: E2 08 00 87 0C 80 09 00 00 00 00 00 00 05 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [19:52:43]RAPDU: 90 00 [19:52:43]wFMCommunicate OK [19:52:43]SAM_PROTO_ClearQueue done [19:52:43]KKMCreateOFDPacket [19:52:43]OFDProtocolAddRootSTLVToBuf [19:52:43]FM_MakeSignedData [19:52:43]FM_MakeSignedData [19:52:43]SAM_PROTO_SignData [19:52:43]wFMCommunicate request_size=4 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 0D 01 02 [19:52:43]Write to MH i2c: E2 08 00 88 0C 80 0D 01 02 00 00 00 00 0D [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 88 0C 00 90 00 08 [19:52:43]RAPDU: 90 00 [19:52:43]wFMCommunicate OK [19:52:43]wFMCommunicate request_size=255 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0A F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 22 02 00 35 04 06 00 [19:52:43]Write to MH i2c: E2 02 01 89 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0A F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 22 02 00 35 04 06 00 00 00 8D [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:43]Read from MH i2c: E2 03 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 89 0C 00 90 00 09 [19:52:43]RAPDU: 90 00 [19:52:43]wFMCommunicate OK [19:52:43]wFMCommunicate request_size=11 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 0D 02 02 06 7C ED 6E 4C 0C E2 [19:52:43]Write to MH i2c: E2 0E 00 8A 0C 80 0D 02 02 06 00 7C ED 6E 4C 0C E2 00 00 2D [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 8A 0C 00 90 00 0A [19:52:43]RAPDU: 90 00 [19:52:43]wFMCommunicate OK [19:52:43]wFMCommunicate request_size=4 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 0D 03 02 [19:52:43]Write to MH i2c: E2 08 00 8B 0C 80 0D 03 02 00 00 00 00 12 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 0B 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 0B 00 8B 0C 00 11 78 EC B1 A2 1E 37 CD 90 00 FD [19:52:43]RAPDU: 11 78 EC B1 A2 1E 37 CD 90 00 [19:52:43]wFMCommunicate OK [19:52:43]SAM_PROTO_SignData done [19:52:43]FM_MakeSignedData done [19:52:43]CreateOFDProtocolMessage [19:52:43]wFMCommunicate request_size=4 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 11 00 00 [19:52:43]Write to MH i2c: E2 08 00 8C 0C 80 11 00 00 00 00 00 00 12 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 17 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 17 00 8C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [19:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:52:43]wFMCommunicate OK [19:52:43]CreateOFDProtocolMessage done [19:52:43]OFDSenderStorePacket 139903 [19:52:43]StoreOFDPacket docnum=139903 [19:52:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 65 06 08 01 ED EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0A F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 22 02 00 35 04 06 00 7C ED 6E 4C 0C E2 11 78 EC B1 A2 1E 37 CD [19:52:43]CheckFolder [19:52:43]dirname=/storage/ofd_packets [19:52:43]CheckFolder done [19:52:43]ProducePacketName [19:52:43]name=ofd_packets/00139903 [19:52:43]NVStorageSaveData ofd_packets/00139903 [19:52:43]File name is /storage/ofd_packets/00139903 [19:52:43]Write 302 bytes [19:52:43]NVStorageSaveData done [19:52:43]OFDSenderStorePacket done [19:52:43]KKMCreateOFDPacket done [19:52:43]NVStorageSaveData kkm_last_timestamp [19:52:43]File name is /storage/kkm_last_timestamp [19:52:43]Write 4 bytes [19:52:43]NVStorageSaveData done [19:52:43]ExternCall_PrintAddStr [19:52:43]wPrintStart [19:52:43]Write to MH i2c: 01 00 00 8D 0C 99 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: 01 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: 01 07 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: 01 07 00 8D 0C 00 00 00 00 00 FF 0F AE [19:52:43]RasterBufferAndPrint [19:52:43]line Счет N : (1)593758 [19:52:43]line ИНН: 02508201610067 [19:52:43]line Контрольно-Кассовый Чек [19:52:43]line ПРОДАЖА [19:52:43]line ТРК (МРК, ГНК) : 44 [19:52:43]line Товар: 2710194210 [19:52:43]line ДТ(л)-К-5 [19:52:43]line 13.130 * 76.20 [19:52:43]line = 1000.51 [19:52:43]line НДС 12% НСП 1% [19:52:43]line > о реализуемом товаре [19:52:43]line ОКРУГЛЕНИЕ: -0.51 [19:52:43]line ИТОГО: 1000.00 [19:52:43]line НСП 1% : 8.85 [19:52:43]line НДС 12% : 106.25 [19:52:43]line Наличными: 0.00 [19:52:43]line Безнал.: 1000.00 [19:52:43]line Место: АЗС № 136 "Партнер Нефть" [19:52:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:52:43]line СНО: Общий режим [19:52:43]line Чек 375 20.08.2024 19:52 [19:52:43]line Смена: 453 ФФД: 1.0 [19:52:43]line ЗНМ: 0300000067 [19:52:43]line РНМ: 0000000000092569 [19:52:43]line Версия ККМ: 001 [19:52:43]line Платежная система: Бакай Банк [19:52:43]line ФМ: 0000000000871776 [19:52:43]line ФД: 139903 [19:52:43]line ФПД: 137359199571170 [19:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195242&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139903&fm=137359199571170&tin=02508201610067®Number=0000000000092569&sum=100000 [19:52:43]OFD Sender: Processing packet 139903 [packets to send 137, broken 136] [19:52:43]ProducePacketName [19:52:43]name=ofd_packets/00139903 [19:52:43]OFD Sender: To server: pG, [19:52:43]CommunicateWithHost lk.salyk.kg:30040 [19:52:43]ConnectInit lk.salyk.kg [19:52:43]written 0, free lines is 4095 [19:52:44]Connected sock=10 [19:52:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 65 06 08 01 ED EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0A F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 22 02 00 35 04 06 00 7C ED 6E 4C 0C E2 11 78 EC B1 A2 1E 37 CD [19:52:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1A 06 47 00 62 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 22 02 00 F4 03 04 00 9D 9A C4 66 B6 04 01 00 00 5F 63 8C DC B4 1F EC 9D [19:52:44]CommunicateWithHost err = 0 [19:52:44]CheckOFDResponse [19:52:44]1017 (14) - 77093643461234 [19:52:44]1041 (16) - 0000000000871776 [19:52:44]1040 (4) - 139903 [19:52:44]1012 (4) - 20.08.2024 13:31 [19:52:44]1206 (1) - 0 [19:52:44]OFD Sender: Remove packet 139903 [19:52:44]ProducePacketName [19:52:44]name=ofd_packets/00139903 [19:52:44]NVStorageDeleteData [19:52:44]Write to MH i2c: 01 00 00 B8 0C C4 [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: 01 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: 01 07 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: 01 07 00 B8 0C 00 00 00 00 00 D6 0C AD [19:52:44]RasterBufferAndPrint [19:52:44]line [19:52:44]line [19:52:44]line [19:52:44]line [19:52:44]line [19:52:44]written 0, free lines is 3293 [19:52:44]MH_Cut [19:52:44]Write to MH i2c: D1 01 00 BF 0C 01 9D [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: D1 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: D1 01 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: D1 01 00 BF 0C 00 9C [19:52:44]Write to MH i2c: 01 00 00 C0 0C CC [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]OFD Sender: No OFD packet to send [19:52:45]*** Cut start [19:52:45]*** Partial cut [19:52:45]*** CUTSNS_PIN = 1 [19:52:45]*** CUTSNS_PIN = 0 [19:52:45]*** Brake cut motor [19:52:45]Read from MH i2c: 01 [19:52:45]MH_I2C_Read... [19:52:45]*** Stop cut motor [19:52:45]*** Cut end [19:52:45]Read from MH i2c: 01 07 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 07 00 C0 0C 00 00 00 00 00 FF 0F E1 [19:52:45]process_action close_receipt done [19:52:45]requested_data is exist [19:52:45]produce_requested_data [19:52:45]requested_item fm.sn is exist - process it [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 11 00 00 [19:52:45]Write to MH i2c: E2 08 00 C1 0C 80 11 00 00 00 00 00 00 47 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 17 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 17 00 C1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [19:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:52:45]wFMCommunicate OK [19:52:45]requested_item fd.num is exist - process it [19:52:45]SAM_PROTO_GetFieldsCounters [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 13 00 00 [19:52:45]Write to MH i2c: E2 08 00 C2 0C 80 13 00 00 00 00 00 00 4A [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 62 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 62 00 C2 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 22 02 00 0E 04 04 00 C5 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 46 [19:52:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 22 02 00 0E 04 04 00 C5 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:52:45]wFMCommunicate OK [19:52:45]SAM_PROTO_GetFieldsCounters done [19:52:45]requested_item shift.num is exist - process it [19:52:45]requested_item shift.opened is exist - process it [19:52:45]req_shift_opened [19:52:45]FM_GetShiftState [19:52:45]SAM_PROTO_GetShiftState [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 13 01 00 [19:52:45]Write to MH i2c: E2 08 00 C3 0C 80 13 01 00 00 00 00 00 4C [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 0E 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 0E 00 C3 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DD [19:52:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:52:45]wFMCommunicate OK [19:52:45]SAM_PROTO_GetShiftState done [19:52:45]FM_GetShiftState done [19:52:45]req_shift_opened done [19:52:45]requested_item shift.open_date is exist - process it [19:52:45]req_shift_open_date [19:52:45]req_shift_open_date done [19:52:45]produce_requested_data done [19:52:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139903,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:52:45]process_action_free close_receipt [19:52:45]json_value_free [19:52:45]json_value_free done [19:52:45]process_json_proto returns [19:52:45]Send response to host [19:52:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139903,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:52:45]free response buf [19:52:45]execute_script done [19:52:45]execute_script returns [19:52:45]free content buf [19:52:45]Sock 7.Close socket [19:52:45]Sock 7.Thread stoped [19:52:47]accept exits with 9 [19:52:47]New connection [19:52:47]New thread 3066797412 created [19:52:47]Thread 3066940772 joined [19:52:47]Waiting for new connection... [19:52:47] Sock 9.Parse request [19:52:47]Sock 9.Check first char [19:52:47]Sock 9.First char is OK [19:52:47]request: POST /json_proto HTTP/1.0 [19:52:47]Method: POST [19:52:47]URL: /json_proto [19:52:47]Method is POST - this is cgi request [19:52:47]url: /json_proto [19:52:47]query_string will be loaded in cgi processing [19:52:47]execute_cgi json_proto POST (null) [19:52:47]execute_cgi path=json_proto method=POST [19:52:47]POST find Content-Length [19:52:47]Host: 172.17.45.67:8080 [19:52:47]Content-Length: 677 [19:52:47]Content-Type: application/json [19:52:47] [19:52:47]POST finish read [19:52:47]Found Content-Length = 677 [19:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:47]execute_script... [19:52: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)593759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:47]POST & json_proto [19:52:47]process_json_proto [19:52:47]json parsed OK: [19:52:47]protocol is kg_v1.0 [19:52:47]action value=close_receipt [19:52:47]process_action close_receipt [19:52:47]cmd_close_receipt [19:52:47]MH_GetDate [19:52:47]Write to MH i2c: F0 00 00 C4 0C BF [19:52:47]Write i2c OK [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: F0 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: F0 09 00 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: F0 09 00 C4 0C 00 10 F4 C4 66 5F 7F 2B 66 65 [19:52:47]GetLastDocTimeStamp 1724183562 [19:52:47]current date 1724183568 [19:52:47]FM_GetShiftState [19:52:47]SAM_PROTO_GetShiftState [19:52:47]wFMCommunicate request_size=4 [19:52:47]MH_SAM_APDU [19:52:47]CAPDU: 80 13 01 00 [19:52:47]Write to MH i2c: E2 08 00 C5 0C 80 13 01 00 00 00 00 00 4E [19:52:47]Write i2c OK [19:52:47]MH_I2C_Read... [19:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:47]Read from MH i2c: E2 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: E2 0E 00 [19:52:47]MH_I2C_Read... [19:52:47]Read from MH i2c: E2 0E 00 C5 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DF [19:52:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:52:47]wFMCommunicate OK [19:52:47]SAM_PROTO_GetShiftState done [19:52:47]FM_GetShiftState done [19:52:47]opened in 1724113785 [19:52:47]opened+sec_in_day 1724200185 [19:52:47]quantity*price = 30035 [19:52:47]sum+1 = 30036 [19:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 376 20.08.2024 19:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139904 ФПД: 12189501598152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195248&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139904&fm=12189501598152&tin=02508201610067®Number=0000000000092569&sum=30000 [19:52:49]StoreToDocumentArchive [19:52:49]shift 453 fd 139904 [19:52:49]save to /storage/0453/doc_00139904 [19:52:49]save last doc name /storage/0453/doc_00139904 to /storage/kkm_last_doc_name [19:52:49]save OK [19:52:49]Clear old archive folders... [19:52:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:49]tlvbuf is 004851F0 [19:52:49]SAM_PROTO_ClearQueue [19:52:49]wFMCommunicate request_size=4 [19:52:49]MH_SAM_APDU [19:52:49]CAPDU: 80 09 00 00 [19:52:49]Write to MH i2c: E2 08 00 D2 0C 80 09 00 00 00 00 00 00 50 [19:52:49]Write i2c OK [19:52:49]MH_I2C_Read... [19:52:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:49]Read from MH i2c: E2 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 03 00 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [19:52:49]RAPDU: 90 00 [19:52:49]wFMCommunicate OK [19:52:49]SAM_PROTO_ClearQueue done [19:52:49]KKMCreateOFDPacket [19:52:49]OFDProtocolAddRootSTLVToBuf [19:52:49]FM_MakeSignedData [19:52:49]FM_MakeSignedData [19:52:49]SAM_PROTO_SignData [19:52:49]wFMCommunicate request_size=4 [19:52:49]MH_SAM_APDU [19:52:49]CAPDU: 80 0D 01 02 [19:52:49]Write to MH i2c: E2 08 00 D3 0C 80 0D 01 02 00 00 00 00 58 [19:52:49]Write i2c OK [19:52:49]MH_I2C_Read... [19:52:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:49]Read from MH i2c: E2 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 03 00 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 03 00 D3 0C 00 90 00 53 [19:52:49]RAPDU: 90 00 [19:52:49]wFMCommunicate OK [19:52:49]wFMCommunicate request_size=255 [19:52:49]MH_SAM_APDU [19:52:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 10 F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 22 02 00 35 04 06 00 0B [19:52:49]Write to MH i2c: E2 02 01 D4 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 10 F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 22 02 00 35 04 06 00 0B 00 00 1C [19:52:49]Write i2c OK [19:52:49]MH_I2C_Read... [19:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:49]Read from MH i2c: E2 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 03 00 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 03 00 D4 0C 00 90 00 54 [19:52:49]RAPDU: 90 00 [19:52:49]wFMCommunicate OK [19:52:49]wFMCommunicate request_size=10 [19:52:49]MH_SAM_APDU [19:52:49]CAPDU: 80 0D 02 02 05 16 16 E9 A9 C8 [19:52:49]Write to MH i2c: E2 0D 00 D5 0C 80 0D 02 02 05 00 16 16 E9 A9 C8 00 00 EB [19:52:49]Write i2c OK [19:52:49]MH_I2C_Read... [19:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:49]Read from MH i2c: E2 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 03 00 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 03 00 D5 0C 00 90 00 55 [19:52:49]RAPDU: 90 00 [19:52:49]wFMCommunicate OK [19:52:49]wFMCommunicate request_size=4 [19:52:49]MH_SAM_APDU [19:52:49]CAPDU: 80 0D 03 02 [19:52:49]Write to MH i2c: E2 08 00 D6 0C 80 0D 03 02 00 00 00 00 5D [19:52:49]Write i2c OK [19:52:49]MH_I2C_Read... [19:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:49]Read from MH i2c: E2 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 0B 00 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 0B 00 D6 0C 00 4B F3 FB 79 66 74 52 DF 90 00 1B [19:52:49]RAPDU: 4B F3 FB 79 66 74 52 DF 90 00 [19:52:49]wFMCommunicate OK [19:52:49]SAM_PROTO_SignData done [19:52:49]FM_MakeSignedData done [19:52:49]CreateOFDProtocolMessage [19:52:49]wFMCommunicate request_size=4 [19:52:49]MH_SAM_APDU [19:52:49]CAPDU: 80 11 00 00 [19:52:49]Write to MH i2c: E2 08 00 D7 0C 80 11 00 00 00 00 00 00 5D [19:52:49]Write i2c OK [19:52:49]MH_I2C_Read... [19:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:49]Read from MH i2c: E2 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 17 00 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: E2 17 00 D7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [19:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:52:49]wFMCommunicate OK [19:52:49]CreateOFDProtocolMessage done [19:52:49]OFDSenderStorePacket 139904 [19:52:49]StoreOFDPacket docnum=139904 [19:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1F E2 07 01 07 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 10 F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 22 02 00 35 04 06 00 0B 16 16 E9 A9 C8 4B F3 FB 79 66 74 52 DF [19:52:49]CheckFolder [19:52:49]dirname=/storage/ofd_packets [19:52:49]CheckFolder done [19:52:49]ProducePacketName [19:52:49]name=ofd_packets/00139904 [19:52:49]NVStorageSaveData ofd_packets/00139904 [19:52:49]File name is /storage/ofd_packets/00139904 [19:52:49]Write 301 bytes [19:52:49]NVStorageSaveData done [19:52:49]OFDSenderStorePacket done [19:52:49]KKMCreateOFDPacket done [19:52:49]NVStorageSaveData kkm_last_timestamp [19:52:49]File name is /storage/kkm_last_timestamp [19:52:49]Write 4 bytes [19:52:49]NVStorageSaveData done [19:52:49]ExternCall_PrintAddStr [19:52:49]wPrintStart [19:52:49]Write to MH i2c: 01 00 00 D8 0C E4 [19:52:49]Write i2c OK [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: 01 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: 01 07 00 [19:52:49]MH_I2C_Read... [19:52:49]Read from MH i2c: 01 07 00 D8 0C 00 00 00 00 00 FF 0F F9 [19:52:49]RasterBufferAndPrint [19:52:49]line Счет N : (1)593759 [19:52:49]line ИНН: 02508201610067 [19:52:49]line Контрольно-Кассовый Чек [19:52:49]line ПРОДАЖА [19:52:49]line ТРК (МРК, ГНК) : 52 [19:52:49]line Товар: 2710124130 [19:52:49]line Аи-92-К-5 [19:52:49]line 4.430 * 67.80 [19:52:49]line = 300.35 [19:52:49]line НДС 12% НСП 1% [19:52:49]line > о реализуемом товаре [19:52:49]line ОКРУГЛЕНИЕ: -0.35 [19:52:49]line ИТОГО: 300.00 [19:52:49]line Внесено: 300.00 [19:52:49]line СДАЧА: 0.00 [19:52:49]line НСП 1% : 2.66 [19:52:49]line НДС 12% : 31.90 [19:52:49]line Наличными: 300.00 [19:52:49]line Безнал.: 0.00 [19:52:49]line Место: АЗС № 136 "Партнер Нефть" [19:52:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:52:49]line СНО: Общий режим [19:52:49]line Чек 376 20.08.2024 19:52 [19:52:49]line Смена: 453 ФФД: 1.0 [19:52:49]line ЗНМ: 0300000067 [19:52:49]line РНМ: 0000000000092569 [19:52:49]line Версия ККМ: 001 [19:52:49]line ФМ: 0000000000871776 [19:52:49]line ФД: 139904 [19:52:49]line ФПД: 12189501598152 [19:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195248&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139904&fm=12189501598152&tin=02508201610067®Number=0000000000092569&sum=30000 [19:52:49]written 0, free lines is 4095 [19:52:49]OFD Sender: Processing packet 139904 [packets to send 137, broken 136] [19:52:49]ProducePacketName [19:52:49]name=ofd_packets/00139904 [19:52:49]OFD Sender: To server: pG, [19:52:49]CommunicateWithHost lk.salyk.kg:30040 [19:52:49]ConnectInit lk.salyk.kg [19:52:49]Connected sock=10 [19:52:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1F E2 07 01 07 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 10 F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 22 02 00 35 04 06 00 0B 16 16 E9 A9 C8 4B F3 FB 79 66 74 52 DF [19:52:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D0 66 47 00 5E 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 22 02 00 F4 03 04 00 A3 9A C4 66 B6 04 01 00 00 2A D1 D3 97 1C C6 0B FB [19:52:50]CommunicateWithHost err = 0 [19:52:50]CheckOFDResponse [19:52:50]1017 (14) - 77093643461234 [19:52:50]1041 (16) - 0000000000871776 [19:52:50]1040 (4) - 139904 [19:52:50]1012 (4) - 20.08.2024 13:31 [19:52:50]1206 (1) - 0 [19:52:50]OFD Sender: Remove packet 139904 [19:52:50]ProducePacketName [19:52:50]name=ofd_packets/00139904 [19:52:50]NVStorageDeleteData [19:52:50]Write to MH i2c: 01 00 00 03 0D 10 [19:52:50]Write i2c OK [19:52:50]MH_I2C_Read... [19:52:50]Read from MH i2c: 01 [19:52:50]MH_I2C_Read... [19:52:50]Read from MH i2c: 01 07 00 [19:52:50]MH_I2C_Read... [19:52:50]Read from MH i2c: 01 07 00 03 0D 00 00 00 00 00 F4 0C 17 [19:52:50]RasterBufferAndPrint [19:52:50]line [19:52:50]line [19:52:50]line [19:52:50]line [19:52:50]line [19:52:50]written 0, free lines is 3329 [19:52:50]MH_Cut [19:52:50]Write to MH i2c: D1 01 00 0A 0D 01 E9 [19:52:50]Write i2c OK [19:52:50]MH_I2C_Read... [19:52:50]Read from MH i2c: D1 [19:52:50]MH_I2C_Read... [19:52:50]Read from MH i2c: D1 01 00 [19:52:50]MH_I2C_Read... [19:52:50]Read from MH i2c: D1 01 00 0A 0D 00 E8 [19:52:50]Write to MH i2c: 01 00 00 0B 0D 18 [19:52:50]Write i2c OK [19:52:50]MH_I2C_Read... [19:52:50]OFD Sender: No OFD packet to send [19:52:50]*** Cut start [19:52:50]*** Partial cut [19:52:50]*** CUTSNS_PIN = 1 [19:52:50]*** CUTSNS_PIN = 0 [19:52:51]*** Brake cut motor [19:52:51]Read from MH i2c: 01 [19:52:51]MH_I2C_Read... [19:52:51]*** Stop cut motor [19:52:51]*** Cut end [19:52:51]Read from MH i2c: 01 07 00 [19:52:51]MH_I2C_Read... [19:52:51]Read from MH i2c: 01 07 00 0B 0D 00 00 00 00 00 FF 0F 2D [19:52:51]process_action close_receipt done [19:52:51]requested_data is exist [19:52:51]produce_requested_data [19:52:51]requested_item fm.sn is exist - process it [19:52:51]wFMCommunicate request_size=4 [19:52:51]MH_SAM_APDU [19:52:51]CAPDU: 80 11 00 00 [19:52:51]Write to MH i2c: E2 08 00 0C 0D 80 11 00 00 00 00 00 00 93 [19:52:51]Write i2c OK [19:52:51]MH_I2C_Read... [19:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:51]Read from MH i2c: E2 [19:52:51]MH_I2C_Read... [19:52:51]Read from MH i2c: E2 17 00 [19:52:51]MH_I2C_Read... [19:52:51]Read from MH i2c: E2 17 00 0C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [19:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:52:51]wFMCommunicate OK [19:52:51]requested_item fd.num is exist - process it [19:52:51]SAM_PROTO_GetFieldsCounters [19:52:51]wFMCommunicate request_size=4 [19:52:51]MH_SAM_APDU [19:52:51]CAPDU: 80 13 00 00 [19:52:51]Write to MH i2c: E2 08 00 0D 0D 80 13 00 00 00 00 00 00 96 [19:52:51]Write i2c OK [19:52:51]MH_I2C_Read... [19:52:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:51]Read from MH i2c: E2 [19:52:51]MH_I2C_Read... [19:52:51]Read from MH i2c: E2 62 00 [19:52:51]MH_I2C_Read... [19:52:51]Read from MH i2c: E2 62 00 0D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 22 02 00 0E 04 04 00 C5 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 96 [19:52:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 22 02 00 0E 04 04 00 C5 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:52:51]wFMCommunicate OK [19:52:51]SAM_PROTO_GetFieldsCounters done [19:52:51]requested_item shift.num is exist - process it [19:52:51]requested_item shift.opened is exist - process it [19:52:51]req_shift_opened [19:52:51]FM_GetShiftState [19:52:51]SAM_PROTO_GetShiftState [19:52:51]wFMCommunicate request_size=4 [19:52:51]MH_SAM_APDU [19:52:51]CAPDU: 80 13 01 00 [19:52:51]Write to MH i2c: E2 08 00 0E 0D 80 13 01 00 00 00 00 00 98 [19:52:51]Write i2c OK [19:52:51]MH_I2C_Read... [19:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:51]Read from MH i2c: E2 [19:52:51]MH_I2C_Read... [19:52:51]Read from MH i2c: E2 0E 00 [19:52:51]MH_I2C_Read... [19:52:51]Read from MH i2c: E2 0E 00 0E 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 29 [19:52:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:52:51]wFMCommunicate OK [19:52:51]SAM_PROTO_GetShiftState done [19:52:51]FM_GetShiftState done [19:52:51]req_shift_opened done [19:52:51]requested_item shift.open_date is exist - process it [19:52:51]req_shift_open_date [19:52:51]req_shift_open_date done [19:52:51]produce_requested_data done [19:52:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139904,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:52:51]process_action_free close_receipt [19:52:51]json_value_free [19:52:51]json_value_free done [19:52:51]process_json_proto returns [19:52:51]Send response to host [19:52:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139904,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:52:51]free response buf [19:52:51]execute_script done [19:52:51]execute_script returns [19:52:51]free content buf [19:52:51]Sock 9.Close socket [19:52:51]Sock 9.Thread stoped [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:47]accept exits with 7 [19:53:47]New connection [19:53:47]New thread 3066940772 created [19:53:47]Thread 3066797412 joined [19:53:47]Waiting for new connection... [19:53:47] Sock 7.Parse request [19:53:47]Sock 7.Check first char [19:53:47]Sock 7.First char is OK [19:53:47]request: POST /json_proto HTTP/1.0 [19:53:47]Method: POST [19:53:47]URL: /json_proto [19:53:47]Method is POST - this is cgi request [19:53:47]url: /json_proto [19:53:47]query_string will be loaded in cgi processing [19:53:47]execute_cgi json_proto POST (null) [19:53:47]execute_cgi path=json_proto method=POST [19:53:47]POST find Content-Length [19:53:47]Host: 172.17.45.67:8080 [19:53:47]Content-Length: 658 [19:53:47]Content-Type: application/json [19:53:47] [19:53:47]POST finish read [19:53:47]Found Content-Length = 658 [19:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:47]execute_script... [19:53: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)593760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:47]POST & json_proto [19:53:47]process_json_proto [19:53:47]json parsed OK: [19:53:47]protocol is kg_v1.0 [19:53:47]action value=close_receipt [19:53:47]process_action close_receipt [19:53:47]cmd_close_receipt [19:53:47]MH_GetDate [19:53:47]Write to MH i2c: F0 00 00 0F 0D 0B [19:53:47]Write i2c OK [19:53:47]MH_I2C_Read... [19:53:47]Read from MH i2c: F0 [19:53:47]MH_I2C_Read... [19:53:47]Read from MH i2c: F0 09 00 [19:53:47]MH_I2C_Read... [19:53:47]Read from MH i2c: F0 09 00 0F 0D 00 4C F4 C4 66 5F 7F 2B 66 ED [19:53:47]GetLastDocTimeStamp 1724183568 [19:53:47]current date 1724183628 [19:53:47]FM_GetShiftState [19:53:47]SAM_PROTO_GetShiftState [19:53:47]wFMCommunicate request_size=4 [19:53:47]MH_SAM_APDU [19:53:47]CAPDU: 80 13 01 00 [19:53:47]Write to MH i2c: E2 08 00 10 0D 80 13 01 00 00 00 00 00 9A [19:53:47]Write i2c OK [19:53:47]MH_I2C_Read... [19:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:48]Read from MH i2c: E2 [19:53:48]MH_I2C_Read... [19:53:48]Read from MH i2c: E2 0E 00 [19:53:48]MH_I2C_Read... [19:53:48]Read from MH i2c: E2 0E 00 10 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2B [19:53:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:53:48]wFMCommunicate OK [19:53:48]SAM_PROTO_GetShiftState done [19:53:48]FM_GetShiftState done [19:53:48]opened in 1724113785 [19:53:48]opened+sec_in_day 1724200185 [19:53:48]quantity*price = 50017 [19:53:48]sum+1 = 50019 [19:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 377 20.08.2024 19:53 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139905 ФПД: 146122066385455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195348&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139905&fm=146122066385455&tin=02508201610067®Number=0000000000092569&sum=50000 [19:53:49]StoreToDocumentArchive [19:53:49]shift 453 fd 139905 [19:53:49]save to /storage/0453/doc_00139905 [19:53:49]save last doc name /storage/0453/doc_00139905 to /storage/kkm_last_doc_name [19:53:49]save OK [19:53:49]Clear old archive folders... [19:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:53:49]tlvbuf is 00477230 [19:53:49]SAM_PROTO_ClearQueue [19:53:49]wFMCommunicate request_size=4 [19:53:49]MH_SAM_APDU [19:53:49]CAPDU: 80 09 00 00 [19:53:49]Write to MH i2c: E2 08 00 1D 0D 80 09 00 00 00 00 00 00 9C [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 1D 0D 00 90 00 9E [19:53:49]RAPDU: 90 00 [19:53:49]wFMCommunicate OK [19:53:49]SAM_PROTO_ClearQueue done [19:53:49]KKMCreateOFDPacket [19:53:49]OFDProtocolAddRootSTLVToBuf [19:53:49]FM_MakeSignedData [19:53:49]FM_MakeSignedData [19:53:49]SAM_PROTO_SignData [19:53:49]wFMCommunicate request_size=4 [19:53:49]MH_SAM_APDU [19:53:49]CAPDU: 80 0D 01 02 [19:53:49]Write to MH i2c: E2 08 00 1E 0D 80 0D 01 02 00 00 00 00 A4 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 1E 0D 00 90 00 9F [19:53:49]RAPDU: 90 00 [19:53:49]wFMCommunicate OK [19:53:49]wFMCommunicate request_size=253 [19:53:49]MH_SAM_APDU [19:53:49]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 01 00 00 F4 03 04 00 4C F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 22 02 00 35 04 06 00 84 E5 B1 DC 5A 2F [19:53:49]Write to MH i2c: E2 00 01 1F 0D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 01 00 00 F4 03 04 00 4C F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 22 02 00 35 04 06 00 84 E5 B1 DC 5A 2F 00 00 8B [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 03 00 1F 0D 00 90 00 A0 [19:53:49]RAPDU: 90 00 [19:53:49]wFMCommunicate OK [19:53:49]wFMCommunicate request_size=4 [19:53:49]MH_SAM_APDU [19:53:49]CAPDU: 80 0D 03 02 [19:53:49]Write to MH i2c: E2 08 00 20 0D 80 0D 03 02 00 00 00 00 A8 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 0B 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 0B 00 20 0D 00 AE 38 98 6F CE 6C D2 CC 90 00 6E [19:53:49]RAPDU: AE 38 98 6F CE 6C D2 CC 90 00 [19:53:49]wFMCommunicate OK [19:53:49]SAM_PROTO_SignData done [19:53:49]FM_MakeSignedData done [19:53:49]CreateOFDProtocolMessage [19:53:49]wFMCommunicate request_size=4 [19:53:49]MH_SAM_APDU [19:53:49]CAPDU: 80 11 00 00 [19:53:49]Write to MH i2c: E2 08 00 21 0D 80 11 00 00 00 00 00 00 A8 [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:49]Read from MH i2c: E2 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 17 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: E2 17 00 21 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FF [19:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:53:49]wFMCommunicate OK [19:53:49]CreateOFDProtocolMessage done [19:53:49]OFDSenderStorePacket 139905 [19:53:49]StoreOFDPacket docnum=139905 [19:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 01 D0 00 01 DA 3D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 01 00 00 F4 03 04 00 4C F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 22 02 00 35 04 06 00 84 E5 B1 DC 5A 2F AE 38 98 6F CE 6C D2 CC [19:53:49]CheckFolder [19:53:49]dirname=/storage/ofd_packets [19:53:49]CheckFolder done [19:53:49]ProducePacketName [19:53:49]name=ofd_packets/00139905 [19:53:49]NVStorageSaveData ofd_packets/00139905 [19:53:49]File name is /storage/ofd_packets/00139905 [19:53:49]Write 294 bytes [19:53:49]NVStorageSaveData done [19:53:49]OFDSenderStorePacket done [19:53:49]KKMCreateOFDPacket done [19:53:49]NVStorageSaveData kkm_last_timestamp [19:53:49]File name is /storage/kkm_last_timestamp [19:53:49]Write 4 bytes [19:53:49]NVStorageSaveData done [19:53:49]ExternCall_PrintAddStr [19:53:49]wPrintStart [19:53:49]Write to MH i2c: 01 00 00 22 0D 2F [19:53:49]Write i2c OK [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 [19:53:49]MH_I2C_Read... [19:53:49]Read from MH i2c: 01 07 00 22 0D 00 00 00 00 00 FF 0F 44 [19:53:49]RasterBufferAndPrint [19:53:49]line Счет N : (1)593760 [19:53:49]line ИНН: 02508201610067 [19:53:49]line Контрольно-Кассовый Чек [19:53:49]line ПРОДАЖА [19:53:49]line ТРК (МРК, ГНК) : 33 [19:53:49]line Товар: 2710124130 [19:53:49]line SU-92 [19:53:49]line 7.270 * 68.80 [19:53:49]line = 500.18 [19:53:49]line НДС 12% НСП 1% [19:53:49]line > о реализуемом товаре [19:53:49]line ОКРУГЛЕНИЕ: -0.18 [19:53:49]line ИТОГО: 500.00 [19:53:49]line Внесено: 500.00 [19:53:49]line СДАЧА: 0.00 [19:53:49]line НСП 1% : 4.43 [19:53:49]line НДС 12% : 53.12 [19:53:49]line Наличными: 500.00 [19:53:49]line Безнал.: 0.00 [19:53:49]line Место: АЗС № 136 "Партнер Нефть" [19:53:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:53:49]line СНО: Общий режим [19:53:49]line Чек 377 20.08.2024 19:53 [19:53:49]line Смена: 453 ФФД: 1.0 [19:53:49]line ЗНМ: 0300000067 [19:53:49]line РНМ: 0000000000092569 [19:53:49]line Версия ККМ: 001 [19:53:49]line ФМ: 0000000000871776 [19:53:49]line ФД: 139905 [19:53:49]line ФПД: 146122066385455 [19:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195348&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139905&fm=146122066385455&tin=02508201610067®Number=0000000000092569&sum=50000 [19:53:49]OFD Sender: Processing packet 139905 [packets to send 137, broken 136] [19:53:49]ProducePacketName [19:53:49]name=ofd_packets/00139905 [19:53:49]OFD Sender: To server: pG, [19:53:49]CommunicateWithHost lk.salyk.kg:30040 [19:53:49]ConnectInit lk.salyk.kg [19:53:49]written 0, free lines is 4095 [19:53:50]Connected sock=10 [19:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 01 D0 00 01 DA 3D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 01 00 00 F4 03 04 00 4C F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 22 02 00 35 04 06 00 84 E5 B1 DC 5A 2F AE 38 98 6F CE 6C D2 CC [19:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AE 71 47 00 DD AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 22 02 00 F4 03 04 00 DF 9A C4 66 B6 04 01 00 00 81 C8 71 E1 57 0A A9 A5 [19:53:50]CommunicateWithHost err = 0 [19:53:50]CheckOFDResponse [19:53:50]1017 (14) - 77093643461234 [19:53:50]1041 (16) - 0000000000871776 [19:53:50]1040 (4) - 139905 [19:53:50]1012 (4) - 20.08.2024 13:32 [19:53:50]1206 (1) - 0 [19:53:50]OFD Sender: Remove packet 139905 [19:53:50]ProducePacketName [19:53:50]name=ofd_packets/00139905 [19:53:50]NVStorageDeleteData [19:53:50]Write to MH i2c: 01 00 00 4D 0D 5A [19:53:50]Write i2c OK [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: 01 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: 01 07 00 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: 01 07 00 4D 0D 00 00 00 00 00 CD 0C 3A [19:53:50]RasterBufferAndPrint [19:53:50]line [19:53:50]line [19:53:50]line [19:53:50]line [19:53:50]line [19:53:50]written 0, free lines is 3283 [19:53:50]MH_Cut [19:53:50]Write to MH i2c: D1 01 00 54 0D 01 33 [19:53:50]Write i2c OK [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: D1 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: D1 01 00 [19:53:50]MH_I2C_Read... [19:53:50]Read from MH i2c: D1 01 00 54 0D 00 32 [19:53:50]Write to MH i2c: 01 00 00 55 0D 62 [19:53:50]Write i2c OK [19:53:50]MH_I2C_Read... [19:53:50]OFD Sender: No OFD packet to send [19:53:51]*** Cut start [19:53:51]*** Partial cut [19:53:51]*** CUTSNS_PIN = 1 [19:53:51]*** CUTSNS_PIN = 0 [19:53:51]*** Brake cut motor [19:53:51]Read from MH i2c: 01 [19:53:51]MH_I2C_Read... [19:53:51]*** Stop cut motor [19:53:51]*** Cut end [19:53:51]Read from MH i2c: 01 07 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: 01 07 00 55 0D 00 00 00 00 00 FF 0F 77 [19:53:51]process_action close_receipt done [19:53:51]requested_data is exist [19:53:51]produce_requested_data [19:53:51]requested_item fm.sn is exist - process it [19:53:51]wFMCommunicate request_size=4 [19:53:51]MH_SAM_APDU [19:53:51]CAPDU: 80 11 00 00 [19:53:51]Write to MH i2c: E2 08 00 56 0D 80 11 00 00 00 00 00 00 DD [19:53:51]Write i2c OK [19:53:51]MH_I2C_Read... [19:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:51]Read from MH i2c: E2 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 17 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 17 00 56 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 34 [19:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:53:51]wFMCommunicate OK [19:53:51]requested_item fd.num is exist - process it [19:53:51]SAM_PROTO_GetFieldsCounters [19:53:51]wFMCommunicate request_size=4 [19:53:51]MH_SAM_APDU [19:53:51]CAPDU: 80 13 00 00 [19:53:51]Write to MH i2c: E2 08 00 57 0D 80 13 00 00 00 00 00 00 E0 [19:53:51]Write i2c OK [19:53:51]MH_I2C_Read... [19:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:51]Read from MH i2c: E2 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 62 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 62 00 57 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 22 02 00 0E 04 04 00 C5 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 E4 [19:53:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 22 02 00 0E 04 04 00 C5 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:53:51]wFMCommunicate OK [19:53:51]SAM_PROTO_GetFieldsCounters done [19:53:51]requested_item shift.num is exist - process it [19:53:51]requested_item shift.opened is exist - process it [19:53:51]req_shift_opened [19:53:51]FM_GetShiftState [19:53:51]SAM_PROTO_GetShiftState [19:53:51]wFMCommunicate request_size=4 [19:53:51]MH_SAM_APDU [19:53:51]CAPDU: 80 13 01 00 [19:53:51]Write to MH i2c: E2 08 00 58 0D 80 13 01 00 00 00 00 00 E2 [19:53:51]Write i2c OK [19:53:51]MH_I2C_Read... [19:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:51]Read from MH i2c: E2 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 0E 00 [19:53:51]MH_I2C_Read... [19:53:51]Read from MH i2c: E2 0E 00 58 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 73 [19:53:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:53:51]wFMCommunicate OK [19:53:51]SAM_PROTO_GetShiftState done [19:53:51]FM_GetShiftState done [19:53:51]req_shift_opened done [19:53:51]requested_item shift.open_date is exist - process it [19:53:51]req_shift_open_date [19:53:51]req_shift_open_date done [19:53:51]produce_requested_data done [19:53:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139905,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:53:51]process_action_free close_receipt [19:53:51]json_value_free [19:53:51]json_value_free done [19:53:51]process_json_proto returns [19:53:51]Send response to host [19:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139905,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:53:51]free response buf [19:53:51]execute_script done [19:53:51]execute_script returns [19:53:51]free content buf [19:53:51]Sock 7.Close socket [19:53:51]Sock 7.Thread stoped [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:09]accept exits with 9 [19:55:09]New connection [19:55:09]New thread 3066797412 created [19:55:09]Thread 3066940772 joined [19:55:09]Waiting for new connection... [19:55:09] Sock 9.Parse request [19:55:09]Sock 9.Check first char [19:55:09]Sock 9.First char is OK [19:55:09]request: POST /json_proto HTTP/1.0 [19:55:09]Method: POST [19:55:09]URL: /json_proto [19:55:09]Method is POST - this is cgi request [19:55:09]url: /json_proto [19:55:09]query_string will be loaded in cgi processing [19:55:09]execute_cgi json_proto POST (null) [19:55:09]execute_cgi path=json_proto method=POST [19:55:09]POST find Content-Length [19:55:09]Host: 172.17.45.67:8080 [19:55:09]Content-Length: 677 [19:55:09]Content-Type: application/json [19:55:09] [19:55:09]POST finish read [19:55:09]Found Content-Length = 677 [19:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:09]execute_script... [19: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)593761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:09]POST & json_proto [19:55:09]process_json_proto [19:55:09]json parsed OK: [19:55:09]protocol is kg_v1.0 [19:55:09]action value=close_receipt [19:55:09]process_action close_receipt [19:55:09]cmd_close_receipt [19:55:09]MH_GetDate [19:55:09]Write to MH i2c: F0 00 00 59 0D 55 [19:55:09]Write i2c OK [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: F0 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: F0 09 00 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: F0 09 00 59 0D 00 9D F4 C4 66 5F 7F 2B 66 88 [19:55:09]GetLastDocTimeStamp 1724183628 [19:55:09]current date 1724183709 [19:55:09]FM_GetShiftState [19:55:09]SAM_PROTO_GetShiftState [19:55:09]wFMCommunicate request_size=4 [19:55:09]MH_SAM_APDU [19:55:09]CAPDU: 80 13 01 00 [19:55:09]Write to MH i2c: E2 08 00 5A 0D 80 13 01 00 00 00 00 00 E4 [19:55:09]Write i2c OK [19:55:09]MH_I2C_Read... [19:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:09]Read from MH i2c: E2 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: E2 0E 00 [19:55:09]MH_I2C_Read... [19:55:09]Read from MH i2c: E2 0E 00 5A 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 75 [19:55:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:55:09]wFMCommunicate OK [19:55:09]SAM_PROTO_GetShiftState done [19:55:09]FM_GetShiftState done [19:55:09]opened in 1724113785 [19:55:09]opened+sec_in_day 1724200185 [19:55:09]quantity*price = 30035 [19:55:09]sum+1 = 30036 [19:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 378 20.08.2024 19:55 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139906 ФПД: 39429236827031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139906&fm=39429236827031&tin=02508201610067®Number=0000000000092569&sum=30000 [19:55:10]StoreToDocumentArchive [19:55:10]shift 453 fd 139906 [19:55:10]save to /storage/0453/doc_00139906 [19:55:10]save last doc name /storage/0453/doc_00139906 to /storage/kkm_last_doc_name [19:55:10]save OK [19:55:10]Clear old archive folders... [19:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:10]tlvbuf is 00477520 [19:55:10]SAM_PROTO_ClearQueue [19:55:10]wFMCommunicate request_size=4 [19:55:10]MH_SAM_APDU [19:55:10]CAPDU: 80 09 00 00 [19:55:10]Write to MH i2c: E2 08 00 67 0D 80 09 00 00 00 00 00 00 E6 [19:55:10]Write i2c OK [19:55:10]MH_I2C_Read... [19:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:10]Read from MH i2c: E2 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 03 00 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 03 00 67 0D 00 90 00 E8 [19:55:10]RAPDU: 90 00 [19:55:10]wFMCommunicate OK [19:55:10]SAM_PROTO_ClearQueue done [19:55:10]KKMCreateOFDPacket [19:55:10]OFDProtocolAddRootSTLVToBuf [19:55:10]FM_MakeSignedData [19:55:10]FM_MakeSignedData [19:55:10]SAM_PROTO_SignData [19:55:10]wFMCommunicate request_size=4 [19:55:10]MH_SAM_APDU [19:55:10]CAPDU: 80 0D 01 02 [19:55:10]Write to MH i2c: E2 08 00 68 0D 80 0D 01 02 00 00 00 00 EE [19:55:10]Write i2c OK [19:55:10]MH_I2C_Read... [19:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:10]Read from MH i2c: E2 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 03 00 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 03 00 68 0D 00 90 00 E9 [19:55:10]RAPDU: 90 00 [19:55:10]wFMCommunicate OK [19:55:10]wFMCommunicate request_size=255 [19:55:10]MH_SAM_APDU [19: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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 9D F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 22 02 00 35 04 06 00 23 [19:55:10]Write to MH i2c: E2 02 01 69 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 9D F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 22 02 00 35 04 06 00 23 00 00 5B [19:55:10]Write i2c OK [19:55:10]MH_I2C_Read... [19:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:10]Read from MH i2c: E2 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 03 00 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 03 00 69 0D 00 90 00 EA [19:55:10]RAPDU: 90 00 [19:55:10]wFMCommunicate OK [19:55:10]wFMCommunicate request_size=10 [19:55:10]MH_SAM_APDU [19:55:10]CAPDU: 80 0D 02 02 05 DC 55 A7 A3 97 [19:55:10]Write to MH i2c: E2 0D 00 6A 0D 80 0D 02 02 05 00 DC 55 A7 A3 97 00 00 0D [19:55:10]Write i2c OK [19:55:10]MH_I2C_Read... [19:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:10]Read from MH i2c: E2 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 03 00 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 03 00 6A 0D 00 90 00 EB [19:55:10]RAPDU: 90 00 [19:55:10]wFMCommunicate OK [19:55:10]wFMCommunicate request_size=4 [19:55:10]MH_SAM_APDU [19:55:10]CAPDU: 80 0D 03 02 [19:55:10]Write to MH i2c: E2 08 00 6B 0D 80 0D 03 02 00 00 00 00 F3 [19:55:10]Write i2c OK [19:55:10]MH_I2C_Read... [19:55:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:10]Read from MH i2c: E2 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 0B 00 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 0B 00 6B 0D 00 E2 E3 1D A5 D8 17 96 7E 90 00 7E [19:55:10]RAPDU: E2 E3 1D A5 D8 17 96 7E 90 00 [19:55:10]wFMCommunicate OK [19:55:10]SAM_PROTO_SignData done [19:55:10]FM_MakeSignedData done [19:55:10]CreateOFDProtocolMessage [19:55:10]wFMCommunicate request_size=4 [19:55:10]MH_SAM_APDU [19:55:10]CAPDU: 80 11 00 00 [19:55:10]Write to MH i2c: E2 08 00 6C 0D 80 11 00 00 00 00 00 00 F3 [19:55:10]Write i2c OK [19:55:10]MH_I2C_Read... [19:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:10]Read from MH i2c: E2 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 17 00 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: E2 17 00 6C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4A [19:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:55:10]wFMCommunicate OK [19:55:10]CreateOFDProtocolMessage done [19:55:10]OFDSenderStorePacket 139906 [19:55:10]StoreOFDPacket docnum=139906 [19:55:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E4 FD 07 01 BC 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 9D F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 22 02 00 35 04 06 00 23 DC 55 A7 A3 97 E2 E3 1D A5 D8 17 96 7E [19:55:10]CheckFolder [19:55:10]dirname=/storage/ofd_packets [19:55:10]CheckFolder done [19:55:10]ProducePacketName [19:55:10]name=ofd_packets/00139906 [19:55:10]NVStorageSaveData ofd_packets/00139906 [19:55:10]File name is /storage/ofd_packets/00139906 [19:55:10]Write 301 bytes [19:55:10]NVStorageSaveData done [19:55:10]OFDSenderStorePacket done [19:55:10]KKMCreateOFDPacket done [19:55:10]NVStorageSaveData kkm_last_timestamp [19:55:10]File name is /storage/kkm_last_timestamp [19:55:10]Write 4 bytes [19:55:10]NVStorageSaveData done [19:55:10]ExternCall_PrintAddStr [19:55:10]wPrintStart [19:55:10]Write to MH i2c: 01 00 00 6D 0D 7A [19:55:10]Write i2c OK [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: 01 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: 01 07 00 [19:55:10]MH_I2C_Read... [19:55:10]Read from MH i2c: 01 07 00 6D 0D 00 00 00 00 00 FF 0F 8F [19:55:10]RasterBufferAndPrint [19:55:10]line Счет N : (1)593761 [19:55:10]line ИНН: 02508201610067 [19:55:10]line Контрольно-Кассовый Чек [19:55:10]line ПРОДАЖА [19:55:10]line ТРК (МРК, ГНК) : 52 [19:55:10]line Товар: 2710124130 [19:55:10]line Аи-92-К-5 [19:55:10]line 4.430 * 67.80 [19:55:10]line = 300.35 [19:55:10]line НДС 12% НСП 1% [19:55:10]line > о реализуемом товаре [19:55:10]line ОКРУГЛЕНИЕ: -0.35 [19:55:10]line ИТОГО: 300.00 [19:55:10]line Внесено: 300.00 [19:55:10]line СДАЧА: 0.00 [19:55:10]line НСП 1% : 2.66 [19:55:10]line НДС 12% : 31.90 [19:55:10]line Наличными: 300.00 [19:55:10]line Безнал.: 0.00 [19:55:10]line Место: АЗС № 136 "Партнер Нефть" [19:55:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:55:10]line СНО: Общий режим [19:55:10]line Чек 378 20.08.2024 19:55 [19:55:10]line Смена: 453 ФФД: 1.0 [19:55:10]line ЗНМ: 0300000067 [19:55:10]line РНМ: 0000000000092569 [19:55:10]line Версия ККМ: 001 [19:55:10]line ФМ: 0000000000871776 [19:55:10]line ФД: 139906 [19:55:10]line ФПД: 39429236827031 [19:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139906&fm=39429236827031&tin=02508201610067®Number=0000000000092569&sum=30000 [19:55:11]written 0, free lines is 4095 [19:55:11]OFD Sender: Processing packet 139906 [packets to send 137, broken 136] [19:55:11]ProducePacketName [19:55:11]name=ofd_packets/00139906 [19:55:11]OFD Sender: To server: pG, [19:55:11]CommunicateWithHost lk.salyk.kg:30040 [19:55:11]ConnectInit lk.salyk.kg [19:55:11]Connected sock=10 [19:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E4 FD 07 01 BC 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 9D F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 22 02 00 35 04 06 00 23 DC 55 A7 A3 97 E2 E3 1D A5 D8 17 96 7E [19:55:11]Write to MH i2c: 01 00 00 98 0D A5 [19:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D9 09 47 00 71 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 22 02 00 F4 03 04 00 30 9B C4 66 B6 04 01 00 00 AC 20 9B 5C 05 C7 D6 AF [19:55:11]CommunicateWithHost err = 0 [19:55:11]CheckOFDResponse [19:55:11]1017 (14) - 77093643461234 [19:55:11]1041 (16) - 0000000000871776 [19:55:11]1040 (4) - 139906 [19:55:11]1012 (4) - 20.08.2024 13:33 [19:55:11]1206 (1) - 0 [19:55:11]OFD Sender: Remove packet 139906 [19:55:11]ProducePacketName [19:55:11]name=ofd_packets/00139906 [19:55:11]NVStorageDeleteData [19:55:11]Write i2c OK [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: 01 [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: 01 07 00 [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: 01 07 00 98 0D 00 00 00 00 00 CD 0C 85 [19:55:11]RasterBufferAndPrint [19:55:11]line [19:55:11]line [19:55:11]line [19:55:11]line [19:55:11]line [19:55:11]written 0, free lines is 3294 [19:55:11]MH_Cut [19:55:11]Write to MH i2c: D1 01 00 9F 0D 01 7E [19:55:11]Write i2c OK [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: D1 [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: D1 01 00 [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: D1 01 00 9F 0D 00 7D [19:55:11]Write to MH i2c: 01 00 00 A0 0D AD [19:55:11]Write i2c OK [19:55:11]MH_I2C_Read... [19:55:12]OFD Sender: No OFD packet to send [19:55:12]*** Cut start [19:55:12]*** Partial cut [19:55:12]*** CUTSNS_PIN = 1 [19:55:12]*** CUTSNS_PIN = 0 [19:55:12]*** Brake cut motor [19:55:12]Read from MH i2c: 01 [19:55:12]MH_I2C_Read... [19:55:12]*** Stop cut motor [19:55:12]*** Cut end [19:55:12]Read from MH i2c: 01 07 00 [19:55:12]MH_I2C_Read... [19:55:12]Read from MH i2c: 01 07 00 A0 0D 00 00 00 00 00 FF 0F C2 [19:55:12]process_action close_receipt done [19:55:12]requested_data is exist [19:55:12]produce_requested_data [19:55:12]requested_item fm.sn is exist - process it [19:55:12]wFMCommunicate request_size=4 [19:55:12]MH_SAM_APDU [19:55:12]CAPDU: 80 11 00 00 [19:55:12]Write to MH i2c: E2 08 00 A1 0D 80 11 00 00 00 00 00 00 28 [19:55:12]Write i2c OK [19:55:12]MH_I2C_Read... [19:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:12]Read from MH i2c: E2 [19:55:12]MH_I2C_Read... [19:55:12]Read from MH i2c: E2 17 00 [19:55:12]MH_I2C_Read... [19:55:12]Read from MH i2c: E2 17 00 A1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [19:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:55:12]wFMCommunicate OK [19:55:12]requested_item fd.num is exist - process it [19:55:12]SAM_PROTO_GetFieldsCounters [19:55:12]wFMCommunicate request_size=4 [19:55:12]MH_SAM_APDU [19:55:12]CAPDU: 80 13 00 00 [19:55:12]Write to MH i2c: E2 08 00 A2 0D 80 13 00 00 00 00 00 00 2B [19:55:12]Write i2c OK [19:55:12]MH_I2C_Read... [19:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:13]Read from MH i2c: E2 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 62 00 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 62 00 A2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 22 02 00 0E 04 04 00 C5 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 33 [19:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 22 02 00 0E 04 04 00 C5 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:55:13]wFMCommunicate OK [19:55:13]SAM_PROTO_GetFieldsCounters done [19:55:13]requested_item shift.num is exist - process it [19:55:13]requested_item shift.opened is exist - process it [19:55:13]req_shift_opened [19:55:13]FM_GetShiftState [19:55:13]SAM_PROTO_GetShiftState [19:55:13]wFMCommunicate request_size=4 [19:55:13]MH_SAM_APDU [19:55:13]CAPDU: 80 13 01 00 [19:55:13]Write to MH i2c: E2 08 00 A3 0D 80 13 01 00 00 00 00 00 2D [19:55:13]Write i2c OK [19:55:13]MH_I2C_Read... [19:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:13]Read from MH i2c: E2 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 0E 00 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 0E 00 A3 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BE [19:55:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:55:13]wFMCommunicate OK [19:55:13]SAM_PROTO_GetShiftState done [19:55:13]FM_GetShiftState done [19:55:13]req_shift_opened done [19:55:13]requested_item shift.open_date is exist - process it [19:55:13]req_shift_open_date [19:55:13]req_shift_open_date done [19:55:13]produce_requested_data done [19:55:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139906,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:55:13]process_action_free close_receipt [19:55:13]json_value_free [19:55:13]json_value_free done [19:55:13]process_json_proto returns [19:55:13]Send response to host [19:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139906,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:55:13]free response buf [19:55:13]execute_script done [19:55:13]execute_script returns [19:55:13]free content buf [19:55:13]Sock 9.Close socket [19:55:13]Sock 9.Thread stoped [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:15]accept exits with 7 [19:56:15]New connection [19:56:15]New thread 3066940772 created [19:56:15]Thread 3066797412 joined [19:56:15]Waiting for new connection... [19:56:15] Sock 7.Parse request [19:56:15]Sock 7.Check first char [19:56:15]Sock 7.First char is OK [19:56:15]request: POST /json_proto HTTP/1.0 [19:56:15]Method: POST [19:56:15]URL: /json_proto [19:56:15]Method is POST - this is cgi request [19:56:15]url: /json_proto [19:56:15]query_string will be loaded in cgi processing [19:56:15]execute_cgi json_proto POST (null) [19:56:15]execute_cgi path=json_proto method=POST [19:56:15]POST find Content-Length [19:56:15]Host: 172.17.45.67:8080 [19:56:15]Content-Length: 678 [19:56:15]Content-Type: application/json [19:56:15] [19:56:15]POST finish read [19:56:15]Found Content-Length = 678 [19:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:15]execute_script... [19:56:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:15]POST & json_proto [19:56:15]process_json_proto [19:56:15]json parsed OK: [19:56:15]protocol is kg_v1.0 [19:56:15]action value=close_receipt [19:56:15]process_action close_receipt [19:56:15]cmd_close_receipt [19:56:15]MH_GetDate [19:56:15]Write to MH i2c: F0 00 00 A4 0D A0 [19:56:15]Write i2c OK [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: F0 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: F0 09 00 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: F0 09 00 A4 0D 00 E0 F4 C4 66 5F 7F 2B 66 16 [19:56:15]GetLastDocTimeStamp 1724183709 [19:56:15]current date 1724183776 [19:56:15]FM_GetShiftState [19:56:15]SAM_PROTO_GetShiftState [19:56:15]wFMCommunicate request_size=4 [19:56:15]MH_SAM_APDU [19:56:15]CAPDU: 80 13 01 00 [19:56:15]Write to MH i2c: E2 08 00 A5 0D 80 13 01 00 00 00 00 00 2F [19:56:15]Write i2c OK [19:56:15]MH_I2C_Read... [19:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:15]Read from MH i2c: E2 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: E2 0E 00 [19:56:15]MH_I2C_Read... [19:56:15]Read from MH i2c: E2 0E 00 A5 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C0 [19:56:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:56:15]wFMCommunicate OK [19:56:15]SAM_PROTO_GetShiftState done [19:56:15]FM_GetShiftState done [19:56:15]opened in 1724113785 [19:56:15]opened+sec_in_day 1724200185 [19:56:15]quantity*price = 70037 [19:56:15]sum+1 = 70038 [19:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 379 20.08.2024 19:56 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139907 ФПД: 109642895607408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195616&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139907&fm=109642895607408&tin=02508201610067®Number=0000000000092569&sum=70000 [19:56:16]StoreToDocumentArchive [19:56:16]shift 453 fd 139907 [19:56:16]save to /storage/0453/doc_00139907 [19:56:16]save last doc name /storage/0453/doc_00139907 to /storage/kkm_last_doc_name [19:56:16]save OK [19:56:16]Clear old archive folders... [19:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:56:16]tlvbuf is 00412690 [19:56:16]SAM_PROTO_ClearQueue [19:56:16]wFMCommunicate request_size=4 [19:56:16]MH_SAM_APDU [19:56:16]CAPDU: 80 09 00 00 [19:56:16]Write to MH i2c: E2 08 00 B2 0D 80 09 00 00 00 00 00 00 31 [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:16]Read from MH i2c: E2 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 B2 0D 00 90 00 33 [19:56:16]RAPDU: 90 00 [19:56:16]wFMCommunicate OK [19:56:16]SAM_PROTO_ClearQueue done [19:56:16]KKMCreateOFDPacket [19:56:16]OFDProtocolAddRootSTLVToBuf [19:56:16]FM_MakeSignedData [19:56:16]FM_MakeSignedData [19:56:16]SAM_PROTO_SignData [19:56:16]wFMCommunicate request_size=4 [19:56:16]MH_SAM_APDU [19:56:16]CAPDU: 80 0D 01 02 [19:56:16]Write to MH i2c: E2 08 00 B3 0D 80 0D 01 02 00 00 00 00 39 [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:16]Read from MH i2c: E2 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 B3 0D 00 90 00 34 [19:56:16]RAPDU: 90 00 [19:56:16]wFMCommunicate OK [19:56:16]wFMCommunicate request_size=255 [19:56:16]MH_SAM_APDU [19:56:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 E0 F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 22 02 00 35 04 06 00 63 [19:56:16]Write to MH i2c: E2 02 01 B4 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 E0 F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 22 02 00 35 04 06 00 63 00 00 F3 [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:16]Read from MH i2c: E2 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 B4 0D 00 90 00 35 [19:56:16]RAPDU: 90 00 [19:56:16]wFMCommunicate OK [19:56:16]wFMCommunicate request_size=10 [19:56:16]MH_SAM_APDU [19:56:16]CAPDU: 80 0D 02 02 05 B8 39 D8 46 70 [19:56:16]Write to MH i2c: E2 0D 00 B5 0D 80 0D 02 02 05 00 B8 39 D8 46 70 00 00 C5 [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:16]Read from MH i2c: E2 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 [19:56:16]MH_I2C_Read... [19:56:16]Read from MH i2c: E2 03 00 B5 0D 00 90 00 36 [19:56:16]RAPDU: 90 00 [19:56:16]wFMCommunicate OK [19:56:16]wFMCommunicate request_size=4 [19:56:16]MH_SAM_APDU [19:56:16]CAPDU: 80 0D 03 02 [19:56:16]Write to MH i2c: E2 08 00 B6 0D 80 0D 03 02 00 00 00 00 3E [19:56:16]Write i2c OK [19:56:16]MH_I2C_Read... [19:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:17]Read from MH i2c: E2 [19:56:17]MH_I2C_Read... [19:56:17]Read from MH i2c: E2 0B 00 [19:56:17]MH_I2C_Read... [19:56:17]Read from MH i2c: E2 0B 00 B6 0D 00 0F 2F 22 81 81 F4 DC 3B 90 00 AC [19:56:17]RAPDU: 0F 2F 22 81 81 F4 DC 3B 90 00 [19:56:17]wFMCommunicate OK [19:56:17]SAM_PROTO_SignData done [19:56:17]FM_MakeSignedData done [19:56:17]CreateOFDProtocolMessage [19:56:17]wFMCommunicate request_size=4 [19:56:17]MH_SAM_APDU [19:56:17]CAPDU: 80 11 00 00 [19:56:17]Write to MH i2c: E2 08 00 B7 0D 80 11 00 00 00 00 00 00 3E [19:56:17]Write i2c OK [19:56:17]MH_I2C_Read... [19:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:17]Read from MH i2c: E2 [19:56:17]MH_I2C_Read... [19:56:17]Read from MH i2c: E2 17 00 [19:56:17]MH_I2C_Read... [19:56:17]Read from MH i2c: E2 17 00 B7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 95 [19:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:56:17]wFMCommunicate OK [19:56:17]CreateOFDProtocolMessage done [19:56:17]OFDSenderStorePacket 139907 [19:56:17]StoreOFDPacket docnum=139907 [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10057167+1714126687=1724183854 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 2F F5 C4 66 5F 7F 2B 66 BC [19:57:35]Current date/time: 20.08.2024 19:57 [19:57:35]FM_Init [19:57:35]wFMConnect [19:57:35]MH_SAM_On [19:57:35]Write to MH i2c: E0 00 00 08 00 E7 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_init finished! [19:57:35]*** atr: [19:57:35]*** 0F 3B D5 18 FF 81 91 FE [19:57:35]*** 1F C3 80 73 C8 21 10 0A [19:57:35]*** 00 00 00 00 00 00 00 00 [19:57:35]*** 00 00 00 00 00 00 00 00 [19:57:35]*** 00 00 00 00 00 00 00 00 [19:57:35]*** 00 00 00 00 00 00 00 00 [19:57:35]*** 00 00 00 00 00 00 00 00 [19:57:35]*** 00 00 00 00 00 00 00 00 [19:57:35]Read from MH i2c: E0 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E0 10 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:57:35]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:57:35]wFMCommunicate request_size=10 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:57:35]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:57:35]RAPDU: 90 00 [19:57:35]wFMCommunicate OK [19:57:35]wFMCommunicate request_size=4 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 11 00 00 [19:57:35]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 17 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [19:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:57:35]wFMCommunicate OK [19:57:35]Detected FM SN is 0000000000871776 [19:57:35]Stored FM SN is 0000000000871776 [19:57:35]wFMCommunicate request_size=9 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 16 00 00 04 3F B1 00 00 [19:57:35]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:57:35]RAPDU: 90 00 [19:57:35]wFMCommunicate OK [19:57:35]FM PIN OK [19:57:35]wFMCommunicate request_size=8 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 14 04 00 03 02 00 01 [19:57:35]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:57:35]RAPDU: 90 00 [19:57:35]wFMCommunicate OK [19:57:35]wFMCommunicate request_size=13 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:57:35]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:57:35]RAPDU: 90 00 [19:57:35]wFMCommunicate OK [19:57:35]wFMCommunicate request_size=4 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 11 00 00 [19:57:35]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 17 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [19:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:57:35]wFMCommunicate OK [19:57:35]DocumentArchiveInit [19:57:35]Start Httpd... [19:57:35]Httpd thread 3067194724 created [19:57:35]Write to MH i2c: 01 00 00 0F 00 0F [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: 01 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: 01 07 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:57:35]MH Int Process started [19:57:35]Allocated Socket 8 [19:57:35]Bind OK [19:57:35]Listen OK [19:57:35]httpd running on port 8080 [19:57:35]Waiting for new connection... [19:57:35]OFD Sender: Processing packet 139908 [packets to send 137, broken 136] [19:57:35]ProducePacketName [19:57:35]name=ofd_packets/00139908 [19:57:35]OFD Sender: To server: pG, [19:57:35]CommunicateWithHost lk.salyk.kg:30040 [19:57:35]ConnectInit lk.salyk.kg [19:57:35]Connected sock=6 [19:57:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F4 5A 07 01 48 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 E4 F4 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 22 02 00 35 04 06 00 4D D8 2F CF C5 7C F3 1C 8E 51 F0 5B 54 41 [19:57:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 CB 9C 47 00 1F C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 22 02 00 F4 03 04 00 C0 9B C4 66 B6 04 01 00 00 61 44 50 E0 1C CD DF 5F [19:57:36]CommunicateWithHost err = 0 [19:57:36]CheckOFDResponse [19:57:36]1017 (14) - 77093643461234 [19:57:36]1041 (16) - 0000000000871776 [19:57:36]1040 (4) - 139908 [19:57:36]1012 (4) - 20.08.2024 13:36 [19:57:36]1206 (1) - 0 [19:57:36]OFD Sender: Remove packet 139908 [19:57:36]ProducePacketName [19:57:36]name=ofd_packets/00139908 [19:57:36]NVStorageDeleteData [19:57:36]OFD Sender: No OFD packet to send [19:57:36]accept exits with 9 [19:57:36]New connection [19:57:36]New thread 3066908004 created [19:57:36]Waiting for new connection... [19:57:36] Sock 9.Parse request [19:57:36]Sock 9.Check first char [19:57:36]Sock 9.First char is OK [19:57:36]request: POST /json_proto HTTP/1.0 [19:57:36]Method: POST [19:57:36]URL: /json_proto [19:57:36]Method is POST - this is cgi request [19:57:36]url: /json_proto [19:57:36]query_string will be loaded in cgi processing [19:57:36]execute_cgi json_proto POST (null) [19:57:36]execute_cgi path=json_proto method=POST [19:57:36]POST find Content-Length [19:57:36]Host: 172.17.45.67:8080 [19:57:36]Content-Length: 215 [19:57:36]Content-Type: application/json [19:57:36] [19:57:36]POST finish read [19:57:36]Found Content-Length = 215 [19:57:36]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" ] } } [19:57:36]execute_script... [19:57:36]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" ] } } [19:57:36]POST & json_proto [19:57:36]process_json_proto [19:57:36]json parsed OK: [19:57:36]protocol is kg_v1.0 [19:57:36]action value=get_value [19:57:36]process_action get_value [19:57:36]cmd_get_value [19:57:36]process_action get_value done [19:57:36]requested_data is exist [19:57:36]produce_requested_data [19:57:36]requested_item kkm.sn is exist - process it [19:57:36]requested_item kkm.ver is exist - process it [19:57:36]requested_item fm.sn is exist - process it [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 11 00 00 [19:57:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 17 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [19:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:57:36]wFMCommunicate OK [19:57:36]requested_item fd.num is exist - process it [19:57:36]SAM_PROTO_GetFieldsCounters [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 13 00 00 [19:57:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 62 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 22 02 00 0E 04 04 00 C5 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 9D [19:57:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 22 02 00 0E 04 04 00 C5 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:57:36]wFMCommunicate OK [19:57:36]SAM_PROTO_GetFieldsCounters done [19:57:36]requested_item shift.num is exist - process it [19:57:36]requested_item shift.opened is exist - process it [19:57:36]req_shift_opened [19:57:36]FM_GetShiftState [19:57:36]SAM_PROTO_GetShiftState [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 13 01 00 [19:57:36]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 0E 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 20 [19:57:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:57:36]wFMCommunicate OK [19:57:36]SAM_PROTO_GetShiftState done [19:57:36]FM_GetShiftState done [19:57:36]req_shift_opened done [19:57:36]requested_item shift.open_date is exist - process it [19:57:36]req_shift_open_date [19:57:36]req_shift_open_date done [19:57:36]produce_requested_data done [19:57:36]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139908,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:57:36]process_action_free get_value [19:57:36]json_value_free [19:57:36]json_value_free done [19:57:36]process_json_proto returns [19:57:36]Send response to host [19:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139908,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:57:36]free response buf [19:57:36]execute_script done [19:57:36]execute_script returns [19:57:36]free content buf [19:57:36]Sock 9.Close socket [19:57:36]Sock 9.Thread stoped [19:57:36]accept exits with 6 [19:57:36]New connection [19:57:36]New thread 3066764644 created [19:57:36]Thread 3066908004 joined [19:57:36]Waiting for new connection... [19:57:36] Sock 6.Parse request [19:57:36]Sock 6.Check first char [19:57:36]Sock 6.First char is OK [19:57:36]request: POST /json_proto HTTP/1.0 [19:57:36]Method: POST [19:57:36]URL: /json_proto [19:57:36]Method is POST - this is cgi request [19:57:36]url: /json_proto [19:57:36]query_string will be loaded in cgi processing [19:57:36]execute_cgi json_proto POST (null) [19:57:36]execute_cgi path=json_proto method=POST [19:57:36]POST find Content-Length [19:57:36]Host: 172.17.45.67:8080 [19:57:36]Content-Length: 331 [19:57:36]Content-Type: application/json [19:57:36] [19:57:36]POST finish read [19:57:36]Found Content-Length = 331 [19:57:36]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" ] } } [19:57:36]execute_script... [19:57:36]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" ] } } [19:57:36]POST & json_proto [19:57:36]process_json_proto [19:57:36]json parsed OK: [19:57:36]protocol is kg_v1.0 [19:57:36]action value=get_value [19:57:36]process_action get_value [19:57:36]cmd_get_value [19:57:36]process_action get_value done [19:57:36]requested_data is exist [19:57:36]produce_requested_data [19:57:36]requested_item fm.sale.total is exist - process it [19:57:36]SAM_PROTO_GetFMData [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 13 03 00 [19:57:36]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 FD 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 F9 1E 02 00 69 04 A3 00 6F 04 04 00 78 1E 02 00 B1 04 05 00 AB 77 E1 3B 02 70 04 05 00 24 FB AB F1 01 72 04 04 00 87 7C 35 4A 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 F9 52 C2 3C 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 54 12 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 F9 [19:57:37]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 F9 1E 02 00 69 04 A3 00 6F 04 04 00 78 1E 02 00 B1 04 05 00 AB 77 E1 3B 02 70 04 05 00 24 FB AB F1 01 72 04 04 00 87 7C 35 4A 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 F9 52 C2 3C 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 54 12 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [19:57:37]wFMCommunicate OK [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 17 00 00 [19:57:37]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 FD 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 99 [19:57:37]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [19:57:37]wFMCommunicate OK [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 17 00 00 [19:57:37]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 FD 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [19:57:37]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [19:57:37]wFMCommunicate OK [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 17 00 00 [19:57:37]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 FD 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [19:57:38]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [19:57:38]wFMCommunicate OK [19:57:38]wFMCommunicate request_size=4 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 17 00 00 [19:57:38]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 E1 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [19:57:38]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:57:38]wFMCommunicate OK [19:57:38]SAM_PROTO_GetFMData done [19:57:38]requested_item fm.sale_refund.total is exist - process it [19:57:38]requested_item fm.buy.total is exist - process it [19:57:38]requested_item shift.sale.total is exist - process it [19:57:38]SAM_PROTO_GetShiftData [19:57:38]wFMCommunicate request_size=4 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 13 02 00 [19:57:38]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 FD 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 7C 01 00 00 69 04 9E 00 6F 04 04 00 7C 01 00 00 B1 04 04 00 CC 06 9A 01 70 04 04 00 1C 15 82 01 72 04 03 00 B0 F1 17 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 E8 8E 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 A1 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 CB [19:57:38]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 7C 01 00 00 69 04 9E 00 6F 04 04 00 7C 01 00 00 B1 04 04 00 CC 06 9A 01 70 04 04 00 1C 15 82 01 72 04 03 00 B0 F1 17 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 E8 8E 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 46 A1 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [19:57:38]wFMCommunicate OK [19:57:38]wFMCommunicate request_size=4 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 17 00 00 [19:57:38]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 FD 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 B2 [19:57:39]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 [19:57:39]wFMCommunicate OK [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 17 00 00 [19:57:39]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 FD 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 53 [19:57:39]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 [19:57:39]wFMCommunicate OK [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 17 00 00 [19:57:39]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 FD 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 FD 00 1B 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 13 [19:57:39]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 [19:57:39]wFMCommunicate OK [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 17 00 00 [19:57:39]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [19:57:40]Read from MH i2c: E2 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: E2 CE 00 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [19:57:40]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 [19:57:40]wFMCommunicate OK [19:57:40]SAM_PROTO_GetShiftData done [19:57:40]requested_item shift.sale.total_cash is exist - process it [19:57:40]requested_item shift.sale_refund.total is exist - process it [19:57:40]requested_item shift.sale_refund.total_cash is exist - process it [19:57:40]requested_item shift.buy.total is exist - process it [19:57:40]requested_item shift.buy.total_cash is exist - process it [19:57:40]produce_requested_data done [19:57:40]produce_requested_data return {"fm.sale.total":95945665.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":268715.00,"shift.sale.total_cash":253023.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} [19:57:40]process_action_free get_value [19:57:40]json_value_free [19:57:40]json_value_free done [19:57:40]process_json_proto returns [19:57:40]Send response to host [19:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95945665.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":268715.00,"shift.sale.total_cash":253023.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}}} [19:57:40]free response buf [19:57:40]execute_script done [19:57:40]execute_script returns [19:57:40]free content buf [19:57:40]Sock 6.Close socket [19:57:40]Sock 6.Thread stoped [19:57:40]accept exits with 9 [19:57:40]New connection [19:57:40]New thread 3066908004 created [19:57:40]Thread 3066764644 joined [19:57:40]Waiting for new connection... [19:57:40] Sock 9.Parse request [19:57:40]Sock 9.Check first char [19:57:40]Sock 9.First char is OK [19:57:40]request: POST /json_proto HTTP/1.0 [19:57:40]Method: POST [19:57:40]URL: /json_proto [19:57:40]Method is POST - this is cgi request [19:57:40]url: /json_proto [19:57:40]query_string will be loaded in cgi processing [19:57:40]execute_cgi json_proto POST (null) [19:57:40]execute_cgi path=json_proto method=POST [19:57:40]POST find Content-Length [19:57:40]Host: 172.17.45.67:8080 [19:57:40]Content-Length: 144 [19:57:40]Content-Type: application/json [19:57:40] [19:57:40]POST finish read [19:57:40]Found Content-Length = 144 [19:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [19:57:40]execute_script... [19:57:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [19:57:40]POST & json_proto [19:57:40]process_json_proto [19:57:40]json parsed OK: [19:57:40]protocol is kg_v1.0 [19:57:40]action value=print_doc [19:57:40]process_action print_doc [19:57:40]ExternCall_PrintAddStr [19:57:40]wPrintStart [19:57:40]Write to MH i2c: 01 00 00 1D 00 1D [19:57:40]Write i2c OK [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: 01 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: 01 07 00 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [19:57:40]RasterBufferAndPrint [19:57:40]line Счет N : (1)593762 [19:57:40]line ИНН: 02508201610067 [19:57:40]line Контрольно-Кассовый Чек [19:57:40]line ПРОДАЖА [19:57:40]line ТРК (МРК, ГНК) : 42 [19:57:40]line Товар: 2710124130 [19:57:40]line Аи-92-К-5 [19:57:40]line 14.750 * 67.80 [19:57:40]line = 1000.05 [19:57:40]line НДС 12% НСП 1% [19:57:40]line > о реализуемом товаре [19:57:40]line ОКРУГЛЕНИЕ: -0.05 [19:57:40]line ИТОГО: 1000.00 [19:57:40]line НСП 1% : 8.85 [19:57:40]line НДС 12% : 106.20 [19:57:40]line Наличными: 0.00 [19:57:40]line Безнал.: 1000.00 [19:57:40]line Место: АЗС № 136 "Партнер Нефть" [19:57:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:57:40]line СНО: Общий режим [19:57:40]line Чек 380 20.08.2024 19:56 [19:57:40]line Смена: 453 ФФД: 1.0 [19:57:40]line ЗНМ: 0300000067 [19:57:40]line РНМ: 0000000000092569 [19:57:40]line Версия ККМ: 001 [19:57:40]line Платежная система: O! деньги [19:57:40]line ФМ: 0000000000871776 [19:57:40]line ФД: 139908 [19:57:40]line ФПД: 85590910420348 [19:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195620&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139908&fm=85590910420348&tin=02508201610067®Number=0000000000092569&sum=100000 [19:57:40]written 0, free lines is 4095 [19:57:40]Write to MH i2c: 01 00 00 48 00 48 [19:57:40]Write i2c OK [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: 01 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: 01 07 00 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 F3 0C 4E [19:57:40]RasterBufferAndPrint [19:57:40]line [19:57:40]line [19:57:40]line [19:57:40]line [19:57:40]line [19:57:40]written 0, free lines is 3335 [19:57:40]MH_Cut [19:57:40]Write to MH i2c: D1 01 00 4F 00 01 21 [19:57:40]Write i2c OK [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: D1 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: D1 01 00 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: D1 01 00 4F 00 00 20 [19:57:40]Write to MH i2c: 01 00 00 50 00 50 [19:57:40]Write i2c OK [19:57:40]MH_I2C_Read... [19:57:41]OFD Sender: No OFD packet to send [19:57:41]*** Cut start [19:57:41]*** Partial cut [19:57:41]*** CUTSNS_PIN = 1 [19:57:41]*** CUTSNS_PIN = 0 [19:57:41]*** Brake cut motor [19:57:42]Read from MH i2c: 01 [19:57:42]MH_I2C_Read... [19:57:42]*** Stop cut motor [19:57:42]*** Cut end [19:57:42]Read from MH i2c: 01 07 00 [19:57:42]MH_I2C_Read... [19:57:42]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [19:57:42]process_action print_doc done [19:57:42]requested_data is exist [19:57:42]produce_requested_data [19:57:42]produce_requested_data return (null) [19:57:42]process_action_free print_doc [19:57:42]json_value_free [19:57:42]json_value_free done [19:57:42]process_json_proto returns [19:57:42]Send response to host [19:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [19:57:42]free response buf [19:57:42]execute_script done [19:57:42]execute_script returns [19:57:42]free content buf [19:57:42]Sock 9.Close socket [19:57:42]Sock 9.Thread stoped [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:49]accept exits with 7 [19:59:49]New connection [19:59:49]New thread 3066764644 created [19:59:49]Thread 3066908004 joined [19:59:49]Waiting for new connection... [19:59:49] Sock 7.Parse request [19:59:49]Sock 7.Check first char [19:59:49]Sock 7.First char is OK [19:59:49]request: POST /json_proto HTTP/1.0 [19:59:49]Method: POST [19:59:49]URL: /json_proto [19:59:49]Method is POST - this is cgi request [19:59:49]url: /json_proto [19:59:49]query_string will be loaded in cgi processing [19:59:49]execute_cgi json_proto POST (null) [19:59:49]execute_cgi path=json_proto method=POST [19:59:49]POST find Content-Length [19:59:49]Host: 172.17.45.67:8080 [19:59:49]Content-Length: 678 [19:59:49]Content-Type: application/json [19:59:49] [19:59:49]POST finish read [19:59:49]Found Content-Length = 678 [19:59:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:49]execute_script... [19:59: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)593765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:49]POST & json_proto [19:59:49]process_json_proto [19:59:49]json parsed OK: [19:59:49]protocol is kg_v1.0 [19:59:49]action value=close_receipt [19:59:49]process_action close_receipt [19:59:49]cmd_close_receipt [19:59:49]MH_GetDate [19:59:49]Write to MH i2c: F0 00 00 51 00 40 [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: F0 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: F0 09 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: F0 09 00 51 00 00 B5 F5 C4 66 5F 7F 2B 66 8C [19:59:49]GetLastDocTimeStamp 1724183780 [19:59:49]current date 1724183989 [19:59:49]FM_GetShiftState [19:59:49]SAM_PROTO_GetShiftState [19:59:49]wFMCommunicate request_size=4 [19:59:49]MH_SAM_APDU [19:59:49]CAPDU: 80 13 01 00 [19:59:49]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [19:59:49]Write i2c OK [19:59:49]MH_I2C_Read... [19:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:49]Read from MH i2c: E2 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 0E 00 [19:59:49]MH_I2C_Read... [19:59:49]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 60 [19:59:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:59:49]wFMCommunicate OK [19:59:49]SAM_PROTO_GetShiftState done [19:59:49]FM_GetShiftState done [19:59:49]opened in 1724113785 [19:59:49]opened+sec_in_day 1724200185 [19:59:49]quantity*price = 80061 [19:59:49]sum+1 = 80063 [19:59:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 381 20.08.2024 19:59 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139909 ФПД: 201621314147119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195949&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139909&fm=201621314147119&tin=02508201610067®Number=0000000000092569&sum=80000 [19:59:50]StoreToDocumentArchive [19:59:50]shift 453 fd 139909 [19:59:50]save to /storage/0453/doc_00139909 [19:59:50]save last doc name /storage/0453/doc_00139909 to /storage/kkm_last_doc_name [19:59:50]save OK [19:59:50]Clear old archive folders... [19:59:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:50]tlvbuf is 00A093B0 [19:59:50]SAM_PROTO_ClearQueue [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 09 00 00 [19:59:50]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]SAM_PROTO_ClearQueue done [19:59:50]KKMCreateOFDPacket [19:59:50]OFDProtocolAddRootSTLVToBuf [19:59:50]FM_MakeSignedData [19:59:50]FM_MakeSignedData [19:59:50]SAM_PROTO_SignData [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 01 02 [19:59:50]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]wFMCommunicate request_size=255 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 01 00 00 F4 03 04 00 B5 F5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 22 02 00 35 04 06 00 B7 [19:59:50]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 01 00 00 F4 03 04 00 B5 F5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 22 02 00 35 04 06 00 B7 00 00 57 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]wFMCommunicate request_size=10 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 02 02 05 5F 9E CF 13 2F [19:59:50]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 5F 9E CF 13 2F 00 00 F4 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [19:59:50]RAPDU: 90 00 [19:59:50]wFMCommunicate OK [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 0D 03 02 [19:59:50]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 0B 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 0B 00 63 00 00 79 01 32 27 71 1E 7D B8 90 00 76 [19:59:50]RAPDU: 79 01 32 27 71 1E 7D B8 90 00 [19:59:50]wFMCommunicate OK [19:59:50]SAM_PROTO_SignData done [19:59:50]FM_MakeSignedData done [19:59:50]CreateOFDProtocolMessage [19:59:50]wFMCommunicate request_size=4 [19:59:50]MH_SAM_APDU [19:59:50]CAPDU: 80 11 00 00 [19:59:50]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:50]Read from MH i2c: E2 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 17 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [19:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:59:50]wFMCommunicate OK [19:59:50]CreateOFDProtocolMessage done [19:59:50]OFDSenderStorePacket 139909 [19:59:50]StoreOFDPacket docnum=139909 [19:59:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 50 5E 07 01 28 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 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 B5 F5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 22 02 00 35 04 06 00 B7 5F 9E CF 13 2F 79 01 32 27 71 1E 7D B8 [19:59:50]CheckFolder [19:59:50]dirname=/storage/ofd_packets [19:59:50]CheckFolder done [19:59:50]ProducePacketName [19:59:50]name=ofd_packets/00139909 [19:59:50]NVStorageSaveData ofd_packets/00139909 [19:59:50]File name is /storage/ofd_packets/00139909 [19:59:50]Write 301 bytes [19:59:50]NVStorageSaveData done [19:59:50]OFDSenderStorePacket done [19:59:50]KKMCreateOFDPacket done [19:59:50]NVStorageSaveData kkm_last_timestamp [19:59:50]File name is /storage/kkm_last_timestamp [19:59:50]Write 4 bytes [19:59:50]NVStorageSaveData done [19:59:50]ExternCall_PrintAddStr [19:59:50]wPrintStart [19:59:50]Write to MH i2c: 01 00 00 65 00 65 [19:59:50]Write i2c OK [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 [19:59:50]MH_I2C_Read... [19:59:50]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [19:59:50]RasterBufferAndPrint [19:59:50]line Счет N : (1)593765 [19:59:50]line ИНН: 02508201610067 [19:59:50]line Контрольно-Кассовый Чек [19:59:50]line ПРОДАЖА [19:59:50]line ТРК (МРК, ГНК) : 41 [19:59:50]line Товар: 2710124500 [19:59:50]line Аи-95-К-5 [19:59:50]line 10.790 * 74.20 [19:59:50]line = 800.62 [19:59:50]line НДС 12% НСП 1% [19:59:50]line > о реализуемом товаре [19:59:50]line ОКРУГЛЕНИЕ: -0.62 [19:59:50]line ИТОГО: 800.00 [19:59:50]line Внесено: 800.00 [19:59:50]line СДАЧА: 0.00 [19:59:50]line НСП 1% : 7.08 [19:59:50]line НДС 12% : 85.02 [19:59:50]line Наличными: 800.00 [19:59:50]line Безнал.: 0.00 [19:59:50]line Место: АЗС № 136 "Партнер Нефть" [19:59:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:59:50]line СНО: Общий режим [19:59:50]line Чек 381 20.08.2024 19:59 [19:59:50]line Смена: 453 ФФД: 1.0 [19:59:50]line ЗНМ: 0300000067 [19:59:50]line РНМ: 0000000000092569 [19:59:50]line Версия ККМ: 001 [19:59:50]line ФМ: 0000000000871776 [19:59:50]line ФД: 139909 [19:59:50]line ФПД: 201621314147119 [19:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195949&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139909&fm=201621314147119&tin=02508201610067®Number=0000000000092569&sum=80000 [19:59:51]written 0, free lines is 4095 [19:59:51]OFD Sender: Processing packet 139909 [packets to send 137, broken 136] [19:59:51]ProducePacketName [19:59:51]name=ofd_packets/00139909 [19:59:51]OFD Sender: To server: pG, [19:59:51]CommunicateWithHost lk.salyk.kg:30040 [19:59:51]ConnectInit lk.salyk.kg [19:59:51]Connected sock=10 [19:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 50 5E 07 01 28 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 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 B5 F5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 22 02 00 35 04 06 00 B7 5F 9E CF 13 2F 79 01 32 27 71 1E 7D B8 [19:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 02 06 47 00 8B BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 22 02 00 F4 03 04 00 47 9C C4 66 B6 04 01 00 00 B6 08 77 FD 2F F9 6A B3 [19:59:51]CommunicateWithHost err = 0 [19:59:51]CheckOFDResponse [19:59:51]1017 (14) - 77093643461234 [19:59:51]1041 (16) - 0000000000871776 [19:59:51]1040 (4) - 139909 [19:59:51]1012 (4) - 20.08.2024 13:38 [19:59:51]1206 (1) - 0 [19:59:51]OFD Sender: Remove packet 139909 [19:59:51]ProducePacketName [19:59:51]name=ofd_packets/00139909 [19:59:51]NVStorageDeleteData [19:59:51]Write to MH i2c: 01 00 00 90 00 90 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 07 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 D2 0C 75 [19:59:51]RasterBufferAndPrint [19:59:51]line [19:59:51]line [19:59:51]line [19:59:51]line [19:59:51]line [19:59:51]written 0, free lines is 3289 [19:59:51]MH_Cut [19:59:51]Write to MH i2c: D1 01 00 97 00 01 69 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: D1 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: D1 01 00 [19:59:51]MH_I2C_Read... [19:59:51]Read from MH i2c: D1 01 00 97 00 00 68 [19:59:51]Write to MH i2c: 01 00 00 98 00 98 [19:59:51]Write i2c OK [19:59:51]MH_I2C_Read... [19:59:52]OFD Sender: No OFD packet to send [19:59:52]*** Cut start [19:59:52]*** Partial cut [19:59:52]*** CUTSNS_PIN = 1 [19:59:52]*** CUTSNS_PIN = 0 [19:59:52]*** Brake cut motor [19:59:52]Read from MH i2c: 01 [19:59:52]MH_I2C_Read... [19:59:52]*** Stop cut motor [19:59:52]*** Cut end [19:59:52]Read from MH i2c: 01 07 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [19:59:52]process_action close_receipt done [19:59:52]requested_data is exist [19:59:52]produce_requested_data [19:59:52]requested_item fm.sn is exist - process it [19:59:52]wFMCommunicate request_size=4 [19:59:52]MH_SAM_APDU [19:59:52]CAPDU: 80 11 00 00 [19:59:52]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:52]Read from MH i2c: E2 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 17 00 [19:59:52]MH_I2C_Read... [19:59:52]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [19:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:59:52]wFMCommunicate OK [19:59:52]requested_item fd.num is exist - process it [19:59:52]SAM_PROTO_GetFieldsCounters [19:59:52]wFMCommunicate request_size=4 [19:59:52]MH_SAM_APDU [19:59:52]CAPDU: 80 13 00 00 [19:59:52]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [19:59:52]Write i2c OK [19:59:52]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 62 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 22 02 00 0E 04 04 00 C5 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 2A [19:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 22 02 00 0E 04 04 00 C5 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:59:53]wFMCommunicate OK [19:59:53]SAM_PROTO_GetFieldsCounters done [19:59:53]requested_item shift.num is exist - process it [19:59:53]requested_item shift.opened is exist - process it [19:59:53]req_shift_opened [19:59:53]FM_GetShiftState [19:59:53]SAM_PROTO_GetShiftState [19:59:53]wFMCommunicate request_size=4 [19:59:53]MH_SAM_APDU [19:59:53]CAPDU: 80 13 01 00 [19:59:53]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [19:59:53]Write i2c OK [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 [19:59:53]MH_I2C_Read... [19:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:53]Read from MH i2c: E2 0E 00 [19:59:53]MH_I2C_Read... [19:59:53]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A9 [19:59:53]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:59:53]wFMCommunicate OK [19:59:53]SAM_PROTO_GetShiftState done [19:59:53]FM_GetShiftState done [19:59:53]req_shift_opened done [19:59:53]requested_item shift.open_date is exist - process it [19:59:53]req_shift_open_date [19:59:53]req_shift_open_date done [19:59:53]produce_requested_data done [19:59:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139909,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [19:59:53]process_action_free close_receipt [19:59:53]json_value_free [19:59:53]json_value_free done [19:59:53]process_json_proto returns [19:59:53]Send response to host [19:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139909,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [19:59:53]free response buf [19:59:53]execute_script done [19:59:53]execute_script returns [19:59:53]free content buf [19:59:53]Sock 7.Close socket [19:59:53]Sock 7.Thread stoped [19:59:57]OFD Sender: No OFD packet to send [19:59:58]accept exits with 9 [19:59:58]New connection [19:59:58]New thread 3066908004 created [19:59:58]Thread 3066764644 joined [19:59:58]Waiting for new connection... [19:59:58] Sock 9.Parse request [19:59:58]Sock 9.Check first char [19:59:58]Sock 9.First char is OK [19:59:58]request: POST /json_proto HTTP/1.0 [19:59:58]Method: POST [19:59:58]URL: /json_proto [19:59:58]Method is POST - this is cgi request [19:59:58]url: /json_proto [19:59:58]query_string will be loaded in cgi processing [19:59:58]execute_cgi json_proto POST (null) [19:59:58]execute_cgi path=json_proto method=POST [19:59:58]POST find Content-Length [19:59:58]Host: 172.17.45.67:8080 [19:59:58]Content-Length: 682 [19:59:58]Content-Type: application/json [19:59:58] [19:59:58]POST finish read [19:59:58]Found Content-Length = 682 [19:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:58]execute_script... [19:59:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:58]POST & json_proto [19:59:58]process_json_proto [19:59:58]json parsed OK: [19:59:58]protocol is kg_v1.0 [19:59:58]action value=close_receipt [19:59:58]process_action close_receipt [19:59:58]cmd_close_receipt [19:59:58]MH_GetDate [19:59:58]Write to MH i2c: F0 00 00 9C 00 8B [19:59:58]Write i2c OK [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: F0 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: F0 09 00 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: F0 09 00 9C 00 00 BE F5 C4 66 5F 7F 2B 66 E0 [19:59:58]GetLastDocTimeStamp 1724183989 [19:59:58]current date 1724183998 [19:59:58]FM_GetShiftState [19:59:58]SAM_PROTO_GetShiftState [19:59:58]wFMCommunicate request_size=4 [19:59:58]MH_SAM_APDU [19:59:58]CAPDU: 80 13 01 00 [19:59:58]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [19:59:58]Write i2c OK [19:59:58]MH_I2C_Read... [19:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:58]Read from MH i2c: E2 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 0E 00 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AB [19:59:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [19:59:58]wFMCommunicate OK [19:59:58]SAM_PROTO_GetShiftState done [19:59:58]FM_GetShiftState done [19:59:58]opened in 1724113785 [19:59:58]opened+sec_in_day 1724200185 [19:59:58]quantity*price = 100021 [19:59:58]sum+1 = 100023 [19:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 382 20.08.2024 19:59 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139910 ФПД: 4201171410037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195958&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139910&fm=4201171410037&tin=02508201610067®Number=0000000000092569&sum=100000 [19:59:59]StoreToDocumentArchive [19:59:59]shift 453 fd 139910 [19:59:59]save to /storage/0453/doc_00139910 [19:59:59]save last doc name /storage/0453/doc_00139910 to /storage/kkm_last_doc_name [19:59:59]save OK [19:59:59]Clear old archive folders... [19:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:59]tlvbuf is 00A588A0 [19:59:59]SAM_PROTO_ClearQueue [19:59:59]wFMCommunicate request_size=4 [19:59:59]MH_SAM_APDU [19:59:59]CAPDU: 80 09 00 00 [19:59:59]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:59]Read from MH i2c: E2 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 03 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [19:59:59]RAPDU: 90 00 [19:59:59]wFMCommunicate OK [19:59:59]SAM_PROTO_ClearQueue done [19:59:59]KKMCreateOFDPacket [19:59:59]OFDProtocolAddRootSTLVToBuf [19:59:59]FM_MakeSignedData [19:59:59]FM_MakeSignedData [19:59:59]SAM_PROTO_SignData [19:59:59]wFMCommunicate request_size=4 [19:59:59]MH_SAM_APDU [19:59:59]CAPDU: 80 0D 01 02 [19:59:59]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:59]Read from MH i2c: E2 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 03 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [19:59:59]RAPDU: 90 00 [19:59:59]wFMCommunicate OK [19:59:59]wFMCommunicate request_size=255 [19:59:59]MH_SAM_APDU [19:59:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 BE F5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 22 02 00 35 04 06 00 03 [19:59:59]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 7E 01 00 00 F4 03 04 00 BE F5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 22 02 00 35 04 06 00 03 00 00 A9 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:59]Read from MH i2c: E2 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 03 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [19:59:59]RAPDU: 90 00 [19:59:59]wFMCommunicate OK [19:59:59]wFMCommunicate request_size=10 [19:59:59]MH_SAM_APDU [19:59:59]CAPDU: 80 0D 02 02 05 D2 29 54 5C 75 [19:59:59]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 D2 29 54 5C 75 00 00 51 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:59]Read from MH i2c: E2 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 03 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [19:59:59]RAPDU: 90 00 [19:59:59]wFMCommunicate OK [19:59:59]wFMCommunicate request_size=4 [19:59:59]MH_SAM_APDU [19:59:59]CAPDU: 80 0D 03 02 [19:59:59]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:59]Read from MH i2c: E2 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 0B 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 0B 00 AE 00 00 49 B6 9B 28 BC 05 54 46 90 00 47 [19:59:59]RAPDU: 49 B6 9B 28 BC 05 54 46 90 00 [19:59:59]wFMCommunicate OK [19:59:59]SAM_PROTO_SignData done [19:59:59]FM_MakeSignedData done [19:59:59]CreateOFDProtocolMessage [19:59:59]wFMCommunicate request_size=4 [19:59:59]MH_SAM_APDU [19:59:59]CAPDU: 80 11 00 00 [19:59:59]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:59]Read from MH i2c: E2 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 17 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [19:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:59:59]wFMCommunicate OK [19:59:59]CreateOFDProtocolMessage done [19:59:59]OFDSenderStorePacket 139910 [19:59:59]StoreOFDPacket docnum=139910 [19:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 06 43 07 01 32 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 7E 01 00 00 F4 03 04 00 BE F5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 22 02 00 35 04 06 00 03 D2 29 54 5C 75 49 B6 9B 28 BC 05 54 46 [19:59:59]CheckFolder [19:59:59]dirname=/storage/ofd_packets [19:59:59]CheckFolder done [19:59:59]ProducePacketName [19:59:59]name=ofd_packets/00139910 [19:59:59]NVStorageSaveData ofd_packets/00139910 [19:59:59]File name is /storage/ofd_packets/00139910 [19:59:59]Write 301 bytes [19:59:59]NVStorageSaveData done [19:59:59]OFDSenderStorePacket done [19:59:59]KKMCreateOFDPacket done [19:59:59]NVStorageSaveData kkm_last_timestamp [19:59:59]File name is /storage/kkm_last_timestamp [19:59:59]Write 4 bytes [19:59:59]NVStorageSaveData done [19:59:59]ExternCall_PrintAddStr [19:59:59]wPrintStart [19:59:59]Write to MH i2c: 01 00 00 B0 00 B0 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 07 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [19:59:59]RasterBufferAndPrint [19:59:59]line Счет N : (1)593764 [19:59:59]line ИНН: 02508201610067 [19:59:59]line Контрольно-Кассовый Чек [19:59:59]line ПРОДАЖА [19:59:59]line ТРК (МРК, ГНК) : 31 [19:59:59]line Товар: 2710124500 [19:59:59]line Аи-95-К-5 [19:59:59]line 13.480 * 74.20 [19:59:59]line = 1000.22 [19:59:59]line НДС 12% НСП 1% [19:59:59]line > о реализуемом товаре [19:59:59]line ОКРУГЛЕНИЕ: -0.22 [19:59:59]line ИТОГО: 1000.00 [19:59:59]line Внесено: 1000.00 [19:59:59]line СДАЧА: 0.00 [19:59:59]line НСП 1% : 8.85 [19:59:59]line НДС 12% : 106.22 [19:59:59]line Наличными: 1000.00 [19:59:59]line Безнал.: 0.00 [19:59:59]line Место: АЗС № 136 "Партнер Нефть" [19:59:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:59:59]line СНО: Общий режим [19:59:59]line Чек 382 20.08.2024 19:59 [19:59:59]line Смена: 453 ФФД: 1.0 [19:59:59]line ЗНМ: 0300000067 [19:59:59]line РНМ: 0000000000092569 [19:59:59]line Версия ККМ: 001 [19:59:59]line ФМ: 0000000000871776 [19:59:59]line ФД: 139910 [19:59:59]line ФПД: 4201171410037 [19:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T195958&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139910&fm=4201171410037&tin=02508201610067®Number=0000000000092569&sum=100000 [19:59:59]written 0, free lines is 4095 [19:59:59]OFD Sender: Processing packet 139910 [packets to send 137, broken 136] [19:59:59]ProducePacketName [19:59:59]name=ofd_packets/00139910 [19:59:59]OFD Sender: To server: pG, [19:59:59]CommunicateWithHost lk.salyk.kg:30040 [19:59:59]ConnectInit lk.salyk.kg [19:59:59]Connected sock=10 [19:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 06 43 07 01 32 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 7E 01 00 00 F4 03 04 00 BE F5 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 22 02 00 35 04 06 00 03 D2 29 54 5C 75 49 B6 9B 28 BC 05 54 46 [20:00:00]Write to MH i2c: 01 00 00 DB 00 DB [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: 01 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: 01 07 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 E0 0C CE [20:00:00]RasterBufferAndPrint [20:00:00]line [20:00:00]line [20:00:00]line [20:00:00]line [20:00:00]line [20:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 01 55 47 00 4C 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 22 02 00 F4 03 04 00 50 9C C4 66 B6 04 01 00 00 F4 0C A3 07 92 5E EB CF [20:00:00]CommunicateWithHost err = 0 [20:00:00]CheckOFDResponse [20:00:00]1017 (14) - 77093643461234 [20:00:00]1041 (16) - 0000000000871776 [20:00:00]1040 (4) - 139910 [20:00:00]1012 (4) - 20.08.2024 13:38 [20:00:00]1206 (1) - 0 [20:00:00]OFD Sender: Remove packet 139910 [20:00:00]ProducePacketName [20:00:00]name=ofd_packets/00139910 [20:00:00]NVStorageDeleteData [20:00:00]written 0, free lines is 3305 [20:00:00]MH_Cut [20:00:00]Write to MH i2c: D1 01 00 E2 00 01 B4 [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: D1 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: D1 01 00 [20:00:00]MH_I2C_Read... [20:00:00]Read from MH i2c: D1 01 00 E2 00 00 B3 [20:00:00]Write to MH i2c: 01 00 00 E3 00 E3 [20:00:00]Write i2c OK [20:00:00]MH_I2C_Read... [20:00:00]OFD Sender: No OFD packet to send [20:00:00]*** Cut start [20:00:00]*** Partial cut [20:00:00]*** CUTSNS_PIN = 1 [20:00:01]*** CUTSNS_PIN = 0 [20:00:01]*** Brake cut motor [20:00:01]Read from MH i2c: 01 [20:00:01]MH_I2C_Read... [20:00:01]*** Stop cut motor [20:00:01]*** Cut end [20:00:01]Read from MH i2c: 01 07 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [20:00:01]process_action close_receipt done [20:00:01]requested_data is exist [20:00:01]produce_requested_data [20:00:01]requested_item fm.sn is exist - process it [20:00:01]wFMCommunicate request_size=4 [20:00:01]MH_SAM_APDU [20:00:01]CAPDU: 80 11 00 00 [20:00:01]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 17 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [20:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:00:01]wFMCommunicate OK [20:00:01]requested_item fd.num is exist - process it [20:00:01]SAM_PROTO_GetFieldsCounters [20:00:01]wFMCommunicate request_size=4 [20:00:01]MH_SAM_APDU [20:00:01]CAPDU: 80 13 00 00 [20:00:01]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 62 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 22 02 00 0E 04 04 00 C5 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 79 [20:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 22 02 00 0E 04 04 00 C5 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 [20:00:01]wFMCommunicate OK [20:00:01]SAM_PROTO_GetFieldsCounters done [20:00:01]requested_item shift.num is exist - process it [20:00:01]requested_item shift.opened is exist - process it [20:00:01]req_shift_opened [20:00:01]FM_GetShiftState [20:00:01]SAM_PROTO_GetShiftState [20:00:01]wFMCommunicate request_size=4 [20:00:01]MH_SAM_APDU [20:00:01]CAPDU: 80 13 01 00 [20:00:01]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 0E 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F4 [20:00:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:00:01]wFMCommunicate OK [20:00:01]SAM_PROTO_GetShiftState done [20:00:01]FM_GetShiftState done [20:00:01]req_shift_opened done [20:00:01]requested_item shift.open_date is exist - process it [20:00:01]req_shift_open_date [20:00:01]req_shift_open_date done [20:00:01]produce_requested_data done [20:00:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139910,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:00:01]process_action_free close_receipt [20:00:01]json_value_free [20:00:01]json_value_free done [20:00:01]process_json_proto returns [20:00:01]Send response to host [20:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139910,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:00:01]free response buf [20:00:01]execute_script done [20:00:01]execute_script returns [20:00:01]free content buf [20:00:01]Sock 9.Close socket [20:00:01]Sock 9.Thread stoped [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:07]accept exits with 7 [20:01:07]New connection [20:01:07]New thread 3066764644 created [20:01:07]Thread 3066908004 joined [20:01:07]Waiting for new connection... [20:01:07] Sock 7.Parse request [20:01:07]Sock 7.Check first char [20:01:07]Sock 7.First char is OK [20:01:07]request: POST /json_proto HTTP/1.0 [20:01:07]Method: POST [20:01:07]URL: /json_proto [20:01:07]Method is POST - this is cgi request [20:01:07]url: /json_proto [20:01:07]query_string will be loaded in cgi processing [20:01:07]execute_cgi json_proto POST (null) [20:01:07]execute_cgi path=json_proto method=POST [20:01:07]POST find Content-Length [20:01:07]Host: 172.17.45.67:8080 [20:01:07]Content-Length: 677 [20:01:07]Content-Type: application/json [20:01:07] [20:01:07]POST finish read [20:01:07]Found Content-Length = 677 [20:01:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:07]execute_script... [20: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)593767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:07]POST & json_proto [20:01:07]process_json_proto [20:01:07]json parsed OK: [20:01:07]protocol is kg_v1.0 [20:01:07]action value=close_receipt [20:01:07]process_action close_receipt [20:01:07]cmd_close_receipt [20:01:07]MH_GetDate [20:01:07]Write to MH i2c: F0 00 00 E7 00 D6 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: F0 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: F0 09 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: F0 09 00 E7 00 00 03 F6 C4 66 5F 7F 2B 66 71 [20:01:07]GetLastDocTimeStamp 1724183998 [20:01:07]current date 1724184067 [20:01:07]FM_GetShiftState [20:01:07]SAM_PROTO_GetShiftState [20:01:07]wFMCommunicate request_size=4 [20:01:07]MH_SAM_APDU [20:01:07]CAPDU: 80 13 01 00 [20:01:07]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:07]Read from MH i2c: E2 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 0E 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F6 [20:01:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:01:07]wFMCommunicate OK [20:01:07]SAM_PROTO_GetShiftState done [20:01:07]FM_GetShiftState done [20:01:07]opened in 1724113785 [20:01:07]opened+sec_in_day 1724200185 [20:01:07]quantity*price = 40002 [20:01:07]sum+1 = 40003 [20:01:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 383 20.08.2024 20:01 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139911 ФПД: 219711083402413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T200107&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139911&fm=219711083402413&tin=02508201610067®Number=0000000000092569&sum=40000 [20:01:08]StoreToDocumentArchive [20:01:08]shift 453 fd 139911 [20:01:08]save to /storage/0453/doc_00139911 [20:01:08]save last doc name /storage/0453/doc_00139911 to /storage/kkm_last_doc_name [20:01:08]save OK [20:01:08]Clear old archive folders... [20:01:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:08]tlvbuf is 00A03EF0 [20:01:08]SAM_PROTO_ClearQueue [20:01:08]wFMCommunicate request_size=4 [20:01:08]MH_SAM_APDU [20:01:08]CAPDU: 80 09 00 00 [20:01:08]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:08]Read from MH i2c: E2 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 03 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [20:01:08]RAPDU: 90 00 [20:01:08]wFMCommunicate OK [20:01:08]SAM_PROTO_ClearQueue done [20:01:08]KKMCreateOFDPacket [20:01:08]OFDProtocolAddRootSTLVToBuf [20:01:08]FM_MakeSignedData [20:01:08]FM_MakeSignedData [20:01:08]SAM_PROTO_SignData [20:01:08]wFMCommunicate request_size=4 [20:01:08]MH_SAM_APDU [20:01:08]CAPDU: 80 0D 01 02 [20:01:08]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:08]Read from MH i2c: E2 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 03 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [20:01:08]RAPDU: 90 00 [20:01:08]wFMCommunicate OK [20:01:08]wFMCommunicate request_size=255 [20:01:08]MH_SAM_APDU [20: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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 03 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 22 02 00 35 04 06 00 C7 [20:01:08]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 03 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 22 02 00 35 04 06 00 C7 00 00 B8 [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:09]Read from MH i2c: E2 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 03 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [20:01:09]RAPDU: 90 00 [20:01:09]wFMCommunicate OK [20:01:09]wFMCommunicate request_size=10 [20:01:09]MH_SAM_APDU [20:01:09]CAPDU: 80 0D 02 02 05 D3 79 14 54 AD [20:01:09]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 D3 79 14 54 AD 00 00 DD [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:09]Read from MH i2c: E2 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 03 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [20:01:09]RAPDU: 90 00 [20:01:09]wFMCommunicate OK [20:01:09]wFMCommunicate request_size=4 [20:01:09]MH_SAM_APDU [20:01:09]CAPDU: 80 0D 03 02 [20:01:09]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:09]Read from MH i2c: E2 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 0B 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 0B 00 F9 00 00 3E 4C F7 2B 0D 41 E3 5D 90 00 AF [20:01:09]RAPDU: 3E 4C F7 2B 0D 41 E3 5D 90 00 [20:01:09]wFMCommunicate OK [20:01:09]SAM_PROTO_SignData done [20:01:09]FM_MakeSignedData done [20:01:09]CreateOFDProtocolMessage [20:01:09]wFMCommunicate request_size=4 [20:01:09]MH_SAM_APDU [20:01:09]CAPDU: 80 11 00 00 [20:01:09]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:09]Read from MH i2c: E2 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 17 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [20:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:01:09]wFMCommunicate OK [20:01:09]CreateOFDProtocolMessage done [20:01:09]OFDSenderStorePacket 139911 [20:01:09]StoreOFDPacket docnum=139911 [20:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4C B1 07 01 B7 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 03 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 22 02 00 35 04 06 00 C7 D3 79 14 54 AD 3E 4C F7 2B 0D 41 E3 5D [20:01:09]CheckFolder [20:01:09]dirname=/storage/ofd_packets [20:01:09]CheckFolder done [20:01:09]ProducePacketName [20:01:09]name=ofd_packets/00139911 [20:01:09]NVStorageSaveData ofd_packets/00139911 [20:01:09]File name is /storage/ofd_packets/00139911 [20:01:09]Write 301 bytes [20:01:09]NVStorageSaveData done [20:01:09]OFDSenderStorePacket done [20:01:09]KKMCreateOFDPacket done [20:01:09]NVStorageSaveData kkm_last_timestamp [20:01:09]File name is /storage/kkm_last_timestamp [20:01:09]Write 4 bytes [20:01:09]NVStorageSaveData done [20:01:09]ExternCall_PrintAddStr [20:01:09]wPrintStart [20:01:09]Write to MH i2c: 01 00 00 FB 00 FB [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: 01 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: 01 07 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [20:01:09]RasterBufferAndPrint [20:01:09]line Счет N : (1)593767 [20:01:09]line ИНН: 02508201610067 [20:01:09]line Контрольно-Кассовый Чек [20:01:09]line ПРОДАЖА [20:01:09]line ТРК (МРК, ГНК) : 62 [20:01:09]line Товар: 2710124130 [20:01:09]line Аи-92-К-5 [20:01:09]line 5.900 * 67.80 [20:01:09]line = 400.02 [20:01:09]line НДС 12% НСП 1% [20:01:09]line > о реализуемом товаре [20:01:09]line ОКРУГЛЕНИЕ: -0.02 [20:01:09]line ИТОГО: 400.00 [20:01:09]line Внесено: 400.00 [20:01:09]line СДАЧА: 0.00 [20:01:09]line НСП 1% : 3.54 [20:01:09]line НДС 12% : 42.48 [20:01:09]line Наличными: 400.00 [20:01:09]line Безнал.: 0.00 [20:01:09]line Место: АЗС № 136 "Партнер Нефть" [20:01:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:01:09]line СНО: Общий режим [20:01:09]line Чек 383 20.08.2024 20:01 [20:01:09]line Смена: 453 ФФД: 1.0 [20:01:09]line ЗНМ: 0300000067 [20:01:09]line РНМ: 0000000000092569 [20:01:09]line Версия ККМ: 001 [20:01:09]line ФМ: 0000000000871776 [20:01:09]line ФД: 139911 [20:01:09]line ФПД: 219711083402413 [20:01:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T200107&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139911&fm=219711083402413&tin=02508201610067®Number=0000000000092569&sum=40000 [20:01:09]OFD Sender: Processing packet 139911 [packets to send 137, broken 136] [20:01:09]ProducePacketName [20:01:09]name=ofd_packets/00139911 [20:01:09]OFD Sender: To server: pG, [20:01:09]CommunicateWithHost lk.salyk.kg:30040 [20:01:09]ConnectInit lk.salyk.kg [20:01:09]written 0, free lines is 4095 [20:01:09]Connected sock=10 [20:01:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4C B1 07 01 B7 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 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 03 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 22 02 00 35 04 06 00 C7 D3 79 14 54 AD 3E 4C F7 2B 0D 41 E3 5D [20:01:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E9 CA 47 00 2D 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 22 02 00 F4 03 04 00 96 9C C4 66 B6 04 01 00 00 D8 DF F2 F1 88 DD F4 81 [20:01:10]CommunicateWithHost err = 0 [20:01:10]CheckOFDResponse [20:01:10]1017 (14) - 77093643461234 [20:01:10]1041 (16) - 0000000000871776 [20:01:10]1040 (4) - 139911 [20:01:10]1012 (4) - 20.08.2024 13:39 [20:01:10]1206 (1) - 0 [20:01:10]OFD Sender: Remove packet 139911 [20:01:10]ProducePacketName [20:01:10]name=ofd_packets/00139911 [20:01:10]NVStorageDeleteData [20:01:10]Write to MH i2c: 01 00 00 26 01 27 [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: 01 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: 01 07 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 D2 0C 0C [20:01:10]RasterBufferAndPrint [20:01:10]line [20:01:10]line [20:01:10]line [20:01:10]line [20:01:10]line [20:01:10]written 0, free lines is 3288 [20:01:10]MH_Cut [20:01:10]Write to MH i2c: D1 01 00 2D 01 01 00 [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: D1 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: D1 01 00 [20:01:10]MH_I2C_Read... [20:01:10]Read from MH i2c: D1 01 00 2D 01 00 FF [20:01:10]Write to MH i2c: 01 00 00 2E 01 2F [20:01:10]Write i2c OK [20:01:10]MH_I2C_Read... [20:01:10]OFD Sender: No OFD packet to send [20:01:10]*** Cut start [20:01:10]*** Partial cut [20:01:10]*** CUTSNS_PIN = 1 [20:01:10]*** CUTSNS_PIN = 0 [20:01:10]*** Brake cut motor [20:01:11]Read from MH i2c: 01 [20:01:11]MH_I2C_Read... [20:01:11]*** Stop cut motor [20:01:11]*** Cut end [20:01:11]Read from MH i2c: 01 07 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [20:01:11]process_action close_receipt done [20:01:11]requested_data is exist [20:01:11]produce_requested_data [20:01:11]requested_item fm.sn is exist - process it [20:01:11]wFMCommunicate request_size=4 [20:01:11]MH_SAM_APDU [20:01:11]CAPDU: 80 11 00 00 [20:01:11]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [20:01:11]Write i2c OK [20:01:11]MH_I2C_Read... [20:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:11]Read from MH i2c: E2 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 17 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [20:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:01:11]wFMCommunicate OK [20:01:11]requested_item fd.num is exist - process it [20:01:11]SAM_PROTO_GetFieldsCounters [20:01:11]wFMCommunicate request_size=4 [20:01:11]MH_SAM_APDU [20:01:11]CAPDU: 80 13 00 00 [20:01:11]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [20:01:11]Write i2c OK [20:01:11]MH_I2C_Read... [20:01:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:11]Read from MH i2c: E2 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 62 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 22 02 00 0E 04 04 00 C5 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 C9 [20:01:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 22 02 00 0E 04 04 00 C5 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 [20:01:11]wFMCommunicate OK [20:01:11]SAM_PROTO_GetFieldsCounters done [20:01:11]requested_item shift.num is exist - process it [20:01:11]requested_item shift.opened is exist - process it [20:01:11]req_shift_opened [20:01:11]FM_GetShiftState [20:01:11]SAM_PROTO_GetShiftState [20:01:11]wFMCommunicate request_size=4 [20:01:11]MH_SAM_APDU [20:01:11]CAPDU: 80 13 01 00 [20:01:11]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [20:01:11]Write i2c OK [20:01:11]MH_I2C_Read... [20:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:11]Read from MH i2c: E2 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 0E 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 40 [20:01:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:01:11]wFMCommunicate OK [20:01:11]SAM_PROTO_GetShiftState done [20:01:11]FM_GetShiftState done [20:01:11]req_shift_opened done [20:01:11]requested_item shift.open_date is exist - process it [20:01:11]req_shift_open_date [20:01:11]req_shift_open_date done [20:01:11]produce_requested_data done [20:01:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139911,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:01:11]process_action_free close_receipt [20:01:11]json_value_free [20:01:11]json_value_free done [20:01:11]process_json_proto returns [20:01:11]Send response to host [20:01:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139911,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:01:11]free response buf [20:01:11]execute_script done [20:01:11]execute_script returns [20:01:11]free content buf [20:01:11]Sock 7.Close socket [20:01:11]Sock 7.Thread stoped [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:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:13]accept exits with 9 [20:02:13]New connection [20:02:13]New thread 3066908004 created [20:02:13]Thread 3066764644 joined [20:02:13]Waiting for new connection... [20:02:13] Sock 9.Parse request [20:02:13]Sock 9.Check first char [20:02:13]Sock 9.First char is OK [20:02:13]request: POST /json_proto HTTP/1.0 [20:02:13]Method: POST [20:02:13]URL: /json_proto [20:02:13]Method is POST - this is cgi request [20:02:13]url: /json_proto [20:02:13]query_string will be loaded in cgi processing [20:02:13]execute_cgi json_proto POST (null) [20:02:13]execute_cgi path=json_proto method=POST [20:02:13]POST find Content-Length [20:02:13]Host: 172.17.45.67:8080 [20:02:13]Content-Length: 682 [20:02:13]Content-Type: application/json [20:02:13] [20:02:13]POST finish read [20:02:13]Found Content-Length = 682 [20:02:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:13]execute_script... [20:02: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)593766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:13]POST & json_proto [20:02:13]process_json_proto [20:02:13]json parsed OK: [20:02:13]protocol is kg_v1.0 [20:02:13]action value=close_receipt [20:02:13]process_action close_receipt [20:02:13]cmd_close_receipt [20:02:13]MH_GetDate [20:02:13]Write to MH i2c: F0 00 00 32 01 22 [20:02:13]Write i2c OK [20:02:13]MH_I2C_Read... [20:02:13]Read from MH i2c: F0 [20:02:13]MH_I2C_Read... [20:02:13]Read from MH i2c: F0 09 00 [20:02:13]MH_I2C_Read... [20:02:13]Read from MH i2c: F0 09 00 32 01 00 45 F6 C4 66 5F 7F 2B 66 FF [20:02:13]GetLastDocTimeStamp 1724184067 [20:02:13]current date 1724184133 [20:02:13]FM_GetShiftState [20:02:13]SAM_PROTO_GetShiftState [20:02:13]wFMCommunicate request_size=4 [20:02:13]MH_SAM_APDU [20:02:13]CAPDU: 80 13 01 00 [20:02:13]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [20:02:13]Write i2c OK [20:02:13]MH_I2C_Read... [20:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:13]Read from MH i2c: E2 [20:02:13]MH_I2C_Read... [20:02:13]Read from MH i2c: E2 0E 00 [20:02:13]MH_I2C_Read... [20:02:13]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 42 [20:02:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:02:13]wFMCommunicate OK [20:02:13]SAM_PROTO_GetShiftState done [20:02:13]FM_GetShiftState done [20:02:13]opened in 1724113785 [20:02:13]opened+sec_in_day 1724200185 [20:02:13]quantity*price = 150041 [20:02:13]sum+1 = 150042 [20:02:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 384 20.08.2024 20:02 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139912 ФПД: 272974179004944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T200213&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139912&fm=272974179004944&tin=02508201610067®Number=0000000000092569&sum=150000 [20:02:14]StoreToDocumentArchive [20:02:14]shift 453 fd 139912 [20:02:14]save to /storage/0453/doc_00139912 [20:02:14]save last doc name /storage/0453/doc_00139912 to /storage/kkm_last_doc_name [20:02:14]save OK [20:02:14]Clear old archive folders... [20:02:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:02:14]tlvbuf is 00A1ACC0 [20:02:14]SAM_PROTO_ClearQueue [20:02:14]wFMCommunicate request_size=4 [20:02:14]MH_SAM_APDU [20:02:14]CAPDU: 80 09 00 00 [20:02:14]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:14]Read from MH i2c: E2 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [20:02:14]RAPDU: 90 00 [20:02:14]wFMCommunicate OK [20:02:14]SAM_PROTO_ClearQueue done [20:02:14]KKMCreateOFDPacket [20:02:14]OFDProtocolAddRootSTLVToBuf [20:02:14]FM_MakeSignedData [20:02:14]FM_MakeSignedData [20:02:14]SAM_PROTO_SignData [20:02:14]wFMCommunicate request_size=4 [20:02:14]MH_SAM_APDU [20:02:14]CAPDU: 80 0D 01 02 [20:02:14]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:14]Read from MH i2c: E2 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 [20:02:14]MH_I2C_Read... [20:02:14]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [20:02:14]RAPDU: 90 00 [20:02:14]wFMCommunicate OK [20:02:14]wFMCommunicate request_size=255 [20:02:14]MH_SAM_APDU [20:02:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 45 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 22 02 00 35 04 06 00 F8 [20:02:14]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 45 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 22 02 00 35 04 06 00 F8 00 00 09 [20:02:14]Write i2c OK [20:02:14]MH_I2C_Read... [20:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:15]Read from MH i2c: E2 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 03 00 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [20:02:15]RAPDU: 90 00 [20:02:15]wFMCommunicate OK [20:02:15]wFMCommunicate request_size=10 [20:02:15]MH_SAM_APDU [20:02:15]CAPDU: 80 0D 02 02 05 44 C0 F8 F2 10 [20:02:15]Write to MH i2c: E2 0D 00 43 01 80 0D 02 02 05 00 44 C0 F8 F2 10 00 00 C6 [20:02:15]Write i2c OK [20:02:15]MH_I2C_Read... [20:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:15]Read from MH i2c: E2 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 03 00 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [20:02:15]RAPDU: 90 00 [20:02:15]wFMCommunicate OK [20:02:15]wFMCommunicate request_size=4 [20:02:15]MH_SAM_APDU [20:02:15]CAPDU: 80 0D 03 02 [20:02:15]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [20:02:15]Write i2c OK [20:02:15]MH_I2C_Read... [20:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:15]Read from MH i2c: E2 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 0B 00 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 0B 00 44 01 00 03 AB DC 03 C9 BE 71 5E 90 00 A4 [20:02:15]RAPDU: 03 AB DC 03 C9 BE 71 5E 90 00 [20:02:15]wFMCommunicate OK [20:02:15]SAM_PROTO_SignData done [20:02:15]FM_MakeSignedData done [20:02:15]CreateOFDProtocolMessage [20:02:15]wFMCommunicate request_size=4 [20:02:15]MH_SAM_APDU [20:02:15]CAPDU: 80 11 00 00 [20:02:15]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [20:02:15]Write i2c OK [20:02:15]MH_I2C_Read... [20:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:15]Read from MH i2c: E2 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 17 00 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [20:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:02:15]wFMCommunicate OK [20:02:15]CreateOFDProtocolMessage done [20:02:15]OFDSenderStorePacket 139912 [20:02:15]StoreOFDPacket docnum=139912 [20:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0D 4D 07 01 C3 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 45 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 22 02 00 35 04 06 00 F8 44 C0 F8 F2 10 03 AB DC 03 C9 BE 71 5E [20:02:15]CheckFolder [20:02:15]dirname=/storage/ofd_packets [20:02:15]CheckFolder done [20:02:15]ProducePacketName [20:02:15]name=ofd_packets/00139912 [20:02:15]NVStorageSaveData ofd_packets/00139912 [20:02:15]File name is /storage/ofd_packets/00139912 [20:02:15]Write 301 bytes [20:02:15]NVStorageSaveData done [20:02:15]OFDSenderStorePacket done [20:02:15]KKMCreateOFDPacket done [20:02:15]NVStorageSaveData kkm_last_timestamp [20:02:15]File name is /storage/kkm_last_timestamp [20:02:15]Write 4 bytes [20:02:15]NVStorageSaveData done [20:02:15]ExternCall_PrintAddStr [20:02:15]wPrintStart [20:02:15]Write to MH i2c: 01 00 00 46 01 47 [20:02:15]Write i2c OK [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: 01 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: 01 07 00 [20:02:15]MH_I2C_Read... [20:02:15]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [20:02:15]RasterBufferAndPrint [20:02:15]line Счет N : (1)593766 [20:02:15]line ИНН: 02508201610067 [20:02:15]line Контрольно-Кассовый Чек [20:02:15]line ПРОДАЖА [20:02:15]line ТРК (МРК, ГНК) : 52 [20:02:15]line Товар: 2710124130 [20:02:15]line Аи-92-К-5 [20:02:15]line 22.130 * 67.80 [20:02:15]line = 1500.41 [20:02:15]line НДС 12% НСП 1% [20:02:15]line > о реализуемом товаре [20:02:15]line ОКРУГЛЕНИЕ: -0.41 [20:02:15]line ИТОГО: 1500.00 [20:02:15]line Внесено: 1500.00 [20:02:15]line СДАЧА: 0.00 [20:02:15]line НСП 1% : 13.28 [20:02:15]line НДС 12% : 159.34 [20:02:15]line Наличными: 1500.00 [20:02:15]line Безнал.: 0.00 [20:02:15]line Место: АЗС № 136 "Партнер Нефть" [20:02:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:02:15]line СНО: Общий режим [20:02:15]line Чек 384 20.08.2024 20:02 [20:02:15]line Смена: 453 ФФД: 1.0 [20:02:15]line ЗНМ: 0300000067 [20:02:15]line РНМ: 0000000000092569 [20:02:15]line Версия ККМ: 001 [20:02:15]line ФМ: 0000000000871776 [20:02:15]line ФД: 139912 [20:02:15]line ФПД: 272974179004944 [20:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T200213&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139912&fm=272974179004944&tin=02508201610067®Number=0000000000092569&sum=150000 [20:02:15]OFD Sender: Processing packet 139912 [packets to send 137, broken 136] [20:02:15]ProducePacketName [20:02:15]name=ofd_packets/00139912 [20:02:15]OFD Sender: To server: pG, [20:02:15]CommunicateWithHost lk.salyk.kg:30040 [20:02:15]ConnectInit lk.salyk.kg [20:02:15]written 0, free lines is 4095 [20:02:15]Connected sock=10 [20:02:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0D 4D 07 01 C3 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 45 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 22 02 00 35 04 06 00 F8 44 C0 F8 F2 10 03 AB DC 03 C9 BE 71 5E [20:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 97 E1 47 00 D9 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 22 02 00 F4 03 04 00 D8 9C C4 66 B6 04 01 00 00 F8 2B 46 C3 5C 48 D8 A6 [20:02:16]CommunicateWithHost err = 0 [20:02:16]CheckOFDResponse [20:02:16]1017 (14) - 77093643461234 [20:02:16]1041 (16) - 0000000000871776 [20:02:16]1040 (4) - 139912 [20:02:16]1012 (4) - 20.08.2024 13:40 [20:02:16]1206 (1) - 0 [20:02:16]OFD Sender: Remove packet 139912 [20:02:16]ProducePacketName [20:02:16]name=ofd_packets/00139912 [20:02:16]NVStorageDeleteData [20:02:16]Write to MH i2c: 01 00 00 71 01 72 [20:02:16]Write i2c OK [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: 01 [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: 01 07 00 [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 D4 0C 59 [20:02:16]RasterBufferAndPrint [20:02:16]line [20:02:16]line [20:02:16]line [20:02:16]line [20:02:16]line [20:02:16]written 0, free lines is 3289 [20:02:16]MH_Cut [20:02:16]Write to MH i2c: D1 01 00 78 01 01 4B [20:02:16]Write i2c OK [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: D1 [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: D1 01 00 [20:02:16]MH_I2C_Read... [20:02:16]Read from MH i2c: D1 01 00 78 01 00 4A [20:02:16]Write to MH i2c: 01 00 00 79 01 7A [20:02:16]Write i2c OK [20:02:16]MH_I2C_Read... [20:02:16]OFD Sender: No OFD packet to send [20:02:16]*** Cut start [20:02:16]*** Partial cut [20:02:16]*** CUTSNS_PIN = 1 [20:02:16]*** CUTSNS_PIN = 0 [20:02:16]*** Brake cut motor [20:02:17]Read from MH i2c: 01 [20:02:17]MH_I2C_Read... [20:02:17]*** Stop cut motor [20:02:17]*** Cut end [20:02:17]Read from MH i2c: 01 07 00 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 FF 0F 8F [20:02:17]process_action close_receipt done [20:02:17]requested_data is exist [20:02:17]produce_requested_data [20:02:17]requested_item fm.sn is exist - process it [20:02:17]wFMCommunicate request_size=4 [20:02:17]MH_SAM_APDU [20:02:17]CAPDU: 80 11 00 00 [20:02:17]Write to MH i2c: E2 08 00 7A 01 80 11 00 00 00 00 00 00 F5 [20:02:17]Write i2c OK [20:02:17]MH_I2C_Read... [20:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:17]Read from MH i2c: E2 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 17 00 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 17 00 7A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [20:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:02:17]wFMCommunicate OK [20:02:17]requested_item fd.num is exist - process it [20:02:17]SAM_PROTO_GetFieldsCounters [20:02:17]wFMCommunicate request_size=4 [20:02:17]MH_SAM_APDU [20:02:17]CAPDU: 80 13 00 00 [20:02:17]Write to MH i2c: E2 08 00 7B 01 80 13 00 00 00 00 00 00 F8 [20:02:17]Write i2c OK [20:02:17]MH_I2C_Read... [20:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:17]Read from MH i2c: E2 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 62 00 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 62 00 7B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 22 02 00 0E 04 04 00 C5 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 18 [20:02:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 22 02 00 0E 04 04 00 C5 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 [20:02:17]wFMCommunicate OK [20:02:17]SAM_PROTO_GetFieldsCounters done [20:02:17]requested_item shift.num is exist - process it [20:02:17]requested_item shift.opened is exist - process it [20:02:17]req_shift_opened [20:02:17]FM_GetShiftState [20:02:17]SAM_PROTO_GetShiftState [20:02:17]wFMCommunicate request_size=4 [20:02:17]MH_SAM_APDU [20:02:17]CAPDU: 80 13 01 00 [20:02:17]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [20:02:17]Write i2c OK [20:02:17]MH_I2C_Read... [20:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:17]Read from MH i2c: E2 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 0E 00 [20:02:17]MH_I2C_Read... [20:02:17]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8B [20:02:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:02:17]wFMCommunicate OK [20:02:17]SAM_PROTO_GetShiftState done [20:02:17]FM_GetShiftState done [20:02:17]req_shift_opened done [20:02:17]requested_item shift.open_date is exist - process it [20:02:17]req_shift_open_date [20:02:17]req_shift_open_date done [20:02:17]produce_requested_data done [20:02:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139912,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:02:17]process_action_free close_receipt [20:02:17]json_value_free [20:02:17]json_value_free done [20:02:17]process_json_proto returns [20:02:17]Send response to host [20:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139912,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:02:17]free response buf [20:02:17]execute_script done [20:02:17]execute_script returns [20:02:17]free content buf [20:02:17]Sock 9.Close socket [20:02:17]Sock 9.Thread stoped [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:02:57]accept exits with 7 [20:02:57]New connection [20:02:57]New thread 3066764644 created [20:02:57]Thread 3066908004 joined [20:02:57]Waiting for new connection... [20:02:57] Sock 7.Parse request [20:02:57]Sock 7.Check first char [20:02:57]Sock 7.First char is OK [20:02:57]request: POST /json_proto HTTP/1.0 [20:02:57]Method: POST [20:02:57]URL: /json_proto [20:02:57]Method is POST - this is cgi request [20:02:57]url: /json_proto [20:02:57]query_string will be loaded in cgi processing [20:02:57]execute_cgi json_proto POST (null) [20:02:57]execute_cgi path=json_proto method=POST [20:02:57]POST find Content-Length [20:02:57]Host: 172.17.45.67:8080 [20:02:57]Content-Length: 677 [20:02:57]Content-Type: application/json [20:02:57] [20:02:57]POST finish read [20:02:57]Found Content-Length = 677 [20:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:57]execute_script... [20:02:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:57]POST & json_proto [20:02:57]process_json_proto [20:02:57]json parsed OK: [20:02:57]protocol is kg_v1.0 [20:02:57]action value=close_receipt [20:02:57]process_action close_receipt [20:02:57]cmd_close_receipt [20:02:57]MH_GetDate [20:02:57]Write to MH i2c: F0 00 00 7D 01 6D [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: F0 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: F0 09 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: F0 09 00 7D 01 00 71 F6 C4 66 5F 7F 2B 66 76 [20:02:57]GetLastDocTimeStamp 1724184133 [20:02:57]current date 1724184177 [20:02:57]FM_GetShiftState [20:02:57]SAM_PROTO_GetShiftState [20:02:57]wFMCommunicate request_size=4 [20:02:57]MH_SAM_APDU [20:02:57]CAPDU: 80 13 01 00 [20:02:57]Write to MH i2c: E2 08 00 7E 01 80 13 01 00 00 00 00 00 FC [20:02:57]Write i2c OK [20:02:57]MH_I2C_Read... [20:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:57]Read from MH i2c: E2 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 0E 00 [20:02:57]MH_I2C_Read... [20:02:57]Read from MH i2c: E2 0E 00 7E 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8D [20:02:57]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:02:57]wFMCommunicate OK [20:02:57]SAM_PROTO_GetShiftState done [20:02:57]FM_GetShiftState done [20:02:57]opened in 1724113785 [20:02:57]opened+sec_in_day 1724200185 [20:02:57]quantity*price = 30035 [20:02:57]sum+1 = 30036 [20:02:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 385 20.08.2024 20:02 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139913 ФПД: 117172458420680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T200257&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139913&fm=117172458420680&tin=02508201610067®Number=0000000000092569&sum=30000 [20:02:58]StoreToDocumentArchive [20:02:58]shift 453 fd 139913 [20:02:58]save to /storage/0453/doc_00139913 [20:02:58]save last doc name /storage/0453/doc_00139913 to /storage/kkm_last_doc_name [20:02:58]save OK [20:02:58]Clear old archive folders... [20:02:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:02:58]tlvbuf is 00A1EA60 [20:02:58]SAM_PROTO_ClearQueue [20:02:58]wFMCommunicate request_size=4 [20:02:58]MH_SAM_APDU [20:02:58]CAPDU: 80 09 00 00 [20:02:58]Write to MH i2c: E2 08 00 8B 01 80 09 00 00 00 00 00 00 FE [20:02:58]Write i2c OK [20:02:58]MH_I2C_Read... [20:02:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:58]Read from MH i2c: E2 [20:02:58]MH_I2C_Read... [20:02:58]Read from MH i2c: E2 03 00 [20:02:58]MH_I2C_Read... [20:02:58]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [20:02:58]RAPDU: 90 00 [20:02:58]wFMCommunicate OK [20:02:58]SAM_PROTO_ClearQueue done [20:02:58]KKMCreateOFDPacket [20:02:58]OFDProtocolAddRootSTLVToBuf [20:02:58]FM_MakeSignedData [20:02:58]FM_MakeSignedData [20:02:58]SAM_PROTO_SignData [20:02:58]wFMCommunicate request_size=4 [20:02:58]MH_SAM_APDU [20:02:58]CAPDU: 80 0D 01 02 [20:02:58]Write to MH i2c: E2 08 00 8C 01 80 0D 01 02 00 00 00 00 06 [20:02:58]Write i2c OK [20:02:58]MH_I2C_Read... [20:02:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:58]Read from MH i2c: E2 [20:02:58]MH_I2C_Read... [20:02:58]Read from MH i2c: E2 03 00 [20:02:58]MH_I2C_Read... [20:02:58]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [20:02:58]RAPDU: 90 00 [20:02:58]wFMCommunicate OK [20:02:58]wFMCommunicate request_size=255 [20:02:58]MH_SAM_APDU [20:02:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 81 01 00 00 F4 03 04 00 71 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 22 02 00 35 04 06 00 6A [20:02:58]Write to MH i2c: E2 02 01 8D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 71 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 22 02 00 35 04 06 00 6A 00 00 9E [20:02:58]Write i2c OK [20:02:58]MH_I2C_Read... [20:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:58]Read from MH i2c: E2 [20:02:58]MH_I2C_Read... [20:02:58]Read from MH i2c: E2 03 00 [20:02:58]MH_I2C_Read... [20:02:58]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [20:02:58]RAPDU: 90 00 [20:02:58]wFMCommunicate OK [20:02:58]wFMCommunicate request_size=10 [20:02:58]MH_SAM_APDU [20:02:58]CAPDU: 80 0D 02 02 05 91 56 C2 F9 C8 [20:02:58]Write to MH i2c: E2 0D 00 8E 01 80 0D 02 02 05 00 91 56 C2 F9 C8 00 00 7D [20:02:58]Write i2c OK [20:02:58]MH_I2C_Read... [20:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:59]Read from MH i2c: E2 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 03 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [20:02:59]RAPDU: 90 00 [20:02:59]wFMCommunicate OK [20:02:59]wFMCommunicate request_size=4 [20:02:59]MH_SAM_APDU [20:02:59]CAPDU: 80 0D 03 02 [20:02:59]Write to MH i2c: E2 08 00 8F 01 80 0D 03 02 00 00 00 00 0B [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:59]Read from MH i2c: E2 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 0B 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 0B 00 8F 01 00 EF D3 F3 8D 82 8C 53 18 90 00 C7 [20:02:59]RAPDU: EF D3 F3 8D 82 8C 53 18 90 00 [20:02:59]wFMCommunicate OK [20:02:59]SAM_PROTO_SignData done [20:02:59]FM_MakeSignedData done [20:02:59]CreateOFDProtocolMessage [20:02:59]wFMCommunicate request_size=4 [20:02:59]MH_SAM_APDU [20:02:59]CAPDU: 80 11 00 00 [20:02:59]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:59]Read from MH i2c: E2 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 17 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [20:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:02:59]wFMCommunicate OK [20:02:59]CreateOFDProtocolMessage done [20:02:59]OFDSenderStorePacket 139913 [20:02:59]StoreOFDPacket docnum=139913 [20:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6E 30 07 01 D4 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 71 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 22 02 00 35 04 06 00 6A 91 56 C2 F9 C8 EF D3 F3 8D 82 8C 53 18 [20:02:59]CheckFolder [20:02:59]dirname=/storage/ofd_packets [20:02:59]CheckFolder done [20:02:59]ProducePacketName [20:02:59]name=ofd_packets/00139913 [20:02:59]NVStorageSaveData ofd_packets/00139913 [20:02:59]File name is /storage/ofd_packets/00139913 [20:02:59]Write 301 bytes [20:02:59]NVStorageSaveData done [20:02:59]OFDSenderStorePacket done [20:02:59]KKMCreateOFDPacket done [20:02:59]NVStorageSaveData kkm_last_timestamp [20:02:59]File name is /storage/kkm_last_timestamp [20:02:59]Write 4 bytes [20:02:59]NVStorageSaveData done [20:02:59]OFD Sender: Processing packet 139913 [packets to send 137, broken 136] [20:02:59]ProducePacketName [20:02:59]name=ofd_packets/00139913 [20:02:59]OFD Sender: To server: pG, [20:02:59]CommunicateWithHost lk.salyk.kg:30040 [20:02:59]ConnectInit lk.salyk.kg [20:02:59]ExternCall_PrintAddStr [20:02:59]wPrintStart [20:02:59]Write to MH i2c: 01 00 00 91 01 92 [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: 01 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: 01 07 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 FF 0F A7 [20:02:59]RasterBufferAndPrint [20:02:59]line Счет N : (1)593768 [20:02:59]line ИНН: 02508201610067 [20:02:59]line Контрольно-Кассовый Чек [20:02:59]line ПРОДАЖА [20:02:59]line ТРК (МРК, ГНК) : 32 [20:02:59]line Товар: 2710124130 [20:02:59]line Аи-92-К-5 [20:02:59]line 4.430 * 67.80 [20:02:59]line = 300.35 [20:02:59]line НДС 12% НСП 1% [20:02:59]line > о реализуемом товаре [20:02:59]line ОКРУГЛЕНИЕ: -0.35 [20:02:59]line ИТОГО: 300.00 [20:02:59]line Внесено: 300.00 [20:02:59]line СДАЧА: 0.00 [20:02:59]line НСП 1% : 2.66 [20:02:59]line НДС 12% : 31.90 [20:02:59]line Наличными: 300.00 [20:02:59]line Безнал.: 0.00 [20:02:59]line Место: АЗС № 136 "Партнер Нефть" [20:02:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:02:59]line СНО: Общий режим [20:02:59]line Чек 385 20.08.2024 20:02 [20:02:59]line Смена: 453 ФФД: 1.0 [20:02:59]line ЗНМ: 0300000067 [20:02:59]line РНМ: 0000000000092569 [20:02:59]line Версия ККМ: 001 [20:02:59]line ФМ: 0000000000871776 [20:02:59]line ФД: 139913 [20:02:59]line ФПД: 117172458420680 [20:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T200257&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139913&fm=117172458420680&tin=02508201610067®Number=0000000000092569&sum=30000 [20:02:59]Connected sock=11 [20:02:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6E 30 07 01 D4 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 71 F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 22 02 00 35 04 06 00 6A 91 56 C2 F9 C8 EF D3 F3 8D 82 8C 53 18 [20:02:59]written 0, free lines is 4095 [20:02:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8F 47 47 00 D5 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 22 02 00 F4 03 04 00 04 9D C4 66 B6 04 01 00 00 64 4F A1 79 AB A7 DD E9 [20:02:59]CommunicateWithHost err = 0 [20:02:59]CheckOFDResponse [20:02:59]1017 (14) - 77093643461234 [20:02:59]1041 (16) - 0000000000871776 [20:02:59]1040 (4) - 139913 [20:02:59]1012 (4) - 20.08.2024 13:41 [20:02:59]1206 (1) - 0 [20:02:59]OFD Sender: Remove packet 139913 [20:02:59]ProducePacketName [20:02:59]name=ofd_packets/00139913 [20:02:59]NVStorageDeleteData [20:02:59]Write to MH i2c: 01 00 00 BC 01 BD [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: 01 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: 01 07 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 D5 0C A5 [20:02:59]RasterBufferAndPrint [20:02:59]line [20:02:59]line [20:02:59]line [20:02:59]line [20:02:59]line [20:02:59]written 0, free lines is 3294 [20:02:59]MH_Cut [20:02:59]Write to MH i2c: D1 01 00 C3 01 01 96 [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: D1 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: D1 01 00 [20:02:59]MH_I2C_Read... [20:02:59]Read from MH i2c: D1 01 00 C3 01 00 95 [20:02:59]Write to MH i2c: 01 00 00 C4 01 C5 [20:02:59]Write i2c OK [20:02:59]MH_I2C_Read... [20:03:00]OFD Sender: No OFD packet to send [20:03:00]*** Cut start [20:03:00]*** Partial cut [20:03:00]*** CUTSNS_PIN = 1 [20:03:00]*** CUTSNS_PIN = 0 [20:03:00]*** Brake cut motor [20:03:01]Read from MH i2c: 01 [20:03:01]MH_I2C_Read... [20:03:01]*** Stop cut motor [20:03:01]*** Cut end [20:03:01]Read from MH i2c: 01 07 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [20:03:01]process_action close_receipt done [20:03:01]requested_data is exist [20:03:01]produce_requested_data [20:03:01]requested_item fm.sn is exist - process it [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 11 00 00 [20:03:01]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 17 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [20:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:03:01]wFMCommunicate OK [20:03:01]requested_item fd.num is exist - process it [20:03:01]SAM_PROTO_GetFieldsCounters [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 13 00 00 [20:03:01]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 62 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 62 00 C6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 22 02 00 0E 04 04 00 C5 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 67 [20:03:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 22 02 00 0E 04 04 00 C5 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 [20:03:01]wFMCommunicate OK [20:03:01]SAM_PROTO_GetFieldsCounters done [20:03:01]requested_item shift.num is exist - process it [20:03:01]requested_item shift.opened is exist - process it [20:03:01]req_shift_opened [20:03:01]FM_GetShiftState [20:03:01]SAM_PROTO_GetShiftState [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 13 01 00 [20:03:01]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0E 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D6 [20:03:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:03:01]wFMCommunicate OK [20:03:01]SAM_PROTO_GetShiftState done [20:03:01]FM_GetShiftState done [20:03:01]req_shift_opened done [20:03:01]requested_item shift.open_date is exist - process it [20:03:01]req_shift_open_date [20:03:01]req_shift_open_date done [20:03:01]produce_requested_data done [20:03:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139913,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:03:01]process_action_free close_receipt [20:03:01]json_value_free [20:03:01]json_value_free done [20:03:01]process_json_proto returns [20:03:01]Send response to host [20:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139913,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:03:01]free response buf [20:03:01]execute_script done [20:03:01]execute_script returns [20:03:01]free content buf [20:03:01]Sock 7.Close socket [20:03:01]Sock 7.Thread stoped [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:01]accept exits with 9 [20:05:01]New connection [20:05:01]New thread 3066908004 created [20:05:01]Thread 3066764644 joined [20:05:01]Waiting for new connection... [20:05:01] Sock 9.Parse request [20:05:01]Sock 9.Check first char [20:05:01]Sock 9.First char is OK [20:05:01]request: POST /json_proto HTTP/1.0 [20:05:01]Method: POST [20:05:01]URL: /json_proto [20:05:01]Method is POST - this is cgi request [20:05:01]url: /json_proto [20:05:01]query_string will be loaded in cgi processing [20:05:01]execute_cgi json_proto POST (null) [20:05:01]execute_cgi path=json_proto method=POST [20:05:01]POST find Content-Length [20:05:01]Host: 172.17.45.67:8080 [20:05:01]Content-Length: 682 [20:05:01]Content-Type: application/json [20:05:01] [20:05:01]POST finish read [20:05:01]Found Content-Length = 682 [20:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.030, "sum" : 1560.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1560.00, "total" : 1560.00, "payments": [ { "type": 0, "sum" : 1560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:01]execute_script... [20:05: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)593769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 21.030, "sum" : 1560.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1560.00, "total" : 1560.00, "payments": [ { "type": 0, "sum" : 1560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:01]POST & json_proto [20:05:01]process_json_proto [20:05:01]json parsed OK: [20:05:01]protocol is kg_v1.0 [20:05:01]action value=close_receipt [20:05:01]process_action close_receipt [20:05:01]cmd_close_receipt [20:05:01]MH_GetDate [20:05:01]Write to MH i2c: F0 00 00 C8 01 B8 [20:05:01]Write i2c OK [20:05:01]MH_I2C_Read... [20:05:01]Read from MH i2c: F0 [20:05:01]MH_I2C_Read... [20:05:01]Read from MH i2c: F0 09 00 [20:05:01]MH_I2C_Read... [20:05:01]Read from MH i2c: F0 09 00 C8 01 00 EE F6 C4 66 5F 7F 2B 66 3E [20:05:01]GetLastDocTimeStamp 1724184177 [20:05:01]current date 1724184302 [20:05:01]FM_GetShiftState [20:05:01]SAM_PROTO_GetShiftState [20:05:01]wFMCommunicate request_size=4 [20:05:01]MH_SAM_APDU [20:05:01]CAPDU: 80 13 01 00 [20:05:01]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [20:05:01]Write i2c OK [20:05:01]MH_I2C_Read... [20:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:01]Read from MH i2c: E2 [20:05:01]MH_I2C_Read... [20:05:01]Read from MH i2c: E2 0E 00 [20:05:01]MH_I2C_Read... [20:05:01]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D8 [20:05:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:05:01]wFMCommunicate OK [20:05:01]SAM_PROTO_GetShiftState done [20:05:01]FM_GetShiftState done [20:05:01]opened in 1724113785 [20:05:01]opened+sec_in_day 1724200185 [20:05:01]quantity*price = 156042 [20:05:01]sum+1 = 156044 [20:05:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1560.00 Внесено: 1560.00 СДАЧА: 0.00 НСП 1% : 13.81 НДС 12% : 165.71 Наличными: 1560.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 386 20.08.2024 20:05 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139914 ФПД: 175876474174591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T200502&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139914&fm=175876474174591&tin=02508201610067®Number=0000000000092569&sum=156000 [20:05:03]StoreToDocumentArchive [20:05:03]shift 453 fd 139914 [20:05:03]save to /storage/0453/doc_00139914 [20:05:03]save last doc name /storage/0453/doc_00139914 to /storage/kkm_last_doc_name [20:05:03]save OK [20:05:03]Clear old archive folders... [20:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:03]tlvbuf is 00A04E20 [20:05:03]SAM_PROTO_ClearQueue [20:05:03]wFMCommunicate request_size=4 [20:05:03]MH_SAM_APDU [20:05:03]CAPDU: 80 09 00 00 [20:05:03]Write to MH i2c: E2 08 00 D6 01 80 09 00 00 00 00 00 00 49 [20:05:03]Write i2c OK [20:05:03]MH_I2C_Read... [20:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:03]Read from MH i2c: E2 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 03 00 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [20:05:03]RAPDU: 90 00 [20:05:03]wFMCommunicate OK [20:05:03]SAM_PROTO_ClearQueue done [20:05:03]KKMCreateOFDPacket [20:05:03]OFDProtocolAddRootSTLVToBuf [20:05:03]FM_MakeSignedData [20:05:03]FM_MakeSignedData [20:05:03]SAM_PROTO_SignData [20:05:03]wFMCommunicate request_size=4 [20:05:03]MH_SAM_APDU [20:05:03]CAPDU: 80 0D 01 02 [20:05:03]Write to MH i2c: E2 08 00 D7 01 80 0D 01 02 00 00 00 00 51 [20:05:03]Write i2c OK [20:05:03]MH_I2C_Read... [20:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:03]Read from MH i2c: E2 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 03 00 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [20:05:03]RAPDU: 90 00 [20:05:03]wFMCommunicate OK [20:05:03]wFMCommunicate request_size=255 [20:05:03]MH_SAM_APDU [20:05:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 52 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 61 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 40 00 00 00 00 07 04 06 00 60 61 02 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 EE F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 22 02 00 35 04 06 00 9F [20:05:03]Write to MH i2c: E2 02 01 D8 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 52 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 61 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 40 00 00 00 00 07 04 06 00 60 61 02 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 EE F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 22 02 00 35 04 06 00 9F 00 00 76 [20:05:03]Write i2c OK [20:05:03]MH_I2C_Read... [20:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:03]Read from MH i2c: E2 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 03 00 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [20:05:03]RAPDU: 90 00 [20:05:03]wFMCommunicate OK [20:05:03]wFMCommunicate request_size=10 [20:05:03]MH_SAM_APDU [20:05:03]CAPDU: 80 0D 02 02 05 F5 6E C4 7C 7F [20:05:03]Write to MH i2c: E2 0D 00 D9 01 80 0D 02 02 05 00 F5 6E C4 7C 7F 00 00 80 [20:05:03]Write i2c OK [20:05:03]MH_I2C_Read... [20:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:03]Read from MH i2c: E2 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 03 00 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [20:05:03]RAPDU: 90 00 [20:05:03]wFMCommunicate OK [20:05:03]wFMCommunicate request_size=4 [20:05:03]MH_SAM_APDU [20:05:03]CAPDU: 80 0D 03 02 [20:05:03]Write to MH i2c: E2 08 00 DA 01 80 0D 03 02 00 00 00 00 56 [20:05:03]Write i2c OK [20:05:03]MH_I2C_Read... [20:05:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:03]Read from MH i2c: E2 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 0B 00 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 0B 00 DA 01 00 FA 7D 83 4C 3D 85 6B 11 90 00 DB [20:05:03]RAPDU: FA 7D 83 4C 3D 85 6B 11 90 00 [20:05:03]wFMCommunicate OK [20:05:03]SAM_PROTO_SignData done [20:05:03]FM_MakeSignedData done [20:05:03]CreateOFDProtocolMessage [20:05:03]wFMCommunicate request_size=4 [20:05:03]MH_SAM_APDU [20:05:03]CAPDU: 80 11 00 00 [20:05:03]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [20:05:03]Write i2c OK [20:05:03]MH_I2C_Read... [20:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:03]Read from MH i2c: E2 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 17 00 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AD [20:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:05:03]wFMCommunicate OK [20:05:03]CreateOFDProtocolMessage done [20:05:03]OFDSenderStorePacket 139914 [20:05:03]StoreOFDPacket docnum=139914 [20:05:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 00 D0 07 01 5B B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 52 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 61 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 40 00 00 00 00 07 04 06 00 60 61 02 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 EE F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 22 02 00 35 04 06 00 9F F5 6E C4 7C 7F FA 7D 83 4C 3D 85 6B 11 [20:05:03]CheckFolder [20:05:03]dirname=/storage/ofd_packets [20:05:03]CheckFolder done [20:05:03]ProducePacketName [20:05:03]name=ofd_packets/00139914 [20:05:03]NVStorageSaveData ofd_packets/00139914 [20:05:03]File name is /storage/ofd_packets/00139914 [20:05:03]Write 301 bytes [20:05:03]NVStorageSaveData done [20:05:03]OFDSenderStorePacket done [20:05:03]KKMCreateOFDPacket done [20:05:03]NVStorageSaveData kkm_last_timestamp [20:05:03]File name is /storage/kkm_last_timestamp [20:05:03]Write 4 bytes [20:05:03]NVStorageSaveData done [20:05:03]ExternCall_PrintAddStr [20:05:03]wPrintStart [20:05:03]Write to MH i2c: 01 00 00 DC 01 DD [20:05:03]Write i2c OK [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: 01 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: 01 07 00 [20:05:03]MH_I2C_Read... [20:05:03]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 FF 0F F2 [20:05:03]RasterBufferAndPrint [20:05:03]line Счет N : (1)593769 [20:05:03]line ИНН: 02508201610067 [20:05:03]line Контрольно-Кассовый Чек [20:05:03]line ПРОДАЖА [20:05:03]line ТРК (МРК, ГНК) : 61 [20:05:03]line Товар: 2710124500 [20:05:03]line Аи-95-К-5 [20:05:03]line 21.030 * 74.20 [20:05:03]line = 1560.43 [20:05:03]line НДС 12% НСП 1% [20:05:03]line > о реализуемом товаре [20:05:03]line ОКРУГЛЕНИЕ: -0.43 [20:05:03]line ИТОГО: 1560.00 [20:05:03]line Внесено: 1560.00 [20:05:03]line СДАЧА: 0.00 [20:05:03]line НСП 1% : 13.81 [20:05:03]line НДС 12% : 165.71 [20:05:03]line Наличными: 1560.00 [20:05:03]line Безнал.: 0.00 [20:05:03]line Место: АЗС № 136 "Партнер Нефть" [20:05:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:05:03]line СНО: Общий режим [20:05:03]line Чек 386 20.08.2024 20:05 [20:05:03]line Смена: 453 ФФД: 1.0 [20:05:03]line ЗНМ: 0300000067 [20:05:03]line РНМ: 0000000000092569 [20:05:03]line Версия ККМ: 001 [20:05:03]line ФМ: 0000000000871776 [20:05:03]line ФД: 139914 [20:05:03]line ФПД: 175876474174591 [20:05:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T200502&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139914&fm=175876474174591&tin=02508201610067®Number=0000000000092569&sum=156000 [20:05:03]OFD Sender: Processing packet 139914 [packets to send 137, broken 136] [20:05:03]ProducePacketName [20:05:03]name=ofd_packets/00139914 [20:05:03]OFD Sender: To server: pG, [20:05:03]CommunicateWithHost lk.salyk.kg:30040 [20:05:03]ConnectInit lk.salyk.kg [20:05:03]written 0, free lines is 4095 [20:05:04]Connected sock=10 [20:05:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 00 D0 07 01 5B B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 52 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8B 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 61 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 40 00 00 00 00 07 04 06 00 60 61 02 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 EE F6 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 22 02 00 35 04 06 00 9F F5 6E C4 7C 7F FA 7D 83 4C 3D 85 6B 11 [20:05:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F0 E0 47 00 3F 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 22 02 00 F4 03 04 00 80 9D C4 66 B6 04 01 00 00 F5 46 FD 8F 8A AC 15 E7 [20:05:04]CommunicateWithHost err = 0 [20:05:04]CheckOFDResponse [20:05:04]1017 (14) - 77093643461234 [20:05:04]1041 (16) - 0000000000871776 [20:05:04]1040 (4) - 139914 [20:05:04]1012 (4) - 20.08.2024 13:43 [20:05:04]1206 (1) - 0 [20:05:04]OFD Sender: Remove packet 139914 [20:05:04]ProducePacketName [20:05:04]name=ofd_packets/00139914 [20:05:04]NVStorageDeleteData [20:05:04]Write to MH i2c: 01 00 00 07 02 09 [20:05:04]Write i2c OK [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: 01 [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: 01 07 00 [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 CF 0C EB [20:05:04]RasterBufferAndPrint [20:05:04]line [20:05:04]line [20:05:04]line [20:05:04]line [20:05:04]line [20:05:04]written 0, free lines is 3285 [20:05:04]MH_Cut [20:05:04]Write to MH i2c: D1 01 00 0E 02 01 E2 [20:05:04]Write i2c OK [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: D1 [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: D1 01 00 [20:05:04]MH_I2C_Read... [20:05:04]Read from MH i2c: D1 01 00 0E 02 00 E1 [20:05:04]Write to MH i2c: 01 00 00 0F 02 11 [20:05:04]Write i2c OK [20:05:04]MH_I2C_Read... [20:05:04]OFD Sender: No OFD packet to send [20:05:05]*** Cut start [20:05:05]*** Partial cut [20:05:05]*** CUTSNS_PIN = 1 [20:05:05]*** CUTSNS_PIN = 0 [20:05:05]*** Brake cut motor [20:05:05]Read from MH i2c: 01 [20:05:05]MH_I2C_Read... [20:05:05]*** Stop cut motor [20:05:05]*** Cut end [20:05:05]Read from MH i2c: 01 07 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 FF 0F 26 [20:05:05]process_action close_receipt done [20:05:05]requested_data is exist [20:05:05]produce_requested_data [20:05:05]requested_item fm.sn is exist - process it [20:05:05]wFMCommunicate request_size=4 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 11 00 00 [20:05:05]Write to MH i2c: E2 08 00 10 02 80 11 00 00 00 00 00 00 8C [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 17 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 17 00 10 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [20:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:05:05]wFMCommunicate OK [20:05:05]requested_item fd.num is exist - process it [20:05:05]SAM_PROTO_GetFieldsCounters [20:05:05]wFMCommunicate request_size=4 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 13 00 00 [20:05:05]Write to MH i2c: E2 08 00 11 02 80 13 00 00 00 00 00 00 8F [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 62 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 62 00 11 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 22 02 00 0E 04 04 00 C5 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 B7 [20:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 22 02 00 0E 04 04 00 C5 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 [20:05:05]wFMCommunicate OK [20:05:05]SAM_PROTO_GetFieldsCounters done [20:05:05]requested_item shift.num is exist - process it [20:05:05]requested_item shift.opened is exist - process it [20:05:05]req_shift_opened [20:05:05]FM_GetShiftState [20:05:05]SAM_PROTO_GetShiftState [20:05:05]wFMCommunicate request_size=4 [20:05:05]MH_SAM_APDU [20:05:05]CAPDU: 80 13 01 00 [20:05:05]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [20:05:05]Write i2c OK [20:05:05]MH_I2C_Read... [20:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:05]Read from MH i2c: E2 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 0E 00 [20:05:05]MH_I2C_Read... [20:05:05]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 22 [20:05:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:05:05]wFMCommunicate OK [20:05:05]SAM_PROTO_GetShiftState done [20:05:05]FM_GetShiftState done [20:05:05]req_shift_opened done [20:05:05]requested_item shift.open_date is exist - process it [20:05:05]req_shift_open_date [20:05:05]req_shift_open_date done [20:05:05]produce_requested_data done [20:05:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139914,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:05:05]process_action_free close_receipt [20:05:05]json_value_free [20:05:05]json_value_free done [20:05:05]process_json_proto returns [20:05:05]Send response to host [20:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139914,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:05:05]free response buf [20:05:05]execute_script done [20:05:05]execute_script returns [20:05:05]free content buf [20:05:05]Sock 9.Close socket [20:05:05]Sock 9.Thread stoped [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:08]accept exits with 7 [20:13:08]New connection [20:13:08]New thread 3066764644 created [20:13:08]Thread 3066908004 joined [20:13:08]Waiting for new connection... [20:13:08] Sock 7.Parse request [20:13:08]Sock 7.Check first char [20:13:08]Sock 7.First char is OK [20:13:08]request: POST /json_proto HTTP/1.0 [20:13:08]Method: POST [20:13:08]URL: /json_proto [20:13:08]Method is POST - this is cgi request [20:13:08]url: /json_proto [20:13:08]query_string will be loaded in cgi processing [20:13:08]execute_cgi json_proto POST (null) [20:13:08]execute_cgi path=json_proto method=POST [20:13:08]POST find Content-Length [20:13:08]Host: 172.17.45.67:8080 [20:13:08]Content-Length: 677 [20:13:08]Content-Type: application/json [20:13:08] [20:13:08]POST finish read [20:13:08]Found Content-Length = 677 [20:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:08]execute_script... [20:13: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)593770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:08]POST & json_proto [20:13:08]process_json_proto [20:13:08]json parsed OK: [20:13:08]protocol is kg_v1.0 [20:13:08]action value=close_receipt [20:13:08]process_action close_receipt [20:13:08]cmd_close_receipt [20:13:08]MH_GetDate [20:13:08]Write to MH i2c: F0 00 00 13 02 04 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: F0 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: F0 09 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: F0 09 00 13 02 00 D5 F8 C4 66 5F 7F 2B 66 73 [20:13:08]GetLastDocTimeStamp 1724184302 [20:13:08]current date 1724184789 [20:13:08]FM_GetShiftState [20:13:08]SAM_PROTO_GetShiftState [20:13:08]wFMCommunicate request_size=4 [20:13:08]MH_SAM_APDU [20:13:08]CAPDU: 80 13 01 00 [20:13:08]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:08]Read from MH i2c: E2 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 0E 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 24 [20:13:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:13:08]wFMCommunicate OK [20:13:08]SAM_PROTO_GetShiftState done [20:13:08]FM_GetShiftState done [20:13:08]opened in 1724113785 [20:13:08]opened+sec_in_day 1724200185 [20:13:08]quantity*price = 40002 [20:13:08]sum+1 = 40003 [20:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 387 20.08.2024 20:13 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139915 ФПД: 50007751337472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T201309&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139915&fm=50007751337472&tin=02508201610067®Number=0000000000092569&sum=40000 [20:13:10]StoreToDocumentArchive [20:13:10]shift 453 fd 139915 [20:13:10]save to /storage/0453/doc_00139915 [20:13:10]save last doc name /storage/0453/doc_00139915 to /storage/kkm_last_doc_name [20:13:10]save OK [20:13:10]Clear old archive folders... [20:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:10]tlvbuf is 00A15A50 [20:13:10]SAM_PROTO_ClearQueue [20:13:10]wFMCommunicate request_size=4 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 09 00 00 [20:13:10]Write to MH i2c: E2 08 00 21 02 80 09 00 00 00 00 00 00 95 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [20:13:10]RAPDU: 90 00 [20:13:10]wFMCommunicate OK [20:13:10]SAM_PROTO_ClearQueue done [20:13:10]KKMCreateOFDPacket [20:13:10]OFDProtocolAddRootSTLVToBuf [20:13:10]FM_MakeSignedData [20:13:10]FM_MakeSignedData [20:13:10]SAM_PROTO_SignData [20:13:10]wFMCommunicate request_size=4 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 0D 01 02 [20:13:10]Write to MH i2c: E2 08 00 22 02 80 0D 01 02 00 00 00 00 9D [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [20:13:10]RAPDU: 90 00 [20:13:10]wFMCommunicate OK [20:13:10]wFMCommunicate request_size=255 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 D5 F8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 22 02 00 35 04 06 00 2D [20:13:10]Write to MH i2c: E2 02 01 23 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 D5 F8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 22 02 00 35 04 06 00 2D 00 00 28 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [20:13:10]RAPDU: 90 00 [20:13:10]wFMCommunicate OK [20:13:10]wFMCommunicate request_size=10 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 0D 02 02 05 7B 56 41 26 00 [20:13:10]Write to MH i2c: E2 0D 00 24 02 80 0D 02 02 05 00 7B 56 41 26 00 00 00 E2 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [20:13:10]RAPDU: 90 00 [20:13:10]wFMCommunicate OK [20:13:10]wFMCommunicate request_size=4 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 0D 03 02 [20:13:10]Write to MH i2c: E2 08 00 25 02 80 0D 03 02 00 00 00 00 A2 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:10]OFD Sender: No OFD packet to send [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 0B 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 0B 00 25 02 00 12 97 C9 59 13 32 81 00 90 00 34 [20:13:10]RAPDU: 12 97 C9 59 13 32 81 00 90 00 [20:13:10]wFMCommunicate OK [20:13:10]SAM_PROTO_SignData done [20:13:10]FM_MakeSignedData done [20:13:10]CreateOFDProtocolMessage [20:13:10]wFMCommunicate request_size=4 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 11 00 00 [20:13:10]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 17 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [20:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:13:10]wFMCommunicate OK [20:13:10]CreateOFDProtocolMessage done [20:13:10]OFDSenderStorePacket 139915 [20:13:10]StoreOFDPacket docnum=139915 [20:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 62 6F 07 01 5D 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 D5 F8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 22 02 00 35 04 06 00 2D 7B 56 41 26 00 12 97 C9 59 13 32 81 00 [20:13:10]CheckFolder [20:13:10]dirname=/storage/ofd_packets [20:13:10]CheckFolder done [20:13:10]ProducePacketName [20:13:10]name=ofd_packets/00139915 [20:13:10]NVStorageSaveData ofd_packets/00139915 [20:13:10]File name is /storage/ofd_packets/00139915 [20:13:10]Write 301 bytes [20:13:10]NVStorageSaveData done [20:13:10]OFDSenderStorePacket done [20:13:10]KKMCreateOFDPacket done [20:13:10]NVStorageSaveData kkm_last_timestamp [20:13:10]File name is /storage/kkm_last_timestamp [20:13:10]Write 4 bytes [20:13:10]NVStorageSaveData done [20:13:10]ExternCall_PrintAddStr [20:13:10]wPrintStart [20:13:10]Write to MH i2c: 01 00 00 27 02 29 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 07 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 07 00 27 02 00 00 00 00 00 FF 0F 3E [20:13:10]RasterBufferAndPrint [20:13:10]line Счет N : (1)593770 [20:13:10]line ИНН: 02508201610067 [20:13:10]line Контрольно-Кассовый Чек [20:13:10]line ПРОДАЖА [20:13:10]line ТРК (МРК, ГНК) : 52 [20:13:10]line Товар: 2710124130 [20:13:10]line Аи-92-К-5 [20:13:10]line 5.900 * 67.80 [20:13:10]line = 400.02 [20:13:10]line НДС 12% НСП 1% [20:13:10]line > о реализуемом товаре [20:13:10]line ОКРУГЛЕНИЕ: -0.02 [20:13:10]line ИТОГО: 400.00 [20:13:10]line Внесено: 400.00 [20:13:10]line СДАЧА: 0.00 [20:13:10]line НСП 1% : 3.54 [20:13:10]line НДС 12% : 42.48 [20:13:10]line Наличными: 400.00 [20:13:10]line Безнал.: 0.00 [20:13:10]line Место: АЗС № 136 "Партнер Нефть" [20:13:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:13:10]line СНО: Общий режим [20:13:10]line Чек 387 20.08.2024 20:13 [20:13:10]line Смена: 453 ФФД: 1.0 [20:13:10]line ЗНМ: 0300000067 [20:13:10]line РНМ: 0000000000092569 [20:13:10]line Версия ККМ: 001 [20:13:10]line ФМ: 0000000000871776 [20:13:10]line ФД: 139915 [20:13:10]line ФПД: 50007751337472 [20:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T201309&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139915&fm=50007751337472&tin=02508201610067®Number=0000000000092569&sum=40000 [20:13:10]OFD Sender: Processing packet 139915 [packets to send 137, broken 136] [20:13:10]ProducePacketName [20:13:10]name=ofd_packets/00139915 [20:13:10]OFD Sender: To server: pG, [20:13:10]CommunicateWithHost lk.salyk.kg:30040 [20:13:10]ConnectInit lk.salyk.kg [20:13:10]written 0, free lines is 4095 [20:13:11]Connected sock=10 [20:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 62 6F 07 01 5D 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 D5 F8 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 22 02 00 35 04 06 00 2D 7B 56 41 26 00 12 97 C9 59 13 32 81 00 [20:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 86 D1 47 00 21 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 22 02 00 F4 03 04 00 67 9F C4 66 B6 04 01 00 00 9E 10 B4 74 6F 25 69 8C [20:13:11]CommunicateWithHost err = 0 [20:13:11]CheckOFDResponse [20:13:11]1017 (14) - 77093643461234 [20:13:11]1041 (16) - 0000000000871776 [20:13:11]1040 (4) - 139915 [20:13:11]1012 (4) - 20.08.2024 13:51 [20:13:11]1206 (1) - 0 [20:13:11]OFD Sender: Remove packet 139915 [20:13:11]ProducePacketName [20:13:11]name=ofd_packets/00139915 [20:13:11]NVStorageDeleteData [20:13:11]Write to MH i2c: 01 00 00 52 02 54 [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: 01 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: 01 07 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 CE 0C 35 [20:13:11]RasterBufferAndPrint [20:13:11]line [20:13:11]line [20:13:11]line [20:13:11]line [20:13:11]line [20:13:11]written 0, free lines is 3285 [20:13:11]MH_Cut [20:13:11]Write to MH i2c: D1 01 00 59 02 01 2D [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: D1 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: D1 01 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: D1 01 00 59 02 00 2C [20:13:11]Write to MH i2c: 01 00 00 5A 02 5C [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]OFD Sender: No OFD packet to send [20:13:12]*** Cut start [20:13:12]*** Partial cut [20:13:12]*** CUTSNS_PIN = 1 [20:13:12]*** CUTSNS_PIN = 0 [20:13:12]*** Brake cut motor [20:13:12]Read from MH i2c: 01 [20:13:12]MH_I2C_Read... [20:13:12]*** Stop cut motor [20:13:12]*** Cut end [20:13:12]Read from MH i2c: 01 07 00 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 FF 0F 71 [20:13:12]process_action close_receipt done [20:13:12]requested_data is exist [20:13:12]produce_requested_data [20:13:12]requested_item fm.sn is exist - process it [20:13:12]wFMCommunicate request_size=4 [20:13:12]MH_SAM_APDU [20:13:12]CAPDU: 80 11 00 00 [20:13:12]Write to MH i2c: E2 08 00 5B 02 80 11 00 00 00 00 00 00 D7 [20:13:12]Write i2c OK [20:13:12]MH_I2C_Read... [20:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:12]Read from MH i2c: E2 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 17 00 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 17 00 5B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [20:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:13:12]wFMCommunicate OK [20:13:12]requested_item fd.num is exist - process it [20:13:12]SAM_PROTO_GetFieldsCounters [20:13:12]wFMCommunicate request_size=4 [20:13:12]MH_SAM_APDU [20:13:12]CAPDU: 80 13 00 00 [20:13:12]Write to MH i2c: E2 08 00 5C 02 80 13 00 00 00 00 00 00 DA [20:13:12]Write i2c OK [20:13:12]MH_I2C_Read... [20:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:12]Read from MH i2c: E2 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 62 00 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 62 00 5C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 22 02 00 0E 04 04 00 C5 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 06 [20:13:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 22 02 00 0E 04 04 00 C5 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 [20:13:12]wFMCommunicate OK [20:13:12]SAM_PROTO_GetFieldsCounters done [20:13:12]requested_item shift.num is exist - process it [20:13:12]requested_item shift.opened is exist - process it [20:13:12]req_shift_opened [20:13:12]FM_GetShiftState [20:13:12]SAM_PROTO_GetShiftState [20:13:12]wFMCommunicate request_size=4 [20:13:12]MH_SAM_APDU [20:13:12]CAPDU: 80 13 01 00 [20:13:12]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [20:13:12]Write i2c OK [20:13:12]MH_I2C_Read... [20:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:12]Read from MH i2c: E2 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 0E 00 [20:13:12]MH_I2C_Read... [20:13:12]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6D [20:13:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:13:12]wFMCommunicate OK [20:13:12]SAM_PROTO_GetShiftState done [20:13:12]FM_GetShiftState done [20:13:12]req_shift_opened done [20:13:12]requested_item shift.open_date is exist - process it [20:13:12]req_shift_open_date [20:13:12]req_shift_open_date done [20:13:12]produce_requested_data done [20:13:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139915,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:13:12]process_action_free close_receipt [20:13:12]json_value_free [20:13:12]json_value_free done [20:13:12]process_json_proto returns [20:13:12]Send response to host [20:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139915,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:13:12]free response buf [20:13:12]execute_script done [20:13:12]execute_script returns [20:13:12]free content buf [20:13:12]Sock 7.Close socket [20:13:12]Sock 7.Thread stoped [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:22]accept exits with 9 [20:15:22]New connection [20:15:22]New thread 3066908004 created [20:15:22]Thread 3066764644 joined [20:15:22]Waiting for new connection... [20:15:22] Sock 9.Parse request [20:15:22]Sock 9.Check first char [20:15:22]Sock 9.First char is OK [20:15:22]request: POST /json_proto HTTP/1.0 [20:15:22]Method: POST [20:15:22]URL: /json_proto [20:15:22]Method is POST - this is cgi request [20:15:22]url: /json_proto [20:15:22]query_string will be loaded in cgi processing [20:15:22]execute_cgi json_proto POST (null) [20:15:22]execute_cgi path=json_proto method=POST [20:15:22]POST find Content-Length [20:15:22]Host: 172.17.45.67:8080 [20:15:22]Content-Length: 838 [20:15:22]Content-Type: application/json [20:15:22] [20:15:22]POST finish read [20:15:22]Found Content-Length = 838 [20:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:22]execute_script... [20:15: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)593771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:22]POST & json_proto [20:15:22]process_json_proto [20:15:22]json parsed OK: [20:15:22]protocol is kg_v1.0 [20:15:22]action value=close_receipt [20:15:22]process_action close_receipt [20:15:22]cmd_close_receipt [20:15:22]MH_GetDate [20:15:22]Write to MH i2c: F0 00 00 5E 02 4F [20:15:22]Write i2c OK [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: F0 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: F0 09 00 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: F0 09 00 5E 02 00 5A F9 C4 66 5F 7F 2B 66 44 [20:15:22]GetLastDocTimeStamp 1724184789 [20:15:22]current date 1724184922 [20:15:22]FM_GetShiftState [20:15:22]SAM_PROTO_GetShiftState [20:15:22]wFMCommunicate request_size=4 [20:15:22]MH_SAM_APDU [20:15:22]CAPDU: 80 13 01 00 [20:15:22]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [20:15:22]Write i2c OK [20:15:22]MH_I2C_Read... [20:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:22]Read from MH i2c: E2 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: E2 0E 00 [20:15:22]MH_I2C_Read... [20:15:22]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6F [20:15:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:15:22]wFMCommunicate OK [20:15:22]SAM_PROTO_GetShiftState done [20:15:22]FM_GetShiftState done [20:15:22]opened in 1724113785 [20:15:22]opened+sec_in_day 1724200185 [20:15:22]quantity*price = 100021 [20:15:22]sum+1 = 100023 [20:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 388 20.08.2024 20:15 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 139916 ФПД: 202781077916584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T201522&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139916&fm=202781077916584&tin=02508201610067®Number=0000000000092569&sum=100000 [20:15:23]StoreToDocumentArchive [20:15:23]shift 453 fd 139916 [20:15:23]save to /storage/0453/doc_00139916 [20:15:23]save last doc name /storage/0453/doc_00139916 to /storage/kkm_last_doc_name [20:15:23]save OK [20:15:23]Clear old archive folders... [20:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:23]tlvbuf is 00A09070 [20:15:23]SAM_PROTO_ClearQueue [20:15:23]wFMCommunicate request_size=4 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 09 00 00 [20:15:23]Write to MH i2c: E2 08 00 6C 02 80 09 00 00 00 00 00 00 E0 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [20:15:23]RAPDU: 90 00 [20:15:23]wFMCommunicate OK [20:15:23]SAM_PROTO_ClearQueue done [20:15:23]KKMCreateOFDPacket [20:15:23]OFDProtocolAddRootSTLVToBuf [20:15:23]FM_MakeSignedData [20:15:23]FM_MakeSignedData [20:15:23]SAM_PROTO_SignData [20:15:23]wFMCommunicate request_size=4 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 0D 01 02 [20:15:23]Write to MH i2c: E2 08 00 6D 02 80 0D 01 02 00 00 00 00 E8 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [20:15:23]RAPDU: 90 00 [20:15:23]wFMCommunicate OK [20:15:23]wFMCommunicate request_size=255 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 5A F9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 22 02 00 35 04 06 00 B8 [20:15:23]Write to MH i2c: E2 02 01 6E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 5A F9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 22 02 00 35 04 06 00 B8 00 00 CE [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [20:15:23]RAPDU: 90 00 [20:15:23]wFMCommunicate OK [20:15:23]wFMCommunicate request_size=10 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 0D 02 02 05 6D A6 1D CB A8 [20:15:23]Write to MH i2c: E2 0D 00 6F 02 80 0D 02 02 05 00 6D A6 1D CB A8 00 00 98 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [20:15:23]RAPDU: 90 00 [20:15:23]wFMCommunicate OK [20:15:23]wFMCommunicate request_size=4 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 0D 03 02 [20:15:23]Write to MH i2c: E2 08 00 70 02 80 0D 03 02 00 00 00 00 ED [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 0B 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 0B 00 70 02 00 BE 39 97 B6 CF CF 20 0E 90 00 FE [20:15:23]RAPDU: BE 39 97 B6 CF CF 20 0E 90 00 [20:15:23]wFMCommunicate OK [20:15:23]SAM_PROTO_SignData done [20:15:23]FM_MakeSignedData done [20:15:23]CreateOFDProtocolMessage [20:15:23]wFMCommunicate request_size=4 [20:15:23]MH_SAM_APDU [20:15:23]CAPDU: 80 11 00 00 [20:15:23]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:23]Read from MH i2c: E2 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 17 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [20:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:15:23]wFMCommunicate OK [20:15:23]CreateOFDProtocolMessage done [20:15:23]OFDSenderStorePacket 139916 [20:15:23]StoreOFDPacket docnum=139916 [20:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DE 0E 07 01 A2 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 5A F9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 22 02 00 35 04 06 00 B8 6D A6 1D CB A8 BE 39 97 B6 CF CF 20 0E [20:15:23]CheckFolder [20:15:23]dirname=/storage/ofd_packets [20:15:23]CheckFolder done [20:15:23]ProducePacketName [20:15:23]name=ofd_packets/00139916 [20:15:23]NVStorageSaveData ofd_packets/00139916 [20:15:23]File name is /storage/ofd_packets/00139916 [20:15:23]Write 301 bytes [20:15:23]NVStorageSaveData done [20:15:23]OFDSenderStorePacket done [20:15:23]KKMCreateOFDPacket done [20:15:23]NVStorageSaveData kkm_last_timestamp [20:15:23]File name is /storage/kkm_last_timestamp [20:15:23]Write 4 bytes [20:15:23]NVStorageSaveData done [20:15:23]OFD Sender: Processing packet 139916 [packets to send 137, broken 136] [20:15:23]ProducePacketName [20:15:23]name=ofd_packets/00139916 [20:15:23]OFD Sender: To server: pG, [20:15:23]CommunicateWithHost lk.salyk.kg:30040 [20:15:23]ConnectInit lk.salyk.kg [20:15:23]ExternCall_PrintAddStr [20:15:23]wPrintStart [20:15:23]Write to MH i2c: 01 00 00 72 02 74 [20:15:23]Write i2c OK [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: 01 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: 01 07 00 [20:15:23]MH_I2C_Read... [20:15:23]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [20:15:23]RasterBufferAndPrint [20:15:23]line Счет N : (1)593771 [20:15:23]line ИНН: 02508201610067 [20:15:23]line Контрольно-Кассовый Чек [20:15:23]line ПРОДАЖА [20:15:23]line ТРК (МРК, ГНК) : 41 [20:15:23]line Товар: 2710124500 [20:15:23]line Аи-95-К-5 [20:15:23]line 13.480 * 74.20 [20:15:23]line = 1000.22 [20:15:23]line НДС 12% НСП 1% [20:15:23]line > о реализуемом товаре [20:15:23]line ОКРУГЛЕНИЕ: -0.22 [20:15:23]line ИТОГО: 1000.00 [20:15:23]line НСП 1% : 8.85 [20:15:23]line НДС 12% : 106.22 [20:15:23]line Наличными: 0.00 [20:15:23]line Безнал.: 1000.00 [20:15:23]line Место: АЗС № 136 "Партнер Нефть" [20:15:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:15:23]line СНО: Общий режим [20:15:23]line Чек 388 20.08.2024 20:15 [20:15:23]line Смена: 453 ФФД: 1.0 [20:15:23]line ЗНМ: 0300000067 [20:15:23]line РНМ: 0000000000092569 [20:15:23]line Версия ККМ: 001 [20:15:23]line Платежная система: Бакай Банк [20:15:23]line ФМ: 0000000000871776 [20:15:23]line ФД: 139916 [20:15:23]line ФПД: 202781077916584 [20:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T201522&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139916&fm=202781077916584&tin=02508201610067®Number=0000000000092569&sum=100000 [20:15:24]Connected sock=11 [20:15:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DE 0E 07 01 A2 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 5A F9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 22 02 00 35 04 06 00 B8 6D A6 1D CB A8 BE 39 97 B6 CF CF 20 0E [20:15:24]written 0, free lines is 4095 [20:15:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B4 3B 47 00 F5 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 22 02 00 F4 03 04 00 EC 9F C4 66 B6 04 01 00 00 E7 BA D2 1A 84 DC 51 00 [20:15:24]CommunicateWithHost err = 0 [20:15:24]CheckOFDResponse [20:15:24]1017 (14) - 77093643461234 [20:15:24]1041 (16) - 0000000000871776 [20:15:24]1040 (4) - 139916 [20:15:24]1012 (4) - 20.08.2024 13:53 [20:15:24]1206 (1) - 0 [20:15:24]OFD Sender: Remove packet 139916 [20:15:24]ProducePacketName [20:15:24]name=ofd_packets/00139916 [20:15:24]NVStorageDeleteData [20:15:24]Write to MH i2c: 01 00 00 9D 02 9F [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: 01 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: 01 07 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 D8 0C 8A [20:15:24]RasterBufferAndPrint [20:15:24]line [20:15:24]line [20:15:24]line [20:15:24]line [20:15:24]line [20:15:24]written 0, free lines is 3295 [20:15:24]MH_Cut [20:15:24]Write to MH i2c: D1 01 00 A4 02 01 78 [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: D1 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: D1 01 00 [20:15:24]MH_I2C_Read... [20:15:24]Read from MH i2c: D1 01 00 A4 02 00 77 [20:15:24]Write to MH i2c: 01 00 00 A5 02 A7 [20:15:24]Write i2c OK [20:15:24]MH_I2C_Read... [20:15:25]OFD Sender: No OFD packet to send [20:15:25]*** Cut start [20:15:25]*** Partial cut [20:15:25]*** CUTSNS_PIN = 1 [20:15:25]*** CUTSNS_PIN = 0 [20:15:25]*** Brake cut motor [20:15:26]Read from MH i2c: 01 [20:15:26]MH_I2C_Read... [20:15:26]*** Stop cut motor [20:15:26]*** Cut end [20:15:26]Read from MH i2c: 01 07 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 FF 0F BC [20:15:26]process_action close_receipt done [20:15:26]requested_data is exist [20:15:26]produce_requested_data [20:15:26]requested_item fm.sn is exist - process it [20:15:26]wFMCommunicate request_size=4 [20:15:26]MH_SAM_APDU [20:15:26]CAPDU: 80 11 00 00 [20:15:26]Write to MH i2c: E2 08 00 A6 02 80 11 00 00 00 00 00 00 22 [20:15:26]Write i2c OK [20:15:26]MH_I2C_Read... [20:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:26]Read from MH i2c: E2 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 17 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 17 00 A6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [20:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:15:26]wFMCommunicate OK [20:15:26]requested_item fd.num is exist - process it [20:15:26]SAM_PROTO_GetFieldsCounters [20:15:26]wFMCommunicate request_size=4 [20:15:26]MH_SAM_APDU [20:15:26]CAPDU: 80 13 00 00 [20:15:26]Write to MH i2c: E2 08 00 A7 02 80 13 00 00 00 00 00 00 25 [20:15:26]Write i2c OK [20:15:26]MH_I2C_Read... [20:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:26]Read from MH i2c: E2 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 62 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 62 00 A7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 22 02 00 0E 04 04 00 C5 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 55 [20:15:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 22 02 00 0E 04 04 00 C5 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 [20:15:26]wFMCommunicate OK [20:15:26]SAM_PROTO_GetFieldsCounters done [20:15:26]requested_item shift.num is exist - process it [20:15:26]requested_item shift.opened is exist - process it [20:15:26]req_shift_opened [20:15:26]FM_GetShiftState [20:15:26]SAM_PROTO_GetShiftState [20:15:26]wFMCommunicate request_size=4 [20:15:26]MH_SAM_APDU [20:15:26]CAPDU: 80 13 01 00 [20:15:26]Write to MH i2c: E2 08 00 A8 02 80 13 01 00 00 00 00 00 27 [20:15:26]Write i2c OK [20:15:26]MH_I2C_Read... [20:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:26]Read from MH i2c: E2 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 0E 00 [20:15:26]MH_I2C_Read... [20:15:26]Read from MH i2c: E2 0E 00 A8 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B8 [20:15:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:15:26]wFMCommunicate OK [20:15:26]SAM_PROTO_GetShiftState done [20:15:26]FM_GetShiftState done [20:15:26]req_shift_opened done [20:15:26]requested_item shift.open_date is exist - process it [20:15:26]req_shift_open_date [20:15:26]req_shift_open_date done [20:15:26]produce_requested_data done [20:15:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139916,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:15:26]process_action_free close_receipt [20:15:26]json_value_free [20:15:26]json_value_free done [20:15:26]process_json_proto returns [20:15:26]Send response to host [20:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139916,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:15:26]free response buf [20:15:26]execute_script done [20:15:26]execute_script returns [20:15:26]free content buf [20:15:26]Sock 9.Close socket [20:15:26]Sock 9.Thread stoped [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:06]accept exits with 7 [20:17:06]New connection [20:17:06]New thread 3066764644 created [20:17:06]Thread 3066908004 joined [20:17:06]Waiting for new connection... [20:17:06] Sock 7.Parse request [20:17:06]Sock 7.Check first char [20:17:06]Sock 7.First char is OK [20:17:06]request: POST /json_proto HTTP/1.0 [20:17:06]Method: POST [20:17:06]URL: /json_proto [20:17:06]Method is POST - this is cgi request [20:17:06]url: /json_proto [20:17:06]query_string will be loaded in cgi processing [20:17:06]execute_cgi json_proto POST (null) [20:17:06]execute_cgi path=json_proto method=POST [20:17:06]POST find Content-Length [20:17:06]Host: 172.17.45.67:8080 [20:17:06]Content-Length: 677 [20:17:06]Content-Type: application/json [20:17:06] [20:17:06]POST finish read [20:17:06]Found Content-Length = 677 [20:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:06]execute_script... [20:17: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)593772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:06]POST & json_proto [20:17:06]process_json_proto [20:17:06]json parsed OK: [20:17:06]protocol is kg_v1.0 [20:17:06]action value=close_receipt [20:17:06]process_action close_receipt [20:17:06]cmd_close_receipt [20:17:06]MH_GetDate [20:17:06]Write to MH i2c: F0 00 00 A9 02 9A [20:17:06]Write i2c OK [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: F0 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: F0 09 00 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: F0 09 00 A9 02 00 C2 F9 C4 66 5F 7F 2B 66 F7 [20:17:06]GetLastDocTimeStamp 1724184922 [20:17:06]current date 1724185026 [20:17:06]FM_GetShiftState [20:17:06]SAM_PROTO_GetShiftState [20:17:06]wFMCommunicate request_size=4 [20:17:06]MH_SAM_APDU [20:17:06]CAPDU: 80 13 01 00 [20:17:06]Write to MH i2c: E2 08 00 AA 02 80 13 01 00 00 00 00 00 29 [20:17:06]Write i2c OK [20:17:06]MH_I2C_Read... [20:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:06]Read from MH i2c: E2 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: E2 0E 00 [20:17:06]MH_I2C_Read... [20:17:06]Read from MH i2c: E2 0E 00 AA 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BA [20:17:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:17:06]wFMCommunicate OK [20:17:06]SAM_PROTO_GetShiftState done [20:17:06]FM_GetShiftState done [20:17:06]opened in 1724113785 [20:17:06]opened+sec_in_day 1724200185 [20:17:06]quantity*price = 50036 [20:17:06]sum+1 = 50037 [20:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 389 20.08.2024 20:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139917 ФПД: 223821233242363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T201706&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139917&fm=223821233242363&tin=02508201610067®Number=0000000000092569&sum=50000 [20:17:07]StoreToDocumentArchive [20:17:07]shift 453 fd 139917 [20:17:07]save to /storage/0453/doc_00139917 [20:17:07]save last doc name /storage/0453/doc_00139917 to /storage/kkm_last_doc_name [20:17:07]save OK [20:17:07]Clear old archive folders... [20:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:07]tlvbuf is 00A0A770 [20:17:07]SAM_PROTO_ClearQueue [20:17:07]wFMCommunicate request_size=4 [20:17:07]MH_SAM_APDU [20:17:07]CAPDU: 80 09 00 00 [20:17:07]Write to MH i2c: E2 08 00 B7 02 80 09 00 00 00 00 00 00 2B [20:17:07]Write i2c OK [20:17:07]MH_I2C_Read... [20:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:07]Read from MH i2c: E2 [20:17:07]MH_I2C_Read... [20:17:07]Read from MH i2c: E2 03 00 [20:17:07]MH_I2C_Read... [20:17:07]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [20:17:07]RAPDU: 90 00 [20:17:07]wFMCommunicate OK [20:17:07]SAM_PROTO_ClearQueue done [20:17:07]KKMCreateOFDPacket [20:17:07]OFDProtocolAddRootSTLVToBuf [20:17:07]FM_MakeSignedData [20:17:07]FM_MakeSignedData [20:17:07]SAM_PROTO_SignData [20:17:07]wFMCommunicate request_size=4 [20:17:07]MH_SAM_APDU [20:17:07]CAPDU: 80 0D 01 02 [20:17:07]Write to MH i2c: E2 08 00 B8 02 80 0D 01 02 00 00 00 00 33 [20:17:07]Write i2c OK [20:17:07]MH_I2C_Read... [20:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:07]Read from MH i2c: E2 [20:17:07]MH_I2C_Read... [20:17:07]Read from MH i2c: E2 03 00 [20:17:07]MH_I2C_Read... [20:17:07]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [20:17:07]RAPDU: 90 00 [20:17:07]wFMCommunicate OK [20:17:07]wFMCommunicate request_size=255 [20:17:07]MH_SAM_APDU [20:17:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 C2 F9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 22 02 00 35 04 06 00 CB [20:17:07]Write to MH i2c: E2 02 01 B9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 C2 F9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 22 02 00 35 04 06 00 CB 00 00 69 [20:17:07]Write i2c OK [20:17:07]MH_I2C_Read... [20:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:07]Read from MH i2c: E2 [20:17:07]MH_I2C_Read... [20:17:07]Read from MH i2c: E2 03 00 [20:17:07]MH_I2C_Read... [20:17:07]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [20:17:07]RAPDU: 90 00 [20:17:07]wFMCommunicate OK [20:17:07]wFMCommunicate request_size=10 [20:17:07]MH_SAM_APDU [20:17:07]CAPDU: 80 0D 02 02 05 90 71 19 C0 FB [20:17:07]Write to MH i2c: E2 0D 00 BA 02 80 0D 02 02 05 00 90 71 19 C0 FB 00 00 15 [20:17:07]Write i2c OK [20:17:07]MH_I2C_Read... [20:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:07]Read from MH i2c: E2 [20:17:07]MH_I2C_Read... [20:17:07]Read from MH i2c: E2 03 00 [20:17:07]MH_I2C_Read... [20:17:07]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [20:17:07]RAPDU: 90 00 [20:17:07]wFMCommunicate OK [20:17:07]wFMCommunicate request_size=4 [20:17:07]MH_SAM_APDU [20:17:07]CAPDU: 80 0D 03 02 [20:17:07]Write to MH i2c: E2 08 00 BB 02 80 0D 03 02 00 00 00 00 38 [20:17:07]Write i2c OK [20:17:07]MH_I2C_Read... [20:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:08]Read from MH i2c: E2 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 0B 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 0B 00 BB 02 00 2E 16 56 3C 3E 12 70 04 90 00 D3 [20:17:08]RAPDU: 2E 16 56 3C 3E 12 70 04 90 00 [20:17:08]wFMCommunicate OK [20:17:08]SAM_PROTO_SignData done [20:17:08]FM_MakeSignedData done [20:17:08]CreateOFDProtocolMessage [20:17:08]wFMCommunicate request_size=4 [20:17:08]MH_SAM_APDU [20:17:08]CAPDU: 80 11 00 00 [20:17:08]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:08]Read from MH i2c: E2 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 17 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [20:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:17:08]wFMCommunicate OK [20:17:08]CreateOFDProtocolMessage done [20:17:08]OFDSenderStorePacket 139917 [20:17:08]StoreOFDPacket docnum=139917 [20:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A5 B6 07 01 D7 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 C2 F9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 22 02 00 35 04 06 00 CB 90 71 19 C0 FB 2E 16 56 3C 3E 12 70 04 [20:17:08]CheckFolder [20:17:08]dirname=/storage/ofd_packets [20:17:08]CheckFolder done [20:17:08]ProducePacketName [20:17:08]name=ofd_packets/00139917 [20:17:08]NVStorageSaveData ofd_packets/00139917 [20:17:08]File name is /storage/ofd_packets/00139917 [20:17:08]Write 301 bytes [20:17:08]NVStorageSaveData done [20:17:08]OFDSenderStorePacket done [20:17:08]KKMCreateOFDPacket done [20:17:08]NVStorageSaveData kkm_last_timestamp [20:17:08]File name is /storage/kkm_last_timestamp [20:17:08]Write 4 bytes [20:17:08]NVStorageSaveData done [20:17:08]ExternCall_PrintAddStr [20:17:08]wPrintStart [20:17:08]Write to MH i2c: 01 00 00 BD 02 BF [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: 01 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: 01 07 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: 01 07 00 BD 02 00 00 00 00 00 FF 0F D4 [20:17:08]RasterBufferAndPrint [20:17:08]line Счет N : (1)593772 [20:17:08]line ИНН: 02508201610067 [20:17:08]line Контрольно-Кассовый Чек [20:17:08]line ПРОДАЖА [20:17:08]line ТРК (МРК, ГНК) : 62 [20:17:08]line Товар: 2710124130 [20:17:08]line Аи-92-К-5 [20:17:08]line 7.380 * 67.80 [20:17:08]line = 500.36 [20:17:08]line НДС 12% НСП 1% [20:17:08]line > о реализуемом товаре [20:17:08]line ОКРУГЛЕНИЕ: -0.36 [20:17:08]line ИТОГО: 500.00 [20:17:08]line Внесено: 500.00 [20:17:08]line СДАЧА: 0.00 [20:17:08]line НСП 1% : 4.43 [20:17:08]line НДС 12% : 53.14 [20:17:08]line Наличными: 500.00 [20:17:08]line Безнал.: 0.00 [20:17:08]line Место: АЗС № 136 "Партнер Нефть" [20:17:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:17:08]line СНО: Общий режим [20:17:08]line Чек 389 20.08.2024 20:17 [20:17:08]line Смена: 453 ФФД: 1.0 [20:17:08]line ЗНМ: 0300000067 [20:17:08]line РНМ: 0000000000092569 [20:17:08]line Версия ККМ: 001 [20:17:08]line ФМ: 0000000000871776 [20:17:08]line ФД: 139917 [20:17:08]line ФПД: 223821233242363 [20:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T201706&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139917&fm=223821233242363&tin=02508201610067®Number=0000000000092569&sum=50000 [20:17:08]written 0, free lines is 4095 [20:17:08]OFD Sender: Processing packet 139917 [packets to send 137, broken 136] [20:17:08]ProducePacketName [20:17:08]name=ofd_packets/00139917 [20:17:08]OFD Sender: To server: pG, [20:17:08]CommunicateWithHost lk.salyk.kg:30040 [20:17:08]ConnectInit lk.salyk.kg [20:17:08]Connected sock=11 [20:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A5 B6 07 01 D7 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 C2 F9 C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 22 02 00 35 04 06 00 CB 90 71 19 C0 FB 2E 16 56 3C 3E 12 70 04 [20:17:08]Write to MH i2c: 01 00 00 E8 02 EA [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: 01 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: 01 07 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 D4 0C D1 [20:17:08]RasterBufferAndPrint [20:17:08]line [20:17:08]line [20:17:08]line [20:17:08]line [20:17:08]line [20:17:08]written 0, free lines is 3288 [20:17:08]MH_Cut [20:17:08]Write to MH i2c: D1 01 00 EF 02 01 C3 [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: D1 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: D1 01 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: D1 01 00 EF 02 00 C2 [20:17:08]Write to MH i2c: 01 00 00 F0 02 F2 [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 12 DA 47 00 96 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 22 02 00 F4 03 04 00 55 A0 C4 66 B6 04 01 00 00 99 99 16 78 64 CA DB 16 [20:17:08]CommunicateWithHost err = 0 [20:17:08]CheckOFDResponse [20:17:08]1017 (14) - 77093643461234 [20:17:08]1041 (16) - 0000000000871776 [20:17:08]1040 (4) - 139917 [20:17:08]1012 (4) - 20.08.2024 13:55 [20:17:08]1206 (1) - 0 [20:17:08]OFD Sender: Remove packet 139917 [20:17:08]ProducePacketName [20:17:08]name=ofd_packets/00139917 [20:17:08]NVStorageDeleteData [20:17:09]OFD Sender: No OFD packet to send [20:17:09]*** Cut start [20:17:09]*** Partial cut [20:17:09]*** CUTSNS_PIN = 1 [20:17:09]*** CUTSNS_PIN = 0 [20:17:09]*** Brake cut motor [20:17:10]Read from MH i2c: 01 [20:17:10]MH_I2C_Read... [20:17:10]*** Stop cut motor [20:17:10]*** Cut end [20:17:10]Read from MH i2c: 01 07 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [20:17:10]process_action close_receipt done [20:17:10]requested_data is exist [20:17:10]produce_requested_data [20:17:10]requested_item fm.sn is exist - process it [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 11 00 00 [20:17:10]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 17 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [20:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:17:10]wFMCommunicate OK [20:17:10]requested_item fd.num is exist - process it [20:17:10]SAM_PROTO_GetFieldsCounters [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 13 00 00 [20:17:10]Write to MH i2c: E2 08 00 F2 02 80 13 00 00 00 00 00 00 70 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 62 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 62 00 F2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 22 02 00 0E 04 04 00 C5 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 A4 [20:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 22 02 00 0E 04 04 00 C5 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 [20:17:10]wFMCommunicate OK [20:17:10]SAM_PROTO_GetFieldsCounters done [20:17:10]requested_item shift.num is exist - process it [20:17:10]requested_item shift.opened is exist - process it [20:17:10]req_shift_opened [20:17:10]FM_GetShiftState [20:17:10]SAM_PROTO_GetShiftState [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 13 01 00 [20:17:10]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 0E 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 03 [20:17:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:17:10]wFMCommunicate OK [20:17:10]SAM_PROTO_GetShiftState done [20:17:10]FM_GetShiftState done [20:17:10]req_shift_opened done [20:17:10]requested_item shift.open_date is exist - process it [20:17:10]req_shift_open_date [20:17:10]req_shift_open_date done [20:17:10]produce_requested_data done [20:17:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139917,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:17:10]process_action_free close_receipt [20:17:10]json_value_free [20:17:10]json_value_free done [20:17:10]process_json_proto returns [20:17:10]Send response to host [20:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139917,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:17:10]free response buf [20:17:10]execute_script done [20:17:10]execute_script returns [20:17:10]free content buf [20:17:10]Sock 7.Close socket [20:17:10]Sock 7.Thread stoped [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:11]accept exits with 9 [20:18:11]New connection [20:18:11]New thread 3066908004 created [20:18:11]Thread 3066764644 joined [20:18:11]Waiting for new connection... [20:18:11] Sock 9.Parse request [20:18:11]Sock 9.Check first char [20:18:11]Sock 9.First char is OK [20:18:11]request: POST /json_proto HTTP/1.0 [20:18:11]Method: POST [20:18:11]URL: /json_proto [20:18:11]Method is POST - this is cgi request [20:18:11]url: /json_proto [20:18:11]query_string will be loaded in cgi processing [20:18:11]execute_cgi json_proto POST (null) [20:18:11]execute_cgi path=json_proto method=POST [20:18:11]POST find Content-Length [20:18:11]Host: 172.17.45.67:8080 [20:18:11]Content-Length: 677 [20:18:11]Content-Type: application/json [20:18:11] [20:18:11]POST finish read [20:18:11]Found Content-Length = 677 [20:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:11]execute_script... [20:18: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)593773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:11]POST & json_proto [20:18:11]process_json_proto [20:18:11]json parsed OK: [20:18:11]protocol is kg_v1.0 [20:18:11]action value=close_receipt [20:18:11]process_action close_receipt [20:18:11]cmd_close_receipt [20:18:11]MH_GetDate [20:18:11]Write to MH i2c: F0 00 00 F4 02 E5 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: F0 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: F0 09 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: F0 09 00 F4 02 00 03 FA C4 66 5F 7F 2B 66 84 [20:18:11]GetLastDocTimeStamp 1724185026 [20:18:11]current date 1724185091 [20:18:11]FM_GetShiftState [20:18:11]SAM_PROTO_GetShiftState [20:18:11]wFMCommunicate request_size=4 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 13 01 00 [20:18:11]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 0E 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 05 [20:18:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:18:11]wFMCommunicate OK [20:18:11]SAM_PROTO_GetShiftState done [20:18:11]FM_GetShiftState done [20:18:11]opened in 1724113785 [20:18:11]opened+sec_in_day 1724200185 [20:18:11]quantity*price = 40002 [20:18:11]sum+1 = 40003 [20:18:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 390 20.08.2024 20:18 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139918 ФПД: 3418943890900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T201811&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139918&fm=3418943890900&tin=02508201610067®Number=0000000000092569&sum=40000 [20:18:12]StoreToDocumentArchive [20:18:12]shift 453 fd 139918 [20:18:12]save to /storage/0453/doc_00139918 [20:18:12]save last doc name /storage/0453/doc_00139918 to /storage/kkm_last_doc_name [20:18:12]save OK [20:18:12]Clear old archive folders... [20:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:12]tlvbuf is 00A143B0 [20:18:12]SAM_PROTO_ClearQueue [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 09 00 00 [20:18:12]Write to MH i2c: E2 08 00 02 03 80 09 00 00 00 00 00 00 77 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [20:18:12]RAPDU: 90 00 [20:18:12]wFMCommunicate OK [20:18:12]SAM_PROTO_ClearQueue done [20:18:12]KKMCreateOFDPacket [20:18:12]OFDProtocolAddRootSTLVToBuf [20:18:12]FM_MakeSignedData [20:18:12]FM_MakeSignedData [20:18:12]SAM_PROTO_SignData [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 0D 01 02 [20:18:12]Write to MH i2c: E2 08 00 03 03 80 0D 01 02 00 00 00 00 7F [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [20:18:12]RAPDU: 90 00 [20:18:12]wFMCommunicate OK [20:18:12]wFMCommunicate request_size=255 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 03 FA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 22 02 00 35 04 06 00 03 [20:18:12]Write to MH i2c: E2 02 01 04 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 03 FA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 22 02 00 35 04 06 00 03 00 00 16 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [20:18:12]RAPDU: 90 00 [20:18:12]wFMCommunicate OK [20:18:12]wFMCommunicate request_size=10 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 0D 02 02 05 1C 08 EF A5 D4 [20:18:12]Write to MH i2c: E2 0D 00 05 03 80 0D 02 02 05 00 1C 08 EF A5 D4 00 00 18 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [20:18:12]RAPDU: 90 00 [20:18:12]wFMCommunicate OK [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 0D 03 02 [20:18:12]Write to MH i2c: E2 08 00 06 03 80 0D 03 02 00 00 00 00 84 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 0B 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 0B 00 06 03 00 7C 89 5E C6 75 5A 24 1E 90 00 BF [20:18:12]RAPDU: 7C 89 5E C6 75 5A 24 1E 90 00 [20:18:12]wFMCommunicate OK [20:18:12]SAM_PROTO_SignData done [20:18:12]FM_MakeSignedData done [20:18:12]CreateOFDProtocolMessage [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 11 00 00 [20:18:12]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 17 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [20:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:12]wFMCommunicate OK [20:18:12]CreateOFDProtocolMessage done [20:18:12]OFDSenderStorePacket 139918 [20:18:12]StoreOFDPacket docnum=139918 [20:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 32 07 01 C1 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 03 FA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 22 02 00 35 04 06 00 03 1C 08 EF A5 D4 7C 89 5E C6 75 5A 24 1E [20:18:12]CheckFolder [20:18:12]dirname=/storage/ofd_packets [20:18:12]CheckFolder done [20:18:12]ProducePacketName [20:18:12]name=ofd_packets/00139918 [20:18:12]NVStorageSaveData ofd_packets/00139918 [20:18:12]File name is /storage/ofd_packets/00139918 [20:18:12]Write 301 bytes [20:18:12]NVStorageSaveData done [20:18:12]OFDSenderStorePacket done [20:18:12]KKMCreateOFDPacket done [20:18:12]NVStorageSaveData kkm_last_timestamp [20:18:12]File name is /storage/kkm_last_timestamp [20:18:12]Write 4 bytes [20:18:12]NVStorageSaveData done [20:18:12]ExternCall_PrintAddStr [20:18:12]wPrintStart [20:18:12]Write to MH i2c: 01 00 00 08 03 0B [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 07 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 FF 0F 20 [20:18:12]RasterBufferAndPrint [20:18:12]line Счет N : (1)593773 [20:18:12]line ИНН: 02508201610067 [20:18:12]line Контрольно-Кассовый Чек [20:18:12]line ПРОДАЖА [20:18:12]line ТРК (МРК, ГНК) : 42 [20:18:12]line Товар: 2710124130 [20:18:12]line Аи-92-К-5 [20:18:12]line 5.900 * 67.80 [20:18:12]line = 400.02 [20:18:12]line НДС 12% НСП 1% [20:18:12]line > о реализуемом товаре [20:18:12]line ОКРУГЛЕНИЕ: -0.02 [20:18:12]line ИТОГО: 400.00 [20:18:12]line Внесено: 400.00 [20:18:12]line СДАЧА: 0.00 [20:18:12]line НСП 1% : 3.54 [20:18:12]line НДС 12% : 42.48 [20:18:12]line Наличными: 400.00 [20:18:12]line Безнал.: 0.00 [20:18:12]line Место: АЗС № 136 "Партнер Нефть" [20:18:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:18:12]line СНО: Общий режим [20:18:12]line Чек 390 20.08.2024 20:18 [20:18:12]line Смена: 453 ФФД: 1.0 [20:18:12]line ЗНМ: 0300000067 [20:18:12]line РНМ: 0000000000092569 [20:18:12]line Версия ККМ: 001 [20:18:12]line ФМ: 0000000000871776 [20:18:12]line ФД: 139918 [20:18:12]line ФПД: 3418943890900 [20:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T201811&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139918&fm=3418943890900&tin=02508201610067®Number=0000000000092569&sum=40000 [20:18:13]written 0, free lines is 4095 [20:18:13]OFD Sender: Processing packet 139918 [packets to send 137, broken 136] [20:18:13]ProducePacketName [20:18:13]name=ofd_packets/00139918 [20:18:13]OFD Sender: To server: pG, [20:18:13]CommunicateWithHost lk.salyk.kg:30040 [20:18:13]ConnectInit lk.salyk.kg [20:18:13]Connected sock=10 [20:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 32 07 01 C1 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 03 FA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 22 02 00 35 04 06 00 03 1C 08 EF A5 D4 7C 89 5E C6 75 5A 24 1E [20:18:13]Write to MH i2c: 01 00 00 33 03 36 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 07 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 D5 0C 1E [20:18:13]RasterBufferAndPrint [20:18:13]line [20:18:13]line [20:18:13]line [20:18:13]line [20:18:13]line [20:18:13]written 0, free lines is 3292 [20:18:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 33 25 47 00 29 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 22 02 00 F4 03 04 00 96 A0 C4 66 B6 04 01 00 00 03 B6 4C 41 4C FF 8B E5 [20:18:13]CommunicateWithHost err = 0 [20:18:13]CheckOFDResponse [20:18:13]1017 (14) - 77093643461234 [20:18:13]1041 (16) - 0000000000871776 [20:18:13]1040 (4) - 139918 [20:18:13]1012 (4) - 20.08.2024 13:56 [20:18:13]1206 (1) - 0 [20:18:13]OFD Sender: Remove packet 139918 [20:18:13]ProducePacketName [20:18:13]name=ofd_packets/00139918 [20:18:13]NVStorageDeleteData [20:18:13]MH_Cut [20:18:13]Write to MH i2c: D1 01 00 3A 03 01 0F [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: D1 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: D1 01 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: D1 01 00 3A 03 00 0E [20:18:13]Write to MH i2c: 01 00 00 3B 03 3E [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:14]OFD Sender: No OFD packet to send [20:18:14]*** Cut start [20:18:14]*** Partial cut [20:18:14]*** CUTSNS_PIN = 1 [20:18:14]*** CUTSNS_PIN = 0 [20:18:14]*** Brake cut motor [20:18:15]Read from MH i2c: 01 [20:18:15]MH_I2C_Read... [20:18:15]*** Stop cut motor [20:18:15]*** Cut end [20:18:15]Read from MH i2c: 01 07 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 FF 0F 53 [20:18:15]process_action close_receipt done [20:18:15]requested_data is exist [20:18:15]produce_requested_data [20:18:15]requested_item fm.sn is exist - process it [20:18:15]wFMCommunicate request_size=4 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 11 00 00 [20:18:15]Write to MH i2c: E2 08 00 3C 03 80 11 00 00 00 00 00 00 B9 [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:15]Read from MH i2c: E2 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 17 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 17 00 3C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [20:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:15]wFMCommunicate OK [20:18:15]requested_item fd.num is exist - process it [20:18:15]SAM_PROTO_GetFieldsCounters [20:18:15]wFMCommunicate request_size=4 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 13 00 00 [20:18:15]Write to MH i2c: E2 08 00 3D 03 80 13 00 00 00 00 00 00 BC [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:15]Read from MH i2c: E2 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 62 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 62 00 3D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 22 02 00 0E 04 04 00 C5 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 F4 [20:18:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 22 02 00 0E 04 04 00 C5 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 [20:18:15]wFMCommunicate OK [20:18:15]SAM_PROTO_GetFieldsCounters done [20:18:15]requested_item shift.num is exist - process it [20:18:15]requested_item shift.opened is exist - process it [20:18:15]req_shift_opened [20:18:15]FM_GetShiftState [20:18:15]SAM_PROTO_GetShiftState [20:18:15]wFMCommunicate request_size=4 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 13 01 00 [20:18:15]Write to MH i2c: E2 08 00 3E 03 80 13 01 00 00 00 00 00 BE [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:15]Read from MH i2c: E2 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 0E 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 0E 00 3E 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4F [20:18:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:18:15]wFMCommunicate OK [20:18:15]SAM_PROTO_GetShiftState done [20:18:15]FM_GetShiftState done [20:18:15]req_shift_opened done [20:18:15]requested_item shift.open_date is exist - process it [20:18:15]req_shift_open_date [20:18:15]req_shift_open_date done [20:18:15]produce_requested_data done [20:18:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139918,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:18:15]process_action_free close_receipt [20:18:15]json_value_free [20:18:15]json_value_free done [20:18:15]process_json_proto returns [20:18:15]Send response to host [20:18:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139918,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:18:15]free response buf [20:18:15]execute_script done [20:18:15]execute_script returns [20:18:15]free content buf [20:18:15]Sock 9.Close socket [20:18:15]Sock 9.Thread stoped [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:36]accept exits with 7 [20:20:36]New connection [20:20:36]New thread 3066764644 created [20:20:36]Thread 3066908004 joined [20:20:36]Waiting for new connection... [20:20:36] Sock 7.Parse request [20:20:36]Sock 7.Check first char [20:20:36]Sock 7.First char is OK [20:20:36]request: POST /json_proto HTTP/1.0 [20:20:36]Method: POST [20:20:36]URL: /json_proto [20:20:36]Method is POST - this is cgi request [20:20:36]url: /json_proto [20:20:36]query_string will be loaded in cgi processing [20:20:36]execute_cgi json_proto POST (null) [20:20:36]execute_cgi path=json_proto method=POST [20:20:36]POST find Content-Length [20:20:36]Host: 172.17.45.67:8080 [20:20:36]Content-Length: 682 [20:20:36]Content-Type: application/json [20:20:36] [20:20:36]POST finish read [20:20:36]Found Content-Length = 682 [20:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:36]execute_script... [20: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)593774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:36]POST & json_proto [20:20:36]process_json_proto [20:20:36]json parsed OK: [20:20:36]protocol is kg_v1.0 [20:20:36]action value=close_receipt [20:20:36]process_action close_receipt [20:20:36]cmd_close_receipt [20:20:36]MH_GetDate [20:20:36]Write to MH i2c: F0 00 00 3F 03 31 [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: F0 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: F0 09 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: F0 09 00 3F 03 00 94 FA C4 66 5F 7F 2B 66 61 [20:20:36]GetLastDocTimeStamp 1724185091 [20:20:36]current date 1724185236 [20:20:36]FM_GetShiftState [20:20:36]SAM_PROTO_GetShiftState [20:20:36]wFMCommunicate request_size=4 [20:20:36]MH_SAM_APDU [20:20:36]CAPDU: 80 13 01 00 [20:20:36]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [20:20:36]Write i2c OK [20:20:36]MH_I2C_Read... [20:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:36]Read from MH i2c: E2 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 0E 00 [20:20:36]MH_I2C_Read... [20:20:36]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 51 [20:20:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:20:36]wFMCommunicate OK [20:20:36]SAM_PROTO_GetShiftState done [20:20:36]FM_GetShiftState done [20:20:36]opened in 1724113785 [20:20:36]opened+sec_in_day 1724200185 [20:20:36]quantity*price = 100021 [20:20:36]sum+1 = 100023 [20:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 391 20.08.2024 20:20 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139919 ФПД: 88207234657842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T202036&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139919&fm=88207234657842&tin=02508201610067®Number=0000000000092569&sum=100000 [20:20:37]StoreToDocumentArchive [20:20:37]shift 453 fd 139919 [20:20:37]save to /storage/0453/doc_00139919 [20:20:37]save last doc name /storage/0453/doc_00139919 to /storage/kkm_last_doc_name [20:20:37]save OK [20:20:37]Clear old archive folders... [20:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:37]tlvbuf is 00A021F0 [20:20:37]SAM_PROTO_ClearQueue [20:20:37]wFMCommunicate request_size=4 [20:20:37]MH_SAM_APDU [20:20:37]CAPDU: 80 09 00 00 [20:20:37]Write to MH i2c: E2 08 00 4D 03 80 09 00 00 00 00 00 00 C2 [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:37]Read from MH i2c: E2 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [20:20:37]RAPDU: 90 00 [20:20:37]wFMCommunicate OK [20:20:37]SAM_PROTO_ClearQueue done [20:20:37]KKMCreateOFDPacket [20:20:37]OFDProtocolAddRootSTLVToBuf [20:20:37]FM_MakeSignedData [20:20:37]FM_MakeSignedData [20:20:37]SAM_PROTO_SignData [20:20:37]wFMCommunicate request_size=4 [20:20:37]MH_SAM_APDU [20:20:37]CAPDU: 80 0D 01 02 [20:20:37]Write to MH i2c: E2 08 00 4E 03 80 0D 01 02 00 00 00 00 CA [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:37]Read from MH i2c: E2 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [20:20:37]RAPDU: 90 00 [20:20:37]wFMCommunicate OK [20:20:37]wFMCommunicate request_size=255 [20:20:37]MH_SAM_APDU [20: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 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 94 FA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 22 02 00 35 04 06 00 50 [20:20:37]Write to MH i2c: E2 02 01 4F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 87 01 00 00 F4 03 04 00 94 FA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 22 02 00 35 04 06 00 50 00 00 89 [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:38]Read from MH i2c: E2 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 03 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [20:20:38]RAPDU: 90 00 [20:20:38]wFMCommunicate OK [20:20:38]wFMCommunicate request_size=10 [20:20:38]MH_SAM_APDU [20:20:38]CAPDU: 80 0D 02 02 05 39 58 E3 6E 32 [20:20:38]Write to MH i2c: E2 0D 00 50 03 80 0D 02 02 05 00 39 58 E3 6E 32 00 00 EB [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:38]Read from MH i2c: E2 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 03 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [20:20:38]RAPDU: 90 00 [20:20:38]wFMCommunicate OK [20:20:38]wFMCommunicate request_size=4 [20:20:38]MH_SAM_APDU [20:20:38]CAPDU: 80 0D 03 02 [20:20:38]Write to MH i2c: E2 08 00 51 03 80 0D 03 02 00 00 00 00 CF [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:38]Read from MH i2c: E2 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 0B 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 0B 00 51 03 00 0D 0B 1E 44 1D 4A BC 67 90 00 D4 [20:20:38]RAPDU: 0D 0B 1E 44 1D 4A BC 67 90 00 [20:20:38]wFMCommunicate OK [20:20:38]SAM_PROTO_SignData done [20:20:38]FM_MakeSignedData done [20:20:38]CreateOFDProtocolMessage [20:20:38]wFMCommunicate request_size=4 [20:20:38]MH_SAM_APDU [20:20:38]CAPDU: 80 11 00 00 [20:20:38]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:38]Read from MH i2c: E2 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 17 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [20:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:20:38]wFMCommunicate OK [20:20:38]CreateOFDProtocolMessage done [20:20:38]OFDSenderStorePacket 139919 [20:20:38]StoreOFDPacket docnum=139919 [20:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2D 3B 07 01 1A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 94 FA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 22 02 00 35 04 06 00 50 39 58 E3 6E 32 0D 0B 1E 44 1D 4A BC 67 [20:20:38]CheckFolder [20:20:38]dirname=/storage/ofd_packets [20:20:38]CheckFolder done [20:20:38]ProducePacketName [20:20:38]name=ofd_packets/00139919 [20:20:38]NVStorageSaveData ofd_packets/00139919 [20:20:38]File name is /storage/ofd_packets/00139919 [20:20:38]Write 301 bytes [20:20:38]NVStorageSaveData done [20:20:38]OFDSenderStorePacket done [20:20:38]KKMCreateOFDPacket done [20:20:38]NVStorageSaveData kkm_last_timestamp [20:20:38]File name is /storage/kkm_last_timestamp [20:20:38]Write 4 bytes [20:20:38]NVStorageSaveData done [20:20:38]ExternCall_PrintAddStr [20:20:38]wPrintStart [20:20:38]Write to MH i2c: 01 00 00 53 03 56 [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 07 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [20:20:38]RasterBufferAndPrint [20:20:38]line Счет N : (1)593774 [20:20:38]line ИНН: 02508201610067 [20:20:38]line Контрольно-Кассовый Чек [20:20:38]line ПРОДАЖА [20:20:38]line ТРК (МРК, ГНК) : 41 [20:20:38]line Товар: 2710124500 [20:20:38]line Аи-95-К-5 [20:20:38]line 13.480 * 74.20 [20:20:38]line = 1000.22 [20:20:38]line НДС 12% НСП 1% [20:20:38]line > о реализуемом товаре [20:20:38]line ОКРУГЛЕНИЕ: -0.22 [20:20:38]line ИТОГО: 1000.00 [20:20:38]line Внесено: 1000.00 [20:20:38]line СДАЧА: 0.00 [20:20:38]line НСП 1% : 8.85 [20:20:38]line НДС 12% : 106.22 [20:20:38]line Наличными: 1000.00 [20:20:38]line Безнал.: 0.00 [20:20:38]line Место: АЗС № 136 "Партнер Нефть" [20:20:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:20:38]line СНО: Общий режим [20:20:38]line Чек 391 20.08.2024 20:20 [20:20:38]line Смена: 453 ФФД: 1.0 [20:20:38]line ЗНМ: 0300000067 [20:20:38]line РНМ: 0000000000092569 [20:20:38]line Версия ККМ: 001 [20:20:38]line ФМ: 0000000000871776 [20:20:38]line ФД: 139919 [20:20:38]line ФПД: 88207234657842 [20:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T202036&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139919&fm=88207234657842&tin=02508201610067®Number=0000000000092569&sum=100000 [20:20:38]OFD Sender: Processing packet 139919 [packets to send 137, broken 136] [20:20:38]ProducePacketName [20:20:38]name=ofd_packets/00139919 [20:20:38]OFD Sender: To server: pG, [20:20:38]CommunicateWithHost lk.salyk.kg:30040 [20:20:38]ConnectInit lk.salyk.kg [20:20:38]written 0, free lines is 4095 [20:20:38]Connected sock=10 [20:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2D 3B 07 01 1A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 94 FA C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 22 02 00 35 04 06 00 50 39 58 E3 6E 32 0D 0B 1E 44 1D 4A BC 67 [20:20:38]Write to MH i2c: 01 00 00 7E 03 81 [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 07 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 07 00 7E 03 00 00 00 00 00 D9 0C 6D [20:20:38]RasterBufferAndPrint [20:20:38]line [20:20:38]line [20:20:38]line [20:20:38]line [20:20:38]line [20:20:38]written 0, free lines is 3296 [20:20:38]MH_Cut [20:20:38]Write to MH i2c: D1 01 00 85 03 01 5A [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: D1 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: D1 01 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: D1 01 00 85 03 00 59 [20:20:38]Write to MH i2c: 01 00 00 86 03 89 [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 16 A6 47 00 B8 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 22 02 00 F4 03 04 00 27 A1 C4 66 B6 04 01 00 00 AE 5E 20 81 E8 5F CA AF [20:20:38]CommunicateWithHost err = 0 [20:20:38]CheckOFDResponse [20:20:38]1017 (14) - 77093643461234 [20:20:38]1041 (16) - 0000000000871776 [20:20:38]1040 (4) - 139919 [20:20:38]1012 (4) - 20.08.2024 13:59 [20:20:38]1206 (1) - 0 [20:20:38]OFD Sender: Remove packet 139919 [20:20:38]ProducePacketName [20:20:38]name=ofd_packets/00139919 [20:20:38]NVStorageDeleteData [20:20:39]OFD Sender: No OFD packet to send [20:20:39]*** Cut start [20:20:39]*** Partial cut [20:20:39]*** CUTSNS_PIN = 1 [20:20:39]*** CUTSNS_PIN = 0 [20:20:39]*** Brake cut motor [20:20:39]Read from MH i2c: 01 [20:20:39]MH_I2C_Read... [20:20:40]*** Stop cut motor [20:20:40]*** Cut end [20:20:40]Read from MH i2c: 01 07 00 [20:20:40]MH_I2C_Read... [20:20:40]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 FF 0F 9E [20:20:40]process_action close_receipt done [20:20:40]requested_data is exist [20:20:40]produce_requested_data [20:20:40]requested_item fm.sn is exist - process it [20:20:40]wFMCommunicate request_size=4 [20:20:40]MH_SAM_APDU [20:20:40]CAPDU: 80 11 00 00 [20:20:40]Write to MH i2c: E2 08 00 87 03 80 11 00 00 00 00 00 00 04 [20:20:40]Write i2c OK [20:20:40]MH_I2C_Read... [20:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:40]Read from MH i2c: E2 [20:20:40]MH_I2C_Read... [20:20:40]Read from MH i2c: E2 17 00 [20:20:40]MH_I2C_Read... [20:20:40]Read from MH i2c: E2 17 00 87 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [20:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:20:40]wFMCommunicate OK [20:20:40]requested_item fd.num is exist - process it [20:20:40]SAM_PROTO_GetFieldsCounters [20:20:40]wFMCommunicate request_size=4 [20:20:40]MH_SAM_APDU [20:20:40]CAPDU: 80 13 00 00 [20:20:40]Write to MH i2c: E2 08 00 88 03 80 13 00 00 00 00 00 00 07 [20:20:40]Write i2c OK [20:20:40]MH_I2C_Read... [20:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:40]Read from MH i2c: E2 [20:20:40]MH_I2C_Read... [20:20:40]Read from MH i2c: E2 62 00 [20:20:40]MH_I2C_Read... [20:20:40]Read from MH i2c: E2 62 00 88 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 22 02 00 0E 04 04 00 C5 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 43 [20:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 22 02 00 0E 04 04 00 C5 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 [20:20:40]wFMCommunicate OK [20:20:40]SAM_PROTO_GetFieldsCounters done [20:20:40]requested_item shift.num is exist - process it [20:20:40]requested_item shift.opened is exist - process it [20:20:40]req_shift_opened [20:20:40]FM_GetShiftState [20:20:40]SAM_PROTO_GetShiftState [20:20:40]wFMCommunicate request_size=4 [20:20:40]MH_SAM_APDU [20:20:40]CAPDU: 80 13 01 00 [20:20:40]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [20:20:40]Write i2c OK [20:20:40]MH_I2C_Read... [20:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:40]Read from MH i2c: E2 [20:20:40]MH_I2C_Read... [20:20:40]Read from MH i2c: E2 0E 00 [20:20:40]MH_I2C_Read... [20:20:40]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9A [20:20:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:20:40]wFMCommunicate OK [20:20:40]SAM_PROTO_GetShiftState done [20:20:40]FM_GetShiftState done [20:20:40]req_shift_opened done [20:20:40]requested_item shift.open_date is exist - process it [20:20:40]req_shift_open_date [20:20:40]req_shift_open_date done [20:20:40]produce_requested_data done [20:20:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139919,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:20:40]process_action_free close_receipt [20:20:40]json_value_free [20:20:40]json_value_free done [20:20:40]process_json_proto returns [20:20:40]Send response to host [20:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139919,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:20:40]free response buf [20:20:40]execute_script done [20:20:40]execute_script returns [20:20:40]free content buf [20:20:40]Sock 7.Close socket [20:20:40]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:15]accept exits with 9 [20:26:15]New connection [20:26:15]New thread 3066908004 created [20:26:15]Thread 3066764644 joined [20:26:15]Waiting for new connection... [20:26:15] Sock 9.Parse request [20:26:15]Sock 9.Check first char [20:26:15]Sock 9.First char is OK [20:26:15]request: POST /json_proto HTTP/1.0 [20:26:15]Method: POST [20:26:15]URL: /json_proto [20:26:15]Method is POST - this is cgi request [20:26:15]url: /json_proto [20:26:15]query_string will be loaded in cgi processing [20:26:15]execute_cgi json_proto POST (null) [20:26:15]execute_cgi path=json_proto method=POST [20:26:15]POST find Content-Length [20:26:15]Host: 172.17.45.67:8080 [20:26:15]Content-Length: 677 [20:26:15]Content-Type: application/json [20:26:15] [20:26:15]POST finish read [20:26:15]Found Content-Length = 677 [20:26:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:15]execute_script... [20:26:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:15]POST & json_proto [20:26:15]process_json_proto [20:26:15]json parsed OK: [20:26:15]protocol is kg_v1.0 [20:26:15]action value=close_receipt [20:26:15]process_action close_receipt [20:26:15]cmd_close_receipt [20:26:15]MH_GetDate [20:26:15]Write to MH i2c: F0 00 00 8A 03 7C [20:26:15]Write i2c OK [20:26:15]MH_I2C_Read... [20:26:15]Read from MH i2c: F0 [20:26:15]MH_I2C_Read... [20:26:15]Read from MH i2c: F0 09 00 [20:26:15]MH_I2C_Read... [20:26:15]Read from MH i2c: F0 09 00 8A 03 00 E7 FB C4 66 5F 7F 2B 66 00 [20:26:15]GetLastDocTimeStamp 1724185236 [20:26:15]current date 1724185575 [20:26:15]FM_GetShiftState [20:26:15]SAM_PROTO_GetShiftState [20:26:15]wFMCommunicate request_size=4 [20:26:15]MH_SAM_APDU [20:26:15]CAPDU: 80 13 01 00 [20:26:15]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [20:26:15]Write i2c OK [20:26:15]MH_I2C_Read... [20:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:15]Read from MH i2c: E2 [20:26:15]MH_I2C_Read... [20:26:15]Read from MH i2c: E2 0E 00 [20:26:15]MH_I2C_Read... [20:26:15]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9C [20:26:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:26:15]wFMCommunicate OK [20:26:15]SAM_PROTO_GetShiftState done [20:26:15]FM_GetShiftState done [20:26:15]opened in 1724113785 [20:26:15]opened+sec_in_day 1724200185 [20:26:15]quantity*price = 40002 [20:26:15]sum+1 = 40003 [20:26:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 392 20.08.2024 20:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139920 ФПД: 247304284976989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T202615&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139920&fm=247304284976989&tin=02508201610067®Number=0000000000092569&sum=40000 [20:26:16]StoreToDocumentArchive [20:26:16]shift 453 fd 139920 [20:26:16]save to /storage/0453/doc_00139920 [20:26:16]save last doc name /storage/0453/doc_00139920 to /storage/kkm_last_doc_name [20:26:16]save OK [20:26:16]Clear old archive folders... [20:26:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:16]tlvbuf is 009E80A0 [20:26:16]SAM_PROTO_ClearQueue [20:26:16]wFMCommunicate request_size=4 [20:26:16]MH_SAM_APDU [20:26:16]CAPDU: 80 09 00 00 [20:26:16]Write to MH i2c: E2 08 00 98 03 80 09 00 00 00 00 00 00 0D [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:16]Read from MH i2c: E2 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 03 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [20:26:16]RAPDU: 90 00 [20:26:16]wFMCommunicate OK [20:26:16]SAM_PROTO_ClearQueue done [20:26:16]KKMCreateOFDPacket [20:26:16]OFDProtocolAddRootSTLVToBuf [20:26:16]FM_MakeSignedData [20:26:16]FM_MakeSignedData [20:26:16]SAM_PROTO_SignData [20:26:16]wFMCommunicate request_size=4 [20:26:16]MH_SAM_APDU [20:26:16]CAPDU: 80 0D 01 02 [20:26:16]Write to MH i2c: E2 08 00 99 03 80 0D 01 02 00 00 00 00 15 [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:16]Read from MH i2c: E2 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 03 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [20:26:16]RAPDU: 90 00 [20:26:16]wFMCommunicate OK [20:26:16]wFMCommunicate request_size=255 [20:26:16]MH_SAM_APDU [20:26:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 E7 FB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 22 02 00 35 04 06 00 E0 [20:26:16]Write to MH i2c: E2 02 01 9A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 E7 FB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 22 02 00 35 04 06 00 E0 00 00 72 [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:16]Read from MH i2c: E2 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 03 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [20:26:16]RAPDU: 90 00 [20:26:16]wFMCommunicate OK [20:26:16]wFMCommunicate request_size=10 [20:26:16]MH_SAM_APDU [20:26:16]CAPDU: 80 0D 02 02 05 EC 04 0E B7 5D [20:26:16]Write to MH i2c: E2 0D 00 9B 03 80 0D 02 02 05 00 EC 04 0E B7 5D 00 00 34 [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:16]Read from MH i2c: E2 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 03 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [20:26:16]RAPDU: 90 00 [20:26:16]wFMCommunicate OK [20:26:16]wFMCommunicate request_size=4 [20:26:16]MH_SAM_APDU [20:26:16]CAPDU: 80 0D 03 02 [20:26:16]Write to MH i2c: E2 08 00 9C 03 80 0D 03 02 00 00 00 00 1A [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:16]Read from MH i2c: E2 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 0B 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 0B 00 9C 03 00 F7 8F 8F AF CD E1 24 E6 90 00 97 [20:26:16]RAPDU: F7 8F 8F AF CD E1 24 E6 90 00 [20:26:16]wFMCommunicate OK [20:26:16]SAM_PROTO_SignData done [20:26:16]FM_MakeSignedData done [20:26:16]CreateOFDProtocolMessage [20:26:16]wFMCommunicate request_size=4 [20:26:16]MH_SAM_APDU [20:26:16]CAPDU: 80 11 00 00 [20:26:16]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:16]Read from MH i2c: E2 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 17 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 71 [20:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:26:16]wFMCommunicate OK [20:26:16]CreateOFDProtocolMessage done [20:26:16]OFDSenderStorePacket 139920 [20:26:16]StoreOFDPacket docnum=139920 [20:26:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E 40 07 01 59 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 E7 FB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 22 02 00 35 04 06 00 E0 EC 04 0E B7 5D F7 8F 8F AF CD E1 24 E6 [20:26:16]CheckFolder [20:26:16]dirname=/storage/ofd_packets [20:26:16]CheckFolder done [20:26:16]ProducePacketName [20:26:16]name=ofd_packets/00139920 [20:26:16]NVStorageSaveData ofd_packets/00139920 [20:26:16]File name is /storage/ofd_packets/00139920 [20:26:16]Write 301 bytes [20:26:16]NVStorageSaveData done [20:26:16]OFDSenderStorePacket done [20:26:16]KKMCreateOFDPacket done [20:26:16]NVStorageSaveData kkm_last_timestamp [20:26:16]File name is /storage/kkm_last_timestamp [20:26:16]Write 4 bytes [20:26:16]NVStorageSaveData done [20:26:16]ExternCall_PrintAddStr [20:26:16]wPrintStart [20:26:16]Write to MH i2c: 01 00 00 9E 03 A1 [20:26:16]Write i2c OK [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: 01 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: 01 07 00 [20:26:16]MH_I2C_Read... [20:26:16]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 FF 0F B6 [20:26:16]RasterBufferAndPrint [20:26:16]line Счет N : (1)593775 [20:26:16]line ИНН: 02508201610067 [20:26:16]line Контрольно-Кассовый Чек [20:26:16]line ПРОДАЖА [20:26:16]line ТРК (МРК, ГНК) : 32 [20:26:16]line Товар: 2710124130 [20:26:16]line Аи-92-К-5 [20:26:16]line 5.900 * 67.80 [20:26:16]line = 400.02 [20:26:16]line НДС 12% НСП 1% [20:26:16]line > о реализуемом товаре [20:26:16]line ОКРУГЛЕНИЕ: -0.02 [20:26:16]line ИТОГО: 400.00 [20:26:16]line Внесено: 400.00 [20:26:16]line СДАЧА: 0.00 [20:26:16]line НСП 1% : 3.54 [20:26:16]line НДС 12% : 42.48 [20:26:16]line Наличными: 400.00 [20:26:16]line Безнал.: 0.00 [20:26:16]line Место: АЗС № 136 "Партнер Нефть" [20:26:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:26:16]line СНО: Общий режим [20:26:16]line Чек 392 20.08.2024 20:26 [20:26:16]line Смена: 453 ФФД: 1.0 [20:26:16]line ЗНМ: 0300000067 [20:26:16]line РНМ: 0000000000092569 [20:26:16]line Версия ККМ: 001 [20:26:16]line ФМ: 0000000000871776 [20:26:16]line ФД: 139920 [20:26:16]line ФПД: 247304284976989 [20:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T202615&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139920&fm=247304284976989&tin=02508201610067®Number=0000000000092569&sum=40000 [20:26:17]OFD Sender: Processing packet 139920 [packets to send 137, broken 136] [20:26:17]ProducePacketName [20:26:17]name=ofd_packets/00139920 [20:26:17]OFD Sender: To server: pG, [20:26:17]CommunicateWithHost lk.salyk.kg:30040 [20:26:17]ConnectInit lk.salyk.kg [20:26:17]written 0, free lines is 4095 [20:26:17]Connected sock=10 [20:26:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E 40 07 01 59 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 E7 FB C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 22 02 00 35 04 06 00 E0 EC 04 0E B7 5D F7 8F 8F AF CD E1 24 E6 [20:26:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 26 1D 47 00 6F 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 22 02 00 F4 03 04 00 79 A2 C4 66 B6 04 01 00 00 98 05 CA 69 59 22 15 D1 [20:26:17]CommunicateWithHost err = 0 [20:26:17]CheckOFDResponse [20:26:17]1017 (14) - 77093643461234 [20:26:17]1041 (16) - 0000000000871776 [20:26:17]1040 (4) - 139920 [20:26:17]1012 (4) - 20.08.2024 14:04 [20:26:17]1206 (1) - 0 [20:26:17]OFD Sender: Remove packet 139920 [20:26:17]ProducePacketName [20:26:17]name=ofd_packets/00139920 [20:26:17]NVStorageDeleteData [20:26:17]Write to MH i2c: 01 00 00 C9 03 CC [20:26:17]Write i2c OK [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: 01 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: 01 07 00 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 D6 0C B5 [20:26:17]RasterBufferAndPrint [20:26:17]line [20:26:17]line [20:26:17]line [20:26:17]line [20:26:17]line [20:26:17]written 0, free lines is 3290 [20:26:17]MH_Cut [20:26:17]Write to MH i2c: D1 01 00 D0 03 01 A5 [20:26:17]Write i2c OK [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: D1 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: D1 01 00 [20:26:17]MH_I2C_Read... [20:26:17]Read from MH i2c: D1 01 00 D0 03 00 A4 [20:26:17]Write to MH i2c: 01 00 00 D1 03 D4 [20:26:17]Write i2c OK [20:26:17]MH_I2C_Read... [20:26:17]OFD Sender: No OFD packet to send [20:26:18]*** Cut start [20:26:18]*** Partial cut [20:26:18]*** CUTSNS_PIN = 1 [20:26:18]*** CUTSNS_PIN = 0 [20:26:18]*** Brake cut motor [20:26:18]Read from MH i2c: 01 [20:26:18]MH_I2C_Read... [20:26:18]*** Stop cut motor [20:26:18]*** Cut end [20:26:18]Read from MH i2c: 01 07 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 FF 0F E9 [20:26:18]process_action close_receipt done [20:26:18]requested_data is exist [20:26:18]produce_requested_data [20:26:18]requested_item fm.sn is exist - process it [20:26:18]wFMCommunicate request_size=4 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 11 00 00 [20:26:18]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:18]Read from MH i2c: E2 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 17 00 [20:26:18]MH_I2C_Read... [20:26:18]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [20:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:26:18]wFMCommunicate OK [20:26:18]requested_item fd.num is exist - process it [20:26:18]SAM_PROTO_GetFieldsCounters [20:26:18]wFMCommunicate request_size=4 [20:26:18]MH_SAM_APDU [20:26:18]CAPDU: 80 13 00 00 [20:26:18]Write to MH i2c: E2 08 00 D3 03 80 13 00 00 00 00 00 00 52 [20:26:18]Write i2c OK [20:26:18]MH_I2C_Read... [20:26:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:19]Read from MH i2c: E2 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 62 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 62 00 D3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 22 02 00 0E 04 04 00 C5 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 92 [20:26:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 22 02 00 0E 04 04 00 C5 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:26:19]wFMCommunicate OK [20:26:19]SAM_PROTO_GetFieldsCounters done [20:26:19]requested_item shift.num is exist - process it [20:26:19]requested_item shift.opened is exist - process it [20:26:19]req_shift_opened [20:26:19]FM_GetShiftState [20:26:19]SAM_PROTO_GetShiftState [20:26:19]wFMCommunicate request_size=4 [20:26:19]MH_SAM_APDU [20:26:19]CAPDU: 80 13 01 00 [20:26:19]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [20:26:19]Write i2c OK [20:26:19]MH_I2C_Read... [20:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:19]Read from MH i2c: E2 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 0E 00 [20:26:19]MH_I2C_Read... [20:26:19]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E5 [20:26:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:26:19]wFMCommunicate OK [20:26:19]SAM_PROTO_GetShiftState done [20:26:19]FM_GetShiftState done [20:26:19]req_shift_opened done [20:26:19]requested_item shift.open_date is exist - process it [20:26:19]req_shift_open_date [20:26:19]req_shift_open_date done [20:26:19]produce_requested_data done [20:26:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139920,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:26:19]process_action_free close_receipt [20:26:19]json_value_free [20:26:19]json_value_free done [20:26:19]process_json_proto returns [20:26:19]Send response to host [20:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139920,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:26:19]free response buf [20:26:19]execute_script done [20:26:19]execute_script returns [20:26:19]free content buf [20:26:19]Sock 9.Close socket [20:26:19]Sock 9.Thread stoped [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27: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:23]accept exits with 7 [20:28:23]New connection [20:28:23]New thread 3066764644 created [20:28:23]Thread 3066908004 joined [20:28:23]Waiting for new connection... [20:28:23] Sock 7.Parse request [20:28:23]Sock 7.Check first char [20:28:23]Sock 7.First char is OK [20:28:23]request: POST /json_proto HTTP/1.0 [20:28:23]Method: POST [20:28:23]URL: /json_proto [20:28:23]Method is POST - this is cgi request [20:28:23]url: /json_proto [20:28:23]query_string will be loaded in cgi processing [20:28:23]execute_cgi json_proto POST (null) [20:28:23]execute_cgi path=json_proto method=POST [20:28:23]POST find Content-Length [20:28:23]Host: 172.17.45.67:8080 [20:28:23]Content-Length: 677 [20:28:23]Content-Type: application/json [20:28:23] [20:28:23]POST finish read [20:28:23]Found Content-Length = 677 [20:28:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:23]execute_script... [20:28: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)593776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:23]POST & json_proto [20:28:23]process_json_proto [20:28:23]json parsed OK: [20:28:23]protocol is kg_v1.0 [20:28:23]action value=close_receipt [20:28:23]process_action close_receipt [20:28:23]cmd_close_receipt [20:28:23]MH_GetDate [20:28:23]Write to MH i2c: F0 00 00 D5 03 C7 [20:28:23]Write i2c OK [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: F0 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: F0 09 00 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: F0 09 00 D5 03 00 68 FC C4 66 5F 7F 2B 66 CD [20:28:23]GetLastDocTimeStamp 1724185575 [20:28:23]current date 1724185704 [20:28:23]FM_GetShiftState [20:28:23]SAM_PROTO_GetShiftState [20:28:23]wFMCommunicate request_size=4 [20:28:23]MH_SAM_APDU [20:28:23]CAPDU: 80 13 01 00 [20:28:23]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [20:28:23]Write i2c OK [20:28:23]MH_I2C_Read... [20:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:23]Read from MH i2c: E2 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: E2 0E 00 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E7 [20:28:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:28:23]wFMCommunicate OK [20:28:23]SAM_PROTO_GetShiftState done [20:28:23]FM_GetShiftState done [20:28:23]opened in 1724113785 [20:28:23]opened+sec_in_day 1724200185 [20:28:23]quantity*price = 30051 [20:28:23]sum+1 = 30052 [20:28:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 393 20.08.2024 20:28 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139921 ФПД: 23549482639827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T202824&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139921&fm=23549482639827&tin=02508201610067®Number=0000000000092569&sum=30000 [20:28:24]StoreToDocumentArchive [20:28:24]shift 453 fd 139921 [20:28:24]save to /storage/0453/doc_00139921 [20:28:24]save last doc name /storage/0453/doc_00139921 to /storage/kkm_last_doc_name [20:28:24]save OK [20:28:24]Clear old archive folders... [20:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:24]tlvbuf is B6F4DE60 [20:28:24]SAM_PROTO_ClearQueue [20:28:24]wFMCommunicate request_size=4 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 09 00 00 [20:28:24]Write to MH i2c: E2 08 00 E3 03 80 09 00 00 00 00 00 00 58 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [20:28:24]RAPDU: 90 00 [20:28:24]wFMCommunicate OK [20:28:24]SAM_PROTO_ClearQueue done [20:28:24]KKMCreateOFDPacket [20:28:24]OFDProtocolAddRootSTLVToBuf [20:28:24]FM_MakeSignedData [20:28:24]FM_MakeSignedData [20:28:24]SAM_PROTO_SignData [20:28:24]wFMCommunicate request_size=4 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 0D 01 02 [20:28:24]Write to MH i2c: E2 08 00 E4 03 80 0D 01 02 00 00 00 00 60 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:25]Read from MH i2c: E2 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [20:28:25]RAPDU: 90 00 [20:28:25]wFMCommunicate OK [20:28:25]wFMCommunicate request_size=255 [20:28:25]MH_SAM_APDU [20:28:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 68 FC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 22 02 00 35 04 06 00 15 [20:28:25]Write to MH i2c: E2 02 01 E5 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 68 FC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 22 02 00 35 04 06 00 15 00 00 C9 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:25]Read from MH i2c: E2 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [20:28:25]RAPDU: 90 00 [20:28:25]wFMCommunicate OK [20:28:25]wFMCommunicate request_size=10 [20:28:25]MH_SAM_APDU [20:28:25]CAPDU: 80 0D 02 02 05 6B 0A 8C 21 D3 [20:28:25]Write to MH i2c: E2 0D 00 E6 03 80 0D 02 02 05 00 6B 0A 8C 21 D3 00 00 62 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:25]Read from MH i2c: E2 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [20:28:25]RAPDU: 90 00 [20:28:25]wFMCommunicate OK [20:28:25]wFMCommunicate request_size=4 [20:28:25]MH_SAM_APDU [20:28:25]CAPDU: 80 0D 03 02 [20:28:25]Write to MH i2c: E2 08 00 E7 03 80 0D 03 02 00 00 00 00 65 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:25]Read from MH i2c: E2 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 0B 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 0B 00 E7 03 00 04 DE AD AF A1 98 03 00 90 00 E0 [20:28:25]RAPDU: 04 DE AD AF A1 98 03 00 90 00 [20:28:25]wFMCommunicate OK [20:28:25]SAM_PROTO_SignData done [20:28:25]FM_MakeSignedData done [20:28:25]CreateOFDProtocolMessage [20:28:25]wFMCommunicate request_size=4 [20:28:25]MH_SAM_APDU [20:28:25]CAPDU: 80 11 00 00 [20:28:25]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:25]Read from MH i2c: E2 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 17 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BC [20:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:28:25]wFMCommunicate OK [20:28:25]CreateOFDProtocolMessage done [20:28:25]OFDSenderStorePacket 139921 [20:28:25]StoreOFDPacket docnum=139921 [20:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B2 29 07 01 62 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 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 68 FC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 22 02 00 35 04 06 00 15 6B 0A 8C 21 D3 04 DE AD AF A1 98 03 00 [20:28:25]CheckFolder [20:28:25]dirname=/storage/ofd_packets [20:28:25]CheckFolder done [20:28:25]ProducePacketName [20:28:25]name=ofd_packets/00139921 [20:28:25]NVStorageSaveData ofd_packets/00139921 [20:28:25]File name is /storage/ofd_packets/00139921 [20:28:25]Write 301 bytes [20:28:25]NVStorageSaveData done [20:28:25]OFDSenderStorePacket done [20:28:25]KKMCreateOFDPacket done [20:28:25]NVStorageSaveData kkm_last_timestamp [20:28:25]File name is /storage/kkm_last_timestamp [20:28:25]Write 4 bytes [20:28:25]NVStorageSaveData done [20:28:25]ExternCall_PrintAddStr [20:28:25]wPrintStart [20:28:25]Write to MH i2c: 01 00 00 E9 03 EC [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: 01 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: 01 07 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 FF 0F 01 [20:28:25]RasterBufferAndPrint [20:28:25]line Счет N : (1)593776 [20:28:25]line ИНН: 02508201610067 [20:28:25]line Контрольно-Кассовый Чек [20:28:25]line ПРОДАЖА [20:28:25]line ТРК (МРК, ГНК) : 41 [20:28:25]line Товар: 2710124500 [20:28:25]line Аи-95-К-5 [20:28:25]line 4.050 * 74.20 [20:28:25]line = 300.51 [20:28:25]line НДС 12% НСП 1% [20:28:25]line > о реализуемом товаре [20:28:25]line ОКРУГЛЕНИЕ: -0.51 [20:28:25]line ИТОГО: 300.00 [20:28:25]line Внесено: 300.00 [20:28:25]line СДАЧА: 0.00 [20:28:25]line НСП 1% : 2.66 [20:28:25]line НДС 12% : 31.91 [20:28:25]line Наличными: 300.00 [20:28:25]line Безнал.: 0.00 [20:28:25]line Место: АЗС № 136 "Партнер Нефть" [20:28:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:28:25]line СНО: Общий режим [20:28:25]line Чек 393 20.08.2024 20:28 [20:28:25]line Смена: 453 ФФД: 1.0 [20:28:25]line ЗНМ: 0300000067 [20:28:25]line РНМ: 0000000000092569 [20:28:25]line Версия ККМ: 001 [20:28:25]line ФМ: 0000000000871776 [20:28:25]line ФД: 139921 [20:28:25]line ФПД: 23549482639827 [20:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T202824&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139921&fm=23549482639827&tin=02508201610067®Number=0000000000092569&sum=30000 [20:28:25]OFD Sender: Processing packet 139921 [packets to send 137, broken 136] [20:28:25]ProducePacketName [20:28:25]name=ofd_packets/00139921 [20:28:25]OFD Sender: To server: pG, [20:28:25]CommunicateWithHost lk.salyk.kg:30040 [20:28:25]ConnectInit lk.salyk.kg [20:28:25]written 0, free lines is 4095 [20:28:25]Connected sock=10 [20:28:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B2 29 07 01 62 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 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 68 FC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 22 02 00 35 04 06 00 15 6B 0A 8C 21 D3 04 DE AD AF A1 98 03 00 [20:28:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 17 98 47 00 0B B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 22 02 00 F4 03 04 00 FA A2 C4 66 B6 04 01 00 00 53 37 E8 48 C3 5D A1 38 [20:28:26]CommunicateWithHost err = 0 [20:28:26]CheckOFDResponse [20:28:26]1017 (14) - 77093643461234 [20:28:26]1041 (16) - 0000000000871776 [20:28:26]1040 (4) - 139921 [20:28:26]1012 (4) - 20.08.2024 14:06 [20:28:26]1206 (1) - 0 [20:28:26]OFD Sender: Remove packet 139921 [20:28:26]ProducePacketName [20:28:26]name=ofd_packets/00139921 [20:28:26]NVStorageDeleteData [20:28:26]Write to MH i2c: 01 00 00 14 04 18 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 DE 0C 09 [20:28:26]RasterBufferAndPrint [20:28:26]line [20:28:26]line [20:28:26]line [20:28:26]line [20:28:26]line [20:28:26]written 0, free lines is 3301 [20:28:26]MH_Cut [20:28:26]Write to MH i2c: D1 01 00 1B 04 01 F1 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: D1 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: D1 01 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: D1 01 00 1B 04 00 F0 [20:28:26]Write to MH i2c: 01 00 00 1C 04 20 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]OFD Sender: No OFD packet to send [20:28:26]*** Cut start [20:28:26]*** Partial cut [20:28:26]*** CUTSNS_PIN = 1 [20:28:26]*** CUTSNS_PIN = 0 [20:28:27]*** Brake cut motor [20:28:27]Read from MH i2c: 01 [20:28:27]MH_I2C_Read... [20:28:27]*** Stop cut motor [20:28:27]*** Cut end [20:28:27]Read from MH i2c: 01 07 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 FF 0F 35 [20:28:27]process_action close_receipt done [20:28:27]requested_data is exist [20:28:27]produce_requested_data [20:28:27]requested_item fm.sn is exist - process it [20:28:27]wFMCommunicate request_size=4 [20:28:27]MH_SAM_APDU [20:28:27]CAPDU: 80 11 00 00 [20:28:27]Write to MH i2c: E2 08 00 1D 04 80 11 00 00 00 00 00 00 9B [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:27]Read from MH i2c: E2 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 17 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 17 00 1D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [20:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:28:27]wFMCommunicate OK [20:28:27]requested_item fd.num is exist - process it [20:28:27]SAM_PROTO_GetFieldsCounters [20:28:27]wFMCommunicate request_size=4 [20:28:27]MH_SAM_APDU [20:28:27]CAPDU: 80 13 00 00 [20:28:27]Write to MH i2c: E2 08 00 1E 04 80 13 00 00 00 00 00 00 9E [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:27]Read from MH i2c: E2 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 62 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 62 00 1E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 22 02 00 0E 04 04 00 C5 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 E2 [20:28:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 22 02 00 0E 04 04 00 C5 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:28:27]wFMCommunicate OK [20:28:27]SAM_PROTO_GetFieldsCounters done [20:28:27]requested_item shift.num is exist - process it [20:28:27]requested_item shift.opened is exist - process it [20:28:27]req_shift_opened [20:28:27]FM_GetShiftState [20:28:27]SAM_PROTO_GetShiftState [20:28:27]wFMCommunicate request_size=4 [20:28:27]MH_SAM_APDU [20:28:27]CAPDU: 80 13 01 00 [20:28:27]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:27]Read from MH i2c: E2 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 0E 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 31 [20:28:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:28:27]wFMCommunicate OK [20:28:27]SAM_PROTO_GetShiftState done [20:28:27]FM_GetShiftState done [20:28:27]req_shift_opened done [20:28:27]requested_item shift.open_date is exist - process it [20:28:27]req_shift_open_date [20:28:27]req_shift_open_date done [20:28:27]produce_requested_data done [20:28:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139921,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:28:27]process_action_free close_receipt [20:28:27]json_value_free [20:28:27]json_value_free done [20:28:27]process_json_proto returns [20:28:27]Send response to host [20:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139921,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:28:27]free response buf [20:28:27]execute_script done [20:28:27]execute_script returns [20:28:27]free content buf [20:28:27]Sock 7.Close socket [20:28:27]Sock 7.Thread stoped [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]accept exits with 9 [20:30:06]New connection [20:30:06]New thread 3066908004 created [20:30:06]Thread 3066764644 joined [20:30:06]Waiting for new connection... [20:30:06] Sock 9.Parse request [20:30:06]Sock 9.Check first char [20:30:06]Sock 9.First char is OK [20:30:06]request: POST /json_proto HTTP/1.0 [20:30:06]Method: POST [20:30:06]URL: /json_proto [20:30:06]Method is POST - this is cgi request [20:30:06]url: /json_proto [20:30:06]query_string will be loaded in cgi processing [20:30:06]execute_cgi json_proto POST (null) [20:30:06]execute_cgi path=json_proto method=POST [20:30:06]POST find Content-Length [20:30:06]Host: 172.17.45.67:8080 [20:30:06]Content-Length: 677 [20:30:06]Content-Type: application/json [20:30:06] [20:30:06]POST finish read [20:30:06]Found Content-Length = 677 [20:30:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:06]execute_script... [20:30:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:06]POST & json_proto [20:30:06]process_json_proto [20:30:06]json parsed OK: [20:30:06]protocol is kg_v1.0 [20:30:06]action value=close_receipt [20:30:06]process_action close_receipt [20:30:06]cmd_close_receipt [20:30:06]MH_GetDate [20:30:06]Write to MH i2c: F0 00 00 20 04 13 [20:30:06]Write i2c OK [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: F0 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: F0 09 00 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: F0 09 00 20 04 00 CE FC C4 66 5F 7F 2B 66 7F [20:30:06]GetLastDocTimeStamp 1724185704 [20:30:06]current date 1724185806 [20:30:06]FM_GetShiftState [20:30:06]SAM_PROTO_GetShiftState [20:30:06]wFMCommunicate request_size=4 [20:30:06]MH_SAM_APDU [20:30:06]CAPDU: 80 13 01 00 [20:30:06]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [20:30:06]Write i2c OK [20:30:06]MH_I2C_Read... [20:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:06]Read from MH i2c: E2 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: E2 0E 00 [20:30:06]MH_I2C_Read... [20:30:06]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 33 [20:30:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:30:06]wFMCommunicate OK [20:30:06]SAM_PROTO_GetShiftState done [20:30:06]FM_GetShiftState done [20:30:06]opened in 1724113785 [20:30:06]opened+sec_in_day 1724200185 [20:30:06]quantity*price = 20001 [20:30:06]sum+1 = 20002 [20:30:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 394 20.08.2024 20:30 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139922 ФПД: 200135338815834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T203006&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139922&fm=200135338815834&tin=02508201610067®Number=0000000000092569&sum=20000 [20:30:07]StoreToDocumentArchive [20:30:07]shift 453 fd 139922 [20:30:07]save to /storage/0453/doc_00139922 [20:30:07]save last doc name /storage/0453/doc_00139922 to /storage/kkm_last_doc_name [20:30:07]save OK [20:30:07]Clear old archive folders... [20:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:07]tlvbuf is 00A57480 [20:30:07]SAM_PROTO_ClearQueue [20:30:07]wFMCommunicate request_size=4 [20:30:07]MH_SAM_APDU [20:30:07]CAPDU: 80 09 00 00 [20:30:07]Write to MH i2c: E2 08 00 2E 04 80 09 00 00 00 00 00 00 A4 [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:07]Read from MH i2c: E2 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [20:30:07]RAPDU: 90 00 [20:30:07]wFMCommunicate OK [20:30:07]SAM_PROTO_ClearQueue done [20:30:07]KKMCreateOFDPacket [20:30:07]OFDProtocolAddRootSTLVToBuf [20:30:07]FM_MakeSignedData [20:30:07]FM_MakeSignedData [20:30:07]SAM_PROTO_SignData [20:30:07]wFMCommunicate request_size=4 [20:30:07]MH_SAM_APDU [20:30:07]CAPDU: 80 0D 01 02 [20:30:07]Write to MH i2c: E2 08 00 2F 04 80 0D 01 02 00 00 00 00 AC [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:07]Read from MH i2c: E2 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [20:30:07]RAPDU: 90 00 [20:30:07]wFMCommunicate OK [20:30:07]wFMCommunicate request_size=255 [20:30:07]MH_SAM_APDU [20:30:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 CE FC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 22 02 00 35 04 06 00 B6 [20:30:07]Write to MH i2c: E2 02 01 30 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 CE FC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 22 02 00 35 04 06 00 B6 00 00 E8 [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 [20:30:07]MH_I2C_Read... [20:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:07]Read from MH i2c: E2 03 00 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [20:30:07]RAPDU: 90 00 [20:30:07]wFMCommunicate OK [20:30:07]wFMCommunicate request_size=10 [20:30:07]MH_SAM_APDU [20:30:07]CAPDU: 80 0D 02 02 05 05 A3 C6 F1 5A [20:30:07]Write to MH i2c: E2 0D 00 31 04 80 0D 02 02 05 00 05 A3 C6 F1 5A 00 00 72 [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:07]Read from MH i2c: E2 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 [20:30:07]MH_I2C_Read... [20:30:07]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [20:30:07]RAPDU: 90 00 [20:30:07]wFMCommunicate OK [20:30:07]wFMCommunicate request_size=4 [20:30:07]MH_SAM_APDU [20:30:07]CAPDU: 80 0D 03 02 [20:30:07]Write to MH i2c: E2 08 00 32 04 80 0D 03 02 00 00 00 00 B1 [20:30:07]Write i2c OK [20:30:07]MH_I2C_Read... [20:30:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:08]Read from MH i2c: E2 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 0B 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 0B 00 32 04 00 DE 6F F3 3E 44 B2 F9 1B 90 00 3A [20:30:08]RAPDU: DE 6F F3 3E 44 B2 F9 1B 90 00 [20:30:08]wFMCommunicate OK [20:30:08]SAM_PROTO_SignData done [20:30:08]FM_MakeSignedData done [20:30:08]CreateOFDProtocolMessage [20:30:08]wFMCommunicate request_size=4 [20:30:08]MH_SAM_APDU [20:30:08]CAPDU: 80 11 00 00 [20:30:08]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:08]Read from MH i2c: E2 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 17 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 08 [20:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:30:08]wFMCommunicate OK [20:30:08]CreateOFDProtocolMessage done [20:30:08]OFDSenderStorePacket 139922 [20:30:08]StoreOFDPacket docnum=139922 [20:30:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 71 07 01 20 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 CE FC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 22 02 00 35 04 06 00 B6 05 A3 C6 F1 5A DE 6F F3 3E 44 B2 F9 1B [20:30:08]CheckFolder [20:30:08]dirname=/storage/ofd_packets [20:30:08]CheckFolder done [20:30:08]ProducePacketName [20:30:08]name=ofd_packets/00139922 [20:30:08]NVStorageSaveData ofd_packets/00139922 [20:30:08]File name is /storage/ofd_packets/00139922 [20:30:08]Write 301 bytes [20:30:08]NVStorageSaveData done [20:30:08]OFDSenderStorePacket done [20:30:08]KKMCreateOFDPacket done [20:30:08]NVStorageSaveData kkm_last_timestamp [20:30:08]File name is /storage/kkm_last_timestamp [20:30:08]Write 4 bytes [20:30:08]NVStorageSaveData done [20:30:08]ExternCall_PrintAddStr [20:30:08]wPrintStart [20:30:08]Write to MH i2c: 01 00 00 34 04 38 [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 07 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 FF 0F 4D [20:30:08]RasterBufferAndPrint [20:30:08]line Счет N : (1)593777 [20:30:08]line ИНН: 02508201610067 [20:30:08]line Контрольно-Кассовый Чек [20:30:08]line ПРОДАЖА [20:30:08]line ТРК (МРК, ГНК) : 32 [20:30:08]line Товар: 2710124130 [20:30:08]line Аи-92-К-5 [20:30:08]line 2.950 * 67.80 [20:30:08]line = 200.01 [20:30:08]line НДС 12% НСП 1% [20:30:08]line > о реализуемом товаре [20:30:08]line ОКРУГЛЕНИЕ: -0.01 [20:30:08]line ИТОГО: 200.00 [20:30:08]line Внесено: 200.00 [20:30:08]line СДАЧА: 0.00 [20:30:08]line НСП 1% : 1.77 [20:30:08]line НДС 12% : 21.24 [20:30:08]line Наличными: 200.00 [20:30:08]line Безнал.: 0.00 [20:30:08]line Место: АЗС № 136 "Партнер Нефть" [20:30:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:30:08]line СНО: Общий режим [20:30:08]line Чек 394 20.08.2024 20:30 [20:30:08]line Смена: 453 ФФД: 1.0 [20:30:08]line ЗНМ: 0300000067 [20:30:08]line РНМ: 0000000000092569 [20:30:08]line Версия ККМ: 001 [20:30:08]line ФМ: 0000000000871776 [20:30:08]line ФД: 139922 [20:30:08]line ФПД: 200135338815834 [20:30:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T203006&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139922&fm=200135338815834&tin=02508201610067®Number=0000000000092569&sum=20000 [20:30:08]OFD Sender: Processing packet 139922 [packets to send 137, broken 136] [20:30:08]ProducePacketName [20:30:08]name=ofd_packets/00139922 [20:30:08]OFD Sender: To server: pG, [20:30:08]CommunicateWithHost lk.salyk.kg:30040 [20:30:08]ConnectInit lk.salyk.kg [20:30:08]written 0, free lines is 4095 [20:30:08]Connected sock=10 [20:30:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 71 07 01 20 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 CE FC C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 22 02 00 35 04 06 00 B6 05 A3 C6 F1 5A DE 6F F3 3E 44 B2 F9 1B [20:30:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1E EC 47 00 A0 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 22 02 00 F4 03 04 00 61 A3 C4 66 B6 04 01 00 00 81 15 F2 7D 6D C8 C8 2B [20:30:08]CommunicateWithHost err = 0 [20:30:08]CheckOFDResponse [20:30:08]1017 (14) - 77093643461234 [20:30:08]1041 (16) - 0000000000871776 [20:30:08]1040 (4) - 139922 [20:30:08]1012 (4) - 20.08.2024 14:08 [20:30:08]1206 (1) - 0 [20:30:08]OFD Sender: Remove packet 139922 [20:30:08]ProducePacketName [20:30:08]name=ofd_packets/00139922 [20:30:08]NVStorageDeleteData [20:30:08]Write to MH i2c: 01 00 00 5F 04 63 [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 07 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: 01 07 00 5F 04 00 00 00 00 00 D0 0C 46 [20:30:08]RasterBufferAndPrint [20:30:08]line [20:30:08]line [20:30:08]line [20:30:08]line [20:30:08]line [20:30:08]written 0, free lines is 3288 [20:30:08]MH_Cut [20:30:08]Write to MH i2c: D1 01 00 66 04 01 3C [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: D1 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: D1 01 00 [20:30:08]MH_I2C_Read... [20:30:08]Read from MH i2c: D1 01 00 66 04 00 3B [20:30:08]Write to MH i2c: 01 00 00 67 04 6B [20:30:08]Write i2c OK [20:30:08]MH_I2C_Read... [20:30:09]OFD Sender: No OFD packet to send [20:30:09]*** Cut start [20:30:09]*** Partial cut [20:30:09]*** CUTSNS_PIN = 1 [20:30:09]*** CUTSNS_PIN = 0 [20:30:09]*** Brake cut motor [20:30:10]Read from MH i2c: 01 [20:30:10]MH_I2C_Read... [20:30:10]*** Stop cut motor [20:30:10]*** Cut end [20:30:10]Read from MH i2c: 01 07 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 FF 0F 80 [20:30:10]process_action close_receipt done [20:30:10]requested_data is exist [20:30:10]produce_requested_data [20:30:10]requested_item fm.sn is exist - process it [20:30:10]wFMCommunicate request_size=4 [20:30:10]MH_SAM_APDU [20:30:10]CAPDU: 80 11 00 00 [20:30:10]Write to MH i2c: E2 08 00 68 04 80 11 00 00 00 00 00 00 E6 [20:30:10]Write i2c OK [20:30:10]MH_I2C_Read... [20:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:10]Read from MH i2c: E2 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 17 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 17 00 68 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3D [20:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:30:10]wFMCommunicate OK [20:30:10]requested_item fd.num is exist - process it [20:30:10]SAM_PROTO_GetFieldsCounters [20:30:10]wFMCommunicate request_size=4 [20:30:10]MH_SAM_APDU [20:30:10]CAPDU: 80 13 00 00 [20:30:10]Write to MH i2c: E2 08 00 69 04 80 13 00 00 00 00 00 00 E9 [20:30:10]Write i2c OK [20:30:10]MH_I2C_Read... [20:30:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:10]Read from MH i2c: E2 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 62 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 62 00 69 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 22 02 00 0E 04 04 00 C5 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 31 [20:30:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 22 02 00 0E 04 04 00 C5 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:30:10]wFMCommunicate OK [20:30:10]SAM_PROTO_GetFieldsCounters done [20:30:10]requested_item shift.num is exist - process it [20:30:10]requested_item shift.opened is exist - process it [20:30:10]req_shift_opened [20:30:10]FM_GetShiftState [20:30:10]SAM_PROTO_GetShiftState [20:30:10]wFMCommunicate request_size=4 [20:30:10]MH_SAM_APDU [20:30:10]CAPDU: 80 13 01 00 [20:30:10]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [20:30:10]Write i2c OK [20:30:10]MH_I2C_Read... [20:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:10]Read from MH i2c: E2 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 0E 00 [20:30:10]MH_I2C_Read... [20:30:10]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7C [20:30:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:30:10]wFMCommunicate OK [20:30:10]SAM_PROTO_GetShiftState done [20:30:10]FM_GetShiftState done [20:30:10]req_shift_opened done [20:30:10]requested_item shift.open_date is exist - process it [20:30:10]req_shift_open_date [20:30:10]req_shift_open_date done [20:30:10]produce_requested_data done [20:30:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139922,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:30:10]process_action_free close_receipt [20:30:10]json_value_free [20:30:10]json_value_free done [20:30:10]process_json_proto returns [20:30:10]Send response to host [20:30:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139922,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:30:10]free response buf [20:30:10]execute_script done [20:30:10]execute_script returns [20:30:10]free content buf [20:30:10]Sock 9.Close socket [20:30:10]Sock 9.Thread stoped [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:07]accept exits with 7 [20:33:07]New connection [20:33:07]New thread 3066764644 created [20:33:07]Thread 3066908004 joined [20:33:07]Waiting for new connection... [20:33:07] Sock 7.Parse request [20:33:07]Sock 7.Check first char [20:33:07]Sock 7.First char is OK [20:33:07]request: POST /json_proto HTTP/1.0 [20:33:07]Method: POST [20:33:07]URL: /json_proto [20:33:07]Method is POST - this is cgi request [20:33:07]url: /json_proto [20:33:07]query_string will be loaded in cgi processing [20:33:07]execute_cgi json_proto POST (null) [20:33:07]execute_cgi path=json_proto method=POST [20:33:07]POST find Content-Length [20:33:07]Host: 172.17.45.67:8080 [20:33:07]Content-Length: 677 [20:33:07]Content-Type: application/json [20:33:07] [20:33:07]POST finish read [20:33:07]Found Content-Length = 677 [20:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.130, "sum" : 415.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 415.00, "total" : 415.00, "payments": [ { "type": 0, "sum" : 415.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:07]execute_script... [20:33: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)593778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.130, "sum" : 415.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 415.00, "total" : 415.00, "payments": [ { "type": 0, "sum" : 415.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:07]POST & json_proto [20:33:07]process_json_proto [20:33:07]json parsed OK: [20:33:07]protocol is kg_v1.0 [20:33:07]action value=close_receipt [20:33:07]process_action close_receipt [20:33:07]cmd_close_receipt [20:33:07]MH_GetDate [20:33:07]Write to MH i2c: F0 00 00 6B 04 5E [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: F0 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: F0 09 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: F0 09 00 6B 04 00 83 FD C4 66 5F 7F 2B 66 80 [20:33:07]GetLastDocTimeStamp 1724185806 [20:33:07]current date 1724185987 [20:33:07]FM_GetShiftState [20:33:07]SAM_PROTO_GetShiftState [20:33:07]wFMCommunicate request_size=4 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 13 01 00 [20:33:07]Write to MH i2c: E2 08 00 6C 04 80 13 01 00 00 00 00 00 ED [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 0E 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 0E 00 6C 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 7E [20:33:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:33:07]wFMCommunicate OK [20:33:07]SAM_PROTO_GetShiftState done [20:33:07]FM_GetShiftState done [20:33:07]opened in 1724113785 [20:33:07]opened+sec_in_day 1724200185 [20:33:07]quantity*price = 41561 [20:33:07]sum+1 = 41562 [20:33:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 415.00 Внесено: 415.00 СДАЧА: 0.00 НСП 1% : 3.68 НДС 12% : 44.14 Наличными: 415.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 395 20.08.2024 20:33 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139923 ФПД: 165676116885963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T203307&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139923&fm=165676116885963&tin=02508201610067®Number=0000000000092569&sum=41500 [20:33:08]StoreToDocumentArchive [20:33:08]shift 453 fd 139923 [20:33:08]save to /storage/0453/doc_00139923 [20:33:08]save last doc name /storage/0453/doc_00139923 to /storage/kkm_last_doc_name [20:33:08]save OK [20:33:08]Clear old archive folders... [20:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:08]tlvbuf is 00A78420 [20:33:08]SAM_PROTO_ClearQueue [20:33:08]wFMCommunicate request_size=4 [20:33:08]MH_SAM_APDU [20:33:08]CAPDU: 80 09 00 00 [20:33:08]Write to MH i2c: E2 08 00 79 04 80 09 00 00 00 00 00 00 EF [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:08]Read from MH i2c: E2 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 03 00 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [20:33:08]RAPDU: 90 00 [20:33:08]wFMCommunicate OK [20:33:08]SAM_PROTO_ClearQueue done [20:33:08]KKMCreateOFDPacket [20:33:08]OFDProtocolAddRootSTLVToBuf [20:33:08]FM_MakeSignedData [20:33:08]FM_MakeSignedData [20:33:08]SAM_PROTO_SignData [20:33:08]wFMCommunicate request_size=4 [20:33:08]MH_SAM_APDU [20:33:08]CAPDU: 80 0D 01 02 [20:33:08]Write to MH i2c: E2 08 00 7A 04 80 0D 01 02 00 00 00 00 F7 [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:08]Read from MH i2c: E2 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 03 00 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [20:33:08]RAPDU: 90 00 [20:33:08]wFMCommunicate OK [20:33:08]wFMCommunicate request_size=255 [20:33:08]MH_SAM_APDU [20:33:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 59 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 11 00 00 00 00 07 04 06 00 1C A2 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 83 FD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 22 02 00 35 04 06 00 96 [20:33:08]Write to MH i2c: E2 02 01 7B 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 59 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 11 00 00 00 00 07 04 06 00 1C A2 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 83 FD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 22 02 00 35 04 06 00 96 00 00 2A [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [20:33:09]RAPDU: 90 00 [20:33:09]wFMCommunicate OK [20:33:09]wFMCommunicate request_size=10 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 0D 02 02 05 AE 7A 18 41 CB [20:33:09]Write to MH i2c: E2 0D 00 7C 04 80 0D 02 02 05 00 AE 7A 18 41 CB 00 00 50 [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:09]Read from MH i2c: E2 03 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [20:33:09]RAPDU: 90 00 [20:33:09]wFMCommunicate OK [20:33:09]wFMCommunicate request_size=4 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 0D 03 02 [20:33:09]Write to MH i2c: E2 08 00 7D 04 80 0D 03 02 00 00 00 00 FC [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 0B 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 0B 00 7D 04 00 30 8A 2D 43 B2 61 49 13 90 00 96 [20:33:09]RAPDU: 30 8A 2D 43 B2 61 49 13 90 00 [20:33:09]wFMCommunicate OK [20:33:09]SAM_PROTO_SignData done [20:33:09]FM_MakeSignedData done [20:33:09]CreateOFDProtocolMessage [20:33:09]wFMCommunicate request_size=4 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 11 00 00 [20:33:09]Write to MH i2c: E2 08 00 7E 04 80 11 00 00 00 00 00 00 FC [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 17 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 17 00 7E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [20:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:33:09]wFMCommunicate OK [20:33:09]CreateOFDProtocolMessage done [20:33:09]OFDSenderStorePacket 139923 [20:33:09]StoreOFDPacket docnum=139923 [20:33:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 59 B5 07 01 A3 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 59 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 11 00 00 00 00 07 04 06 00 1C A2 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 83 FD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 22 02 00 35 04 06 00 96 AE 7A 18 41 CB 30 8A 2D 43 B2 61 49 13 [20:33:09]CheckFolder [20:33:09]dirname=/storage/ofd_packets [20:33:09]CheckFolder done [20:33:09]ProducePacketName [20:33:09]name=ofd_packets/00139923 [20:33:09]NVStorageSaveData ofd_packets/00139923 [20:33:09]File name is /storage/ofd_packets/00139923 [20:33:09]Write 301 bytes [20:33:09]NVStorageSaveData done [20:33:09]OFDSenderStorePacket done [20:33:09]KKMCreateOFDPacket done [20:33:09]NVStorageSaveData kkm_last_timestamp [20:33:09]File name is /storage/kkm_last_timestamp [20:33:09]Write 4 bytes [20:33:09]NVStorageSaveData done [20:33:09]ExternCall_PrintAddStr [20:33:09]wPrintStart [20:33:09]Write to MH i2c: 01 00 00 7F 04 83 [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: 01 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: 01 07 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 FF 0F 98 [20:33:09]RasterBufferAndPrint [20:33:09]line Счет N : (1)593778 [20:33:09]line ИНН: 02508201610067 [20:33:09]line Контрольно-Кассовый Чек [20:33:09]line ПРОДАЖА [20:33:09]line ТРК (МРК, ГНК) : 52 [20:33:09]line Товар: 2710124130 [20:33:09]line Аи-92-К-5 [20:33:09]line 6.130 * 67.80 [20:33:09]line = 415.61 [20:33:09]line НДС 12% НСП 1% [20:33:09]line > о реализуемом товаре [20:33:09]line ОКРУГЛЕНИЕ: -0.61 [20:33:09]line ИТОГО: 415.00 [20:33:09]line Внесено: 415.00 [20:33:09]line СДАЧА: 0.00 [20:33:09]line НСП 1% : 3.68 [20:33:09]line НДС 12% : 44.14 [20:33:09]line Наличными: 415.00 [20:33:09]line Безнал.: 0.00 [20:33:09]line Место: АЗС № 136 "Партнер Нефть" [20:33:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:33:09]line СНО: Общий режим [20:33:09]line Чек 395 20.08.2024 20:33 [20:33:09]line Смена: 453 ФФД: 1.0 [20:33:09]line ЗНМ: 0300000067 [20:33:09]line РНМ: 0000000000092569 [20:33:09]line Версия ККМ: 001 [20:33:09]line ФМ: 0000000000871776 [20:33:09]line ФД: 139923 [20:33:09]line ФПД: 165676116885963 [20:33:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T203307&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139923&fm=165676116885963&tin=02508201610067®Number=0000000000092569&sum=41500 [20:33:09]written 0, free lines is 4095 [20:33:09]OFD Sender: Processing packet 139923 [packets to send 137, broken 136] [20:33:09]ProducePacketName [20:33:09]name=ofd_packets/00139923 [20:33:09]OFD Sender: To server: pG, [20:33:09]CommunicateWithHost lk.salyk.kg:30040 [20:33:09]ConnectInit lk.salyk.kg [20:33:09]Connected sock=10 [20:33:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 59 B5 07 01 A3 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 59 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 11 00 00 00 00 07 04 06 00 1C A2 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 83 FD C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 22 02 00 35 04 06 00 96 AE 7A 18 41 CB 30 8A 2D 43 B2 61 49 13 [20:33:10]Write to MH i2c: 01 00 00 AA 04 AE [20:33:10]Write i2c OK [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: 01 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: 01 07 00 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: 01 07 00 AA 04 00 00 00 00 00 DE 0C 9F [20:33:10]RasterBufferAndPrint [20:33:10]line [20:33:10]line [20:33:10]line [20:33:10]line [20:33:10]line [20:33:10]written 0, free lines is 3301 [20:33:10]MH_Cut [20:33:10]Write to MH i2c: D1 01 00 B1 04 01 87 [20:33:10]Write i2c OK [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: D1 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: D1 01 00 [20:33:10]MH_I2C_Read... [20:33:10]Read from MH i2c: D1 01 00 B1 04 00 86 [20:33:10]Write to MH i2c: 01 00 00 B2 04 B6 [20:33:10]Write i2c OK [20:33:10]MH_I2C_Read... [20:33:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2E CD 47 00 A3 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 22 02 00 F4 03 04 00 16 A4 C4 66 B6 04 01 00 00 57 C8 B3 57 6D 3F 1E 4F [20:33:10]CommunicateWithHost err = 0 [20:33:10]CheckOFDResponse [20:33:10]1017 (14) - 77093643461234 [20:33:10]1041 (16) - 0000000000871776 [20:33:10]1040 (4) - 139923 [20:33:10]1012 (4) - 20.08.2024 14:11 [20:33:10]1206 (1) - 0 [20:33:10]OFD Sender: Remove packet 139923 [20:33:10]ProducePacketName [20:33:10]name=ofd_packets/00139923 [20:33:10]NVStorageDeleteData [20:33:10]OFD Sender: No OFD packet to send [20:33:10]*** Cut start [20:33:10]*** Partial cut [20:33:10]*** CUTSNS_PIN = 1 [20:33:10]*** CUTSNS_PIN = 0 [20:33:11]*** Brake cut motor [20:33:11]Read from MH i2c: 01 [20:33:11]MH_I2C_Read... [20:33:11]*** Stop cut motor [20:33:11]*** Cut end [20:33:11]Read from MH i2c: 01 07 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: 01 07 00 B2 04 00 00 00 00 00 FF 0F CB [20:33:11]process_action close_receipt done [20:33:11]requested_data is exist [20:33:11]produce_requested_data [20:33:11]requested_item fm.sn is exist - process it [20:33:11]wFMCommunicate request_size=4 [20:33:11]MH_SAM_APDU [20:33:11]CAPDU: 80 11 00 00 [20:33:11]Write to MH i2c: E2 08 00 B3 04 80 11 00 00 00 00 00 00 31 [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:11]Read from MH i2c: E2 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 17 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 17 00 B3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [20:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:33:11]wFMCommunicate OK [20:33:11]requested_item fd.num is exist - process it [20:33:11]SAM_PROTO_GetFieldsCounters [20:33:11]wFMCommunicate request_size=4 [20:33:11]MH_SAM_APDU [20:33:11]CAPDU: 80 13 00 00 [20:33:11]Write to MH i2c: E2 08 00 B4 04 80 13 00 00 00 00 00 00 34 [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:11]Read from MH i2c: E2 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 62 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 62 00 B4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 22 02 00 0E 04 04 00 C5 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 80 [20:33:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 22 02 00 0E 04 04 00 C5 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:33:11]wFMCommunicate OK [20:33:11]SAM_PROTO_GetFieldsCounters done [20:33:11]requested_item shift.num is exist - process it [20:33:11]requested_item shift.opened is exist - process it [20:33:11]req_shift_opened [20:33:11]FM_GetShiftState [20:33:11]SAM_PROTO_GetShiftState [20:33:11]wFMCommunicate request_size=4 [20:33:11]MH_SAM_APDU [20:33:11]CAPDU: 80 13 01 00 [20:33:11]Write to MH i2c: E2 08 00 B5 04 80 13 01 00 00 00 00 00 36 [20:33:11]Write i2c OK [20:33:11]MH_I2C_Read... [20:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:11]Read from MH i2c: E2 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 0E 00 [20:33:11]MH_I2C_Read... [20:33:11]Read from MH i2c: E2 0E 00 B5 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C7 [20:33:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:33:11]wFMCommunicate OK [20:33:11]SAM_PROTO_GetShiftState done [20:33:11]FM_GetShiftState done [20:33:11]req_shift_opened done [20:33:11]requested_item shift.open_date is exist - process it [20:33:11]req_shift_open_date [20:33:11]req_shift_open_date done [20:33:11]produce_requested_data done [20:33:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139923,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:33:11]process_action_free close_receipt [20:33:11]json_value_free [20:33:11]json_value_free done [20:33:11]process_json_proto returns [20:33:11]Send response to host [20:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139923,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:33:11]free response buf [20:33:11]execute_script done [20:33:11]execute_script returns [20:33:11]free content buf [20:33:11]Sock 7.Close socket [20:33:11]Sock 7.Thread stoped [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:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:16]int [20:38:16]Write to MH i2c: 01 00 00 B6 04 BA [20:38:16]*** FLAG_PRN_KEY set [20:38:16]Write i2c OK [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: 01 [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: 01 07 00 [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: 01 07 00 B6 04 00 08 00 00 00 FF 0F D7 [20:38:16]state=0 [20:38:16]Key pressed [20:38:16]Feed [20:38:16]Write to MH i2c: D8 00 00 B7 04 92 [20:38:16]Write i2c OK [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: D8 [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: D8 01 00 [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: D8 01 00 B7 04 00 93 [20:38:16]int [20:38:16]Write to MH i2c: 01 00 00 B8 04 BC [20:38:16]Write i2c OK [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: 01 [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: 01 07 00 [20:38:16]MH_I2C_Read... [20:38:16]Read from MH i2c: 01 07 00 B8 04 00 48 00 00 00 3C 00 47 [20:38:16]state=2 [20:38:16]Key pressed [20:38:17]int [20:38:17]Write to MH i2c: 01 00 00 B9 04 BD [20:38:17]*** FLAG_PRN_KEY reset [20:38:17]Write i2c OK [20:38:17]MH_I2C_Read... [20:38:17]Read from MH i2c: 01 [20:38:17]MH_I2C_Read... [20:38:17]Read from MH i2c: 01 07 00 [20:38:17]MH_I2C_Read... [20:38:17]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 F5 0F C8 [20:38:17]state=2 [20:38:17]Stop feed [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:45]accept exits with 9 [20:38:45]New connection [20:38:45]New thread 3066908004 created [20:38:45]Thread 3066764644 joined [20:38:45]Waiting for new connection... [20:38:45] Sock 9.Parse request [20:38:45]Sock 9.Check first char [20:38:45]Sock 9.First char is OK [20:38:45]request: POST /json_proto HTTP/1.0 [20:38:45]Method: POST [20:38:45]URL: /json_proto [20:38:45]Method is POST - this is cgi request [20:38:45]url: /json_proto [20:38:45]query_string will be loaded in cgi processing [20:38:45]execute_cgi json_proto POST (null) [20:38:45]execute_cgi path=json_proto method=POST [20:38:45]POST find Content-Length [20:38:45]Host: 172.17.45.67:8080 [20:38:45]Content-Length: 797 [20:38:45]Content-Type: application/json [20:38:45] [20:38:45]POST finish read [20:38:45]Found Content-Length = 797 [20:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 38.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:45]execute_script... [20:38: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)593779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 38.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:45]POST & json_proto [20:38:45]process_json_proto [20:38:45]json parsed OK: [20:38:45]protocol is kg_v1.0 [20:38:45]action value=close_receipt [20:38:45]process_action close_receipt [20:38:45]cmd_close_receipt [20:38:45]MH_GetDate [20:38:45]Write to MH i2c: F0 00 00 BA 04 AD [20:38:45]Write i2c OK [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: F0 [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: F0 09 00 [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: F0 09 00 BA 04 00 D6 FE C4 66 5F 7F 2B 66 23 [20:38:45]GetLastDocTimeStamp 1724185987 [20:38:45]current date 1724186326 [20:38:45]FM_GetShiftState [20:38:45]SAM_PROTO_GetShiftState [20:38:45]wFMCommunicate request_size=4 [20:38:45]MH_SAM_APDU [20:38:45]CAPDU: 80 13 01 00 [20:38:45]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [20:38:45]Write i2c OK [20:38:45]MH_I2C_Read... [20:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:45]Read from MH i2c: E2 [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: E2 0E 00 [20:38:45]MH_I2C_Read... [20:38:45]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CD [20:38:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:38:45]wFMCommunicate OK [20:38:45]SAM_PROTO_GetShiftState done [20:38:45]FM_GetShiftState done [20:38:45]opened in 1724113785 [20:38:45]opened+sec_in_day 1724200185 [20:38:45]quantity*price = 0 [20:38:45]sum+1 = 1 [20:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 396 20.08.2024 20:38 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139924 ФПД: 63329285576405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T203846&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139924&fm=63329285576405&tin=02508201610067®Number=0000000000092569&sum=0 [20:38:47]StoreToDocumentArchive [20:38:47]shift 453 fd 139924 [20:38:47]save to /storage/0453/doc_00139924 [20:38:47]save last doc name /storage/0453/doc_00139924 to /storage/kkm_last_doc_name [20:38:47]save OK [20:38:47]Clear old archive folders... [20:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:38:47]tlvbuf is B6ECF8C0 [20:38:47]SAM_PROTO_ClearQueue [20:38:47]wFMCommunicate request_size=4 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 09 00 00 [20:38:47]Write to MH i2c: E2 08 00 C8 04 80 09 00 00 00 00 00 00 3E [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [20:38:47]RAPDU: 90 00 [20:38:47]wFMCommunicate OK [20:38:47]SAM_PROTO_ClearQueue done [20:38:47]KKMCreateOFDPacket [20:38:47]OFDProtocolAddRootSTLVToBuf [20:38:47]FM_MakeSignedData [20:38:47]FM_MakeSignedData [20:38:47]SAM_PROTO_SignData [20:38:47]wFMCommunicate request_size=4 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 0D 01 02 [20:38:47]Write to MH i2c: E2 08 00 C9 04 80 0D 01 02 00 00 00 00 46 [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [20:38:47]RAPDU: 90 00 [20:38:47]wFMCommunicate OK [20:38:47]wFMCommunicate request_size=255 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 D6 FE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 22 02 00 35 04 06 00 [20:38:47]Write to MH i2c: E2 02 01 CA 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 D6 FE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 22 02 00 35 04 06 00 00 00 A2 [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [20:38:47]RAPDU: 90 00 [20:38:47]wFMCommunicate OK [20:38:47]wFMCommunicate request_size=11 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 0D 02 02 06 39 98 FF 92 16 D5 [20:38:47]Write to MH i2c: E2 0E 00 CB 04 80 0D 02 02 06 00 39 98 FF 92 16 D5 00 00 A2 [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [20:38:47]RAPDU: 90 00 [20:38:47]wFMCommunicate OK [20:38:47]wFMCommunicate request_size=4 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 0D 03 02 [20:38:47]Write to MH i2c: E2 08 00 CC 04 80 0D 03 02 00 00 00 00 4B [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 0B 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 0B 00 CC 04 00 E6 0E D6 D8 D1 7E A6 A0 90 00 83 [20:38:47]RAPDU: E6 0E D6 D8 D1 7E A6 A0 90 00 [20:38:47]wFMCommunicate OK [20:38:47]SAM_PROTO_SignData done [20:38:47]FM_MakeSignedData done [20:38:47]CreateOFDProtocolMessage [20:38:47]wFMCommunicate request_size=4 [20:38:47]MH_SAM_APDU [20:38:47]CAPDU: 80 11 00 00 [20:38:47]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:47]Read from MH i2c: E2 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 17 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [20:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:38:47]wFMCommunicate OK [20:38:47]CreateOFDProtocolMessage done [20:38:47]OFDSenderStorePacket 139924 [20:38:47]StoreOFDPacket docnum=139924 [20:38:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 E5 7C 08 01 34 10 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 D6 FE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 22 02 00 35 04 06 00 39 98 FF 92 16 D5 E6 0E D6 D8 D1 7E A6 A0 [20:38:47]CheckFolder [20:38:47]dirname=/storage/ofd_packets [20:38:47]CheckFolder done [20:38:47]ProducePacketName [20:38:47]name=ofd_packets/00139924 [20:38:47]NVStorageSaveData ofd_packets/00139924 [20:38:47]File name is /storage/ofd_packets/00139924 [20:38:47]Write 302 bytes [20:38:47]NVStorageSaveData done [20:38:47]OFDSenderStorePacket done [20:38:47]KKMCreateOFDPacket done [20:38:47]NVStorageSaveData kkm_last_timestamp [20:38:47]File name is /storage/kkm_last_timestamp [20:38:47]Write 4 bytes [20:38:47]NVStorageSaveData done [20:38:47]ExternCall_PrintAddStr [20:38:47]wPrintStart [20:38:47]Write to MH i2c: 01 00 00 CE 04 D2 [20:38:47]Write i2c OK [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: 01 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: 01 07 00 [20:38:47]MH_I2C_Read... [20:38:47]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [20:38:47]RasterBufferAndPrint [20:38:47]line Счет N : (1)593779 [20:38:47]line ИНН: 02508201610067 [20:38:47]line Контрольно-Кассовый Чек [20:38:47]line ПРОДАЖА [20:38:47]line ТРК (МРК, ГНК) : 34 [20:38:47]line Товар: 2710194210 [20:38:47]line ДТ(л)-К-5 [20:38:47]line 38.000 * 0.00 [20:38:47]line = 0.00 [20:38:47]line НДС 12% НСП 1% [20:38:47]line > о реализуемом товаре [20:38:47]line ИТОГО: 0.00 [20:38:47]line НСП 1% : 0.00 [20:38:47]line НДС 12% : 0.00 [20:38:47]line Наличными: 0.00 [20:38:47]line Безнал.: 0.00 [20:38:47]line Место: АЗС № 136 "Партнер Нефть" [20:38:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:38:47]line СНО: Общий режим [20:38:47]line Чек 396 20.08.2024 20:38 [20:38:47]line Смена: 453 ФФД: 1.0 [20:38:47]line ЗНМ: 0300000067 [20:38:47]line РНМ: 0000000000092569 [20:38:47]line Версия ККМ: 001 [20:38:47]line Талоны: Топливная Карта [20:38:47]line 99761 [20:38:47]line ФМ: 0000000000871776 [20:38:47]line ФД: 139924 [20:38:47]line ФПД: 63329285576405 [20:38:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T203846&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139924&fm=63329285576405&tin=02508201610067®Number=0000000000092569&sum=0 [20:38:47]written 0, free lines is 4095 [20:38:47]OFD Sender: Processing packet 139924 [packets to send 137, broken 136] [20:38:47]ProducePacketName [20:38:47]name=ofd_packets/00139924 [20:38:47]OFD Sender: To server: pG, [20:38:47]CommunicateWithHost lk.salyk.kg:30040 [20:38:47]ConnectInit lk.salyk.kg [20:38:48]Write to MH i2c: 01 00 00 F8 04 FC [20:38:48]Write i2c OK [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: 01 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: 01 07 00 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: 01 07 00 F8 04 00 00 00 00 00 EC 0C FB [20:38:48]RasterBufferAndPrint [20:38:48]line [20:38:48]line [20:38:48]line [20:38:48]line [20:38:48]line [20:38:48]written 0, free lines is 3311 [20:38:48]MH_Cut [20:38:48]Write to MH i2c: D1 01 00 FF 04 01 D5 [20:38:48]Write i2c OK [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: D1 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: D1 01 00 [20:38:48]MH_I2C_Read... [20:38:48]Read from MH i2c: D1 01 00 FF 04 00 D4 [20:38:48]Write to MH i2c: 01 00 00 00 05 05 [20:38:48]Write i2c OK [20:38:48]MH_I2C_Read... [20:38:48]Connected sock=10 [20:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 E5 7C 08 01 34 10 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 D6 FE C4 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 22 02 00 35 04 06 00 39 98 FF 92 16 D5 E6 0E D6 D8 D1 7E A6 A0 [20:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4D A4 47 00 65 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 22 02 00 F4 03 04 00 68 A5 C4 66 B6 04 01 00 00 71 ED EC C8 18 12 85 F0 [20:38:48]CommunicateWithHost err = 0 [20:38:48]CheckOFDResponse [20:38:48]1017 (14) - 77093643461234 [20:38:48]1041 (16) - 0000000000871776 [20:38:48]1040 (4) - 139924 [20:38:48]1012 (4) - 20.08.2024 14:17 [20:38:48]1206 (1) - 0 [20:38:48]OFD Sender: Remove packet 139924 [20:38:48]ProducePacketName [20:38:48]name=ofd_packets/00139924 [20:38:48]NVStorageDeleteData [20:38:48]*** Cut start [20:38:48]*** Partial cut [20:38:48]*** CUTSNS_PIN = 1 [20:38:48]*** CUTSNS_PIN = 0 [20:38:48]OFD Sender: No OFD packet to send [20:38:49]*** Brake cut motor [20:38:49]Read from MH i2c: 01 [20:38:49]MH_I2C_Read... [20:38:49]*** Stop cut motor [20:38:49]*** Cut end [20:38:49]Read from MH i2c: 01 07 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 FF 0F 1A [20:38:49]process_action close_receipt done [20:38:49]requested_data is exist [20:38:49]produce_requested_data [20:38:49]requested_item fm.sn is exist - process it [20:38:49]wFMCommunicate request_size=4 [20:38:49]MH_SAM_APDU [20:38:49]CAPDU: 80 11 00 00 [20:38:49]Write to MH i2c: E2 08 00 01 05 80 11 00 00 00 00 00 00 80 [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 17 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 17 00 01 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D7 [20:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:38:49]wFMCommunicate OK [20:38:49]requested_item fd.num is exist - process it [20:38:49]SAM_PROTO_GetFieldsCounters [20:38:49]wFMCommunicate request_size=4 [20:38:49]MH_SAM_APDU [20:38:49]CAPDU: 80 13 00 00 [20:38:49]Write to MH i2c: E2 08 00 02 05 80 13 00 00 00 00 00 00 83 [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 62 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 62 00 02 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 22 02 00 0E 04 04 00 C5 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 D3 [20:38:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 22 02 00 0E 04 04 00 C5 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:38:49]wFMCommunicate OK [20:38:49]SAM_PROTO_GetFieldsCounters done [20:38:49]requested_item shift.num is exist - process it [20:38:49]requested_item shift.opened is exist - process it [20:38:49]req_shift_opened [20:38:49]FM_GetShiftState [20:38:49]SAM_PROTO_GetShiftState [20:38:49]wFMCommunicate request_size=4 [20:38:49]MH_SAM_APDU [20:38:49]CAPDU: 80 13 01 00 [20:38:49]Write to MH i2c: E2 08 00 03 05 80 13 01 00 00 00 00 00 85 [20:38:49]Write i2c OK [20:38:49]MH_I2C_Read... [20:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:49]Read from MH i2c: E2 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 0E 00 [20:38:49]MH_I2C_Read... [20:38:49]Read from MH i2c: E2 0E 00 03 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 16 [20:38:49]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:38:49]wFMCommunicate OK [20:38:49]SAM_PROTO_GetShiftState done [20:38:49]FM_GetShiftState done [20:38:49]req_shift_opened done [20:38:49]requested_item shift.open_date is exist - process it [20:38:49]req_shift_open_date [20:38:49]req_shift_open_date done [20:38:49]produce_requested_data done [20:38:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139924,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:38:49]process_action_free close_receipt [20:38:49]json_value_free [20:38:49]json_value_free done [20:38:49]process_json_proto returns [20:38:49]Send response to host [20:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139924,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:38:49]free response buf [20:38:49]execute_script done [20:38:49]execute_script returns [20:38:49]free content buf [20:38:49]Sock 9.Close socket [20:38:49]Sock 9.Thread stoped [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]int [20:43:14]Write to MH i2c: 01 00 00 04 05 09 [20:43:14]*** FLAG_PRN_PAP1 set [20:43:14]Write i2c OK [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: 01 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: 01 07 00 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: 01 07 00 04 05 00 01 00 00 00 FF 0F 1F [20:43:14]state=0 [20:43:14]No paper [20:43:14]OFD Sender: No OFD packet to send [20:43:14]int [20:43:14]Write to MH i2c: 01 00 00 05 05 0A [20:43:14]*** FLAG_PRN_PAP2 set [20:43:14]Write i2c OK [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: 01 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: 01 07 00 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: 01 07 00 05 05 00 03 00 00 00 FF 0F 22 [20:43:14]state=0 [20:43:14]No paper [20:43:14]Cover opened [20:43:15]int [20:43:15]Write to MH i2c: 01 00 00 06 05 0B [20:43:15]*** FLAG_PRN_PAP2 reset [20:43:15]Write i2c OK [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 06 05 00 01 00 00 00 FF 0F 21 [20:43:15]state=3 [20:43:15]No paper [20:43:15]Cover closed [20:43:15]int [20:43:15]Write to MH i2c: 01 00 00 07 05 0C [20:43:15]*** FLAG_PRN_PAP2 set [20:43:15]Write i2c OK [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 07 05 00 03 00 00 00 FF 0F 24 [20:43:15]state=0 [20:43:15]No paper [20:43:15]Cover opened [20:43:15]int [20:43:15]Write to MH i2c: 01 00 00 08 05 0D [20:43:15]*** FLAG_PRN_PAP2 reset [20:43:15]Write i2c OK [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 08 05 00 01 00 00 00 FF 0F 23 [20:43:15]state=3 [20:43:15]No paper [20:43:15]Cover closed [20:43:15]int [20:43:15]Write to MH i2c: 01 00 00 09 05 0E [20:43:15]*** FLAG_PRN_PAP2 set [20:43:15]Write i2c OK [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 09 05 00 03 00 00 00 FF 0F 26 [20:43:15]state=0 [20:43:15]No paper [20:43:15]Cover opened [20:43:15]int [20:43:15]Write to MH i2c: 01 00 00 0A 05 0F [20:43:15]*** FLAG_PRN_PAP2 reset [20:43:15]Write i2c OK [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 0A 05 00 01 00 00 00 FF 0F 25 [20:43:15]state=3 [20:43:15]No paper [20:43:15]Cover closed [20:43:15]int [20:43:15]Write to MH i2c: 01 00 00 0B 05 10 [20:43:15]*** FLAG_PRN_PAP2 set [20:43:15]Write i2c OK [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 [20:43:15]MH_I2C_Read... [20:43:15]Read from MH i2c: 01 07 00 0B 05 00 03 00 00 00 FF 0F 28 [20:43:15]state=0 [20:43:15]No paper [20:43:15]Cover opened [20:43:19]OFD Sender: No OFD packet to send [20:43:20]Write to MH i2c: 01 00 00 0C 05 11 [20:43:20]Write i2c OK [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: 01 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: 01 07 00 [20:43:20]MH_I2C_Read... [20:43:20]Read from MH i2c: 01 07 00 0C 05 00 03 00 00 00 FF 0F 29 [20:43:20]state=3 [20:43:20]No paper [20:43:20]Cover opened [20:43:24]OFD Sender: No OFD packet to send [20:43:25]Write to MH i2c: 01 00 00 0D 05 12 [20:43:25]Write i2c OK [20:43:25]MH_I2C_Read... [20:43:25]Read from MH i2c: 01 [20:43:25]MH_I2C_Read... [20:43:25]Read from MH i2c: 01 07 00 [20:43:25]MH_I2C_Read... [20:43:25]Read from MH i2c: 01 07 00 0D 05 00 03 00 00 00 FF 0F 2A [20:43:25]state=3 [20:43:25]No paper [20:43:25]Cover opened [20:43:27]int [20:43:27]Write to MH i2c: 01 00 00 0E 05 13 [20:43:27]*** FLAG_PRN_PAP2 reset [20:43:27]Write i2c OK [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: 01 [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: 01 07 00 [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: 01 07 00 0E 05 00 01 00 00 00 FF 0F 29 [20:43:27]state=3 [20:43:27]No paper [20:43:27]Cover closed [20:43:27]int [20:43:27]Write to MH i2c: 01 00 00 0F 05 14 [20:43:27]*** FLAG_PRN_PAP1 reset [20:43:27]Write i2c OK [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: 01 [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: 01 07 00 [20:43:27]MH_I2C_Read... [20:43:27]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 FF 0F 29 [20:43:27]state=0 [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:41]accept exits with 7 [20:44:41]New connection [20:44:41]New thread 3066764644 created [20:44:41]Thread 3066908004 joined [20:44:41]Waiting for new connection... [20:44:41] Sock 7.Parse request [20:44:41]Sock 7.Check first char [20:44:41]Sock 7.First char is OK [20:44:41]request: POST /json_proto HTTP/1.0 [20:44:41]Method: POST [20:44:41]URL: /json_proto [20:44:41]Method is POST - this is cgi request [20:44:41]url: /json_proto [20:44:41]query_string will be loaded in cgi processing [20:44:41]execute_cgi json_proto POST (null) [20:44:41]execute_cgi path=json_proto method=POST [20:44:41]POST find Content-Length [20:44:41]Host: 172.17.45.67:8080 [20:44:41]Content-Length: 677 [20:44:41]Content-Type: application/json [20:44:41] [20:44:41]POST finish read [20:44:41]Found Content-Length = 677 [20:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:41]execute_script... [20:44:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:41]POST & json_proto [20:44:41]process_json_proto [20:44:41]json parsed OK: [20:44:41]protocol is kg_v1.0 [20:44:41]action value=close_receipt [20:44:41]process_action close_receipt [20:44:41]cmd_close_receipt [20:44:41]MH_GetDate [20:44:41]Write to MH i2c: F0 00 00 10 05 04 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: F0 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: F0 09 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: F0 09 00 10 05 00 3A 00 C5 66 5F 7F 2B 66 E1 [20:44:41]GetLastDocTimeStamp 1724186326 [20:44:41]current date 1724186682 [20:44:41]FM_GetShiftState [20:44:41]SAM_PROTO_GetShiftState [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 13 01 00 [20:44:41]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 24 [20:44:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:44:41]wFMCommunicate OK [20:44:41]SAM_PROTO_GetShiftState done [20:44:41]FM_GetShiftState done [20:44:41]opened in 1724113785 [20:44:41]opened+sec_in_day 1724200185 [20:44:41]quantity*price = 50010 [20:44:41]sum+1 = 50012 [20:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 397 20.08.2024 20:44 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139925 ФПД: 262526074181199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T204442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139925&fm=262526074181199&tin=02508201610067®Number=0000000000092569&sum=50000 [20:44:43]StoreToDocumentArchive [20:44:43]shift 453 fd 139925 [20:44:43]save to /storage/0453/doc_00139925 [20:44:43]save last doc name /storage/0453/doc_00139925 to /storage/kkm_last_doc_name [20:44:43]save OK [20:44:43]Clear old archive folders... [20:44:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:43]tlvbuf is 00A086A0 [20:44:43]SAM_PROTO_ClearQueue [20:44:43]wFMCommunicate request_size=4 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 09 00 00 [20:44:43]Write to MH i2c: E2 08 00 1E 05 80 09 00 00 00 00 00 00 95 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [20:44:43]RAPDU: 90 00 [20:44:43]wFMCommunicate OK [20:44:43]SAM_PROTO_ClearQueue done [20:44:43]KKMCreateOFDPacket [20:44:43]OFDProtocolAddRootSTLVToBuf [20:44:43]FM_MakeSignedData [20:44:43]FM_MakeSignedData [20:44:43]SAM_PROTO_SignData [20:44:43]wFMCommunicate request_size=4 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 0D 01 02 [20:44:43]Write to MH i2c: E2 08 00 1F 05 80 0D 01 02 00 00 00 00 9D [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [20:44:43]RAPDU: 90 00 [20:44:43]wFMCommunicate OK [20:44:43]wFMCommunicate request_size=255 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 01 00 00 F4 03 04 00 3A 00 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 22 02 00 35 04 06 00 EE [20:44:43]Write to MH i2c: E2 02 01 20 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 3A 00 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 22 02 00 35 04 06 00 EE 00 00 6E [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [20:44:43]RAPDU: 90 00 [20:44:43]wFMCommunicate OK [20:44:43]wFMCommunicate request_size=10 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 0D 02 02 05 C4 1D 65 56 4F [20:44:43]Write to MH i2c: E2 0D 00 21 05 80 0D 02 02 05 00 C4 1D 65 56 4F 00 00 95 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [20:44:43]RAPDU: 90 00 [20:44:43]wFMCommunicate OK [20:44:43]wFMCommunicate request_size=4 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 0D 03 02 [20:44:43]Write to MH i2c: E2 08 00 22 05 80 0D 03 02 00 00 00 00 A2 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 0B 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 0B 00 22 05 00 BB 06 67 A6 60 CD D4 97 90 00 09 [20:44:43]RAPDU: BB 06 67 A6 60 CD D4 97 90 00 [20:44:43]wFMCommunicate OK [20:44:43]SAM_PROTO_SignData done [20:44:43]FM_MakeSignedData done [20:44:43]CreateOFDProtocolMessage [20:44:43]wFMCommunicate request_size=4 [20:44:43]MH_SAM_APDU [20:44:43]CAPDU: 80 11 00 00 [20:44:43]Write to MH i2c: E2 08 00 23 05 80 11 00 00 00 00 00 00 A2 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:43]Read from MH i2c: E2 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 17 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: E2 17 00 23 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [20:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:44:43]wFMCommunicate OK [20:44:43]CreateOFDProtocolMessage done [20:44:43]OFDSenderStorePacket 139925 [20:44:43]StoreOFDPacket docnum=139925 [20:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 32 9A 07 01 50 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 3A 00 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 22 02 00 35 04 06 00 EE C4 1D 65 56 4F BB 06 67 A6 60 CD D4 97 [20:44:43]CheckFolder [20:44:43]dirname=/storage/ofd_packets [20:44:43]CheckFolder done [20:44:43]ProducePacketName [20:44:43]name=ofd_packets/00139925 [20:44:43]NVStorageSaveData ofd_packets/00139925 [20:44:43]File name is /storage/ofd_packets/00139925 [20:44:43]Write 301 bytes [20:44:43]NVStorageSaveData done [20:44:43]OFDSenderStorePacket done [20:44:43]KKMCreateOFDPacket done [20:44:43]NVStorageSaveData kkm_last_timestamp [20:44:43]File name is /storage/kkm_last_timestamp [20:44:43]Write 4 bytes [20:44:43]NVStorageSaveData done [20:44:43]ExternCall_PrintAddStr [20:44:43]wPrintStart [20:44:43]Write to MH i2c: 01 00 00 24 05 29 [20:44:43]Write i2c OK [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: 01 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: 01 07 00 [20:44:43]MH_I2C_Read... [20:44:43]Read from MH i2c: 01 07 00 24 05 00 00 00 00 00 FF 0F 3E [20:44:43]RasterBufferAndPrint [20:44:43]line Счет N : (1)593780 [20:44:43]line ИНН: 02508201610067 [20:44:43]line Контрольно-Кассовый Чек [20:44:43]line ПРОДАЖА [20:44:43]line ТРК (МРК, ГНК) : 31 [20:44:43]line Товар: 2710124500 [20:44:43]line Аи-95-К-5 [20:44:43]line 6.740 * 74.20 [20:44:43]line = 500.11 [20:44:43]line НДС 12% НСП 1% [20:44:43]line > о реализуемом товаре [20:44:43]line ОКРУГЛЕНИЕ: -0.11 [20:44:43]line ИТОГО: 500.00 [20:44:43]line Внесено: 500.00 [20:44:43]line СДАЧА: 0.00 [20:44:43]line НСП 1% : 4.43 [20:44:43]line НДС 12% : 53.11 [20:44:43]line Наличными: 500.00 [20:44:43]line Безнал.: 0.00 [20:44:43]line Место: АЗС № 136 "Партнер Нефть" [20:44:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:44:43]line СНО: Общий режим [20:44:43]line Чек 397 20.08.2024 20:44 [20:44:43]line Смена: 453 ФФД: 1.0 [20:44:43]line ЗНМ: 0300000067 [20:44:43]line РНМ: 0000000000092569 [20:44:43]line Версия ККМ: 001 [20:44:43]line ФМ: 0000000000871776 [20:44:43]line ФД: 139925 [20:44:43]line ФПД: 262526074181199 [20:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T204442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139925&fm=262526074181199&tin=02508201610067®Number=0000000000092569&sum=50000 [20:44:43]written 0, free lines is 4095 [20:44:43]OFD Sender: Processing packet 139925 [packets to send 137, broken 136] [20:44:43]ProducePacketName [20:44:43]name=ofd_packets/00139925 [20:44:43]OFD Sender: To server: pG, [20:44:43]CommunicateWithHost lk.salyk.kg:30040 [20:44:43]ConnectInit lk.salyk.kg [20:44:44]Connected sock=10 [20:44:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 32 9A 07 01 50 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 3A 00 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 22 02 00 35 04 06 00 EE C4 1D 65 56 4F BB 06 67 A6 60 CD D4 97 [20:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EB F8 47 00 21 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 22 02 00 F4 03 04 00 CC A6 C4 66 B6 04 01 00 00 25 39 8E 1C CE 4D 49 45 [20:44:44]CommunicateWithHost err = 0 [20:44:44]CheckOFDResponse [20:44:44]1017 (14) - 77093643461234 [20:44:44]1041 (16) - 0000000000871776 [20:44:44]1040 (4) - 139925 [20:44:44]1012 (4) - 20.08.2024 14:23 [20:44:44]1206 (1) - 0 [20:44:44]OFD Sender: Remove packet 139925 [20:44:44]ProducePacketName [20:44:44]name=ofd_packets/00139925 [20:44:44]NVStorageDeleteData [20:44:44]Write to MH i2c: 01 00 00 4F 05 54 [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 07 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: 01 07 00 4F 05 00 00 00 00 00 CD 0C 34 [20:44:44]RasterBufferAndPrint [20:44:44]line [20:44:44]line [20:44:44]line [20:44:44]line [20:44:44]line [20:44:44]written 0, free lines is 3284 [20:44:44]MH_Cut [20:44:44]Write to MH i2c: D1 01 00 56 05 01 2D [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: D1 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: D1 01 00 [20:44:44]MH_I2C_Read... [20:44:44]Read from MH i2c: D1 01 00 56 05 00 2C [20:44:44]Write to MH i2c: 01 00 00 57 05 5C [20:44:44]Write i2c OK [20:44:44]MH_I2C_Read... [20:44:44]OFD Sender: No OFD packet to send [20:44:45]*** Cut start [20:44:45]*** Partial cut [20:44:45]*** CUTSNS_PIN = 1 [20:44:45]*** CUTSNS_PIN = 0 [20:44:45]*** Brake cut motor [20:44:45]Read from MH i2c: 01 [20:44:45]MH_I2C_Read... [20:44:45]*** Stop cut motor [20:44:45]*** Cut end [20:44:45]Read from MH i2c: 01 07 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: 01 07 00 57 05 00 00 00 00 00 FF 0F 71 [20:44:45]process_action close_receipt done [20:44:45]requested_data is exist [20:44:45]produce_requested_data [20:44:45]requested_item fm.sn is exist - process it [20:44:45]wFMCommunicate request_size=4 [20:44:45]MH_SAM_APDU [20:44:45]CAPDU: 80 11 00 00 [20:44:45]Write to MH i2c: E2 08 00 58 05 80 11 00 00 00 00 00 00 D7 [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:45]Read from MH i2c: E2 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 17 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 17 00 58 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [20:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:44:45]wFMCommunicate OK [20:44:45]requested_item fd.num is exist - process it [20:44:45]SAM_PROTO_GetFieldsCounters [20:44:45]wFMCommunicate request_size=4 [20:44:45]MH_SAM_APDU [20:44:45]CAPDU: 80 13 00 00 [20:44:45]Write to MH i2c: E2 08 00 59 05 80 13 00 00 00 00 00 00 DA [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:45]Read from MH i2c: E2 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 62 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 62 00 59 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 22 02 00 0E 04 04 00 C5 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 2E [20:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 22 02 00 0E 04 04 00 C5 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:44:45]wFMCommunicate OK [20:44:45]SAM_PROTO_GetFieldsCounters done [20:44:45]requested_item shift.num is exist - process it [20:44:45]requested_item shift.opened is exist - process it [20:44:45]req_shift_opened [20:44:45]FM_GetShiftState [20:44:45]SAM_PROTO_GetShiftState [20:44:45]wFMCommunicate request_size=4 [20:44:45]MH_SAM_APDU [20:44:45]CAPDU: 80 13 01 00 [20:44:45]Write to MH i2c: E2 08 00 5A 05 80 13 01 00 00 00 00 00 DC [20:44:45]Write i2c OK [20:44:45]MH_I2C_Read... [20:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:45]Read from MH i2c: E2 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 0E 00 [20:44:45]MH_I2C_Read... [20:44:45]Read from MH i2c: E2 0E 00 5A 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6D [20:44:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:44:45]wFMCommunicate OK [20:44:45]SAM_PROTO_GetShiftState done [20:44:45]FM_GetShiftState done [20:44:45]req_shift_opened done [20:44:45]requested_item shift.open_date is exist - process it [20:44:45]req_shift_open_date [20:44:45]req_shift_open_date done [20:44:45]produce_requested_data done [20:44:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139925,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:44:45]process_action_free close_receipt [20:44:45]json_value_free [20:44:45]json_value_free done [20:44:45]process_json_proto returns [20:44:45]Send response to host [20:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139925,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:44:45]free response buf [20:44:45]execute_script done [20:44:45]execute_script returns [20:44:45]free content buf [20:44:45]Sock 7.Close socket [20:44:45]Sock 7.Thread stoped [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:28]accept exits with 9 [20:48:28]New connection [20:48:28]New thread 3066908004 created [20:48:28]Thread 3066764644 joined [20:48:28]Waiting for new connection... [20:48:28] Sock 9.Parse request [20:48:28]Sock 9.Check first char [20:48:28]Sock 9.First char is OK [20:48:28]request: POST /json_proto HTTP/1.0 [20:48:28]Method: POST [20:48:28]URL: /json_proto [20:48:28]Method is POST - this is cgi request [20:48:28]url: /json_proto [20:48:28]query_string will be loaded in cgi processing [20:48:28]execute_cgi json_proto POST (null) [20:48:28]execute_cgi path=json_proto method=POST [20:48:28]POST find Content-Length [20:48:28]Host: 172.17.45.67:8080 [20:48:28]Content-Length: 678 [20:48:28]Content-Type: application/json [20:48:28] [20:48:28]POST finish read [20:48:28]Found Content-Length = 678 [20:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:28]execute_script... [20:48: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)593781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:28]POST & json_proto [20:48:28]process_json_proto [20:48:28]json parsed OK: [20:48:28]protocol is kg_v1.0 [20:48:28]action value=close_receipt [20:48:28]process_action close_receipt [20:48:28]cmd_close_receipt [20:48:28]MH_GetDate [20:48:28]Write to MH i2c: F0 00 00 5B 05 4F [20:48:28]Write i2c OK [20:48:28]MH_I2C_Read... [20:48:28]Read from MH i2c: F0 [20:48:28]MH_I2C_Read... [20:48:28]Read from MH i2c: F0 09 00 [20:48:28]MH_I2C_Read... [20:48:28]Read from MH i2c: F0 09 00 5B 05 00 1D 01 C5 66 5F 7F 2B 66 10 [20:48:28]GetLastDocTimeStamp 1724186682 [20:48:28]current date 1724186909 [20:48:28]FM_GetShiftState [20:48:28]SAM_PROTO_GetShiftState [20:48:28]wFMCommunicate request_size=4 [20:48:28]MH_SAM_APDU [20:48:28]CAPDU: 80 13 01 00 [20:48:28]Write to MH i2c: E2 08 00 5C 05 80 13 01 00 00 00 00 00 DE [20:48:28]Write i2c OK [20:48:28]MH_I2C_Read... [20:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:28]Read from MH i2c: E2 [20:48:28]MH_I2C_Read... [20:48:28]Read from MH i2c: E2 0E 00 [20:48:28]MH_I2C_Read... [20:48:28]Read from MH i2c: E2 0E 00 5C 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6F [20:48:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:48:28]wFMCommunicate OK [20:48:28]SAM_PROTO_GetShiftState done [20:48:28]FM_GetShiftState done [20:48:28]opened in 1724113785 [20:48:28]opened+sec_in_day 1724200185 [20:48:28]quantity*price = 70037 [20:48:28]sum+1 = 70038 [20:48:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 398 20.08.2024 20:48 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139926 ФПД: 61365651562474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T204829&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139926&fm=61365651562474&tin=02508201610067®Number=0000000000092569&sum=70000 [20:48:29]StoreToDocumentArchive [20:48:29]shift 453 fd 139926 [20:48:29]save to /storage/0453/doc_00139926 [20:48:29]save last doc name /storage/0453/doc_00139926 to /storage/kkm_last_doc_name [20:48:29]save OK [20:48:29]Clear old archive folders... [20:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:29]tlvbuf is 00A78420 [20:48:29]SAM_PROTO_ClearQueue [20:48:29]wFMCommunicate request_size=4 [20:48:29]MH_SAM_APDU [20:48:29]CAPDU: 80 09 00 00 [20:48:29]Write to MH i2c: E2 08 00 69 05 80 09 00 00 00 00 00 00 E0 [20:48:29]Write i2c OK [20:48:29]MH_I2C_Read... [20:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:30]Read from MH i2c: E2 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 03 00 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [20:48:30]RAPDU: 90 00 [20:48:30]wFMCommunicate OK [20:48:30]SAM_PROTO_ClearQueue done [20:48:30]KKMCreateOFDPacket [20:48:30]OFDProtocolAddRootSTLVToBuf [20:48:30]FM_MakeSignedData [20:48:30]FM_MakeSignedData [20:48:30]SAM_PROTO_SignData [20:48:30]wFMCommunicate request_size=4 [20:48:30]MH_SAM_APDU [20:48:30]CAPDU: 80 0D 01 02 [20:48:30]Write to MH i2c: E2 08 00 6A 05 80 0D 01 02 00 00 00 00 E8 [20:48:30]Write i2c OK [20:48:30]MH_I2C_Read... [20:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:30]Read from MH i2c: E2 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 03 00 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [20:48:30]RAPDU: 90 00 [20:48:30]wFMCommunicate OK [20:48:30]wFMCommunicate request_size=255 [20:48:30]MH_SAM_APDU [20:48:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 1D 01 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 22 02 00 35 04 06 00 37 [20:48:30]Write to MH i2c: E2 02 01 6B 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 1D 01 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 22 02 00 35 04 06 00 37 00 00 E7 [20:48:30]Write i2c OK [20:48:30]MH_I2C_Read... [20:48:30]OFD Sender: No OFD packet to send [20:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:30]Read from MH i2c: E2 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 03 00 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [20:48:30]RAPDU: 90 00 [20:48:30]wFMCommunicate OK [20:48:30]wFMCommunicate request_size=10 [20:48:30]MH_SAM_APDU [20:48:30]CAPDU: 80 0D 02 02 05 CF CD DC DF EA [20:48:30]Write to MH i2c: E2 0D 00 6C 05 80 0D 02 02 05 00 CF CD DC DF EA 00 00 36 [20:48:30]Write i2c OK [20:48:30]MH_I2C_Read... [20:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:30]Read from MH i2c: E2 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 03 00 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [20:48:30]RAPDU: 90 00 [20:48:30]wFMCommunicate OK [20:48:30]wFMCommunicate request_size=4 [20:48:30]MH_SAM_APDU [20:48:30]CAPDU: 80 0D 03 02 [20:48:30]Write to MH i2c: E2 08 00 6D 05 80 0D 03 02 00 00 00 00 ED [20:48:30]Write i2c OK [20:48:30]MH_I2C_Read... [20:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:30]Read from MH i2c: E2 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 0B 00 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 0B 00 6D 05 00 1D 52 AA 81 C7 B5 0B 63 90 00 72 [20:48:30]RAPDU: 1D 52 AA 81 C7 B5 0B 63 90 00 [20:48:30]wFMCommunicate OK [20:48:30]SAM_PROTO_SignData done [20:48:30]FM_MakeSignedData done [20:48:30]CreateOFDProtocolMessage [20:48:30]wFMCommunicate request_size=4 [20:48:30]MH_SAM_APDU [20:48:30]CAPDU: 80 11 00 00 [20:48:30]Write to MH i2c: E2 08 00 6E 05 80 11 00 00 00 00 00 00 ED [20:48:30]Write i2c OK [20:48:30]MH_I2C_Read... [20:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:30]Read from MH i2c: E2 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 17 00 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: E2 17 00 6E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [20:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:48:30]wFMCommunicate OK [20:48:30]CreateOFDProtocolMessage done [20:48:30]OFDSenderStorePacket 139926 [20:48:30]StoreOFDPacket docnum=139926 [20:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CF 15 07 01 1B 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 1D 01 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 22 02 00 35 04 06 00 37 CF CD DC DF EA 1D 52 AA 81 C7 B5 0B 63 [20:48:30]CheckFolder [20:48:30]dirname=/storage/ofd_packets [20:48:30]CheckFolder done [20:48:30]ProducePacketName [20:48:30]name=ofd_packets/00139926 [20:48:30]NVStorageSaveData ofd_packets/00139926 [20:48:30]File name is /storage/ofd_packets/00139926 [20:48:30]Write 301 bytes [20:48:30]NVStorageSaveData done [20:48:30]OFDSenderStorePacket done [20:48:30]KKMCreateOFDPacket done [20:48:30]NVStorageSaveData kkm_last_timestamp [20:48:30]File name is /storage/kkm_last_timestamp [20:48:30]Write 4 bytes [20:48:30]NVStorageSaveData done [20:48:30]ExternCall_PrintAddStr [20:48:30]wPrintStart [20:48:30]Write to MH i2c: 01 00 00 6F 05 74 [20:48:30]Write i2c OK [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: 01 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: 01 07 00 [20:48:30]MH_I2C_Read... [20:48:30]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 FF 0F 89 [20:48:30]RasterBufferAndPrint [20:48:30]line Счет N : (1)593781 [20:48:30]line ИНН: 02508201610067 [20:48:30]line Контрольно-Кассовый Чек [20:48:30]line ПРОДАЖА [20:48:30]line ТРК (МРК, ГНК) : 32 [20:48:30]line Товар: 2710124130 [20:48:30]line Аи-92-К-5 [20:48:30]line 10.330 * 67.80 [20:48:30]line = 700.37 [20:48:30]line НДС 12% НСП 1% [20:48:30]line > о реализуемом товаре [20:48:30]line ОКРУГЛЕНИЕ: -0.37 [20:48:30]line ИТОГО: 700.00 [20:48:30]line Внесено: 700.00 [20:48:30]line СДАЧА: 0.00 [20:48:30]line НСП 1% : 6.20 [20:48:30]line НДС 12% : 74.38 [20:48:30]line Наличными: 700.00 [20:48:30]line Безнал.: 0.00 [20:48:30]line Место: АЗС № 136 "Партнер Нефть" [20:48:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:48:30]line СНО: Общий режим [20:48:30]line Чек 398 20.08.2024 20:48 [20:48:30]line Смена: 453 ФФД: 1.0 [20:48:30]line ЗНМ: 0300000067 [20:48:30]line РНМ: 0000000000092569 [20:48:30]line Версия ККМ: 001 [20:48:30]line ФМ: 0000000000871776 [20:48:30]line ФД: 139926 [20:48:30]line ФПД: 61365651562474 [20:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T204829&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139926&fm=61365651562474&tin=02508201610067®Number=0000000000092569&sum=70000 [20:48:30]OFD Sender: Processing packet 139926 [packets to send 137, broken 136] [20:48:30]ProducePacketName [20:48:30]name=ofd_packets/00139926 [20:48:30]OFD Sender: To server: pG, [20:48:30]CommunicateWithHost lk.salyk.kg:30040 [20:48:30]ConnectInit lk.salyk.kg [20:48:30]written 0, free lines is 4095 [20:48:30]Connected sock=10 [20:48:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CF 15 07 01 1B 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 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 1D 01 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 22 02 00 35 04 06 00 37 CF CD DC DF EA 1D 52 AA 81 C7 B5 0B 63 [20:48:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 06 46 47 00 D2 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 22 02 00 F4 03 04 00 AF A7 C4 66 B6 04 01 00 00 66 D8 7A DC 53 E8 71 AB [20:48:31]CommunicateWithHost err = 0 [20:48:31]CheckOFDResponse [20:48:31]1017 (14) - 77093643461234 [20:48:31]1041 (16) - 0000000000871776 [20:48:31]1040 (4) - 139926 [20:48:31]1012 (4) - 20.08.2024 14:26 [20:48:31]1206 (1) - 0 [20:48:31]OFD Sender: Remove packet 139926 [20:48:31]ProducePacketName [20:48:31]name=ofd_packets/00139926 [20:48:31]NVStorageDeleteData [20:48:31]Write to MH i2c: 01 00 00 9A 05 9F [20:48:31]Write i2c OK [20:48:31]MH_I2C_Read... [20:48:31]Read from MH i2c: 01 [20:48:31]MH_I2C_Read... [20:48:31]Read from MH i2c: 01 07 00 [20:48:31]MH_I2C_Read... [20:48:31]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 D3 0C 85 [20:48:31]RasterBufferAndPrint [20:48:31]line [20:48:31]line [20:48:31]line [20:48:31]line [20:48:31]line [20:48:31]written 0, free lines is 3289 [20:48:31]MH_Cut [20:48:31]Write to MH i2c: D1 01 00 A1 05 01 78 [20:48:31]Write i2c OK [20:48:31]MH_I2C_Read... [20:48:31]Read from MH i2c: D1 [20:48:31]MH_I2C_Read... [20:48:31]Read from MH i2c: D1 01 00 [20:48:31]MH_I2C_Read... [20:48:31]Read from MH i2c: D1 01 00 A1 05 00 77 [20:48:31]Write to MH i2c: 01 00 00 A2 05 A7 [20:48:31]Write i2c OK [20:48:31]MH_I2C_Read... [20:48:31]OFD Sender: No OFD packet to send [20:48:32]*** Cut start [20:48:32]*** Partial cut [20:48:32]*** CUTSNS_PIN = 1 [20:48:32]*** CUTSNS_PIN = 0 [20:48:32]*** Brake cut motor [20:48:32]Read from MH i2c: 01 [20:48:32]MH_I2C_Read... [20:48:32]*** Stop cut motor [20:48:32]*** Cut end [20:48:32]Read from MH i2c: 01 07 00 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 FF 0F BC [20:48:32]process_action close_receipt done [20:48:32]requested_data is exist [20:48:32]produce_requested_data [20:48:32]requested_item fm.sn is exist - process it [20:48:32]wFMCommunicate request_size=4 [20:48:32]MH_SAM_APDU [20:48:32]CAPDU: 80 11 00 00 [20:48:32]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [20:48:32]Write i2c OK [20:48:32]MH_I2C_Read... [20:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:32]Read from MH i2c: E2 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: E2 17 00 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [20:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:48:32]wFMCommunicate OK [20:48:32]requested_item fd.num is exist - process it [20:48:32]SAM_PROTO_GetFieldsCounters [20:48:32]wFMCommunicate request_size=4 [20:48:32]MH_SAM_APDU [20:48:32]CAPDU: 80 13 00 00 [20:48:32]Write to MH i2c: E2 08 00 A4 05 80 13 00 00 00 00 00 00 25 [20:48:32]Write i2c OK [20:48:32]MH_I2C_Read... [20:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:32]Read from MH i2c: E2 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: E2 62 00 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: E2 62 00 A4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 22 02 00 0E 04 04 00 C5 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 7D [20:48:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 22 02 00 0E 04 04 00 C5 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:48:32]wFMCommunicate OK [20:48:32]SAM_PROTO_GetFieldsCounters done [20:48:32]requested_item shift.num is exist - process it [20:48:32]requested_item shift.opened is exist - process it [20:48:32]req_shift_opened [20:48:32]FM_GetShiftState [20:48:32]SAM_PROTO_GetShiftState [20:48:32]wFMCommunicate request_size=4 [20:48:32]MH_SAM_APDU [20:48:32]CAPDU: 80 13 01 00 [20:48:32]Write to MH i2c: E2 08 00 A5 05 80 13 01 00 00 00 00 00 27 [20:48:32]Write i2c OK [20:48:32]MH_I2C_Read... [20:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:32]Read from MH i2c: E2 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: E2 0E 00 [20:48:32]MH_I2C_Read... [20:48:32]Read from MH i2c: E2 0E 00 A5 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B8 [20:48:32]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:48:32]wFMCommunicate OK [20:48:32]SAM_PROTO_GetShiftState done [20:48:32]FM_GetShiftState done [20:48:32]req_shift_opened done [20:48:32]requested_item shift.open_date is exist - process it [20:48:32]req_shift_open_date [20:48:32]req_shift_open_date done [20:48:32]produce_requested_data done [20:48:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139926,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:48:32]process_action_free close_receipt [20:48:32]json_value_free [20:48:32]json_value_free done [20:48:32]process_json_proto returns [20:48:32]Send response to host [20:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139926,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:48:32]free response buf [20:48:32]execute_script done [20:48:32]execute_script returns [20:48:32]free content buf [20:48:32]Sock 9.Close socket [20:48:32]Sock 9.Thread stoped [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:07]accept exits with 7 [20:49:07]New connection [20:49:07]New thread 3066764644 created [20:49:07] Sock 7.Parse request [20:49:07]Thread 3066908004 joined [20:49:07]Sock 7.Check first char [20:49:07]Waiting for new connection... [20:49:07]Sock 7.First char is OK [20:49:07]request: POST /json_proto HTTP/1.0 [20:49:07]Method: POST [20:49:07]URL: /json_proto [20:49:07]Method is POST - this is cgi request [20:49:07]url: /json_proto [20:49:07]query_string will be loaded in cgi processing [20:49:07]execute_cgi json_proto POST (null) [20:49:07]execute_cgi path=json_proto method=POST [20:49:07]POST find Content-Length [20:49:07]Host: 172.17.45.67:8080 [20:49:07]Content-Length: 682 [20:49:07]Content-Type: application/json [20:49:07] [20:49:07]POST finish read [20:49:07]Found Content-Length = 682 [20:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 15.230, "sum" : 1130.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1130.00, "total" : 1130.00, "payments": [ { "type": 0, "sum" : 1130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:07]execute_script... [20:49: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)593782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 15.230, "sum" : 1130.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1130.00, "total" : 1130.00, "payments": [ { "type": 0, "sum" : 1130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:07]POST & json_proto [20:49:07]process_json_proto [20:49:07]json parsed OK: [20:49:07]protocol is kg_v1.0 [20:49:07]action value=close_receipt [20:49:07]process_action close_receipt [20:49:07]cmd_close_receipt [20:49:07]MH_GetDate [20:49:07]Write to MH i2c: F0 00 00 A6 05 9A [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: F0 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: F0 09 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: F0 09 00 A6 05 00 43 01 C5 66 5F 7F 2B 66 81 [20:49:07]GetLastDocTimeStamp 1724186909 [20:49:07]current date 1724186947 [20:49:07]FM_GetShiftState [20:49:07]SAM_PROTO_GetShiftState [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 13 01 00 [20:49:07]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 0E 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BA [20:49:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:49:07]wFMCommunicate OK [20:49:07]SAM_PROTO_GetShiftState done [20:49:07]FM_GetShiftState done [20:49:07]opened in 1724113785 [20:49:07]opened+sec_in_day 1724200185 [20:49:07]quantity*price = 113006 [20:49:07]sum+1 = 113008 [20:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1130.00 Внесено: 1130.00 СДАЧА: 0.00 НСП 1% : 10.00 НДС 12% : 120.01 Наличными: 1130.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 399 20.08.2024 20:49 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139927 ФПД: 216771441637044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T204907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139927&fm=216771441637044&tin=02508201610067®Number=0000000000092569&sum=113000 [20:49:08]StoreToDocumentArchive [20:49:08]shift 453 fd 139927 [20:49:08]save to /storage/0453/doc_00139927 [20:49:08]save last doc name /storage/0453/doc_00139927 to /storage/kkm_last_doc_name [20:49:08]save OK [20:49:08]Clear old archive folders... [20:49:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:08]tlvbuf is 00A56EF0 [20:49:08]SAM_PROTO_ClearQueue [20:49:08]wFMCommunicate request_size=4 [20:49:08]MH_SAM_APDU [20:49:08]CAPDU: 80 09 00 00 [20:49:08]Write to MH i2c: E2 08 00 B4 05 80 09 00 00 00 00 00 00 2B [20:49:08]Write i2c OK [20:49:08]MH_I2C_Read... [20:49:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:08]Read from MH i2c: E2 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 03 00 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [20:49:08]RAPDU: 90 00 [20:49:08]wFMCommunicate OK [20:49:08]SAM_PROTO_ClearQueue done [20:49:08]KKMCreateOFDPacket [20:49:08]OFDProtocolAddRootSTLVToBuf [20:49:08]FM_MakeSignedData [20:49:08]FM_MakeSignedData [20:49:08]SAM_PROTO_SignData [20:49:08]wFMCommunicate request_size=4 [20:49:08]MH_SAM_APDU [20:49:08]CAPDU: 80 0D 01 02 [20:49:08]Write to MH i2c: E2 08 00 B5 05 80 0D 01 02 00 00 00 00 33 [20:49:08]Write i2c OK [20:49:08]MH_I2C_Read... [20:49:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:08]Read from MH i2c: E2 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 03 00 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [20:49:08]RAPDU: 90 00 [20:49:08]wFMCommunicate OK [20:49:08]wFMCommunicate request_size=255 [20:49:08]MH_SAM_APDU [20:49:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6F B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 2E 00 00 00 00 07 04 06 00 68 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 43 01 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 22 02 00 35 04 06 00 C5 [20:49:08]Write to MH i2c: E2 02 01 B6 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6F B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 2E 00 00 00 00 07 04 06 00 68 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 43 01 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 22 02 00 35 04 06 00 C5 00 00 C8 [20:49:08]Write i2c OK [20:49:08]MH_I2C_Read... [20:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:08]Read from MH i2c: E2 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 03 00 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [20:49:08]RAPDU: 90 00 [20:49:08]wFMCommunicate OK [20:49:08]wFMCommunicate request_size=10 [20:49:08]MH_SAM_APDU [20:49:08]CAPDU: 80 0D 02 02 05 27 08 C6 B6 B4 [20:49:08]Write to MH i2c: E2 0D 00 B7 05 80 0D 02 02 05 00 27 08 C6 B6 B4 00 00 9F [20:49:08]Write i2c OK [20:49:08]MH_I2C_Read... [20:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:08]Read from MH i2c: E2 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 03 00 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [20:49:08]RAPDU: 90 00 [20:49:08]wFMCommunicate OK [20:49:08]wFMCommunicate request_size=4 [20:49:08]MH_SAM_APDU [20:49:08]CAPDU: 80 0D 03 02 [20:49:08]Write to MH i2c: E2 08 00 B8 05 80 0D 03 02 00 00 00 00 38 [20:49:08]Write i2c OK [20:49:08]MH_I2C_Read... [20:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:08]Read from MH i2c: E2 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 0B 00 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 0B 00 B8 05 00 59 FD EB 7B 28 F2 E6 72 90 00 67 [20:49:08]RAPDU: 59 FD EB 7B 28 F2 E6 72 90 00 [20:49:08]wFMCommunicate OK [20:49:08]SAM_PROTO_SignData done [20:49:08]FM_MakeSignedData done [20:49:08]CreateOFDProtocolMessage [20:49:08]wFMCommunicate request_size=4 [20:49:08]MH_SAM_APDU [20:49:08]CAPDU: 80 11 00 00 [20:49:08]Write to MH i2c: E2 08 00 B9 05 80 11 00 00 00 00 00 00 38 [20:49:08]Write i2c OK [20:49:08]MH_I2C_Read... [20:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:08]Read from MH i2c: E2 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 17 00 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: E2 17 00 B9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [20:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:49:08]wFMCommunicate OK [20:49:08]CreateOFDProtocolMessage done [20:49:08]OFDSenderStorePacket 139927 [20:49:08]StoreOFDPacket docnum=139927 [20:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 76 A9 07 01 DF DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6F B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 2E 00 00 00 00 07 04 06 00 68 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 43 01 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 22 02 00 35 04 06 00 C5 27 08 C6 B6 B4 59 FD EB 7B 28 F2 E6 72 [20:49:08]CheckFolder [20:49:08]dirname=/storage/ofd_packets [20:49:08]CheckFolder done [20:49:08]ProducePacketName [20:49:08]name=ofd_packets/00139927 [20:49:08]NVStorageSaveData ofd_packets/00139927 [20:49:08]File name is /storage/ofd_packets/00139927 [20:49:08]Write 301 bytes [20:49:08]NVStorageSaveData done [20:49:08]OFDSenderStorePacket done [20:49:08]KKMCreateOFDPacket done [20:49:08]NVStorageSaveData kkm_last_timestamp [20:49:08]File name is /storage/kkm_last_timestamp [20:49:08]Write 4 bytes [20:49:08]NVStorageSaveData done [20:49:08]ExternCall_PrintAddStr [20:49:08]wPrintStart [20:49:08]Write to MH i2c: 01 00 00 BA 05 BF [20:49:08]Write i2c OK [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: 01 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: 01 07 00 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 FF 0F D4 [20:49:08]RasterBufferAndPrint [20:49:08]line Счет N : (1)593782 [20:49:08]line ИНН: 02508201610067 [20:49:08]line Контрольно-Кассовый Чек [20:49:08]line ПРОДАЖА [20:49:08]line ТРК (МРК, ГНК) : 51 [20:49:08]line Товар: 2710124500 [20:49:08]line Аи-95-К-5 [20:49:08]line 15.230 * 74.20 [20:49:08]line = 1130.07 [20:49:08]line НДС 12% НСП 1% [20:49:08]line > о реализуемом товаре [20:49:08]line ОКРУГЛЕНИЕ: -0.07 [20:49:08]line ИТОГО: 1130.00 [20:49:08]line Внесено: 1130.00 [20:49:08]line СДАЧА: 0.00 [20:49:08]line НСП 1% : 10.00 [20:49:08]line НДС 12% : 120.01 [20:49:08]line Наличными: 1130.00 [20:49:08]line Безнал.: 0.00 [20:49:08]line Место: АЗС № 136 "Партнер Нефть" [20:49:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:49:08]line СНО: Общий режим [20:49:08]line Чек 399 20.08.2024 20:49 [20:49:08]line Смена: 453 ФФД: 1.0 [20:49:08]line ЗНМ: 0300000067 [20:49:08]line РНМ: 0000000000092569 [20:49:08]line Версия ККМ: 001 [20:49:08]line ФМ: 0000000000871776 [20:49:08]line ФД: 139927 [20:49:08]line ФПД: 216771441637044 [20:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T204907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139927&fm=216771441637044&tin=02508201610067®Number=0000000000092569&sum=113000 [20:49:08]written 0, free lines is 4095 [20:49:08]OFD Sender: Processing packet 139927 [packets to send 137, broken 136] [20:49:08]ProducePacketName [20:49:08]name=ofd_packets/00139927 [20:49:08]OFD Sender: To server: pG, [20:49:08]CommunicateWithHost lk.salyk.kg:30040 [20:49:08]ConnectInit lk.salyk.kg [20:49:09]Connected sock=10 [20:49:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 76 A9 07 01 DF DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6F B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 2E 00 00 00 00 07 04 06 00 68 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 01 00 00 F4 03 04 00 43 01 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 22 02 00 35 04 06 00 C5 27 08 C6 B6 B4 59 FD EB 7B 28 F2 E6 72 [20:49:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 12 34 47 00 94 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 22 02 00 F4 03 04 00 D5 A7 C4 66 B6 04 01 00 00 7A A9 44 FC 24 8D 16 8E [20:49:09]CommunicateWithHost err = 0 [20:49:09]CheckOFDResponse [20:49:09]1017 (14) - 77093643461234 [20:49:09]1041 (16) - 0000000000871776 [20:49:09]1040 (4) - 139927 [20:49:09]1012 (4) - 20.08.2024 14:27 [20:49:09]1206 (1) - 0 [20:49:09]OFD Sender: Remove packet 139927 [20:49:09]ProducePacketName [20:49:09]name=ofd_packets/00139927 [20:49:09]NVStorageDeleteData [20:49:09]Write to MH i2c: 01 00 00 E5 05 EA [20:49:09]Write i2c OK [20:49:09]MH_I2C_Read... [20:49:09]Read from MH i2c: 01 [20:49:09]MH_I2C_Read... [20:49:09]Read from MH i2c: 01 07 00 [20:49:09]MH_I2C_Read... [20:49:09]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 E3 0C E0 [20:49:09]RasterBufferAndPrint [20:49:09]line [20:49:09]line [20:49:09]line [20:49:09]line [20:49:09]line [20:49:09]written 0, free lines is 3305 [20:49:09]MH_Cut [20:49:09]Write to MH i2c: D1 01 00 EC 05 01 C3 [20:49:09]Write i2c OK [20:49:09]MH_I2C_Read... [20:49:09]Read from MH i2c: D1 [20:49:09]MH_I2C_Read... [20:49:09]Read from MH i2c: D1 01 00 [20:49:09]MH_I2C_Read... [20:49:09]Read from MH i2c: D1 01 00 EC 05 00 C2 [20:49:09]Write to MH i2c: 01 00 00 ED 05 F2 [20:49:09]Write i2c OK [20:49:09]MH_I2C_Read... [20:49:09]OFD Sender: No OFD packet to send [20:49:10]*** Cut start [20:49:10]*** Partial cut [20:49:10]*** CUTSNS_PIN = 1 [20:49:10]*** CUTSNS_PIN = 0 [20:49:10]*** Brake cut motor [20:49:10]Read from MH i2c: 01 [20:49:10]MH_I2C_Read... [20:49:10]*** Stop cut motor [20:49:10]*** Cut end [20:49:10]Read from MH i2c: 01 07 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 FF 0F 07 [20:49:10]process_action close_receipt done [20:49:10]requested_data is exist [20:49:10]produce_requested_data [20:49:10]requested_item fm.sn is exist - process it [20:49:10]wFMCommunicate request_size=4 [20:49:10]MH_SAM_APDU [20:49:10]CAPDU: 80 11 00 00 [20:49:10]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:10]Read from MH i2c: E2 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 17 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [20:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:49:10]wFMCommunicate OK [20:49:10]requested_item fd.num is exist - process it [20:49:10]SAM_PROTO_GetFieldsCounters [20:49:10]wFMCommunicate request_size=4 [20:49:10]MH_SAM_APDU [20:49:10]CAPDU: 80 13 00 00 [20:49:10]Write to MH i2c: E2 08 00 EF 05 80 13 00 00 00 00 00 00 70 [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:10]Read from MH i2c: E2 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 62 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 62 00 EF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 22 02 00 0E 04 04 00 C5 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 CC [20:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 22 02 00 0E 04 04 00 C5 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:49:10]wFMCommunicate OK [20:49:10]SAM_PROTO_GetFieldsCounters done [20:49:10]requested_item shift.num is exist - process it [20:49:10]requested_item shift.opened is exist - process it [20:49:10]req_shift_opened [20:49:10]FM_GetShiftState [20:49:10]SAM_PROTO_GetShiftState [20:49:10]wFMCommunicate request_size=4 [20:49:10]MH_SAM_APDU [20:49:10]CAPDU: 80 13 01 00 [20:49:10]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:10]Read from MH i2c: E2 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 0E 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 03 [20:49:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:49:10]wFMCommunicate OK [20:49:10]SAM_PROTO_GetShiftState done [20:49:10]FM_GetShiftState done [20:49:10]req_shift_opened done [20:49:10]requested_item shift.open_date is exist - process it [20:49:10]req_shift_open_date [20:49:10]req_shift_open_date done [20:49:10]produce_requested_data done [20:49:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139927,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:49:10]process_action_free close_receipt [20:49:10]json_value_free [20:49:10]json_value_free done [20:49:10]process_json_proto returns [20:49:10]Send response to host [20:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139927,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:49:10]free response buf [20:49:10]execute_script done [20:49:10]execute_script returns [20:49:10]free content buf [20:49:10]Sock 7.Close socket [20:49:10]Sock 7.Thread stoped [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:16]accept exits with 9 [20:54:16]New connection [20:54:16]New thread 3066908004 created [20:54:16]Thread 3066764644 joined [20:54:16]Waiting for new connection... [20:54:16] Sock 9.Parse request [20:54:16]Sock 9.Check first char [20:54:16]Sock 9.First char is OK [20:54:16]request: POST /json_proto HTTP/1.0 [20:54:16]Method: POST [20:54:16]URL: /json_proto [20:54:16]Method is POST - this is cgi request [20:54:16]url: /json_proto [20:54:16]query_string will be loaded in cgi processing [20:54:16]execute_cgi json_proto POST (null) [20:54:16]execute_cgi path=json_proto method=POST [20:54:16]POST find Content-Length [20:54:16]Host: 172.17.45.67:8080 [20:54:16]Content-Length: 677 [20:54:16]Content-Type: application/json [20:54:16] [20:54:16]POST finish read [20:54:16]Found Content-Length = 677 [20:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:16]execute_script... [20:54: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)593783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:16]POST & json_proto [20:54:16]process_json_proto [20:54:16]json parsed OK: [20:54:16]protocol is kg_v1.0 [20:54:16]action value=close_receipt [20:54:16]process_action close_receipt [20:54:16]cmd_close_receipt [20:54:16]MH_GetDate [20:54:16]Write to MH i2c: F0 00 00 F1 05 E5 [20:54:16]Write i2c OK [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: F0 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: F0 09 00 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: F0 09 00 F1 05 00 79 02 C5 66 5F 7F 2B 66 03 [20:54:16]GetLastDocTimeStamp 1724186947 [20:54:16]current date 1724187257 [20:54:16]FM_GetShiftState [20:54:16]SAM_PROTO_GetShiftState [20:54:16]wFMCommunicate request_size=4 [20:54:16]MH_SAM_APDU [20:54:16]CAPDU: 80 13 01 00 [20:54:16]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [20:54:16]Write i2c OK [20:54:16]MH_I2C_Read... [20:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:17]Read from MH i2c: E2 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 0E 00 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 05 [20:54:17]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:54:17]wFMCommunicate OK [20:54:17]SAM_PROTO_GetShiftState done [20:54:17]FM_GetShiftState done [20:54:17]opened in 1724113785 [20:54:17]opened+sec_in_day 1724200185 [20:54:17]quantity*price = 50036 [20:54:17]sum+1 = 50037 [20:54:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 400 20.08.2024 20:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139928 ФПД: 44699893482373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T205417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139928&fm=44699893482373&tin=02508201610067®Number=0000000000092569&sum=50000 [20:54:18]StoreToDocumentArchive [20:54:18]shift 453 fd 139928 [20:54:18]save to /storage/0453/doc_00139928 [20:54:18]save last doc name /storage/0453/doc_00139928 to /storage/kkm_last_doc_name [20:54:18]save OK [20:54:18]Clear old archive folders... [20:54:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:18]tlvbuf is 00A57130 [20:54:18]SAM_PROTO_ClearQueue [20:54:18]wFMCommunicate request_size=4 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 09 00 00 [20:54:18]Write to MH i2c: E2 08 00 FF 05 80 09 00 00 00 00 00 00 76 [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 03 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [20:54:18]RAPDU: 90 00 [20:54:18]wFMCommunicate OK [20:54:18]SAM_PROTO_ClearQueue done [20:54:18]KKMCreateOFDPacket [20:54:18]OFDProtocolAddRootSTLVToBuf [20:54:18]FM_MakeSignedData [20:54:18]FM_MakeSignedData [20:54:18]SAM_PROTO_SignData [20:54:18]wFMCommunicate request_size=4 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 0D 01 02 [20:54:18]Write to MH i2c: E2 08 00 00 06 80 0D 01 02 00 00 00 00 7F [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 03 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [20:54:18]RAPDU: 90 00 [20:54:18]wFMCommunicate OK [20:54:18]wFMCommunicate request_size=255 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 79 02 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 22 02 00 35 04 06 00 28 [20:54:18]Write to MH i2c: E2 02 01 01 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 79 02 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 22 02 00 35 04 06 00 28 00 00 E9 [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 03 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [20:54:18]RAPDU: 90 00 [20:54:18]wFMCommunicate OK [20:54:18]wFMCommunicate request_size=10 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 0D 02 02 05 A7 81 45 C3 85 [20:54:18]Write to MH i2c: E2 0D 00 02 06 80 0D 02 02 05 00 A7 81 45 C3 85 00 00 41 [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 03 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [20:54:18]RAPDU: 90 00 [20:54:18]wFMCommunicate OK [20:54:18]wFMCommunicate request_size=4 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 0D 03 02 [20:54:18]Write to MH i2c: E2 08 00 03 06 80 0D 03 02 00 00 00 00 84 [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 0B 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 0B 00 03 06 00 51 50 BB 5F 6C 45 D9 AE 90 00 78 [20:54:18]RAPDU: 51 50 BB 5F 6C 45 D9 AE 90 00 [20:54:18]wFMCommunicate OK [20:54:18]SAM_PROTO_SignData done [20:54:18]FM_MakeSignedData done [20:54:18]CreateOFDProtocolMessage [20:54:18]wFMCommunicate request_size=4 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 11 00 00 [20:54:18]Write to MH i2c: E2 08 00 04 06 80 11 00 00 00 00 00 00 84 [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 17 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 17 00 04 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [20:54:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:54:18]wFMCommunicate OK [20:54:18]CreateOFDProtocolMessage done [20:54:18]OFDSenderStorePacket 139928 [20:54:18]StoreOFDPacket docnum=139928 [20:54:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E 81 07 01 18 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 79 02 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 22 02 00 35 04 06 00 28 A7 81 45 C3 85 51 50 BB 5F 6C 45 D9 AE [20:54:18]CheckFolder [20:54:18]dirname=/storage/ofd_packets [20:54:18]CheckFolder done [20:54:18]ProducePacketName [20:54:18]name=ofd_packets/00139928 [20:54:18]NVStorageSaveData ofd_packets/00139928 [20:54:18]File name is /storage/ofd_packets/00139928 [20:54:18]Write 301 bytes [20:54:18]NVStorageSaveData done [20:54:18]OFDSenderStorePacket done [20:54:18]KKMCreateOFDPacket done [20:54:18]NVStorageSaveData kkm_last_timestamp [20:54:18]File name is /storage/kkm_last_timestamp [20:54:18]Write 4 bytes [20:54:18]NVStorageSaveData done [20:54:18]ExternCall_PrintAddStr [20:54:18]wPrintStart [20:54:18]Write to MH i2c: 01 00 00 05 06 0B [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 07 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [20:54:18]RasterBufferAndPrint [20:54:18]line Счет N : (1)593783 [20:54:18]line ИНН: 02508201610067 [20:54:18]line Контрольно-Кассовый Чек [20:54:18]line ПРОДАЖА [20:54:18]line ТРК (МРК, ГНК) : 42 [20:54:18]line Товар: 2710124130 [20:54:18]line Аи-92-К-5 [20:54:18]line 7.380 * 67.80 [20:54:18]line = 500.36 [20:54:18]line НДС 12% НСП 1% [20:54:18]line > о реализуемом товаре [20:54:18]line ОКРУГЛЕНИЕ: -0.36 [20:54:18]line ИТОГО: 500.00 [20:54:18]line Внесено: 500.00 [20:54:18]line СДАЧА: 0.00 [20:54:18]line НСП 1% : 4.43 [20:54:18]line НДС 12% : 53.14 [20:54:18]line Наличными: 500.00 [20:54:18]line Безнал.: 0.00 [20:54:18]line Место: АЗС № 136 "Партнер Нефть" [20:54:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:54:18]line СНО: Общий режим [20:54:18]line Чек 400 20.08.2024 20:54 [20:54:18]line Смена: 453 ФФД: 1.0 [20:54:18]line ЗНМ: 0300000067 [20:54:18]line РНМ: 0000000000092569 [20:54:18]line Версия ККМ: 001 [20:54:18]line ФМ: 0000000000871776 [20:54:18]line ФД: 139928 [20:54:18]line ФПД: 44699893482373 [20:54:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T205417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139928&fm=44699893482373&tin=02508201610067®Number=0000000000092569&sum=50000 [20:54:19]OFD Sender: Processing packet 139928 [packets to send 137, broken 136] [20:54:19]ProducePacketName [20:54:19]name=ofd_packets/00139928 [20:54:19]OFD Sender: To server: pG, [20:54:19]CommunicateWithHost lk.salyk.kg:30040 [20:54:19]ConnectInit lk.salyk.kg [20:54:19]written 0, free lines is 4095 [20:54:19]Connected sock=10 [20:54:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E 81 07 01 18 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 79 02 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 22 02 00 35 04 06 00 28 A7 81 45 C3 85 51 50 BB 5F 6C 45 D9 AE [20:54:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 32 BE 47 00 8B 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 22 02 00 F4 03 04 00 0B A9 C4 66 B6 04 01 00 00 B8 91 36 9B 38 96 EF 26 [20:54:19]CommunicateWithHost err = 0 [20:54:19]CheckOFDResponse [20:54:19]1017 (14) - 77093643461234 [20:54:19]1041 (16) - 0000000000871776 [20:54:19]1040 (4) - 139928 [20:54:19]1012 (4) - 20.08.2024 14:32 [20:54:19]1206 (1) - 0 [20:54:19]OFD Sender: Remove packet 139928 [20:54:19]ProducePacketName [20:54:19]name=ofd_packets/00139928 [20:54:19]NVStorageDeleteData [20:54:19]Write to MH i2c: 01 00 00 30 06 36 [20:54:19]Write i2c OK [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: 01 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: 01 07 00 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 E2 0C 2B [20:54:19]RasterBufferAndPrint [20:54:19]line [20:54:19]line [20:54:19]line [20:54:19]line [20:54:19]line [20:54:19]written 0, free lines is 3304 [20:54:19]MH_Cut [20:54:19]Write to MH i2c: D1 01 00 37 06 01 0F [20:54:19]Write i2c OK [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: D1 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: D1 01 00 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: D1 01 00 37 06 00 0E [20:54:19]Write to MH i2c: 01 00 00 38 06 3E [20:54:19]Write i2c OK [20:54:19]MH_I2C_Read... [20:54:19]OFD Sender: No OFD packet to send [20:54:20]*** Cut start [20:54:20]*** Partial cut [20:54:20]*** CUTSNS_PIN = 1 [20:54:20]*** CUTSNS_PIN = 0 [20:54:20]*** Brake cut motor [20:54:20]Read from MH i2c: 01 [20:54:20]MH_I2C_Read... [20:54:20]*** Stop cut motor [20:54:20]*** Cut end [20:54:20]Read from MH i2c: 01 07 00 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [20:54:20]process_action close_receipt done [20:54:20]requested_data is exist [20:54:20]produce_requested_data [20:54:20]requested_item fm.sn is exist - process it [20:54:20]wFMCommunicate request_size=4 [20:54:20]MH_SAM_APDU [20:54:20]CAPDU: 80 11 00 00 [20:54:20]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [20:54:20]Write i2c OK [20:54:20]MH_I2C_Read... [20:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:20]Read from MH i2c: E2 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 17 00 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [20:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:54:20]wFMCommunicate OK [20:54:20]requested_item fd.num is exist - process it [20:54:20]SAM_PROTO_GetFieldsCounters [20:54:20]wFMCommunicate request_size=4 [20:54:20]MH_SAM_APDU [20:54:20]CAPDU: 80 13 00 00 [20:54:20]Write to MH i2c: E2 08 00 3A 06 80 13 00 00 00 00 00 00 BC [20:54:20]Write i2c OK [20:54:20]MH_I2C_Read... [20:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:20]Read from MH i2c: E2 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 62 00 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 62 00 3A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 22 02 00 0E 04 04 00 C5 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 1C [20:54:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 22 02 00 0E 04 04 00 C5 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:54:20]wFMCommunicate OK [20:54:20]SAM_PROTO_GetFieldsCounters done [20:54:20]requested_item shift.num is exist - process it [20:54:20]requested_item shift.opened is exist - process it [20:54:20]req_shift_opened [20:54:20]FM_GetShiftState [20:54:20]SAM_PROTO_GetShiftState [20:54:20]wFMCommunicate request_size=4 [20:54:20]MH_SAM_APDU [20:54:20]CAPDU: 80 13 01 00 [20:54:20]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [20:54:20]Write i2c OK [20:54:20]MH_I2C_Read... [20:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:21]Read from MH i2c: E2 [20:54:21]MH_I2C_Read... [20:54:21]Read from MH i2c: E2 0E 00 [20:54:21]MH_I2C_Read... [20:54:21]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4F [20:54:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:54:21]wFMCommunicate OK [20:54:21]SAM_PROTO_GetShiftState done [20:54:21]FM_GetShiftState done [20:54:21]req_shift_opened done [20:54:21]requested_item shift.open_date is exist - process it [20:54:21]req_shift_open_date [20:54:21]req_shift_open_date done [20:54:21]produce_requested_data done [20:54:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139928,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:54:21]process_action_free close_receipt [20:54:21]json_value_free [20:54:21]json_value_free done [20:54:21]process_json_proto returns [20:54:21]Send response to host [20:54:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139928,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:54:21]free response buf [20:54:21]execute_script done [20:54:21]execute_script returns [20:54:21]free content buf [20:54:21]Sock 9.Close socket [20:54:21]Sock 9.Thread stoped [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:55:56]accept exits with 7 [20:55:56]New connection [20:55:56]New thread 3066764644 created [20:55:56]Thread 3066908004 joined [20:55:56]Waiting for new connection... [20:55:56] Sock 7.Parse request [20:55:56]Sock 7.Check first char [20:55:56]Sock 7.First char is OK [20:55:56]request: POST /json_proto HTTP/1.0 [20:55:56]Method: POST [20:55:56]URL: /json_proto [20:55:56]Method is POST - this is cgi request [20:55:56]url: /json_proto [20:55:56]query_string will be loaded in cgi processing [20:55:56]execute_cgi json_proto POST (null) [20:55:56]execute_cgi path=json_proto method=POST [20:55:56]POST find Content-Length [20:55:56]Host: 172.17.45.67:8080 [20:55:56]Content-Length: 678 [20:55:56]Content-Type: application/json [20:55:56] [20:55:56]POST finish read [20:55:56]Found Content-Length = 678 [20:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:56]execute_script... [20:55: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)593784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:56]POST & json_proto [20:55:56]process_json_proto [20:55:56]json parsed OK: [20:55:56]protocol is kg_v1.0 [20:55:56]action value=close_receipt [20:55:56]process_action close_receipt [20:55:56]cmd_close_receipt [20:55:56]MH_GetDate [20:55:56]Write to MH i2c: F0 00 00 3C 06 31 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: F0 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: F0 09 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: F0 09 00 3C 06 00 DD 02 C5 66 5F 7F 2B 66 B3 [20:55:56]GetLastDocTimeStamp 1724187257 [20:55:56]current date 1724187357 [20:55:56]FM_GetShiftState [20:55:56]SAM_PROTO_GetShiftState [20:55:56]wFMCommunicate request_size=4 [20:55:56]MH_SAM_APDU [20:55:56]CAPDU: 80 13 01 00 [20:55:56]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [20:55:56]Write i2c OK [20:55:56]MH_I2C_Read... [20:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:56]Read from MH i2c: E2 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 0E 00 [20:55:56]MH_I2C_Read... [20:55:56]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 51 [20:55:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:55:56]wFMCommunicate OK [20:55:56]SAM_PROTO_GetShiftState done [20:55:56]FM_GetShiftState done [20:55:56]opened in 1724113785 [20:55:56]opened+sec_in_day 1724200185 [20:55:56]quantity*price = 80061 [20:55:56]sum+1 = 80063 [20:55:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 401 20.08.2024 20:55 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139929 ФПД: 280134734280422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T205557&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139929&fm=280134734280422&tin=02508201610067®Number=0000000000092569&sum=80000 [20:55:57]StoreToDocumentArchive [20:55:57]shift 453 fd 139929 [20:55:57]save to /storage/0453/doc_00139929 [20:55:57]save last doc name /storage/0453/doc_00139929 to /storage/kkm_last_doc_name [20:55:57]save OK [20:55:57]Clear old archive folders... [20:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:57]tlvbuf is 00A5A7E0 [20:55:57]SAM_PROTO_ClearQueue [20:55:57]wFMCommunicate request_size=4 [20:55:57]MH_SAM_APDU [20:55:57]CAPDU: 80 09 00 00 [20:55:57]Write to MH i2c: E2 08 00 4A 06 80 09 00 00 00 00 00 00 C2 [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:57]Read from MH i2c: E2 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: E2 03 00 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [20:55:57]RAPDU: 90 00 [20:55:57]wFMCommunicate OK [20:55:57]SAM_PROTO_ClearQueue done [20:55:57]KKMCreateOFDPacket [20:55:57]OFDProtocolAddRootSTLVToBuf [20:55:57]FM_MakeSignedData [20:55:57]FM_MakeSignedData [20:55:57]SAM_PROTO_SignData [20:55:57]wFMCommunicate request_size=4 [20:55:57]MH_SAM_APDU [20:55:57]CAPDU: 80 0D 01 02 [20:55:57]Write to MH i2c: E2 08 00 4B 06 80 0D 01 02 00 00 00 00 CA [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:57]Read from MH i2c: E2 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: E2 03 00 [20:55:57]MH_I2C_Read... [20:55:57]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [20:55:57]RAPDU: 90 00 [20:55:57]wFMCommunicate OK [20:55:57]wFMCommunicate request_size=255 [20:55:57]MH_SAM_APDU [20:55:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 91 01 00 00 F4 03 04 00 DD 02 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 22 02 00 35 04 06 00 FE [20:55:57]Write to MH i2c: E2 02 01 4C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 DD 02 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 22 02 00 35 04 06 00 FE 00 00 ED [20:55:57]Write i2c OK [20:55:57]MH_I2C_Read... [20:55:58]Read from MH i2c: E2 [20:55:58]MH_I2C_Read... [20:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:58]Read from MH i2c: E2 03 00 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [20:55:58]RAPDU: 90 00 [20:55:58]wFMCommunicate OK [20:55:58]wFMCommunicate request_size=10 [20:55:58]MH_SAM_APDU [20:55:58]CAPDU: 80 0D 02 02 05 C7 F3 53 76 E6 [20:55:58]Write to MH i2c: E2 0D 00 4D 06 80 0D 02 02 05 00 C7 F3 53 76 E6 00 00 40 [20:55:58]Write i2c OK [20:55:58]MH_I2C_Read... [20:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:58]Read from MH i2c: E2 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: E2 03 00 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [20:55:58]RAPDU: 90 00 [20:55:58]wFMCommunicate OK [20:55:58]wFMCommunicate request_size=4 [20:55:58]MH_SAM_APDU [20:55:58]CAPDU: 80 0D 03 02 [20:55:58]Write to MH i2c: E2 08 00 4E 06 80 0D 03 02 00 00 00 00 CF [20:55:58]Write i2c OK [20:55:58]MH_I2C_Read... [20:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:58]Read from MH i2c: E2 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: E2 0B 00 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: E2 0B 00 4E 06 00 54 3D 84 EE E5 5C 58 85 90 00 F1 [20:55:58]RAPDU: 54 3D 84 EE E5 5C 58 85 90 00 [20:55:58]wFMCommunicate OK [20:55:58]SAM_PROTO_SignData done [20:55:58]FM_MakeSignedData done [20:55:58]CreateOFDProtocolMessage [20:55:58]wFMCommunicate request_size=4 [20:55:58]MH_SAM_APDU [20:55:58]CAPDU: 80 11 00 00 [20:55:58]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [20:55:58]Write i2c OK [20:55:58]MH_I2C_Read... [20:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:58]Read from MH i2c: E2 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: E2 17 00 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: E2 17 00 4F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [20:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:55:58]wFMCommunicate OK [20:55:58]CreateOFDProtocolMessage done [20:55:58]OFDSenderStorePacket 139929 [20:55:58]StoreOFDPacket docnum=139929 [20:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3D 1B 07 01 83 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 DD 02 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 22 02 00 35 04 06 00 FE C7 F3 53 76 E6 54 3D 84 EE E5 5C 58 85 [20:55:58]CheckFolder [20:55:58]dirname=/storage/ofd_packets [20:55:58]CheckFolder done [20:55:58]ProducePacketName [20:55:58]name=ofd_packets/00139929 [20:55:58]NVStorageSaveData ofd_packets/00139929 [20:55:58]File name is /storage/ofd_packets/00139929 [20:55:58]Write 301 bytes [20:55:58]NVStorageSaveData done [20:55:58]OFDSenderStorePacket done [20:55:58]KKMCreateOFDPacket done [20:55:58]NVStorageSaveData kkm_last_timestamp [20:55:58]File name is /storage/kkm_last_timestamp [20:55:58]Write 4 bytes [20:55:58]NVStorageSaveData done [20:55:58]ExternCall_PrintAddStr [20:55:58]wPrintStart [20:55:58]Write to MH i2c: 01 00 00 50 06 56 [20:55:58]Write i2c OK [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: 01 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: 01 07 00 [20:55:58]MH_I2C_Read... [20:55:58]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 FF 0F 6B [20:55:58]RasterBufferAndPrint [20:55:58]line Счет N : (1)593784 [20:55:58]line ИНН: 02508201610067 [20:55:58]line Контрольно-Кассовый Чек [20:55:58]line ПРОДАЖА [20:55:58]line ТРК (МРК, ГНК) : 61 [20:55:58]line Товар: 2710124500 [20:55:58]line Аи-95-К-5 [20:55:58]line 10.790 * 74.20 [20:55:58]line = 800.62 [20:55:58]line НДС 12% НСП 1% [20:55:58]line > о реализуемом товаре [20:55:58]line ОКРУГЛЕНИЕ: -0.62 [20:55:58]line ИТОГО: 800.00 [20:55:58]line Внесено: 800.00 [20:55:58]line СДАЧА: 0.00 [20:55:58]line НСП 1% : 7.08 [20:55:58]line НДС 12% : 85.02 [20:55:58]line Наличными: 800.00 [20:55:58]line Безнал.: 0.00 [20:55:58]line Место: АЗС № 136 "Партнер Нефть" [20:55:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:55:58]line СНО: Общий режим [20:55:58]line Чек 401 20.08.2024 20:55 [20:55:58]line Смена: 453 ФФД: 1.0 [20:55:58]line ЗНМ: 0300000067 [20:55:58]line РНМ: 0000000000092569 [20:55:58]line Версия ККМ: 001 [20:55:58]line ФМ: 0000000000871776 [20:55:58]line ФД: 139929 [20:55:58]line ФПД: 280134734280422 [20:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T205557&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139929&fm=280134734280422&tin=02508201610067®Number=0000000000092569&sum=80000 [20:55:58]written 0, free lines is 4095 [20:55:58]OFD Sender: Processing packet 139929 [packets to send 137, broken 136] [20:55:58]ProducePacketName [20:55:58]name=ofd_packets/00139929 [20:55:58]OFD Sender: To server: pG, [20:55:58]CommunicateWithHost lk.salyk.kg:30040 [20:55:58]ConnectInit lk.salyk.kg [20:55:58]Connected sock=10 [20:55:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3D 1B 07 01 83 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 DD 02 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 22 02 00 35 04 06 00 FE C7 F3 53 76 E6 54 3D 84 EE E5 5C 58 85 [20:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 27 CD 47 00 BB 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 22 02 00 F4 03 04 00 6F A9 C4 66 B6 04 01 00 00 C8 E8 BC 4F 7A 08 E6 3E [20:55:59]CommunicateWithHost err = 0 [20:55:59]CheckOFDResponse [20:55:59]1017 (14) - 77093643461234 [20:55:59]1041 (16) - 0000000000871776 [20:55:59]1040 (4) - 139929 [20:55:59]1012 (4) - 20.08.2024 14:34 [20:55:59]1206 (1) - 0 [20:55:59]OFD Sender: Remove packet 139929 [20:55:59]ProducePacketName [20:55:59]name=ofd_packets/00139929 [20:55:59]NVStorageDeleteData [20:55:59]Write to MH i2c: 01 00 00 7B 06 81 [20:55:59]Write i2c OK [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: 01 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: 01 07 00 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 E1 0C 75 [20:55:59]RasterBufferAndPrint [20:55:59]line [20:55:59]line [20:55:59]line [20:55:59]line [20:55:59]line [20:55:59]written 0, free lines is 3302 [20:55:59]MH_Cut [20:55:59]Write to MH i2c: D1 01 00 82 06 01 5A [20:55:59]Write i2c OK [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: D1 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: D1 01 00 [20:55:59]MH_I2C_Read... [20:55:59]Read from MH i2c: D1 01 00 82 06 00 59 [20:55:59]Write to MH i2c: 01 00 00 83 06 89 [20:55:59]Write i2c OK [20:55:59]MH_I2C_Read... [20:55:59]OFD Sender: No OFD packet to send [20:55:59]*** Cut start [20:55:59]*** Partial cut [20:55:59]*** CUTSNS_PIN = 1 [20:55:59]*** CUTSNS_PIN = 0 [20:56:00]*** Brake cut motor [20:56:00]Read from MH i2c: 01 [20:56:00]MH_I2C_Read... [20:56:00]*** Stop cut motor [20:56:00]*** Cut end [20:56:00]Read from MH i2c: 01 07 00 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [20:56:00]process_action close_receipt done [20:56:00]requested_data is exist [20:56:00]produce_requested_data [20:56:00]requested_item fm.sn is exist - process it [20:56:00]wFMCommunicate request_size=4 [20:56:00]MH_SAM_APDU [20:56:00]CAPDU: 80 11 00 00 [20:56:00]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [20:56:00]Write i2c OK [20:56:00]MH_I2C_Read... [20:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:00]Read from MH i2c: E2 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 17 00 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [20:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:56:00]wFMCommunicate OK [20:56:00]requested_item fd.num is exist - process it [20:56:00]SAM_PROTO_GetFieldsCounters [20:56:00]wFMCommunicate request_size=4 [20:56:00]MH_SAM_APDU [20:56:00]CAPDU: 80 13 00 00 [20:56:00]Write to MH i2c: E2 08 00 85 06 80 13 00 00 00 00 00 00 07 [20:56:00]Write i2c OK [20:56:00]MH_I2C_Read... [20:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:00]Read from MH i2c: E2 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 62 00 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 62 00 85 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 99 22 02 00 0E 04 04 00 C5 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 6B [20:56:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 99 22 02 00 0E 04 04 00 C5 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:56:00]wFMCommunicate OK [20:56:00]SAM_PROTO_GetFieldsCounters done [20:56:00]requested_item shift.num is exist - process it [20:56:00]requested_item shift.opened is exist - process it [20:56:00]req_shift_opened [20:56:00]FM_GetShiftState [20:56:00]SAM_PROTO_GetShiftState [20:56:00]wFMCommunicate request_size=4 [20:56:00]MH_SAM_APDU [20:56:00]CAPDU: 80 13 01 00 [20:56:00]Write to MH i2c: E2 08 00 86 06 80 13 01 00 00 00 00 00 09 [20:56:00]Write i2c OK [20:56:00]MH_I2C_Read... [20:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:00]Read from MH i2c: E2 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 0E 00 [20:56:00]MH_I2C_Read... [20:56:00]Read from MH i2c: E2 0E 00 86 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9A [20:56:00]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [20:56:00]wFMCommunicate OK [20:56:00]SAM_PROTO_GetShiftState done [20:56:00]FM_GetShiftState done [20:56:00]req_shift_opened done [20:56:00]requested_item shift.open_date is exist - process it [20:56:00]req_shift_open_date [20:56:00]req_shift_open_date done [20:56:00]produce_requested_data done [20:56:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139929,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [20:56:00]process_action_free close_receipt [20:56:00]json_value_free [20:56:00]json_value_free done [20:56:00]process_json_proto returns [20:56:00]Send response to host [20:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139929,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [20:56:00]free response buf [20:56:00]execute_script done [20:56:00]execute_script returns [20:56:00]free content buf [20:56:00]Sock 7.Close socket [20:56:00]Sock 7.Thread stoped [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:01]int [20:57:01]Write to MH i2c: 01 00 00 87 06 8D [20:57:01]*** FLAG_PRN_KEY set [20:57:01]Write i2c OK [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 07 00 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 07 00 87 06 00 08 00 00 00 FF 0F AA [20:57:01]state=0 [20:57:01]Key pressed [20:57:01]Feed [20:57:01]Write to MH i2c: D8 00 00 88 06 65 [20:57:01]Write i2c OK [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: D8 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: D8 01 00 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: D8 01 00 88 06 00 66 [20:57:01]int [20:57:01]Write to MH i2c: 01 00 00 89 06 8F [20:57:01]Write i2c OK [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 07 00 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 07 00 89 06 00 48 00 00 00 3C 00 1A [20:57:01]state=2 [20:57:01]Key pressed [20:57:01]int [20:57:01]Write to MH i2c: 01 00 00 8A 06 90 [20:57:01]*** FLAG_PRN_KEY reset [20:57:01]Write i2c OK [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 07 00 [20:57:01]MH_I2C_Read... [20:57:01]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 F5 0F 9B [20:57:01]state=2 [20:57:01]Stop feed [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]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:35]accept exits with 9 [21:00:35]New connection [21:00:35]New thread 3066908004 created [21:00:35]Thread 3066764644 joined [21:00:35]Waiting for new connection... [21:00:35] Sock 9.Parse request [21:00:35]Sock 9.Check first char [21:00:35]Sock 9.First char is OK [21:00:35]request: POST /json_proto HTTP/1.0 [21:00:35]Method: POST [21:00:35]URL: /json_proto [21:00:35]Method is POST - this is cgi request [21:00:35]url: /json_proto [21:00:35]query_string will be loaded in cgi processing [21:00:35]execute_cgi json_proto POST (null) [21:00:35]execute_cgi path=json_proto method=POST [21:00:35]POST find Content-Length [21:00:35]Host: 172.17.45.67:8080 [21:00:35]Content-Length: 677 [21:00:35]Content-Type: application/json [21:00:35] [21:00:35]POST finish read [21:00:35]Found Content-Length = 677 [21:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:35]execute_script... [21:00:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:35]POST & json_proto [21:00:35]process_json_proto [21:00:35]json parsed OK: [21:00:35]protocol is kg_v1.0 [21:00:35]action value=close_receipt [21:00:35]process_action close_receipt [21:00:35]cmd_close_receipt [21:00:35]MH_GetDate [21:00:35]Write to MH i2c: F0 00 00 8B 06 80 [21:00:35]Write i2c OK [21:00:35]MH_I2C_Read... [21:00:35]Read from MH i2c: F0 [21:00:35]MH_I2C_Read... [21:00:35]Read from MH i2c: F0 09 00 [21:00:35]MH_I2C_Read... [21:00:35]Read from MH i2c: F0 09 00 8B 06 00 F4 03 C5 66 5F 7F 2B 66 1A [21:00:35]GetLastDocTimeStamp 1724187357 [21:00:35]current date 1724187636 [21:00:35]FM_GetShiftState [21:00:35]SAM_PROTO_GetShiftState [21:00:35]wFMCommunicate request_size=4 [21:00:35]MH_SAM_APDU [21:00:35]CAPDU: 80 13 01 00 [21:00:35]Write to MH i2c: E2 08 00 8C 06 80 13 01 00 00 00 00 00 0F [21:00:35]Write i2c OK [21:00:35]MH_I2C_Read... [21:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:36]Read from MH i2c: E2 [21:00:36]MH_I2C_Read... [21:00:36]Read from MH i2c: E2 0E 00 [21:00:36]MH_I2C_Read... [21:00:36]Read from MH i2c: E2 0E 00 8C 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A0 [21:00:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:00:36]wFMCommunicate OK [21:00:36]SAM_PROTO_GetShiftState done [21:00:36]FM_GetShiftState done [21:00:36]opened in 1724113785 [21:00:36]opened+sec_in_day 1724200185 [21:00:36]quantity*price = 50036 [21:00:36]sum+1 = 50037 [21:00:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 402 20.08.2024 21:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139930 ФПД: 223515625270543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210036&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139930&fm=223515625270543&tin=02508201610067®Number=0000000000092569&sum=50000 [21:00:37]StoreToDocumentArchive [21:00:37]shift 453 fd 139930 [21:00:37]save to /storage/0453/doc_00139930 [21:00:37]save last doc name /storage/0453/doc_00139930 to /storage/kkm_last_doc_name [21:00:37]save OK [21:00:37]Clear old archive folders... [21:00:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:37]tlvbuf is 00A1B010 [21:00:37]SAM_PROTO_ClearQueue [21:00:37]wFMCommunicate request_size=4 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 09 00 00 [21:00:37]Write to MH i2c: E2 08 00 99 06 80 09 00 00 00 00 00 00 11 [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:37]Read from MH i2c: E2 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [21:00:37]RAPDU: 90 00 [21:00:37]wFMCommunicate OK [21:00:37]SAM_PROTO_ClearQueue done [21:00:37]KKMCreateOFDPacket [21:00:37]OFDProtocolAddRootSTLVToBuf [21:00:37]FM_MakeSignedData [21:00:37]FM_MakeSignedData [21:00:37]SAM_PROTO_SignData [21:00:37]wFMCommunicate request_size=4 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 0D 01 02 [21:00:37]Write to MH i2c: E2 08 00 9A 06 80 0D 01 02 00 00 00 00 19 [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:37]Read from MH i2c: E2 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [21:00:37]RAPDU: 90 00 [21:00:37]wFMCommunicate OK [21:00:37]wFMCommunicate request_size=255 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 F4 03 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 22 02 00 35 04 06 00 CB [21:00:37]Write to MH i2c: E2 02 01 9B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 F4 03 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 22 02 00 35 04 06 00 CB 00 00 A6 [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:37]Read from MH i2c: E2 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [21:00:37]RAPDU: 90 00 [21:00:37]wFMCommunicate OK [21:00:37]wFMCommunicate request_size=10 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 0D 02 02 05 49 49 72 2D 0F [21:00:37]Write to MH i2c: E2 0D 00 9C 06 80 0D 02 02 05 00 49 49 72 2D 0F 00 00 66 [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:37]Read from MH i2c: E2 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [21:00:37]RAPDU: 90 00 [21:00:37]wFMCommunicate OK [21:00:37]wFMCommunicate request_size=4 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 0D 03 02 [21:00:37]Write to MH i2c: E2 08 00 9D 06 80 0D 03 02 00 00 00 00 1E [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:37]Read from MH i2c: E2 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 0B 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 0B 00 9D 06 00 76 FE B0 72 AE D9 23 3F 90 00 9E [21:00:37]RAPDU: 76 FE B0 72 AE D9 23 3F 90 00 [21:00:37]wFMCommunicate OK [21:00:37]SAM_PROTO_SignData done [21:00:37]FM_MakeSignedData done [21:00:37]CreateOFDProtocolMessage [21:00:37]wFMCommunicate request_size=4 [21:00:37]MH_SAM_APDU [21:00:37]CAPDU: 80 11 00 00 [21:00:37]Write to MH i2c: E2 08 00 9E 06 80 11 00 00 00 00 00 00 1E [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:37]Read from MH i2c: E2 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 17 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: E2 17 00 9E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [21:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:00:37]wFMCommunicate OK [21:00:37]CreateOFDProtocolMessage done [21:00:37]OFDSenderStorePacket 139930 [21:00:37]StoreOFDPacket docnum=139930 [21:00:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 0B 07 01 2B 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 F4 03 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 22 02 00 35 04 06 00 CB 49 49 72 2D 0F 76 FE B0 72 AE D9 23 3F [21:00:37]CheckFolder [21:00:37]dirname=/storage/ofd_packets [21:00:37]CheckFolder done [21:00:37]ProducePacketName [21:00:37]name=ofd_packets/00139930 [21:00:37]NVStorageSaveData ofd_packets/00139930 [21:00:37]File name is /storage/ofd_packets/00139930 [21:00:37]Write 301 bytes [21:00:37]NVStorageSaveData done [21:00:37]OFDSenderStorePacket done [21:00:37]KKMCreateOFDPacket done [21:00:37]NVStorageSaveData kkm_last_timestamp [21:00:37]File name is /storage/kkm_last_timestamp [21:00:37]Write 4 bytes [21:00:37]NVStorageSaveData done [21:00:37]ExternCall_PrintAddStr [21:00:37]wPrintStart [21:00:37]Write to MH i2c: 01 00 00 9F 06 A5 [21:00:37]Write i2c OK [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: 01 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: 01 07 00 [21:00:37]MH_I2C_Read... [21:00:37]Read from MH i2c: 01 07 00 9F 06 00 00 00 00 00 FF 0F BA [21:00:37]RasterBufferAndPrint [21:00:37]line Счет N : (1)593785 [21:00:37]line ИНН: 02508201610067 [21:00:37]line Контрольно-Кассовый Чек [21:00:37]line ПРОДАЖА [21:00:37]line ТРК (МРК, ГНК) : 52 [21:00:37]line Товар: 2710124130 [21:00:37]line Аи-92-К-5 [21:00:37]line 7.380 * 67.80 [21:00:37]line = 500.36 [21:00:37]line НДС 12% НСП 1% [21:00:37]line > о реализуемом товаре [21:00:37]line ОКРУГЛЕНИЕ: -0.36 [21:00:37]line ИТОГО: 500.00 [21:00:37]line Внесено: 500.00 [21:00:37]line СДАЧА: 0.00 [21:00:37]line НСП 1% : 4.43 [21:00:37]line НДС 12% : 53.14 [21:00:37]line Наличными: 500.00 [21:00:37]line Безнал.: 0.00 [21:00:37]line Место: АЗС № 136 "Партнер Нефть" [21:00:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:00:37]line СНО: Общий режим [21:00:37]line Чек 402 20.08.2024 21:00 [21:00:37]line Смена: 453 ФФД: 1.0 [21:00:37]line ЗНМ: 0300000067 [21:00:37]line РНМ: 0000000000092569 [21:00:37]line Версия ККМ: 001 [21:00:37]line ФМ: 0000000000871776 [21:00:37]line ФД: 139930 [21:00:37]line ФПД: 223515625270543 [21:00:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210036&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139930&fm=223515625270543&tin=02508201610067®Number=0000000000092569&sum=50000 [21:00:38]written 0, free lines is 4095 [21:00:38]OFD Sender: Processing packet 139930 [packets to send 137, broken 136] [21:00:38]ProducePacketName [21:00:38]name=ofd_packets/00139930 [21:00:38]OFD Sender: To server: pG, [21:00:38]CommunicateWithHost lk.salyk.kg:30040 [21:00:38]ConnectInit lk.salyk.kg [21:00:38]Connected sock=7 [21:00:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 0B 07 01 2B 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 F4 03 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 22 02 00 35 04 06 00 CB 49 49 72 2D 0F 76 FE B0 72 AE D9 23 3F [21:00:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 22 6D 47 00 1C 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 22 02 00 F4 03 04 00 86 AA C4 66 B6 04 01 00 00 48 35 70 46 AD 3A D8 E2 [21:00:38]CommunicateWithHost err = 0 [21:00:38]CheckOFDResponse [21:00:38]1017 (14) - 77093643461234 [21:00:38]1041 (16) - 0000000000871776 [21:00:38]1040 (4) - 139930 [21:00:38]1012 (4) - 20.08.2024 14:39 [21:00:38]1206 (1) - 0 [21:00:38]OFD Sender: Remove packet 139930 [21:00:38]ProducePacketName [21:00:38]name=ofd_packets/00139930 [21:00:38]NVStorageDeleteData [21:00:38]Write to MH i2c: 01 00 00 CA 06 D0 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 07 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 F0 0C D3 [21:00:38]RasterBufferAndPrint [21:00:38]line [21:00:38]line [21:00:38]line [21:00:38]line [21:00:38]line [21:00:38]written 0, free lines is 3318 [21:00:38]MH_Cut [21:00:38]Write to MH i2c: D1 01 00 D1 06 01 A9 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: D1 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: D1 01 00 [21:00:38]MH_I2C_Read... [21:00:38]Read from MH i2c: D1 01 00 D1 06 00 A8 [21:00:38]Write to MH i2c: 01 00 00 D2 06 D8 [21:00:38]Write i2c OK [21:00:38]MH_I2C_Read... [21:00:38]OFD Sender: No OFD packet to send [21:00:39]*** Cut start [21:00:39]*** Partial cut [21:00:39]*** CUTSNS_PIN = 1 [21:00:39]*** CUTSNS_PIN = 0 [21:00:39]*** Brake cut motor [21:00:39]Read from MH i2c: 01 [21:00:39]MH_I2C_Read... [21:00:39]*** Stop cut motor [21:00:39]*** Cut end [21:00:39]Read from MH i2c: 01 07 00 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [21:00:39]process_action close_receipt done [21:00:39]requested_data is exist [21:00:39]produce_requested_data [21:00:39]requested_item fm.sn is exist - process it [21:00:39]wFMCommunicate request_size=4 [21:00:39]MH_SAM_APDU [21:00:39]CAPDU: 80 11 00 00 [21:00:39]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [21:00:39]Write i2c OK [21:00:39]MH_I2C_Read... [21:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:39]Read from MH i2c: E2 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 17 00 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [21:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:00:39]wFMCommunicate OK [21:00:39]requested_item fd.num is exist - process it [21:00:39]SAM_PROTO_GetFieldsCounters [21:00:39]wFMCommunicate request_size=4 [21:00:39]MH_SAM_APDU [21:00:39]CAPDU: 80 13 00 00 [21:00:39]Write to MH i2c: E2 08 00 D4 06 80 13 00 00 00 00 00 00 56 [21:00:39]Write i2c OK [21:00:39]MH_I2C_Read... [21:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:39]Read from MH i2c: E2 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 62 00 [21:00:39]MH_I2C_Read... [21:00:39]Read from MH i2c: E2 62 00 D4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9A 22 02 00 0E 04 04 00 C5 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 BE [21:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9A 22 02 00 0E 04 04 00 C5 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 [21:00:39]wFMCommunicate OK [21:00:39]SAM_PROTO_GetFieldsCounters done [21:00:39]requested_item shift.num is exist - process it [21:00:39]requested_item shift.opened is exist - process it [21:00:39]req_shift_opened [21:00:39]FM_GetShiftState [21:00:39]SAM_PROTO_GetShiftState [21:00:39]wFMCommunicate request_size=4 [21:00:39]MH_SAM_APDU [21:00:39]CAPDU: 80 13 01 00 [21:00:40]Write to MH i2c: E2 08 00 D5 06 80 13 01 00 00 00 00 00 58 [21:00:40]Write i2c OK [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: E2 [21:00:40]MH_I2C_Read... [21:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:40]Read from MH i2c: E2 0E 00 [21:00:40]MH_I2C_Read... [21:00:40]Read from MH i2c: E2 0E 00 D5 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E9 [21:00:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:00:40]wFMCommunicate OK [21:00:40]SAM_PROTO_GetShiftState done [21:00:40]FM_GetShiftState done [21:00:40]req_shift_opened done [21:00:40]requested_item shift.open_date is exist - process it [21:00:40]req_shift_open_date [21:00:40]req_shift_open_date done [21:00:40]produce_requested_data done [21:00:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139930,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:00:40]process_action_free close_receipt [21:00:40]json_value_free [21:00:40]json_value_free done [21:00:40]process_json_proto returns [21:00:40]Send response to host [21:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139930,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:00:40]free response buf [21:00:40]execute_script done [21:00:40]execute_script returns [21:00:40]free content buf [21:00:40]Sock 9.Close socket [21:00:40]Sock 9.Thread stoped [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:55]accept exits with 10 [21:00:55]New connection [21:00:55]New thread 3066764644 created [21:00:55]Thread 3066908004 joined [21:00:55]Waiting for new connection... [21:00:55] Sock 10.Parse request [21:00:55]Sock 10.Check first char [21:00:55]Sock 10.First char is OK [21:00:55]request: POST /json_proto HTTP/1.0 [21:00:55]Method: POST [21:00:55]URL: /json_proto [21:00:55]Method is POST - this is cgi request [21:00:55]url: /json_proto [21:00:55]query_string will be loaded in cgi processing [21:00:55]execute_cgi json_proto POST (null) [21:00:55]execute_cgi path=json_proto method=POST [21:00:55]POST find Content-Length [21:00:55]Host: 172.17.45.67:8080 [21:00:55]Content-Length: 682 [21:00:55]Content-Type: application/json [21:00:55] [21:00:55]POST finish read [21:00:55]Found Content-Length = 682 [21:00:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:55]execute_script... [21:00: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)593786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:00:55]POST & json_proto [21:00:55]process_json_proto [21:00:55]json parsed OK: [21:00:55]protocol is kg_v1.0 [21:00:55]action value=close_receipt [21:00:55]process_action close_receipt [21:00:55]cmd_close_receipt [21:00:55]MH_GetDate [21:00:55]Write to MH i2c: F0 00 00 D6 06 CB [21:00:55]Write i2c OK [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: F0 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: F0 09 00 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: F0 09 00 D6 06 00 08 04 C5 66 5F 7F 2B 66 7A [21:00:55]GetLastDocTimeStamp 1724187636 [21:00:55]current date 1724187656 [21:00:55]FM_GetShiftState [21:00:55]SAM_PROTO_GetShiftState [21:00:55]wFMCommunicate request_size=4 [21:00:55]MH_SAM_APDU [21:00:55]CAPDU: 80 13 01 00 [21:00:55]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [21:00:55]Write i2c OK [21:00:55]MH_I2C_Read... [21:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:55]Read from MH i2c: E2 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: E2 0E 00 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EB [21:00:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:00:55]wFMCommunicate OK [21:00:55]SAM_PROTO_GetShiftState done [21:00:55]FM_GetShiftState done [21:00:55]opened in 1724113785 [21:00:55]opened+sec_in_day 1724200185 [21:00:55]quantity*price = 100021 [21:00:55]sum+1 = 100023 [21:00:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 403 20.08.2024 21:00 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139931 ФПД: 80070796452437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210056&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139931&fm=80070796452437&tin=02508201610067®Number=0000000000092569&sum=100000 [21:00:57]StoreToDocumentArchive [21:00:57]shift 453 fd 139931 [21:00:57]save to /storage/0453/doc_00139931 [21:00:57]save last doc name /storage/0453/doc_00139931 to /storage/kkm_last_doc_name [21:00:57]save OK [21:00:57]Clear old archive folders... [21:00:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:00:57]tlvbuf is 00A5B070 [21:00:57]SAM_PROTO_ClearQueue [21:00:57]wFMCommunicate request_size=4 [21:00:57]MH_SAM_APDU [21:00:57]CAPDU: 80 09 00 00 [21:00:57]Write to MH i2c: E2 08 00 E4 06 80 09 00 00 00 00 00 00 5C [21:00:57]Write i2c OK [21:00:57]MH_I2C_Read... [21:00:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:00:57]Read from MH i2c: E2 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 03 00 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [21:00:57]RAPDU: 90 00 [21:00:57]wFMCommunicate OK [21:00:57]SAM_PROTO_ClearQueue done [21:00:57]KKMCreateOFDPacket [21:00:57]OFDProtocolAddRootSTLVToBuf [21:00:57]FM_MakeSignedData [21:00:57]FM_MakeSignedData [21:00:57]SAM_PROTO_SignData [21:00:57]wFMCommunicate request_size=4 [21:00:57]MH_SAM_APDU [21:00:57]CAPDU: 80 0D 01 02 [21:00:57]Write to MH i2c: E2 08 00 E5 06 80 0D 01 02 00 00 00 00 64 [21:00:57]Write i2c OK [21:00:57]MH_I2C_Read... [21:00:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:00:57]Read from MH i2c: E2 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 03 00 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [21:00:57]RAPDU: 90 00 [21:00:57]wFMCommunicate OK [21:00:57]wFMCommunicate request_size=255 [21:00:57]MH_SAM_APDU [21:00:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 08 04 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 22 02 00 35 04 06 00 48 [21:00:57]Write to MH i2c: E2 02 01 E6 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 08 04 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 22 02 00 35 04 06 00 48 00 00 B2 [21:00:57]Write i2c OK [21:00:57]MH_I2C_Read... [21:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:57]Read from MH i2c: E2 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 03 00 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [21:00:57]RAPDU: 90 00 [21:00:57]wFMCommunicate OK [21:00:57]wFMCommunicate request_size=10 [21:00:57]MH_SAM_APDU [21:00:57]CAPDU: 80 0D 02 02 05 D2 EF 61 22 55 [21:00:57]Write to MH i2c: E2 0D 00 E7 06 80 0D 02 02 05 00 D2 EF 61 22 55 00 00 0A [21:00:57]Write i2c OK [21:00:57]MH_I2C_Read... [21:00:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:00:57]Read from MH i2c: E2 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 03 00 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [21:00:57]RAPDU: 90 00 [21:00:57]wFMCommunicate OK [21:00:57]wFMCommunicate request_size=4 [21:00:57]MH_SAM_APDU [21:00:57]CAPDU: 80 0D 03 02 [21:00:57]Write to MH i2c: E2 08 00 E8 06 80 0D 03 02 00 00 00 00 69 [21:00:57]Write i2c OK [21:00:57]MH_I2C_Read... [21:00:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:00:57]Read from MH i2c: E2 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 0B 00 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 0B 00 E8 06 00 C4 70 23 1A 93 25 C7 81 90 00 DB [21:00:57]RAPDU: C4 70 23 1A 93 25 C7 81 90 00 [21:00:57]wFMCommunicate OK [21:00:57]SAM_PROTO_SignData done [21:00:57]FM_MakeSignedData done [21:00:57]CreateOFDProtocolMessage [21:00:57]wFMCommunicate request_size=4 [21:00:57]MH_SAM_APDU [21:00:57]CAPDU: 80 11 00 00 [21:00:57]Write to MH i2c: E2 08 00 E9 06 80 11 00 00 00 00 00 00 69 [21:00:57]Write i2c OK [21:00:57]MH_I2C_Read... [21:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:57]Read from MH i2c: E2 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 17 00 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: E2 17 00 E9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [21:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:00:57]wFMCommunicate OK [21:00:57]CreateOFDProtocolMessage done [21:00:57]OFDSenderStorePacket 139931 [21:00:57]StoreOFDPacket docnum=139931 [21:00:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E EA 07 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 08 04 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 22 02 00 35 04 06 00 48 D2 EF 61 22 55 C4 70 23 1A 93 25 C7 81 [21:00:57]CheckFolder [21:00:57]dirname=/storage/ofd_packets [21:00:57]CheckFolder done [21:00:57]ProducePacketName [21:00:57]name=ofd_packets/00139931 [21:00:57]NVStorageSaveData ofd_packets/00139931 [21:00:57]File name is /storage/ofd_packets/00139931 [21:00:57]Write 301 bytes [21:00:57]NVStorageSaveData done [21:00:57]OFDSenderStorePacket done [21:00:57]KKMCreateOFDPacket done [21:00:57]NVStorageSaveData kkm_last_timestamp [21:00:57]File name is /storage/kkm_last_timestamp [21:00:57]Write 4 bytes [21:00:57]NVStorageSaveData done [21:00:57]ExternCall_PrintAddStr [21:00:57]wPrintStart [21:00:57]Write to MH i2c: 01 00 00 EA 06 F0 [21:00:57]Write i2c OK [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: 01 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: 01 07 00 [21:00:57]MH_I2C_Read... [21:00:57]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 FF 0F 05 [21:00:57]RasterBufferAndPrint [21:00:57]line Счет N : (1)593786 [21:00:57]line ИНН: 02508201610067 [21:00:57]line Контрольно-Кассовый Чек [21:00:57]line ПРОДАЖА [21:00:57]line ТРК (МРК, ГНК) : 41 [21:00:57]line Товар: 2710124500 [21:00:57]line Аи-95-К-5 [21:00:57]line 13.480 * 74.20 [21:00:57]line = 1000.22 [21:00:57]line НДС 12% НСП 1% [21:00:57]line > о реализуемом товаре [21:00:57]line ОКРУГЛЕНИЕ: -0.22 [21:00:57]line ИТОГО: 1000.00 [21:00:57]line Внесено: 1000.00 [21:00:57]line СДАЧА: 0.00 [21:00:57]line НСП 1% : 8.85 [21:00:57]line НДС 12% : 106.22 [21:00:57]line Наличными: 1000.00 [21:00:57]line Безнал.: 0.00 [21:00:57]line Место: АЗС № 136 "Партнер Нефть" [21:00:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:00:57]line СНО: Общий режим [21:00:57]line Чек 403 20.08.2024 21:00 [21:00:57]line Смена: 453 ФФД: 1.0 [21:00:57]line ЗНМ: 0300000067 [21:00:57]line РНМ: 0000000000092569 [21:00:57]line Версия ККМ: 001 [21:00:57]line ФМ: 0000000000871776 [21:00:57]line ФД: 139931 [21:00:57]line ФПД: 80070796452437 [21:00:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210056&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139931&fm=80070796452437&tin=02508201610067®Number=0000000000092569&sum=100000 [21:00:57]OFD Sender: Processing packet 139931 [packets to send 137, broken 136] [21:00:57]ProducePacketName [21:00:57]name=ofd_packets/00139931 [21:00:57]OFD Sender: To server: pG, [21:00:57]CommunicateWithHost lk.salyk.kg:30040 [21:00:57]ConnectInit lk.salyk.kg [21:00:57]written 0, free lines is 4095 [21:00:58]Connected sock=9 [21:00:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E EA 07 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 08 04 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 22 02 00 35 04 06 00 48 D2 EF 61 22 55 C4 70 23 1A 93 25 C7 81 [21:00:58]Write to MH i2c: 01 00 00 15 07 1C [21:00:58]Write i2c OK [21:00:58]MH_I2C_Read... [21:00:58]Read from MH i2c: 01 [21:00:58]MH_I2C_Read... [21:00:58]Read from MH i2c: 01 07 00 [21:00:58]MH_I2C_Read... [21:00:58]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 D8 0C 07 [21:00:58]RasterBufferAndPrint [21:00:58]line [21:00:58]line [21:00:58]line [21:00:58]line [21:00:58]line [21:00:58]written 0, free lines is 3295 [21:00:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 98 AF 47 00 86 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 22 02 00 F4 03 04 00 9A AA C4 66 B6 04 01 00 00 25 A4 8C F7 67 B2 C2 91 [21:00:58]CommunicateWithHost err = 0 [21:00:58]CheckOFDResponse [21:00:58]1017 (14) - 77093643461234 [21:00:58]1041 (16) - 0000000000871776 [21:00:58]1040 (4) - 139931 [21:00:58]1012 (4) - 20.08.2024 14:39 [21:00:58]1206 (1) - 0 [21:00:58]OFD Sender: Remove packet 139931 [21:00:58]ProducePacketName [21:00:58]name=ofd_packets/00139931 [21:00:58]NVStorageDeleteData [21:00:58]MH_Cut [21:00:58]Write to MH i2c: D1 01 00 1C 07 01 F5 [21:00:58]Write i2c OK [21:00:58]MH_I2C_Read... [21:00:58]Read from MH i2c: D1 [21:00:58]MH_I2C_Read... [21:00:58]Read from MH i2c: D1 01 00 [21:00:58]MH_I2C_Read... [21:00:58]Read from MH i2c: D1 01 00 1C 07 00 F4 [21:00:58]Write to MH i2c: 01 00 00 1D 07 24 [21:00:58]Write i2c OK [21:00:58]MH_I2C_Read... [21:00:58]OFD Sender: No OFD packet to send [21:00:59]*** Cut start [21:00:59]*** Partial cut [21:00:59]*** CUTSNS_PIN = 1 [21:00:59]*** CUTSNS_PIN = 0 [21:00:59]*** Brake cut motor [21:00:59]Read from MH i2c: 01 [21:00:59]MH_I2C_Read... [21:00:59]*** Stop cut motor [21:00:59]*** Cut end [21:00:59]Read from MH i2c: 01 07 00 [21:00:59]MH_I2C_Read... [21:00:59]Read from MH i2c: 01 07 00 1D 07 00 00 00 00 00 FF 0F 39 [21:00:59]process_action close_receipt done [21:00:59]requested_data is exist [21:00:59]produce_requested_data [21:00:59]requested_item fm.sn is exist - process it [21:00:59]wFMCommunicate request_size=4 [21:00:59]MH_SAM_APDU [21:00:59]CAPDU: 80 11 00 00 [21:00:59]Write to MH i2c: E2 08 00 1E 07 80 11 00 00 00 00 00 00 9F [21:00:59]Write i2c OK [21:00:59]MH_I2C_Read... [21:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:00:59]Read from MH i2c: E2 [21:00:59]MH_I2C_Read... [21:00:59]Read from MH i2c: E2 17 00 [21:00:59]MH_I2C_Read... [21:00:59]Read from MH i2c: E2 17 00 1E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [21:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:00:59]wFMCommunicate OK [21:00:59]requested_item fd.num is exist - process it [21:00:59]SAM_PROTO_GetFieldsCounters [21:00:59]wFMCommunicate request_size=4 [21:00:59]MH_SAM_APDU [21:00:59]CAPDU: 80 13 00 00 [21:00:59]Write to MH i2c: E2 08 00 1F 07 80 13 00 00 00 00 00 00 A2 [21:00:59]Write i2c OK [21:00:59]MH_I2C_Read... [21:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:00:59]Read from MH i2c: E2 [21:00:59]MH_I2C_Read... [21:00:59]Read from MH i2c: E2 62 00 [21:00:59]MH_I2C_Read... [21:00:59]Read from MH i2c: E2 62 00 1F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9B 22 02 00 0E 04 04 00 C5 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 0E [21:00:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9B 22 02 00 0E 04 04 00 C5 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 [21:00:59]wFMCommunicate OK [21:00:59]SAM_PROTO_GetFieldsCounters done [21:00:59]requested_item shift.num is exist - process it [21:00:59]requested_item shift.opened is exist - process it [21:00:59]req_shift_opened [21:00:59]FM_GetShiftState [21:00:59]SAM_PROTO_GetShiftState [21:00:59]wFMCommunicate request_size=4 [21:00:59]MH_SAM_APDU [21:00:59]CAPDU: 80 13 01 00 [21:00:59]Write to MH i2c: E2 08 00 20 07 80 13 01 00 00 00 00 00 A4 [21:00:59]Write i2c OK [21:00:59]MH_I2C_Read... [21:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:00:59]Read from MH i2c: E2 [21:00:59]MH_I2C_Read... [21:00:59]Read from MH i2c: E2 0E 00 [21:00:59]MH_I2C_Read... [21:00:59]Read from MH i2c: E2 0E 00 20 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 35 [21:00:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:00:59]wFMCommunicate OK [21:00:59]SAM_PROTO_GetShiftState done [21:00:59]FM_GetShiftState done [21:00:59]req_shift_opened done [21:00:59]requested_item shift.open_date is exist - process it [21:00:59]req_shift_open_date [21:00:59]req_shift_open_date done [21:00:59]produce_requested_data done [21:00:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139931,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:00:59]process_action_free close_receipt [21:00:59]json_value_free [21:00:59]json_value_free done [21:00:59]process_json_proto returns [21:00:59]Send response to host [21:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139931,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:00:59]free response buf [21:00:59]execute_script done [21:00:59]execute_script returns [21:00:59]free content buf [21:00:59]Sock 10.Close socket [21:00:59]Sock 10.Thread stoped [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:42]accept exits with 7 [21:02:42]New connection [21:02:42]New thread 3066908004 created [21:02:42]Thread 3066764644 joined [21:02:42]Waiting for new connection... [21:02:42] Sock 7.Parse request [21:02:42]Sock 7.Check first char [21:02:42]Sock 7.First char is OK [21:02:42]request: POST /json_proto HTTP/1.0 [21:02:42]Method: POST [21:02:42]URL: /json_proto [21:02:42]Method is POST - this is cgi request [21:02:42]url: /json_proto [21:02:42]query_string will be loaded in cgi processing [21:02:42]execute_cgi json_proto POST (null) [21:02:42]execute_cgi path=json_proto method=POST [21:02:42]POST find Content-Length [21:02:42]Host: 172.17.45.67:8080 [21:02:42]Content-Length: 677 [21:02:42]Content-Type: application/json [21:02:42] [21:02:42]POST finish read [21:02:42]Found Content-Length = 677 [21:02:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:42]execute_script... [21:02: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)593787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:42]POST & json_proto [21:02:42]process_json_proto [21:02:42]json parsed OK: [21:02:42]protocol is kg_v1.0 [21:02:42]action value=close_receipt [21:02:42]process_action close_receipt [21:02:42]cmd_close_receipt [21:02:42]MH_GetDate [21:02:42]Write to MH i2c: F0 00 00 21 07 17 [21:02:42]Write i2c OK [21:02:42]MH_I2C_Read... [21:02:42]Read from MH i2c: F0 [21:02:42]MH_I2C_Read... [21:02:42]Read from MH i2c: F0 09 00 [21:02:42]MH_I2C_Read... [21:02:42]Read from MH i2c: F0 09 00 21 07 00 72 04 C5 66 5F 7F 2B 66 30 [21:02:42]GetLastDocTimeStamp 1724187656 [21:02:42]current date 1724187762 [21:02:42]FM_GetShiftState [21:02:42]SAM_PROTO_GetShiftState [21:02:42]wFMCommunicate request_size=4 [21:02:42]MH_SAM_APDU [21:02:42]CAPDU: 80 13 01 00 [21:02:42]Write to MH i2c: E2 08 00 22 07 80 13 01 00 00 00 00 00 A6 [21:02:42]Write i2c OK [21:02:42]MH_I2C_Read... [21:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:42]Read from MH i2c: E2 [21:02:42]MH_I2C_Read... [21:02:42]Read from MH i2c: E2 0E 00 [21:02:42]MH_I2C_Read... [21:02:42]Read from MH i2c: E2 0E 00 22 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 37 [21:02:42]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:02:42]wFMCommunicate OK [21:02:42]SAM_PROTO_GetShiftState done [21:02:42]FM_GetShiftState done [21:02:42]opened in 1724113785 [21:02:42]opened+sec_in_day 1724200185 [21:02:42]quantity*price = 25018 [21:02:42]sum+1 = 25019 [21:02:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 404 20.08.2024 21:02 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139932 ФПД: 130792135529387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210242&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139932&fm=130792135529387&tin=02508201610067®Number=0000000000092569&sum=25000 [21:02:43]StoreToDocumentArchive [21:02:43]shift 453 fd 139932 [21:02:43]save to /storage/0453/doc_00139932 [21:02:43]save last doc name /storage/0453/doc_00139932 to /storage/kkm_last_doc_name [21:02:43]save OK [21:02:43]Clear old archive folders... [21:02:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:43]tlvbuf is 00A12FE0 [21:02:43]SAM_PROTO_ClearQueue [21:02:43]wFMCommunicate request_size=4 [21:02:43]MH_SAM_APDU [21:02:43]CAPDU: 80 09 00 00 [21:02:43]Write to MH i2c: E2 08 00 2F 07 80 09 00 00 00 00 00 00 A8 [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:43]Read from MH i2c: E2 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 03 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [21:02:43]RAPDU: 90 00 [21:02:43]wFMCommunicate OK [21:02:43]SAM_PROTO_ClearQueue done [21:02:43]KKMCreateOFDPacket [21:02:43]OFDProtocolAddRootSTLVToBuf [21:02:43]FM_MakeSignedData [21:02:43]FM_MakeSignedData [21:02:43]SAM_PROTO_SignData [21:02:43]wFMCommunicate request_size=4 [21:02:43]MH_SAM_APDU [21:02:43]CAPDU: 80 0D 01 02 [21:02:43]Write to MH i2c: E2 08 00 30 07 80 0D 01 02 00 00 00 00 B0 [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:43]Read from MH i2c: E2 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 03 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [21:02:43]RAPDU: 90 00 [21:02:43]wFMCommunicate OK [21:02:43]wFMCommunicate request_size=255 [21:02:43]MH_SAM_APDU [21:02:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 72 04 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 22 02 00 35 04 06 00 76 [21:02:43]Write to MH i2c: E2 02 01 31 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 72 04 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 22 02 00 35 04 06 00 76 00 00 79 [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:43]Read from MH i2c: E2 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 03 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [21:02:43]RAPDU: 90 00 [21:02:43]wFMCommunicate OK [21:02:43]wFMCommunicate request_size=10 [21:02:43]MH_SAM_APDU [21:02:43]CAPDU: 80 0D 02 02 05 F4 6A C7 13 AB [21:02:43]Write to MH i2c: E2 0D 00 32 07 80 0D 02 02 05 00 F4 6A C7 13 AB 00 00 A0 [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:43]Read from MH i2c: E2 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 03 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [21:02:43]RAPDU: 90 00 [21:02:43]wFMCommunicate OK [21:02:43]wFMCommunicate request_size=4 [21:02:43]MH_SAM_APDU [21:02:43]CAPDU: 80 0D 03 02 [21:02:43]Write to MH i2c: E2 08 00 33 07 80 0D 03 02 00 00 00 00 B5 [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:43]Read from MH i2c: E2 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 0B 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 0B 00 33 07 00 67 86 C3 DA D2 C3 BC 36 90 00 C7 [21:02:43]RAPDU: 67 86 C3 DA D2 C3 BC 36 90 00 [21:02:43]wFMCommunicate OK [21:02:43]SAM_PROTO_SignData done [21:02:43]FM_MakeSignedData done [21:02:43]CreateOFDProtocolMessage [21:02:43]wFMCommunicate request_size=4 [21:02:43]MH_SAM_APDU [21:02:43]CAPDU: 80 11 00 00 [21:02:43]Write to MH i2c: E2 08 00 34 07 80 11 00 00 00 00 00 00 B5 [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:43]Read from MH i2c: E2 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 17 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 17 00 34 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [21:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:02:43]wFMCommunicate OK [21:02:43]CreateOFDProtocolMessage done [21:02:43]OFDSenderStorePacket 139932 [21:02:43]StoreOFDPacket docnum=139932 [21:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3B 35 07 01 9D 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 72 04 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 22 02 00 35 04 06 00 76 F4 6A C7 13 AB 67 86 C3 DA D2 C3 BC 36 [21:02:43]CheckFolder [21:02:43]dirname=/storage/ofd_packets [21:02:43]CheckFolder done [21:02:43]ProducePacketName [21:02:43]name=ofd_packets/00139932 [21:02:43]NVStorageSaveData ofd_packets/00139932 [21:02:43]File name is /storage/ofd_packets/00139932 [21:02:43]Write 301 bytes [21:02:43]NVStorageSaveData done [21:02:43]OFDSenderStorePacket done [21:02:43]KKMCreateOFDPacket done [21:02:43]NVStorageSaveData kkm_last_timestamp [21:02:43]File name is /storage/kkm_last_timestamp [21:02:43]Write 4 bytes [21:02:43]NVStorageSaveData done [21:02:43]ExternCall_PrintAddStr [21:02:43]wPrintStart [21:02:43]Write to MH i2c: 01 00 00 35 07 3C [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: 01 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: 01 07 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: 01 07 00 35 07 00 00 00 00 00 FF 0F 51 [21:02:43]RasterBufferAndPrint [21:02:43]line Счет N : (1)593787 [21:02:43]line ИНН: 02508201610067 [21:02:43]line Контрольно-Кассовый Чек [21:02:43]line ПРОДАЖА [21:02:43]line ТРК (МРК, ГНК) : 62 [21:02:43]line Товар: 2710124130 [21:02:43]line Аи-92-К-5 [21:02:43]line 3.690 * 67.80 [21:02:43]line = 250.18 [21:02:43]line НДС 12% НСП 1% [21:02:43]line > о реализуемом товаре [21:02:43]line ОКРУГЛЕНИЕ: -0.18 [21:02:43]line ИТОГО: 250.00 [21:02:43]line Внесено: 250.00 [21:02:43]line СДАЧА: 0.00 [21:02:43]line НСП 1% : 2.21 [21:02:43]line НДС 12% : 26.57 [21:02:43]line Наличными: 250.00 [21:02:43]line Безнал.: 0.00 [21:02:43]line Место: АЗС № 136 "Партнер Нефть" [21:02:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:02:43]line СНО: Общий режим [21:02:43]line Чек 404 20.08.2024 21:02 [21:02:43]line Смена: 453 ФФД: 1.0 [21:02:43]line ЗНМ: 0300000067 [21:02:43]line РНМ: 0000000000092569 [21:02:43]line Версия ККМ: 001 [21:02:43]line ФМ: 0000000000871776 [21:02:43]line ФД: 139932 [21:02:43]line ФПД: 130792135529387 [21:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210242&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139932&fm=130792135529387&tin=02508201610067®Number=0000000000092569&sum=25000 [21:02:44]written 0, free lines is 4095 [21:02:44]OFD Sender: Processing packet 139932 [packets to send 137, broken 136] [21:02:44]ProducePacketName [21:02:44]name=ofd_packets/00139932 [21:02:44]OFD Sender: To server: pG, [21:02:44]CommunicateWithHost lk.salyk.kg:30040 [21:02:44]ConnectInit lk.salyk.kg [21:02:44]Connected sock=10 [21:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3B 35 07 01 9D 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 72 04 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 22 02 00 35 04 06 00 76 F4 6A C7 13 AB 67 86 C3 DA D2 C3 BC 36 [21:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 92 88 47 00 8F 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 22 02 00 F4 03 04 00 05 AB C4 66 B6 04 01 00 00 D5 91 72 26 83 A4 AE D6 [21:02:44]CommunicateWithHost err = 0 [21:02:44]CheckOFDResponse [21:02:44]1017 (14) - 77093643461234 [21:02:44]1041 (16) - 0000000000871776 [21:02:44]1040 (4) - 139932 [21:02:44]1012 (4) - 20.08.2024 14:41 [21:02:44]1206 (1) - 0 [21:02:44]OFD Sender: Remove packet 139932 [21:02:44]ProducePacketName [21:02:44]name=ofd_packets/00139932 [21:02:44]NVStorageDeleteData [21:02:44]Write to MH i2c: 01 00 00 60 07 67 [21:02:44]Write i2c OK [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: 01 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: 01 07 00 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 D4 0C 4E [21:02:44]RasterBufferAndPrint [21:02:44]line [21:02:44]line [21:02:44]line [21:02:44]line [21:02:44]line [21:02:44]written 0, free lines is 3290 [21:02:44]MH_Cut [21:02:44]Write to MH i2c: D1 01 00 67 07 01 40 [21:02:44]Write i2c OK [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: D1 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: D1 01 00 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: D1 01 00 67 07 00 3F [21:02:44]Write to MH i2c: 01 00 00 68 07 6F [21:02:44]Write i2c OK [21:02:44]MH_I2C_Read... [21:02:45]OFD Sender: No OFD packet to send [21:02:45]*** Cut start [21:02:45]*** Partial cut [21:02:45]*** CUTSNS_PIN = 1 [21:02:45]*** CUTSNS_PIN = 0 [21:02:45]*** Brake cut motor [21:02:45]Read from MH i2c: 01 [21:02:45]MH_I2C_Read... [21:02:45]*** Stop cut motor [21:02:45]*** Cut end [21:02:45]Read from MH i2c: 01 07 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 FF 0F 84 [21:02:45]process_action close_receipt done [21:02:45]requested_data is exist [21:02:45]produce_requested_data [21:02:45]requested_item fm.sn is exist - process it [21:02:45]wFMCommunicate request_size=4 [21:02:45]MH_SAM_APDU [21:02:45]CAPDU: 80 11 00 00 [21:02:45]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:46]Read from MH i2c: E2 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 17 00 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 41 [21:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:02:46]wFMCommunicate OK [21:02:46]requested_item fd.num is exist - process it [21:02:46]SAM_PROTO_GetFieldsCounters [21:02:46]wFMCommunicate request_size=4 [21:02:46]MH_SAM_APDU [21:02:46]CAPDU: 80 13 00 00 [21:02:46]Write to MH i2c: E2 08 00 6A 07 80 13 00 00 00 00 00 00 ED [21:02:46]Write i2c OK [21:02:46]MH_I2C_Read... [21:02:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:46]Read from MH i2c: E2 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 62 00 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 62 00 6A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9C 22 02 00 0E 04 04 00 C5 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 5D [21:02:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9C 22 02 00 0E 04 04 00 C5 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 [21:02:46]wFMCommunicate OK [21:02:46]SAM_PROTO_GetFieldsCounters done [21:02:46]requested_item shift.num is exist - process it [21:02:46]requested_item shift.opened is exist - process it [21:02:46]req_shift_opened [21:02:46]FM_GetShiftState [21:02:46]SAM_PROTO_GetShiftState [21:02:46]wFMCommunicate request_size=4 [21:02:46]MH_SAM_APDU [21:02:46]CAPDU: 80 13 01 00 [21:02:46]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [21:02:46]Write i2c OK [21:02:46]MH_I2C_Read... [21:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:46]Read from MH i2c: E2 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 0E 00 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 80 [21:02:46]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:02:46]wFMCommunicate OK [21:02:46]SAM_PROTO_GetShiftState done [21:02:46]FM_GetShiftState done [21:02:46]req_shift_opened done [21:02:46]requested_item shift.open_date is exist - process it [21:02:46]req_shift_open_date [21:02:46]req_shift_open_date done [21:02:46]produce_requested_data done [21:02:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139932,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:02:46]process_action_free close_receipt [21:02:46]json_value_free [21:02:46]json_value_free done [21:02:46]process_json_proto returns [21:02:46]Send response to host [21:02:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139932,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:02:46]free response buf [21:02:46]execute_script done [21:02:46]execute_script returns [21:02:46]free content buf [21:02:46]Sock 7.Close socket [21:02:46]Sock 7.Thread stoped [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:31]int [21:03:31]Write to MH i2c: 01 00 00 6C 07 73 [21:03:31]*** FLAG_PRN_KEY set [21:03:31]Write i2c OK [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: 01 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: 01 07 00 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: 01 07 00 6C 07 00 08 00 00 00 FF 0F 90 [21:03:31]state=0 [21:03:31]Key pressed [21:03:31]Feed [21:03:31]Write to MH i2c: D8 00 00 6D 07 4B [21:03:31]Write i2c OK [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: D8 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: D8 01 00 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: D8 01 00 6D 07 00 4C [21:03:31]int [21:03:31]Write to MH i2c: 01 00 00 6E 07 75 [21:03:31]Write i2c OK [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: 01 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: 01 07 00 [21:03:31]MH_I2C_Read... [21:03:31]Read from MH i2c: 01 07 00 6E 07 00 48 00 00 00 3C 00 00 [21:03:31]state=2 [21:03:31]Key pressed [21:03:32]int [21:03:32]Write to MH i2c: 01 00 00 6F 07 76 [21:03:32]*** FLAG_PRN_KEY reset [21:03:32]Write i2c OK [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: 01 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: 01 07 00 [21:03:32]MH_I2C_Read... [21:03:32]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 F6 0F 82 [21:03:32]state=2 [21:03:32]Stop feed [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:47]accept exits with 9 [21:05:47]New connection [21:05:47]New thread 3066764644 created [21:05:47]Thread 3066908004 joined [21:05:47]Waiting for new connection... [21:05:47] Sock 9.Parse request [21:05:47]Sock 9.Check first char [21:05:47]Sock 9.First char is OK [21:05:47]request: POST /json_proto HTTP/1.0 [21:05:47]Method: POST [21:05:47]URL: /json_proto [21:05:47]Method is POST - this is cgi request [21:05:47]url: /json_proto [21:05:47]query_string will be loaded in cgi processing [21:05:47]execute_cgi json_proto POST (null) [21:05:47]execute_cgi path=json_proto method=POST [21:05:47]POST find Content-Length [21:05:47]Host: 172.17.45.67:8080 [21:05:47]Content-Length: 682 [21:05:47]Content-Type: application/json [21:05:47] [21:05:47]POST finish read [21:05:47]Found Content-Length = 682 [21:05:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:47]execute_script... [21:05:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:47]POST & json_proto [21:05:47]process_json_proto [21:05:47]json parsed OK: [21:05:47]protocol is kg_v1.0 [21:05:47]action value=close_receipt [21:05:47]process_action close_receipt [21:05:47]cmd_close_receipt [21:05:47]MH_GetDate [21:05:47]Write to MH i2c: F0 00 00 70 07 66 [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: F0 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: F0 09 00 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: F0 09 00 70 07 00 2B 05 C5 66 5F 7F 2B 66 39 [21:05:47]GetLastDocTimeStamp 1724187762 [21:05:47]current date 1724187947 [21:05:47]FM_GetShiftState [21:05:47]SAM_PROTO_GetShiftState [21:05:47]wFMCommunicate request_size=4 [21:05:47]MH_SAM_APDU [21:05:47]CAPDU: 80 13 01 00 [21:05:47]Write to MH i2c: E2 08 00 71 07 80 13 01 00 00 00 00 00 F5 [21:05:47]Write i2c OK [21:05:47]MH_I2C_Read... [21:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:47]Read from MH i2c: E2 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: E2 0E 00 [21:05:47]MH_I2C_Read... [21:05:47]Read from MH i2c: E2 0E 00 71 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 86 [21:05:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:05:47]wFMCommunicate OK [21:05:47]SAM_PROTO_GetShiftState done [21:05:47]FM_GetShiftState done [21:05:47]opened in 1724113785 [21:05:47]opened+sec_in_day 1724200185 [21:05:47]quantity*price = 120006 [21:05:47]sum+1 = 120007 [21:05:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 405 20.08.2024 21:05 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139933 ФПД: 142022331735497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210547&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139933&fm=142022331735497&tin=02508201610067®Number=0000000000092569&sum=120000 [21:05:48]StoreToDocumentArchive [21:05:48]shift 453 fd 139933 [21:05:48]save to /storage/0453/doc_00139933 [21:05:48]save last doc name /storage/0453/doc_00139933 to /storage/kkm_last_doc_name [21:05:48]save OK [21:05:48]Clear old archive folders... [21:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:48]tlvbuf is 00A5B030 [21:05:48]SAM_PROTO_ClearQueue [21:05:48]wFMCommunicate request_size=4 [21:05:48]MH_SAM_APDU [21:05:48]CAPDU: 80 09 00 00 [21:05:48]Write to MH i2c: E2 08 00 7E 07 80 09 00 00 00 00 00 00 F7 [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:48]Read from MH i2c: E2 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [21:05:48]RAPDU: 90 00 [21:05:48]wFMCommunicate OK [21:05:48]SAM_PROTO_ClearQueue done [21:05:48]KKMCreateOFDPacket [21:05:48]OFDProtocolAddRootSTLVToBuf [21:05:48]FM_MakeSignedData [21:05:48]FM_MakeSignedData [21:05:48]SAM_PROTO_SignData [21:05:48]wFMCommunicate request_size=4 [21:05:48]MH_SAM_APDU [21:05:48]CAPDU: 80 0D 01 02 [21:05:48]Write to MH i2c: E2 08 00 7F 07 80 0D 01 02 00 00 00 00 FF [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:48]Read from MH i2c: E2 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [21:05:48]RAPDU: 90 00 [21:05:48]wFMCommunicate OK [21:05:48]wFMCommunicate request_size=255 [21:05:48]MH_SAM_APDU [21:05:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 2B 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 22 02 00 35 04 06 00 81 [21:05:48]Write to MH i2c: E2 02 01 80 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 2B 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 22 02 00 35 04 06 00 81 00 00 F3 [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:48]Read from MH i2c: E2 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 80 07 00 90 00 FB [21:05:48]RAPDU: 90 00 [21:05:48]wFMCommunicate OK [21:05:48]wFMCommunicate request_size=10 [21:05:48]MH_SAM_APDU [21:05:48]CAPDU: 80 0D 02 02 05 2B 26 A2 1D C9 [21:05:48]Write to MH i2c: E2 0D 00 81 07 80 0D 02 02 05 00 2B 26 A2 1D C9 00 00 E5 [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:48]Read from MH i2c: E2 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 [21:05:48]MH_I2C_Read... [21:05:48]Read from MH i2c: E2 03 00 81 07 00 90 00 FC [21:05:48]RAPDU: 90 00 [21:05:48]wFMCommunicate OK [21:05:48]wFMCommunicate request_size=4 [21:05:48]MH_SAM_APDU [21:05:48]CAPDU: 80 0D 03 02 [21:05:48]Write to MH i2c: E2 08 00 82 07 80 0D 03 02 00 00 00 00 04 [21:05:48]Write i2c OK [21:05:48]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 0B 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 0B 00 82 07 00 FC 0B 81 AD 42 27 5F A9 90 00 AB [21:05:49]RAPDU: FC 0B 81 AD 42 27 5F A9 90 00 [21:05:49]wFMCommunicate OK [21:05:49]SAM_PROTO_SignData done [21:05:49]FM_MakeSignedData done [21:05:49]CreateOFDProtocolMessage [21:05:49]wFMCommunicate request_size=4 [21:05:49]MH_SAM_APDU [21:05:49]CAPDU: 80 11 00 00 [21:05:49]Write to MH i2c: E2 08 00 83 07 80 11 00 00 00 00 00 00 04 [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:49]Read from MH i2c: E2 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 17 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: E2 17 00 83 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [21:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:05:49]wFMCommunicate OK [21:05:49]CreateOFDProtocolMessage done [21:05:49]OFDSenderStorePacket 139933 [21:05:49]StoreOFDPacket docnum=139933 [21:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 98 3F 07 01 75 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 2B 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 22 02 00 35 04 06 00 81 2B 26 A2 1D C9 FC 0B 81 AD 42 27 5F A9 [21:05:49]CheckFolder [21:05:49]dirname=/storage/ofd_packets [21:05:49]CheckFolder done [21:05:49]ProducePacketName [21:05:49]name=ofd_packets/00139933 [21:05:49]NVStorageSaveData ofd_packets/00139933 [21:05:49]File name is /storage/ofd_packets/00139933 [21:05:49]Write 301 bytes [21:05:49]NVStorageSaveData done [21:05:49]OFDSenderStorePacket done [21:05:49]KKMCreateOFDPacket done [21:05:49]NVStorageSaveData kkm_last_timestamp [21:05:49]File name is /storage/kkm_last_timestamp [21:05:49]Write 4 bytes [21:05:49]NVStorageSaveData done [21:05:49]ExternCall_PrintAddStr [21:05:49]wPrintStart [21:05:49]Write to MH i2c: 01 00 00 84 07 8B [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: 01 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: 01 07 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: 01 07 00 84 07 00 00 00 00 00 FF 0F A0 [21:05:49]RasterBufferAndPrint [21:05:49]line Счет N : (1)593788 [21:05:49]line ИНН: 02508201610067 [21:05:49]line Контрольно-Кассовый Чек [21:05:49]line ПРОДАЖА [21:05:49]line ТРК (МРК, ГНК) : 52 [21:05:49]line Товар: 2710124130 [21:05:49]line Аи-92-К-5 [21:05:49]line 17.700 * 67.80 [21:05:49]line = 1200.06 [21:05:49]line НДС 12% НСП 1% [21:05:49]line > о реализуемом товаре [21:05:49]line ОКРУГЛЕНИЕ: -0.06 [21:05:49]line ИТОГО: 1200.00 [21:05:49]line Внесено: 1200.00 [21:05:49]line СДАЧА: 0.00 [21:05:49]line НСП 1% : 10.62 [21:05:49]line НДС 12% : 127.44 [21:05:49]line Наличными: 1200.00 [21:05:49]line Безнал.: 0.00 [21:05:49]line Место: АЗС № 136 "Партнер Нефть" [21:05:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:05:49]line СНО: Общий режим [21:05:49]line Чек 405 20.08.2024 21:05 [21:05:49]line Смена: 453 ФФД: 1.0 [21:05:49]line ЗНМ: 0300000067 [21:05:49]line РНМ: 0000000000092569 [21:05:49]line Версия ККМ: 001 [21:05:49]line ФМ: 0000000000871776 [21:05:49]line ФД: 139933 [21:05:49]line ФПД: 142022331735497 [21:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210547&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139933&fm=142022331735497&tin=02508201610067®Number=0000000000092569&sum=120000 [21:05:49]OFD Sender: Processing packet 139933 [packets to send 137, broken 136] [21:05:49]ProducePacketName [21:05:49]name=ofd_packets/00139933 [21:05:49]OFD Sender: To server: pG, [21:05:49]CommunicateWithHost lk.salyk.kg:30040 [21:05:49]ConnectInit lk.salyk.kg [21:05:49]written 0, free lines is 4095 [21:05:49]Connected sock=7 [21:05:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 98 3F 07 01 75 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 2B 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 22 02 00 35 04 06 00 81 2B 26 A2 1D C9 FC 0B 81 AD 42 27 5F A9 [21:05:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C8 84 47 00 E8 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 22 02 00 F4 03 04 00 BE AB C4 66 B6 04 01 00 00 F9 8F 86 B2 0C F2 02 21 [21:05:49]CommunicateWithHost err = 0 [21:05:49]CheckOFDResponse [21:05:49]1017 (14) - 77093643461234 [21:05:49]1041 (16) - 0000000000871776 [21:05:49]1040 (4) - 139933 [21:05:49]1012 (4) - 20.08.2024 14:44 [21:05:49]1206 (1) - 0 [21:05:49]OFD Sender: Remove packet 139933 [21:05:49]ProducePacketName [21:05:49]name=ofd_packets/00139933 [21:05:49]NVStorageDeleteData [21:05:49]Write to MH i2c: 01 00 00 AF 07 B6 [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: 01 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: 01 07 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: 01 07 00 AF 07 00 00 00 00 00 DC 0C A5 [21:05:49]RasterBufferAndPrint [21:05:49]line [21:05:49]line [21:05:49]line [21:05:49]line [21:05:49]line [21:05:49]written 0, free lines is 3298 [21:05:49]MH_Cut [21:05:49]Write to MH i2c: D1 01 00 B6 07 01 8F [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: D1 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: D1 01 00 [21:05:49]MH_I2C_Read... [21:05:49]Read from MH i2c: D1 01 00 B6 07 00 8E [21:05:49]Write to MH i2c: 01 00 00 B7 07 BE [21:05:49]Write i2c OK [21:05:49]MH_I2C_Read... [21:05:50]OFD Sender: No OFD packet to send [21:05:50]*** Cut start [21:05:50]*** Partial cut [21:05:50]*** CUTSNS_PIN = 1 [21:05:50]*** CUTSNS_PIN = 0 [21:05:50]*** Brake cut motor [21:05:51]Read from MH i2c: 01 [21:05:51]MH_I2C_Read... [21:05:51]*** Stop cut motor [21:05:51]*** Cut end [21:05:51]Read from MH i2c: 01 07 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: 01 07 00 B7 07 00 00 00 00 00 FF 0F D3 [21:05:51]process_action close_receipt done [21:05:51]requested_data is exist [21:05:51]produce_requested_data [21:05:51]requested_item fm.sn is exist - process it [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 11 00 00 [21:05:51]Write to MH i2c: E2 08 00 B8 07 80 11 00 00 00 00 00 00 39 [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 17 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 17 00 B8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [21:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:05:51]wFMCommunicate OK [21:05:51]requested_item fd.num is exist - process it [21:05:51]SAM_PROTO_GetFieldsCounters [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 13 00 00 [21:05:51]Write to MH i2c: E2 08 00 B9 07 80 13 00 00 00 00 00 00 3C [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 62 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 62 00 B9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9D 22 02 00 0E 04 04 00 C5 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 B0 [21:05:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9D 22 02 00 0E 04 04 00 C5 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 [21:05:51]wFMCommunicate OK [21:05:51]SAM_PROTO_GetFieldsCounters done [21:05:51]requested_item shift.num is exist - process it [21:05:51]requested_item shift.opened is exist - process it [21:05:51]req_shift_opened [21:05:51]FM_GetShiftState [21:05:51]SAM_PROTO_GetShiftState [21:05:51]wFMCommunicate request_size=4 [21:05:51]MH_SAM_APDU [21:05:51]CAPDU: 80 13 01 00 [21:05:51]Write to MH i2c: E2 08 00 BA 07 80 13 01 00 00 00 00 00 3E [21:05:51]Write i2c OK [21:05:51]MH_I2C_Read... [21:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:51]Read from MH i2c: E2 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 0E 00 [21:05:51]MH_I2C_Read... [21:05:51]Read from MH i2c: E2 0E 00 BA 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CF [21:05:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:05:51]wFMCommunicate OK [21:05:51]SAM_PROTO_GetShiftState done [21:05:51]FM_GetShiftState done [21:05:51]req_shift_opened done [21:05:51]requested_item shift.open_date is exist - process it [21:05:51]req_shift_open_date [21:05:51]req_shift_open_date done [21:05:51]produce_requested_data done [21:05:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139933,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:05:51]process_action_free close_receipt [21:05:51]json_value_free [21:05:51]json_value_free done [21:05:51]process_json_proto returns [21:05:51]Send response to host [21:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139933,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:05:51]free response buf [21:05:51]execute_script done [21:05:51]execute_script returns [21:05:51]free content buf [21:05:51]Sock 9.Close socket [21:05:51]Sock 9.Thread stoped [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:24]accept exits with 10 [21:06:24]New connection [21:06:24]New thread 3066908004 created [21:06:24]Thread 3066764644 joined [21:06:24]Waiting for new connection... [21:06:24] Sock 10.Parse request [21:06:24]Sock 10.Check first char [21:06:24]Sock 10.First char is OK [21:06:24]request: POST /json_proto HTTP/1.0 [21:06:24]Method: POST [21:06:24]URL: /json_proto [21:06:24]Method is POST - this is cgi request [21:06:24]url: /json_proto [21:06:24]query_string will be loaded in cgi processing [21:06:24]execute_cgi json_proto POST (null) [21:06:24]execute_cgi path=json_proto method=POST [21:06:24]POST find Content-Length [21:06:24]Host: 172.17.45.67:8080 [21:06:24]Content-Length: 682 [21:06:24]Content-Type: application/json [21:06:24] [21:06:24]POST finish read [21:06:24]Found Content-Length = 682 [21:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:24]execute_script... [21:06: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)593789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:24]POST & json_proto [21:06:24]process_json_proto [21:06:24]json parsed OK: [21:06:24]protocol is kg_v1.0 [21:06:24]action value=close_receipt [21:06:24]process_action close_receipt [21:06:24]cmd_close_receipt [21:06:24]MH_GetDate [21:06:24]Write to MH i2c: F0 00 00 BB 07 B1 [21:06:24]Write i2c OK [21:06:24]MH_I2C_Read... [21:06:24]Read from MH i2c: F0 [21:06:24]MH_I2C_Read... [21:06:24]Read from MH i2c: F0 09 00 [21:06:24]MH_I2C_Read... [21:06:24]Read from MH i2c: F0 09 00 BB 07 00 50 05 C5 66 5F 7F 2B 66 A9 [21:06:24]GetLastDocTimeStamp 1724187947 [21:06:24]current date 1724187984 [21:06:24]FM_GetShiftState [21:06:24]SAM_PROTO_GetShiftState [21:06:24]wFMCommunicate request_size=4 [21:06:24]MH_SAM_APDU [21:06:24]CAPDU: 80 13 01 00 [21:06:24]Write to MH i2c: E2 08 00 BC 07 80 13 01 00 00 00 00 00 40 [21:06:24]Write i2c OK [21:06:24]MH_I2C_Read... [21:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:24]Read from MH i2c: E2 [21:06:24]MH_I2C_Read... [21:06:24]Read from MH i2c: E2 0E 00 [21:06:24]MH_I2C_Read... [21:06:24]Read from MH i2c: E2 0E 00 BC 07 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D1 [21:06:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:06:24]wFMCommunicate OK [21:06:24]SAM_PROTO_GetShiftState done [21:06:24]FM_GetShiftState done [21:06:24]opened in 1724113785 [21:06:24]opened+sec_in_day 1724200185 [21:06:24]quantity*price = 100005 [21:06:24]sum+1 = 100006 [21:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 406 20.08.2024 21:06 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139934 ФПД: 173119967815202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210624&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139934&fm=173119967815202&tin=02508201610067®Number=0000000000092569&sum=100000 [21:06:25]StoreToDocumentArchive [21:06:25]shift 453 fd 139934 [21:06:25]save to /storage/0453/doc_00139934 [21:06:25]save last doc name /storage/0453/doc_00139934 to /storage/kkm_last_doc_name [21:06:25]save OK [21:06:25]Clear old archive folders... [21:06:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:25]tlvbuf is 00A757B0 [21:06:25]SAM_PROTO_ClearQueue [21:06:25]wFMCommunicate request_size=4 [21:06:25]MH_SAM_APDU [21:06:25]CAPDU: 80 09 00 00 [21:06:25]Write to MH i2c: E2 08 00 C9 07 80 09 00 00 00 00 00 00 42 [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:25]Read from MH i2c: E2 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 03 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 03 00 C9 07 00 90 00 44 [21:06:25]RAPDU: 90 00 [21:06:25]wFMCommunicate OK [21:06:25]SAM_PROTO_ClearQueue done [21:06:25]KKMCreateOFDPacket [21:06:25]OFDProtocolAddRootSTLVToBuf [21:06:25]FM_MakeSignedData [21:06:25]FM_MakeSignedData [21:06:25]SAM_PROTO_SignData [21:06:25]wFMCommunicate request_size=4 [21:06:25]MH_SAM_APDU [21:06:25]CAPDU: 80 0D 01 02 [21:06:25]Write to MH i2c: E2 08 00 CA 07 80 0D 01 02 00 00 00 00 4A [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:25]Read from MH i2c: E2 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 03 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 03 00 CA 07 00 90 00 45 [21:06:25]RAPDU: 90 00 [21:06:25]wFMCommunicate OK [21:06:25]wFMCommunicate request_size=255 [21:06:25]MH_SAM_APDU [21:06:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 50 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 22 02 00 35 04 06 00 9D [21:06:25]Write to MH i2c: E2 02 01 CB 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 50 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 22 02 00 35 04 06 00 9D 00 00 9E [21:06:25]OFD Sender: No OFD packet to send [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:25]Read from MH i2c: E2 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 03 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [21:06:25]RAPDU: 90 00 [21:06:25]wFMCommunicate OK [21:06:25]wFMCommunicate request_size=10 [21:06:25]MH_SAM_APDU [21:06:25]CAPDU: 80 0D 02 02 05 73 A2 2F 66 22 [21:06:25]Write to MH i2c: E2 0D 00 CC 07 80 0D 02 02 05 00 73 A2 2F 66 22 00 00 23 [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:25]Read from MH i2c: E2 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 03 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 03 00 CC 07 00 90 00 47 [21:06:25]RAPDU: 90 00 [21:06:25]wFMCommunicate OK [21:06:25]wFMCommunicate request_size=4 [21:06:25]MH_SAM_APDU [21:06:25]CAPDU: 80 0D 03 02 [21:06:25]Write to MH i2c: E2 08 00 CD 07 80 0D 03 02 00 00 00 00 4F [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:25]Read from MH i2c: E2 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 0B 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 0B 00 CD 07 00 6A 3D A4 65 38 8E E4 25 90 00 CF [21:06:25]RAPDU: 6A 3D A4 65 38 8E E4 25 90 00 [21:06:25]wFMCommunicate OK [21:06:25]SAM_PROTO_SignData done [21:06:25]FM_MakeSignedData done [21:06:25]CreateOFDProtocolMessage [21:06:25]wFMCommunicate request_size=4 [21:06:25]MH_SAM_APDU [21:06:25]CAPDU: 80 11 00 00 [21:06:25]Write to MH i2c: E2 08 00 CE 07 80 11 00 00 00 00 00 00 4F [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:25]Read from MH i2c: E2 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 17 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: E2 17 00 CE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [21:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:06:25]wFMCommunicate OK [21:06:25]CreateOFDProtocolMessage done [21:06:25]OFDSenderStorePacket 139934 [21:06:25]StoreOFDPacket docnum=139934 [21:06:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 82 46 07 01 26 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 50 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 22 02 00 35 04 06 00 9D 73 A2 2F 66 22 6A 3D A4 65 38 8E E4 25 [21:06:25]CheckFolder [21:06:25]dirname=/storage/ofd_packets [21:06:25]CheckFolder done [21:06:25]ProducePacketName [21:06:25]name=ofd_packets/00139934 [21:06:25]NVStorageSaveData ofd_packets/00139934 [21:06:25]File name is /storage/ofd_packets/00139934 [21:06:25]Write 301 bytes [21:06:25]NVStorageSaveData done [21:06:25]OFDSenderStorePacket done [21:06:25]KKMCreateOFDPacket done [21:06:25]NVStorageSaveData kkm_last_timestamp [21:06:25]File name is /storage/kkm_last_timestamp [21:06:25]Write 4 bytes [21:06:25]NVStorageSaveData done [21:06:25]ExternCall_PrintAddStr [21:06:25]wPrintStart [21:06:25]Write to MH i2c: 01 00 00 CF 07 D6 [21:06:25]Write i2c OK [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: 01 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: 01 07 00 [21:06:25]MH_I2C_Read... [21:06:25]Read from MH i2c: 01 07 00 CF 07 00 00 00 00 00 FF 0F EB [21:06:25]RasterBufferAndPrint [21:06:25]line Счет N : (1)593789 [21:06:25]line ИНН: 02508201610067 [21:06:25]line Контрольно-Кассовый Чек [21:06:25]line ПРОДАЖА [21:06:25]line ТРК (МРК, ГНК) : 32 [21:06:25]line Товар: 2710124130 [21:06:25]line Аи-92-К-5 [21:06:25]line 14.750 * 67.80 [21:06:25]line = 1000.05 [21:06:25]line НДС 12% НСП 1% [21:06:25]line > о реализуемом товаре [21:06:25]line ОКРУГЛЕНИЕ: -0.05 [21:06:25]line ИТОГО: 1000.00 [21:06:25]line Внесено: 1000.00 [21:06:25]line СДАЧА: 0.00 [21:06:25]line НСП 1% : 8.85 [21:06:25]line НДС 12% : 106.20 [21:06:25]line Наличными: 1000.00 [21:06:25]line Безнал.: 0.00 [21:06:25]line Место: АЗС № 136 "Партнер Нефть" [21:06:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:06:25]line СНО: Общий режим [21:06:25]line Чек 406 20.08.2024 21:06 [21:06:25]line Смена: 453 ФФД: 1.0 [21:06:25]line ЗНМ: 0300000067 [21:06:25]line РНМ: 0000000000092569 [21:06:25]line Версия ККМ: 001 [21:06:26]line ФМ: 0000000000871776 [21:06:26]line ФД: 139934 [21:06:26]line ФПД: 173119967815202 [21:06:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210624&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139934&fm=173119967815202&tin=02508201610067®Number=0000000000092569&sum=100000 [21:06:26]OFD Sender: Processing packet 139934 [packets to send 137, broken 136] [21:06:26]ProducePacketName [21:06:26]name=ofd_packets/00139934 [21:06:26]OFD Sender: To server: pG, [21:06:26]CommunicateWithHost lk.salyk.kg:30040 [21:06:26]ConnectInit lk.salyk.kg [21:06:26]written 0, free lines is 4095 [21:06:26]Connected sock=9 [21:06:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 82 46 07 01 26 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 50 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 22 02 00 35 04 06 00 9D 73 A2 2F 66 22 6A 3D A4 65 38 8E E4 25 [21:06:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C1 84 47 00 F0 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 22 02 00 F4 03 04 00 E2 AB C4 66 B6 04 01 00 00 D8 96 62 BB 07 81 3D F0 [21:06:26]CommunicateWithHost err = 0 [21:06:26]CheckOFDResponse [21:06:26]1017 (14) - 77093643461234 [21:06:26]1041 (16) - 0000000000871776 [21:06:26]1040 (4) - 139934 [21:06:26]1012 (4) - 20.08.2024 14:44 [21:06:26]1206 (1) - 0 [21:06:26]OFD Sender: Remove packet 139934 [21:06:26]ProducePacketName [21:06:26]name=ofd_packets/00139934 [21:06:26]NVStorageDeleteData [21:06:26]Write to MH i2c: 01 00 00 FA 07 01 [21:06:26]Write i2c OK [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: 01 [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: 01 07 00 [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: 01 07 00 FA 07 00 00 00 00 00 CD 0C E1 [21:06:26]RasterBufferAndPrint [21:06:26]line [21:06:26]line [21:06:26]line [21:06:26]line [21:06:26]line [21:06:26]written 0, free lines is 3282 [21:06:26]MH_Cut [21:06:26]Write to MH i2c: D1 01 00 01 08 01 DB [21:06:26]Write i2c OK [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: D1 [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: D1 01 00 [21:06:26]MH_I2C_Read... [21:06:26]Read from MH i2c: D1 01 00 01 08 00 DA [21:06:26]Write to MH i2c: 01 00 00 02 08 0A [21:06:26]Write i2c OK [21:06:26]MH_I2C_Read... [21:06:27]OFD Sender: No OFD packet to send [21:06:27]*** Cut start [21:06:27]*** Partial cut [21:06:27]*** CUTSNS_PIN = 1 [21:06:27]*** CUTSNS_PIN = 0 [21:06:27]*** Brake cut motor [21:06:27]Read from MH i2c: 01 [21:06:27]MH_I2C_Read... [21:06:27]*** Stop cut motor [21:06:27]*** Cut end [21:06:27]Read from MH i2c: 01 07 00 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 FF 0F 1F [21:06:27]process_action close_receipt done [21:06:27]requested_data is exist [21:06:27]produce_requested_data [21:06:27]requested_item fm.sn is exist - process it [21:06:27]wFMCommunicate request_size=4 [21:06:27]MH_SAM_APDU [21:06:27]CAPDU: 80 11 00 00 [21:06:27]Write to MH i2c: E2 08 00 03 08 80 11 00 00 00 00 00 00 85 [21:06:27]Write i2c OK [21:06:27]MH_I2C_Read... [21:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:27]Read from MH i2c: E2 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 17 00 [21:06:27]MH_I2C_Read... [21:06:27]Read from MH i2c: E2 17 00 03 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DC [21:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:06:27]wFMCommunicate OK [21:06:27]requested_item fd.num is exist - process it [21:06:27]SAM_PROTO_GetFieldsCounters [21:06:27]wFMCommunicate request_size=4 [21:06:27]MH_SAM_APDU [21:06:27]CAPDU: 80 13 00 00 [21:06:27]Write to MH i2c: E2 08 00 04 08 80 13 00 00 00 00 00 00 88 [21:06:27]Write i2c OK [21:06:27]MH_I2C_Read... [21:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:28]Read from MH i2c: E2 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: E2 62 00 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: E2 62 00 04 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9E 22 02 00 0E 04 04 00 C5 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 00 [21:06:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9E 22 02 00 0E 04 04 00 C5 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 [21:06:28]wFMCommunicate OK [21:06:28]SAM_PROTO_GetFieldsCounters done [21:06:28]requested_item shift.num is exist - process it [21:06:28]requested_item shift.opened is exist - process it [21:06:28]req_shift_opened [21:06:28]FM_GetShiftState [21:06:28]SAM_PROTO_GetShiftState [21:06:28]wFMCommunicate request_size=4 [21:06:28]MH_SAM_APDU [21:06:28]CAPDU: 80 13 01 00 [21:06:28]Write to MH i2c: E2 08 00 05 08 80 13 01 00 00 00 00 00 8A [21:06:28]Write i2c OK [21:06:28]MH_I2C_Read... [21:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:28]Read from MH i2c: E2 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: E2 0E 00 [21:06:28]MH_I2C_Read... [21:06:28]Read from MH i2c: E2 0E 00 05 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1B [21:06:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:06:28]wFMCommunicate OK [21:06:28]SAM_PROTO_GetShiftState done [21:06:28]FM_GetShiftState done [21:06:28]req_shift_opened done [21:06:28]requested_item shift.open_date is exist - process it [21:06:28]req_shift_open_date [21:06:28]req_shift_open_date done [21:06:28]produce_requested_data done [21:06:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139934,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:06:28]process_action_free close_receipt [21:06:28]json_value_free [21:06:28]json_value_free done [21:06:28]process_json_proto returns [21:06:28]Send response to host [21:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139934,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:06:28]free response buf [21:06:28]execute_script done [21:06:28]execute_script returns [21:06:28]free content buf [21:06:28]Sock 10.Close socket [21:06:28]Sock 10.Thread stoped [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:51]accept exits with 7 [21:08:51]New connection [21:08:51]New thread 3066764644 created [21:08:51]Thread 3066908004 joined [21:08:51]Waiting for new connection... [21:08:51] Sock 7.Parse request [21:08:51]Sock 7.Check first char [21:08:51]Sock 7.First char is OK [21:08:51]request: POST /json_proto HTTP/1.0 [21:08:51]Method: POST [21:08:51]URL: /json_proto [21:08:51]Method is POST - this is cgi request [21:08:51]url: /json_proto [21:08:51]query_string will be loaded in cgi processing [21:08:51]execute_cgi json_proto POST (null) [21:08:51]execute_cgi path=json_proto method=POST [21:08:51]POST find Content-Length [21:08:51]Host: 172.17.45.67:8080 [21:08:51]Content-Length: 659 [21:08:51]Content-Type: application/json [21:08:51] [21:08:51]POST finish read [21:08:51]Found Content-Length = 659 [21:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:08:51]execute_script... [21: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)593790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:08:51]POST & json_proto [21:08:51]process_json_proto [21:08:51]json parsed OK: [21:08:51]protocol is kg_v1.0 [21:08:51]action value=close_receipt [21:08:51]process_action close_receipt [21:08:51]cmd_close_receipt [21:08:51]MH_GetDate [21:08:51]Write to MH i2c: F0 00 00 06 08 FD [21:08:51]Write i2c OK [21:08:51]MH_I2C_Read... [21:08:51]Read from MH i2c: F0 [21:08:51]MH_I2C_Read... [21:08:51]Read from MH i2c: F0 09 00 [21:08:51]MH_I2C_Read... [21:08:51]Read from MH i2c: F0 09 00 06 08 00 E3 05 C5 66 5F 7F 2B 66 88 [21:08:51]GetLastDocTimeStamp 1724187984 [21:08:51]current date 1724188131 [21:08:51]FM_GetShiftState [21:08:51]SAM_PROTO_GetShiftState [21:08:51]wFMCommunicate request_size=4 [21:08:51]MH_SAM_APDU [21:08:51]CAPDU: 80 13 01 00 [21:08:51]Write to MH i2c: E2 08 00 07 08 80 13 01 00 00 00 00 00 8C [21:08:51]Write i2c OK [21:08:51]MH_I2C_Read... [21:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:51]Read from MH i2c: E2 [21:08:51]MH_I2C_Read... [21:08:51]Read from MH i2c: E2 0E 00 [21:08:51]MH_I2C_Read... [21:08:51]Read from MH i2c: E2 0E 00 07 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1D [21:08:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:08:51]wFMCommunicate OK [21:08:51]SAM_PROTO_GetShiftState done [21:08:51]FM_GetShiftState done [21:08:51]opened in 1724113785 [21:08:51]opened+sec_in_day 1724200185 [21:08:51]quantity*price = 70038 [21:08:51]sum+1 = 70039 [21:08:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 407 20.08.2024 21:08 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139935 ФПД: 30421388853601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210851&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139935&fm=30421388853601&tin=02508201610067®Number=0000000000092569&sum=70000 [21:08:52]StoreToDocumentArchive [21:08:52]shift 453 fd 139935 [21:08:52]save to /storage/0453/doc_00139935 [21:08:52]save last doc name /storage/0453/doc_00139935 to /storage/kkm_last_doc_name [21:08:52]save OK [21:08:52]Clear old archive folders... [21:08:52]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:08:52]tlvbuf is 00A12EB0 [21:08:52]SAM_PROTO_ClearQueue [21:08:52]wFMCommunicate request_size=4 [21:08:52]MH_SAM_APDU [21:08:52]CAPDU: 80 09 00 00 [21:08:52]Write to MH i2c: E2 08 00 14 08 80 09 00 00 00 00 00 00 8E [21:08:52]Write i2c OK [21:08:52]MH_I2C_Read... [21:08:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:52]Read from MH i2c: E2 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 03 00 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 03 00 14 08 00 90 00 90 [21:08:52]RAPDU: 90 00 [21:08:52]wFMCommunicate OK [21:08:52]SAM_PROTO_ClearQueue done [21:08:52]KKMCreateOFDPacket [21:08:52]OFDProtocolAddRootSTLVToBuf [21:08:52]FM_MakeSignedData [21:08:52]FM_MakeSignedData [21:08:52]SAM_PROTO_SignData [21:08:52]wFMCommunicate request_size=4 [21:08:52]MH_SAM_APDU [21:08:52]CAPDU: 80 0D 01 02 [21:08:52]Write to MH i2c: E2 08 00 15 08 80 0D 01 02 00 00 00 00 96 [21:08:52]Write i2c OK [21:08:52]MH_I2C_Read... [21:08:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:52]Read from MH i2c: E2 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 03 00 [21:08:52]MH_I2C_Read... [21:08:52]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [21:08:52]RAPDU: 90 00 [21:08:52]wFMCommunicate OK [21:08:52]wFMCommunicate request_size=253 [21:08:52]MH_SAM_APDU [21:08:52]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 97 01 00 00 F4 03 04 00 E3 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 22 02 00 35 04 06 00 1B AB 08 13 81 61 [21:08:52]Write to MH i2c: E2 00 01 16 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 97 01 00 00 F4 03 04 00 E3 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 22 02 00 35 04 06 00 1B AB 08 13 81 61 00 00 79 [21:08:52]Write i2c OK [21:08:52]MH_I2C_Read... [21:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:53]Read from MH i2c: E2 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: E2 03 00 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [21:08:53]RAPDU: 90 00 [21:08:53]wFMCommunicate OK [21:08:53]wFMCommunicate request_size=4 [21:08:53]MH_SAM_APDU [21:08:53]CAPDU: 80 0D 03 02 [21:08:53]Write to MH i2c: E2 08 00 17 08 80 0D 03 02 00 00 00 00 9A [21:08:53]Write i2c OK [21:08:53]MH_I2C_Read... [21:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:53]Read from MH i2c: E2 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: E2 0B 00 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: E2 0B 00 17 08 00 D3 46 E7 D4 16 7F E3 83 90 00 6A [21:08:53]RAPDU: D3 46 E7 D4 16 7F E3 83 90 00 [21:08:53]wFMCommunicate OK [21:08:53]SAM_PROTO_SignData done [21:08:53]FM_MakeSignedData done [21:08:53]CreateOFDProtocolMessage [21:08:53]wFMCommunicate request_size=4 [21:08:53]MH_SAM_APDU [21:08:53]CAPDU: 80 11 00 00 [21:08:53]Write to MH i2c: E2 08 00 18 08 80 11 00 00 00 00 00 00 9A [21:08:53]Write i2c OK [21:08:53]MH_I2C_Read... [21:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:53]Read from MH i2c: E2 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: E2 17 00 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: E2 17 00 18 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [21:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:08:53]wFMCommunicate OK [21:08:53]CreateOFDProtocolMessage done [21:08:53]OFDSenderStorePacket 139935 [21:08:53]StoreOFDPacket docnum=139935 [21:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 45 DF 00 01 0B 20 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 97 01 00 00 F4 03 04 00 E3 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 22 02 00 35 04 06 00 1B AB 08 13 81 61 D3 46 E7 D4 16 7F E3 83 [21:08:53]CheckFolder [21:08:53]dirname=/storage/ofd_packets [21:08:53]CheckFolder done [21:08:53]ProducePacketName [21:08:53]name=ofd_packets/00139935 [21:08:53]NVStorageSaveData ofd_packets/00139935 [21:08:53]File name is /storage/ofd_packets/00139935 [21:08:53]Write 294 bytes [21:08:53]NVStorageSaveData done [21:08:53]OFDSenderStorePacket done [21:08:53]KKMCreateOFDPacket done [21:08:53]NVStorageSaveData kkm_last_timestamp [21:08:53]File name is /storage/kkm_last_timestamp [21:08:53]Write 4 bytes [21:08:53]NVStorageSaveData done [21:08:53]ExternCall_PrintAddStr [21:08:53]wPrintStart [21:08:53]Write to MH i2c: 01 00 00 19 08 21 [21:08:53]Write i2c OK [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: 01 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: 01 07 00 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: 01 07 00 19 08 00 00 00 00 00 FF 0F 36 [21:08:53]RasterBufferAndPrint [21:08:53]line Счет N : (1)593790 [21:08:53]line ИНН: 02508201610067 [21:08:53]line Контрольно-Кассовый Чек [21:08:53]line ПРОДАЖА [21:08:53]line ТРК (МРК, ГНК) : 63 [21:08:53]line Товар: 2710124130 [21:08:53]line SU-92 [21:08:53]line 10.180 * 68.80 [21:08:53]line = 700.38 [21:08:53]line НДС 12% НСП 1% [21:08:53]line > о реализуемом товаре [21:08:53]line ОКРУГЛЕНИЕ: -0.38 [21:08:53]line ИТОГО: 700.00 [21:08:53]line Внесено: 700.00 [21:08:53]line СДАЧА: 0.00 [21:08:53]line НСП 1% : 6.20 [21:08:53]line НДС 12% : 74.38 [21:08:53]line Наличными: 700.00 [21:08:53]line Безнал.: 0.00 [21:08:53]line Место: АЗС № 136 "Партнер Нефть" [21:08:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:08:53]line СНО: Общий режим [21:08:53]line Чек 407 20.08.2024 21:08 [21:08:53]line Смена: 453 ФФД: 1.0 [21:08:53]line ЗНМ: 0300000067 [21:08:53]line РНМ: 0000000000092569 [21:08:53]line Версия ККМ: 001 [21:08:53]line ФМ: 0000000000871776 [21:08:53]line ФД: 139935 [21:08:53]line ФПД: 30421388853601 [21:08:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T210851&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139935&fm=30421388853601&tin=02508201610067®Number=0000000000092569&sum=70000 [21:08:53]OFD Sender: Processing packet 139935 [packets to send 137, broken 136] [21:08:53]ProducePacketName [21:08:53]name=ofd_packets/00139935 [21:08:53]OFD Sender: To server: pG, [21:08:53]CommunicateWithHost lk.salyk.kg:30040 [21:08:53]ConnectInit lk.salyk.kg [21:08:53]written 0, free lines is 4095 [21:08:53]Connected sock=10 [21:08:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 45 DF 00 01 0B 20 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 97 01 00 00 F4 03 04 00 E3 05 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 22 02 00 35 04 06 00 1B AB 08 13 81 61 D3 46 E7 D4 16 7F E3 83 [21:08:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1F A9 47 00 4F C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 22 02 00 F4 03 04 00 76 AC C4 66 B6 04 01 00 00 4E 61 84 64 79 A7 20 0C [21:08:53]CommunicateWithHost err = 0 [21:08:53]CheckOFDResponse [21:08:53]1017 (14) - 77093643461234 [21:08:53]1041 (16) - 0000000000871776 [21:08:53]1040 (4) - 139935 [21:08:53]1012 (4) - 20.08.2024 14:47 [21:08:53]1206 (1) - 0 [21:08:53]OFD Sender: Remove packet 139935 [21:08:53]ProducePacketName [21:08:53]name=ofd_packets/00139935 [21:08:53]NVStorageDeleteData [21:08:53]Write to MH i2c: 01 00 00 44 08 4C [21:08:53]Write i2c OK [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: 01 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: 01 07 00 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: 01 07 00 44 08 00 00 00 00 00 DE 0C 3D [21:08:53]RasterBufferAndPrint [21:08:53]line [21:08:53]line [21:08:53]line [21:08:53]line [21:08:53]line [21:08:53]written 0, free lines is 3300 [21:08:53]MH_Cut [21:08:53]Write to MH i2c: D1 01 00 4B 08 01 25 [21:08:53]Write i2c OK [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: D1 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: D1 01 00 [21:08:53]MH_I2C_Read... [21:08:53]Read from MH i2c: D1 01 00 4B 08 00 24 [21:08:53]Write to MH i2c: 01 00 00 4C 08 54 [21:08:53]Write i2c OK [21:08:53]MH_I2C_Read... [21:08:54]OFD Sender: No OFD packet to send [21:08:54]*** Cut start [21:08:54]*** Partial cut [21:08:54]*** CUTSNS_PIN = 1 [21:08:54]*** CUTSNS_PIN = 0 [21:08:54]*** Brake cut motor [21:08:55]Read from MH i2c: 01 [21:08:55]MH_I2C_Read... [21:08:55]*** Stop cut motor [21:08:55]*** Cut end [21:08:55]Read from MH i2c: 01 07 00 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: 01 07 00 4C 08 00 00 00 00 00 FF 0F 69 [21:08:55]process_action close_receipt done [21:08:55]requested_data is exist [21:08:55]produce_requested_data [21:08:55]requested_item fm.sn is exist - process it [21:08:55]wFMCommunicate request_size=4 [21:08:55]MH_SAM_APDU [21:08:55]CAPDU: 80 11 00 00 [21:08:55]Write to MH i2c: E2 08 00 4D 08 80 11 00 00 00 00 00 00 CF [21:08:55]Write i2c OK [21:08:55]MH_I2C_Read... [21:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:55]Read from MH i2c: E2 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: E2 17 00 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: E2 17 00 4D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [21:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:08:55]wFMCommunicate OK [21:08:55]requested_item fd.num is exist - process it [21:08:55]SAM_PROTO_GetFieldsCounters [21:08:55]wFMCommunicate request_size=4 [21:08:55]MH_SAM_APDU [21:08:55]CAPDU: 80 13 00 00 [21:08:55]Write to MH i2c: E2 08 00 4E 08 80 13 00 00 00 00 00 00 D2 [21:08:55]Write i2c OK [21:08:55]MH_I2C_Read... [21:08:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:55]Read from MH i2c: E2 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: E2 62 00 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: E2 62 00 4E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9F 22 02 00 0E 04 04 00 C5 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 4E [21:08:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9F 22 02 00 0E 04 04 00 C5 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 [21:08:55]wFMCommunicate OK [21:08:55]SAM_PROTO_GetFieldsCounters done [21:08:55]requested_item shift.num is exist - process it [21:08:55]requested_item shift.opened is exist - process it [21:08:55]req_shift_opened [21:08:55]FM_GetShiftState [21:08:55]SAM_PROTO_GetShiftState [21:08:55]wFMCommunicate request_size=4 [21:08:55]MH_SAM_APDU [21:08:55]CAPDU: 80 13 01 00 [21:08:55]Write to MH i2c: E2 08 00 4F 08 80 13 01 00 00 00 00 00 D4 [21:08:55]Write i2c OK [21:08:55]MH_I2C_Read... [21:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:55]Read from MH i2c: E2 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: E2 0E 00 [21:08:55]MH_I2C_Read... [21:08:55]Read from MH i2c: E2 0E 00 4F 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 65 [21:08:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:08:55]wFMCommunicate OK [21:08:55]SAM_PROTO_GetShiftState done [21:08:55]FM_GetShiftState done [21:08:55]req_shift_opened done [21:08:55]requested_item shift.open_date is exist - process it [21:08:55]req_shift_open_date [21:08:55]req_shift_open_date done [21:08:55]produce_requested_data done [21:08:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139935,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:08:55]process_action_free close_receipt [21:08:55]json_value_free [21:08:55]json_value_free done [21:08:55]process_json_proto returns [21:08:55]Send response to host [21:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139935,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:08:55]free response buf [21:08:55]execute_script done [21:08:55]execute_script returns [21:08:55]free content buf [21:08:55]Sock 7.Close socket [21:08:55]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]accept exits with 9 [21:15:34]New connection [21:15:34]New thread 3066908004 created [21:15:34]Thread 3066764644 joined [21:15:34]Waiting for new connection... [21:15:34] Sock 9.Parse request [21:15:34]Sock 9.Check first char [21:15:34]Sock 9.First char is OK [21:15:34]request: POST /json_proto HTTP/1.0 [21:15:34]Method: POST [21:15:34]URL: /json_proto [21:15:34]Method is POST - this is cgi request [21:15:34]url: /json_proto [21:15:34]query_string will be loaded in cgi processing [21:15:34]execute_cgi json_proto POST (null) [21:15:34]execute_cgi path=json_proto method=POST [21:15:34]POST find Content-Length [21:15:34]Host: 172.17.45.67:8080 [21:15:34]Content-Length: 658 [21:15:34]Content-Type: application/json [21:15:34] [21:15:34]POST finish read [21:15:34]Found Content-Length = 658 [21:15:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 9.230, "sum" : 635.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 635.00, "total" : 635.00, "payments": [ { "type": 0, "sum" : 635.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:34]execute_script... [21:15:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 9.230, "sum" : 635.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 635.00, "total" : 635.00, "payments": [ { "type": 0, "sum" : 635.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:34]POST & json_proto [21:15:34]process_json_proto [21:15:34]json parsed OK: [21:15:34]protocol is kg_v1.0 [21:15:34]action value=close_receipt [21:15:34]process_action close_receipt [21:15:34]cmd_close_receipt [21:15:34]MH_GetDate [21:15:34]Write to MH i2c: F0 00 00 50 08 47 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: F0 [21:15:34]MH_I2C_Read... [21:15:34]OFD Sender: No OFD packet to send [21:15:34]Read from MH i2c: F0 09 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: F0 09 00 50 08 00 77 07 C5 66 5F 7F 2B 66 68 [21:15:34]GetLastDocTimeStamp 1724188131 [21:15:34]current date 1724188535 [21:15:34]FM_GetShiftState [21:15:34]SAM_PROTO_GetShiftState [21:15:34]wFMCommunicate request_size=4 [21:15:34]MH_SAM_APDU [21:15:34]CAPDU: 80 13 01 00 [21:15:34]Write to MH i2c: E2 08 00 51 08 80 13 01 00 00 00 00 00 D6 [21:15:34]Write i2c OK [21:15:34]MH_I2C_Read... [21:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:34]Read from MH i2c: E2 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 0E 00 [21:15:34]MH_I2C_Read... [21:15:34]Read from MH i2c: E2 0E 00 51 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 67 [21:15:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:15:34]wFMCommunicate OK [21:15:34]SAM_PROTO_GetShiftState done [21:15:34]FM_GetShiftState done [21:15:34]opened in 1724113785 [21:15:34]opened+sec_in_day 1724200185 [21:15:34]quantity*price = 63502 [21:15:34]sum+1 = 63503 [21:15:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 635.00 Внесено: 635.00 СДАЧА: 0.00 НСП 1% : 5.62 НДС 12% : 67.44 Наличными: 635.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 408 20.08.2024 21:15 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139936 ФПД: 232555539216811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T211535&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139936&fm=232555539216811&tin=02508201610067®Number=0000000000092569&sum=63500 [21:15:36]StoreToDocumentArchive [21:15:36]shift 453 fd 139936 [21:15:36]save to /storage/0453/doc_00139936 [21:15:36]save last doc name /storage/0453/doc_00139936 to /storage/kkm_last_doc_name [21:15:36]save OK [21:15:36]Clear old archive folders... [21:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:15:36]tlvbuf is 00A5C060 [21:15:36]SAM_PROTO_ClearQueue [21:15:36]wFMCommunicate request_size=4 [21:15:36]MH_SAM_APDU [21:15:36]CAPDU: 80 09 00 00 [21:15:36]Write to MH i2c: E2 08 00 5E 08 80 09 00 00 00 00 00 00 D8 [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:36]Read from MH i2c: E2 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 03 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [21:15:36]RAPDU: 90 00 [21:15:36]wFMCommunicate OK [21:15:36]SAM_PROTO_ClearQueue done [21:15:36]KKMCreateOFDPacket [21:15:36]OFDProtocolAddRootSTLVToBuf [21:15:36]FM_MakeSignedData [21:15:36]FM_MakeSignedData [21:15:36]SAM_PROTO_SignData [21:15:36]wFMCommunicate request_size=4 [21:15:36]MH_SAM_APDU [21:15:36]CAPDU: 80 0D 01 02 [21:15:36]Write to MH i2c: E2 08 00 5F 08 80 0D 01 02 00 00 00 00 E0 [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:36]Read from MH i2c: E2 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 03 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [21:15:36]RAPDU: 90 00 [21:15:36]wFMCommunicate OK [21:15:36]wFMCommunicate request_size=253 [21:15:36]MH_SAM_APDU [21:15:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 0E 24 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 0E F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C F8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1A 00 00 00 00 07 04 06 00 0C F8 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 77 07 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 22 02 00 35 04 06 00 D3 82 0E 4E 39 AB [21:15:36]Write to MH i2c: E2 00 01 60 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 0E 24 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 0E F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C F8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1A 00 00 00 00 07 04 06 00 0C F8 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 77 07 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 22 02 00 35 04 06 00 D3 82 0E 4E 39 AB 00 00 E3 [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:36]Read from MH i2c: E2 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 03 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [21:15:36]RAPDU: 90 00 [21:15:36]wFMCommunicate OK [21:15:36]wFMCommunicate request_size=4 [21:15:36]MH_SAM_APDU [21:15:36]CAPDU: 80 0D 03 02 [21:15:36]Write to MH i2c: E2 08 00 61 08 80 0D 03 02 00 00 00 00 E4 [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:36]Read from MH i2c: E2 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 0B 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 0B 00 61 08 00 23 5E BC 0C 07 AF A7 FB 90 00 86 [21:15:36]RAPDU: 23 5E BC 0C 07 AF A7 FB 90 00 [21:15:36]wFMCommunicate OK [21:15:36]SAM_PROTO_SignData done [21:15:36]FM_MakeSignedData done [21:15:36]CreateOFDProtocolMessage [21:15:36]wFMCommunicate request_size=4 [21:15:36]MH_SAM_APDU [21:15:36]CAPDU: 80 11 00 00 [21:15:36]Write to MH i2c: E2 08 00 62 08 80 11 00 00 00 00 00 00 E4 [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:36]Read from MH i2c: E2 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 17 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: E2 17 00 62 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [21:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:15:36]wFMCommunicate OK [21:15:36]CreateOFDProtocolMessage done [21:15:36]OFDSenderStorePacket 139936 [21:15:36]StoreOFDPacket docnum=139936 [21:15:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 66 50 00 01 CB 6E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 0E 24 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 0E F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C F8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1A 00 00 00 00 07 04 06 00 0C F8 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 77 07 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 22 02 00 35 04 06 00 D3 82 0E 4E 39 AB 23 5E BC 0C 07 AF A7 FB [21:15:36]CheckFolder [21:15:36]dirname=/storage/ofd_packets [21:15:36]CheckFolder done [21:15:36]ProducePacketName [21:15:36]name=ofd_packets/00139936 [21:15:36]NVStorageSaveData ofd_packets/00139936 [21:15:36]File name is /storage/ofd_packets/00139936 [21:15:36]Write 294 bytes [21:15:36]NVStorageSaveData done [21:15:36]OFDSenderStorePacket done [21:15:36]KKMCreateOFDPacket done [21:15:36]NVStorageSaveData kkm_last_timestamp [21:15:36]File name is /storage/kkm_last_timestamp [21:15:36]Write 4 bytes [21:15:36]NVStorageSaveData done [21:15:36]ExternCall_PrintAddStr [21:15:36]wPrintStart [21:15:36]Write to MH i2c: 01 00 00 63 08 6B [21:15:36]Write i2c OK [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: 01 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: 01 07 00 [21:15:36]MH_I2C_Read... [21:15:36]Read from MH i2c: 01 07 00 63 08 00 00 00 00 00 FF 0F 80 [21:15:36]RasterBufferAndPrint [21:15:36]line Счет N : (1)593791 [21:15:36]line ИНН: 02508201610067 [21:15:36]line Контрольно-Кассовый Чек [21:15:36]line ПРОДАЖА [21:15:36]line ТРК (МРК, ГНК) : 53 [21:15:36]line Товар: 2710124130 [21:15:36]line SU-92 [21:15:36]line 9.230 * 68.80 [21:15:36]line = 635.02 [21:15:36]line НДС 12% НСП 1% [21:15:36]line > о реализуемом товаре [21:15:36]line ОКРУГЛЕНИЕ: -0.02 [21:15:36]line ИТОГО: 635.00 [21:15:36]line Внесено: 635.00 [21:15:36]line СДАЧА: 0.00 [21:15:36]line НСП 1% : 5.62 [21:15:36]line НДС 12% : 67.44 [21:15:36]line Наличными: 635.00 [21:15:36]line Безнал.: 0.00 [21:15:36]line Место: АЗС № 136 "Партнер Нефть" [21:15:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:15:36]line СНО: Общий режим [21:15:36]line Чек 408 20.08.2024 21:15 [21:15:36]line Смена: 453 ФФД: 1.0 [21:15:36]line ЗНМ: 0300000067 [21:15:36]line РНМ: 0000000000092569 [21:15:36]line Версия ККМ: 001 [21:15:36]line ФМ: 0000000000871776 [21:15:36]line ФД: 139936 [21:15:36]line ФПД: 232555539216811 [21:15:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T211535&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139936&fm=232555539216811&tin=02508201610067®Number=0000000000092569&sum=63500 [21:15:36]OFD Sender: Processing packet 139936 [packets to send 137, broken 136] [21:15:36]ProducePacketName [21:15:36]name=ofd_packets/00139936 [21:15:36]OFD Sender: To server: pG, [21:15:36]CommunicateWithHost lk.salyk.kg:30040 [21:15:36]ConnectInit lk.salyk.kg [21:15:36]written 0, free lines is 4095 [21:15:37]Connected sock=10 [21:15:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 66 50 00 01 CB 6E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 0E 24 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 0E F8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C F8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 32 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1A 00 00 00 00 07 04 06 00 0C F8 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 77 07 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 22 02 00 35 04 06 00 D3 82 0E 4E 39 AB 23 5E BC 0C 07 AF A7 FB [21:15:37]Write to MH i2c: 01 00 00 8E 08 96 [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: 01 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: 01 07 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: 01 07 00 8E 08 00 00 00 00 00 C7 0C 70 [21:15:37]RasterBufferAndPrint [21:15:37]line [21:15:37]line [21:15:37]line [21:15:37]line [21:15:37]line [21:15:37]written 0, free lines is 3277 [21:15:37]MH_Cut [21:15:37]Write to MH i2c: D1 01 00 95 08 01 6F [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: D1 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: D1 01 00 [21:15:37]MH_I2C_Read... [21:15:37]Read from MH i2c: D1 01 00 95 08 00 6E [21:15:37]Write to MH i2c: 01 00 00 96 08 9E [21:15:37]Write i2c OK [21:15:37]MH_I2C_Read... [21:15:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 22 02 47 00 4E F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 22 02 00 F4 03 04 00 09 AE C4 66 B6 04 01 00 00 5A 45 0C 9F 05 48 2A 77 [21:15:37]CommunicateWithHost err = 0 [21:15:37]CheckOFDResponse [21:15:37]1017 (14) - 77093643461234 [21:15:37]1041 (16) - 0000000000871776 [21:15:37]1040 (4) - 139936 [21:15:37]1012 (4) - 20.08.2024 14:54 [21:15:37]1206 (1) - 0 [21:15:37]OFD Sender: Remove packet 139936 [21:15:37]ProducePacketName [21:15:37]name=ofd_packets/00139936 [21:15:37]NVStorageDeleteData [21:15:37]OFD Sender: No OFD packet to send [21:15:38]*** Cut start [21:15:38]*** Partial cut [21:15:38]*** CUTSNS_PIN = 1 [21:15:38]*** CUTSNS_PIN = 0 [21:15:38]*** Brake cut motor [21:15:38]Read from MH i2c: 01 [21:15:38]MH_I2C_Read... [21:15:38]*** Stop cut motor [21:15:38]*** Cut end [21:15:38]Read from MH i2c: 01 07 00 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [21:15:38]process_action close_receipt done [21:15:38]requested_data is exist [21:15:38]produce_requested_data [21:15:38]requested_item fm.sn is exist - process it [21:15:38]wFMCommunicate request_size=4 [21:15:38]MH_SAM_APDU [21:15:38]CAPDU: 80 11 00 00 [21:15:38]Write to MH i2c: E2 08 00 97 08 80 11 00 00 00 00 00 00 19 [21:15:38]Write i2c OK [21:15:38]MH_I2C_Read... [21:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:38]Read from MH i2c: E2 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: E2 17 00 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: E2 17 00 97 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [21:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:15:38]wFMCommunicate OK [21:15:38]requested_item fd.num is exist - process it [21:15:38]SAM_PROTO_GetFieldsCounters [21:15:38]wFMCommunicate request_size=4 [21:15:38]MH_SAM_APDU [21:15:38]CAPDU: 80 13 00 00 [21:15:38]Write to MH i2c: E2 08 00 98 08 80 13 00 00 00 00 00 00 1C [21:15:38]Write i2c OK [21:15:38]MH_I2C_Read... [21:15:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:38]Read from MH i2c: E2 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: E2 62 00 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: E2 62 00 98 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A0 22 02 00 0E 04 04 00 C5 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 9C [21:15:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A0 22 02 00 0E 04 04 00 C5 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 [21:15:38]wFMCommunicate OK [21:15:38]SAM_PROTO_GetFieldsCounters done [21:15:38]requested_item shift.num is exist - process it [21:15:38]requested_item shift.opened is exist - process it [21:15:38]req_shift_opened [21:15:38]FM_GetShiftState [21:15:38]SAM_PROTO_GetShiftState [21:15:38]wFMCommunicate request_size=4 [21:15:38]MH_SAM_APDU [21:15:38]CAPDU: 80 13 01 00 [21:15:38]Write to MH i2c: E2 08 00 99 08 80 13 01 00 00 00 00 00 1E [21:15:38]Write i2c OK [21:15:38]MH_I2C_Read... [21:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:38]Read from MH i2c: E2 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: E2 0E 00 [21:15:38]MH_I2C_Read... [21:15:38]Read from MH i2c: E2 0E 00 99 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AF [21:15:38]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:15:38]wFMCommunicate OK [21:15:38]SAM_PROTO_GetShiftState done [21:15:38]FM_GetShiftState done [21:15:38]req_shift_opened done [21:15:38]requested_item shift.open_date is exist - process it [21:15:38]req_shift_open_date [21:15:38]req_shift_open_date done [21:15:38]produce_requested_data done [21:15:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139936,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:15:38]process_action_free close_receipt [21:15:38]json_value_free [21:15:38]json_value_free done [21:15:38]process_json_proto returns [21:15:38]Send response to host [21:15:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139936,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:15:38]free response buf [21:15:38]execute_script done [21:15:38]execute_script returns [21:15:38]free content buf [21:15:38]Sock 9.Close socket [21:15:38]Sock 9.Thread stoped [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:36]accept exits with 7 [21:17:36]New connection [21:17:36]New thread 3066764644 created [21:17:36]Thread 3066908004 joined [21:17:36]Waiting for new connection... [21:17:36] Sock 7.Parse request [21:17:36]Sock 7.Check first char [21:17:36]Sock 7.First char is OK [21:17:36]request: POST /json_proto HTTP/1.0 [21:17:36]Method: POST [21:17:36]URL: /json_proto [21:17:36]Method is POST - this is cgi request [21:17:36]url: /json_proto [21:17:36]query_string will be loaded in cgi processing [21:17:36]execute_cgi json_proto POST (null) [21:17:36]execute_cgi path=json_proto method=POST [21:17:36]POST find Content-Length [21:17:36]Host: 172.17.45.67:8080 [21:17:36]Content-Length: 678 [21:17:36]Content-Type: application/json [21:17:36] [21:17:36]POST finish read [21:17:36]Found Content-Length = 678 [21:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.540, "sum" : 850.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:36]execute_script... [21:17: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)593792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 12.540, "sum" : 850.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:36]POST & json_proto [21:17:36]process_json_proto [21:17:36]json parsed OK: [21:17:36]protocol is kg_v1.0 [21:17:36]action value=close_receipt [21:17:36]process_action close_receipt [21:17:36]cmd_close_receipt [21:17:36]MH_GetDate [21:17:36]Write to MH i2c: F0 00 00 9A 08 91 [21:17:36]Write i2c OK [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: F0 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: F0 09 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: F0 09 00 9A 08 00 F0 07 C5 66 5F 7F 2B 66 2B [21:17:36]GetLastDocTimeStamp 1724188535 [21:17:36]current date 1724188656 [21:17:36]FM_GetShiftState [21:17:36]SAM_PROTO_GetShiftState [21:17:36]wFMCommunicate request_size=4 [21:17:36]MH_SAM_APDU [21:17:36]CAPDU: 80 13 01 00 [21:17:36]Write to MH i2c: E2 08 00 9B 08 80 13 01 00 00 00 00 00 20 [21:17:36]Write i2c OK [21:17:36]MH_I2C_Read... [21:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:36]Read from MH i2c: E2 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 0E 00 [21:17:36]MH_I2C_Read... [21:17:36]Read from MH i2c: E2 0E 00 9B 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B1 [21:17:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:17:36]wFMCommunicate OK [21:17:36]SAM_PROTO_GetShiftState done [21:17:36]FM_GetShiftState done [21:17:36]opened in 1724113785 [21:17:36]opened+sec_in_day 1724200185 [21:17:36]quantity*price = 85021 [21:17:36]sum+1 = 85022 [21:17:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.29 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 409 20.08.2024 21:17 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139937 ФПД: 264427685388242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T211736&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139937&fm=264427685388242&tin=02508201610067®Number=0000000000092569&sum=85000 [21:17:37]StoreToDocumentArchive [21:17:37]shift 453 fd 139937 [21:17:37]save to /storage/0453/doc_00139937 [21:17:37]save last doc name /storage/0453/doc_00139937 to /storage/kkm_last_doc_name [21:17:37]save OK [21:17:37]Clear old archive folders... [21:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:37]tlvbuf is 00A5B940 [21:17:37]SAM_PROTO_ClearQueue [21:17:37]wFMCommunicate request_size=4 [21:17:37]MH_SAM_APDU [21:17:37]CAPDU: 80 09 00 00 [21:17:37]Write to MH i2c: E2 08 00 A8 08 80 09 00 00 00 00 00 00 22 [21:17:37]Write i2c OK [21:17:37]MH_I2C_Read... [21:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:37]Read from MH i2c: E2 [21:17:37]MH_I2C_Read... [21:17:37]Read from MH i2c: E2 03 00 [21:17:37]MH_I2C_Read... [21:17:37]Read from MH i2c: E2 03 00 A8 08 00 90 00 24 [21:17:37]RAPDU: 90 00 [21:17:37]wFMCommunicate OK [21:17:37]SAM_PROTO_ClearQueue done [21:17:37]KKMCreateOFDPacket [21:17:37]OFDProtocolAddRootSTLVToBuf [21:17:37]FM_MakeSignedData [21:17:37]FM_MakeSignedData [21:17:37]SAM_PROTO_SignData [21:17:37]wFMCommunicate request_size=4 [21:17:37]MH_SAM_APDU [21:17:37]CAPDU: 80 0D 01 02 [21:17:37]Write to MH i2c: E2 08 00 A9 08 80 0D 01 02 00 00 00 00 2A [21:17:37]Write i2c OK [21:17:37]MH_I2C_Read... [21:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:37]Read from MH i2c: E2 [21:17:37]MH_I2C_Read... [21:17:37]Read from MH i2c: E2 03 00 [21:17:37]MH_I2C_Read... [21:17:37]Read from MH i2c: E2 03 00 A9 08 00 90 00 25 [21:17:37]RAPDU: 90 00 [21:17:37]wFMCommunicate OK [21:17:37]wFMCommunicate request_size=255 [21:17:37]MH_SAM_APDU [21:17:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 F0 07 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 22 02 00 35 04 06 00 F0 [21:17:37]Write to MH i2c: E2 02 01 AA 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 F0 07 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 22 02 00 35 04 06 00 F0 00 00 A5 [21:17:37]Write i2c OK [21:17:37]MH_I2C_Read... [21:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:38]Read from MH i2c: E2 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 03 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [21:17:38]RAPDU: 90 00 [21:17:38]wFMCommunicate OK [21:17:38]wFMCommunicate request_size=10 [21:17:38]MH_SAM_APDU [21:17:38]CAPDU: 80 0D 02 02 05 7E DE 41 9F D2 [21:17:38]Write to MH i2c: E2 0D 00 AB 08 80 0D 02 02 05 00 7E DE 41 9F D2 00 00 45 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:38]Read from MH i2c: E2 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 03 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [21:17:38]RAPDU: 90 00 [21:17:38]wFMCommunicate OK [21:17:38]wFMCommunicate request_size=4 [21:17:38]MH_SAM_APDU [21:17:38]CAPDU: 80 0D 03 02 [21:17:38]Write to MH i2c: E2 08 00 AC 08 80 0D 03 02 00 00 00 00 2F [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:38]OFD Sender: No OFD packet to send [21:17:38]Read from MH i2c: E2 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 0B 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 0B 00 AC 08 00 4B 27 EB F6 B2 15 F7 8A 90 00 CB [21:17:38]RAPDU: 4B 27 EB F6 B2 15 F7 8A 90 00 [21:17:38]wFMCommunicate OK [21:17:38]SAM_PROTO_SignData done [21:17:38]FM_MakeSignedData done [21:17:38]CreateOFDProtocolMessage [21:17:38]wFMCommunicate request_size=4 [21:17:38]MH_SAM_APDU [21:17:38]CAPDU: 80 11 00 00 [21:17:38]Write to MH i2c: E2 08 00 AD 08 80 11 00 00 00 00 00 00 2F [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:38]Read from MH i2c: E2 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 17 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 17 00 AD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [21:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:17:38]wFMCommunicate OK [21:17:38]CreateOFDProtocolMessage done [21:17:38]OFDSenderStorePacket 139937 [21:17:38]StoreOFDPacket docnum=139937 [21:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 75 07 01 B1 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 F0 07 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 22 02 00 35 04 06 00 F0 7E DE 41 9F D2 4B 27 EB F6 B2 15 F7 8A [21:17:38]CheckFolder [21:17:38]dirname=/storage/ofd_packets [21:17:38]CheckFolder done [21:17:38]ProducePacketName [21:17:38]name=ofd_packets/00139937 [21:17:38]NVStorageSaveData ofd_packets/00139937 [21:17:38]File name is /storage/ofd_packets/00139937 [21:17:38]Write 301 bytes [21:17:38]NVStorageSaveData done [21:17:38]OFDSenderStorePacket done [21:17:38]KKMCreateOFDPacket done [21:17:38]NVStorageSaveData kkm_last_timestamp [21:17:38]File name is /storage/kkm_last_timestamp [21:17:38]Write 4 bytes [21:17:38]NVStorageSaveData done [21:17:38]ExternCall_PrintAddStr [21:17:38]wPrintStart [21:17:38]Write to MH i2c: 01 00 00 AE 08 B6 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 AE 08 00 00 00 00 00 FF 0F CB [21:17:38]RasterBufferAndPrint [21:17:38]line Счет N : (1)593792 [21:17:38]line ИНН: 02508201610067 [21:17:38]line Контрольно-Кассовый Чек [21:17:38]line ПРОДАЖА [21:17:38]line ТРК (МРК, ГНК) : 32 [21:17:38]line Товар: 2710124130 [21:17:38]line Аи-92-К-5 [21:17:38]line 12.540 * 67.80 [21:17:38]line = 850.21 [21:17:38]line НДС 12% НСП 1% [21:17:38]line > о реализуемом товаре [21:17:38]line ОКРУГЛЕНИЕ: -0.21 [21:17:38]line ИТОГО: 850.00 [21:17:38]line Внесено: 850.00 [21:17:38]line СДАЧА: 0.00 [21:17:38]line НСП 1% : 7.52 [21:17:38]line НДС 12% : 90.29 [21:17:38]line Наличными: 850.00 [21:17:38]line Безнал.: 0.00 [21:17:38]line Место: АЗС № 136 "Партнер Нефть" [21:17:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:17:38]line СНО: Общий режим [21:17:38]line Чек 409 20.08.2024 21:17 [21:17:38]line Смена: 453 ФФД: 1.0 [21:17:38]line ЗНМ: 0300000067 [21:17:38]line РНМ: 0000000000092569 [21:17:38]line Версия ККМ: 001 [21:17:38]line ФМ: 0000000000871776 [21:17:38]line ФД: 139937 [21:17:38]line ФПД: 264427685388242 [21:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T211736&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139937&fm=264427685388242&tin=02508201610067®Number=0000000000092569&sum=85000 [21:17:38]written 0, free lines is 4095 [21:17:38]OFD Sender: Processing packet 139937 [packets to send 137, broken 136] [21:17:38]ProducePacketName [21:17:38]name=ofd_packets/00139937 [21:17:38]OFD Sender: To server: pG, [21:17:38]CommunicateWithHost lk.salyk.kg:30040 [21:17:38]ConnectInit lk.salyk.kg [21:17:38]Connected sock=10 [21:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 75 07 01 B1 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 30 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1D 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 F0 07 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 22 02 00 35 04 06 00 F0 7E DE 41 9F D2 4B 27 EB F6 B2 15 F7 8A [21:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 41 AD 47 00 F3 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 22 02 00 F4 03 04 00 83 AE C4 66 B6 04 01 00 00 88 C1 F0 B3 F0 69 E3 4F [21:17:38]CommunicateWithHost err = 0 [21:17:38]CheckOFDResponse [21:17:38]1017 (14) - 77093643461234 [21:17:38]1041 (16) - 0000000000871776 [21:17:38]1040 (4) - 139937 [21:17:38]1012 (4) - 20.08.2024 14:56 [21:17:38]1206 (1) - 0 [21:17:38]OFD Sender: Remove packet 139937 [21:17:38]ProducePacketName [21:17:38]name=ofd_packets/00139937 [21:17:38]NVStorageDeleteData [21:17:38]Write to MH i2c: 01 00 00 D9 08 E1 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 DD 0C D1 [21:17:38]RasterBufferAndPrint [21:17:38]line [21:17:38]line [21:17:38]line [21:17:38]line [21:17:38]line [21:17:38]written 0, free lines is 3299 [21:17:38]MH_Cut [21:17:38]Write to MH i2c: D1 01 00 E0 08 01 BA [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: D1 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: D1 01 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: D1 01 00 E0 08 00 B9 [21:17:38]Write to MH i2c: 01 00 00 E1 08 E9 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:39]OFD Sender: No OFD packet to send [21:17:39]*** Cut start [21:17:39]*** Partial cut [21:17:39]*** CUTSNS_PIN = 1 [21:17:39]*** CUTSNS_PIN = 0 [21:17:39]*** Brake cut motor [21:17:39]Read from MH i2c: 01 [21:17:39]MH_I2C_Read... [21:17:39]*** Stop cut motor [21:17:39]*** Cut end [21:17:39]Read from MH i2c: 01 07 00 [21:17:39]MH_I2C_Read... [21:17:39]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [21:17:39]process_action close_receipt done [21:17:39]requested_data is exist [21:17:39]produce_requested_data [21:17:39]requested_item fm.sn is exist - process it [21:17:39]wFMCommunicate request_size=4 [21:17:39]MH_SAM_APDU [21:17:39]CAPDU: 80 11 00 00 [21:17:39]Write to MH i2c: E2 08 00 E2 08 80 11 00 00 00 00 00 00 64 [21:17:39]Write i2c OK [21:17:39]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 17 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 17 00 E2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [21:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:17:40]wFMCommunicate OK [21:17:40]requested_item fd.num is exist - process it [21:17:40]SAM_PROTO_GetFieldsCounters [21:17:40]wFMCommunicate request_size=4 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 13 00 00 [21:17:40]Write to MH i2c: E2 08 00 E3 08 80 13 00 00 00 00 00 00 67 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 62 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 62 00 E3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A1 22 02 00 0E 04 04 00 C5 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 EB [21:17:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A1 22 02 00 0E 04 04 00 C5 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 [21:17:40]wFMCommunicate OK [21:17:40]SAM_PROTO_GetFieldsCounters done [21:17:40]requested_item shift.num is exist - process it [21:17:40]requested_item shift.opened is exist - process it [21:17:40]req_shift_opened [21:17:40]FM_GetShiftState [21:17:40]SAM_PROTO_GetShiftState [21:17:40]wFMCommunicate request_size=4 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 13 01 00 [21:17:40]Write to MH i2c: E2 08 00 E4 08 80 13 01 00 00 00 00 00 69 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 0E 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 0E 00 E4 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FA [21:17:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:17:40]wFMCommunicate OK [21:17:40]SAM_PROTO_GetShiftState done [21:17:40]FM_GetShiftState done [21:17:40]req_shift_opened done [21:17:40]requested_item shift.open_date is exist - process it [21:17:40]req_shift_open_date [21:17:40]req_shift_open_date done [21:17:40]produce_requested_data done [21:17:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139937,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:17:40]process_action_free close_receipt [21:17:40]json_value_free [21:17:40]json_value_free done [21:17:40]process_json_proto returns [21:17:40]Send response to host [21:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139937,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:17:40]free response buf [21:17:40]execute_script done [21:17:40]execute_script returns [21:17:40]free content buf [21:17:40]Sock 7.Close socket [21:17:40]Sock 7.Thread stoped [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:44]accept exits with 9 [21:19:44]New connection [21:19:44]New thread 3066908004 created [21:19:44]Thread 3066764644 joined [21:19:44]Waiting for new connection... [21:19:44] Sock 9.Parse request [21:19:44]Sock 9.Check first char [21:19:44]Sock 9.First char is OK [21:19:44]request: POST /json_proto HTTP/1.0 [21:19:44]Method: POST [21:19:44]URL: /json_proto [21:19:44]Method is POST - this is cgi request [21:19:44]url: /json_proto [21:19:44]query_string will be loaded in cgi processing [21:19:44]execute_cgi json_proto POST (null) [21:19:44]execute_cgi path=json_proto method=POST [21:19:44]POST find Content-Length [21:19:44]Host: 172.17.45.67:8080 [21:19:44]Content-Length: 677 [21:19:44]Content-Type: application/json [21:19:44] [21:19:44]POST finish read [21:19:44]Found Content-Length = 677 [21:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:44]execute_script... [21:19:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:44]POST & json_proto [21:19:44]process_json_proto [21:19:44]json parsed OK: [21:19:44]protocol is kg_v1.0 [21:19:44]action value=close_receipt [21:19:44]process_action close_receipt [21:19:44]cmd_close_receipt [21:19:44]MH_GetDate [21:19:44]Write to MH i2c: F0 00 00 E5 08 DC [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: F0 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: F0 09 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: F0 09 00 E5 08 00 70 08 C5 66 5F 7F 2B 66 F7 [21:19:44]GetLastDocTimeStamp 1724188656 [21:19:44]current date 1724188784 [21:19:44]FM_GetShiftState [21:19:44]SAM_PROTO_GetShiftState [21:19:44]wFMCommunicate request_size=4 [21:19:44]MH_SAM_APDU [21:19:44]CAPDU: 80 13 01 00 [21:19:44]Write to MH i2c: E2 08 00 E6 08 80 13 01 00 00 00 00 00 6B [21:19:44]Write i2c OK [21:19:44]MH_I2C_Read... [21:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:44]Read from MH i2c: E2 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 0E 00 [21:19:44]MH_I2C_Read... [21:19:44]Read from MH i2c: E2 0E 00 E6 08 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FC [21:19:44]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:19:44]wFMCommunicate OK [21:19:44]SAM_PROTO_GetShiftState done [21:19:44]FM_GetShiftState done [21:19:44]opened in 1724113785 [21:19:44]opened+sec_in_day 1724200185 [21:19:44]quantity*price = 60003 [21:19:44]sum+1 = 60004 [21:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 410 20.08.2024 21:19 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139938 ФПД: 218253801693386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T211945&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139938&fm=218253801693386&tin=02508201610067®Number=0000000000092569&sum=60000 [21:19:45]StoreToDocumentArchive [21:19:45]shift 453 fd 139938 [21:19:45]save to /storage/0453/doc_00139938 [21:19:45]save last doc name /storage/0453/doc_00139938 to /storage/kkm_last_doc_name [21:19:45]save OK [21:19:45]Clear old archive folders... [21:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:45]tlvbuf is 009E83C0 [21:19:45]SAM_PROTO_ClearQueue [21:19:45]wFMCommunicate request_size=4 [21:19:45]MH_SAM_APDU [21:19:45]CAPDU: 80 09 00 00 [21:19:45]Write to MH i2c: E2 08 00 F3 08 80 09 00 00 00 00 00 00 6D [21:19:45]Write i2c OK [21:19:45]MH_I2C_Read... [21:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:45]Read from MH i2c: E2 [21:19:45]MH_I2C_Read... [21:19:45]Read from MH i2c: E2 03 00 [21:19:45]MH_I2C_Read... [21:19:45]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [21:19:45]RAPDU: 90 00 [21:19:45]wFMCommunicate OK [21:19:45]SAM_PROTO_ClearQueue done [21:19:45]KKMCreateOFDPacket [21:19:45]OFDProtocolAddRootSTLVToBuf [21:19:45]FM_MakeSignedData [21:19:45]FM_MakeSignedData [21:19:45]SAM_PROTO_SignData [21:19:45]wFMCommunicate request_size=4 [21:19:45]MH_SAM_APDU [21:19:45]CAPDU: 80 0D 01 02 [21:19:45]Write to MH i2c: E2 08 00 F4 08 80 0D 01 02 00 00 00 00 75 [21:19:45]Write i2c OK [21:19:45]MH_I2C_Read... [21:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:45]Read from MH i2c: E2 [21:19:45]MH_I2C_Read... [21:19:45]Read from MH i2c: E2 03 00 [21:19:45]MH_I2C_Read... [21:19:45]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [21:19:45]RAPDU: 90 00 [21:19:45]wFMCommunicate OK [21:19:45]wFMCommunicate request_size=255 [21:19:45]MH_SAM_APDU [21:19:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 71 08 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 22 02 00 35 04 06 00 C6 [21:19:45]Write to MH i2c: E2 02 01 F5 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 71 08 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 22 02 00 35 04 06 00 C6 00 00 56 [21:19:45]Write i2c OK [21:19:45]MH_I2C_Read... [21:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:46]Read from MH i2c: E2 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 03 00 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [21:19:46]RAPDU: 90 00 [21:19:46]wFMCommunicate OK [21:19:46]wFMCommunicate request_size=10 [21:19:46]MH_SAM_APDU [21:19:46]CAPDU: 80 0D 02 02 05 80 2C 52 20 CA [21:19:46]Write to MH i2c: E2 0D 00 F6 08 80 0D 02 02 05 00 80 2C 52 20 CA 00 00 6A [21:19:46]Write i2c OK [21:19:46]MH_I2C_Read... [21:19:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:46]Read from MH i2c: E2 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 03 00 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [21:19:46]RAPDU: 90 00 [21:19:46]wFMCommunicate OK [21:19:46]wFMCommunicate request_size=4 [21:19:46]MH_SAM_APDU [21:19:46]CAPDU: 80 0D 03 02 [21:19:46]Write to MH i2c: E2 08 00 F7 08 80 0D 03 02 00 00 00 00 7A [21:19:46]Write i2c OK [21:19:46]MH_I2C_Read... [21:19:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:46]Read from MH i2c: E2 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 0B 00 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 0B 00 F7 08 00 51 2E 65 89 06 5A 36 3D 90 00 BB [21:19:46]RAPDU: 51 2E 65 89 06 5A 36 3D 90 00 [21:19:46]wFMCommunicate OK [21:19:46]SAM_PROTO_SignData done [21:19:46]FM_MakeSignedData done [21:19:46]CreateOFDProtocolMessage [21:19:46]wFMCommunicate request_size=4 [21:19:46]MH_SAM_APDU [21:19:46]CAPDU: 80 11 00 00 [21:19:46]Write to MH i2c: E2 08 00 F8 08 80 11 00 00 00 00 00 00 7A [21:19:46]Write i2c OK [21:19:46]MH_I2C_Read... [21:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:46]Read from MH i2c: E2 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 17 00 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: E2 17 00 F8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D1 [21:19:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:19:46]wFMCommunicate OK [21:19:46]CreateOFDProtocolMessage done [21:19:46]OFDSenderStorePacket 139938 [21:19:46]StoreOFDPacket docnum=139938 [21:19:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 F3 07 01 12 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 71 08 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 22 02 00 35 04 06 00 C6 80 2C 52 20 CA 51 2E 65 89 06 5A 36 3D [21:19:46]CheckFolder [21:19:46]dirname=/storage/ofd_packets [21:19:46]CheckFolder done [21:19:46]ProducePacketName [21:19:46]name=ofd_packets/00139938 [21:19:46]NVStorageSaveData ofd_packets/00139938 [21:19:46]File name is /storage/ofd_packets/00139938 [21:19:46]Write 301 bytes [21:19:46]NVStorageSaveData done [21:19:46]OFDSenderStorePacket done [21:19:46]KKMCreateOFDPacket done [21:19:46]NVStorageSaveData kkm_last_timestamp [21:19:46]File name is /storage/kkm_last_timestamp [21:19:46]Write 4 bytes [21:19:46]NVStorageSaveData done [21:19:46]ExternCall_PrintAddStr [21:19:46]wPrintStart [21:19:46]Write to MH i2c: 01 00 00 F9 08 01 [21:19:46]Write i2c OK [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: 01 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: 01 07 00 [21:19:46]MH_I2C_Read... [21:19:46]Read from MH i2c: 01 07 00 F9 08 00 00 00 00 00 FF 0F 16 [21:19:46]RasterBufferAndPrint [21:19:46]line Счет N : (1)593793 [21:19:46]line ИНН: 02508201610067 [21:19:46]line Контрольно-Кассовый Чек [21:19:46]line ПРОДАЖА [21:19:46]line ТРК (МРК, ГНК) : 52 [21:19:46]line Товар: 2710124130 [21:19:46]line Аи-92-К-5 [21:19:46]line 8.850 * 67.80 [21:19:46]line = 600.03 [21:19:46]line НДС 12% НСП 1% [21:19:46]line > о реализуемом товаре [21:19:46]line ОКРУГЛЕНИЕ: -0.03 [21:19:46]line ИТОГО: 600.00 [21:19:46]line Внесено: 600.00 [21:19:46]line СДАЧА: 0.00 [21:19:46]line НСП 1% : 5.31 [21:19:46]line НДС 12% : 63.72 [21:19:46]line Наличными: 600.00 [21:19:46]line Безнал.: 0.00 [21:19:46]line Место: АЗС № 136 "Партнер Нефть" [21:19:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:19:46]line СНО: Общий режим [21:19:46]line Чек 410 20.08.2024 21:19 [21:19:46]line Смена: 453 ФФД: 1.0 [21:19:46]line ЗНМ: 0300000067 [21:19:46]line РНМ: 0000000000092569 [21:19:46]line Версия ККМ: 001 [21:19:46]line ФМ: 0000000000871776 [21:19:46]line ФД: 139938 [21:19:46]line ФПД: 218253801693386 [21:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T211945&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139938&fm=218253801693386&tin=02508201610067®Number=0000000000092569&sum=60000 [21:19:46]OFD Sender: Processing packet 139938 [packets to send 137, broken 136] [21:19:46]ProducePacketName [21:19:46]name=ofd_packets/00139938 [21:19:46]OFD Sender: To server: pG, [21:19:46]CommunicateWithHost lk.salyk.kg:30040 [21:19:46]ConnectInit lk.salyk.kg [21:19:46]written 0, free lines is 4095 [21:19:46]Connected sock=10 [21:19:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 F3 07 01 12 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 01 00 00 F4 03 04 00 71 08 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 22 02 00 35 04 06 00 C6 80 2C 52 20 CA 51 2E 65 89 06 5A 36 3D [21:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3E 35 47 00 DC 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 22 02 00 F4 03 04 00 03 AF C4 66 B6 04 01 00 00 C9 BE 75 AF 3D E7 88 42 [21:19:47]CommunicateWithHost err = 0 [21:19:47]CheckOFDResponse [21:19:47]1017 (14) - 77093643461234 [21:19:47]1041 (16) - 0000000000871776 [21:19:47]1040 (4) - 139938 [21:19:47]1012 (4) - 20.08.2024 14:58 [21:19:47]1206 (1) - 0 [21:19:47]OFD Sender: Remove packet 139938 [21:19:47]ProducePacketName [21:19:47]name=ofd_packets/00139938 [21:19:47]NVStorageDeleteData [21:19:47]Write to MH i2c: 01 00 00 24 09 2D [21:19:47]Write i2c OK [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: 01 [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: 01 07 00 [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: 01 07 00 24 09 00 00 00 00 00 CD 0C 0D [21:19:47]RasterBufferAndPrint [21:19:47]line [21:19:47]line [21:19:47]line [21:19:47]line [21:19:47]line [21:19:47]written 0, free lines is 3283 [21:19:47]MH_Cut [21:19:47]Write to MH i2c: D1 01 00 2B 09 01 06 [21:19:47]Write i2c OK [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: D1 [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: D1 01 00 [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: D1 01 00 2B 09 00 05 [21:19:47]Write to MH i2c: 01 00 00 2C 09 35 [21:19:47]Write i2c OK [21:19:47]MH_I2C_Read... [21:19:47]OFD Sender: No OFD packet to send [21:19:47]*** Cut start [21:19:47]*** Partial cut [21:19:47]*** CUTSNS_PIN = 1 [21:19:47]*** CUTSNS_PIN = 0 [21:19:48]*** Brake cut motor [21:19:48]Read from MH i2c: 01 [21:19:48]MH_I2C_Read... [21:19:48]*** Stop cut motor [21:19:48]*** Cut end [21:19:48]Read from MH i2c: 01 07 00 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: 01 07 00 2C 09 00 00 00 00 00 FF 0F 4A [21:19:48]process_action close_receipt done [21:19:48]requested_data is exist [21:19:48]produce_requested_data [21:19:48]requested_item fm.sn is exist - process it [21:19:48]wFMCommunicate request_size=4 [21:19:48]MH_SAM_APDU [21:19:48]CAPDU: 80 11 00 00 [21:19:48]Write to MH i2c: E2 08 00 2D 09 80 11 00 00 00 00 00 00 B0 [21:19:48]Write i2c OK [21:19:48]MH_I2C_Read... [21:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:48]Read from MH i2c: E2 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 17 00 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 17 00 2D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 07 [21:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:19:48]wFMCommunicate OK [21:19:48]requested_item fd.num is exist - process it [21:19:48]SAM_PROTO_GetFieldsCounters [21:19:48]wFMCommunicate request_size=4 [21:19:48]MH_SAM_APDU [21:19:48]CAPDU: 80 13 00 00 [21:19:48]Write to MH i2c: E2 08 00 2E 09 80 13 00 00 00 00 00 00 B3 [21:19:48]Write i2c OK [21:19:48]MH_I2C_Read... [21:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:48]Read from MH i2c: E2 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 62 00 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 62 00 2E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A2 22 02 00 0E 04 04 00 C5 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 3B [21:19:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A2 22 02 00 0E 04 04 00 C5 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 [21:19:48]wFMCommunicate OK [21:19:48]SAM_PROTO_GetFieldsCounters done [21:19:48]requested_item shift.num is exist - process it [21:19:48]requested_item shift.opened is exist - process it [21:19:48]req_shift_opened [21:19:48]FM_GetShiftState [21:19:48]SAM_PROTO_GetShiftState [21:19:48]wFMCommunicate request_size=4 [21:19:48]MH_SAM_APDU [21:19:48]CAPDU: 80 13 01 00 [21:19:48]Write to MH i2c: E2 08 00 2F 09 80 13 01 00 00 00 00 00 B5 [21:19:48]Write i2c OK [21:19:48]MH_I2C_Read... [21:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:48]Read from MH i2c: E2 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 0E 00 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 0E 00 2F 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 46 [21:19:48]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:19:48]wFMCommunicate OK [21:19:48]SAM_PROTO_GetShiftState done [21:19:48]FM_GetShiftState done [21:19:48]req_shift_opened done [21:19:48]requested_item shift.open_date is exist - process it [21:19:48]req_shift_open_date [21:19:48]req_shift_open_date done [21:19:48]produce_requested_data done [21:19:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139938,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:19:48]process_action_free close_receipt [21:19:48]json_value_free [21:19:48]json_value_free done [21:19:48]process_json_proto returns [21:19:48]Send response to host [21:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139938,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:19:48]free response buf [21:19:48]execute_script done [21:19:48]execute_script returns [21:19:48]free content buf [21:19:48]Sock 9.Close socket [21:19:48]Sock 9.Thread stoped [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:00]int [21:20:00]Write to MH i2c: 01 00 00 30 09 39 [21:20:00]*** FLAG_PRN_KEY set [21:20:00]Write i2c OK [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: 01 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: 01 07 00 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: 01 07 00 30 09 00 08 00 00 00 FF 0F 56 [21:20:00]state=0 [21:20:00]Key pressed [21:20:00]Feed [21:20:00]Write to MH i2c: D8 00 00 31 09 11 [21:20:00]Write i2c OK [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: D8 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: D8 01 00 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: D8 01 00 31 09 00 12 [21:20:00]int [21:20:00]Write to MH i2c: 01 00 00 32 09 3B [21:20:00]Write i2c OK [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: 01 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: 01 07 00 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: 01 07 00 32 09 00 48 00 00 00 3C 00 C6 [21:20:00]state=2 [21:20:00]Key pressed [21:20:00]int [21:20:00]Write to MH i2c: 01 00 00 33 09 3C [21:20:00]*** FLAG_PRN_KEY reset [21:20:00]Write i2c OK [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: 01 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: 01 07 00 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: 01 07 00 33 09 00 00 00 00 00 F5 0F 47 [21:20:00]state=2 [21:20:00]Stop feed [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:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:01]accept exits with 7 [21:24:01]New connection [21:24:01]New thread 3066764644 created [21:24:01]Thread 3066908004 joined [21:24:01]Waiting for new connection... [21:24:01] Sock 7.Parse request [21:24:01]Sock 7.Check first char [21:24:01]Sock 7.First char is OK [21:24:01]request: POST /json_proto HTTP/1.0 [21:24:01]Method: POST [21:24:01]URL: /json_proto [21:24:01]Method is POST - this is cgi request [21:24:01]url: /json_proto [21:24:01]query_string will be loaded in cgi processing [21:24:01]execute_cgi json_proto POST (null) [21:24:01]execute_cgi path=json_proto method=POST [21:24:01]POST find Content-Length [21:24:01]Host: 172.17.45.67:8080 [21:24:01]Content-Length: 682 [21:24:01]Content-Type: application/json [21:24:01] [21:24:01]POST finish read [21:24:01]Found Content-Length = 682 [21:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:01]execute_script... [21:24: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)593794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:01]POST & json_proto [21:24:01]process_json_proto [21:24:01]json parsed OK: [21:24:01]protocol is kg_v1.0 [21:24:01]action value=close_receipt [21:24:01]process_action close_receipt [21:24:01]cmd_close_receipt [21:24:01]MH_GetDate [21:24:01]Write to MH i2c: F0 00 00 34 09 2C [21:24:01]Write i2c OK [21:24:01]MH_I2C_Read... [21:24:01]Read from MH i2c: F0 [21:24:01]MH_I2C_Read... [21:24:01]Read from MH i2c: F0 09 00 [21:24:01]MH_I2C_Read... [21:24:01]Read from MH i2c: F0 09 00 34 09 00 72 09 C5 66 5F 7F 2B 66 4A [21:24:01]GetLastDocTimeStamp 1724188785 [21:24:01]current date 1724189042 [21:24:01]FM_GetShiftState [21:24:01]SAM_PROTO_GetShiftState [21:24:01]wFMCommunicate request_size=4 [21:24:01]MH_SAM_APDU [21:24:01]CAPDU: 80 13 01 00 [21:24:01]Write to MH i2c: E2 08 00 35 09 80 13 01 00 00 00 00 00 BB [21:24:01]Write i2c OK [21:24:01]MH_I2C_Read... [21:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:01]Read from MH i2c: E2 [21:24:01]MH_I2C_Read... [21:24:01]Read from MH i2c: E2 0E 00 [21:24:01]MH_I2C_Read... [21:24:01]Read from MH i2c: E2 0E 00 35 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4C [21:24:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:24:01]wFMCommunicate OK [21:24:01]SAM_PROTO_GetShiftState done [21:24:01]FM_GetShiftState done [21:24:01]opened in 1724113785 [21:24:01]opened+sec_in_day 1724200185 [21:24:01]quantity*price = 100005 [21:24:01]sum+1 = 100006 [21:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 411 20.08.2024 21:24 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139939 ФПД: 74577352851439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T212402&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139939&fm=74577352851439&tin=02508201610067®Number=0000000000092569&sum=100000 [21:24:02]StoreToDocumentArchive [21:24:02]shift 453 fd 139939 [21:24:02]save to /storage/0453/doc_00139939 [21:24:02]save last doc name /storage/0453/doc_00139939 to /storage/kkm_last_doc_name [21:24:02]save OK [21:24:02]Clear old archive folders... [21:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:02]tlvbuf is 00A6F190 [21:24:02]SAM_PROTO_ClearQueue [21:24:02]wFMCommunicate request_size=4 [21:24:02]MH_SAM_APDU [21:24:02]CAPDU: 80 09 00 00 [21:24:02]Write to MH i2c: E2 08 00 42 09 80 09 00 00 00 00 00 00 BD [21:24:02]Write i2c OK [21:24:02]MH_I2C_Read... [21:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:02]Read from MH i2c: E2 [21:24:02]MH_I2C_Read... [21:24:02]Read from MH i2c: E2 03 00 [21:24:02]MH_I2C_Read... [21:24:02]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [21:24:02]RAPDU: 90 00 [21:24:02]wFMCommunicate OK [21:24:02]SAM_PROTO_ClearQueue done [21:24:02]KKMCreateOFDPacket [21:24:02]OFDProtocolAddRootSTLVToBuf [21:24:02]FM_MakeSignedData [21:24:02]FM_MakeSignedData [21:24:02]SAM_PROTO_SignData [21:24:02]wFMCommunicate request_size=4 [21:24:02]MH_SAM_APDU [21:24:02]CAPDU: 80 0D 01 02 [21:24:02]Write to MH i2c: E2 08 00 43 09 80 0D 01 02 00 00 00 00 C5 [21:24:02]Write i2c OK [21:24:02]MH_I2C_Read... [21:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:02]Read from MH i2c: E2 [21:24:02]MH_I2C_Read... [21:24:02]Read from MH i2c: E2 03 00 [21:24:02]MH_I2C_Read... [21:24:02]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [21:24:02]RAPDU: 90 00 [21:24:02]wFMCommunicate OK [21:24:02]wFMCommunicate request_size=255 [21:24:02]MH_SAM_APDU [21:24:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 72 09 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 22 02 00 35 04 06 00 43 [21:24:02]Write to MH i2c: E2 02 01 44 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 72 09 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 22 02 00 35 04 06 00 43 00 00 EF [21:24:02]Write i2c OK [21:24:02]MH_I2C_Read... [21:24:02]OFD Sender: No OFD packet to send [21:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:03]Read from MH i2c: E2 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: E2 03 00 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [21:24:03]RAPDU: 90 00 [21:24:03]wFMCommunicate OK [21:24:03]wFMCommunicate request_size=10 [21:24:03]MH_SAM_APDU [21:24:03]CAPDU: 80 0D 02 02 05 D3 E4 9F FF EF [21:24:03]Write to MH i2c: E2 0D 00 45 09 80 0D 02 02 05 00 D3 E4 9F FF EF 00 00 16 [21:24:03]Write i2c OK [21:24:03]MH_I2C_Read... [21:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:03]Read from MH i2c: E2 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: E2 03 00 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [21:24:03]RAPDU: 90 00 [21:24:03]wFMCommunicate OK [21:24:03]wFMCommunicate request_size=4 [21:24:03]MH_SAM_APDU [21:24:03]CAPDU: 80 0D 03 02 [21:24:03]Write to MH i2c: E2 08 00 46 09 80 0D 03 02 00 00 00 00 CA [21:24:03]Write i2c OK [21:24:03]MH_I2C_Read... [21:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:03]Read from MH i2c: E2 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: E2 0B 00 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: E2 0B 00 46 09 00 AC 65 73 85 03 D7 C1 3A 90 00 A9 [21:24:03]RAPDU: AC 65 73 85 03 D7 C1 3A 90 00 [21:24:03]wFMCommunicate OK [21:24:03]SAM_PROTO_SignData done [21:24:03]FM_MakeSignedData done [21:24:03]CreateOFDProtocolMessage [21:24:03]wFMCommunicate request_size=4 [21:24:03]MH_SAM_APDU [21:24:03]CAPDU: 80 11 00 00 [21:24:03]Write to MH i2c: E2 08 00 47 09 80 11 00 00 00 00 00 00 CA [21:24:03]Write i2c OK [21:24:03]MH_I2C_Read... [21:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:03]Read from MH i2c: E2 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: E2 17 00 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: E2 17 00 47 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 21 [21:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:24:03]wFMCommunicate OK [21:24:03]CreateOFDProtocolMessage done [21:24:03]OFDSenderStorePacket 139939 [21:24:03]StoreOFDPacket docnum=139939 [21:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5E 41 07 01 04 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 72 09 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 22 02 00 35 04 06 00 43 D3 E4 9F FF EF AC 65 73 85 03 D7 C1 3A [21:24:03]CheckFolder [21:24:03]dirname=/storage/ofd_packets [21:24:03]CheckFolder done [21:24:03]ProducePacketName [21:24:03]name=ofd_packets/00139939 [21:24:03]NVStorageSaveData ofd_packets/00139939 [21:24:03]File name is /storage/ofd_packets/00139939 [21:24:03]Write 301 bytes [21:24:03]NVStorageSaveData done [21:24:03]OFDSenderStorePacket done [21:24:03]KKMCreateOFDPacket done [21:24:03]NVStorageSaveData kkm_last_timestamp [21:24:03]File name is /storage/kkm_last_timestamp [21:24:03]Write 4 bytes [21:24:03]NVStorageSaveData done [21:24:03]ExternCall_PrintAddStr [21:24:03]wPrintStart [21:24:03]Write to MH i2c: 01 00 00 48 09 51 [21:24:03]Write i2c OK [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: 01 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: 01 07 00 [21:24:03]MH_I2C_Read... [21:24:03]Read from MH i2c: 01 07 00 48 09 00 00 00 00 00 FF 0F 66 [21:24:03]RasterBufferAndPrint [21:24:03]line Счет N : (1)593794 [21:24:03]line ИНН: 02508201610067 [21:24:03]line Контрольно-Кассовый Чек [21:24:03]line ПРОДАЖА [21:24:03]line ТРК (МРК, ГНК) : 52 [21:24:03]line Товар: 2710124130 [21:24:03]line Аи-92-К-5 [21:24:03]line 14.750 * 67.80 [21:24:03]line = 1000.05 [21:24:03]line НДС 12% НСП 1% [21:24:03]line > о реализуемом товаре [21:24:03]line ОКРУГЛЕНИЕ: -0.05 [21:24:03]line ИТОГО: 1000.00 [21:24:03]line Внесено: 1000.00 [21:24:03]line СДАЧА: 0.00 [21:24:03]line НСП 1% : 8.85 [21:24:03]line НДС 12% : 106.20 [21:24:03]line Наличными: 1000.00 [21:24:03]line Безнал.: 0.00 [21:24:03]line Место: АЗС № 136 "Партнер Нефть" [21:24:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:24:03]line СНО: Общий режим [21:24:03]line Чек 411 20.08.2024 21:24 [21:24:03]line Смена: 453 ФФД: 1.0 [21:24:03]line ЗНМ: 0300000067 [21:24:03]line РНМ: 0000000000092569 [21:24:03]line Версия ККМ: 001 [21:24:03]line ФМ: 0000000000871776 [21:24:03]line ФД: 139939 [21:24:03]line ФПД: 74577352851439 [21:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T212402&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139939&fm=74577352851439&tin=02508201610067®Number=0000000000092569&sum=100000 [21:24:03]OFD Sender: Processing packet 139939 [packets to send 137, broken 136] [21:24:03]ProducePacketName [21:24:03]name=ofd_packets/00139939 [21:24:03]OFD Sender: To server: pG, [21:24:03]CommunicateWithHost lk.salyk.kg:30040 [21:24:03]ConnectInit lk.salyk.kg [21:24:03]written 0, free lines is 4095 [21:24:03]Connected sock=9 [21:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5E 41 07 01 04 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 72 09 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 22 02 00 35 04 06 00 43 D3 E4 9F FF EF AC 65 73 85 03 D7 C1 3A [21:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 85 A6 47 00 A7 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 22 02 00 F4 03 04 00 04 B0 C4 66 B6 04 01 00 00 14 0D 90 6C BE AB 0C 43 [21:24:04]CommunicateWithHost err = 0 [21:24:04]CheckOFDResponse [21:24:04]1017 (14) - 77093643461234 [21:24:04]1041 (16) - 0000000000871776 [21:24:04]1040 (4) - 139939 [21:24:04]1012 (4) - 20.08.2024 15:02 [21:24:04]1206 (1) - 0 [21:24:04]OFD Sender: Remove packet 139939 [21:24:04]ProducePacketName [21:24:04]name=ofd_packets/00139939 [21:24:04]NVStorageDeleteData [21:24:04]Write to MH i2c: 01 00 00 73 09 7C [21:24:04]Write i2c OK [21:24:04]MH_I2C_Read... [21:24:04]Read from MH i2c: 01 [21:24:04]MH_I2C_Read... [21:24:04]Read from MH i2c: 01 07 00 [21:24:04]MH_I2C_Read... [21:24:04]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 D4 0C 63 [21:24:04]RasterBufferAndPrint [21:24:04]line [21:24:04]line [21:24:04]line [21:24:04]line [21:24:04]line [21:24:04]written 0, free lines is 3293 [21:24:04]MH_Cut [21:24:04]Write to MH i2c: D1 01 00 7A 09 01 55 [21:24:04]Write i2c OK [21:24:04]MH_I2C_Read... [21:24:04]Read from MH i2c: D1 [21:24:04]MH_I2C_Read... [21:24:04]Read from MH i2c: D1 01 00 [21:24:04]MH_I2C_Read... [21:24:04]Read from MH i2c: D1 01 00 7A 09 00 54 [21:24:04]Write to MH i2c: 01 00 00 7B 09 84 [21:24:04]Write i2c OK [21:24:04]MH_I2C_Read... [21:24:04]OFD Sender: No OFD packet to send [21:24:04]*** Cut start [21:24:04]*** Partial cut [21:24:04]*** CUTSNS_PIN = 1 [21:24:04]*** CUTSNS_PIN = 0 [21:24:05]*** Brake cut motor [21:24:05]Read from MH i2c: 01 [21:24:05]MH_I2C_Read... [21:24:05]*** Stop cut motor [21:24:05]*** Cut end [21:24:05]Read from MH i2c: 01 07 00 [21:24:05]MH_I2C_Read... [21:24:05]Read from MH i2c: 01 07 00 7B 09 00 00 00 00 00 FF 0F 99 [21:24:05]process_action close_receipt done [21:24:05]requested_data is exist [21:24:05]produce_requested_data [21:24:05]requested_item fm.sn is exist - process it [21:24:05]wFMCommunicate request_size=4 [21:24:05]MH_SAM_APDU [21:24:05]CAPDU: 80 11 00 00 [21:24:05]Write to MH i2c: E2 08 00 7C 09 80 11 00 00 00 00 00 00 FF [21:24:05]Write i2c OK [21:24:05]MH_I2C_Read... [21:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:05]Read from MH i2c: E2 [21:24:05]MH_I2C_Read... [21:24:05]Read from MH i2c: E2 17 00 [21:24:05]MH_I2C_Read... [21:24:05]Read from MH i2c: E2 17 00 7C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [21:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:24:05]wFMCommunicate OK [21:24:05]requested_item fd.num is exist - process it [21:24:05]SAM_PROTO_GetFieldsCounters [21:24:05]wFMCommunicate request_size=4 [21:24:05]MH_SAM_APDU [21:24:05]CAPDU: 80 13 00 00 [21:24:05]Write to MH i2c: E2 08 00 7D 09 80 13 00 00 00 00 00 00 02 [21:24:05]Write i2c OK [21:24:05]MH_I2C_Read... [21:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:05]Read from MH i2c: E2 [21:24:05]MH_I2C_Read... [21:24:05]Read from MH i2c: E2 62 00 [21:24:05]MH_I2C_Read... [21:24:05]Read from MH i2c: E2 62 00 7D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A3 22 02 00 0E 04 04 00 C5 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 8E [21:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A3 22 02 00 0E 04 04 00 C5 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:24:05]wFMCommunicate OK [21:24:05]SAM_PROTO_GetFieldsCounters done [21:24:05]requested_item shift.num is exist - process it [21:24:05]requested_item shift.opened is exist - process it [21:24:05]req_shift_opened [21:24:05]FM_GetShiftState [21:24:05]SAM_PROTO_GetShiftState [21:24:05]wFMCommunicate request_size=4 [21:24:05]MH_SAM_APDU [21:24:05]CAPDU: 80 13 01 00 [21:24:05]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [21:24:05]Write i2c OK [21:24:05]MH_I2C_Read... [21:24:05]Read from MH i2c: E2 [21:24:05]MH_I2C_Read... [21:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:05]Read from MH i2c: E2 0E 00 [21:24:05]MH_I2C_Read... [21:24:05]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 95 [21:24:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:24:05]wFMCommunicate OK [21:24:05]SAM_PROTO_GetShiftState done [21:24:05]FM_GetShiftState done [21:24:05]req_shift_opened done [21:24:05]requested_item shift.open_date is exist - process it [21:24:05]req_shift_open_date [21:24:05]req_shift_open_date done [21:24:05]produce_requested_data done [21:24:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139939,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:24:05]process_action_free close_receipt [21:24:05]json_value_free [21:24:05]json_value_free done [21:24:05]process_json_proto returns [21:24:05]Send response to host [21:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139939,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:24:05]free response buf [21:24:05]execute_script done [21:24:05]execute_script returns [21:24:05]free content buf [21:24:05]Sock 7.Close socket [21:24:05]Sock 7.Thread stoped [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:36]accept exits with 10 [21:24:36]New connection [21:24:36]New thread 3066908004 created [21:24:36]Thread 3066764644 joined [21:24:36]Waiting for new connection... [21:24:36] Sock 10.Parse request [21:24:36]Sock 10.Check first char [21:24:36]Sock 10.First char is OK [21:24:36]request: POST /json_proto HTTP/1.0 [21:24:36]Method: POST [21:24:36]URL: /json_proto [21:24:36]Method is POST - this is cgi request [21:24:36]url: /json_proto [21:24:36]query_string will be loaded in cgi processing [21:24:36]execute_cgi json_proto POST (null) [21:24:36]execute_cgi path=json_proto method=POST [21:24:36]POST find Content-Length [21:24:36]Host: 172.17.45.67:8080 [21:24:36]Content-Length: 677 [21:24:36]Content-Type: application/json [21:24:36] [21:24:36]POST finish read [21:24:36]Found Content-Length = 677 [21:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:36]execute_script... [21:24: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)593795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:36]POST & json_proto [21:24:36]process_json_proto [21:24:36]json parsed OK: [21:24:36]protocol is kg_v1.0 [21:24:36]action value=close_receipt [21:24:36]process_action close_receipt [21:24:36]cmd_close_receipt [21:24:36]MH_GetDate [21:24:36]Write to MH i2c: F0 00 00 7F 09 77 [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: F0 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: F0 09 00 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: F0 09 00 7F 09 00 94 09 C5 66 5F 7F 2B 66 B7 [21:24:36]GetLastDocTimeStamp 1724189042 [21:24:36]current date 1724189076 [21:24:36]FM_GetShiftState [21:24:36]SAM_PROTO_GetShiftState [21:24:36]wFMCommunicate request_size=4 [21:24:36]MH_SAM_APDU [21:24:36]CAPDU: 80 13 01 00 [21:24:36]Write to MH i2c: E2 08 00 80 09 80 13 01 00 00 00 00 00 06 [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:36]Read from MH i2c: E2 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: E2 0E 00 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: E2 0E 00 80 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 97 [21:24:36]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:24:36]wFMCommunicate OK [21:24:36]SAM_PROTO_GetShiftState done [21:24:36]FM_GetShiftState done [21:24:36]opened in 1724113785 [21:24:36]opened+sec_in_day 1724200185 [21:24:36]quantity*price = 50036 [21:24:36]sum+1 = 50037 [21:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 412 20.08.2024 21:24 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139940 ФПД: 75272559479263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T212436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139940&fm=75272559479263&tin=02508201610067®Number=0000000000092569&sum=50000 [21:24:37]StoreToDocumentArchive [21:24:37]shift 453 fd 139940 [21:24:37]save to /storage/0453/doc_00139940 [21:24:37]save last doc name /storage/0453/doc_00139940 to /storage/kkm_last_doc_name [21:24:37]save OK [21:24:37]Clear old archive folders... [21:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:37]tlvbuf is 00A7D4C0 [21:24:37]SAM_PROTO_ClearQueue [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 09 00 00 [21:24:37]Write to MH i2c: E2 08 00 8D 09 80 09 00 00 00 00 00 00 08 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 03 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [21:24:37]RAPDU: 90 00 [21:24:37]wFMCommunicate OK [21:24:37]SAM_PROTO_ClearQueue done [21:24:37]KKMCreateOFDPacket [21:24:37]OFDProtocolAddRootSTLVToBuf [21:24:37]FM_MakeSignedData [21:24:37]FM_MakeSignedData [21:24:37]SAM_PROTO_SignData [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 0D 01 02 [21:24:37]Write to MH i2c: E2 08 00 8E 09 80 0D 01 02 00 00 00 00 10 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 03 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [21:24:37]RAPDU: 90 00 [21:24:37]wFMCommunicate OK [21:24:37]wFMCommunicate request_size=255 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 94 09 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 22 02 00 35 04 06 00 44 [21:24:37]Write to MH i2c: E2 02 01 8F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 94 09 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 22 02 00 35 04 06 00 44 00 00 D0 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 03 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [21:24:37]RAPDU: 90 00 [21:24:37]wFMCommunicate OK [21:24:37]wFMCommunicate request_size=10 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 0D 02 02 05 75 C2 2B 49 DF [21:24:37]Write to MH i2c: E2 0D 00 90 09 80 0D 02 02 05 00 75 C2 2B 49 DF 00 00 A7 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 03 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [21:24:37]RAPDU: 90 00 [21:24:37]wFMCommunicate OK [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 0D 03 02 [21:24:37]Write to MH i2c: E2 08 00 91 09 80 0D 03 02 00 00 00 00 15 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 0B 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 0B 00 91 09 00 FF 17 55 7D 5E 42 5F 76 90 00 73 [21:24:37]RAPDU: FF 17 55 7D 5E 42 5F 76 90 00 [21:24:37]wFMCommunicate OK [21:24:37]SAM_PROTO_SignData done [21:24:37]FM_MakeSignedData done [21:24:37]CreateOFDProtocolMessage [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 11 00 00 [21:24:37]Write to MH i2c: E2 08 00 92 09 80 11 00 00 00 00 00 00 15 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 17 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 17 00 92 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6C [21:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:24:37]wFMCommunicate OK [21:24:37]CreateOFDProtocolMessage done [21:24:37]OFDSenderStorePacket 139940 [21:24:37]StoreOFDPacket docnum=139940 [21:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 E2 07 01 36 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 94 09 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 22 02 00 35 04 06 00 44 75 C2 2B 49 DF FF 17 55 7D 5E 42 5F 76 [21:24:37]CheckFolder [21:24:37]dirname=/storage/ofd_packets [21:24:37]CheckFolder done [21:24:37]ProducePacketName [21:24:37]name=ofd_packets/00139940 [21:24:37]NVStorageSaveData ofd_packets/00139940 [21:24:37]File name is /storage/ofd_packets/00139940 [21:24:37]Write 301 bytes [21:24:37]NVStorageSaveData done [21:24:37]OFDSenderStorePacket done [21:24:37]KKMCreateOFDPacket done [21:24:37]NVStorageSaveData kkm_last_timestamp [21:24:37]File name is /storage/kkm_last_timestamp [21:24:37]Write 4 bytes [21:24:37]NVStorageSaveData done [21:24:37]OFD Sender: Processing packet 139940 [packets to send 137, broken 136] [21:24:37]ProducePacketName [21:24:37]name=ofd_packets/00139940 [21:24:37]OFD Sender: To server: pG, [21:24:37]CommunicateWithHost lk.salyk.kg:30040 [21:24:37]ConnectInit lk.salyk.kg [21:24:37]ExternCall_PrintAddStr [21:24:37]wPrintStart [21:24:37]Write to MH i2c: 01 00 00 93 09 9C [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: 01 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: 01 07 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 FF 0F B1 [21:24:37]RasterBufferAndPrint [21:24:37]line Счет N : (1)593795 [21:24:37]line ИНН: 02508201610067 [21:24:37]line Контрольно-Кассовый Чек [21:24:37]line ПРОДАЖА [21:24:37]line ТРК (МРК, ГНК) : 42 [21:24:37]line Товар: 2710124130 [21:24:37]line Аи-92-К-5 [21:24:37]line 7.380 * 67.80 [21:24:37]line = 500.36 [21:24:37]line НДС 12% НСП 1% [21:24:37]line > о реализуемом товаре [21:24:37]line ОКРУГЛЕНИЕ: -0.36 [21:24:37]line ИТОГО: 500.00 [21:24:37]line Внесено: 500.00 [21:24:37]line СДАЧА: 0.00 [21:24:37]line НСП 1% : 4.43 [21:24:37]line НДС 12% : 53.14 [21:24:37]line Наличными: 500.00 [21:24:37]line Безнал.: 0.00 [21:24:37]line Место: АЗС № 136 "Партнер Нефть" [21:24:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:24:37]line СНО: Общий режим [21:24:37]line Чек 412 20.08.2024 21:24 [21:24:37]line Смена: 453 ФФД: 1.0 [21:24:37]line ЗНМ: 0300000067 [21:24:37]line РНМ: 0000000000092569 [21:24:37]line Версия ККМ: 001 [21:24:37]line ФМ: 0000000000871776 [21:24:37]line ФД: 139940 [21:24:37]line ФПД: 75272559479263 [21:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T212436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139940&fm=75272559479263&tin=02508201610067®Number=0000000000092569&sum=50000 [21:24:38]Connected sock=11 [21:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 38 E2 07 01 36 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 94 09 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 22 02 00 35 04 06 00 44 75 C2 2B 49 DF FF 17 55 7D 5E 42 5F 76 [21:24:38]written 0, free lines is 4095 [21:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6D E4 47 00 7F 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 22 02 00 F4 03 04 00 26 B0 C4 66 B6 04 01 00 00 3C 27 C1 37 9D 9E C2 92 [21:24:38]CommunicateWithHost err = 0 [21:24:38]CheckOFDResponse [21:24:38]1017 (14) - 77093643461234 [21:24:38]1041 (16) - 0000000000871776 [21:24:38]1040 (4) - 139940 [21:24:38]1012 (4) - 20.08.2024 15:03 [21:24:38]1206 (1) - 0 [21:24:38]OFD Sender: Remove packet 139940 [21:24:38]ProducePacketName [21:24:38]name=ofd_packets/00139940 [21:24:38]NVStorageDeleteData [21:24:38]Write to MH i2c: 01 00 00 BE 09 C7 [21:24:38]Write i2c OK [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: 01 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: 01 07 00 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: 01 07 00 BE 09 00 00 00 00 00 C5 0C 9F [21:24:38]RasterBufferAndPrint [21:24:38]line [21:24:38]line [21:24:38]line [21:24:38]line [21:24:38]line [21:24:38]written 0, free lines is 3275 [21:24:38]MH_Cut [21:24:38]Write to MH i2c: D1 01 00 C5 09 01 A0 [21:24:38]Write i2c OK [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: D1 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: D1 01 00 [21:24:38]MH_I2C_Read... [21:24:38]Read from MH i2c: D1 01 00 C5 09 00 9F [21:24:38]Write to MH i2c: 01 00 00 C6 09 CF [21:24:38]Write i2c OK [21:24:38]MH_I2C_Read... [21:24:38]OFD Sender: No OFD packet to send [21:24:39]*** Cut start [21:24:39]*** Partial cut [21:24:39]*** CUTSNS_PIN = 1 [21:24:39]*** CUTSNS_PIN = 0 [21:24:39]*** Brake cut motor [21:24:39]Read from MH i2c: 01 [21:24:39]MH_I2C_Read... [21:24:39]*** Stop cut motor [21:24:39]*** Cut end [21:24:39]Read from MH i2c: 01 07 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: 01 07 00 C6 09 00 00 00 00 00 FF 0F E4 [21:24:39]process_action close_receipt done [21:24:39]requested_data is exist [21:24:39]produce_requested_data [21:24:39]requested_item fm.sn is exist - process it [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 11 00 00 [21:24:39]Write to MH i2c: E2 08 00 C7 09 80 11 00 00 00 00 00 00 4A [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:39]Read from MH i2c: E2 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 17 00 [21:24:39]MH_I2C_Read... [21:24:39]Read from MH i2c: E2 17 00 C7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [21:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:24:39]wFMCommunicate OK [21:24:39]requested_item fd.num is exist - process it [21:24:39]SAM_PROTO_GetFieldsCounters [21:24:39]wFMCommunicate request_size=4 [21:24:39]MH_SAM_APDU [21:24:39]CAPDU: 80 13 00 00 [21:24:39]Write to MH i2c: E2 08 00 C8 09 80 13 00 00 00 00 00 00 4D [21:24:39]Write i2c OK [21:24:39]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 62 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 62 00 C8 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 22 02 00 0E 04 04 00 C5 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 DD [21:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 22 02 00 0E 04 04 00 C5 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:24:40]wFMCommunicate OK [21:24:40]SAM_PROTO_GetFieldsCounters done [21:24:40]requested_item shift.num is exist - process it [21:24:40]requested_item shift.opened is exist - process it [21:24:40]req_shift_opened [21:24:40]FM_GetShiftState [21:24:40]SAM_PROTO_GetShiftState [21:24:40]wFMCommunicate request_size=4 [21:24:40]MH_SAM_APDU [21:24:40]CAPDU: 80 13 01 00 [21:24:40]Write to MH i2c: E2 08 00 C9 09 80 13 01 00 00 00 00 00 4F [21:24:40]Write i2c OK [21:24:40]MH_I2C_Read... [21:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:40]Read from MH i2c: E2 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 0E 00 [21:24:40]MH_I2C_Read... [21:24:40]Read from MH i2c: E2 0E 00 C9 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E0 [21:24:40]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:24:40]wFMCommunicate OK [21:24:40]SAM_PROTO_GetShiftState done [21:24:40]FM_GetShiftState done [21:24:40]req_shift_opened done [21:24:40]requested_item shift.open_date is exist - process it [21:24:40]req_shift_open_date [21:24:40]req_shift_open_date done [21:24:40]produce_requested_data done [21:24:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139940,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:24:40]process_action_free close_receipt [21:24:40]json_value_free [21:24:40]json_value_free done [21:24:40]process_json_proto returns [21:24:40]Send response to host [21:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139940,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:24:40]free response buf [21:24:40]execute_script done [21:24:40]execute_script returns [21:24:40]free content buf [21:24:40]Sock 10.Close socket [21:24:40]Sock 10.Thread stoped [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:43]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27: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:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:12]accept exits with 7 [21:35:12]New connection [21:35:12]New thread 3066764644 created [21:35:12]Thread 3066908004 joined [21:35:12]Waiting for new connection... [21:35:12] Sock 7.Parse request [21:35:12]Sock 7.Check first char [21:35:12]Sock 7.First char is OK [21:35:12]request: POST /json_proto HTTP/1.0 [21:35:12]Method: POST [21:35:12]URL: /json_proto [21:35:12]Method is POST - this is cgi request [21:35:12]url: /json_proto [21:35:12]query_string will be loaded in cgi processing [21:35:12]execute_cgi json_proto POST (null) [21:35:12]execute_cgi path=json_proto method=POST [21:35:12]POST find Content-Length [21:35:12]Host: 172.17.45.67:8080 [21:35:12]Content-Length: 683 [21:35:12]Content-Type: application/json [21:35:12] [21:35:12]POST finish read [21:35:12]Found Content-Length = 683 [21:35:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "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:35:12]execute_script... [21:35: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)593796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "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:35:12]POST & json_proto [21:35:12]process_json_proto [21:35:12]json parsed OK: [21:35:12]protocol is kg_v1.0 [21:35:12]action value=close_receipt [21:35:12]process_action close_receipt [21:35:12]cmd_close_receipt [21:35:12]MH_GetDate [21:35:12]Write to MH i2c: F0 00 00 CA 09 C2 [21:35:12]Write i2c OK [21:35:12]MH_I2C_Read... [21:35:12]Read from MH i2c: F0 [21:35:12]MH_I2C_Read... [21:35:12]Read from MH i2c: F0 09 00 [21:35:12]MH_I2C_Read... [21:35:12]Read from MH i2c: F0 09 00 CA 09 00 10 0C C5 66 5F 7F 2B 66 81 [21:35:12]GetLastDocTimeStamp 1724189076 [21:35:12]current date 1724189712 [21:35:12]FM_GetShiftState [21:35:12]SAM_PROTO_GetShiftState [21:35:12]wFMCommunicate request_size=4 [21:35:12]MH_SAM_APDU [21:35:12]CAPDU: 80 13 01 00 [21:35:12]Write to MH i2c: E2 08 00 CB 09 80 13 01 00 00 00 00 00 51 [21:35:12]Write i2c OK [21:35:12]MH_I2C_Read... [21:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:12]Read from MH i2c: E2 [21:35:12]MH_I2C_Read... [21:35:12]Read from MH i2c: E2 0E 00 [21:35:12]MH_I2C_Read... [21:35:12]Read from MH i2c: E2 0E 00 CB 09 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E2 [21:35:12]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:35:12]wFMCommunicate OK [21:35:12]SAM_PROTO_GetShiftState done [21:35:12]FM_GetShiftState done [21:35:12]opened in 1724113785 [21:35:12]opened+sec_in_day 1724200185 [21:35:12]quantity*price = 90068 [21:35:12]sum+1 = 90069 [21:35:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 413 20.08.2024 21:35 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139941 ФПД: 59554645130511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T213512&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139941&fm=59554645130511&tin=02508201610067®Number=0000000000092569&sum=90000 [21:35:13]StoreToDocumentArchive [21:35:13]shift 453 fd 139941 [21:35:13]save to /storage/0453/doc_00139941 [21:35:13]save last doc name /storage/0453/doc_00139941 to /storage/kkm_last_doc_name [21:35:13]save OK [21:35:13]Clear old archive folders... [21:35:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:35:13]tlvbuf is 00A6EE60 [21:35:13]SAM_PROTO_ClearQueue [21:35:13]wFMCommunicate request_size=4 [21:35:13]MH_SAM_APDU [21:35:13]CAPDU: 80 09 00 00 [21:35:13]Write to MH i2c: E2 08 00 D8 09 80 09 00 00 00 00 00 00 53 [21:35:13]Write i2c OK [21:35:13]MH_I2C_Read... [21:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:13]Read from MH i2c: E2 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: E2 03 00 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [21:35:13]RAPDU: 90 00 [21:35:13]wFMCommunicate OK [21:35:13]SAM_PROTO_ClearQueue done [21:35:13]KKMCreateOFDPacket [21:35:13]OFDProtocolAddRootSTLVToBuf [21:35:13]FM_MakeSignedData [21:35:13]FM_MakeSignedData [21:35:13]SAM_PROTO_SignData [21:35:13]wFMCommunicate request_size=4 [21:35:13]MH_SAM_APDU [21:35:13]CAPDU: 80 0D 01 02 [21:35:13]Write to MH i2c: E2 08 00 D9 09 80 0D 01 02 00 00 00 00 5B [21:35:13]Write i2c OK [21:35:13]MH_I2C_Read... [21:35:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:13]Read from MH i2c: E2 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: E2 03 00 [21:35:13]MH_I2C_Read... [21:35:13]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [21:35:13]RAPDU: 90 00 [21:35:13]wFMCommunicate OK [21:35:13]wFMCommunicate request_size=255 [21:35:13]MH_SAM_APDU [21:35:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 9D 01 00 00 F4 03 04 00 10 0C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 22 02 00 35 04 06 00 [21:35:13]Write to MH i2c: E2 02 01 DA 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 9D 01 00 00 F4 03 04 00 10 0C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 22 02 00 35 04 06 00 00 00 0F [21:35:13]Write i2c OK [21:35:13]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [21:35:14]RAPDU: 90 00 [21:35:14]wFMCommunicate OK [21:35:14]wFMCommunicate request_size=11 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 0D 02 02 06 36 2A 25 77 BD 0F [21:35:14]Write to MH i2c: E2 0E 00 DB 09 80 0D 02 02 06 00 36 2A 25 77 BD 0F 00 00 32 [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 03 00 DB 09 00 90 00 58 [21:35:14]RAPDU: 90 00 [21:35:14]wFMCommunicate OK [21:35:14]wFMCommunicate request_size=4 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 0D 03 02 [21:35:14]Write to MH i2c: E2 08 00 DC 09 80 0D 03 02 00 00 00 00 60 [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 0B 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 0B 00 DC 09 00 2A 1C 4C 85 1B 70 EE B7 90 00 A8 [21:35:14]RAPDU: 2A 1C 4C 85 1B 70 EE B7 90 00 [21:35:14]wFMCommunicate OK [21:35:14]SAM_PROTO_SignData done [21:35:14]FM_MakeSignedData done [21:35:14]CreateOFDProtocolMessage [21:35:14]wFMCommunicate request_size=4 [21:35:14]MH_SAM_APDU [21:35:14]CAPDU: 80 11 00 00 [21:35:14]Write to MH i2c: E2 08 00 DD 09 80 11 00 00 00 00 00 00 60 [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:14]Read from MH i2c: E2 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 17 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: E2 17 00 DD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B7 [21:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:35:14]wFMCommunicate OK [21:35:14]CreateOFDProtocolMessage done [21:35:14]OFDSenderStorePacket 139941 [21:35:14]StoreOFDPacket docnum=139941 [21:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 3C 9C 08 01 16 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 9D 01 00 00 F4 03 04 00 10 0C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 22 02 00 35 04 06 00 36 2A 25 77 BD 0F 2A 1C 4C 85 1B 70 EE B7 [21:35:14]CheckFolder [21:35:14]dirname=/storage/ofd_packets [21:35:14]CheckFolder done [21:35:14]ProducePacketName [21:35:14]name=ofd_packets/00139941 [21:35:14]NVStorageSaveData ofd_packets/00139941 [21:35:14]File name is /storage/ofd_packets/00139941 [21:35:14]Write 302 bytes [21:35:14]NVStorageSaveData done [21:35:14]OFDSenderStorePacket done [21:35:14]KKMCreateOFDPacket done [21:35:14]NVStorageSaveData kkm_last_timestamp [21:35:14]File name is /storage/kkm_last_timestamp [21:35:14]Write 4 bytes [21:35:14]NVStorageSaveData done [21:35:14]ExternCall_PrintAddStr [21:35:14]wPrintStart [21:35:14]Write to MH i2c: 01 00 00 DE 09 E7 [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 07 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 07 00 DE 09 00 00 00 00 00 FF 0F FC [21:35:14]RasterBufferAndPrint [21:35:14]line Счет N : (1)593796 [21:35:14]line ИНН: 02508201610067 [21:35:14]line Контрольно-Кассовый Чек [21:35:14]line ПРОДАЖА [21:35:14]line ТРК (МРК, ГНК) : 64 [21:35:14]line Товар: 2710194210 [21:35:14]line ДТ(л)-К-5 [21:35:14]line 11.820 * 76.20 [21:35:14]line = 900.68 [21:35:14]line НДС 12% НСП 1% [21:35:14]line > о реализуемом товаре [21:35:14]line ОКРУГЛЕНИЕ: -0.68 [21:35:14]line ИТОГО: 900.00 [21:35:14]line Внесено: 900.00 [21:35:14]line СДАЧА: 0.00 [21:35:14]line НСП 1% : 7.97 [21:35:14]line НДС 12% : 95.65 [21:35:14]line Наличными: 900.00 [21:35:14]line Безнал.: 0.00 [21:35:14]line Место: АЗС № 136 "Партнер Нефть" [21:35:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:35:14]line СНО: Общий режим [21:35:14]line Чек 413 20.08.2024 21:35 [21:35:14]line Смена: 453 ФФД: 1.0 [21:35:14]line ЗНМ: 0300000067 [21:35:14]line РНМ: 0000000000092569 [21:35:14]line Версия ККМ: 001 [21:35:14]line ФМ: 0000000000871776 [21:35:14]line ФД: 139941 [21:35:14]line ФПД: 59554645130511 [21:35:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T213512&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139941&fm=59554645130511&tin=02508201610067®Number=0000000000092569&sum=90000 [21:35:14]OFD Sender: Processing packet 139941 [packets to send 137, broken 136] [21:35:14]ProducePacketName [21:35:14]name=ofd_packets/00139941 [21:35:14]OFD Sender: To server: pG, [21:35:14]CommunicateWithHost lk.salyk.kg:30040 [21:35:14]ConnectInit lk.salyk.kg [21:35:14]written 0, free lines is 4095 [21:35:14]Connected sock=10 [21:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 3C 9C 08 01 16 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 9D 01 00 00 F4 03 04 00 10 0C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 22 02 00 35 04 06 00 36 2A 25 77 BD 0F 2A 1C 4C 85 1B 70 EE B7 [21:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 31 24 47 00 D8 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 22 02 00 F4 03 04 00 A3 B2 C4 66 B6 04 01 00 00 6C 81 79 3B 49 FB 99 C8 [21:35:14]CommunicateWithHost err = 0 [21:35:14]CheckOFDResponse [21:35:14]1017 (14) - 77093643461234 [21:35:14]1041 (16) - 0000000000871776 [21:35:14]1040 (4) - 139941 [21:35:14]1012 (4) - 20.08.2024 15:13 [21:35:14]1206 (1) - 0 [21:35:14]OFD Sender: Remove packet 139941 [21:35:14]ProducePacketName [21:35:14]name=ofd_packets/00139941 [21:35:14]NVStorageDeleteData [21:35:14]Write to MH i2c: 01 00 00 09 0A 13 [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 07 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 07 00 09 0A 00 00 00 00 00 C8 0C EE [21:35:14]RasterBufferAndPrint [21:35:14]line [21:35:14]line [21:35:14]line [21:35:14]line [21:35:14]line [21:35:14]written 0, free lines is 3278 [21:35:14]MH_Cut [21:35:14]Write to MH i2c: D1 01 00 10 0A 01 EC [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: D1 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: D1 01 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: D1 01 00 10 0A 00 EB [21:35:14]Write to MH i2c: 01 00 00 11 0A 1B [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:15]OFD Sender: No OFD packet to send [21:35:15]*** Cut start [21:35:15]*** Partial cut [21:35:15]*** CUTSNS_PIN = 1 [21:35:15]*** CUTSNS_PIN = 0 [21:35:15]*** Brake cut motor [21:35:16]Read from MH i2c: 01 [21:35:16]MH_I2C_Read... [21:35:16]*** Stop cut motor [21:35:16]*** Cut end [21:35:16]Read from MH i2c: 01 07 00 [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: 01 07 00 11 0A 00 00 00 00 00 FF 0F 30 [21:35:16]process_action close_receipt done [21:35:16]requested_data is exist [21:35:16]produce_requested_data [21:35:16]requested_item fm.sn is exist - process it [21:35:16]wFMCommunicate request_size=4 [21:35:16]MH_SAM_APDU [21:35:16]CAPDU: 80 11 00 00 [21:35:16]Write to MH i2c: E2 08 00 12 0A 80 11 00 00 00 00 00 00 96 [21:35:16]Write i2c OK [21:35:16]MH_I2C_Read... [21:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:16]Read from MH i2c: E2 [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: E2 17 00 [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: E2 17 00 12 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [21:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:35:16]wFMCommunicate OK [21:35:16]requested_item fd.num is exist - process it [21:35:16]SAM_PROTO_GetFieldsCounters [21:35:16]wFMCommunicate request_size=4 [21:35:16]MH_SAM_APDU [21:35:16]CAPDU: 80 13 00 00 [21:35:16]Write to MH i2c: E2 08 00 13 0A 80 13 00 00 00 00 00 00 99 [21:35:16]Write i2c OK [21:35:16]MH_I2C_Read... [21:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:16]Read from MH i2c: E2 [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: E2 62 00 [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: E2 62 00 13 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 22 02 00 0E 04 04 00 C5 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 2D [21:35:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 22 02 00 0E 04 04 00 C5 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:35:16]wFMCommunicate OK [21:35:16]SAM_PROTO_GetFieldsCounters done [21:35:16]requested_item shift.num is exist - process it [21:35:16]requested_item shift.opened is exist - process it [21:35:16]req_shift_opened [21:35:16]FM_GetShiftState [21:35:16]SAM_PROTO_GetShiftState [21:35:16]wFMCommunicate request_size=4 [21:35:16]MH_SAM_APDU [21:35:16]CAPDU: 80 13 01 00 [21:35:16]Write to MH i2c: E2 08 00 14 0A 80 13 01 00 00 00 00 00 9B [21:35:16]Write i2c OK [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: E2 [21:35:16]MH_I2C_Read... [21:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:16]Read from MH i2c: E2 0E 00 [21:35:16]MH_I2C_Read... [21:35:16]Read from MH i2c: E2 0E 00 14 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2C [21:35:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:35:16]wFMCommunicate OK [21:35:16]SAM_PROTO_GetShiftState done [21:35:16]FM_GetShiftState done [21:35:16]req_shift_opened done [21:35:16]requested_item shift.open_date is exist - process it [21:35:16]req_shift_open_date [21:35:16]req_shift_open_date done [21:35:16]produce_requested_data done [21:35:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139941,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:35:16]process_action_free close_receipt [21:35:16]json_value_free [21:35:16]json_value_free done [21:35:16]process_json_proto returns [21:35:16]Send response to host [21:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139941,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:35:16]free response buf [21:35:16]execute_script done [21:35:16]execute_script returns [21:35:16]free content buf [21:35:16]Sock 7.Close socket [21:35:16]Sock 7.Thread stoped [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:26]accept exits with 9 [21:39:26]New connection [21:39:26]New thread 3066908004 created [21:39:26]Thread 3066764644 joined [21:39:26]Waiting for new connection... [21:39:26] Sock 9.Parse request [21:39:26]Sock 9.Check first char [21:39:26]Sock 9.First char is OK [21:39:26]request: POST /json_proto HTTP/1.0 [21:39:26]Method: POST [21:39:26]URL: /json_proto [21:39:26]Method is POST - this is cgi request [21:39:26]url: /json_proto [21:39:26]query_string will be loaded in cgi processing [21:39:26]execute_cgi json_proto POST (null) [21:39:26]execute_cgi path=json_proto method=POST [21:39:26]POST find Content-Length [21:39:26]Host: 172.17.45.67:8080 [21:39:26]Content-Length: 677 [21:39:26]Content-Type: application/json [21:39:26] [21:39:26]POST finish read [21:39:26]Found Content-Length = 677 [21:39:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:26]execute_script... [21: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)593797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:26]POST & json_proto [21:39:26]process_json_proto [21:39:26]json parsed OK: [21:39:26]protocol is kg_v1.0 [21:39:26]action value=close_receipt [21:39:26]process_action close_receipt [21:39:26]cmd_close_receipt [21:39:26]MH_GetDate [21:39:26]Write to MH i2c: F0 00 00 15 0A 0E [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: F0 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: F0 09 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: F0 09 00 15 0A 00 0E 0D C5 66 5F 7F 2B 66 CC [21:39:26]GetLastDocTimeStamp 1724189712 [21:39:26]current date 1724189966 [21:39:26]FM_GetShiftState [21:39:26]SAM_PROTO_GetShiftState [21:39:26]wFMCommunicate request_size=4 [21:39:26]MH_SAM_APDU [21:39:26]CAPDU: 80 13 01 00 [21:39:26]Write to MH i2c: E2 08 00 16 0A 80 13 01 00 00 00 00 00 9D [21:39:26]Write i2c OK [21:39:26]MH_I2C_Read... [21:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:26]Read from MH i2c: E2 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 0E 00 [21:39:26]MH_I2C_Read... [21:39:26]Read from MH i2c: E2 0E 00 16 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2E [21:39:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:39:26]wFMCommunicate OK [21:39:26]SAM_PROTO_GetShiftState done [21:39:26]FM_GetShiftState done [21:39:26]opened in 1724113785 [21:39:26]opened+sec_in_day 1724200185 [21:39:26]quantity*price = 60003 [21:39:26]sum+1 = 60004 [21:39:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 414 20.08.2024 21:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139942 ФПД: 136087170941063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T213926&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139942&fm=136087170941063&tin=02508201610067®Number=0000000000092569&sum=60000 [21:39:27]StoreToDocumentArchive [21:39:27]shift 453 fd 139942 [21:39:27]save to /storage/0453/doc_00139942 [21:39:27]save last doc name /storage/0453/doc_00139942 to /storage/kkm_last_doc_name [21:39:27]save OK [21:39:27]Clear old archive folders... [21:39:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:27]tlvbuf is 00A7C940 [21:39:27]SAM_PROTO_ClearQueue [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 09 00 00 [21:39:27]Write to MH i2c: E2 08 00 23 0A 80 09 00 00 00 00 00 00 9F [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 03 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 03 00 23 0A 00 90 00 A1 [21:39:27]RAPDU: 90 00 [21:39:27]wFMCommunicate OK [21:39:27]SAM_PROTO_ClearQueue done [21:39:27]KKMCreateOFDPacket [21:39:27]OFDProtocolAddRootSTLVToBuf [21:39:27]FM_MakeSignedData [21:39:27]FM_MakeSignedData [21:39:27]SAM_PROTO_SignData [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 0D 01 02 [21:39:27]Write to MH i2c: E2 08 00 24 0A 80 0D 01 02 00 00 00 00 A7 [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 03 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [21:39:27]RAPDU: 90 00 [21:39:27]wFMCommunicate OK [21:39:27]wFMCommunicate request_size=255 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 0E 0D C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 22 02 00 35 04 06 00 7B [21:39:27]Write to MH i2c: E2 02 01 25 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 0E 0D C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 22 02 00 35 04 06 00 7B 00 00 E7 [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 03 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 03 00 25 0A 00 90 00 A3 [21:39:27]RAPDU: 90 00 [21:39:27]wFMCommunicate OK [21:39:27]wFMCommunicate request_size=10 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 0D 02 02 05 C5 43 7B 80 87 [21:39:27]Write to MH i2c: E2 0D 00 26 0A 80 0D 02 02 05 00 C5 43 7B 80 87 00 00 3E [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 03 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 03 00 26 0A 00 90 00 A4 [21:39:27]RAPDU: 90 00 [21:39:27]wFMCommunicate OK [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 0D 03 02 [21:39:27]Write to MH i2c: E2 08 00 27 0A 80 0D 03 02 00 00 00 00 AC [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 0B 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 0B 00 27 0A 00 1F 9A 4A 88 FA DC 87 1F 90 00 B4 [21:39:27]RAPDU: 1F 9A 4A 88 FA DC 87 1F 90 00 [21:39:27]wFMCommunicate OK [21:39:27]SAM_PROTO_SignData done [21:39:27]FM_MakeSignedData done [21:39:27]CreateOFDProtocolMessage [21:39:27]wFMCommunicate request_size=4 [21:39:27]MH_SAM_APDU [21:39:27]CAPDU: 80 11 00 00 [21:39:27]Write to MH i2c: E2 08 00 28 0A 80 11 00 00 00 00 00 00 AC [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:27]Read from MH i2c: E2 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 17 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: E2 17 00 28 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 03 [21:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:39:27]wFMCommunicate OK [21:39:27]CreateOFDProtocolMessage done [21:39:27]OFDSenderStorePacket 139942 [21:39:27]StoreOFDPacket docnum=139942 [21:39:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D8 E6 07 01 B5 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 0E 0D C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 22 02 00 35 04 06 00 7B C5 43 7B 80 87 1F 9A 4A 88 FA DC 87 1F [21:39:27]CheckFolder [21:39:27]dirname=/storage/ofd_packets [21:39:27]CheckFolder done [21:39:27]ProducePacketName [21:39:27]name=ofd_packets/00139942 [21:39:27]NVStorageSaveData ofd_packets/00139942 [21:39:27]File name is /storage/ofd_packets/00139942 [21:39:27]Write 301 bytes [21:39:27]NVStorageSaveData done [21:39:27]OFDSenderStorePacket done [21:39:27]KKMCreateOFDPacket done [21:39:27]NVStorageSaveData kkm_last_timestamp [21:39:27]File name is /storage/kkm_last_timestamp [21:39:27]Write 4 bytes [21:39:27]NVStorageSaveData done [21:39:27]ExternCall_PrintAddStr [21:39:27]wPrintStart [21:39:27]Write to MH i2c: 01 00 00 29 0A 33 [21:39:27]Write i2c OK [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: 01 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: 01 07 00 [21:39:27]MH_I2C_Read... [21:39:27]Read from MH i2c: 01 07 00 29 0A 00 00 00 00 00 FF 0F 48 [21:39:27]RasterBufferAndPrint [21:39:27]line Счет N : (1)593797 [21:39:27]line ИНН: 02508201610067 [21:39:27]line Контрольно-Кассовый Чек [21:39:27]line ПРОДАЖА [21:39:27]line ТРК (МРК, ГНК) : 42 [21:39:27]line Товар: 2710124130 [21:39:27]line Аи-92-К-5 [21:39:27]line 8.850 * 67.80 [21:39:27]line = 600.03 [21:39:27]line НДС 12% НСП 1% [21:39:27]line > о реализуемом товаре [21:39:27]line ОКРУГЛЕНИЕ: -0.03 [21:39:27]line ИТОГО: 600.00 [21:39:27]line Внесено: 600.00 [21:39:27]line СДАЧА: 0.00 [21:39:27]line НСП 1% : 5.31 [21:39:27]line НДС 12% : 63.72 [21:39:27]line Наличными: 600.00 [21:39:27]line Безнал.: 0.00 [21:39:27]line Место: АЗС № 136 "Партнер Нефть" [21:39:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:39:27]line СНО: Общий режим [21:39:27]line Чек 414 20.08.2024 21:39 [21:39:27]line Смена: 453 ФФД: 1.0 [21:39:27]line ЗНМ: 0300000067 [21:39:27]line РНМ: 0000000000092569 [21:39:27]line Версия ККМ: 001 [21:39:27]line ФМ: 0000000000871776 [21:39:27]line ФД: 139942 [21:39:27]line ФПД: 136087170941063 [21:39:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T213926&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139942&fm=136087170941063&tin=02508201610067®Number=0000000000092569&sum=60000 [21:39:28]OFD Sender: Processing packet 139942 [packets to send 137, broken 136] [21:39:28]ProducePacketName [21:39:28]name=ofd_packets/00139942 [21:39:28]OFD Sender: To server: pG, [21:39:28]CommunicateWithHost lk.salyk.kg:30040 [21:39:28]ConnectInit lk.salyk.kg [21:39:28]written 0, free lines is 4095 [21:39:28]Connected sock=10 [21:39:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D8 E6 07 01 B5 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 0E 0D C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 22 02 00 35 04 06 00 7B C5 43 7B 80 87 1F 9A 4A 88 FA DC 87 1F [21:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C7 1B 47 00 36 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 22 02 00 F4 03 04 00 A1 B3 C4 66 B6 04 01 00 00 5A A8 86 38 34 24 59 51 [21:39:28]CommunicateWithHost err = 0 [21:39:28]CheckOFDResponse [21:39:28]1017 (14) - 77093643461234 [21:39:28]1041 (16) - 0000000000871776 [21:39:28]1040 (4) - 139942 [21:39:28]1012 (4) - 20.08.2024 15:17 [21:39:28]1206 (1) - 0 [21:39:28]OFD Sender: Remove packet 139942 [21:39:28]ProducePacketName [21:39:28]name=ofd_packets/00139942 [21:39:28]NVStorageDeleteData [21:39:28]Write to MH i2c: 01 00 00 54 0A 5E [21:39:28]Write i2c OK [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: 01 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: 01 07 00 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: 01 07 00 54 0A 00 00 00 00 00 C8 0C 39 [21:39:28]RasterBufferAndPrint [21:39:28]line [21:39:28]line [21:39:28]line [21:39:28]line [21:39:28]line [21:39:28]written 0, free lines is 3279 [21:39:28]MH_Cut [21:39:28]Write to MH i2c: D1 01 00 5B 0A 01 37 [21:39:28]Write i2c OK [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: D1 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: D1 01 00 [21:39:28]MH_I2C_Read... [21:39:28]Read from MH i2c: D1 01 00 5B 0A 00 36 [21:39:28]Write to MH i2c: 01 00 00 5C 0A 66 [21:39:28]Write i2c OK [21:39:28]MH_I2C_Read... [21:39:29]OFD Sender: No OFD packet to send [21:39:29]*** Cut start [21:39:29]*** Partial cut [21:39:29]*** CUTSNS_PIN = 1 [21:39:29]*** CUTSNS_PIN = 0 [21:39:29]*** Brake cut motor [21:39:29]Read from MH i2c: 01 [21:39:29]MH_I2C_Read... [21:39:29]*** Stop cut motor [21:39:29]*** Cut end [21:39:29]Read from MH i2c: 01 07 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 FF 0F 7B [21:39:29]process_action close_receipt done [21:39:29]requested_data is exist [21:39:29]produce_requested_data [21:39:29]requested_item fm.sn is exist - process it [21:39:29]wFMCommunicate request_size=4 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 11 00 00 [21:39:29]Write to MH i2c: E2 08 00 5D 0A 80 11 00 00 00 00 00 00 E1 [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:29]Read from MH i2c: E2 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 17 00 [21:39:29]MH_I2C_Read... [21:39:29]Read from MH i2c: E2 17 00 5D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 38 [21:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:39:29]wFMCommunicate OK [21:39:29]requested_item fd.num is exist - process it [21:39:29]SAM_PROTO_GetFieldsCounters [21:39:29]wFMCommunicate request_size=4 [21:39:29]MH_SAM_APDU [21:39:29]CAPDU: 80 13 00 00 [21:39:29]Write to MH i2c: E2 08 00 5E 0A 80 13 00 00 00 00 00 00 E4 [21:39:29]Write i2c OK [21:39:29]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 62 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 62 00 5E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 22 02 00 0E 04 04 00 C5 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 7C [21:39:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 22 02 00 0E 04 04 00 C5 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:39:30]wFMCommunicate OK [21:39:30]SAM_PROTO_GetFieldsCounters done [21:39:30]requested_item shift.num is exist - process it [21:39:30]requested_item shift.opened is exist - process it [21:39:30]req_shift_opened [21:39:30]FM_GetShiftState [21:39:30]SAM_PROTO_GetShiftState [21:39:30]wFMCommunicate request_size=4 [21:39:30]MH_SAM_APDU [21:39:30]CAPDU: 80 13 01 00 [21:39:30]Write to MH i2c: E2 08 00 5F 0A 80 13 01 00 00 00 00 00 E6 [21:39:30]Write i2c OK [21:39:30]MH_I2C_Read... [21:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:30]Read from MH i2c: E2 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 0E 00 [21:39:30]MH_I2C_Read... [21:39:30]Read from MH i2c: E2 0E 00 5F 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 77 [21:39:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:39:30]wFMCommunicate OK [21:39:30]SAM_PROTO_GetShiftState done [21:39:30]FM_GetShiftState done [21:39:30]req_shift_opened done [21:39:30]requested_item shift.open_date is exist - process it [21:39:30]req_shift_open_date [21:39:30]req_shift_open_date done [21:39:30]produce_requested_data done [21:39:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139942,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:39:30]process_action_free close_receipt [21:39:30]json_value_free [21:39:30]json_value_free done [21:39:30]process_json_proto returns [21:39:30]Send response to host [21:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139942,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:39:30]free response buf [21:39:30]execute_script done [21:39:30]execute_script returns [21:39:30]free content buf [21:39:30]Sock 9.Close socket [21:39:30]Sock 9.Thread stoped [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:50]accept exits with 7 [21:43:50]New connection [21:43:50]New thread 3066764644 created [21:43:50]Thread 3066908004 joined [21:43:50]Waiting for new connection... [21:43:50] Sock 7.Parse request [21:43:50]Sock 7.Check first char [21:43:50]Sock 7.First char is OK [21:43:50]request: POST /json_proto HTTP/1.0 [21:43:50]Method: POST [21:43:50]URL: /json_proto [21:43:50]Method is POST - this is cgi request [21:43:50]url: /json_proto [21:43:50]query_string will be loaded in cgi processing [21:43:50]execute_cgi json_proto POST (null) [21:43:50]execute_cgi path=json_proto method=POST [21:43:50]POST find Content-Length [21:43:50]Host: 172.17.45.67:8080 [21:43:50]Content-Length: 797 [21:43:50]Content-Type: application/json [21:43:50] [21:43:50]POST finish read [21:43:50]Found Content-Length = 797 [21:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 42.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:50]execute_script... [21:43:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 42.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\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:50]POST & json_proto [21:43:50]process_json_proto [21:43:50]json parsed OK: [21:43:50]protocol is kg_v1.0 [21:43:50]action value=close_receipt [21:43:50]process_action close_receipt [21:43:50]cmd_close_receipt [21:43:50]MH_GetDate [21:43:50]Write to MH i2c: F0 00 00 60 0A 59 [21:43:50]Write i2c OK [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: F0 [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: F0 09 00 [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: F0 09 00 60 0A 00 16 0E C5 66 5F 7F 2B 66 20 [21:43:50]GetLastDocTimeStamp 1724189966 [21:43:50]current date 1724190230 [21:43:50]FM_GetShiftState [21:43:50]SAM_PROTO_GetShiftState [21:43:50]wFMCommunicate request_size=4 [21:43:50]MH_SAM_APDU [21:43:50]CAPDU: 80 13 01 00 [21:43:50]Write to MH i2c: E2 08 00 61 0A 80 13 01 00 00 00 00 00 E8 [21:43:50]Write i2c OK [21:43:50]MH_I2C_Read... [21:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:50]Read from MH i2c: E2 [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: E2 0E 00 [21:43:50]MH_I2C_Read... [21:43:50]Read from MH i2c: E2 0E 00 61 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 79 [21:43:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:43:50]wFMCommunicate OK [21:43:50]SAM_PROTO_GetShiftState done [21:43:50]FM_GetShiftState done [21:43:50]opened in 1724113785 [21:43:50]opened+sec_in_day 1724200185 [21:43:50]quantity*price = 0 [21:43:50]sum+1 = 1 [21:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 415 20.08.2024 21:43 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139943 ФПД: 140824829479553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T214351&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139943&fm=140824829479553&tin=02508201610067®Number=0000000000092569&sum=0 [21:43:51]StoreToDocumentArchive [21:43:51]shift 453 fd 139943 [21:43:51]save to /storage/0453/doc_00139943 [21:43:51]save last doc name /storage/0453/doc_00139943 to /storage/kkm_last_doc_name [21:43:51]save OK [21:43:51]Clear old archive folders... [21:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:43:51]tlvbuf is 00A75C30 [21:43:51]SAM_PROTO_ClearQueue [21:43:51]wFMCommunicate request_size=4 [21:43:51]MH_SAM_APDU [21:43:51]CAPDU: 80 09 00 00 [21:43:51]Write to MH i2c: E2 08 00 6E 0A 80 09 00 00 00 00 00 00 EA [21:43:51]Write i2c OK [21:43:51]MH_I2C_Read... [21:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:51]Read from MH i2c: E2 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 03 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [21:43:51]RAPDU: 90 00 [21:43:51]wFMCommunicate OK [21:43:51]SAM_PROTO_ClearQueue done [21:43:51]KKMCreateOFDPacket [21:43:51]OFDProtocolAddRootSTLVToBuf [21:43:51]FM_MakeSignedData [21:43:51]FM_MakeSignedData [21:43:51]SAM_PROTO_SignData [21:43:51]wFMCommunicate request_size=4 [21:43:51]MH_SAM_APDU [21:43:51]CAPDU: 80 0D 01 02 [21:43:51]Write to MH i2c: E2 08 00 6F 0A 80 0D 01 02 00 00 00 00 F2 [21:43:51]Write i2c OK [21:43:51]MH_I2C_Read... [21:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:51]Read from MH i2c: E2 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 03 00 [21:43:51]MH_I2C_Read... [21:43:51]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [21:43:51]RAPDU: 90 00 [21:43:51]wFMCommunicate OK [21:43:51]wFMCommunicate request_size=255 [21:43:51]MH_SAM_APDU [21:43:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 17 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 22 02 00 35 04 06 00 [21:43:51]Write to MH i2c: E2 02 01 70 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 17 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 22 02 00 35 04 06 00 00 00 76 [21:43:51]Write i2c OK [21:43:51]MH_I2C_Read... [21:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:52]Read from MH i2c: E2 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: E2 03 00 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: E2 03 00 70 0A 00 90 00 EE [21:43:52]RAPDU: 90 00 [21:43:52]wFMCommunicate OK [21:43:52]wFMCommunicate request_size=11 [21:43:52]MH_SAM_APDU [21:43:52]CAPDU: 80 0D 02 02 06 80 14 55 EF CA 81 [21:43:52]Write to MH i2c: E2 0E 00 71 0A 80 0D 02 02 06 00 80 14 55 EF CA 81 00 00 24 [21:43:52]Write i2c OK [21:43:52]MH_I2C_Read... [21:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:52]Read from MH i2c: E2 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: E2 03 00 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: E2 03 00 71 0A 00 90 00 EF [21:43:52]RAPDU: 90 00 [21:43:52]wFMCommunicate OK [21:43:52]wFMCommunicate request_size=4 [21:43:52]MH_SAM_APDU [21:43:52]CAPDU: 80 0D 03 02 [21:43:52]Write to MH i2c: E2 08 00 72 0A 80 0D 03 02 00 00 00 00 F7 [21:43:52]Write i2c OK [21:43:52]MH_I2C_Read... [21:43:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:52]Read from MH i2c: E2 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: E2 0B 00 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: E2 0B 00 72 0A 00 88 DA 69 C8 11 AF 97 70 90 00 52 [21:43:52]RAPDU: 88 DA 69 C8 11 AF 97 70 90 00 [21:43:52]wFMCommunicate OK [21:43:52]SAM_PROTO_SignData done [21:43:52]FM_MakeSignedData done [21:43:52]CreateOFDProtocolMessage [21:43:52]wFMCommunicate request_size=4 [21:43:52]MH_SAM_APDU [21:43:52]CAPDU: 80 11 00 00 [21:43:52]Write to MH i2c: E2 08 00 73 0A 80 11 00 00 00 00 00 00 F7 [21:43:52]Write i2c OK [21:43:52]MH_I2C_Read... [21:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:52]Read from MH i2c: E2 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: E2 17 00 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: E2 17 00 73 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4E [21:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:43:52]wFMCommunicate OK [21:43:52]CreateOFDProtocolMessage done [21:43:52]OFDSenderStorePacket 139943 [21:43:52]StoreOFDPacket docnum=139943 [21:43:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 D5 7F 08 01 B9 BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 17 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 22 02 00 35 04 06 00 80 14 55 EF CA 81 88 DA 69 C8 11 AF 97 70 [21:43:52]CheckFolder [21:43:52]dirname=/storage/ofd_packets [21:43:52]CheckFolder done [21:43:52]ProducePacketName [21:43:52]name=ofd_packets/00139943 [21:43:52]NVStorageSaveData ofd_packets/00139943 [21:43:52]File name is /storage/ofd_packets/00139943 [21:43:52]Write 302 bytes [21:43:52]NVStorageSaveData done [21:43:52]OFDSenderStorePacket done [21:43:52]KKMCreateOFDPacket done [21:43:52]NVStorageSaveData kkm_last_timestamp [21:43:52]File name is /storage/kkm_last_timestamp [21:43:52]Write 4 bytes [21:43:52]NVStorageSaveData done [21:43:52]ExternCall_PrintAddStr [21:43:52]wPrintStart [21:43:52]Write to MH i2c: 01 00 00 74 0A 7E [21:43:52]Write i2c OK [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: 01 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: 01 07 00 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: 01 07 00 74 0A 00 00 00 00 00 FF 0F 93 [21:43:52]RasterBufferAndPrint [21:43:52]line Счет N : (1)593798 [21:43:52]line ИНН: 02508201610067 [21:43:52]line Контрольно-Кассовый Чек [21:43:52]line ПРОДАЖА [21:43:52]line ТРК (МРК, ГНК) : 64 [21:43:52]line Товар: 2710194210 [21:43:52]line ДТ(л)-К-5 [21:43:52]line 42.000 * 0.00 [21:43:52]line = 0.00 [21:43:52]line НДС 12% НСП 1% [21:43:52]line > о реализуемом товаре [21:43:52]line ИТОГО: 0.00 [21:43:52]line НСП 1% : 0.00 [21:43:52]line НДС 12% : 0.00 [21:43:52]line Наличными: 0.00 [21:43:52]line Безнал.: 0.00 [21:43:52]line Место: АЗС № 136 "Партнер Нефть" [21:43:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:43:52]line СНО: Общий режим [21:43:52]line Чек 415 20.08.2024 21:43 [21:43:52]line Смена: 453 ФФД: 1.0 [21:43:52]line ЗНМ: 0300000067 [21:43:52]line РНМ: 0000000000092569 [21:43:52]line Версия ККМ: 001 [21:43:52]line Талоны: Топливная Карта [21:43:52]line 99761 [21:43:52]line ФМ: 0000000000871776 [21:43:52]line ФД: 139943 [21:43:52]line ФПД: 140824829479553 [21:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T214351&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139943&fm=140824829479553&tin=02508201610067®Number=0000000000092569&sum=0 [21:43:52]written 0, free lines is 4095 [21:43:52]OFD Sender: Processing packet 139943 [packets to send 137, broken 136] [21:43:52]ProducePacketName [21:43:52]name=ofd_packets/00139943 [21:43:52]OFD Sender: To server: pG, [21:43:52]CommunicateWithHost lk.salyk.kg:30040 [21:43:52]ConnectInit lk.salyk.kg [21:43:52]Connected sock=11 [21:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 D5 7F 08 01 B9 BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 17 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 22 02 00 35 04 06 00 80 14 55 EF CA 81 88 DA 69 C8 11 AF 97 70 [21:43:52]Write to MH i2c: 01 00 00 9E 0A A8 [21:43:52]Write i2c OK [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: 01 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: 01 07 00 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 E2 0C 9D [21:43:52]RasterBufferAndPrint [21:43:52]line [21:43:52]line [21:43:52]line [21:43:52]line [21:43:52]line [21:43:52]written 0, free lines is 3302 [21:43:52]MH_Cut [21:43:52]Write to MH i2c: D1 01 00 A5 0A 01 81 [21:43:52]Write i2c OK [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: D1 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: D1 01 00 [21:43:52]MH_I2C_Read... [21:43:52]Read from MH i2c: D1 01 00 A5 0A 00 80 [21:43:52]Write to MH i2c: 01 00 00 A6 0A B0 [21:43:52]Write i2c OK [21:43:52]MH_I2C_Read... [21:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AF 85 47 00 2D 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 22 02 00 F4 03 04 00 A9 B4 C4 66 B6 04 01 00 00 33 D1 4B E8 FF AD D0 2B [21:43:52]CommunicateWithHost err = 0 [21:43:52]CheckOFDResponse [21:43:52]1017 (14) - 77093643461234 [21:43:52]1041 (16) - 0000000000871776 [21:43:52]1040 (4) - 139943 [21:43:52]1012 (4) - 20.08.2024 15:22 [21:43:52]1206 (1) - 0 [21:43:52]OFD Sender: Remove packet 139943 [21:43:52]ProducePacketName [21:43:52]name=ofd_packets/00139943 [21:43:52]NVStorageDeleteData [21:43:53]OFD Sender: No OFD packet to send [21:43:53]*** Cut start [21:43:53]*** Partial cut [21:43:53]*** CUTSNS_PIN = 1 [21:43:53]*** CUTSNS_PIN = 0 [21:43:53]*** Brake cut motor [21:43:53]Read from MH i2c: 01 [21:43:53]MH_I2C_Read... [21:43:53]*** Stop cut motor [21:43:53]*** Cut end [21:43:53]Read from MH i2c: 01 07 00 [21:43:53]MH_I2C_Read... [21:43:53]Read from MH i2c: 01 07 00 A6 0A 00 00 00 00 00 FF 0F C5 [21:43:53]process_action close_receipt done [21:43:53]requested_data is exist [21:43:53]produce_requested_data [21:43:53]requested_item fm.sn is exist - process it [21:43:53]wFMCommunicate request_size=4 [21:43:53]MH_SAM_APDU [21:43:53]CAPDU: 80 11 00 00 [21:43:53]Write to MH i2c: E2 08 00 A7 0A 80 11 00 00 00 00 00 00 2B [21:43:53]Write i2c OK [21:43:53]MH_I2C_Read... [21:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:53]Read from MH i2c: E2 [21:43:53]MH_I2C_Read... [21:43:53]Read from MH i2c: E2 17 00 [21:43:53]MH_I2C_Read... [21:43:53]Read from MH i2c: E2 17 00 A7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 82 [21:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:43:53]wFMCommunicate OK [21:43:53]requested_item fd.num is exist - process it [21:43:53]SAM_PROTO_GetFieldsCounters [21:43:53]wFMCommunicate request_size=4 [21:43:53]MH_SAM_APDU [21:43:53]CAPDU: 80 13 00 00 [21:43:53]Write to MH i2c: E2 08 00 A8 0A 80 13 00 00 00 00 00 00 2E [21:43:53]Write i2c OK [21:43:53]MH_I2C_Read... [21:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:54]Read from MH i2c: E2 [21:43:54]MH_I2C_Read... [21:43:54]Read from MH i2c: E2 62 00 [21:43:54]MH_I2C_Read... [21:43:54]Read from MH i2c: E2 62 00 A8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 22 02 00 0E 04 04 00 C5 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 CA [21:43:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 22 02 00 0E 04 04 00 C5 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:43:54]wFMCommunicate OK [21:43:54]SAM_PROTO_GetFieldsCounters done [21:43:54]requested_item shift.num is exist - process it [21:43:54]requested_item shift.opened is exist - process it [21:43:54]req_shift_opened [21:43:54]FM_GetShiftState [21:43:54]SAM_PROTO_GetShiftState [21:43:54]wFMCommunicate request_size=4 [21:43:54]MH_SAM_APDU [21:43:54]CAPDU: 80 13 01 00 [21:43:54]Write to MH i2c: E2 08 00 A9 0A 80 13 01 00 00 00 00 00 30 [21:43:54]Write i2c OK [21:43:54]MH_I2C_Read... [21:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:54]Read from MH i2c: E2 [21:43:54]MH_I2C_Read... [21:43:54]Read from MH i2c: E2 0E 00 [21:43:54]MH_I2C_Read... [21:43:54]Read from MH i2c: E2 0E 00 A9 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C1 [21:43:54]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:43:54]wFMCommunicate OK [21:43:54]SAM_PROTO_GetShiftState done [21:43:54]FM_GetShiftState done [21:43:54]req_shift_opened done [21:43:54]requested_item shift.open_date is exist - process it [21:43:54]req_shift_open_date [21:43:54]req_shift_open_date done [21:43:54]produce_requested_data done [21:43:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139943,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:43:54]process_action_free close_receipt [21:43:54]json_value_free [21:43:54]json_value_free done [21:43:54]process_json_proto returns [21:43:54]Send response to host [21:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139943,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:43:54]free response buf [21:43:54]execute_script done [21:43:54]execute_script returns [21:43:54]free content buf [21:43:54]Sock 7.Close socket [21:43:54]Sock 7.Thread stoped [21:43:54]accept exits with 9 [21:43:54]New connection [21:43:54]New thread 3066908004 created [21:43:54]Thread 3066764644 joined [21:43:54]Waiting for new connection... [21:43:54] Sock 9.Parse request [21:43:54]Sock 9.Check first char [21:43:54]Sock 9.First char is OK [21:43:54]request: POST /json_proto HTTP/1.0 [21:43:54]Method: POST [21:43:54]URL: /json_proto [21:43:54]Method is POST - this is cgi request [21:43:54]url: /json_proto [21:43:54]query_string will be loaded in cgi processing [21:43:54]execute_cgi json_proto POST (null) [21:43:54]execute_cgi path=json_proto method=POST [21:43:54]POST find Content-Length [21:43:54]Host: 172.17.45.67:8080 [21:43:54]Content-Length: 797 [21:43:54]Content-Type: application/json [21:43:54] [21:43:54]POST finish read [21:43:54]Found Content-Length = 797 [21:43:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:54]execute_script... [21:43: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)593799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:54]POST & json_proto [21:43:54]process_json_proto [21:43:54]json parsed OK: [21:43:54]protocol is kg_v1.0 [21:43:54]action value=close_receipt [21:43:54]process_action close_receipt [21:43:54]cmd_close_receipt [21:43:54]MH_GetDate [21:43:54]Write to MH i2c: F0 00 00 AA 0A A3 [21:43:54]Write i2c OK [21:43:54]MH_I2C_Read... [21:43:54]Read from MH i2c: F0 [21:43:54]MH_I2C_Read... [21:43:54]Read from MH i2c: F0 09 00 [21:43:54]MH_I2C_Read... [21:43:54]Read from MH i2c: F0 09 00 AA 0A 00 1A 0E C5 66 5F 7F 2B 66 6E [21:43:54]GetLastDocTimeStamp 1724190231 [21:43:54]current date 1724190234 [21:43:54]FM_GetShiftState [21:43:54]SAM_PROTO_GetShiftState [21:43:54]wFMCommunicate request_size=4 [21:43:54]MH_SAM_APDU [21:43:54]CAPDU: 80 13 01 00 [21:43:54]Write to MH i2c: E2 08 00 AB 0A 80 13 01 00 00 00 00 00 32 [21:43:54]Write i2c OK [21:43:54]MH_I2C_Read... [21:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:54]Read from MH i2c: E2 [21:43:54]MH_I2C_Read... [21:43:54]Read from MH i2c: E2 0E 00 [21:43:54]MH_I2C_Read... [21:43:54]Read from MH i2c: E2 0E 00 AB 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C3 [21:43:54]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:43:54]wFMCommunicate OK [21:43:54]SAM_PROTO_GetShiftState done [21:43:54]FM_GetShiftState done [21:43:54]opened in 1724113785 [21:43:54]opened+sec_in_day 1724200185 [21:43:54]quantity*price = 0 [21:43:54]sum+1 = 1 [21:43:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 416 20.08.2024 21:43 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139944 ФПД: 12772740830963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T214355&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139944&fm=12772740830963&tin=02508201610067®Number=0000000000092569&sum=0 [21:43:55]StoreToDocumentArchive [21:43:55]shift 453 fd 139944 [21:43:55]save to /storage/0453/doc_00139944 [21:43:55]save last doc name /storage/0453/doc_00139944 to /storage/kkm_last_doc_name [21:43:55]save OK [21:43:55]Clear old archive folders... [21:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:43:55]tlvbuf is 00A2E0A0 [21:43:55]SAM_PROTO_ClearQueue [21:43:55]wFMCommunicate request_size=4 [21:43:55]MH_SAM_APDU [21:43:55]CAPDU: 80 09 00 00 [21:43:55]Write to MH i2c: E2 08 00 B8 0A 80 09 00 00 00 00 00 00 34 [21:43:55]Write i2c OK [21:43:55]MH_I2C_Read... [21:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:55]Read from MH i2c: E2 [21:43:55]MH_I2C_Read... [21:43:55]Read from MH i2c: E2 03 00 [21:43:55]MH_I2C_Read... [21:43:55]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [21:43:55]RAPDU: 90 00 [21:43:55]wFMCommunicate OK [21:43:55]SAM_PROTO_ClearQueue done [21:43:55]KKMCreateOFDPacket [21:43:55]OFDProtocolAddRootSTLVToBuf [21:43:55]FM_MakeSignedData [21:43:55]FM_MakeSignedData [21:43:55]SAM_PROTO_SignData [21:43:55]wFMCommunicate request_size=4 [21:43:55]MH_SAM_APDU [21:43:55]CAPDU: 80 0D 01 02 [21:43:55]Write to MH i2c: E2 08 00 B9 0A 80 0D 01 02 00 00 00 00 3C [21:43:55]Write i2c OK [21:43:55]MH_I2C_Read... [21:43:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:55]Read from MH i2c: E2 [21:43:55]MH_I2C_Read... [21:43:55]Read from MH i2c: E2 03 00 [21:43:55]MH_I2C_Read... [21:43:55]Read from MH i2c: E2 03 00 B9 0A 00 90 00 37 [21:43:55]RAPDU: 90 00 [21:43:55]wFMCommunicate OK [21:43:55]wFMCommunicate request_size=255 [21:43:55]MH_SAM_APDU [21:43:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A0 01 00 00 F4 03 04 00 1B 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 22 02 00 35 04 06 00 [21:43:55]Write to MH i2c: E2 02 01 BA 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A0 01 00 00 F4 03 04 00 1B 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 22 02 00 35 04 06 00 00 00 25 [21:43:55]Write i2c OK [21:43:55]MH_I2C_Read... [21:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:56]Read from MH i2c: E2 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 03 00 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 03 00 BA 0A 00 90 00 38 [21:43:56]RAPDU: 90 00 [21:43:56]wFMCommunicate OK [21:43:56]wFMCommunicate request_size=11 [21:43:56]MH_SAM_APDU [21:43:56]CAPDU: 80 0D 02 02 06 0B 9D E2 AE 16 F3 [21:43:56]Write to MH i2c: E2 0E 00 BB 0A 80 0D 02 02 06 00 0B 9D E2 AE 16 F3 00 00 8C [21:43:56]Write i2c OK [21:43:56]MH_I2C_Read... [21:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:56]Read from MH i2c: E2 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 03 00 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 03 00 BB 0A 00 90 00 39 [21:43:56]RAPDU: 90 00 [21:43:56]wFMCommunicate OK [21:43:56]wFMCommunicate request_size=4 [21:43:56]MH_SAM_APDU [21:43:56]CAPDU: 80 0D 03 02 [21:43:56]Write to MH i2c: E2 08 00 BC 0A 80 0D 03 02 00 00 00 00 41 [21:43:56]Write i2c OK [21:43:56]MH_I2C_Read... [21:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:56]Read from MH i2c: E2 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 0B 00 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 0B 00 BC 0A 00 16 A6 CC A1 46 43 EF D2 90 00 B5 [21:43:56]RAPDU: 16 A6 CC A1 46 43 EF D2 90 00 [21:43:56]wFMCommunicate OK [21:43:56]SAM_PROTO_SignData done [21:43:56]FM_MakeSignedData done [21:43:56]CreateOFDProtocolMessage [21:43:56]wFMCommunicate request_size=4 [21:43:56]MH_SAM_APDU [21:43:56]CAPDU: 80 11 00 00 [21:43:56]Write to MH i2c: E2 08 00 BD 0A 80 11 00 00 00 00 00 00 41 [21:43:56]Write i2c OK [21:43:56]MH_I2C_Read... [21:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:56]Read from MH i2c: E2 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 17 00 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: E2 17 00 BD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [21:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:43:56]wFMCommunicate OK [21:43:56]CreateOFDProtocolMessage done [21:43:56]OFDSenderStorePacket 139944 [21:43:56]StoreOFDPacket docnum=139944 [21:43:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 BD 30 08 01 71 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A0 01 00 00 F4 03 04 00 1B 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 22 02 00 35 04 06 00 0B 9D E2 AE 16 F3 16 A6 CC A1 46 43 EF D2 [21:43:56]CheckFolder [21:43:56]dirname=/storage/ofd_packets [21:43:56]CheckFolder done [21:43:56]ProducePacketName [21:43:56]name=ofd_packets/00139944 [21:43:56]NVStorageSaveData ofd_packets/00139944 [21:43:56]File name is /storage/ofd_packets/00139944 [21:43:56]Write 302 bytes [21:43:56]NVStorageSaveData done [21:43:56]OFDSenderStorePacket done [21:43:56]KKMCreateOFDPacket done [21:43:56]NVStorageSaveData kkm_last_timestamp [21:43:56]File name is /storage/kkm_last_timestamp [21:43:56]Write 4 bytes [21:43:56]NVStorageSaveData done [21:43:56]ExternCall_PrintAddStr [21:43:56]wPrintStart [21:43:56]Write to MH i2c: 01 00 00 BE 0A C8 [21:43:56]Write i2c OK [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: 01 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: 01 07 00 [21:43:56]MH_I2C_Read... [21:43:56]Read from MH i2c: 01 07 00 BE 0A 00 00 00 00 00 FF 0F DD [21:43:56]RasterBufferAndPrint [21:43:56]line Счет N : (1)593799 [21:43:56]line ИНН: 02508201610067 [21:43:56]line Контрольно-Кассовый Чек [21:43:56]line ПРОДАЖА [21:43:56]line ТРК (МРК, ГНК) : 54 [21:43:56]line Товар: 2710194210 [21:43:56]line ДТ(л)-К-5 [21:43:56]line 50.000 * 0.00 [21:43:56]line = 0.00 [21:43:56]line НДС 12% НСП 1% [21:43:56]line > о реализуемом товаре [21:43:56]line ИТОГО: 0.00 [21:43:56]line НСП 1% : 0.00 [21:43:56]line НДС 12% : 0.00 [21:43:56]line Наличными: 0.00 [21:43:56]line Безнал.: 0.00 [21:43:56]line Место: АЗС № 136 "Партнер Нефть" [21:43:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:43:56]line СНО: Общий режим [21:43:56]line Чек 416 20.08.2024 21:43 [21:43:56]line Смена: 453 ФФД: 1.0 [21:43:56]line ЗНМ: 0300000067 [21:43:56]line РНМ: 0000000000092569 [21:43:56]line Версия ККМ: 001 [21:43:56]line Талоны: Топливная Карта [21:43:56]line 99761 [21:43:56]line ФМ: 0000000000871776 [21:43:56]line ФД: 139944 [21:43:56]line ФПД: 12772740830963 [21:43:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T214355&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139944&fm=12772740830963&tin=02508201610067®Number=0000000000092569&sum=0 [21:43:56]OFD Sender: Processing packet 139944 [packets to send 137, broken 136] [21:43:56]ProducePacketName [21:43:56]name=ofd_packets/00139944 [21:43:56]OFD Sender: To server: pG, [21:43:56]CommunicateWithHost lk.salyk.kg:30040 [21:43:56]ConnectInit lk.salyk.kg [21:43:56]written 0, free lines is 4095 [21:43:57]Connected sock=10 [21:43:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 BD 30 08 01 71 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A0 01 00 00 F4 03 04 00 1B 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 22 02 00 35 04 06 00 0B 9D E2 AE 16 F3 16 A6 CC A1 46 43 EF D2 [21:43:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FA 97 47 00 82 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 22 02 00 F4 03 04 00 AD B4 C4 66 B6 04 01 00 00 33 3F 0F B5 F7 63 D9 1F [21:43:57]CommunicateWithHost err = 0 [21:43:57]CheckOFDResponse [21:43:57]1017 (14) - 77093643461234 [21:43:57]1041 (16) - 0000000000871776 [21:43:57]1040 (4) - 139944 [21:43:57]1012 (4) - 20.08.2024 15:22 [21:43:57]1206 (1) - 0 [21:43:57]OFD Sender: Remove packet 139944 [21:43:57]ProducePacketName [21:43:57]name=ofd_packets/00139944 [21:43:57]NVStorageDeleteData [21:43:57]Write to MH i2c: 01 00 00 E8 0A F2 [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: 01 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: 01 07 00 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 EE 0C F3 [21:43:57]RasterBufferAndPrint [21:43:57]line [21:43:57]line [21:43:57]line [21:43:57]line [21:43:57]line [21:43:57]written 0, free lines is 3326 [21:43:57]MH_Cut [21:43:57]Write to MH i2c: D1 01 00 EF 0A 01 CB [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: D1 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: D1 01 00 [21:43:57]MH_I2C_Read... [21:43:57]Read from MH i2c: D1 01 00 EF 0A 00 CA [21:43:57]Write to MH i2c: 01 00 00 F0 0A FA [21:43:57]Write i2c OK [21:43:57]MH_I2C_Read... [21:43:57]OFD Sender: No OFD packet to send [21:43:58]*** Cut start [21:43:58]*** Partial cut [21:43:58]*** CUTSNS_PIN = 1 [21:43:58]*** CUTSNS_PIN = 0 [21:43:58]*** Brake cut motor [21:43:58]Read from MH i2c: 01 [21:43:58]MH_I2C_Read... [21:43:58]*** Stop cut motor [21:43:58]*** Cut end [21:43:58]Read from MH i2c: 01 07 00 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 FF 0F 0F [21:43:58]process_action close_receipt done [21:43:58]requested_data is exist [21:43:58]produce_requested_data [21:43:58]requested_item fm.sn is exist - process it [21:43:58]wFMCommunicate request_size=4 [21:43:58]MH_SAM_APDU [21:43:58]CAPDU: 80 11 00 00 [21:43:58]Write to MH i2c: E2 08 00 F1 0A 80 11 00 00 00 00 00 00 75 [21:43:58]Write i2c OK [21:43:58]MH_I2C_Read... [21:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:58]Read from MH i2c: E2 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: E2 17 00 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: E2 17 00 F1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [21:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:43:58]wFMCommunicate OK [21:43:58]requested_item fd.num is exist - process it [21:43:58]SAM_PROTO_GetFieldsCounters [21:43:58]wFMCommunicate request_size=4 [21:43:58]MH_SAM_APDU [21:43:58]CAPDU: 80 13 00 00 [21:43:58]Write to MH i2c: E2 08 00 F2 0A 80 13 00 00 00 00 00 00 78 [21:43:58]Write i2c OK [21:43:58]MH_I2C_Read... [21:43:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:58]Read from MH i2c: E2 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: E2 62 00 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: E2 62 00 F2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [21:43:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 22 02 00 0E 04 04 00 C5 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:43:58]wFMCommunicate OK [21:43:58]SAM_PROTO_GetFieldsCounters done [21:43:58]requested_item shift.num is exist - process it [21:43:58]requested_item shift.opened is exist - process it [21:43:58]req_shift_opened [21:43:58]FM_GetShiftState [21:43:58]SAM_PROTO_GetShiftState [21:43:58]wFMCommunicate request_size=4 [21:43:58]MH_SAM_APDU [21:43:58]CAPDU: 80 13 01 00 [21:43:58]Write to MH i2c: E2 08 00 F3 0A 80 13 01 00 00 00 00 00 7A [21:43:58]Write i2c OK [21:43:58]MH_I2C_Read... [21:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:58]Read from MH i2c: E2 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: E2 0E 00 [21:43:58]MH_I2C_Read... [21:43:58]Read from MH i2c: E2 0E 00 F3 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0B [21:43:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:43:58]wFMCommunicate OK [21:43:58]SAM_PROTO_GetShiftState done [21:43:58]FM_GetShiftState done [21:43:58]req_shift_opened done [21:43:58]requested_item shift.open_date is exist - process it [21:43:58]req_shift_open_date [21:43:58]req_shift_open_date done [21:43:58]produce_requested_data done [21:43:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139944,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:43:58]process_action_free close_receipt [21:43:58]json_value_free [21:43:58]json_value_free done [21:43:58]process_json_proto returns [21:43:58]Send response to host [21:43:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139944,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:43:58]free response buf [21:43:58]execute_script done [21:43:58]execute_script returns [21:43:58]free content buf [21:43:58]Sock 9.Close socket [21:43:58]Sock 9.Thread stoped [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:51]accept exits with 7 [21:45:51]New connection [21:45:51]New thread 3066764644 created [21:45:51]Thread 3066908004 joined [21:45:51]Waiting for new connection... [21:45:51] Sock 7.Parse request [21:45:51]Sock 7.Check first char [21:45:51]Sock 7.First char is OK [21:45:51]request: POST /json_proto HTTP/1.0 [21:45:51]Method: POST [21:45:51]URL: /json_proto [21:45:51]Method is POST - this is cgi request [21:45:51]url: /json_proto [21:45:51]query_string will be loaded in cgi processing [21:45:51]execute_cgi json_proto POST (null) [21:45:51]execute_cgi path=json_proto method=POST [21:45:51]POST find Content-Length [21:45:51]Host: 172.17.45.67:8080 [21:45:51]Content-Length: 682 [21:45:51]Content-Type: application/json [21:45:51] [21:45:51]POST finish read [21:45:51]Found Content-Length = 682 [21:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:51]execute_script... [21:45: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)593800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:51]POST & json_proto [21:45:51]process_json_proto [21:45:51]json parsed OK: [21:45:51]protocol is kg_v1.0 [21:45:51]action value=close_receipt [21:45:51]process_action close_receipt [21:45:51]cmd_close_receipt [21:45:51]MH_GetDate [21:45:51]Write to MH i2c: F0 00 00 F4 0A ED [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: F0 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: F0 09 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: F0 09 00 F4 0A 00 90 0E C5 66 5F 7F 2B 66 2E [21:45:51]GetLastDocTimeStamp 1724190235 [21:45:51]current date 1724190352 [21:45:51]FM_GetShiftState [21:45:51]SAM_PROTO_GetShiftState [21:45:51]wFMCommunicate request_size=4 [21:45:51]MH_SAM_APDU [21:45:51]CAPDU: 80 13 01 00 [21:45:51]Write to MH i2c: E2 08 00 F5 0A 80 13 01 00 00 00 00 00 7C [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:51]Read from MH i2c: E2 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 0E 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 0E 00 F5 0A 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0D [21:45:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:45:51]wFMCommunicate OK [21:45:51]SAM_PROTO_GetShiftState done [21:45:51]FM_GetShiftState done [21:45:51]opened in 1724113785 [21:45:51]opened+sec_in_day 1724200185 [21:45:51]quantity*price = 100021 [21:45:51]sum+1 = 100023 [21:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 417 20.08.2024 21:45 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139945 ФПД: 152606949872148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T214552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139945&fm=152606949872148&tin=02508201610067®Number=0000000000092569&sum=100000 [21:45:52]StoreToDocumentArchive [21:45:52]shift 453 fd 139945 [21:45:52]save to /storage/0453/doc_00139945 [21:45:52]save last doc name /storage/0453/doc_00139945 to /storage/kkm_last_doc_name [21:45:52]save OK [21:45:52]Clear old archive folders... [21:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:52]tlvbuf is 00A6E930 [21:45:52]SAM_PROTO_ClearQueue [21:45:52]wFMCommunicate request_size=4 [21:45:52]MH_SAM_APDU [21:45:52]CAPDU: 80 09 00 00 [21:45:52]Write to MH i2c: E2 08 00 02 0B 80 09 00 00 00 00 00 00 7F [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:52]Read from MH i2c: E2 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [21:45:52]RAPDU: 90 00 [21:45:52]wFMCommunicate OK [21:45:52]SAM_PROTO_ClearQueue done [21:45:52]KKMCreateOFDPacket [21:45:52]OFDProtocolAddRootSTLVToBuf [21:45:52]FM_MakeSignedData [21:45:52]FM_MakeSignedData [21:45:52]SAM_PROTO_SignData [21:45:52]wFMCommunicate request_size=4 [21:45:52]MH_SAM_APDU [21:45:52]CAPDU: 80 0D 01 02 [21:45:52]Write to MH i2c: E2 08 00 03 0B 80 0D 01 02 00 00 00 00 87 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:52]Read from MH i2c: E2 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [21:45:52]RAPDU: 90 00 [21:45:52]wFMCommunicate OK [21:45:52]wFMCommunicate request_size=255 [21:45:52]MH_SAM_APDU [21:45:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 90 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 22 02 00 35 04 06 00 8A [21:45:52]Write to MH i2c: E2 02 01 04 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A1 01 00 00 F4 03 04 00 90 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 22 02 00 35 04 06 00 8A 00 00 C5 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:53]OFD Sender: No OFD packet to send [21:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:53]Read from MH i2c: E2 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 03 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [21:45:53]RAPDU: 90 00 [21:45:53]wFMCommunicate OK [21:45:53]wFMCommunicate request_size=10 [21:45:53]MH_SAM_APDU [21:45:53]CAPDU: 80 0D 02 02 05 CB 93 09 92 14 [21:45:53]Write to MH i2c: E2 0D 00 05 0B 80 0D 02 02 05 00 CB 93 09 92 14 00 00 A1 [21:45:53]Write i2c OK [21:45:53]MH_I2C_Read... [21:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:53]Read from MH i2c: E2 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 03 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 03 00 05 0B 00 90 00 84 [21:45:53]RAPDU: 90 00 [21:45:53]wFMCommunicate OK [21:45:53]wFMCommunicate request_size=4 [21:45:53]MH_SAM_APDU [21:45:53]CAPDU: 80 0D 03 02 [21:45:53]Write to MH i2c: E2 08 00 06 0B 80 0D 03 02 00 00 00 00 8C [21:45:53]Write i2c OK [21:45:53]MH_I2C_Read... [21:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:53]Read from MH i2c: E2 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 0B 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 0B 00 06 0B 00 5C DA B6 3B 38 EE 74 AE 90 00 FC [21:45:53]RAPDU: 5C DA B6 3B 38 EE 74 AE 90 00 [21:45:53]wFMCommunicate OK [21:45:53]SAM_PROTO_SignData done [21:45:53]FM_MakeSignedData done [21:45:53]CreateOFDProtocolMessage [21:45:53]wFMCommunicate request_size=4 [21:45:53]MH_SAM_APDU [21:45:53]CAPDU: 80 11 00 00 [21:45:53]Write to MH i2c: E2 08 00 07 0B 80 11 00 00 00 00 00 00 8C [21:45:53]Write i2c OK [21:45:53]MH_I2C_Read... [21:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:53]Read from MH i2c: E2 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 17 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: E2 17 00 07 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [21:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:45:53]wFMCommunicate OK [21:45:53]CreateOFDProtocolMessage done [21:45:53]OFDSenderStorePacket 139945 [21:45:53]StoreOFDPacket docnum=139945 [21:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2C 7E 07 01 66 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 90 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 22 02 00 35 04 06 00 8A CB 93 09 92 14 5C DA B6 3B 38 EE 74 AE [21:45:53]CheckFolder [21:45:53]dirname=/storage/ofd_packets [21:45:53]CheckFolder done [21:45:53]ProducePacketName [21:45:53]name=ofd_packets/00139945 [21:45:53]NVStorageSaveData ofd_packets/00139945 [21:45:53]File name is /storage/ofd_packets/00139945 [21:45:53]Write 301 bytes [21:45:53]NVStorageSaveData done [21:45:53]OFDSenderStorePacket done [21:45:53]KKMCreateOFDPacket done [21:45:53]NVStorageSaveData kkm_last_timestamp [21:45:53]File name is /storage/kkm_last_timestamp [21:45:53]Write 4 bytes [21:45:53]NVStorageSaveData done [21:45:53]ExternCall_PrintAddStr [21:45:53]wPrintStart [21:45:53]Write to MH i2c: 01 00 00 08 0B 13 [21:45:53]Write i2c OK [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: 01 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: 01 07 00 [21:45:53]MH_I2C_Read... [21:45:53]Read from MH i2c: 01 07 00 08 0B 00 00 00 00 00 FF 0F 28 [21:45:53]RasterBufferAndPrint [21:45:53]line Счет N : (1)593800 [21:45:53]line ИНН: 02508201610067 [21:45:53]line Контрольно-Кассовый Чек [21:45:53]line ПРОДАЖА [21:45:53]line ТРК (МРК, ГНК) : 31 [21:45:53]line Товар: 2710124500 [21:45:53]line Аи-95-К-5 [21:45:53]line 13.480 * 74.20 [21:45:53]line = 1000.22 [21:45:53]line НДС 12% НСП 1% [21:45:53]line > о реализуемом товаре [21:45:53]line ОКРУГЛЕНИЕ: -0.22 [21:45:53]line ИТОГО: 1000.00 [21:45:53]line Внесено: 1000.00 [21:45:53]line СДАЧА: 0.00 [21:45:53]line НСП 1% : 8.85 [21:45:53]line НДС 12% : 106.22 [21:45:53]line Наличными: 1000.00 [21:45:53]line Безнал.: 0.00 [21:45:53]line Место: АЗС № 136 "Партнер Нефть" [21:45:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:45:53]line СНО: Общий режим [21:45:53]line Чек 417 20.08.2024 21:45 [21:45:53]line Смена: 453 ФФД: 1.0 [21:45:53]line ЗНМ: 0300000067 [21:45:53]line РНМ: 0000000000092569 [21:45:53]line Версия ККМ: 001 [21:45:53]line ФМ: 0000000000871776 [21:45:53]line ФД: 139945 [21:45:53]line ФПД: 152606949872148 [21:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T214552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139945&fm=152606949872148&tin=02508201610067®Number=0000000000092569&sum=100000 [21:45:53]OFD Sender: Processing packet 139945 [packets to send 137, broken 136] [21:45:53]ProducePacketName [21:45:53]name=ofd_packets/00139945 [21:45:53]OFD Sender: To server: pG, [21:45:53]CommunicateWithHost lk.salyk.kg:30040 [21:45:53]ConnectInit lk.salyk.kg [21:45:53]written 0, free lines is 4095 [21:45:53]Connected sock=10 [21:45:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2C 7E 07 01 66 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 01 00 00 F4 03 04 00 90 0E C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 22 02 00 35 04 06 00 8A CB 93 09 92 14 5C DA B6 3B 38 EE 74 AE [21:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BD E9 47 00 BB 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 22 02 00 F4 03 04 00 22 B5 C4 66 B6 04 01 00 00 53 7E 17 78 5E 85 13 1E [21:45:54]CommunicateWithHost err = 0 [21:45:54]CheckOFDResponse [21:45:54]1017 (14) - 77093643461234 [21:45:54]1041 (16) - 0000000000871776 [21:45:54]1040 (4) - 139945 [21:45:54]1012 (4) - 20.08.2024 15:24 [21:45:54]1206 (1) - 0 [21:45:54]OFD Sender: Remove packet 139945 [21:45:54]ProducePacketName [21:45:54]name=ofd_packets/00139945 [21:45:54]NVStorageDeleteData [21:45:54]Write to MH i2c: 01 00 00 33 0B 3E [21:45:54]Write i2c OK [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: 01 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: 01 07 00 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: 01 07 00 33 0B 00 00 00 00 00 C9 0C 1A [21:45:54]RasterBufferAndPrint [21:45:54]line [21:45:54]line [21:45:54]line [21:45:54]line [21:45:54]line [21:45:54]written 0, free lines is 3279 [21:45:54]MH_Cut [21:45:54]Write to MH i2c: D1 01 00 3A 0B 01 17 [21:45:54]Write i2c OK [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: D1 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: D1 01 00 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: D1 01 00 3A 0B 00 16 [21:45:54]Write to MH i2c: 01 00 00 3B 0B 46 [21:45:54]Write i2c OK [21:45:54]MH_I2C_Read... [21:45:54]OFD Sender: No OFD packet to send [21:45:54]*** Cut start [21:45:54]*** Partial cut [21:45:54]*** CUTSNS_PIN = 1 [21:45:54]*** CUTSNS_PIN = 0 [21:45:55]*** Brake cut motor [21:45:55]Read from MH i2c: 01 [21:45:55]MH_I2C_Read... [21:45:55]*** Stop cut motor [21:45:55]*** Cut end [21:45:55]Read from MH i2c: 01 07 00 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 FF 0F 5B [21:45:55]process_action close_receipt done [21:45:55]requested_data is exist [21:45:55]produce_requested_data [21:45:55]requested_item fm.sn is exist - process it [21:45:55]wFMCommunicate request_size=4 [21:45:55]MH_SAM_APDU [21:45:55]CAPDU: 80 11 00 00 [21:45:55]Write to MH i2c: E2 08 00 3C 0B 80 11 00 00 00 00 00 00 C1 [21:45:55]Write i2c OK [21:45:55]MH_I2C_Read... [21:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:55]Read from MH i2c: E2 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: E2 17 00 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: E2 17 00 3C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [21:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:45:55]wFMCommunicate OK [21:45:55]requested_item fd.num is exist - process it [21:45:55]SAM_PROTO_GetFieldsCounters [21:45:55]wFMCommunicate request_size=4 [21:45:55]MH_SAM_APDU [21:45:55]CAPDU: 80 13 00 00 [21:45:55]Write to MH i2c: E2 08 00 3D 0B 80 13 00 00 00 00 00 00 C4 [21:45:55]Write i2c OK [21:45:55]MH_I2C_Read... [21:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:55]Read from MH i2c: E2 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: E2 62 00 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: E2 62 00 3D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 22 02 00 0E 04 04 00 C5 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 68 [21:45:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 22 02 00 0E 04 04 00 C5 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:45:55]wFMCommunicate OK [21:45:55]SAM_PROTO_GetFieldsCounters done [21:45:55]requested_item shift.num is exist - process it [21:45:55]requested_item shift.opened is exist - process it [21:45:55]req_shift_opened [21:45:55]FM_GetShiftState [21:45:55]SAM_PROTO_GetShiftState [21:45:55]wFMCommunicate request_size=4 [21:45:55]MH_SAM_APDU [21:45:55]CAPDU: 80 13 01 00 [21:45:55]Write to MH i2c: E2 08 00 3E 0B 80 13 01 00 00 00 00 00 C6 [21:45:55]Write i2c OK [21:45:55]MH_I2C_Read... [21:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:55]Read from MH i2c: E2 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: E2 0E 00 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: E2 0E 00 3E 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 57 [21:45:55]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:45:55]wFMCommunicate OK [21:45:55]SAM_PROTO_GetShiftState done [21:45:55]FM_GetShiftState done [21:45:55]req_shift_opened done [21:45:55]requested_item shift.open_date is exist - process it [21:45:55]req_shift_open_date [21:45:55]req_shift_open_date done [21:45:55]produce_requested_data done [21:45:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139945,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:45:55]process_action_free close_receipt [21:45:55]json_value_free [21:45:55]json_value_free done [21:45:55]process_json_proto returns [21:45:55]Send response to host [21:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139945,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:45:55]free response buf [21:45:55]execute_script done [21:45:55]execute_script returns [21:45:55]free content buf [21:45:55]Sock 7.Close socket [21:45:55]Sock 7.Thread stoped [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:35]int [21:49:35]Write to MH i2c: 01 00 00 3F 0B 4A [21:49:35]*** FLAG_PRN_KEY set [21:49:35]Write i2c OK [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 07 00 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 07 00 3F 0B 00 08 00 00 00 FF 0F 67 [21:49:35]state=0 [21:49:35]Key pressed [21:49:35]Feed [21:49:35]Write to MH i2c: D8 00 00 40 0B 22 [21:49:35]Write i2c OK [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: D8 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: D8 01 00 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: D8 01 00 40 0B 00 23 [21:49:35]int [21:49:35]Write to MH i2c: 01 00 00 41 0B 4C [21:49:35]Write i2c OK [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 07 00 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 07 00 41 0B 00 48 00 00 00 3C 00 D7 [21:49:35]state=2 [21:49:35]Key pressed [21:49:35]int [21:49:35]Write to MH i2c: 01 00 00 42 0B 4D [21:49:35]*** FLAG_PRN_KEY reset [21:49:35]Write i2c OK [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 07 00 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 07 00 42 0B 00 00 00 00 00 F5 0F 58 [21:49:35]state=2 [21:49:35]Stop feed [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:09]accept exits with 9 [21:55:09]New connection [21:55:09]New thread 3066908004 created [21:55:09]Thread 3066764644 joined [21:55:09]Waiting for new connection... [21:55:09] Sock 9.Parse request [21:55:09]Sock 9.Check first char [21:55:09]Sock 9.First char is OK [21:55:09]request: POST /json_proto HTTP/1.0 [21:55:09]Method: POST [21:55:09]URL: /json_proto [21:55:09]Method is POST - this is cgi request [21:55:09]url: /json_proto [21:55:09]query_string will be loaded in cgi processing [21:55:09]execute_cgi json_proto POST (null) [21:55:09]execute_cgi path=json_proto method=POST [21:55:09]POST find Content-Length [21:55:09]Host: 172.17.45.67:8080 [21:55:09]Content-Length: 682 [21:55:09]Content-Type: application/json [21:55:09] [21:55:09]POST finish read [21:55:09]Found Content-Length = 682 [21:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:09]execute_script... [21: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)593801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:09]POST & json_proto [21:55:09]process_json_proto [21:55:09]json parsed OK: [21:55:09]protocol is kg_v1.0 [21:55:09]action value=close_receipt [21:55:09]process_action close_receipt [21:55:09]cmd_close_receipt [21:55:09]MH_GetDate [21:55:09]Write to MH i2c: F0 00 00 43 0B 3D [21:55:09]Write i2c OK [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: F0 [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: F0 09 00 [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: F0 09 00 43 0B 00 BE 10 C5 66 5F 7F 2B 66 AE [21:55:09]GetLastDocTimeStamp 1724190352 [21:55:09]current date 1724190910 [21:55:09]FM_GetShiftState [21:55:09]SAM_PROTO_GetShiftState [21:55:09]wFMCommunicate request_size=4 [21:55:09]MH_SAM_APDU [21:55:09]CAPDU: 80 13 01 00 [21:55:09]Write to MH i2c: E2 08 00 44 0B 80 13 01 00 00 00 00 00 CC [21:55:09]Write i2c OK [21:55:09]MH_I2C_Read... [21:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:09]Read from MH i2c: E2 [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: E2 0E 00 [21:55:09]MH_I2C_Read... [21:55:09]Read from MH i2c: E2 0E 00 44 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 5D [21:55:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:55:09]wFMCommunicate OK [21:55:09]SAM_PROTO_GetShiftState done [21:55:09]FM_GetShiftState done [21:55:09]opened in 1724113785 [21:55:09]opened+sec_in_day 1724200185 [21:55:09]quantity*price = 150032 [21:55:09]sum+1 = 150033 [21:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 418 20.08.2024 21:55 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139946 ФПД: 111068956442049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T215510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139946&fm=111068956442049&tin=02508201610067®Number=0000000000092569&sum=150000 [21:55:10]StoreToDocumentArchive [21:55:10]shift 453 fd 139946 [21:55:10]save to /storage/0453/doc_00139946 [21:55:10]save last doc name /storage/0453/doc_00139946 to /storage/kkm_last_doc_name [21:55:10]save OK [21:55:10]Clear old archive folders... [21:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:10]tlvbuf is 00A6F5A0 [21:55:10]SAM_PROTO_ClearQueue [21:55:10]wFMCommunicate request_size=4 [21:55:10]MH_SAM_APDU [21:55:10]CAPDU: 80 09 00 00 [21:55:10]Write to MH i2c: E2 08 00 51 0B 80 09 00 00 00 00 00 00 CE [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:10]Read from MH i2c: E2 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 03 00 [21:55:10]MH_I2C_Read... [21:55:10]Read from MH i2c: E2 03 00 51 0B 00 90 00 D0 [21:55:10]RAPDU: 90 00 [21:55:10]wFMCommunicate OK [21:55:10]SAM_PROTO_ClearQueue done [21:55:10]KKMCreateOFDPacket [21:55:10]OFDProtocolAddRootSTLVToBuf [21:55:10]FM_MakeSignedData [21:55:10]FM_MakeSignedData [21:55:10]SAM_PROTO_SignData [21:55:10]wFMCommunicate request_size=4 [21:55:10]MH_SAM_APDU [21:55:10]CAPDU: 80 0D 01 02 [21:55:10]Write to MH i2c: E2 08 00 52 0B 80 0D 01 02 00 00 00 00 D6 [21:55:10]Write i2c OK [21:55:10]MH_I2C_Read... [21:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:11]Read from MH i2c: E2 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [21:55:11]RAPDU: 90 00 [21:55:11]wFMCommunicate OK [21:55:11]wFMCommunicate request_size=255 [21:55:11]MH_SAM_APDU [21:55:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A2 01 00 00 F4 03 04 00 BE 10 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 22 02 00 35 04 06 00 65 [21:55:11]Write to MH i2c: E2 02 01 53 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A2 01 00 00 F4 03 04 00 BE 10 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 22 02 00 35 04 06 00 65 00 00 67 [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:11]Read from MH i2c: E2 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [21:55:11]RAPDU: 90 00 [21:55:11]wFMCommunicate OK [21:55:11]wFMCommunicate request_size=10 [21:55:11]MH_SAM_APDU [21:55:11]CAPDU: 80 0D 02 02 05 04 41 B1 BD C1 [21:55:11]Write to MH i2c: E2 0D 00 54 0B 80 0D 02 02 05 00 04 41 B1 BD C1 00 00 57 [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:11]Read from MH i2c: E2 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [21:55:11]RAPDU: 90 00 [21:55:11]wFMCommunicate OK [21:55:11]wFMCommunicate request_size=4 [21:55:11]MH_SAM_APDU [21:55:11]CAPDU: 80 0D 03 02 [21:55:11]Write to MH i2c: E2 08 00 55 0B 80 0D 03 02 00 00 00 00 DB [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:11]Read from MH i2c: E2 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 0B 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 0B 00 55 0B 00 CD 78 CE 9D 5C 64 49 37 90 00 CC [21:55:11]RAPDU: CD 78 CE 9D 5C 64 49 37 90 00 [21:55:11]wFMCommunicate OK [21:55:11]SAM_PROTO_SignData done [21:55:11]FM_MakeSignedData done [21:55:11]CreateOFDProtocolMessage [21:55:11]wFMCommunicate request_size=4 [21:55:11]MH_SAM_APDU [21:55:11]CAPDU: 80 11 00 00 [21:55:11]Write to MH i2c: E2 08 00 56 0B 80 11 00 00 00 00 00 00 DB [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:11]Read from MH i2c: E2 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 17 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: E2 17 00 56 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 32 [21:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:55:11]wFMCommunicate OK [21:55:11]CreateOFDProtocolMessage done [21:55:11]OFDSenderStorePacket 139946 [21:55:11]StoreOFDPacket docnum=139946 [21:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 A8 07 01 DA 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 BE 10 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 22 02 00 35 04 06 00 65 04 41 B1 BD C1 CD 78 CE 9D 5C 64 49 37 [21:55:11]CheckFolder [21:55:11]dirname=/storage/ofd_packets [21:55:11]CheckFolder done [21:55:11]ProducePacketName [21:55:11]name=ofd_packets/00139946 [21:55:11]NVStorageSaveData ofd_packets/00139946 [21:55:11]File name is /storage/ofd_packets/00139946 [21:55:11]Write 301 bytes [21:55:11]NVStorageSaveData done [21:55:11]OFDSenderStorePacket done [21:55:11]KKMCreateOFDPacket done [21:55:11]NVStorageSaveData kkm_last_timestamp [21:55:11]File name is /storage/kkm_last_timestamp [21:55:11]Write 4 bytes [21:55:11]NVStorageSaveData done [21:55:11]ExternCall_PrintAddStr [21:55:11]wPrintStart [21:55:11]Write to MH i2c: 01 00 00 57 0B 62 [21:55:11]Write i2c OK [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: 01 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: 01 07 00 [21:55:11]MH_I2C_Read... [21:55:11]Read from MH i2c: 01 07 00 57 0B 00 00 00 00 00 FF 0F 77 [21:55:11]RasterBufferAndPrint [21:55:11]line Счет N : (1)593801 [21:55:11]line ИНН: 02508201610067 [21:55:11]line Контрольно-Кассовый Чек [21:55:11]line ПРОДАЖА [21:55:11]line ТРК (МРК, ГНК) : 31 [21:55:11]line Товар: 2710124500 [21:55:11]line Аи-95-К-5 [21:55:11]line 20.220 * 74.20 [21:55:11]line = 1500.32 [21:55:11]line НДС 12% НСП 1% [21:55:11]line > о реализуемом товаре [21:55:11]line ОКРУГЛЕНИЕ: -0.32 [21:55:11]line ИТОГО: 1500.00 [21:55:11]line Внесено: 1500.00 [21:55:11]line СДАЧА: 0.00 [21:55:11]line НСП 1% : 13.28 [21:55:11]line НДС 12% : 159.33 [21:55:11]line Наличными: 1500.00 [21:55:11]line Безнал.: 0.00 [21:55:11]line Место: АЗС № 136 "Партнер Нефть" [21:55:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:55:11]line СНО: Общий режим [21:55:11]line Чек 418 20.08.2024 21:55 [21:55:11]line Смена: 453 ФФД: 1.0 [21:55:11]line ЗНМ: 0300000067 [21:55:11]line РНМ: 0000000000092569 [21:55:11]line Версия ККМ: 001 [21:55:11]line ФМ: 0000000000871776 [21:55:11]line ФД: 139946 [21:55:11]line ФПД: 111068956442049 [21:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T215510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139946&fm=111068956442049&tin=02508201610067®Number=0000000000092569&sum=150000 [21:55:11]OFD Sender: Processing packet 139946 [packets to send 137, broken 136] [21:55:11]ProducePacketName [21:55:11]name=ofd_packets/00139946 [21:55:11]OFD Sender: To server: pG, [21:55:11]CommunicateWithHost lk.salyk.kg:30040 [21:55:11]ConnectInit lk.salyk.kg [21:55:11]written 0, free lines is 4095 [21:55:12]Connected sock=10 [21:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E8 A8 07 01 DA 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 BE 10 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 22 02 00 35 04 06 00 65 04 41 B1 BD C1 CD 78 CE 9D 5C 64 49 37 [21:55:12]Write to MH i2c: 01 00 00 82 0B 8D [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: 01 07 00 82 0B 00 00 00 00 00 D4 0C 74 [21:55:12]RasterBufferAndPrint [21:55:12]line [21:55:12]line [21:55:12]line [21:55:12]line [21:55:12]line [21:55:12]written 0, free lines is 3289 [21:55:12]MH_Cut [21:55:12]Write to MH i2c: D1 01 00 89 0B 01 66 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: D1 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: D1 01 00 [21:55:12]MH_I2C_Read... [21:55:12]Read from MH i2c: D1 01 00 89 0B 00 65 [21:55:12]Write to MH i2c: 01 00 00 8A 0B 95 [21:55:12]Write i2c OK [21:55:12]MH_I2C_Read... [21:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4E C7 47 00 CE CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 22 02 00 F4 03 04 00 50 B7 C4 66 B6 04 01 00 00 F0 5C 01 D5 B9 3A C0 12 [21:55:12]CommunicateWithHost err = 0 [21:55:12]CheckOFDResponse [21:55:12]1017 (14) - 77093643461234 [21:55:12]1041 (16) - 0000000000871776 [21:55:12]1040 (4) - 139946 [21:55:12]1012 (4) - 20.08.2024 15:33 [21:55:12]1206 (1) - 0 [21:55:12]OFD Sender: Remove packet 139946 [21:55:12]ProducePacketName [21:55:12]name=ofd_packets/00139946 [21:55:12]NVStorageDeleteData [21:55:12]OFD Sender: No OFD packet to send [21:55:12]*** Cut start [21:55:12]*** Partial cut [21:55:12]*** CUTSNS_PIN = 1 [21:55:13]*** CUTSNS_PIN = 0 [21:55:13]*** Brake cut motor [21:55:13]Read from MH i2c: 01 [21:55:13]MH_I2C_Read... [21:55:13]*** Stop cut motor [21:55:13]*** Cut end [21:55:13]Read from MH i2c: 01 07 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: 01 07 00 8A 0B 00 00 00 00 00 FF 0F AA [21:55:13]process_action close_receipt done [21:55:13]requested_data is exist [21:55:13]produce_requested_data [21:55:13]requested_item fm.sn is exist - process it [21:55:13]wFMCommunicate request_size=4 [21:55:13]MH_SAM_APDU [21:55:13]CAPDU: 80 11 00 00 [21:55:13]Write to MH i2c: E2 08 00 8B 0B 80 11 00 00 00 00 00 00 10 [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:13]Read from MH i2c: E2 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 17 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 17 00 8B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 67 [21:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:55:13]wFMCommunicate OK [21:55:13]requested_item fd.num is exist - process it [21:55:13]SAM_PROTO_GetFieldsCounters [21:55:13]wFMCommunicate request_size=4 [21:55:13]MH_SAM_APDU [21:55:13]CAPDU: 80 13 00 00 [21:55:13]Write to MH i2c: E2 08 00 8C 0B 80 13 00 00 00 00 00 00 13 [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:13]Read from MH i2c: E2 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 62 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 62 00 8C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 22 02 00 0E 04 04 00 C5 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 BB [21:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 22 02 00 0E 04 04 00 C5 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:55:13]wFMCommunicate OK [21:55:13]SAM_PROTO_GetFieldsCounters done [21:55:13]requested_item shift.num is exist - process it [21:55:13]requested_item shift.opened is exist - process it [21:55:13]req_shift_opened [21:55:13]FM_GetShiftState [21:55:13]SAM_PROTO_GetShiftState [21:55:13]wFMCommunicate request_size=4 [21:55:13]MH_SAM_APDU [21:55:13]CAPDU: 80 13 01 00 [21:55:13]Write to MH i2c: E2 08 00 8D 0B 80 13 01 00 00 00 00 00 15 [21:55:13]Write i2c OK [21:55:13]MH_I2C_Read... [21:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:13]Read from MH i2c: E2 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 0E 00 [21:55:13]MH_I2C_Read... [21:55:13]Read from MH i2c: E2 0E 00 8D 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A6 [21:55:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [21:55:13]wFMCommunicate OK [21:55:13]SAM_PROTO_GetShiftState done [21:55:13]FM_GetShiftState done [21:55:13]req_shift_opened done [21:55:13]requested_item shift.open_date is exist - process it [21:55:13]req_shift_open_date [21:55:13]req_shift_open_date done [21:55:13]produce_requested_data done [21:55:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139946,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [21:55:13]process_action_free close_receipt [21:55:13]json_value_free [21:55:13]json_value_free done [21:55:13]process_json_proto returns [21:55:13]Send response to host [21:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139946,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [21:55:13]free response buf [21:55:13]execute_script done [21:55:13]execute_script returns [21:55:13]free content buf [21:55:13]Sock 9.Close socket [21:55:13]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [21:56:37]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:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:00:59]accept exits with 7 [22:00:59]New connection [22:00:59]New thread 3066764644 created [22:00:59]Thread 3066908004 joined [22:00:59]Waiting for new connection... [22:00:59] Sock 7.Parse request [22:00:59]Sock 7.Check first char [22:00:59]Sock 7.First char is OK [22:00:59]request: POST /json_proto HTTP/1.0 [22:00:59]Method: POST [22:00:59]URL: /json_proto [22:00:59]Method is POST - this is cgi request [22:00:59]url: /json_proto [22:00:59]query_string will be loaded in cgi processing [22:00:59]execute_cgi json_proto POST (null) [22:00:59]execute_cgi path=json_proto method=POST [22:00:59]POST find Content-Length [22:00:59]Host: 172.17.45.67:8080 [22:00:59]Content-Length: 677 [22:00:59]Content-Type: application/json [22:00:59] [22:00:59]POST finish read [22:00:59]Found Content-Length = 677 [22:00:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:59]execute_script... [22:00: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)593802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:59]POST & json_proto [22:00:59]process_json_proto [22:00:59]json parsed OK: [22:00:59]protocol is kg_v1.0 [22:00:59]action value=close_receipt [22:00:59]process_action close_receipt [22:00:59]cmd_close_receipt [22:00:59]MH_GetDate [22:00:59]Write to MH i2c: F0 00 00 8E 0B 88 [22:00:59]Write i2c OK [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: F0 [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: F0 09 00 [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: F0 09 00 8E 0B 00 1C 12 C5 66 5F 7F 2B 66 59 [22:00:59]GetLastDocTimeStamp 1724190910 [22:00:59]current date 1724191260 [22:00:59]FM_GetShiftState [22:00:59]SAM_PROTO_GetShiftState [22:00:59]wFMCommunicate request_size=4 [22:00:59]MH_SAM_APDU [22:00:59]CAPDU: 80 13 01 00 [22:00:59]Write to MH i2c: E2 08 00 8F 0B 80 13 01 00 00 00 00 00 17 [22:00:59]Write i2c OK [22:00:59]MH_I2C_Read... [22:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:59]Read from MH i2c: E2 [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: E2 0E 00 [22:00:59]MH_I2C_Read... [22:00:59]Read from MH i2c: E2 0E 00 8F 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A8 [22:00:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:00:59]wFMCommunicate OK [22:00:59]SAM_PROTO_GetShiftState done [22:00:59]FM_GetShiftState done [22:00:59]opened in 1724113785 [22:00:59]opened+sec_in_day 1724200185 [22:00:59]quantity*price = 40068 [22:00:59]sum+1 = 40069 [22:00:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 419 20.08.2024 22:01 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139947 ФПД: 179819737140856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220100&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139947&fm=179819737140856&tin=02508201610067®Number=0000000000092569&sum=40000 [22:01:00]StoreToDocumentArchive [22:01:00]shift 453 fd 139947 [22:01:00]save to /storage/0453/doc_00139947 [22:01:00]save last doc name /storage/0453/doc_00139947 to /storage/kkm_last_doc_name [22:01:00]save OK [22:01:00]Clear old archive folders... [22:01:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:00]tlvbuf is 00A7D3D0 [22:01:00]SAM_PROTO_ClearQueue [22:01:00]wFMCommunicate request_size=4 [22:01:00]MH_SAM_APDU [22:01:00]CAPDU: 80 09 00 00 [22:01:00]Write to MH i2c: E2 08 00 9C 0B 80 09 00 00 00 00 00 00 19 [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:00]Read from MH i2c: E2 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [22:01:00]RAPDU: 90 00 [22:01:00]wFMCommunicate OK [22:01:00]SAM_PROTO_ClearQueue done [22:01:00]KKMCreateOFDPacket [22:01:00]OFDProtocolAddRootSTLVToBuf [22:01:00]FM_MakeSignedData [22:01:00]FM_MakeSignedData [22:01:00]SAM_PROTO_SignData [22:01:00]wFMCommunicate request_size=4 [22:01:00]MH_SAM_APDU [22:01:00]CAPDU: 80 0D 01 02 [22:01:00]Write to MH i2c: E2 08 00 9D 0B 80 0D 01 02 00 00 00 00 21 [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:00]Read from MH i2c: E2 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 [22:01:00]MH_I2C_Read... [22:01:00]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [22:01:00]RAPDU: 90 00 [22:01:00]wFMCommunicate OK [22:01:00]wFMCommunicate request_size=255 [22:01:00]MH_SAM_APDU [22:01:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A3 01 00 00 F4 03 04 00 1C 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 22 02 00 35 04 06 00 A3 [22:01:00]Write to MH i2c: E2 02 01 9E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A3 01 00 00 F4 03 04 00 1C 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 22 02 00 35 04 06 00 A3 00 00 9E [22:01:00]Write i2c OK [22:01:00]MH_I2C_Read... [22:01:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:01]Read from MH i2c: E2 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: E2 03 00 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [22:01:01]RAPDU: 90 00 [22:01:01]wFMCommunicate OK [22:01:01]wFMCommunicate request_size=10 [22:01:01]MH_SAM_APDU [22:01:01]CAPDU: 80 0D 02 02 05 8B 8B 8E 4E 78 [22:01:01]Write to MH i2c: E2 0D 00 9F 0B 80 0D 02 02 05 00 8B 8B 8E 4E 78 00 00 98 [22:01:01]Write i2c OK [22:01:01]MH_I2C_Read... [22:01:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:01]Read from MH i2c: E2 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: E2 03 00 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: E2 03 00 9F 0B 00 90 00 1E [22:01:01]RAPDU: 90 00 [22:01:01]wFMCommunicate OK [22:01:01]wFMCommunicate request_size=4 [22:01:01]MH_SAM_APDU [22:01:01]CAPDU: 80 0D 03 02 [22:01:01]Write to MH i2c: E2 08 00 A0 0B 80 0D 03 02 00 00 00 00 26 [22:01:01]Write i2c OK [22:01:01]MH_I2C_Read... [22:01:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:01]Read from MH i2c: E2 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: E2 0B 00 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: E2 0B 00 A0 0B 00 AE F8 F6 FA DB 82 08 65 90 00 87 [22:01:01]RAPDU: AE F8 F6 FA DB 82 08 65 90 00 [22:01:01]wFMCommunicate OK [22:01:01]SAM_PROTO_SignData done [22:01:01]FM_MakeSignedData done [22:01:01]CreateOFDProtocolMessage [22:01:01]wFMCommunicate request_size=4 [22:01:01]MH_SAM_APDU [22:01:01]CAPDU: 80 11 00 00 [22:01:01]Write to MH i2c: E2 08 00 A1 0B 80 11 00 00 00 00 00 00 26 [22:01:01]Write i2c OK [22:01:01]MH_I2C_Read... [22:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:01]Read from MH i2c: E2 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: E2 17 00 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: E2 17 00 A1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [22:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:01:01]wFMCommunicate OK [22:01:01]CreateOFDProtocolMessage done [22:01:01]OFDSenderStorePacket 139947 [22:01:01]StoreOFDPacket docnum=139947 [22:01:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D4 B3 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 1C 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 22 02 00 35 04 06 00 A3 8B 8B 8E 4E 78 AE F8 F6 FA DB 82 08 65 [22:01:01]CheckFolder [22:01:01]dirname=/storage/ofd_packets [22:01:01]CheckFolder done [22:01:01]ProducePacketName [22:01:01]name=ofd_packets/00139947 [22:01:01]NVStorageSaveData ofd_packets/00139947 [22:01:01]File name is /storage/ofd_packets/00139947 [22:01:01]Write 301 bytes [22:01:01]NVStorageSaveData done [22:01:01]OFDSenderStorePacket done [22:01:01]KKMCreateOFDPacket done [22:01:01]NVStorageSaveData kkm_last_timestamp [22:01:01]File name is /storage/kkm_last_timestamp [22:01:01]Write 4 bytes [22:01:01]NVStorageSaveData done [22:01:01]ExternCall_PrintAddStr [22:01:01]wPrintStart [22:01:01]Write to MH i2c: 01 00 00 A2 0B AD [22:01:01]Write i2c OK [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: 01 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: 01 07 00 [22:01:01]MH_I2C_Read... [22:01:01]Read from MH i2c: 01 07 00 A2 0B 00 00 00 00 00 FF 0F C2 [22:01:01]RasterBufferAndPrint [22:01:01]line Счет N : (1)593802 [22:01:01]line ИНН: 02508201610067 [22:01:01]line Контрольно-Кассовый Чек [22:01:01]line ПРОДАЖА [22:01:01]line ТРК (МРК, ГНК) : 51 [22:01:01]line Товар: 2710124500 [22:01:01]line Аи-95-К-5 [22:01:01]line 5.400 * 74.20 [22:01:01]line = 400.68 [22:01:01]line НДС 12% НСП 1% [22:01:01]line > о реализуемом товаре [22:01:01]line ОКРУГЛЕНИЕ: -0.68 [22:01:01]line ИТОГО: 400.00 [22:01:01]line Внесено: 400.00 [22:01:01]line СДАЧА: 0.00 [22:01:01]line НСП 1% : 3.55 [22:01:01]line НДС 12% : 42.55 [22:01:01]line Наличными: 400.00 [22:01:01]line Безнал.: 0.00 [22:01:01]line Место: АЗС № 136 "Партнер Нефть" [22:01:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:01:01]line СНО: Общий режим [22:01:01]line Чек 419 20.08.2024 22:01 [22:01:01]line Смена: 453 ФФД: 1.0 [22:01:01]line ЗНМ: 0300000067 [22:01:01]line РНМ: 0000000000092569 [22:01:01]line Версия ККМ: 001 [22:01:01]line ФМ: 0000000000871776 [22:01:01]line ФД: 139947 [22:01:01]line ФПД: 179819737140856 [22:01:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220100&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139947&fm=179819737140856&tin=02508201610067®Number=0000000000092569&sum=40000 [22:01:01]OFD Sender: Processing packet 139947 [packets to send 137, broken 136] [22:01:01]ProducePacketName [22:01:01]name=ofd_packets/00139947 [22:01:01]OFD Sender: To server: pG, [22:01:01]CommunicateWithHost lk.salyk.kg:30040 [22:01:01]ConnectInit lk.salyk.kg [22:01:01]written 0, free lines is 4095 [22:01:01]Connected sock=10 [22:01:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D4 B3 07 01 D3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 1C 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 22 02 00 35 04 06 00 A3 8B 8B 8E 4E 78 AE F8 F6 FA DB 82 08 65 [22:01:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B0 B2 47 00 38 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 22 02 00 F4 03 04 00 AE B8 C4 66 B6 04 01 00 00 0A 10 6C C8 2C 43 83 81 [22:01:02]CommunicateWithHost err = 0 [22:01:02]CheckOFDResponse [22:01:02]1017 (14) - 77093643461234 [22:01:02]1041 (16) - 0000000000871776 [22:01:02]1040 (4) - 139947 [22:01:02]1012 (4) - 20.08.2024 15:39 [22:01:02]1206 (1) - 0 [22:01:02]OFD Sender: Remove packet 139947 [22:01:02]ProducePacketName [22:01:02]name=ofd_packets/00139947 [22:01:02]NVStorageDeleteData [22:01:02]Write to MH i2c: 01 00 00 CD 0B D8 [22:01:02]Write i2c OK [22:01:02]MH_I2C_Read... [22:01:02]Read from MH i2c: 01 [22:01:02]MH_I2C_Read... [22:01:02]Read from MH i2c: 01 07 00 [22:01:02]MH_I2C_Read... [22:01:02]Read from MH i2c: 01 07 00 CD 0B 00 00 00 00 00 D1 0C BC [22:01:02]RasterBufferAndPrint [22:01:02]line [22:01:02]line [22:01:02]line [22:01:02]line [22:01:02]line [22:01:02]written 0, free lines is 3284 [22:01:02]MH_Cut [22:01:02]Write to MH i2c: D1 01 00 D4 0B 01 B1 [22:01:02]Write i2c OK [22:01:02]MH_I2C_Read... [22:01:02]Read from MH i2c: D1 [22:01:02]MH_I2C_Read... [22:01:02]Read from MH i2c: D1 01 00 [22:01:02]MH_I2C_Read... [22:01:02]Read from MH i2c: D1 01 00 D4 0B 00 B0 [22:01:02]Write to MH i2c: 01 00 00 D5 0B E0 [22:01:02]Write i2c OK [22:01:02]MH_I2C_Read... [22:01:02]OFD Sender: No OFD packet to send [22:01:02]*** Cut start [22:01:02]*** Partial cut [22:01:02]*** CUTSNS_PIN = 1 [22:01:02]*** CUTSNS_PIN = 0 [22:01:03]*** Brake cut motor [22:01:03]Read from MH i2c: 01 [22:01:03]MH_I2C_Read... [22:01:03]*** Stop cut motor [22:01:03]*** Cut end [22:01:03]Read from MH i2c: 01 07 00 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: 01 07 00 D5 0B 00 00 00 00 00 FF 0F F5 [22:01:03]process_action close_receipt done [22:01:03]requested_data is exist [22:01:03]produce_requested_data [22:01:03]requested_item fm.sn is exist - process it [22:01:03]wFMCommunicate request_size=4 [22:01:03]MH_SAM_APDU [22:01:03]CAPDU: 80 11 00 00 [22:01:03]Write to MH i2c: E2 08 00 D6 0B 80 11 00 00 00 00 00 00 5B [22:01:03]Write i2c OK [22:01:03]MH_I2C_Read... [22:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:03]Read from MH i2c: E2 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 17 00 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 17 00 D6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [22:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:01:03]wFMCommunicate OK [22:01:03]requested_item fd.num is exist - process it [22:01:03]SAM_PROTO_GetFieldsCounters [22:01:03]wFMCommunicate request_size=4 [22:01:03]MH_SAM_APDU [22:01:03]CAPDU: 80 13 00 00 [22:01:03]Write to MH i2c: E2 08 00 D7 0B 80 13 00 00 00 00 00 00 5E [22:01:03]Write i2c OK [22:01:03]MH_I2C_Read... [22:01:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:03]Read from MH i2c: E2 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 62 00 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 62 00 D7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 22 02 00 0E 04 04 00 C5 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 0A [22:01:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 22 02 00 0E 04 04 00 C5 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 [22:01:03]wFMCommunicate OK [22:01:03]SAM_PROTO_GetFieldsCounters done [22:01:03]requested_item shift.num is exist - process it [22:01:03]requested_item shift.opened is exist - process it [22:01:03]req_shift_opened [22:01:03]FM_GetShiftState [22:01:03]SAM_PROTO_GetShiftState [22:01:03]wFMCommunicate request_size=4 [22:01:03]MH_SAM_APDU [22:01:03]CAPDU: 80 13 01 00 [22:01:03]Write to MH i2c: E2 08 00 D8 0B 80 13 01 00 00 00 00 00 60 [22:01:03]Write i2c OK [22:01:03]MH_I2C_Read... [22:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:03]Read from MH i2c: E2 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 0E 00 [22:01:03]MH_I2C_Read... [22:01:03]Read from MH i2c: E2 0E 00 D8 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F1 [22:01:03]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:01:03]wFMCommunicate OK [22:01:03]SAM_PROTO_GetShiftState done [22:01:03]FM_GetShiftState done [22:01:03]req_shift_opened done [22:01:03]requested_item shift.open_date is exist - process it [22:01:03]req_shift_open_date [22:01:03]req_shift_open_date done [22:01:03]produce_requested_data done [22:01:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139947,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:01:03]process_action_free close_receipt [22:01:03]json_value_free [22:01:03]json_value_free done [22:01:03]process_json_proto returns [22:01:03]Send response to host [22:01:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139947,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:01:03]free response buf [22:01:03]execute_script done [22:01:03]execute_script returns [22:01:03]free content buf [22:01:03]Sock 7.Close socket [22:01:03]Sock 7.Thread stoped [22:01:05]accept exits with 9 [22:01:05]New connection [22:01:05]New thread 3066908004 created [22:01:05]Thread 3066764644 joined [22:01:05]Waiting for new connection... [22:01:05] Sock 9.Parse request [22:01:05]Sock 9.Check first char [22:01:05]Sock 9.First char is OK [22:01:05]request: POST /json_proto HTTP/1.0 [22:01:05]Method: POST [22:01:05]URL: /json_proto [22:01:05]Method is POST - this is cgi request [22:01:05]url: /json_proto [22:01:05]query_string will be loaded in cgi processing [22:01:05]execute_cgi json_proto POST (null) [22:01:05]execute_cgi path=json_proto method=POST [22:01:05]POST find Content-Length [22:01:05]Host: 172.17.45.67:8080 [22:01:05]Content-Length: 687 [22:01:05]Content-Type: application/json [22:01:05] [22:01:05]POST finish read [22:01:05]Found Content-Length = 687 [22:01:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:01:05]execute_script... [22:01: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)593803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:01:05]POST & json_proto [22:01:05]process_json_proto [22:01:05]json parsed OK: [22:01:05]protocol is kg_v1.0 [22:01:05]action value=close_receipt [22:01:05]process_action close_receipt [22:01:05]cmd_close_receipt [22:01:05]MH_GetDate [22:01:05]Write to MH i2c: F0 00 00 D9 0B D3 [22:01:05]Write i2c OK [22:01:05]MH_I2C_Read... [22:01:05]Read from MH i2c: F0 [22:01:05]MH_I2C_Read... [22:01:05]Read from MH i2c: F0 09 00 [22:01:05]MH_I2C_Read... [22:01:05]Read from MH i2c: F0 09 00 D9 0B 00 21 12 C5 66 5F 7F 2B 66 A9 [22:01:05]GetLastDocTimeStamp 1724191260 [22:01:05]current date 1724191265 [22:01:05]FM_GetShiftState [22:01:05]SAM_PROTO_GetShiftState [22:01:05]wFMCommunicate request_size=4 [22:01:05]MH_SAM_APDU [22:01:05]CAPDU: 80 13 01 00 [22:01:05]Write to MH i2c: E2 08 00 DA 0B 80 13 01 00 00 00 00 00 62 [22:01:05]Write i2c OK [22:01:05]MH_I2C_Read... [22:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:05]Read from MH i2c: E2 [22:01:05]MH_I2C_Read... [22:01:05]Read from MH i2c: E2 0E 00 [22:01:05]MH_I2C_Read... [22:01:05]Read from MH i2c: E2 0E 00 DA 0B 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F3 [22:01:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:01:05]wFMCommunicate OK [22:01:05]SAM_PROTO_GetShiftState done [22:01:05]FM_GetShiftState done [22:01:05]opened in 1724113785 [22:01:05]opened+sec_in_day 1724200185 [22:01:05]quantity*price = 100050 [22:01:05]sum+1 = 100052 [22:01:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 420 20.08.2024 22:01 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139948 ФПД: 240251440618161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220105&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139948&fm=240251440618161&tin=02508201610067®Number=0000000000092569&sum=100000 [22:01:06]StoreToDocumentArchive [22:01:06]shift 453 fd 139948 [22:01:06]save to /storage/0453/doc_00139948 [22:01:06]save last doc name /storage/0453/doc_00139948 to /storage/kkm_last_doc_name [22:01:06]save OK [22:01:06]Clear old archive folders... [22:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:01:06]tlvbuf is 00A45C90 [22:01:06]SAM_PROTO_ClearQueue [22:01:06]wFMCommunicate request_size=4 [22:01:06]MH_SAM_APDU [22:01:06]CAPDU: 80 09 00 00 [22:01:06]Write to MH i2c: E2 08 00 E7 0B 80 09 00 00 00 00 00 00 64 [22:01:06]Write i2c OK [22:01:06]MH_I2C_Read... [22:01:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:06]Read from MH i2c: E2 [22:01:06]MH_I2C_Read... [22:01:06]Read from MH i2c: E2 03 00 [22:01:06]MH_I2C_Read... [22:01:06]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [22:01:06]RAPDU: 90 00 [22:01:06]wFMCommunicate OK [22:01:06]SAM_PROTO_ClearQueue done [22:01:06]KKMCreateOFDPacket [22:01:06]OFDProtocolAddRootSTLVToBuf [22:01:06]FM_MakeSignedData [22:01:06]FM_MakeSignedData [22:01:06]SAM_PROTO_SignData [22:01:06]wFMCommunicate request_size=4 [22:01:06]MH_SAM_APDU [22:01:06]CAPDU: 80 0D 01 02 [22:01:06]Write to MH i2c: E2 08 00 E8 0B 80 0D 01 02 00 00 00 00 6C [22:01:06]Write i2c OK [22:01:06]MH_I2C_Read... [22:01:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:06]Read from MH i2c: E2 [22:01:06]MH_I2C_Read... [22:01:06]Read from MH i2c: E2 03 00 [22:01:06]MH_I2C_Read... [22:01:06]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [22:01:06]RAPDU: 90 00 [22:01:06]wFMCommunicate OK [22:01:06]wFMCommunicate request_size=255 [22:01:06]MH_SAM_APDU [22:01:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A4 01 00 00 F4 03 04 00 21 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 22 02 00 35 04 06 00 [22:01:06]Write to MH i2c: E2 02 01 E9 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A4 01 00 00 F4 03 04 00 21 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 22 02 00 35 04 06 00 00 00 7C [22:01:06]Write i2c OK [22:01:06]MH_I2C_Read... [22:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:07]Read from MH i2c: E2 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [22:01:07]RAPDU: 90 00 [22:01:07]wFMCommunicate OK [22:01:07]wFMCommunicate request_size=11 [22:01:07]MH_SAM_APDU [22:01:07]CAPDU: 80 0D 02 02 06 DA 81 E5 C6 5A B1 [22:01:07]Write to MH i2c: E2 0E 00 EA 0B 80 0D 02 02 06 00 DA 81 E5 C6 5A B1 00 00 8C [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:07]Read from MH i2c: E2 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 03 00 EA 0B 00 90 00 69 [22:01:07]RAPDU: 90 00 [22:01:07]wFMCommunicate OK [22:01:07]wFMCommunicate request_size=4 [22:01:07]MH_SAM_APDU [22:01:07]CAPDU: 80 0D 03 02 [22:01:07]Write to MH i2c: E2 08 00 EB 0B 80 0D 03 02 00 00 00 00 71 [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:07]Read from MH i2c: E2 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 0B 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 0B 00 EB 0B 00 52 39 C6 A2 26 90 52 C9 90 00 36 [22:01:07]RAPDU: 52 39 C6 A2 26 90 52 C9 90 00 [22:01:07]wFMCommunicate OK [22:01:07]SAM_PROTO_SignData done [22:01:07]FM_MakeSignedData done [22:01:07]CreateOFDProtocolMessage [22:01:07]wFMCommunicate request_size=4 [22:01:07]MH_SAM_APDU [22:01:07]CAPDU: 80 11 00 00 [22:01:07]Write to MH i2c: E2 08 00 EC 0B 80 11 00 00 00 00 00 00 71 [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:07]Read from MH i2c: E2 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 17 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: E2 17 00 EC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [22:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:01:07]wFMCommunicate OK [22:01:07]CreateOFDProtocolMessage done [22:01:07]OFDSenderStorePacket 139948 [22:01:07]StoreOFDPacket docnum=139948 [22:01:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 FC 39 08 01 B0 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A4 01 00 00 F4 03 04 00 21 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 22 02 00 35 04 06 00 DA 81 E5 C6 5A B1 52 39 C6 A2 26 90 52 C9 [22:01:07]CheckFolder [22:01:07]dirname=/storage/ofd_packets [22:01:07]CheckFolder done [22:01:07]ProducePacketName [22:01:07]name=ofd_packets/00139948 [22:01:07]NVStorageSaveData ofd_packets/00139948 [22:01:07]File name is /storage/ofd_packets/00139948 [22:01:07]Write 302 bytes [22:01:07]NVStorageSaveData done [22:01:07]OFDSenderStorePacket done [22:01:07]KKMCreateOFDPacket done [22:01:07]NVStorageSaveData kkm_last_timestamp [22:01:07]File name is /storage/kkm_last_timestamp [22:01:07]Write 4 bytes [22:01:07]NVStorageSaveData done [22:01:07]ExternCall_PrintAddStr [22:01:07]wPrintStart [22:01:07]Write to MH i2c: 01 00 00 ED 0B F8 [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: 01 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: 01 07 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: 01 07 00 ED 0B 00 00 00 00 00 FF 0F 0D [22:01:07]RasterBufferAndPrint [22:01:07]line Счет N : (1)593803 [22:01:07]line ИНН: 02508201610067 [22:01:07]line Контрольно-Кассовый Чек [22:01:07]line ПРОДАЖА [22:01:07]line ТРК (МРК, ГНК) : 34 [22:01:07]line Товар: 2710194210 [22:01:07]line ДТ(л)-К-5 [22:01:07]line 13.130 * 76.20 [22:01:07]line = 1000.51 [22:01:07]line НДС 12% НСП 1% [22:01:07]line > о реализуемом товаре [22:01:07]line ОКРУГЛЕНИЕ: -0.51 [22:01:07]line ИТОГО: 1000.00 [22:01:07]line Внесено: 1000.00 [22:01:07]line СДАЧА: 0.00 [22:01:07]line НСП 1% : 8.85 [22:01:07]line НДС 12% : 106.25 [22:01:07]line Наличными: 1000.00 [22:01:07]line Безнал.: 0.00 [22:01:07]line Место: АЗС № 136 "Партнер Нефть" [22:01:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:01:07]line СНО: Общий режим [22:01:07]line Чек 420 20.08.2024 22:01 [22:01:07]line Смена: 453 ФФД: 1.0 [22:01:07]line ЗНМ: 0300000067 [22:01:07]line РНМ: 0000000000092569 [22:01:07]line Версия ККМ: 001 [22:01:07]line ФМ: 0000000000871776 [22:01:07]line ФД: 139948 [22:01:07]line ФПД: 240251440618161 [22:01:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220105&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139948&fm=240251440618161&tin=02508201610067®Number=0000000000092569&sum=100000 [22:01:07]written 0, free lines is 4095 [22:01:07]OFD Sender: Processing packet 139948 [packets to send 137, broken 136] [22:01:07]ProducePacketName [22:01:07]name=ofd_packets/00139948 [22:01:07]OFD Sender: To server: pG, [22:01:07]CommunicateWithHost lk.salyk.kg:30040 [22:01:07]ConnectInit lk.salyk.kg [22:01:07]Connected sock=11 [22:01:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 FC 39 08 01 B0 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A4 01 00 00 F4 03 04 00 21 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 22 02 00 35 04 06 00 DA 81 E5 C6 5A B1 52 39 C6 A2 26 90 52 C9 [22:01:07]Write to MH i2c: 01 00 00 18 0C 24 [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: 01 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: 01 07 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: 01 07 00 18 0C 00 00 00 00 00 E2 0C 19 [22:01:07]RasterBufferAndPrint [22:01:07]line [22:01:07]line [22:01:07]line [22:01:07]line [22:01:07]line [22:01:07]written 0, free lines is 3307 [22:01:07]MH_Cut [22:01:07]Write to MH i2c: D1 01 00 1F 0C 01 FD [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: D1 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: D1 01 00 [22:01:07]MH_I2C_Read... [22:01:07]Read from MH i2c: D1 01 00 1F 0C 00 FC [22:01:07]Write to MH i2c: 01 00 00 20 0C 2C [22:01:07]Write i2c OK [22:01:07]MH_I2C_Read... [22:01:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6A 31 47 00 9A 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 22 02 00 F4 03 04 00 B4 B8 C4 66 B6 04 01 00 00 B7 6E 42 15 1D 3F 20 2B [22:01:07]CommunicateWithHost err = 0 [22:01:07]CheckOFDResponse [22:01:07]1017 (14) - 77093643461234 [22:01:07]1041 (16) - 0000000000871776 [22:01:07]1040 (4) - 139948 [22:01:07]1012 (4) - 20.08.2024 15:39 [22:01:07]1206 (1) - 0 [22:01:07]OFD Sender: Remove packet 139948 [22:01:07]ProducePacketName [22:01:07]name=ofd_packets/00139948 [22:01:07]NVStorageDeleteData [22:01:08]OFD Sender: No OFD packet to send [22:01:08]*** Cut start [22:01:08]*** Partial cut [22:01:08]*** CUTSNS_PIN = 1 [22:01:08]*** CUTSNS_PIN = 0 [22:01:08]*** Brake cut motor [22:01:09]Read from MH i2c: 01 [22:01:09]MH_I2C_Read... [22:01:09]*** Stop cut motor [22:01:09]*** Cut end [22:01:09]Read from MH i2c: 01 07 00 [22:01:09]MH_I2C_Read... [22:01:09]Read from MH i2c: 01 07 00 20 0C 00 00 00 00 00 FF 0F 41 [22:01:09]process_action close_receipt done [22:01:09]requested_data is exist [22:01:09]produce_requested_data [22:01:09]requested_item fm.sn is exist - process it [22:01:09]wFMCommunicate request_size=4 [22:01:09]MH_SAM_APDU [22:01:09]CAPDU: 80 11 00 00 [22:01:09]Write to MH i2c: E2 08 00 21 0C 80 11 00 00 00 00 00 00 A7 [22:01:09]Write i2c OK [22:01:09]MH_I2C_Read... [22:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:09]Read from MH i2c: E2 [22:01:09]MH_I2C_Read... [22:01:09]Read from MH i2c: E2 17 00 [22:01:09]MH_I2C_Read... [22:01:09]Read from MH i2c: E2 17 00 21 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [22:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:01:09]wFMCommunicate OK [22:01:09]requested_item fd.num is exist - process it [22:01:09]SAM_PROTO_GetFieldsCounters [22:01:09]wFMCommunicate request_size=4 [22:01:09]MH_SAM_APDU [22:01:09]CAPDU: 80 13 00 00 [22:01:09]Write to MH i2c: E2 08 00 22 0C 80 13 00 00 00 00 00 00 AA [22:01:09]Write i2c OK [22:01:09]MH_I2C_Read... [22:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:09]Read from MH i2c: E2 [22:01:09]MH_I2C_Read... [22:01:09]Read from MH i2c: E2 62 00 [22:01:09]MH_I2C_Read... [22:01:09]Read from MH i2c: E2 62 00 22 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 22 02 00 0E 04 04 00 C5 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 5A [22:01:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 22 02 00 0E 04 04 00 C5 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 [22:01:09]wFMCommunicate OK [22:01:09]SAM_PROTO_GetFieldsCounters done [22:01:09]requested_item shift.num is exist - process it [22:01:09]requested_item shift.opened is exist - process it [22:01:09]req_shift_opened [22:01:09]FM_GetShiftState [22:01:09]SAM_PROTO_GetShiftState [22:01:09]wFMCommunicate request_size=4 [22:01:09]MH_SAM_APDU [22:01:09]CAPDU: 80 13 01 00 [22:01:09]Write to MH i2c: E2 08 00 23 0C 80 13 01 00 00 00 00 00 AC [22:01:09]Write i2c OK [22:01:09]MH_I2C_Read... [22:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:09]Read from MH i2c: E2 [22:01:09]MH_I2C_Read... [22:01:09]Read from MH i2c: E2 0E 00 [22:01:09]MH_I2C_Read... [22:01:09]Read from MH i2c: E2 0E 00 23 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3D [22:01:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:01:09]wFMCommunicate OK [22:01:09]SAM_PROTO_GetShiftState done [22:01:09]FM_GetShiftState done [22:01:09]req_shift_opened done [22:01:09]requested_item shift.open_date is exist - process it [22:01:09]req_shift_open_date [22:01:09]req_shift_open_date done [22:01:09]produce_requested_data done [22:01:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139948,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:01:09]process_action_free close_receipt [22:01:09]json_value_free [22:01:09]json_value_free done [22:01:09]process_json_proto returns [22:01:09]Send response to host [22:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139948,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:01:09]free response buf [22:01:09]execute_script done [22:01:09]execute_script returns [22:01:09]free content buf [22:01:09]Sock 9.Close socket [22:01:09]Sock 9.Thread stoped [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:11]accept exits with 7 [22:03:11]New connection [22:03:11]New thread 3066764644 created [22:03:11]Thread 3066908004 joined [22:03:11]Waiting for new connection... [22:03:11] Sock 7.Parse request [22:03:11]Sock 7.Check first char [22:03:11]Sock 7.First char is OK [22:03:11]request: POST /json_proto HTTP/1.0 [22:03:11]Method: POST [22:03:11]URL: /json_proto [22:03:11]Method is POST - this is cgi request [22:03:11]url: /json_proto [22:03:11]query_string will be loaded in cgi processing [22:03:11]execute_cgi json_proto POST (null) [22:03:11]execute_cgi path=json_proto method=POST [22:03:11]POST find Content-Length [22:03:11]Host: 172.17.45.67:8080 [22:03:11]Content-Length: 682 [22:03:11]Content-Type: application/json [22:03:11] [22:03:11]POST finish read [22:03:11]Found Content-Length = 682 [22:03:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.820, "sum" : 1025.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1025.00, "total" : 1025.00, "payments": [ { "type": 0, "sum" : 1025.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:11]execute_script... [22:03: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)593804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.820, "sum" : 1025.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1025.00, "total" : 1025.00, "payments": [ { "type": 0, "sum" : 1025.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:11]POST & json_proto [22:03:11]process_json_proto [22:03:11]json parsed OK: [22:03:11]protocol is kg_v1.0 [22:03:11]action value=close_receipt [22:03:11]process_action close_receipt [22:03:11]cmd_close_receipt [22:03:11]MH_GetDate [22:03:11]Write to MH i2c: F0 00 00 24 0C 1F [22:03:11]Write i2c OK [22:03:11]MH_I2C_Read... [22:03:11]Read from MH i2c: F0 [22:03:11]MH_I2C_Read... [22:03:11]Read from MH i2c: F0 09 00 [22:03:11]MH_I2C_Read... [22:03:11]Read from MH i2c: F0 09 00 24 0C 00 A0 12 C5 66 5F 7F 2B 66 74 [22:03:11]GetLastDocTimeStamp 1724191265 [22:03:11]current date 1724191392 [22:03:11]FM_GetShiftState [22:03:11]SAM_PROTO_GetShiftState [22:03:11]wFMCommunicate request_size=4 [22:03:11]MH_SAM_APDU [22:03:11]CAPDU: 80 13 01 00 [22:03:11]Write to MH i2c: E2 08 00 25 0C 80 13 01 00 00 00 00 00 AE [22:03:11]Write i2c OK [22:03:11]MH_I2C_Read... [22:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:11]Read from MH i2c: E2 [22:03:11]MH_I2C_Read... [22:03:11]Read from MH i2c: E2 0E 00 [22:03:11]MH_I2C_Read... [22:03:11]Read from MH i2c: E2 0E 00 25 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3F [22:03:11]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:03:11]wFMCommunicate OK [22:03:11]SAM_PROTO_GetShiftState done [22:03:11]FM_GetShiftState done [22:03:11]opened in 1724113785 [22:03:11]opened+sec_in_day 1724200185 [22:03:11]quantity*price = 102544 [22:03:11]sum+1 = 102545 [22:03:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 1025.00 Внесено: 1025.00 СДАЧА: 0.00 НСП 1% : 9.07 НДС 12% : 108.90 Наличными: 1025.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 421 20.08.2024 22:03 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139949 ФПД: 204710334741181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220312&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139949&fm=204710334741181&tin=02508201610067®Number=0000000000092569&sum=102500 [22:03:12]StoreToDocumentArchive [22:03:12]shift 453 fd 139949 [22:03:12]save to /storage/0453/doc_00139949 [22:03:12]save last doc name /storage/0453/doc_00139949 to /storage/kkm_last_doc_name [22:03:12]save OK [22:03:12]Clear old archive folders... [22:03:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:03:12]tlvbuf is 00A6E900 [22:03:12]SAM_PROTO_ClearQueue [22:03:12]wFMCommunicate request_size=4 [22:03:12]MH_SAM_APDU [22:03:12]CAPDU: 80 09 00 00 [22:03:12]Write to MH i2c: E2 08 00 32 0C 80 09 00 00 00 00 00 00 B0 [22:03:12]Write i2c OK [22:03:12]MH_I2C_Read... [22:03:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:12]Read from MH i2c: E2 [22:03:12]MH_I2C_Read... [22:03:12]Read from MH i2c: E2 03 00 [22:03:12]MH_I2C_Read... [22:03:12]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [22:03:12]RAPDU: 90 00 [22:03:12]wFMCommunicate OK [22:03:12]SAM_PROTO_ClearQueue done [22:03:12]KKMCreateOFDPacket [22:03:12]OFDProtocolAddRootSTLVToBuf [22:03:12]FM_MakeSignedData [22:03:12]FM_MakeSignedData [22:03:12]SAM_PROTO_SignData [22:03:12]wFMCommunicate request_size=4 [22:03:12]MH_SAM_APDU [22:03:12]CAPDU: 80 0D 01 02 [22:03:12]Write to MH i2c: E2 08 00 33 0C 80 0D 01 02 00 00 00 00 B8 [22:03:12]Write i2c OK [22:03:12]MH_I2C_Read... [22:03:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:12]Read from MH i2c: E2 [22:03:12]MH_I2C_Read... [22:03:12]Read from MH i2c: E2 03 00 [22:03:12]MH_I2C_Read... [22:03:12]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [22:03:12]RAPDU: 90 00 [22:03:12]wFMCommunicate OK [22:03:12]wFMCommunicate request_size=255 [22:03:12]MH_SAM_APDU [22:03:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 90 90 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 2A 00 00 00 00 07 04 06 00 64 90 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 A0 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 22 02 00 35 04 06 00 BA [22:03:12]Write to MH i2c: E2 02 01 34 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 90 90 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 2A 00 00 00 00 07 04 06 00 64 90 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 A0 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 22 02 00 35 04 06 00 BA 00 00 3A [22:03:12]Write i2c OK [22:03:12]MH_I2C_Read... [22:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:12]Read from MH i2c: E2 [22:03:12]MH_I2C_Read... [22:03:12]Read from MH i2c: E2 03 00 [22:03:12]MH_I2C_Read... [22:03:12]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [22:03:12]RAPDU: 90 00 [22:03:12]wFMCommunicate OK [22:03:12]wFMCommunicate request_size=10 [22:03:12]MH_SAM_APDU [22:03:12]CAPDU: 80 0D 02 02 05 2E D6 C8 BA BD [22:03:12]Write to MH i2c: E2 0D 00 35 0C 80 0D 02 02 05 00 2E D6 C8 BA BD 00 00 08 [22:03:12]Write i2c OK [22:03:12]MH_I2C_Read... [22:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:13]Read from MH i2c: E2 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: E2 03 00 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [22:03:13]RAPDU: 90 00 [22:03:13]wFMCommunicate OK [22:03:13]wFMCommunicate request_size=4 [22:03:13]MH_SAM_APDU [22:03:13]CAPDU: 80 0D 03 02 [22:03:13]Write to MH i2c: E2 08 00 36 0C 80 0D 03 02 00 00 00 00 BD [22:03:13]Write i2c OK [22:03:13]MH_I2C_Read... [22:03:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:13]Read from MH i2c: E2 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: E2 0B 00 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: E2 0B 00 36 0C 00 CB 6E D4 34 27 00 80 FB 90 00 A1 [22:03:13]RAPDU: CB 6E D4 34 27 00 80 FB 90 00 [22:03:13]wFMCommunicate OK [22:03:13]SAM_PROTO_SignData done [22:03:13]FM_MakeSignedData done [22:03:13]CreateOFDProtocolMessage [22:03:13]wFMCommunicate request_size=4 [22:03:13]MH_SAM_APDU [22:03:13]CAPDU: 80 11 00 00 [22:03:13]Write to MH i2c: E2 08 00 37 0C 80 11 00 00 00 00 00 00 BD [22:03:13]Write i2c OK [22:03:13]MH_I2C_Read... [22:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:13]Read from MH i2c: E2 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: E2 17 00 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: E2 17 00 37 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [22:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:03:13]wFMCommunicate OK [22:03:13]CreateOFDProtocolMessage done [22:03:13]OFDSenderStorePacket 139949 [22:03:13]StoreOFDPacket docnum=139949 [22:03:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 52 74 07 01 2D 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 90 90 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 2A 00 00 00 00 07 04 06 00 64 90 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 A0 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 22 02 00 35 04 06 00 BA 2E D6 C8 BA BD CB 6E D4 34 27 00 80 FB [22:03:13]CheckFolder [22:03:13]dirname=/storage/ofd_packets [22:03:13]CheckFolder done [22:03:13]ProducePacketName [22:03:13]name=ofd_packets/00139949 [22:03:13]NVStorageSaveData ofd_packets/00139949 [22:03:13]File name is /storage/ofd_packets/00139949 [22:03:13]Write 301 bytes [22:03:13]NVStorageSaveData done [22:03:13]OFDSenderStorePacket done [22:03:13]KKMCreateOFDPacket done [22:03:13]NVStorageSaveData kkm_last_timestamp [22:03:13]File name is /storage/kkm_last_timestamp [22:03:13]Write 4 bytes [22:03:13]NVStorageSaveData done [22:03:13]OFD Sender: Processing packet 139949 [packets to send 137, broken 136] [22:03:13]ProducePacketName [22:03:13]name=ofd_packets/00139949 [22:03:13]OFD Sender: To server: pG, [22:03:13]CommunicateWithHost lk.salyk.kg:30040 [22:03:13]ConnectInit lk.salyk.kg [22:03:13]ExternCall_PrintAddStr [22:03:13]wPrintStart [22:03:13]Write to MH i2c: 01 00 00 38 0C 44 [22:03:13]Write i2c OK [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: 01 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: 01 07 00 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: 01 07 00 38 0C 00 00 00 00 00 FF 0F 59 [22:03:13]RasterBufferAndPrint [22:03:13]line Счет N : (1)593804 [22:03:13]line ИНН: 02508201610067 [22:03:13]line Контрольно-Кассовый Чек [22:03:13]line ПРОДАЖА [22:03:13]line ТРК (МРК, ГНК) : 41 [22:03:13]line Товар: 2710124500 [22:03:13]line Аи-95-К-5 [22:03:13]line 13.820 * 74.20 [22:03:13]line = 1025.44 [22:03:13]line НДС 12% НСП 1% [22:03:13]line > о реализуемом товаре [22:03:13]line ОКРУГЛЕНИЕ: -0.44 [22:03:13]line ИТОГО: 1025.00 [22:03:13]line Внесено: 1025.00 [22:03:13]line СДАЧА: 0.00 [22:03:13]line НСП 1% : 9.07 [22:03:13]line НДС 12% : 108.90 [22:03:13]line Наличными: 1025.00 [22:03:13]line Безнал.: 0.00 [22:03:13]line Место: АЗС № 136 "Партнер Нефть" [22:03:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:03:13]line СНО: Общий режим [22:03:13]line Чек 421 20.08.2024 22:03 [22:03:13]line Смена: 453 ФФД: 1.0 [22:03:13]line ЗНМ: 0300000067 [22:03:13]line РНМ: 0000000000092569 [22:03:13]line Версия ККМ: 001 [22:03:13]line ФМ: 0000000000871776 [22:03:13]line ФД: 139949 [22:03:13]line ФПД: 204710334741181 [22:03:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220312&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139949&fm=204710334741181&tin=02508201610067®Number=0000000000092569&sum=102500 [22:03:13]Connected sock=11 [22:03:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 52 74 07 01 2D 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 90 90 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 90 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 2A 00 00 00 00 07 04 06 00 64 90 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 A0 12 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 22 02 00 35 04 06 00 BA 2E D6 C8 BA BD CB 6E D4 34 27 00 80 FB [22:03:13]written 0, free lines is 4095 [22:03:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 14 6E 47 00 B8 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 22 02 00 F4 03 04 00 32 B9 C4 66 B6 04 01 00 00 C2 0E 3C A3 C3 70 16 8D [22:03:13]CommunicateWithHost err = 0 [22:03:13]CheckOFDResponse [22:03:13]1017 (14) - 77093643461234 [22:03:13]1041 (16) - 0000000000871776 [22:03:13]1040 (4) - 139949 [22:03:13]1012 (4) - 20.08.2024 15:41 [22:03:13]1206 (1) - 0 [22:03:13]OFD Sender: Remove packet 139949 [22:03:13]ProducePacketName [22:03:13]name=ofd_packets/00139949 [22:03:13]NVStorageDeleteData [22:03:13]Write to MH i2c: 01 00 00 63 0C 6F [22:03:13]Write i2c OK [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: 01 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: 01 07 00 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 CF 0C 51 [22:03:13]RasterBufferAndPrint [22:03:13]line [22:03:13]line [22:03:13]line [22:03:13]line [22:03:13]line [22:03:13]written 0, free lines is 3285 [22:03:13]MH_Cut [22:03:13]Write to MH i2c: D1 01 00 6A 0C 01 48 [22:03:13]Write i2c OK [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: D1 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: D1 01 00 [22:03:13]MH_I2C_Read... [22:03:13]Read from MH i2c: D1 01 00 6A 0C 00 47 [22:03:13]Write to MH i2c: 01 00 00 6B 0C 77 [22:03:13]Write i2c OK [22:03:13]MH_I2C_Read... [22:03:14]OFD Sender: No OFD packet to send [22:03:14]*** Cut start [22:03:14]*** Partial cut [22:03:14]*** CUTSNS_PIN = 1 [22:03:14]*** CUTSNS_PIN = 0 [22:03:14]*** Brake cut motor [22:03:15]Read from MH i2c: 01 [22:03:15]MH_I2C_Read... [22:03:15]*** Stop cut motor [22:03:15]*** Cut end [22:03:15]Read from MH i2c: 01 07 00 [22:03:15]MH_I2C_Read... [22:03:15]Read from MH i2c: 01 07 00 6B 0C 00 00 00 00 00 FF 0F 8C [22:03:15]process_action close_receipt done [22:03:15]requested_data is exist [22:03:15]produce_requested_data [22:03:15]requested_item fm.sn is exist - process it [22:03:15]wFMCommunicate request_size=4 [22:03:15]MH_SAM_APDU [22:03:15]CAPDU: 80 11 00 00 [22:03:15]Write to MH i2c: E2 08 00 6C 0C 80 11 00 00 00 00 00 00 F2 [22:03:15]Write i2c OK [22:03:15]MH_I2C_Read... [22:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:15]Read from MH i2c: E2 [22:03:15]MH_I2C_Read... [22:03:15]Read from MH i2c: E2 17 00 [22:03:15]MH_I2C_Read... [22:03:15]Read from MH i2c: E2 17 00 6C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [22:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:03:15]wFMCommunicate OK [22:03:15]requested_item fd.num is exist - process it [22:03:15]SAM_PROTO_GetFieldsCounters [22:03:15]wFMCommunicate request_size=4 [22:03:15]MH_SAM_APDU [22:03:15]CAPDU: 80 13 00 00 [22:03:15]Write to MH i2c: E2 08 00 6D 0C 80 13 00 00 00 00 00 00 F5 [22:03:15]Write i2c OK [22:03:15]MH_I2C_Read... [22:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:15]Read from MH i2c: E2 [22:03:15]MH_I2C_Read... [22:03:15]Read from MH i2c: E2 62 00 [22:03:15]MH_I2C_Read... [22:03:15]Read from MH i2c: E2 62 00 6D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 22 02 00 0E 04 04 00 C5 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 A9 [22:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 22 02 00 0E 04 04 00 C5 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 [22:03:15]wFMCommunicate OK [22:03:15]SAM_PROTO_GetFieldsCounters done [22:03:15]requested_item shift.num is exist - process it [22:03:15]requested_item shift.opened is exist - process it [22:03:15]req_shift_opened [22:03:15]FM_GetShiftState [22:03:15]SAM_PROTO_GetShiftState [22:03:15]wFMCommunicate request_size=4 [22:03:15]MH_SAM_APDU [22:03:15]CAPDU: 80 13 01 00 [22:03:15]Write to MH i2c: E2 08 00 6E 0C 80 13 01 00 00 00 00 00 F7 [22:03:15]Write i2c OK [22:03:15]MH_I2C_Read... [22:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:15]Read from MH i2c: E2 [22:03:15]MH_I2C_Read... [22:03:15]Read from MH i2c: E2 0E 00 [22:03:15]MH_I2C_Read... [22:03:15]Read from MH i2c: E2 0E 00 6E 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 88 [22:03:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:03:15]wFMCommunicate OK [22:03:15]SAM_PROTO_GetShiftState done [22:03:15]FM_GetShiftState done [22:03:15]req_shift_opened done [22:03:15]requested_item shift.open_date is exist - process it [22:03:15]req_shift_open_date [22:03:15]req_shift_open_date done [22:03:15]produce_requested_data done [22:03:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139949,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:03:15]process_action_free close_receipt [22:03:15]json_value_free [22:03:15]json_value_free done [22:03:15]process_json_proto returns [22:03:15]Send response to host [22:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139949,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:03:15]free response buf [22:03:15]execute_script done [22:03:15]execute_script returns [22:03:15]free content buf [22:03:15]Sock 7.Close socket [22:03:15]Sock 7.Thread stoped [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:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]accept exits with 9 [22:06:19]New connection [22:06:19] Sock 9.Parse request [22:06:19]New thread 3066908004 created [22:06:19]Sock 9.Check first char [22:06:19]Thread 3066764644 joined [22:06:19]Sock 9.First char is OK [22:06:19]Waiting for new connection... [22:06:19]request: POST /json_proto HTTP/1.0 [22:06:19]Method: POST [22:06:19]URL: /json_proto [22:06:19]Method is POST - this is cgi request [22:06:19]url: /json_proto [22:06:19]query_string will be loaded in cgi processing [22:06:19]execute_cgi json_proto POST (null) [22:06:19]execute_cgi path=json_proto method=POST [22:06:19]POST find Content-Length [22:06:19]Host: 172.17.45.67:8080 [22:06:19]Content-Length: 682 [22:06:19]Content-Type: application/json [22:06:19] [22:06:19]POST finish read [22:06:19]Found Content-Length = 682 [22:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:06:19]execute_script... [22:06:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:06:19]POST & json_proto [22:06:19]process_json_proto [22:06:19]json parsed OK: [22:06:19]protocol is kg_v1.0 [22:06:19]action value=close_receipt [22:06:19]process_action close_receipt [22:06:19]cmd_close_receipt [22:06:19]MH_GetDate [22:06:19]Write to MH i2c: F0 00 00 6F 0C 6A [22:06:19]Write i2c OK [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: F0 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: F0 09 00 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: F0 09 00 6F 0C 00 5B 13 C5 66 5F 7F 2B 66 7B [22:06:19]GetLastDocTimeStamp 1724191392 [22:06:19]current date 1724191579 [22:06:19]FM_GetShiftState [22:06:19]SAM_PROTO_GetShiftState [22:06:19]wFMCommunicate request_size=4 [22:06:19]MH_SAM_APDU [22:06:19]CAPDU: 80 13 01 00 [22:06:19]Write to MH i2c: E2 08 00 70 0C 80 13 01 00 00 00 00 00 F9 [22:06:19]Write i2c OK [22:06:19]MH_I2C_Read... [22:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:19]Read from MH i2c: E2 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: E2 0E 00 [22:06:19]MH_I2C_Read... [22:06:19]Read from MH i2c: E2 0E 00 70 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8A [22:06:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:06:19]wFMCommunicate OK [22:06:19]SAM_PROTO_GetShiftState done [22:06:19]FM_GetShiftState done [22:06:19]opened in 1724113785 [22:06:19]opened+sec_in_day 1724200185 [22:06:19]quantity*price = 50063 [22:06:19]sum+1 = 50064 [22:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 422 20.08.2024 22:06 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139950 ФПД: 192406590769154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220619&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139950&fm=192406590769154&tin=02508201610067®Number=0000000000092569&sum=50000 [22:06:20]StoreToDocumentArchive [22:06:20]shift 453 fd 139950 [22:06:20]save to /storage/0453/doc_00139950 [22:06:20]save last doc name /storage/0453/doc_00139950 to /storage/kkm_last_doc_name [22:06:20]save OK [22:06:20]Clear old archive folders... [22:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:06:20]tlvbuf is 00A5F630 [22:06:20]SAM_PROTO_ClearQueue [22:06:20]wFMCommunicate request_size=4 [22:06:20]MH_SAM_APDU [22:06:20]CAPDU: 80 09 00 00 [22:06:20]Write to MH i2c: E2 08 00 7D 0C 80 09 00 00 00 00 00 00 FB [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:20]Read from MH i2c: E2 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 03 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [22:06:20]RAPDU: 90 00 [22:06:20]wFMCommunicate OK [22:06:20]SAM_PROTO_ClearQueue done [22:06:20]KKMCreateOFDPacket [22:06:20]OFDProtocolAddRootSTLVToBuf [22:06:20]FM_MakeSignedData [22:06:20]FM_MakeSignedData [22:06:20]SAM_PROTO_SignData [22:06:20]wFMCommunicate request_size=4 [22:06:20]MH_SAM_APDU [22:06:20]CAPDU: 80 0D 01 02 [22:06:20]Write to MH i2c: E2 08 00 7E 0C 80 0D 01 02 00 00 00 00 03 [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:20]Read from MH i2c: E2 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 03 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [22:06:20]RAPDU: 90 00 [22:06:20]wFMCommunicate OK [22:06:20]wFMCommunicate request_size=255 [22:06:20]MH_SAM_APDU [22:06:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A6 01 00 00 F4 03 04 00 5B 13 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 22 02 00 35 04 06 00 [22:06:20]Write to MH i2c: E2 02 01 7F 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 A6 01 00 00 F4 03 04 00 5B 13 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 22 02 00 35 04 06 00 00 00 DA [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:20]Read from MH i2c: E2 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 03 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [22:06:20]RAPDU: 90 00 [22:06:20]wFMCommunicate OK [22:06:20]wFMCommunicate request_size=11 [22:06:20]MH_SAM_APDU [22:06:20]CAPDU: 80 0D 02 02 06 AE FE 26 7E C8 02 [22:06:20]Write to MH i2c: E2 0E 00 80 0C 80 0D 02 02 06 00 AE FE 26 7E C8 02 00 00 2C [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:20]Read from MH i2c: E2 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 03 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [22:06:20]RAPDU: 90 00 [22:06:20]wFMCommunicate OK [22:06:20]wFMCommunicate request_size=4 [22:06:20]MH_SAM_APDU [22:06:20]CAPDU: 80 0D 03 02 [22:06:20]Write to MH i2c: E2 08 00 81 0C 80 0D 03 02 00 00 00 00 08 [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:20]Read from MH i2c: E2 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 0B 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 0B 00 81 0C 00 BC E1 77 ED 8A 8C 33 BC 90 00 0F [22:06:20]RAPDU: BC E1 77 ED 8A 8C 33 BC 90 00 [22:06:20]wFMCommunicate OK [22:06:20]SAM_PROTO_SignData done [22:06:20]FM_MakeSignedData done [22:06:20]CreateOFDProtocolMessage [22:06:20]wFMCommunicate request_size=4 [22:06:20]MH_SAM_APDU [22:06:20]CAPDU: 80 11 00 00 [22:06:20]Write to MH i2c: E2 08 00 82 0C 80 11 00 00 00 00 00 00 08 [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:20]Read from MH i2c: E2 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 17 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: E2 17 00 82 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [22:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:06:20]wFMCommunicate OK [22:06:20]CreateOFDProtocolMessage done [22:06:20]OFDSenderStorePacket 139950 [22:06:20]StoreOFDPacket docnum=139950 [22:06:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 14 1B 08 01 FF C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A6 01 00 00 F4 03 04 00 5B 13 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 22 02 00 35 04 06 00 AE FE 26 7E C8 02 BC E1 77 ED 8A 8C 33 BC [22:06:20]CheckFolder [22:06:20]dirname=/storage/ofd_packets [22:06:20]CheckFolder done [22:06:20]ProducePacketName [22:06:20]name=ofd_packets/00139950 [22:06:20]NVStorageSaveData ofd_packets/00139950 [22:06:20]File name is /storage/ofd_packets/00139950 [22:06:20]Write 302 bytes [22:06:20]NVStorageSaveData done [22:06:20]OFDSenderStorePacket done [22:06:20]KKMCreateOFDPacket done [22:06:20]NVStorageSaveData kkm_last_timestamp [22:06:20]File name is /storage/kkm_last_timestamp [22:06:20]Write 4 bytes [22:06:20]NVStorageSaveData done [22:06:20]ExternCall_PrintAddStr [22:06:20]wPrintStart [22:06:20]Write to MH i2c: 01 00 00 83 0C 8F [22:06:20]OFD Sender: Processing packet 139950 [packets to send 137, broken 136] [22:06:20]ProducePacketName [22:06:20]name=ofd_packets/00139950 [22:06:20]OFD Sender: To server: pG, [22:06:20]CommunicateWithHost lk.salyk.kg:30040 [22:06:20]ConnectInit lk.salyk.kg [22:06:20]Write i2c OK [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: 01 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: 01 07 00 [22:06:20]MH_I2C_Read... [22:06:20]Read from MH i2c: 01 07 00 83 0C 00 00 00 00 00 FF 0F A4 [22:06:20]RasterBufferAndPrint [22:06:20]line Счет N : (1)593805 [22:06:20]line ИНН: 02508201610067 [22:06:20]line Контрольно-Кассовый Чек [22:06:20]line ПРОДАЖА [22:06:20]line ТРК (МРК, ГНК) : 34 [22:06:20]line Товар: 2710194210 [22:06:20]line ДТ(л)-К-5 [22:06:20]line 6.570 * 76.20 [22:06:20]line = 500.63 [22:06:20]line НДС 12% НСП 1% [22:06:20]line > о реализуемом товаре [22:06:20]line ОКРУГЛЕНИЕ: -0.63 [22:06:20]line ИТОГО: 500.00 [22:06:20]line Внесено: 500.00 [22:06:20]line СДАЧА: 0.00 [22:06:20]line НСП 1% : 4.43 [22:06:20]line НДС 12% : 53.16 [22:06:20]line Наличными: 500.00 [22:06:20]line Безнал.: 0.00 [22:06:20]line Место: АЗС № 136 "Партнер Нефть" [22:06:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:06:20]line СНО: Общий режим [22:06:20]line Чек 422 20.08.2024 22:06 [22:06:20]line Смена: 453 ФФД: 1.0 [22:06:20]line ЗНМ: 0300000067 [22:06:20]line РНМ: 0000000000092569 [22:06:20]line Версия ККМ: 001 [22:06:20]line ФМ: 0000000000871776 [22:06:20]line ФД: 139950 [22:06:20]line ФПД: 192406590769154 [22:06:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220619&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139950&fm=192406590769154&tin=02508201610067®Number=0000000000092569&sum=50000 [22:06:20]written 0, free lines is 4095 [22:06:21]Connected sock=7 [22:06:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 14 1B 08 01 FF C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 A6 01 00 00 F4 03 04 00 5B 13 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 22 02 00 35 04 06 00 AE FE 26 7E C8 02 BC E1 77 ED 8A 8C 33 BC [22:06:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 20 D2 47 00 1D 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 22 02 00 F4 03 04 00 ED B9 C4 66 B6 04 01 00 00 04 05 1D 9A F3 7D 62 EB [22:06:21]CommunicateWithHost err = 0 [22:06:21]CheckOFDResponse [22:06:21]1017 (14) - 77093643461234 [22:06:21]1041 (16) - 0000000000871776 [22:06:21]1040 (4) - 139950 [22:06:21]1012 (4) - 20.08.2024 15:44 [22:06:21]1206 (1) - 0 [22:06:21]OFD Sender: Remove packet 139950 [22:06:21]ProducePacketName [22:06:21]name=ofd_packets/00139950 [22:06:21]NVStorageDeleteData [22:06:21]Write to MH i2c: 01 00 00 AE 0C BA [22:06:21]Write i2c OK [22:06:21]MH_I2C_Read... [22:06:21]Read from MH i2c: 01 [22:06:21]MH_I2C_Read... [22:06:21]Read from MH i2c: 01 07 00 [22:06:21]MH_I2C_Read... [22:06:21]Read from MH i2c: 01 07 00 AE 0C 00 00 00 00 00 E8 0C B5 [22:06:21]RasterBufferAndPrint [22:06:21]line [22:06:21]line [22:06:21]line [22:06:21]line [22:06:21]line [22:06:21]written 0, free lines is 3310 [22:06:21]MH_Cut [22:06:21]Write to MH i2c: D1 01 00 B5 0C 01 93 [22:06:21]Write i2c OK [22:06:21]MH_I2C_Read... [22:06:21]Read from MH i2c: D1 [22:06:21]MH_I2C_Read... [22:06:21]Read from MH i2c: D1 01 00 [22:06:21]MH_I2C_Read... [22:06:21]Read from MH i2c: D1 01 00 B5 0C 00 92 [22:06:21]Write to MH i2c: 01 00 00 B6 0C C2 [22:06:21]Write i2c OK [22:06:21]MH_I2C_Read... [22:06:21]OFD Sender: No OFD packet to send [22:06:22]*** Cut start [22:06:22]*** Partial cut [22:06:22]*** CUTSNS_PIN = 1 [22:06:22]*** CUTSNS_PIN = 0 [22:06:22]*** Brake cut motor [22:06:22]Read from MH i2c: 01 [22:06:22]MH_I2C_Read... [22:06:22]*** Stop cut motor [22:06:22]*** Cut end [22:06:22]Read from MH i2c: 01 07 00 [22:06:22]MH_I2C_Read... [22:06:22]Read from MH i2c: 01 07 00 B6 0C 00 00 00 00 00 FF 0F D7 [22:06:22]process_action close_receipt done [22:06:22]requested_data is exist [22:06:22]produce_requested_data [22:06:22]requested_item fm.sn is exist - process it [22:06:22]wFMCommunicate request_size=4 [22:06:22]MH_SAM_APDU [22:06:22]CAPDU: 80 11 00 00 [22:06:22]Write to MH i2c: E2 08 00 B7 0C 80 11 00 00 00 00 00 00 3D [22:06:22]Write i2c OK [22:06:22]MH_I2C_Read... [22:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:22]Read from MH i2c: E2 [22:06:22]MH_I2C_Read... [22:06:22]Read from MH i2c: E2 17 00 [22:06:22]MH_I2C_Read... [22:06:22]Read from MH i2c: E2 17 00 B7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [22:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:06:22]wFMCommunicate OK [22:06:22]requested_item fd.num is exist - process it [22:06:22]SAM_PROTO_GetFieldsCounters [22:06:22]wFMCommunicate request_size=4 [22:06:22]MH_SAM_APDU [22:06:22]CAPDU: 80 13 00 00 [22:06:22]Write to MH i2c: E2 08 00 B8 0C 80 13 00 00 00 00 00 00 40 [22:06:22]Write i2c OK [22:06:22]MH_I2C_Read... [22:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:22]Read from MH i2c: E2 [22:06:22]MH_I2C_Read... [22:06:22]Read from MH i2c: E2 62 00 [22:06:22]MH_I2C_Read... [22:06:22]Read from MH i2c: E2 62 00 B8 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 22 02 00 0E 04 04 00 C5 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 F8 [22:06:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 22 02 00 0E 04 04 00 C5 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 [22:06:22]wFMCommunicate OK [22:06:22]SAM_PROTO_GetFieldsCounters done [22:06:22]requested_item shift.num is exist - process it [22:06:22]requested_item shift.opened is exist - process it [22:06:22]req_shift_opened [22:06:22]FM_GetShiftState [22:06:22]SAM_PROTO_GetShiftState [22:06:22]wFMCommunicate request_size=4 [22:06:22]MH_SAM_APDU [22:06:22]CAPDU: 80 13 01 00 [22:06:22]Write to MH i2c: E2 08 00 B9 0C 80 13 01 00 00 00 00 00 42 [22:06:22]Write i2c OK [22:06:22]MH_I2C_Read... [22:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:22]Read from MH i2c: E2 [22:06:22]MH_I2C_Read... [22:06:22]Read from MH i2c: E2 0E 00 [22:06:22]MH_I2C_Read... [22:06:22]Read from MH i2c: E2 0E 00 B9 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D3 [22:06:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:06:22]wFMCommunicate OK [22:06:22]SAM_PROTO_GetShiftState done [22:06:22]FM_GetShiftState done [22:06:22]req_shift_opened done [22:06:22]requested_item shift.open_date is exist - process it [22:06:22]req_shift_open_date [22:06:22]req_shift_open_date done [22:06:22]produce_requested_data done [22:06:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139950,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:06:22]process_action_free close_receipt [22:06:22]json_value_free [22:06:22]json_value_free done [22:06:22]process_json_proto returns [22:06:22]Send response to host [22:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139950,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:06:22]free response buf [22:06:22]execute_script done [22:06:22]execute_script returns [22:06:22]free content buf [22:06:22]Sock 9.Close socket [22:06:22]Sock 9.Thread stoped [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:24]accept exits with 10 [22:07:24]New connection [22:07:24]New thread 3066764644 created [22:07:24]Thread 3066908004 joined [22:07:24]Waiting for new connection... [22:07:24] Sock 10.Parse request [22:07:24]Sock 10.Check first char [22:07:24]Sock 10.First char is OK [22:07:24]request: POST /json_proto HTTP/1.0 [22:07:24]Method: POST [22:07:24]URL: /json_proto [22:07:24]Method is POST - this is cgi request [22:07:24]url: /json_proto [22:07:24]query_string will be loaded in cgi processing [22:07:24]execute_cgi json_proto POST (null) [22:07:24]execute_cgi path=json_proto method=POST [22:07:24]POST find Content-Length [22:07:24]Host: 172.17.45.67:8080 [22:07:24]Content-Length: 677 [22:07:24]Content-Type: application/json [22:07:24] [22:07:24]POST finish read [22:07:24]Found Content-Length = 677 [22:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:24]execute_script... [22:07:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:24]POST & json_proto [22:07:24]process_json_proto [22:07:24]json parsed OK: [22:07:24]protocol is kg_v1.0 [22:07:24]action value=close_receipt [22:07:24]process_action close_receipt [22:07:24]cmd_close_receipt [22:07:24]MH_GetDate [22:07:24]Write to MH i2c: F0 00 00 BA 0C B5 [22:07:24]Write i2c OK [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: F0 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: F0 09 00 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: F0 09 00 BA 0C 00 9C 13 C5 66 5F 7F 2B 66 07 [22:07:24]GetLastDocTimeStamp 1724191579 [22:07:24]current date 1724191644 [22:07:24]FM_GetShiftState [22:07:24]SAM_PROTO_GetShiftState [22:07:24]wFMCommunicate request_size=4 [22:07:24]MH_SAM_APDU [22:07:24]CAPDU: 80 13 01 00 [22:07:24]Write to MH i2c: E2 08 00 BB 0C 80 13 01 00 00 00 00 00 44 [22:07:24]Write i2c OK [22:07:24]MH_I2C_Read... [22:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:24]Read from MH i2c: E2 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: E2 0E 00 [22:07:24]MH_I2C_Read... [22:07:24]Read from MH i2c: E2 0E 00 BB 0C 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D5 [22:07:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:07:24]wFMCommunicate OK [22:07:24]SAM_PROTO_GetShiftState done [22:07:24]FM_GetShiftState done [22:07:24]opened in 1724113785 [22:07:24]opened+sec_in_day 1724200185 [22:07:24]quantity*price = 30035 [22:07:24]sum+1 = 30036 [22:07:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 423 20.08.2024 22:07 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139951 ФПД: 179064482848324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220724&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139951&fm=179064482848324&tin=02508201610067®Number=0000000000092569&sum=30000 [22:07:25]StoreToDocumentArchive [22:07:25]shift 453 fd 139951 [22:07:25]save to /storage/0453/doc_00139951 [22:07:25]save last doc name /storage/0453/doc_00139951 to /storage/kkm_last_doc_name [22:07:25]save OK [22:07:25]Clear old archive folders... [22:07:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:25]tlvbuf is 00A5F880 [22:07:25]SAM_PROTO_ClearQueue [22:07:25]wFMCommunicate request_size=4 [22:07:25]MH_SAM_APDU [22:07:25]CAPDU: 80 09 00 00 [22:07:25]Write to MH i2c: E2 08 00 C8 0C 80 09 00 00 00 00 00 00 46 [22:07:25]Write i2c OK [22:07:25]MH_I2C_Read... [22:07:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:25]Read from MH i2c: E2 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 03 00 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [22:07:25]RAPDU: 90 00 [22:07:25]wFMCommunicate OK [22:07:25]SAM_PROTO_ClearQueue done [22:07:25]KKMCreateOFDPacket [22:07:25]OFDProtocolAddRootSTLVToBuf [22:07:25]FM_MakeSignedData [22:07:25]FM_MakeSignedData [22:07:25]SAM_PROTO_SignData [22:07:25]wFMCommunicate request_size=4 [22:07:25]MH_SAM_APDU [22:07:25]CAPDU: 80 0D 01 02 [22:07:25]Write to MH i2c: E2 08 00 C9 0C 80 0D 01 02 00 00 00 00 4E [22:07:25]Write i2c OK [22:07:25]MH_I2C_Read... [22:07:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:25]Read from MH i2c: E2 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 03 00 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [22:07:25]RAPDU: 90 00 [22:07:25]wFMCommunicate OK [22:07:25]wFMCommunicate request_size=255 [22:07:25]MH_SAM_APDU [22:07:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 9C 13 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 22 02 00 35 04 06 00 A2 [22:07:25]Write to MH i2c: E2 02 01 CA 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 9C 13 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 22 02 00 35 04 06 00 A2 00 00 B3 [22:07:25]Write i2c OK [22:07:25]MH_I2C_Read... [22:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:25]Read from MH i2c: E2 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 03 00 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 03 00 CA 0C 00 90 00 4A [22:07:25]RAPDU: 90 00 [22:07:25]wFMCommunicate OK [22:07:25]wFMCommunicate request_size=10 [22:07:25]MH_SAM_APDU [22:07:25]CAPDU: 80 0D 02 02 05 DB B2 E4 5E 44 [22:07:25]Write to MH i2c: E2 0D 00 CB 0C 80 0D 02 02 05 00 DB B2 E4 5E 44 00 00 6E [22:07:25]Write i2c OK [22:07:25]MH_I2C_Read... [22:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:25]Read from MH i2c: E2 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 03 00 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 03 00 CB 0C 00 90 00 4B [22:07:25]RAPDU: 90 00 [22:07:25]wFMCommunicate OK [22:07:25]wFMCommunicate request_size=4 [22:07:25]MH_SAM_APDU [22:07:25]CAPDU: 80 0D 03 02 [22:07:25]Write to MH i2c: E2 08 00 CC 0C 80 0D 03 02 00 00 00 00 53 [22:07:25]Write i2c OK [22:07:25]MH_I2C_Read... [22:07:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:25]Read from MH i2c: E2 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 0B 00 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 0B 00 CC 0C 00 27 58 9E 1B 2C C8 45 31 90 00 F6 [22:07:25]RAPDU: 27 58 9E 1B 2C C8 45 31 90 00 [22:07:25]wFMCommunicate OK [22:07:25]SAM_PROTO_SignData done [22:07:25]FM_MakeSignedData done [22:07:25]CreateOFDProtocolMessage [22:07:25]wFMCommunicate request_size=4 [22:07:25]MH_SAM_APDU [22:07:25]CAPDU: 80 11 00 00 [22:07:25]Write to MH i2c: E2 08 00 CD 0C 80 11 00 00 00 00 00 00 53 [22:07:25]Write i2c OK [22:07:25]MH_I2C_Read... [22:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:25]Read from MH i2c: E2 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 17 00 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: E2 17 00 CD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [22:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:07:25]wFMCommunicate OK [22:07:25]CreateOFDProtocolMessage done [22:07:25]OFDSenderStorePacket 139951 [22:07:25]StoreOFDPacket docnum=139951 [22:07:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 61 B4 07 01 A2 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 9C 13 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 22 02 00 35 04 06 00 A2 DB B2 E4 5E 44 27 58 9E 1B 2C C8 45 31 [22:07:25]CheckFolder [22:07:25]dirname=/storage/ofd_packets [22:07:25]CheckFolder done [22:07:25]ProducePacketName [22:07:25]name=ofd_packets/00139951 [22:07:25]NVStorageSaveData ofd_packets/00139951 [22:07:25]File name is /storage/ofd_packets/00139951 [22:07:25]Write 301 bytes [22:07:25]NVStorageSaveData done [22:07:25]OFDSenderStorePacket done [22:07:25]KKMCreateOFDPacket done [22:07:25]NVStorageSaveData kkm_last_timestamp [22:07:25]File name is /storage/kkm_last_timestamp [22:07:25]Write 4 bytes [22:07:25]NVStorageSaveData done [22:07:25]ExternCall_PrintAddStr [22:07:25]wPrintStart [22:07:25]Write to MH i2c: 01 00 00 CE 0C DA [22:07:25]Write i2c OK [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: 01 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: 01 07 00 [22:07:25]MH_I2C_Read... [22:07:25]Read from MH i2c: 01 07 00 CE 0C 00 00 00 00 00 FF 0F EF [22:07:25]RasterBufferAndPrint [22:07:25]line Счет N : (1)593806 [22:07:25]line ИНН: 02508201610067 [22:07:25]line Контрольно-Кассовый Чек [22:07:25]line ПРОДАЖА [22:07:25]line ТРК (МРК, ГНК) : 42 [22:07:25]line Товар: 2710124130 [22:07:25]line Аи-92-К-5 [22:07:25]line 4.430 * 67.80 [22:07:25]line = 300.35 [22:07:25]line НДС 12% НСП 1% [22:07:25]line > о реализуемом товаре [22:07:25]line ОКРУГЛЕНИЕ: -0.35 [22:07:25]line ИТОГО: 300.00 [22:07:25]line Внесено: 300.00 [22:07:25]line СДАЧА: 0.00 [22:07:25]line НСП 1% : 2.66 [22:07:25]line НДС 12% : 31.90 [22:07:25]line Наличными: 300.00 [22:07:25]line Безнал.: 0.00 [22:07:25]line Место: АЗС № 136 "Партнер Нефть" [22:07:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:07:25]line СНО: Общий режим [22:07:25]line Чек 423 20.08.2024 22:07 [22:07:25]line Смена: 453 ФФД: 1.0 [22:07:25]line ЗНМ: 0300000067 [22:07:25]line РНМ: 0000000000092569 [22:07:25]line Версия ККМ: 001 [22:07:25]line ФМ: 0000000000871776 [22:07:25]line ФД: 139951 [22:07:25]line ФПД: 179064482848324 [22:07:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T220724&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139951&fm=179064482848324&tin=02508201610067®Number=0000000000092569&sum=30000 [22:07:26]written 0, free lines is 4095 [22:07:26]OFD Sender: Processing packet 139951 [packets to send 137, broken 136] [22:07:26]ProducePacketName [22:07:26]name=ofd_packets/00139951 [22:07:26]OFD Sender: To server: pG, [22:07:26]CommunicateWithHost lk.salyk.kg:30040 [22:07:26]ConnectInit lk.salyk.kg [22:07:26]Connected sock=9 [22:07:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 61 B4 07 01 A2 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 9C 13 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 22 02 00 35 04 06 00 A2 DB B2 E4 5E 44 27 58 9E 1B 2C C8 45 31 [22:07:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 28 51 47 00 B2 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 22 02 00 F4 03 04 00 2F BA C4 66 B6 04 01 00 00 C0 43 9C 86 B9 26 87 99 [22:07:26]CommunicateWithHost err = 0 [22:07:26]CheckOFDResponse [22:07:26]1017 (14) - 77093643461234 [22:07:26]1041 (16) - 0000000000871776 [22:07:26]1040 (4) - 139951 [22:07:26]1012 (4) - 20.08.2024 15:45 [22:07:26]1206 (1) - 0 [22:07:26]OFD Sender: Remove packet 139951 [22:07:26]ProducePacketName [22:07:26]name=ofd_packets/00139951 [22:07:26]NVStorageDeleteData [22:07:26]Write to MH i2c: 01 00 00 F9 0C 05 [22:07:26]Write i2c OK [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: 01 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: 01 07 00 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: 01 07 00 F9 0C 00 00 00 00 00 E0 0C F8 [22:07:26]RasterBufferAndPrint [22:07:26]line [22:07:26]line [22:07:26]line [22:07:26]line [22:07:26]line [22:07:26]written 0, free lines is 3305 [22:07:26]MH_Cut [22:07:26]Write to MH i2c: D1 01 00 00 0D 01 DF [22:07:26]Write i2c OK [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: D1 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: D1 01 00 [22:07:26]MH_I2C_Read... [22:07:26]Read from MH i2c: D1 01 00 00 0D 00 DE [22:07:26]Write to MH i2c: 01 00 00 01 0D 0E [22:07:26]Write i2c OK [22:07:26]MH_I2C_Read... [22:07:27]OFD Sender: No OFD packet to send [22:07:27]*** Cut start [22:07:27]*** Partial cut [22:07:27]*** CUTSNS_PIN = 1 [22:07:27]*** CUTSNS_PIN = 0 [22:07:27]*** Brake cut motor [22:07:27]Read from MH i2c: 01 [22:07:27]MH_I2C_Read... [22:07:27]*** Stop cut motor [22:07:27]*** Cut end [22:07:27]Read from MH i2c: 01 07 00 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: 01 07 00 01 0D 00 00 00 00 00 FF 0F 23 [22:07:27]process_action close_receipt done [22:07:27]requested_data is exist [22:07:27]produce_requested_data [22:07:27]requested_item fm.sn is exist - process it [22:07:27]wFMCommunicate request_size=4 [22:07:27]MH_SAM_APDU [22:07:27]CAPDU: 80 11 00 00 [22:07:27]Write to MH i2c: E2 08 00 02 0D 80 11 00 00 00 00 00 00 89 [22:07:27]Write i2c OK [22:07:27]MH_I2C_Read... [22:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:27]Read from MH i2c: E2 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: E2 17 00 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: E2 17 00 02 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [22:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:07:27]wFMCommunicate OK [22:07:27]requested_item fd.num is exist - process it [22:07:27]SAM_PROTO_GetFieldsCounters [22:07:27]wFMCommunicate request_size=4 [22:07:27]MH_SAM_APDU [22:07:27]CAPDU: 80 13 00 00 [22:07:27]Write to MH i2c: E2 08 00 03 0D 80 13 00 00 00 00 00 00 8C [22:07:27]Write i2c OK [22:07:27]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 62 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 62 00 03 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 22 02 00 0E 04 04 00 C5 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 48 [22:07:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 22 02 00 0E 04 04 00 C5 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 [22:07:28]wFMCommunicate OK [22:07:28]SAM_PROTO_GetFieldsCounters done [22:07:28]requested_item shift.num is exist - process it [22:07:28]requested_item shift.opened is exist - process it [22:07:28]req_shift_opened [22:07:28]FM_GetShiftState [22:07:28]SAM_PROTO_GetShiftState [22:07:28]wFMCommunicate request_size=4 [22:07:28]MH_SAM_APDU [22:07:28]CAPDU: 80 13 01 00 [22:07:28]Write to MH i2c: E2 08 00 04 0D 80 13 01 00 00 00 00 00 8E [22:07:28]Write i2c OK [22:07:28]MH_I2C_Read... [22:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:28]Read from MH i2c: E2 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 0E 00 [22:07:28]MH_I2C_Read... [22:07:28]Read from MH i2c: E2 0E 00 04 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 1F [22:07:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:07:28]wFMCommunicate OK [22:07:28]SAM_PROTO_GetShiftState done [22:07:28]FM_GetShiftState done [22:07:28]req_shift_opened done [22:07:28]requested_item shift.open_date is exist - process it [22:07:28]req_shift_open_date [22:07:28]req_shift_open_date done [22:07:28]produce_requested_data done [22:07:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139951,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:07:28]process_action_free close_receipt [22:07:28]json_value_free [22:07:28]json_value_free done [22:07:28]process_json_proto returns [22:07:28]Send response to host [22:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139951,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:07:28]free response buf [22:07:28]execute_script done [22:07:28]execute_script returns [22:07:28]free content buf [22:07:28]Sock 10.Close socket [22:07:28]Sock 10.Thread stoped [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]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:11:58]int [22:11:58]Write to MH i2c: 01 00 00 05 0D 12 [22:11:58]*** FLAG_PRN_KEY set [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 05 0D 00 08 00 00 00 FF 0F 2F [22:11:58]state=0 [22:11:58]Key pressed [22:11:58]Feed [22:11:58]Write to MH i2c: D8 00 00 06 0D EA [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: D8 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: D8 01 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: D8 01 00 06 0D 00 EB [22:11:58]int [22:11:58]Write to MH i2c: 01 00 00 07 0D 14 [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 07 0D 00 48 00 00 00 3C 00 9F [22:11:58]state=2 [22:11:58]Key pressed [22:11:58]int [22:11:58]Write to MH i2c: 01 00 00 08 0D 15 [22:11:58]*** FLAG_PRN_KEY reset [22:11:58]Write i2c OK [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 [22:11:58]MH_I2C_Read... [22:11:58]Read from MH i2c: 01 07 00 08 0D 00 00 00 00 00 F6 0F 21 [22:11:58]state=2 [22:11:58]Stop feed [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:41]accept exits with 7 [22:14:41]New connection [22:14:41]New thread 3066908004 created [22:14:41]Thread 3066764644 joined [22:14:41]Waiting for new connection... [22:14:41] Sock 7.Parse request [22:14:41]Sock 7.Check first char [22:14:41]Sock 7.First char is OK [22:14:41]request: POST /json_proto HTTP/1.0 [22:14:41]Method: POST [22:14:41]URL: /json_proto [22:14:41]Method is POST - this is cgi request [22:14:41]url: /json_proto [22:14:41]query_string will be loaded in cgi processing [22:14:41]execute_cgi json_proto POST (null) [22:14:41]execute_cgi path=json_proto method=POST [22:14:41]POST find Content-Length [22:14:41]Host: 172.17.45.67:8080 [22:14:41]Content-Length: 682 [22:14:41]Content-Type: application/json [22:14:41] [22:14:41]POST finish read [22:14:41]Found Content-Length = 682 [22:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:41]execute_script... [22:14: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)593808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:41]POST & json_proto [22:14:41]process_json_proto [22:14:41]json parsed OK: [22:14:41]protocol is kg_v1.0 [22:14:41]action value=close_receipt [22:14:41]process_action close_receipt [22:14:41]cmd_close_receipt [22:14:41]MH_GetDate [22:14:41]Write to MH i2c: F0 00 00 09 0D 05 [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: F0 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: F0 09 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: F0 09 00 09 0D 00 52 15 C5 66 5F 7F 2B 66 0F [22:14:41]GetLastDocTimeStamp 1724191644 [22:14:41]current date 1724192082 [22:14:41]FM_GetShiftState [22:14:41]SAM_PROTO_GetShiftState [22:14:41]wFMCommunicate request_size=4 [22:14:41]MH_SAM_APDU [22:14:41]CAPDU: 80 13 01 00 [22:14:41]Write to MH i2c: E2 08 00 0A 0D 80 13 01 00 00 00 00 00 94 [22:14:41]Write i2c OK [22:14:41]MH_I2C_Read... [22:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:41]Read from MH i2c: E2 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 0E 00 [22:14:41]MH_I2C_Read... [22:14:41]Read from MH i2c: E2 0E 00 0A 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 25 [22:14:41]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:14:41]wFMCommunicate OK [22:14:41]SAM_PROTO_GetShiftState done [22:14:41]FM_GetShiftState done [22:14:41]opened in 1724113785 [22:14:41]opened+sec_in_day 1724200185 [22:14:41]quantity*price = 100021 [22:14:41]sum+1 = 100023 [22:14: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 424 20.08.2024 22:14 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139952 ФПД: 168571097679623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T221442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139952&fm=168571097679623&tin=02508201610067®Number=0000000000092569&sum=100000 [22:14:43]StoreToDocumentArchive [22:14:43]shift 453 fd 139952 [22:14:43]save to /storage/0453/doc_00139952 [22:14:43]save last doc name /storage/0453/doc_00139952 to /storage/kkm_last_doc_name [22:14:43]save OK [22:14:43]Clear old archive folders... [22:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:14:43]tlvbuf is 00A6AA00 [22:14:43]SAM_PROTO_ClearQueue [22:14:43]wFMCommunicate request_size=4 [22:14:43]MH_SAM_APDU [22:14:43]CAPDU: 80 09 00 00 [22:14:43]Write to MH i2c: E2 08 00 17 0D 80 09 00 00 00 00 00 00 96 [22:14:43]Write i2c OK [22:14:43]MH_I2C_Read... [22:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:43]Read from MH i2c: E2 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 03 00 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 03 00 17 0D 00 90 00 98 [22:14:43]RAPDU: 90 00 [22:14:43]wFMCommunicate OK [22:14:43]SAM_PROTO_ClearQueue done [22:14:43]KKMCreateOFDPacket [22:14:43]OFDProtocolAddRootSTLVToBuf [22:14:43]FM_MakeSignedData [22:14:43]FM_MakeSignedData [22:14:43]SAM_PROTO_SignData [22:14:43]wFMCommunicate request_size=4 [22:14:43]MH_SAM_APDU [22:14:43]CAPDU: 80 0D 01 02 [22:14:43]Write to MH i2c: E2 08 00 18 0D 80 0D 01 02 00 00 00 00 9E [22:14:43]Write i2c OK [22:14:43]MH_I2C_Read... [22:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:43]Read from MH i2c: E2 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 03 00 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 03 00 18 0D 00 90 00 99 [22:14:43]RAPDU: 90 00 [22:14:43]wFMCommunicate OK [22:14:43]wFMCommunicate request_size=255 [22:14:43]MH_SAM_APDU [22:14:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 52 15 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 22 02 00 35 04 06 00 99 [22:14:43]Write to MH i2c: E2 02 01 19 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 52 15 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 22 02 00 35 04 06 00 99 00 00 C2 [22:14:43]Write i2c OK [22:14:43]MH_I2C_Read... [22:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:43]Read from MH i2c: E2 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 03 00 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 03 00 19 0D 00 90 00 9A [22:14:43]RAPDU: 90 00 [22:14:43]wFMCommunicate OK [22:14:43]wFMCommunicate request_size=10 [22:14:43]MH_SAM_APDU [22:14:43]CAPDU: 80 0D 02 02 05 50 84 65 87 07 [22:14:43]Write to MH i2c: E2 0D 00 1A 0D 80 0D 02 02 05 00 50 84 65 87 07 00 00 72 [22:14:43]Write i2c OK [22:14:43]MH_I2C_Read... [22:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:43]Read from MH i2c: E2 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 03 00 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 03 00 1A 0D 00 90 00 9B [22:14:43]RAPDU: 90 00 [22:14:43]wFMCommunicate OK [22:14:43]wFMCommunicate request_size=4 [22:14:43]MH_SAM_APDU [22:14:43]CAPDU: 80 0D 03 02 [22:14:43]Write to MH i2c: E2 08 00 1B 0D 80 0D 03 02 00 00 00 00 A3 [22:14:43]Write i2c OK [22:14:43]MH_I2C_Read... [22:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:43]Read from MH i2c: E2 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 0B 00 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 0B 00 1B 0D 00 C9 42 F6 22 1B 78 D0 8C 90 00 B6 [22:14:43]RAPDU: C9 42 F6 22 1B 78 D0 8C 90 00 [22:14:43]wFMCommunicate OK [22:14:43]SAM_PROTO_SignData done [22:14:43]FM_MakeSignedData done [22:14:43]CreateOFDProtocolMessage [22:14:43]wFMCommunicate request_size=4 [22:14:43]MH_SAM_APDU [22:14:43]CAPDU: 80 11 00 00 [22:14:43]Write to MH i2c: E2 08 00 1C 0D 80 11 00 00 00 00 00 00 A3 [22:14:43]Write i2c OK [22:14:43]MH_I2C_Read... [22:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:43]Read from MH i2c: E2 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 17 00 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: E2 17 00 1C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [22:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:14:43]wFMCommunicate OK [22:14:43]CreateOFDProtocolMessage done [22:14:43]OFDSenderStorePacket 139952 [22:14:43]StoreOFDPacket docnum=139952 [22:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CC 6E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 52 15 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 22 02 00 35 04 06 00 99 50 84 65 87 07 C9 42 F6 22 1B 78 D0 8C [22:14:43]CheckFolder [22:14:43]dirname=/storage/ofd_packets [22:14:43]CheckFolder done [22:14:43]ProducePacketName [22:14:43]name=ofd_packets/00139952 [22:14:43]NVStorageSaveData ofd_packets/00139952 [22:14:43]File name is /storage/ofd_packets/00139952 [22:14:43]Write 301 bytes [22:14:43]NVStorageSaveData done [22:14:43]OFDSenderStorePacket done [22:14:43]KKMCreateOFDPacket done [22:14:43]NVStorageSaveData kkm_last_timestamp [22:14:43]File name is /storage/kkm_last_timestamp [22:14:43]Write 4 bytes [22:14:43]NVStorageSaveData done [22:14:43]ExternCall_PrintAddStr [22:14:43]wPrintStart [22:14:43]Write to MH i2c: 01 00 00 1D 0D 2A [22:14:43]Write i2c OK [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: 01 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: 01 07 00 [22:14:43]MH_I2C_Read... [22:14:43]Read from MH i2c: 01 07 00 1D 0D 00 00 00 00 00 FF 0F 3F [22:14:43]RasterBufferAndPrint [22:14:43]line Счет N : (1)593808 [22:14:43]line ИНН: 02508201610067 [22:14:43]line Контрольно-Кассовый Чек [22:14:43]line ПРОДАЖА [22:14:43]line ТРК (МРК, ГНК) : 41 [22:14:43]line Товар: 2710124500 [22:14:43]line Аи-95-К-5 [22:14:43]line 13.480 * 74.20 [22:14:43]line = 1000.22 [22:14:43]line НДС 12% НСП 1% [22:14:43]line > о реализуемом товаре [22:14:43]line ОКРУГЛЕНИЕ: -0.22 [22:14:43]line ИТОГО: 1000.00 [22:14:43]line Внесено: 1000.00 [22:14:43]line СДАЧА: 0.00 [22:14:43]line НСП 1% : 8.85 [22:14:43]line НДС 12% : 106.22 [22:14:43]line Наличными: 1000.00 [22:14:43]line Безнал.: 0.00 [22:14:43]line Место: АЗС № 136 "Партнер Нефть" [22:14:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:14:43]line СНО: Общий режим [22:14:43]line Чек 424 20.08.2024 22:14 [22:14:43]line Смена: 453 ФФД: 1.0 [22:14:43]line ЗНМ: 0300000067 [22:14:43]line РНМ: 0000000000092569 [22:14:43]line Версия ККМ: 001 [22:14:43]line ФМ: 0000000000871776 [22:14:43]line ФД: 139952 [22:14:43]line ФПД: 168571097679623 [22:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T221442&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139952&fm=168571097679623&tin=02508201610067®Number=0000000000092569&sum=100000 [22:14:43]OFD Sender: Processing packet 139952 [packets to send 137, broken 136] [22:14:43]ProducePacketName [22:14:43]name=ofd_packets/00139952 [22:14:43]OFD Sender: To server: pG, [22:14:43]CommunicateWithHost lk.salyk.kg:30040 [22:14:43]ConnectInit lk.salyk.kg [22:14:43]written 0, free lines is 4095 [22:14:44]Connected sock=10 [22:14:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CC 6E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 52 15 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 22 02 00 35 04 06 00 99 50 84 65 87 07 C9 42 F6 22 1B 78 D0 8C [22:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AD B7 47 00 67 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 22 02 00 F4 03 04 00 E4 BB C4 66 B6 04 01 00 00 E7 91 63 20 80 E2 6C 57 [22:14:44]CommunicateWithHost err = 0 [22:14:44]CheckOFDResponse [22:14:44]1017 (14) - 77093643461234 [22:14:44]1041 (16) - 0000000000871776 [22:14:44]1040 (4) - 139952 [22:14:44]1012 (4) - 20.08.2024 15:53 [22:14:44]1206 (1) - 0 [22:14:44]OFD Sender: Remove packet 139952 [22:14:44]ProducePacketName [22:14:44]name=ofd_packets/00139952 [22:14:44]NVStorageDeleteData [22:14:44]Write to MH i2c: 01 00 00 48 0D 55 [22:14:44]Write i2c OK [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: 01 [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: 01 07 00 [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: 01 07 00 48 0D 00 00 00 00 00 D8 0C 40 [22:14:44]RasterBufferAndPrint [22:14:44]line [22:14:44]line [22:14:44]line [22:14:44]line [22:14:44]line [22:14:44]written 0, free lines is 3295 [22:14:44]MH_Cut [22:14:44]Write to MH i2c: D1 01 00 4F 0D 01 2E [22:14:44]Write i2c OK [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: D1 [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: D1 01 00 [22:14:44]MH_I2C_Read... [22:14:44]Read from MH i2c: D1 01 00 4F 0D 00 2D [22:14:44]Write to MH i2c: 01 00 00 50 0D 5D [22:14:44]Write i2c OK [22:14:44]MH_I2C_Read... [22:14:44]OFD Sender: No OFD packet to send [22:14:45]*** Cut start [22:14:45]*** Partial cut [22:14:45]*** CUTSNS_PIN = 1 [22:14:45]*** CUTSNS_PIN = 0 [22:14:45]*** Brake cut motor [22:14:45]Read from MH i2c: 01 [22:14:45]MH_I2C_Read... [22:14:45]*** Stop cut motor [22:14:45]*** Cut end [22:14:45]Read from MH i2c: 01 07 00 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: 01 07 00 50 0D 00 00 00 00 00 FF 0F 72 [22:14:45]process_action close_receipt done [22:14:45]requested_data is exist [22:14:45]produce_requested_data [22:14:45]requested_item fm.sn is exist - process it [22:14:45]wFMCommunicate request_size=4 [22:14:45]MH_SAM_APDU [22:14:45]CAPDU: 80 11 00 00 [22:14:45]Write to MH i2c: E2 08 00 51 0D 80 11 00 00 00 00 00 00 D8 [22:14:45]Write i2c OK [22:14:45]MH_I2C_Read... [22:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:45]Read from MH i2c: E2 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 17 00 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 17 00 51 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [22:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:14:45]wFMCommunicate OK [22:14:45]requested_item fd.num is exist - process it [22:14:45]SAM_PROTO_GetFieldsCounters [22:14:45]wFMCommunicate request_size=4 [22:14:45]MH_SAM_APDU [22:14:45]CAPDU: 80 13 00 00 [22:14:45]Write to MH i2c: E2 08 00 52 0D 80 13 00 00 00 00 00 00 DB [22:14:45]Write i2c OK [22:14:45]MH_I2C_Read... [22:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:45]Read from MH i2c: E2 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 62 00 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 62 00 52 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 22 02 00 0E 04 04 00 C5 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 9B [22:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 22 02 00 0E 04 04 00 C5 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 [22:14:45]wFMCommunicate OK [22:14:45]SAM_PROTO_GetFieldsCounters done [22:14:45]requested_item shift.num is exist - process it [22:14:45]requested_item shift.opened is exist - process it [22:14:45]req_shift_opened [22:14:45]FM_GetShiftState [22:14:45]SAM_PROTO_GetShiftState [22:14:45]wFMCommunicate request_size=4 [22:14:45]MH_SAM_APDU [22:14:45]CAPDU: 80 13 01 00 [22:14:45]Write to MH i2c: E2 08 00 53 0D 80 13 01 00 00 00 00 00 DD [22:14:45]Write i2c OK [22:14:45]MH_I2C_Read... [22:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:45]Read from MH i2c: E2 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 0E 00 [22:14:45]MH_I2C_Read... [22:14:45]Read from MH i2c: E2 0E 00 53 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6E [22:14:45]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:14:45]wFMCommunicate OK [22:14:45]SAM_PROTO_GetShiftState done [22:14:45]FM_GetShiftState done [22:14:45]req_shift_opened done [22:14:45]requested_item shift.open_date is exist - process it [22:14:45]req_shift_open_date [22:14:45]req_shift_open_date done [22:14:45]produce_requested_data done [22:14:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139952,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:14:45]process_action_free close_receipt [22:14:45]json_value_free [22:14:45]json_value_free done [22:14:45]process_json_proto returns [22:14:45]Send response to host [22:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139952,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:14:45]free response buf [22:14:45]execute_script done [22:14:45]execute_script returns [22:14:45]free content buf [22:14:45]Sock 7.Close socket [22:14:45]Sock 7.Thread stoped [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]accept exits with 9 [22:15:09]New connection [22:15:09]New thread 3066764644 created [22:15:09]Thread 3066908004 joined [22:15:09]Waiting for new connection... [22:15:09] Sock 9.Parse request [22:15:09]Sock 9.Check first char [22:15:09]Sock 9.First char is OK [22:15:09]request: POST /json_proto HTTP/1.0 [22:15:09]Method: POST [22:15:09]URL: /json_proto [22:15:09]Method is POST - this is cgi request [22:15:09]url: /json_proto [22:15:09]query_string will be loaded in cgi processing [22:15:09]execute_cgi json_proto POST (null) [22:15:09]execute_cgi path=json_proto method=POST [22:15:09]POST find Content-Length [22:15:09]Host: 172.17.45.67:8080 [22:15:09]Content-Length: 682 [22:15:09]Content-Type: application/json [22:15:09] [22:15:09]POST finish read [22:15:09]Found Content-Length = 682 [22:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:09]execute_script... [22:15: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)593807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:09]POST & json_proto [22:15:09]process_json_proto [22:15:09]json parsed OK: [22:15:09]protocol is kg_v1.0 [22:15:09]action value=close_receipt [22:15:09]process_action close_receipt [22:15:09]cmd_close_receipt [22:15:09]MH_GetDate [22:15:09]Write to MH i2c: F0 00 00 54 0D 50 [22:15:09]Write i2c OK [22:15:09]MH_I2C_Read... [22:15:09]Read from MH i2c: F0 [22:15:09]MH_I2C_Read... [22:15:09]Read from MH i2c: F0 09 00 [22:15:09]MH_I2C_Read... [22:15:09]Read from MH i2c: F0 09 00 54 0D 00 6D 15 C5 66 5F 7F 2B 66 75 [22:15:09]GetLastDocTimeStamp 1724192082 [22:15:09]current date 1724192109 [22:15:09]FM_GetShiftState [22:15:09]SAM_PROTO_GetShiftState [22:15:09]wFMCommunicate request_size=4 [22:15:09]MH_SAM_APDU [22:15:09]CAPDU: 80 13 01 00 [22:15:09]Write to MH i2c: E2 08 00 55 0D 80 13 01 00 00 00 00 00 DF [22:15:09]Write i2c OK [22:15:09]MH_I2C_Read... [22:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:09]Read from MH i2c: E2 [22:15:09]MH_I2C_Read... [22:15:09]Read from MH i2c: E2 0E 00 [22:15:09]MH_I2C_Read... [22:15:09]Read from MH i2c: E2 0E 00 55 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 70 [22:15:09]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:15:09]wFMCommunicate OK [22:15:09]SAM_PROTO_GetShiftState done [22:15:09]FM_GetShiftState done [22:15:09]opened in 1724113785 [22:15:09]opened+sec_in_day 1724200185 [22:15:09]quantity*price = 200043 [22:15:09]sum+1 = 200044 [22:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 425 20.08.2024 22:15 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139953 ФПД: 255789895629771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T221509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139953&fm=255789895629771&tin=02508201610067®Number=0000000000092569&sum=200000 [22:15:10]StoreToDocumentArchive [22:15:10]shift 453 fd 139953 [22:15:10]save to /storage/0453/doc_00139953 [22:15:10]save last doc name /storage/0453/doc_00139953 to /storage/kkm_last_doc_name [22:15:10]save OK [22:15:10]Clear old archive folders... [22:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:10]tlvbuf is 00A15C10 [22:15:10]SAM_PROTO_ClearQueue [22:15:10]wFMCommunicate request_size=4 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 09 00 00 [22:15:10]Write to MH i2c: E2 08 00 62 0D 80 09 00 00 00 00 00 00 E1 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 03 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 03 00 62 0D 00 90 00 E3 [22:15:10]RAPDU: 90 00 [22:15:10]wFMCommunicate OK [22:15:10]SAM_PROTO_ClearQueue done [22:15:10]KKMCreateOFDPacket [22:15:10]OFDProtocolAddRootSTLVToBuf [22:15:10]FM_MakeSignedData [22:15:10]FM_MakeSignedData [22:15:10]SAM_PROTO_SignData [22:15:10]wFMCommunicate request_size=4 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 0D 01 02 [22:15:10]Write to MH i2c: E2 08 00 63 0D 80 0D 01 02 00 00 00 00 E9 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 03 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 03 00 63 0D 00 90 00 E4 [22:15:10]RAPDU: 90 00 [22:15:10]wFMCommunicate OK [22:15:10]wFMCommunicate request_size=255 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A9 01 00 00 F4 03 04 00 6D 15 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 22 02 00 35 04 06 00 E8 [22:15:10]Write to MH i2c: E2 02 01 64 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A9 01 00 00 F4 03 04 00 6D 15 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 22 02 00 35 04 06 00 E8 00 00 04 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 03 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 03 00 64 0D 00 90 00 E5 [22:15:10]RAPDU: 90 00 [22:15:10]wFMCommunicate OK [22:15:10]wFMCommunicate request_size=10 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 0D 02 02 05 A3 B9 DD BB CB [22:15:10]Write to MH i2c: E2 0D 00 65 0D 80 0D 02 02 05 00 A3 B9 DD BB CB 00 00 B5 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 03 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 03 00 65 0D 00 90 00 E6 [22:15:10]RAPDU: 90 00 [22:15:10]wFMCommunicate OK [22:15:10]wFMCommunicate request_size=4 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 0D 03 02 [22:15:10]Write to MH i2c: E2 08 00 66 0D 80 0D 03 02 00 00 00 00 EE [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0B 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 0B 00 66 0D 00 3C 3C 6E 02 70 32 29 4B 90 00 ED [22:15:10]RAPDU: 3C 3C 6E 02 70 32 29 4B 90 00 [22:15:10]wFMCommunicate OK [22:15:10]SAM_PROTO_SignData done [22:15:10]FM_MakeSignedData done [22:15:10]CreateOFDProtocolMessage [22:15:10]wFMCommunicate request_size=4 [22:15:10]MH_SAM_APDU [22:15:10]CAPDU: 80 11 00 00 [22:15:10]Write to MH i2c: E2 08 00 67 0D 80 11 00 00 00 00 00 00 EE [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:10]Read from MH i2c: E2 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 17 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: E2 17 00 67 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [22:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:15:10]wFMCommunicate OK [22:15:10]CreateOFDProtocolMessage done [22:15:10]OFDSenderStorePacket 139953 [22:15:10]StoreOFDPacket docnum=139953 [22:15:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B E0 07 01 8E 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A9 01 00 00 F4 03 04 00 6D 15 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 22 02 00 35 04 06 00 E8 A3 B9 DD BB CB 3C 3C 6E 02 70 32 29 4B [22:15:10]CheckFolder [22:15:10]dirname=/storage/ofd_packets [22:15:10]CheckFolder done [22:15:10]ProducePacketName [22:15:10]name=ofd_packets/00139953 [22:15:10]NVStorageSaveData ofd_packets/00139953 [22:15:10]File name is /storage/ofd_packets/00139953 [22:15:10]Write 301 bytes [22:15:10]NVStorageSaveData done [22:15:10]OFDSenderStorePacket done [22:15:10]KKMCreateOFDPacket done [22:15:10]NVStorageSaveData kkm_last_timestamp [22:15:10]File name is /storage/kkm_last_timestamp [22:15:10]Write 4 bytes [22:15:10]NVStorageSaveData done [22:15:10]ExternCall_PrintAddStr [22:15:10]wPrintStart [22:15:10]Write to MH i2c: 01 00 00 68 0D 75 [22:15:10]Write i2c OK [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: 01 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: 01 07 00 [22:15:10]MH_I2C_Read... [22:15:10]Read from MH i2c: 01 07 00 68 0D 00 00 00 00 00 FF 0F 8A [22:15:10]RasterBufferAndPrint [22:15:10]line Счет N : (1)593807 [22:15:10]line ИНН: 02508201610067 [22:15:10]line Контрольно-Кассовый Чек [22:15:10]line ПРОДАЖА [22:15:10]line ТРК (МРК, ГНК) : 31 [22:15:10]line Товар: 2710124500 [22:15:10]line Аи-95-К-5 [22:15:10]line 26.960 * 74.20 [22:15:10]line = 2000.43 [22:15:10]line НДС 12% НСП 1% [22:15:10]line > о реализуемом товаре [22:15:10]line ОКРУГЛЕНИЕ: -0.43 [22:15:10]line ИТОГО: 2000.00 [22:15:10]line Внесено: 2000.00 [22:15:10]line СДАЧА: 0.00 [22:15:10]line НСП 1% : 17.70 [22:15:10]line НДС 12% : 212.43 [22:15:10]line Наличными: 2000.00 [22:15:10]line Безнал.: 0.00 [22:15:10]line Место: АЗС № 136 "Партнер Нефть" [22:15:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:15:10]line СНО: Общий режим [22:15:10]line Чек 425 20.08.2024 22:15 [22:15:10]line Смена: 453 ФФД: 1.0 [22:15:10]line ЗНМ: 0300000067 [22:15:10]line РНМ: 0000000000092569 [22:15:10]line Версия ККМ: 001 [22:15:10]line ФМ: 0000000000871776 [22:15:10]line ФД: 139953 [22:15:11]line ФПД: 255789895629771 [22:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T221509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139953&fm=255789895629771&tin=02508201610067®Number=0000000000092569&sum=200000 [22:15:11]OFD Sender: Processing packet 139953 [packets to send 137, broken 136] [22:15:11]ProducePacketName [22:15:11]name=ofd_packets/00139953 [22:15:11]OFD Sender: To server: pG, [22:15:11]CommunicateWithHost lk.salyk.kg:30040 [22:15:11]ConnectInit lk.salyk.kg [22:15:11]written 0, free lines is 4095 [22:15:11]Connected sock=10 [22:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B E0 07 01 8E 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 A9 01 00 00 F4 03 04 00 6D 15 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 22 02 00 35 04 06 00 E8 A3 B9 DD BB CB 3C 3C 6E 02 70 32 29 4B [22:15:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 90 67 47 00 5F E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 22 02 00 F4 03 04 00 00 BC C4 66 B6 04 01 00 00 AB AD B0 D8 0D E8 D0 F9 [22:15:11]CommunicateWithHost err = 0 [22:15:11]CheckOFDResponse [22:15:11]1017 (14) - 77093643461234 [22:15:11]1041 (16) - 0000000000871776 [22:15:11]1040 (4) - 139953 [22:15:11]1012 (4) - 20.08.2024 15:53 [22:15:11]1206 (1) - 0 [22:15:11]OFD Sender: Remove packet 139953 [22:15:11]ProducePacketName [22:15:11]name=ofd_packets/00139953 [22:15:11]NVStorageDeleteData [22:15:11]Write to MH i2c: 01 00 00 93 0D A0 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: 01 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: 01 07 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 D4 0C 87 [22:15:11]RasterBufferAndPrint [22:15:11]line [22:15:11]line [22:15:11]line [22:15:11]line [22:15:11]line [22:15:11]written 0, free lines is 3289 [22:15:11]MH_Cut [22:15:11]Write to MH i2c: D1 01 00 9A 0D 01 79 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: D1 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: D1 01 00 [22:15:11]MH_I2C_Read... [22:15:11]Read from MH i2c: D1 01 00 9A 0D 00 78 [22:15:11]Write to MH i2c: 01 00 00 9B 0D A8 [22:15:11]Write i2c OK [22:15:11]MH_I2C_Read... [22:15:12]OFD Sender: No OFD packet to send [22:15:12]*** Cut start [22:15:12]*** Partial cut [22:15:12]*** CUTSNS_PIN = 1 [22:15:12]*** CUTSNS_PIN = 0 [22:15:12]*** Brake cut motor [22:15:12]Read from MH i2c: 01 [22:15:12]MH_I2C_Read... [22:15:12]*** Stop cut motor [22:15:12]*** Cut end [22:15:12]Read from MH i2c: 01 07 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: 01 07 00 9B 0D 00 00 00 00 00 FF 0F BD [22:15:12]process_action close_receipt done [22:15:12]requested_data is exist [22:15:12]produce_requested_data [22:15:12]requested_item fm.sn is exist - process it [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 11 00 00 [22:15:12]Write to MH i2c: E2 08 00 9C 0D 80 11 00 00 00 00 00 00 23 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:12]Read from MH i2c: E2 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 [22:15:12]MH_I2C_Read... [22:15:12]Read from MH i2c: E2 17 00 9C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [22:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:15:12]wFMCommunicate OK [22:15:12]requested_item fd.num is exist - process it [22:15:12]SAM_PROTO_GetFieldsCounters [22:15:12]wFMCommunicate request_size=4 [22:15:12]MH_SAM_APDU [22:15:12]CAPDU: 80 13 00 00 [22:15:12]Write to MH i2c: E2 08 00 9D 0D 80 13 00 00 00 00 00 00 26 [22:15:12]Write i2c OK [22:15:12]MH_I2C_Read... [22:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:13]Read from MH i2c: E2 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: E2 62 00 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: E2 62 00 9D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 22 02 00 0E 04 04 00 C5 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 EA [22:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 22 02 00 0E 04 04 00 C5 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:15:13]wFMCommunicate OK [22:15:13]SAM_PROTO_GetFieldsCounters done [22:15:13]requested_item shift.num is exist - process it [22:15:13]requested_item shift.opened is exist - process it [22:15:13]req_shift_opened [22:15:13]FM_GetShiftState [22:15:13]SAM_PROTO_GetShiftState [22:15:13]wFMCommunicate request_size=4 [22:15:13]MH_SAM_APDU [22:15:13]CAPDU: 80 13 01 00 [22:15:13]Write to MH i2c: E2 08 00 9E 0D 80 13 01 00 00 00 00 00 28 [22:15:13]Write i2c OK [22:15:13]MH_I2C_Read... [22:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:13]Read from MH i2c: E2 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: E2 0E 00 [22:15:13]MH_I2C_Read... [22:15:13]Read from MH i2c: E2 0E 00 9E 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B9 [22:15:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:15:13]wFMCommunicate OK [22:15:13]SAM_PROTO_GetShiftState done [22:15:13]FM_GetShiftState done [22:15:13]req_shift_opened done [22:15:13]requested_item shift.open_date is exist - process it [22:15:13]req_shift_open_date [22:15:13]req_shift_open_date done [22:15:13]produce_requested_data done [22:15:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139953,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:15:13]process_action_free close_receipt [22:15:13]json_value_free [22:15:13]json_value_free done [22:15:13]process_json_proto returns [22:15:13]Send response to host [22:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139953,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:15:13]free response buf [22:15:13]execute_script done [22:15:13]execute_script returns [22:15:13]free content buf [22:15:13]Sock 9.Close socket [22:15:13]Sock 9.Thread stoped [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17: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:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:25]accept exits with 7 [22:19:25]New connection [22:19:25]New thread 3066908004 created [22:19:25]Thread 3066764644 joined [22:19:25]Waiting for new connection... [22:19:25] Sock 7.Parse request [22:19:25]Sock 7.Check first char [22:19:25]Sock 7.First char is OK [22:19:25]request: POST /json_proto HTTP/1.0 [22:19:25]Method: POST [22:19:25]URL: /json_proto [22:19:25]Method is POST - this is cgi request [22:19:25]url: /json_proto [22:19:25]query_string will be loaded in cgi processing [22:19:25]execute_cgi json_proto POST (null) [22:19:25]execute_cgi path=json_proto method=POST [22:19:25]POST find Content-Length [22:19:25]Host: 172.17.45.67:8080 [22:19:25]Content-Length: 682 [22:19:25]Content-Type: application/json [22:19:25] [22:19:25]POST finish read [22:19:25]Found Content-Length = 682 [22:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:25]execute_script... [22:19: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)593809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:25]POST & json_proto [22:19:25]process_json_proto [22:19:25]json parsed OK: [22:19:25]protocol is kg_v1.0 [22:19:25]action value=close_receipt [22:19:25]process_action close_receipt [22:19:25]cmd_close_receipt [22:19:25]MH_GetDate [22:19:25]Write to MH i2c: F0 00 00 9F 0D 9B [22:19:25]Write i2c OK [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: F0 [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: F0 09 00 [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: F0 09 00 9F 0D 00 6E 16 C5 66 5F 7F 2B 66 C2 [22:19:25]GetLastDocTimeStamp 1724192109 [22:19:25]current date 1724192366 [22:19:25]FM_GetShiftState [22:19:25]SAM_PROTO_GetShiftState [22:19:25]wFMCommunicate request_size=4 [22:19:25]MH_SAM_APDU [22:19:25]CAPDU: 80 13 01 00 [22:19:25]Write to MH i2c: E2 08 00 A0 0D 80 13 01 00 00 00 00 00 2A [22:19:25]Write i2c OK [22:19:25]MH_I2C_Read... [22:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:25]Read from MH i2c: E2 [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: E2 0E 00 [22:19:25]MH_I2C_Read... [22:19:25]Read from MH i2c: E2 0E 00 A0 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BB [22:19:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:19:25]wFMCommunicate OK [22:19:25]SAM_PROTO_GetShiftState done [22:19:25]FM_GetShiftState done [22:19:25]opened in 1724113785 [22:19:25]opened+sec_in_day 1724200185 [22:19:25]quantity*price = 100005 [22:19:25]sum+1 = 100006 [22:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 426 20.08.2024 22:19 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139954 ФПД: 144394447193305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T221926&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139954&fm=144394447193305&tin=02508201610067®Number=0000000000092569&sum=100000 [22:19:26]StoreToDocumentArchive [22:19:26]shift 453 fd 139954 [22:19:26]save to /storage/0453/doc_00139954 [22:19:26]save last doc name /storage/0453/doc_00139954 to /storage/kkm_last_doc_name [22:19:26]save OK [22:19:26]Clear old archive folders... [22:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:19:26]tlvbuf is 00A7CC80 [22:19:26]SAM_PROTO_ClearQueue [22:19:26]wFMCommunicate request_size=4 [22:19:26]MH_SAM_APDU [22:19:26]CAPDU: 80 09 00 00 [22:19:26]Write to MH i2c: E2 08 00 AD 0D 80 09 00 00 00 00 00 00 2C [22:19:26]Write i2c OK [22:19:26]MH_I2C_Read... [22:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:26]Read from MH i2c: E2 [22:19:26]MH_I2C_Read... [22:19:26]Read from MH i2c: E2 03 00 [22:19:26]MH_I2C_Read... [22:19:26]Read from MH i2c: E2 03 00 AD 0D 00 90 00 2E [22:19:26]RAPDU: 90 00 [22:19:26]wFMCommunicate OK [22:19:26]SAM_PROTO_ClearQueue done [22:19:26]KKMCreateOFDPacket [22:19:26]OFDProtocolAddRootSTLVToBuf [22:19:26]FM_MakeSignedData [22:19:26]FM_MakeSignedData [22:19:26]SAM_PROTO_SignData [22:19:26]wFMCommunicate request_size=4 [22:19:26]MH_SAM_APDU [22:19:26]CAPDU: 80 0D 01 02 [22:19:26]Write to MH i2c: E2 08 00 AE 0D 80 0D 01 02 00 00 00 00 34 [22:19:26]Write i2c OK [22:19:26]MH_I2C_Read... [22:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:26]Read from MH i2c: E2 [22:19:26]MH_I2C_Read... [22:19:26]Read from MH i2c: E2 03 00 [22:19:26]MH_I2C_Read... [22:19:26]Read from MH i2c: E2 03 00 AE 0D 00 90 00 2F [22:19:26]RAPDU: 90 00 [22:19:26]wFMCommunicate OK [22:19:26]wFMCommunicate request_size=255 [22:19:26]MH_SAM_APDU [22:19:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 6E 16 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 22 02 00 35 04 06 00 83 [22:19:26]Write to MH i2c: E2 02 01 AF 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 6E 16 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 22 02 00 35 04 06 00 83 00 00 C5 [22:19:26]Write i2c OK [22:19:26]MH_I2C_Read... [22:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:27]Read from MH i2c: E2 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 AF 0D 00 90 00 30 [22:19:27]RAPDU: 90 00 [22:19:27]wFMCommunicate OK [22:19:27]wFMCommunicate request_size=10 [22:19:27]MH_SAM_APDU [22:19:27]CAPDU: 80 0D 02 02 05 53 73 BB 84 D9 [22:19:27]Write to MH i2c: E2 0D 00 B0 0D 80 0D 02 02 05 00 53 73 BB 84 D9 00 00 1F [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:27]Read from MH i2c: E2 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 03 00 B0 0D 00 90 00 31 [22:19:27]RAPDU: 90 00 [22:19:27]wFMCommunicate OK [22:19:27]wFMCommunicate request_size=4 [22:19:27]MH_SAM_APDU [22:19:27]CAPDU: 80 0D 03 02 [22:19:27]Write to MH i2c: E2 08 00 B1 0D 80 0D 03 02 00 00 00 00 39 [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:27]Read from MH i2c: E2 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 0B 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 0B 00 B1 0D 00 D7 BD 96 55 2F 1D 4D BB 90 00 0D [22:19:27]RAPDU: D7 BD 96 55 2F 1D 4D BB 90 00 [22:19:27]wFMCommunicate OK [22:19:27]SAM_PROTO_SignData done [22:19:27]FM_MakeSignedData done [22:19:27]CreateOFDProtocolMessage [22:19:27]wFMCommunicate request_size=4 [22:19:27]MH_SAM_APDU [22:19:27]CAPDU: 80 11 00 00 [22:19:27]Write to MH i2c: E2 08 00 B2 0D 80 11 00 00 00 00 00 00 39 [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:27]Read from MH i2c: E2 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 17 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: E2 17 00 B2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [22:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:19:27]wFMCommunicate OK [22:19:27]CreateOFDProtocolMessage done [22:19:27]OFDSenderStorePacket 139954 [22:19:27]StoreOFDPacket docnum=139954 [22:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E6 8B 07 01 D0 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 6E 16 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 22 02 00 35 04 06 00 83 53 73 BB 84 D9 D7 BD 96 55 2F 1D 4D BB [22:19:27]CheckFolder [22:19:27]dirname=/storage/ofd_packets [22:19:27]CheckFolder done [22:19:27]ProducePacketName [22:19:27]name=ofd_packets/00139954 [22:19:27]NVStorageSaveData ofd_packets/00139954 [22:19:27]File name is /storage/ofd_packets/00139954 [22:19:27]Write 301 bytes [22:19:27]NVStorageSaveData done [22:19:27]OFDSenderStorePacket done [22:19:27]KKMCreateOFDPacket done [22:19:27]NVStorageSaveData kkm_last_timestamp [22:19:27]File name is /storage/kkm_last_timestamp [22:19:27]Write 4 bytes [22:19:27]NVStorageSaveData done [22:19:27]ExternCall_PrintAddStr [22:19:27]wPrintStart [22:19:27]Write to MH i2c: 01 00 00 B3 0D C0 [22:19:27]Write i2c OK [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: 01 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: 01 07 00 [22:19:27]MH_I2C_Read... [22:19:27]Read from MH i2c: 01 07 00 B3 0D 00 00 00 00 00 FF 0F D5 [22:19:27]RasterBufferAndPrint [22:19:27]line Счет N : (1)593809 [22:19:27]line ИНН: 02508201610067 [22:19:27]line Контрольно-Кассовый Чек [22:19:27]line ПРОДАЖА [22:19:27]line ТРК (МРК, ГНК) : 52 [22:19:27]line Товар: 2710124130 [22:19:27]line Аи-92-К-5 [22:19:27]line 14.750 * 67.80 [22:19:27]line = 1000.05 [22:19:27]line НДС 12% НСП 1% [22:19:27]line > о реализуемом товаре [22:19:27]line ОКРУГЛЕНИЕ: -0.05 [22:19:27]line ИТОГО: 1000.00 [22:19:27]line Внесено: 1000.00 [22:19:27]line СДАЧА: 0.00 [22:19:27]line НСП 1% : 8.85 [22:19:27]line НДС 12% : 106.20 [22:19:27]line Наличными: 1000.00 [22:19:27]line Безнал.: 0.00 [22:19:27]line Место: АЗС № 136 "Партнер Нефть" [22:19:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:19:27]line СНО: Общий режим [22:19:27]line Чек 426 20.08.2024 22:19 [22:19:27]line Смена: 453 ФФД: 1.0 [22:19:27]line ЗНМ: 0300000067 [22:19:27]line РНМ: 0000000000092569 [22:19:27]line Версия ККМ: 001 [22:19:27]line ФМ: 0000000000871776 [22:19:27]line ФД: 139954 [22:19:27]line ФПД: 144394447193305 [22:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T221926&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139954&fm=144394447193305&tin=02508201610067®Number=0000000000092569&sum=100000 [22:19:27]OFD Sender: Processing packet 139954 [packets to send 137, broken 136] [22:19:27]ProducePacketName [22:19:27]name=ofd_packets/00139954 [22:19:27]OFD Sender: To server: pG, [22:19:27]CommunicateWithHost lk.salyk.kg:30040 [22:19:27]ConnectInit lk.salyk.kg [22:19:27]written 0, free lines is 4095 [22:19:27]Connected sock=11 [22:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E6 8B 07 01 D0 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 6E 16 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 22 02 00 35 04 06 00 83 53 73 BB 84 D9 D7 BD 96 55 2F 1D 4D BB [22:19:28]Write to MH i2c: 01 00 00 DE 0D EB [22:19:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AF C1 47 00 D1 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 22 02 00 F4 03 04 00 00 BD C4 66 B6 04 01 00 00 0B C7 8D 20 EE 9B F4 AF [22:19:28]CommunicateWithHost err = 0 [22:19:28]CheckOFDResponse [22:19:28]1017 (14) - 77093643461234 [22:19:28]1041 (16) - 0000000000871776 [22:19:28]1040 (4) - 139954 [22:19:28]1012 (4) - 20.08.2024 15:57 [22:19:28]1206 (1) - 0 [22:19:28]OFD Sender: Remove packet 139954 [22:19:28]ProducePacketName [22:19:28]name=ofd_packets/00139954 [22:19:28]NVStorageDeleteData [22:19:28]Write i2c OK [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: 01 [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: 01 07 00 [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: 01 07 00 DE 0D 00 00 00 00 00 D1 0C CF [22:19:28]RasterBufferAndPrint [22:19:28]line [22:19:28]line [22:19:28]line [22:19:28]line [22:19:28]line [22:19:28]written 0, free lines is 3292 [22:19:28]MH_Cut [22:19:28]Write to MH i2c: D1 01 00 E5 0D 01 C4 [22:19:28]Write i2c OK [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: D1 [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: D1 01 00 [22:19:28]MH_I2C_Read... [22:19:28]Read from MH i2c: D1 01 00 E5 0D 00 C3 [22:19:28]Write to MH i2c: 01 00 00 E6 0D F3 [22:19:28]Write i2c OK [22:19:28]MH_I2C_Read... [22:19:28]OFD Sender: No OFD packet to send [22:19:28]*** Cut start [22:19:28]*** Partial cut [22:19:28]*** CUTSNS_PIN = 1 [22:19:28]*** CUTSNS_PIN = 0 [22:19:29]*** Brake cut motor [22:19:29]Read from MH i2c: 01 [22:19:29]MH_I2C_Read... [22:19:29]*** Stop cut motor [22:19:29]*** Cut end [22:19:29]Read from MH i2c: 01 07 00 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: 01 07 00 E6 0D 00 00 00 00 00 FF 0F 08 [22:19:29]process_action close_receipt done [22:19:29]requested_data is exist [22:19:29]produce_requested_data [22:19:29]requested_item fm.sn is exist - process it [22:19:29]wFMCommunicate request_size=4 [22:19:29]MH_SAM_APDU [22:19:29]CAPDU: 80 11 00 00 [22:19:29]Write to MH i2c: E2 08 00 E7 0D 80 11 00 00 00 00 00 00 6E [22:19:29]Write i2c OK [22:19:29]MH_I2C_Read... [22:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:29]Read from MH i2c: E2 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: E2 17 00 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: E2 17 00 E7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C5 [22:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:19:29]wFMCommunicate OK [22:19:29]requested_item fd.num is exist - process it [22:19:29]SAM_PROTO_GetFieldsCounters [22:19:29]wFMCommunicate request_size=4 [22:19:29]MH_SAM_APDU [22:19:29]CAPDU: 80 13 00 00 [22:19:29]Write to MH i2c: E2 08 00 E8 0D 80 13 00 00 00 00 00 00 71 [22:19:29]Write i2c OK [22:19:29]MH_I2C_Read... [22:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:29]Read from MH i2c: E2 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: E2 62 00 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: E2 62 00 E8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 22 02 00 0E 04 04 00 C5 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 39 [22:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 22 02 00 0E 04 04 00 C5 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:29]wFMCommunicate OK [22:19:29]SAM_PROTO_GetFieldsCounters done [22:19:29]requested_item shift.num is exist - process it [22:19:29]requested_item shift.opened is exist - process it [22:19:29]req_shift_opened [22:19:29]FM_GetShiftState [22:19:29]SAM_PROTO_GetShiftState [22:19:29]wFMCommunicate request_size=4 [22:19:29]MH_SAM_APDU [22:19:29]CAPDU: 80 13 01 00 [22:19:29]Write to MH i2c: E2 08 00 E9 0D 80 13 01 00 00 00 00 00 73 [22:19:29]Write i2c OK [22:19:29]MH_I2C_Read... [22:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:29]Read from MH i2c: E2 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: E2 0E 00 [22:19:29]MH_I2C_Read... [22:19:29]Read from MH i2c: E2 0E 00 E9 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 04 [22:19:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:19:29]wFMCommunicate OK [22:19:29]SAM_PROTO_GetShiftState done [22:19:29]FM_GetShiftState done [22:19:29]req_shift_opened done [22:19:29]requested_item shift.open_date is exist - process it [22:19:29]req_shift_open_date [22:19:29]req_shift_open_date done [22:19:29]produce_requested_data done [22:19:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139954,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:19:29]process_action_free close_receipt [22:19:29]json_value_free [22:19:29]json_value_free done [22:19:29]process_json_proto returns [22:19:29]Send response to host [22:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139954,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:19:29]free response buf [22:19:29]execute_script done [22:19:29]execute_script returns [22:19:29]free content buf [22:19:29]Sock 7.Close socket [22:19:29]Sock 7.Thread stoped [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:36]int [22:25:36]Write to MH i2c: 01 00 00 EA 0D F7 [22:25:36]*** FLAG_PRN_KEY set [22:25:36]Write i2c OK [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 07 00 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 07 00 EA 0D 00 08 00 00 00 FF 0F 14 [22:25:36]state=0 [22:25:36]Key pressed [22:25:36]Feed [22:25:36]Write to MH i2c: D8 00 00 EB 0D CF [22:25:36]Write i2c OK [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: D8 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: D8 01 00 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: D8 01 00 EB 0D 00 D0 [22:25:36]int [22:25:36]Write to MH i2c: 01 00 00 EC 0D F9 [22:25:36]Write i2c OK [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 07 00 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 07 00 EC 0D 00 48 00 00 00 3C 00 84 [22:25:36]state=2 [22:25:36]Key pressed [22:25:36]int [22:25:36]Write to MH i2c: 01 00 00 ED 0D FA [22:25:36]*** FLAG_PRN_KEY reset [22:25:36]Write i2c OK [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 07 00 [22:25:36]MH_I2C_Read... [22:25:36]Read from MH i2c: 01 07 00 ED 0D 00 00 00 00 00 F6 0F 06 [22:25:36]state=2 [22:25:36]Stop feed [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:04]accept exits with 9 [22:26:04]New connection [22:26:04]New thread 3066764644 created [22:26:04]Thread 3066908004 joined [22:26:04]Waiting for new connection... [22:26:04] Sock 9.Parse request [22:26:04]Sock 9.Check first char [22:26:04]Sock 9.First char is OK [22:26:04]request: POST /json_proto HTTP/1.0 [22:26:04]Method: POST [22:26:04]URL: /json_proto [22:26:04]Method is POST - this is cgi request [22:26:04]url: /json_proto [22:26:04]query_string will be loaded in cgi processing [22:26:04]execute_cgi json_proto POST (null) [22:26:04]execute_cgi path=json_proto method=POST [22:26:04]POST find Content-Length [22:26:04]Host: 172.17.45.67:8080 [22:26:04]Content-Length: 678 [22:26:04]Content-Type: application/json [22:26:04] [22:26:04]POST finish read [22:26:04]Found Content-Length = 678 [22:26:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:04]execute_script... [22:26: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)593810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:04]POST & json_proto [22:26:04]process_json_proto [22:26:04]json parsed OK: [22:26:04]protocol is kg_v1.0 [22:26:04]action value=close_receipt [22:26:04]process_action close_receipt [22:26:04]cmd_close_receipt [22:26:04]MH_GetDate [22:26:04]Write to MH i2c: F0 00 00 EE 0D EA [22:26:04]Write i2c OK [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: F0 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: F0 09 00 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: F0 09 00 EE 0D 00 FD 17 C5 66 5F 7F 2B 66 A1 [22:26:04]GetLastDocTimeStamp 1724192366 [22:26:04]current date 1724192765 [22:26:04]FM_GetShiftState [22:26:04]SAM_PROTO_GetShiftState [22:26:04]wFMCommunicate request_size=4 [22:26:04]MH_SAM_APDU [22:26:04]CAPDU: 80 13 01 00 [22:26:04]Write to MH i2c: E2 08 00 EF 0D 80 13 01 00 00 00 00 00 79 [22:26:04]Write i2c OK [22:26:04]MH_I2C_Read... [22:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:04]Read from MH i2c: E2 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: E2 0E 00 [22:26:04]MH_I2C_Read... [22:26:04]Read from MH i2c: E2 0E 00 EF 0D 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0A [22:26:04]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:26:04]wFMCommunicate OK [22:26:04]SAM_PROTO_GetShiftState done [22:26:04]FM_GetShiftState done [22:26:04]opened in 1724113785 [22:26:04]opened+sec_in_day 1724200185 [22:26:04]quantity*price = 70037 [22:26:04]sum+1 = 70038 [22:26:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 427 20.08.2024 22:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139955 ФПД: 163426588760920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T222605&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139955&fm=163426588760920&tin=02508201610067®Number=0000000000092569&sum=70000 [22:26:05]StoreToDocumentArchive [22:26:05]shift 453 fd 139955 [22:26:05]save to /storage/0453/doc_00139955 [22:26:05]save last doc name /storage/0453/doc_00139955 to /storage/kkm_last_doc_name [22:26:05]save OK [22:26:05]Clear old archive folders... [22:26:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:05]tlvbuf is 00A6F730 [22:26:05]SAM_PROTO_ClearQueue [22:26:05]wFMCommunicate request_size=4 [22:26:05]MH_SAM_APDU [22:26:05]CAPDU: 80 09 00 00 [22:26:05]Write to MH i2c: E2 08 00 FC 0D 80 09 00 00 00 00 00 00 7B [22:26:05]Write i2c OK [22:26:05]MH_I2C_Read... [22:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:05]Read from MH i2c: E2 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 03 00 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 03 00 FC 0D 00 90 00 7D [22:26:05]RAPDU: 90 00 [22:26:05]wFMCommunicate OK [22:26:05]SAM_PROTO_ClearQueue done [22:26:05]KKMCreateOFDPacket [22:26:05]OFDProtocolAddRootSTLVToBuf [22:26:05]FM_MakeSignedData [22:26:05]FM_MakeSignedData [22:26:05]SAM_PROTO_SignData [22:26:05]wFMCommunicate request_size=4 [22:26:05]MH_SAM_APDU [22:26:05]CAPDU: 80 0D 01 02 [22:26:05]Write to MH i2c: E2 08 00 FD 0D 80 0D 01 02 00 00 00 00 83 [22:26:05]Write i2c OK [22:26:05]MH_I2C_Read... [22:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:05]Read from MH i2c: E2 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 03 00 [22:26:05]MH_I2C_Read... [22:26:05]Read from MH i2c: E2 03 00 FD 0D 00 90 00 7E [22:26:05]RAPDU: 90 00 [22:26:05]wFMCommunicate OK [22:26:05]wFMCommunicate request_size=255 [22:26:05]MH_SAM_APDU [22:26:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 FD 17 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 22 02 00 35 04 06 00 94 [22:26:05]Write to MH i2c: E2 02 01 FE 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 FD 17 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 22 02 00 35 04 06 00 94 00 00 0F [22:26:05]Write i2c OK [22:26:05]MH_I2C_Read... [22:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:06]Read from MH i2c: E2 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: E2 03 00 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: E2 03 00 FE 0D 00 90 00 7F [22:26:06]RAPDU: 90 00 [22:26:06]wFMCommunicate OK [22:26:06]wFMCommunicate request_size=10 [22:26:06]MH_SAM_APDU [22:26:06]CAPDU: 80 0D 02 02 05 A2 B7 C5 1B 58 [22:26:06]Write to MH i2c: E2 0D 00 FF 0D 80 0D 02 02 05 00 A2 B7 C5 1B 58 00 00 21 [22:26:06]Write i2c OK [22:26:06]MH_I2C_Read... [22:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:06]Read from MH i2c: E2 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: E2 03 00 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: E2 03 00 FF 0D 00 90 00 80 [22:26:06]RAPDU: 90 00 [22:26:06]wFMCommunicate OK [22:26:06]wFMCommunicate request_size=4 [22:26:06]MH_SAM_APDU [22:26:06]CAPDU: 80 0D 03 02 [22:26:06]Write to MH i2c: E2 08 00 00 0E 80 0D 03 02 00 00 00 00 89 [22:26:06]Write i2c OK [22:26:06]MH_I2C_Read... [22:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:06]Read from MH i2c: E2 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: E2 0B 00 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: E2 0B 00 00 0E 00 5F F7 2A F7 EC CD BD 5F 90 00 D6 [22:26:06]RAPDU: 5F F7 2A F7 EC CD BD 5F 90 00 [22:26:06]wFMCommunicate OK [22:26:06]SAM_PROTO_SignData done [22:26:06]FM_MakeSignedData done [22:26:06]CreateOFDProtocolMessage [22:26:06]wFMCommunicate request_size=4 [22:26:06]MH_SAM_APDU [22:26:06]CAPDU: 80 11 00 00 [22:26:06]Write to MH i2c: E2 08 00 01 0E 80 11 00 00 00 00 00 00 89 [22:26:06]Write i2c OK [22:26:06]MH_I2C_Read... [22:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:06]Read from MH i2c: E2 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: E2 17 00 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: E2 17 00 01 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [22:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:26:06]wFMCommunicate OK [22:26:06]CreateOFDProtocolMessage done [22:26:06]OFDSenderStorePacket 139955 [22:26:06]StoreOFDPacket docnum=139955 [22:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9D 39 07 01 CD C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 FD 17 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 22 02 00 35 04 06 00 94 A2 B7 C5 1B 58 5F F7 2A F7 EC CD BD 5F [22:26:06]CheckFolder [22:26:06]dirname=/storage/ofd_packets [22:26:06]CheckFolder done [22:26:06]ProducePacketName [22:26:06]name=ofd_packets/00139955 [22:26:06]NVStorageSaveData ofd_packets/00139955 [22:26:06]File name is /storage/ofd_packets/00139955 [22:26:06]Write 301 bytes [22:26:06]NVStorageSaveData done [22:26:06]OFDSenderStorePacket done [22:26:06]KKMCreateOFDPacket done [22:26:06]NVStorageSaveData kkm_last_timestamp [22:26:06]File name is /storage/kkm_last_timestamp [22:26:06]Write 4 bytes [22:26:06]NVStorageSaveData done [22:26:06]ExternCall_PrintAddStr [22:26:06]wPrintStart [22:26:06]Write to MH i2c: 01 00 00 02 0E 10 [22:26:06]Write i2c OK [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: 01 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: 01 07 00 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: 01 07 00 02 0E 00 00 00 00 00 FF 0F 25 [22:26:06]RasterBufferAndPrint [22:26:06]line Счет N : (1)593810 [22:26:06]line ИНН: 02508201610067 [22:26:06]line Контрольно-Кассовый Чек [22:26:06]line ПРОДАЖА [22:26:06]line ТРК (МРК, ГНК) : 52 [22:26:06]line Товар: 2710124130 [22:26:06]line Аи-92-К-5 [22:26:06]line 10.330 * 67.80 [22:26:06]line = 700.37 [22:26:06]line НДС 12% НСП 1% [22:26:06]line > о реализуемом товаре [22:26:06]line ОКРУГЛЕНИЕ: -0.37 [22:26:06]line ИТОГО: 700.00 [22:26:06]line Внесено: 700.00 [22:26:06]line СДАЧА: 0.00 [22:26:06]line НСП 1% : 6.20 [22:26:06]line НДС 12% : 74.38 [22:26:06]line Наличными: 700.00 [22:26:06]line Безнал.: 0.00 [22:26:06]line Место: АЗС № 136 "Партнер Нефть" [22:26:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:26:06]line СНО: Общий режим [22:26:06]line Чек 427 20.08.2024 22:26 [22:26:06]line Смена: 453 ФФД: 1.0 [22:26:06]line ЗНМ: 0300000067 [22:26:06]line РНМ: 0000000000092569 [22:26:06]line Версия ККМ: 001 [22:26:06]line ФМ: 0000000000871776 [22:26:06]line ФД: 139955 [22:26:06]line ФПД: 163426588760920 [22:26:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T222605&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139955&fm=163426588760920&tin=02508201610067®Number=0000000000092569&sum=70000 [22:26:06]written 0, free lines is 4095 [22:26:06]OFD Sender: Processing packet 139955 [packets to send 137, broken 136] [22:26:06]ProducePacketName [22:26:06]name=ofd_packets/00139955 [22:26:06]OFD Sender: To server: pG, [22:26:06]CommunicateWithHost lk.salyk.kg:30040 [22:26:06]ConnectInit lk.salyk.kg [22:26:06]Connected sock=10 [22:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9D 39 07 01 CD C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 FD 17 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 22 02 00 35 04 06 00 94 A2 B7 C5 1B 58 5F F7 2A F7 EC CD BD 5F [22:26:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DE 1A 47 00 EF 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 22 02 00 F4 03 04 00 8F BE C4 66 B6 04 01 00 00 3C 4C F5 2F 04 02 0E EC [22:26:06]CommunicateWithHost err = 0 [22:26:06]CheckOFDResponse [22:26:06]1017 (14) - 77093643461234 [22:26:06]1041 (16) - 0000000000871776 [22:26:06]1040 (4) - 139955 [22:26:06]1012 (4) - 20.08.2024 16:04 [22:26:06]1206 (1) - 0 [22:26:06]OFD Sender: Remove packet 139955 [22:26:06]ProducePacketName [22:26:06]name=ofd_packets/00139955 [22:26:06]NVStorageDeleteData [22:26:06]Write to MH i2c: 01 00 00 2D 0E 3B [22:26:06]Write i2c OK [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: 01 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: 01 07 00 [22:26:06]MH_I2C_Read... [22:26:06]Read from MH i2c: 01 07 00 2D 0E 00 00 00 00 00 D1 0C 1F [22:26:06]RasterBufferAndPrint [22:26:06]line [22:26:06]line [22:26:06]line [22:26:06]line [22:26:06]line [22:26:07]written 0, free lines is 3288 [22:26:07]MH_Cut [22:26:07]Write to MH i2c: D1 01 00 34 0E 01 14 [22:26:07]Write i2c OK [22:26:07]MH_I2C_Read... [22:26:07]Read from MH i2c: D1 [22:26:07]MH_I2C_Read... [22:26:07]Read from MH i2c: D1 01 00 [22:26:07]MH_I2C_Read... [22:26:07]Read from MH i2c: D1 01 00 34 0E 00 13 [22:26:07]Write to MH i2c: 01 00 00 35 0E 43 [22:26:07]Write i2c OK [22:26:07]MH_I2C_Read... [22:26:07]OFD Sender: No OFD packet to send [22:26:07]*** Cut start [22:26:07]*** Partial cut [22:26:07]*** CUTSNS_PIN = 1 [22:26:07]*** CUTSNS_PIN = 0 [22:26:07]*** Brake cut motor [22:26:08]Read from MH i2c: 01 [22:26:08]MH_I2C_Read... [22:26:08]*** Stop cut motor [22:26:08]*** Cut end [22:26:08]Read from MH i2c: 01 07 00 [22:26:08]MH_I2C_Read... [22:26:08]Read from MH i2c: 01 07 00 35 0E 00 00 00 00 00 FF 0F 58 [22:26:08]process_action close_receipt done [22:26:08]requested_data is exist [22:26:08]produce_requested_data [22:26:08]requested_item fm.sn is exist - process it [22:26:08]wFMCommunicate request_size=4 [22:26:08]MH_SAM_APDU [22:26:08]CAPDU: 80 11 00 00 [22:26:08]Write to MH i2c: E2 08 00 36 0E 80 11 00 00 00 00 00 00 BE [22:26:08]Write i2c OK [22:26:08]MH_I2C_Read... [22:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:08]Read from MH i2c: E2 [22:26:08]MH_I2C_Read... [22:26:08]Read from MH i2c: E2 17 00 [22:26:08]MH_I2C_Read... [22:26:08]Read from MH i2c: E2 17 00 36 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [22:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:26:08]wFMCommunicate OK [22:26:08]requested_item fd.num is exist - process it [22:26:08]SAM_PROTO_GetFieldsCounters [22:26:08]wFMCommunicate request_size=4 [22:26:08]MH_SAM_APDU [22:26:08]CAPDU: 80 13 00 00 [22:26:08]Write to MH i2c: E2 08 00 37 0E 80 13 00 00 00 00 00 00 C1 [22:26:08]Write i2c OK [22:26:08]MH_I2C_Read... [22:26:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:08]Read from MH i2c: E2 [22:26:08]MH_I2C_Read... [22:26:08]Read from MH i2c: E2 62 00 [22:26:08]MH_I2C_Read... [22:26:08]Read from MH i2c: E2 62 00 37 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 22 02 00 0E 04 04 00 C5 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 8D [22:26:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 22 02 00 0E 04 04 00 C5 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:26:08]wFMCommunicate OK [22:26:08]SAM_PROTO_GetFieldsCounters done [22:26:08]requested_item shift.num is exist - process it [22:26:08]requested_item shift.opened is exist - process it [22:26:08]req_shift_opened [22:26:08]FM_GetShiftState [22:26:08]SAM_PROTO_GetShiftState [22:26:08]wFMCommunicate request_size=4 [22:26:08]MH_SAM_APDU [22:26:08]CAPDU: 80 13 01 00 [22:26:08]Write to MH i2c: E2 08 00 38 0E 80 13 01 00 00 00 00 00 C3 [22:26:08]Write i2c OK [22:26:08]MH_I2C_Read... [22:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:08]Read from MH i2c: E2 [22:26:08]MH_I2C_Read... [22:26:08]Read from MH i2c: E2 0E 00 [22:26:08]MH_I2C_Read... [22:26:08]Read from MH i2c: E2 0E 00 38 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 54 [22:26:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:26:08]wFMCommunicate OK [22:26:08]SAM_PROTO_GetShiftState done [22:26:08]FM_GetShiftState done [22:26:08]req_shift_opened done [22:26:08]requested_item shift.open_date is exist - process it [22:26:08]req_shift_open_date [22:26:08]req_shift_open_date done [22:26:08]produce_requested_data done [22:26:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139955,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:26:08]process_action_free close_receipt [22:26:08]json_value_free [22:26:08]json_value_free done [22:26:08]process_json_proto returns [22:26:08]Send response to host [22:26:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139955,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:26:08]free response buf [22:26:08]execute_script done [22:26:08]execute_script returns [22:26:08]free content buf [22:26:08]Sock 9.Close socket [22:26:08]Sock 9.Thread stoped [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:21]accept exits with 7 [22:26:21]New connection [22:26:21]New thread 3066908004 created [22:26:21]Thread 3066764644 joined [22:26:21]Waiting for new connection... [22:26:21] Sock 7.Parse request [22:26:21]Sock 7.Check first char [22:26:21]Sock 7.First char is OK [22:26:21]request: POST /json_proto HTTP/1.0 [22:26:21]Method: POST [22:26:21]URL: /json_proto [22:26:21]Method is POST - this is cgi request [22:26:21]url: /json_proto [22:26:21]query_string will be loaded in cgi processing [22:26:21]execute_cgi json_proto POST (null) [22:26:21]execute_cgi path=json_proto method=POST [22:26:21]POST find Content-Length [22:26:21]Host: 172.17.45.67:8080 [22:26:21]Content-Length: 678 [22:26:21]Content-Type: application/json [22:26:21] [22:26:21]POST finish read [22:26:21]Found Content-Length = 678 [22:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:21]execute_script... [22:26:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:21]POST & json_proto [22:26:21]process_json_proto [22:26:21]json parsed OK: [22:26:21]protocol is kg_v1.0 [22:26:21]action value=close_receipt [22:26:21]process_action close_receipt [22:26:21]cmd_close_receipt [22:26:21]MH_GetDate [22:26:21]Write to MH i2c: F0 00 00 39 0E 36 [22:26:21]Write i2c OK [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: F0 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: F0 09 00 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: F0 09 00 39 0E 00 0E 18 C5 66 5F 7F 2B 66 FF [22:26:21]GetLastDocTimeStamp 1724192765 [22:26:21]current date 1724192782 [22:26:21]FM_GetShiftState [22:26:21]SAM_PROTO_GetShiftState [22:26:21]wFMCommunicate request_size=4 [22:26:21]MH_SAM_APDU [22:26:21]CAPDU: 80 13 01 00 [22:26:21]Write to MH i2c: E2 08 00 3A 0E 80 13 01 00 00 00 00 00 C5 [22:26:21]Write i2c OK [22:26:21]MH_I2C_Read... [22:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:21]Read from MH i2c: E2 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: E2 0E 00 [22:26:21]MH_I2C_Read... [22:26:21]Read from MH i2c: E2 0E 00 3A 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 56 [22:26:21]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:26:21]wFMCommunicate OK [22:26:21]SAM_PROTO_GetShiftState done [22:26:21]FM_GetShiftState done [22:26:21]opened in 1724113785 [22:26:21]opened+sec_in_day 1724200185 [22:26:21]quantity*price = 80004 [22:26:21]sum+1 = 80005 [22:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 428 20.08.2024 22:26 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139956 ФПД: 122981809505187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T222622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139956&fm=122981809505187&tin=02508201610067®Number=0000000000092569&sum=80000 [22:26:22]StoreToDocumentArchive [22:26:22]shift 453 fd 139956 [22:26:22]save to /storage/0453/doc_00139956 [22:26:22]save last doc name /storage/0453/doc_00139956 to /storage/kkm_last_doc_name [22:26:22]save OK [22:26:22]Clear old archive folders... [22:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:22]tlvbuf is 00A6F740 [22:26:22]SAM_PROTO_ClearQueue [22:26:22]wFMCommunicate request_size=4 [22:26:22]MH_SAM_APDU [22:26:22]CAPDU: 80 09 00 00 [22:26:22]Write to MH i2c: E2 08 00 47 0E 80 09 00 00 00 00 00 00 C7 [22:26:22]Write i2c OK [22:26:22]MH_I2C_Read... [22:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:22]Read from MH i2c: E2 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 03 00 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 03 00 47 0E 00 90 00 C9 [22:26:22]RAPDU: 90 00 [22:26:22]wFMCommunicate OK [22:26:22]SAM_PROTO_ClearQueue done [22:26:22]KKMCreateOFDPacket [22:26:22]OFDProtocolAddRootSTLVToBuf [22:26:22]FM_MakeSignedData [22:26:22]FM_MakeSignedData [22:26:22]SAM_PROTO_SignData [22:26:22]wFMCommunicate request_size=4 [22:26:22]MH_SAM_APDU [22:26:22]CAPDU: 80 0D 01 02 [22:26:22]Write to MH i2c: E2 08 00 48 0E 80 0D 01 02 00 00 00 00 CF [22:26:22]Write i2c OK [22:26:22]MH_I2C_Read... [22:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:22]Read from MH i2c: E2 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 03 00 [22:26:22]MH_I2C_Read... [22:26:22]Read from MH i2c: E2 03 00 48 0E 00 90 00 CA [22:26:22]RAPDU: 90 00 [22:26:22]wFMCommunicate OK [22:26:22]wFMCommunicate request_size=255 [22:26:22]MH_SAM_APDU [22:26:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 0E 18 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 22 02 00 35 04 06 00 6F [22:26:22]Write to MH i2c: E2 02 01 49 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 0E 18 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 22 02 00 35 04 06 00 6F 00 00 10 [22:26:22]Write i2c OK [22:26:22]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 49 0E 00 90 00 CB [22:26:23]RAPDU: 90 00 [22:26:23]wFMCommunicate OK [22:26:23]wFMCommunicate request_size=10 [22:26:23]MH_SAM_APDU [22:26:23]CAPDU: 80 0D 02 02 05 D9 EF 11 C3 A3 [22:26:23]Write to MH i2c: E2 0D 00 4A 0E 80 0D 02 02 05 00 D9 EF 11 C3 A3 00 00 1B [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 03 00 4A 0E 00 90 00 CC [22:26:23]RAPDU: 90 00 [22:26:23]wFMCommunicate OK [22:26:23]wFMCommunicate request_size=4 [22:26:23]MH_SAM_APDU [22:26:23]CAPDU: 80 0D 03 02 [22:26:23]Write to MH i2c: E2 08 00 4B 0E 80 0D 03 02 00 00 00 00 D4 [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 0B 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 0B 00 4B 0E 00 A4 B8 E2 16 9E 32 AF CF 90 00 77 [22:26:23]RAPDU: A4 B8 E2 16 9E 32 AF CF 90 00 [22:26:23]wFMCommunicate OK [22:26:23]SAM_PROTO_SignData done [22:26:23]FM_MakeSignedData done [22:26:23]CreateOFDProtocolMessage [22:26:23]wFMCommunicate request_size=4 [22:26:23]MH_SAM_APDU [22:26:23]CAPDU: 80 11 00 00 [22:26:23]Write to MH i2c: E2 08 00 4C 0E 80 11 00 00 00 00 00 00 D4 [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:23]Read from MH i2c: E2 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 17 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: E2 17 00 4C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2B [22:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:26:23]wFMCommunicate OK [22:26:23]CreateOFDProtocolMessage done [22:26:23]OFDSenderStorePacket 139956 [22:26:23]StoreOFDPacket docnum=139956 [22:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 43 6C 07 01 8A 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 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 0E 18 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 22 02 00 35 04 06 00 6F D9 EF 11 C3 A3 A4 B8 E2 16 9E 32 AF CF [22:26:23]CheckFolder [22:26:23]dirname=/storage/ofd_packets [22:26:23]CheckFolder done [22:26:23]ProducePacketName [22:26:23]name=ofd_packets/00139956 [22:26:23]NVStorageSaveData ofd_packets/00139956 [22:26:23]File name is /storage/ofd_packets/00139956 [22:26:23]Write 301 bytes [22:26:23]NVStorageSaveData done [22:26:23]OFDSenderStorePacket done [22:26:23]KKMCreateOFDPacket done [22:26:23]NVStorageSaveData kkm_last_timestamp [22:26:23]File name is /storage/kkm_last_timestamp [22:26:23]Write 4 bytes [22:26:23]NVStorageSaveData done [22:26:23]OFD Sender: Processing packet 139956 [packets to send 137, broken 136] [22:26:23]ProducePacketName [22:26:23]name=ofd_packets/00139956 [22:26:23]OFD Sender: To server: pG, [22:26:23]CommunicateWithHost lk.salyk.kg:30040 [22:26:23]ConnectInit lk.salyk.kg [22:26:23]ExternCall_PrintAddStr [22:26:23]wPrintStart [22:26:23]Write to MH i2c: 01 00 00 4D 0E 5B [22:26:23]Write i2c OK [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: 01 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: 01 07 00 [22:26:23]MH_I2C_Read... [22:26:23]Read from MH i2c: 01 07 00 4D 0E 00 00 00 00 00 FF 0F 70 [22:26:23]RasterBufferAndPrint [22:26:23]line Счет N : (1)593811 [22:26:23]line ИНН: 02508201610067 [22:26:23]line Контрольно-Кассовый Чек [22:26:23]line ПРОДАЖА [22:26:23]line ТРК (МРК, ГНК) : 42 [22:26:23]line Товар: 2710124130 [22:26:23]line Аи-92-К-5 [22:26:23]line 11.800 * 67.80 [22:26:23]line = 800.04 [22:26:23]line НДС 12% НСП 1% [22:26:23]line > о реализуемом товаре [22:26:23]line ОКРУГЛЕНИЕ: -0.04 [22:26:23]line ИТОГО: 800.00 [22:26:23]line Внесено: 800.00 [22:26:23]line СДАЧА: 0.00 [22:26:23]line НСП 1% : 7.08 [22:26:23]line НДС 12% : 84.96 [22:26:23]line Наличными: 800.00 [22:26:23]line Безнал.: 0.00 [22:26:23]line Место: АЗС № 136 "Партнер Нефть" [22:26:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:26:23]line СНО: Общий режим [22:26:23]line Чек 428 20.08.2024 22:26 [22:26:23]line Смена: 453 ФФД: 1.0 [22:26:23]line ЗНМ: 0300000067 [22:26:23]line РНМ: 0000000000092569 [22:26:23]line Версия ККМ: 001 [22:26:23]line ФМ: 0000000000871776 [22:26:23]line ФД: 139956 [22:26:23]line ФПД: 122981809505187 [22:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T222622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139956&fm=122981809505187&tin=02508201610067®Number=0000000000092569&sum=80000 [22:26:23]Connected sock=11 [22:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 43 6C 07 01 8A 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 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 0E 18 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 22 02 00 35 04 06 00 6F D9 EF 11 C3 A3 A4 B8 E2 16 9E 32 AF CF [22:26:23]written 0, free lines is 4095 [22:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 38 4B 47 00 D4 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 22 02 00 F4 03 04 00 A0 BE C4 66 B6 04 01 00 00 AD 19 BB 51 80 DF 0A E5 [22:26:23]CommunicateWithHost err = 0 [22:26:23]CheckOFDResponse [22:26:23]1017 (14) - 77093643461234 [22:26:23]1041 (16) - 0000000000871776 [22:26:23]1040 (4) - 139956 [22:26:23]1012 (4) - 20.08.2024 16:04 [22:26:23]1206 (1) - 0 [22:26:23]OFD Sender: Remove packet 139956 [22:26:23]ProducePacketName [22:26:23]name=ofd_packets/00139956 [22:26:23]NVStorageDeleteData [22:26:24]Write to MH i2c: 01 00 00 78 0E 86 [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: 01 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: 01 07 00 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: 01 07 00 78 0E 00 00 00 00 00 D4 0C 6D [22:26:24]RasterBufferAndPrint [22:26:24]line [22:26:24]line [22:26:24]line [22:26:24]line [22:26:24]line [22:26:24]written 0, free lines is 3292 [22:26:24]MH_Cut [22:26:24]Write to MH i2c: D1 01 00 7F 0E 01 5F [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: D1 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: D1 01 00 [22:26:24]MH_I2C_Read... [22:26:24]Read from MH i2c: D1 01 00 7F 0E 00 5E [22:26:24]Write to MH i2c: 01 00 00 80 0E 8E [22:26:24]Write i2c OK [22:26:24]MH_I2C_Read... [22:26:24]OFD Sender: No OFD packet to send [22:26:24]*** Cut start [22:26:24]*** Partial cut [22:26:24]*** CUTSNS_PIN = 1 [22:26:25]*** CUTSNS_PIN = 0 [22:26:25]*** Brake cut motor [22:26:25]Read from MH i2c: 01 [22:26:25]MH_I2C_Read... [22:26:25]*** Stop cut motor [22:26:25]*** Cut end [22:26:25]Read from MH i2c: 01 07 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: 01 07 00 80 0E 00 00 00 00 00 FF 0F A3 [22:26:25]process_action close_receipt done [22:26:25]requested_data is exist [22:26:25]produce_requested_data [22:26:25]requested_item fm.sn is exist - process it [22:26:25]wFMCommunicate request_size=4 [22:26:25]MH_SAM_APDU [22:26:25]CAPDU: 80 11 00 00 [22:26:25]Write to MH i2c: E2 08 00 81 0E 80 11 00 00 00 00 00 00 09 [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:25]Read from MH i2c: E2 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 17 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 17 00 81 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 60 [22:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:26:25]wFMCommunicate OK [22:26:25]requested_item fd.num is exist - process it [22:26:25]SAM_PROTO_GetFieldsCounters [22:26:25]wFMCommunicate request_size=4 [22:26:25]MH_SAM_APDU [22:26:25]CAPDU: 80 13 00 00 [22:26:25]Write to MH i2c: E2 08 00 82 0E 80 13 00 00 00 00 00 00 0C [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:25]Read from MH i2c: E2 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 62 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 62 00 82 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 22 02 00 0E 04 04 00 C5 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 DC [22:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 22 02 00 0E 04 04 00 C5 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:26:25]wFMCommunicate OK [22:26:25]SAM_PROTO_GetFieldsCounters done [22:26:25]requested_item shift.num is exist - process it [22:26:25]requested_item shift.opened is exist - process it [22:26:25]req_shift_opened [22:26:25]FM_GetShiftState [22:26:25]SAM_PROTO_GetShiftState [22:26:25]wFMCommunicate request_size=4 [22:26:25]MH_SAM_APDU [22:26:25]CAPDU: 80 13 01 00 [22:26:25]Write to MH i2c: E2 08 00 83 0E 80 13 01 00 00 00 00 00 0E [22:26:25]Write i2c OK [22:26:25]MH_I2C_Read... [22:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:25]Read from MH i2c: E2 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 0E 00 [22:26:25]MH_I2C_Read... [22:26:25]Read from MH i2c: E2 0E 00 83 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 9F [22:26:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:26:25]wFMCommunicate OK [22:26:25]SAM_PROTO_GetShiftState done [22:26:25]FM_GetShiftState done [22:26:25]req_shift_opened done [22:26:25]requested_item shift.open_date is exist - process it [22:26:25]req_shift_open_date [22:26:25]req_shift_open_date done [22:26:25]produce_requested_data done [22:26:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139956,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:26:25]process_action_free close_receipt [22:26:25]json_value_free [22:26:25]json_value_free done [22:26:25]process_json_proto returns [22:26:25]Send response to host [22:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139956,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:26:25]free response buf [22:26:25]execute_script done [22:26:25]execute_script returns [22:26:25]free content buf [22:26:25]Sock 7.Close socket [22:26:25]Sock 7.Thread stoped [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:25]accept exits with 9 [22:28:25]New connection [22:28:25]New thread 3066764644 created [22:28:25]Thread 3066908004 joined [22:28:25]Waiting for new connection... [22:28:25] Sock 9.Parse request [22:28:25]Sock 9.Check first char [22:28:25]Sock 9.First char is OK [22:28:25]request: POST /json_proto HTTP/1.0 [22:28:25]Method: POST [22:28:25]URL: /json_proto [22:28:25]Method is POST - this is cgi request [22:28:25]url: /json_proto [22:28:25]query_string will be loaded in cgi processing [22:28:25]execute_cgi json_proto POST (null) [22:28:25]execute_cgi path=json_proto method=POST [22:28:25]POST find Content-Length [22:28:25]Host: 172.17.45.67:8080 [22:28:25]Content-Length: 682 [22:28:25]Content-Type: application/json [22:28:25] [22:28:25]POST finish read [22:28:25]Found Content-Length = 682 [22:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:25]execute_script... [22:28:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:25]POST & json_proto [22:28:25]process_json_proto [22:28:25]json parsed OK: [22:28:25]protocol is kg_v1.0 [22:28:25]action value=close_receipt [22:28:25]process_action close_receipt [22:28:25]cmd_close_receipt [22:28:25]MH_GetDate [22:28:25]Write to MH i2c: F0 00 00 84 0E 81 [22:28:25]Write i2c OK [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: F0 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: F0 09 00 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: F0 09 00 84 0E 00 8A 18 C5 66 5F 7F 2B 66 C6 [22:28:25]GetLastDocTimeStamp 1724192782 [22:28:25]current date 1724192906 [22:28:25]FM_GetShiftState [22:28:25]SAM_PROTO_GetShiftState [22:28:25]wFMCommunicate request_size=4 [22:28:25]MH_SAM_APDU [22:28:25]CAPDU: 80 13 01 00 [22:28:25]Write to MH i2c: E2 08 00 85 0E 80 13 01 00 00 00 00 00 10 [22:28:25]Write i2c OK [22:28:25]MH_I2C_Read... [22:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:25]Read from MH i2c: E2 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: E2 0E 00 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: E2 0E 00 85 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A1 [22:28:25]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:28:25]wFMCommunicate OK [22:28:25]SAM_PROTO_GetShiftState done [22:28:25]FM_GetShiftState done [22:28:25]opened in 1724113785 [22:28:25]opened+sec_in_day 1724200185 [22:28:25]quantity*price = 150032 [22:28:25]sum+1 = 150033 [22:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 429 20.08.2024 22:28 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139957 ФПД: 223894075069884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T222826&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139957&fm=223894075069884&tin=02508201610067®Number=0000000000092569&sum=150000 [22:28:26]StoreToDocumentArchive [22:28:26]shift 453 fd 139957 [22:28:26]save to /storage/0453/doc_00139957 [22:28:26]save last doc name /storage/0453/doc_00139957 to /storage/kkm_last_doc_name [22:28:26]save OK [22:28:26]Clear old archive folders... [22:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:26]tlvbuf is 00A607F0 [22:28:26]SAM_PROTO_ClearQueue [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 09 00 00 [22:28:26]Write to MH i2c: E2 08 00 92 0E 80 09 00 00 00 00 00 00 12 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 92 0E 00 90 00 14 [22:28:26]RAPDU: 90 00 [22:28:26]wFMCommunicate OK [22:28:26]SAM_PROTO_ClearQueue done [22:28:26]KKMCreateOFDPacket [22:28:26]OFDProtocolAddRootSTLVToBuf [22:28:26]FM_MakeSignedData [22:28:26]FM_MakeSignedData [22:28:26]SAM_PROTO_SignData [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 0D 01 02 [22:28:26]Write to MH i2c: E2 08 00 93 0E 80 0D 01 02 00 00 00 00 1A [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 93 0E 00 90 00 15 [22:28:26]RAPDU: 90 00 [22:28:26]wFMCommunicate OK [22:28:26]wFMCommunicate request_size=255 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 01 00 00 F4 03 04 00 8A 18 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 22 02 00 35 04 06 00 CB [22:28:26]Write to MH i2c: E2 02 01 94 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 01 00 00 F4 03 04 00 8A 18 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 22 02 00 35 04 06 00 CB 00 00 FB [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:27]Read from MH i2c: E2 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 03 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 03 00 94 0E 00 90 00 16 [22:28:27]RAPDU: 90 00 [22:28:27]wFMCommunicate OK [22:28:27]wFMCommunicate request_size=10 [22:28:27]MH_SAM_APDU [22:28:27]CAPDU: 80 0D 02 02 05 A1 66 CF D5 BC [22:28:27]Write to MH i2c: E2 0D 00 95 0E 80 0D 02 02 05 00 A1 66 CF D5 BC 00 00 8E [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:27]Read from MH i2c: E2 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 03 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 03 00 95 0E 00 90 00 17 [22:28:27]RAPDU: 90 00 [22:28:27]wFMCommunicate OK [22:28:27]wFMCommunicate request_size=4 [22:28:27]MH_SAM_APDU [22:28:27]CAPDU: 80 0D 03 02 [22:28:27]Write to MH i2c: E2 08 00 96 0E 80 0D 03 02 00 00 00 00 1F [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:27]Read from MH i2c: E2 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 0B 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 0B 00 96 0E 00 0B 1F 46 27 24 62 CA B7 90 00 BE [22:28:27]RAPDU: 0B 1F 46 27 24 62 CA B7 90 00 [22:28:27]wFMCommunicate OK [22:28:27]SAM_PROTO_SignData done [22:28:27]FM_MakeSignedData done [22:28:27]CreateOFDProtocolMessage [22:28:27]wFMCommunicate request_size=4 [22:28:27]MH_SAM_APDU [22:28:27]CAPDU: 80 11 00 00 [22:28:27]Write to MH i2c: E2 08 00 97 0E 80 11 00 00 00 00 00 00 1F [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:27]Read from MH i2c: E2 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 17 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 17 00 97 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 76 [22:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:28:27]wFMCommunicate OK [22:28:27]CreateOFDProtocolMessage done [22:28:27]OFDSenderStorePacket 139957 [22:28:27]StoreOFDPacket docnum=139957 [22:28:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6B EE 07 01 F1 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 01 00 00 F4 03 04 00 8A 18 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 22 02 00 35 04 06 00 CB A1 66 CF D5 BC 0B 1F 46 27 24 62 CA B7 [22:28:27]CheckFolder [22:28:27]dirname=/storage/ofd_packets [22:28:27]CheckFolder done [22:28:27]ProducePacketName [22:28:27]name=ofd_packets/00139957 [22:28:27]NVStorageSaveData ofd_packets/00139957 [22:28:27]File name is /storage/ofd_packets/00139957 [22:28:27]Write 301 bytes [22:28:27]NVStorageSaveData done [22:28:27]OFDSenderStorePacket done [22:28:27]KKMCreateOFDPacket done [22:28:27]NVStorageSaveData kkm_last_timestamp [22:28:27]File name is /storage/kkm_last_timestamp [22:28:27]Write 4 bytes [22:28:27]NVStorageSaveData done [22:28:27]ExternCall_PrintAddStr [22:28:27]wPrintStart [22:28:27]Write to MH i2c: 01 00 00 98 0E A6 [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 07 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 07 00 98 0E 00 00 00 00 00 FF 0F BB [22:28:27]RasterBufferAndPrint [22:28:27]line Счет N : (1)593812 [22:28:27]line ИНН: 02508201610067 [22:28:27]line Контрольно-Кассовый Чек [22:28:27]line ПРОДАЖА [22:28:27]line ТРК (МРК, ГНК) : 31 [22:28:27]line Товар: 2710124500 [22:28:27]line Аи-95-К-5 [22:28:27]line 20.220 * 74.20 [22:28:27]line = 1500.32 [22:28:27]line НДС 12% НСП 1% [22:28:27]line > о реализуемом товаре [22:28:27]line ОКРУГЛЕНИЕ: -0.32 [22:28:27]line ИТОГО: 1500.00 [22:28:27]line Внесено: 1500.00 [22:28:27]line СДАЧА: 0.00 [22:28:27]line НСП 1% : 13.28 [22:28:27]line НДС 12% : 159.33 [22:28:27]line Наличными: 1500.00 [22:28:27]line Безнал.: 0.00 [22:28:27]line Место: АЗС № 136 "Партнер Нефть" [22:28:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:28:27]line СНО: Общий режим [22:28:27]line Чек 429 20.08.2024 22:28 [22:28:27]line Смена: 453 ФФД: 1.0 [22:28:27]line ЗНМ: 0300000067 [22:28:27]line РНМ: 0000000000092569 [22:28:27]line Версия ККМ: 001 [22:28:27]line ФМ: 0000000000871776 [22:28:27]line ФД: 139957 [22:28:27]line ФПД: 223894075069884 [22:28:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T222826&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139957&fm=223894075069884&tin=02508201610067®Number=0000000000092569&sum=150000 [22:28:27]OFD Sender: Processing packet 139957 [packets to send 137, broken 136] [22:28:27]ProducePacketName [22:28:27]name=ofd_packets/00139957 [22:28:27]OFD Sender: To server: pG, [22:28:27]CommunicateWithHost lk.salyk.kg:30040 [22:28:27]ConnectInit lk.salyk.kg [22:28:27]written 0, free lines is 4095 [22:28:27]Connected sock=10 [22:28:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6B EE 07 01 F1 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 01 00 00 F4 03 04 00 8A 18 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 22 02 00 35 04 06 00 CB A1 66 CF D5 BC 0B 1F 46 27 24 62 CA B7 [22:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 9C BF 47 00 0E 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 22 02 00 F4 03 04 00 1C BF C4 66 B6 04 01 00 00 FE 6D FB FC 85 1D 5D 11 [22:28:28]CommunicateWithHost err = 0 [22:28:28]CheckOFDResponse [22:28:28]1017 (14) - 77093643461234 [22:28:28]1041 (16) - 0000000000871776 [22:28:28]1040 (4) - 139957 [22:28:28]1012 (4) - 20.08.2024 16:06 [22:28:28]1206 (1) - 0 [22:28:28]OFD Sender: Remove packet 139957 [22:28:28]ProducePacketName [22:28:28]name=ofd_packets/00139957 [22:28:28]NVStorageDeleteData [22:28:28]Write to MH i2c: 01 00 00 C3 0E D1 [22:28:28]Write i2c OK [22:28:28]MH_I2C_Read... [22:28:28]Read from MH i2c: 01 [22:28:28]MH_I2C_Read... [22:28:28]Read from MH i2c: 01 07 00 [22:28:28]MH_I2C_Read... [22:28:28]Read from MH i2c: 01 07 00 C3 0E 00 00 00 00 00 CF 0C B3 [22:28:28]RasterBufferAndPrint [22:28:28]line [22:28:28]line [22:28:28]line [22:28:28]line [22:28:28]line [22:28:28]written 0, free lines is 3286 [22:28:28]MH_Cut [22:28:28]Write to MH i2c: D1 01 00 CA 0E 01 AA [22:28:28]Write i2c OK [22:28:28]MH_I2C_Read... [22:28:28]Read from MH i2c: D1 [22:28:28]MH_I2C_Read... [22:28:28]Read from MH i2c: D1 01 00 [22:28:28]MH_I2C_Read... [22:28:28]Read from MH i2c: D1 01 00 CA 0E 00 A9 [22:28:28]Write to MH i2c: 01 00 00 CB 0E D9 [22:28:28]Write i2c OK [22:28:28]MH_I2C_Read... [22:28:28]OFD Sender: No OFD packet to send [22:28:28]*** Cut start [22:28:28]*** Partial cut [22:28:28]*** CUTSNS_PIN = 1 [22:28:28]*** CUTSNS_PIN = 0 [22:28:29]*** Brake cut motor [22:28:29]Read from MH i2c: 01 [22:28:29]MH_I2C_Read... [22:28:29]*** Stop cut motor [22:28:29]*** Cut end [22:28:29]Read from MH i2c: 01 07 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: 01 07 00 CB 0E 00 00 00 00 00 FF 0F EE [22:28:29]process_action close_receipt done [22:28:29]requested_data is exist [22:28:29]produce_requested_data [22:28:29]requested_item fm.sn is exist - process it [22:28:29]wFMCommunicate request_size=4 [22:28:29]MH_SAM_APDU [22:28:29]CAPDU: 80 11 00 00 [22:28:29]Write to MH i2c: E2 08 00 CC 0E 80 11 00 00 00 00 00 00 54 [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:29]Read from MH i2c: E2 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 17 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 17 00 CC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AB [22:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:28:29]wFMCommunicate OK [22:28:29]requested_item fd.num is exist - process it [22:28:29]SAM_PROTO_GetFieldsCounters [22:28:29]wFMCommunicate request_size=4 [22:28:29]MH_SAM_APDU [22:28:29]CAPDU: 80 13 00 00 [22:28:29]Write to MH i2c: E2 08 00 CD 0E 80 13 00 00 00 00 00 00 57 [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:29]Read from MH i2c: E2 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 62 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 62 00 CD 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [22:28:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 AD 01 00 00 5E 04 04 00 AD 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:29]wFMCommunicate OK [22:28:29]SAM_PROTO_GetFieldsCounters done [22:28:29]requested_item shift.num is exist - process it [22:28:29]requested_item shift.opened is exist - process it [22:28:29]req_shift_opened [22:28:29]FM_GetShiftState [22:28:29]SAM_PROTO_GetShiftState [22:28:29]wFMCommunicate request_size=4 [22:28:29]MH_SAM_APDU [22:28:29]CAPDU: 80 13 01 00 [22:28:29]Write to MH i2c: E2 08 00 CE 0E 80 13 01 00 00 00 00 00 59 [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:29]Read from MH i2c: E2 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 0E 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 0E 00 CE 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EA [22:28:29]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:28:29]wFMCommunicate OK [22:28:29]SAM_PROTO_GetShiftState done [22:28:29]FM_GetShiftState done [22:28:29]req_shift_opened done [22:28:29]requested_item shift.open_date is exist - process it [22:28:29]req_shift_open_date [22:28:29]req_shift_open_date done [22:28:29]produce_requested_data done [22:28:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139957,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:28:29]process_action_free close_receipt [22:28:29]json_value_free [22:28:29]json_value_free done [22:28:29]process_json_proto returns [22:28:29]Send response to host [22:28:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139957,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:28:29]free response buf [22:28:29]execute_script done [22:28:29]execute_script returns [22:28:29]free content buf [22:28:29]Sock 9.Close socket [22:28:29]Sock 9.Thread stoped [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:49]accept exits with 7 [22:36:49]New connection [22:36:49]New thread 3066908004 created [22:36:49]Thread 3066764644 joined [22:36:49]Waiting for new connection... [22:36:49] Sock 7.Parse request [22:36:49]Sock 7.Check first char [22:36:49]Sock 7.First char is OK [22:36:49]request: POST /json_proto HTTP/1.0 [22:36:49]Method: POST [22:36:49]URL: /json_proto [22:36:49]Method is POST - this is cgi request [22:36:49]url: /json_proto [22:36:49]query_string will be loaded in cgi processing [22:36:49]execute_cgi json_proto POST (null) [22:36:49]execute_cgi path=json_proto method=POST [22:36:49]POST find Content-Length [22:36:49]Host: 172.17.45.67:8080 [22:36:49]Content-Length: 677 [22:36:49]Content-Type: application/json [22:36:49] [22:36:49]POST finish read [22:36:49]Found Content-Length = 677 [22:36:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:49]execute_script... [22:36: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)593813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:49]POST & json_proto [22:36:49]process_json_proto [22:36:49]json parsed OK: [22:36:49]protocol is kg_v1.0 [22:36:49]action value=close_receipt [22:36:49]process_action close_receipt [22:36:49]cmd_close_receipt [22:36:49]MH_GetDate [22:36:49]Write to MH i2c: F0 00 00 CF 0E CC [22:36:49]Write i2c OK [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: F0 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: F0 09 00 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: F0 09 00 CF 0E 00 82 1A C5 66 5F 7F 2B 66 0B [22:36:49]GetLastDocTimeStamp 1724192906 [22:36:49]current date 1724193410 [22:36:49]FM_GetShiftState [22:36:49]SAM_PROTO_GetShiftState [22:36:49]wFMCommunicate request_size=4 [22:36:49]MH_SAM_APDU [22:36:49]CAPDU: 80 13 01 00 [22:36:49]Write to MH i2c: E2 08 00 D0 0E 80 13 01 00 00 00 00 00 5B [22:36:49]Write i2c OK [22:36:49]MH_I2C_Read... [22:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:50]Read from MH i2c: E2 [22:36:50]MH_I2C_Read... [22:36:50]Read from MH i2c: E2 0E 00 [22:36:50]MH_I2C_Read... [22:36:50]Read from MH i2c: E2 0E 00 D0 0E 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 EC [22:36:50]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:36:50]wFMCommunicate OK [22:36:50]SAM_PROTO_GetShiftState done [22:36:50]FM_GetShiftState done [22:36:50]opened in 1724113785 [22:36:50]opened+sec_in_day 1724200185 [22:36:50]quantity*price = 50010 [22:36:50]sum+1 = 50012 [22:36:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 430 20.08.2024 22:36 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139958 ФПД: 118625501170484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T223650&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139958&fm=118625501170484&tin=02508201610067®Number=0000000000092569&sum=50000 [22:36:51]StoreToDocumentArchive [22:36:51]shift 453 fd 139958 [22:36:51]save to /storage/0453/doc_00139958 [22:36:51]save last doc name /storage/0453/doc_00139958 to /storage/kkm_last_doc_name [22:36:51]save OK [22:36:51]Clear old archive folders... [22:36:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:36:51]tlvbuf is B6E9D6D0 [22:36:51]SAM_PROTO_ClearQueue [22:36:51]wFMCommunicate request_size=4 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 09 00 00 [22:36:51]Write to MH i2c: E2 08 00 DD 0E 80 09 00 00 00 00 00 00 5D [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 DD 0E 00 90 00 5F [22:36:51]RAPDU: 90 00 [22:36:51]wFMCommunicate OK [22:36:51]SAM_PROTO_ClearQueue done [22:36:51]KKMCreateOFDPacket [22:36:51]OFDProtocolAddRootSTLVToBuf [22:36:51]FM_MakeSignedData [22:36:51]FM_MakeSignedData [22:36:51]SAM_PROTO_SignData [22:36:51]wFMCommunicate request_size=4 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 0D 01 02 [22:36:51]Write to MH i2c: E2 08 00 DE 0E 80 0D 01 02 00 00 00 00 65 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 DE 0E 00 90 00 60 [22:36:51]RAPDU: 90 00 [22:36:51]wFMCommunicate OK [22:36:51]wFMCommunicate request_size=255 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 82 1A C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 22 02 00 35 04 06 00 6B [22:36:51]Write to MH i2c: E2 02 01 DF 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 82 1A C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 22 02 00 35 04 06 00 6B 00 00 57 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 DF 0E 00 90 00 61 [22:36:51]RAPDU: 90 00 [22:36:51]wFMCommunicate OK [22:36:51]wFMCommunicate request_size=10 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 0D 02 02 05 E3 A6 DB CB 34 [22:36:51]Write to MH i2c: E2 0D 00 E0 0E 80 0D 02 02 05 00 E3 A6 DB CB 34 00 00 D5 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 E0 0E 00 90 00 62 [22:36:51]RAPDU: 90 00 [22:36:51]wFMCommunicate OK [22:36:51]wFMCommunicate request_size=4 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 0D 03 02 [22:36:51]Write to MH i2c: E2 08 00 E1 0E 80 0D 03 02 00 00 00 00 6A [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 0B 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 0B 00 E1 0E 00 52 38 68 A6 DB EF 4F AE 90 00 CA [22:36:51]RAPDU: 52 38 68 A6 DB EF 4F AE 90 00 [22:36:51]wFMCommunicate OK [22:36:51]SAM_PROTO_SignData done [22:36:51]FM_MakeSignedData done [22:36:51]CreateOFDProtocolMessage [22:36:51]wFMCommunicate request_size=4 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 11 00 00 [22:36:51]Write to MH i2c: E2 08 00 E2 0E 80 11 00 00 00 00 00 00 6A [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 17 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 17 00 E2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C1 [22:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:36:51]wFMCommunicate OK [22:36:51]CreateOFDProtocolMessage done [22:36:51]OFDSenderStorePacket 139958 [22:36:51]StoreOFDPacket docnum=139958 [22:36:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3F 6E 07 01 F1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 82 1A C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 22 02 00 35 04 06 00 6B E3 A6 DB CB 34 52 38 68 A6 DB EF 4F AE [22:36:51]CheckFolder [22:36:51]dirname=/storage/ofd_packets [22:36:51]CheckFolder done [22:36:51]ProducePacketName [22:36:51]name=ofd_packets/00139958 [22:36:51]NVStorageSaveData ofd_packets/00139958 [22:36:51]File name is /storage/ofd_packets/00139958 [22:36:51]Write 301 bytes [22:36:51]NVStorageSaveData done [22:36:51]OFDSenderStorePacket done [22:36:51]KKMCreateOFDPacket done [22:36:51]NVStorageSaveData kkm_last_timestamp [22:36:51]File name is /storage/kkm_last_timestamp [22:36:51]Write 4 bytes [22:36:51]NVStorageSaveData done [22:36:51]ExternCall_PrintAddStr [22:36:51]wPrintStart [22:36:51]Write to MH i2c: 01 00 00 E3 0E F1 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: 01 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: 01 07 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: 01 07 00 E3 0E 00 00 00 00 00 FF 0F 06 [22:36:51]RasterBufferAndPrint [22:36:51]line Счет N : (1)593813 [22:36:51]line ИНН: 02508201610067 [22:36:51]line Контрольно-Кассовый Чек [22:36:51]line ПРОДАЖА [22:36:51]line ТРК (МРК, ГНК) : 41 [22:36:51]line Товар: 2710124500 [22:36:51]line Аи-95-К-5 [22:36:51]line 6.740 * 74.20 [22:36:51]line = 500.11 [22:36:51]line НДС 12% НСП 1% [22:36:51]line > о реализуемом товаре [22:36:51]line ОКРУГЛЕНИЕ: -0.11 [22:36:51]line ИТОГО: 500.00 [22:36:51]line Внесено: 500.00 [22:36:51]line СДАЧА: 0.00 [22:36:51]line НСП 1% : 4.43 [22:36:51]line НДС 12% : 53.11 [22:36:51]line Наличными: 500.00 [22:36:51]line Безнал.: 0.00 [22:36:51]line Место: АЗС № 136 "Партнер Нефть" [22:36:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:36:51]line СНО: Общий режим [22:36:51]line Чек 430 20.08.2024 22:36 [22:36:51]line Смена: 453 ФФД: 1.0 [22:36:51]line ЗНМ: 0300000067 [22:36:51]line РНМ: 0000000000092569 [22:36:51]line Версия ККМ: 001 [22:36:51]line ФМ: 0000000000871776 [22:36:51]line ФД: 139958 [22:36:51]line ФПД: 118625501170484 [22:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T223650&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139958&fm=118625501170484&tin=02508201610067®Number=0000000000092569&sum=50000 [22:36:52]written 0, free lines is 4095 [22:36:52]OFD Sender: Processing packet 139958 [packets to send 137, broken 136] [22:36:52]ProducePacketName [22:36:52]name=ofd_packets/00139958 [22:36:52]OFD Sender: To server: pG, [22:36:52]CommunicateWithHost lk.salyk.kg:30040 [22:36:52]ConnectInit lk.salyk.kg [22:36:52]Connected sock=10 [22:36:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3F 6E 07 01 F1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 82 1A C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 22 02 00 35 04 06 00 6B E3 A6 DB CB 34 52 38 68 A6 DB EF 4F AE [22:36:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BF 7D 47 00 37 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 22 02 00 F4 03 04 00 15 C1 C4 66 B6 04 01 00 00 03 02 A1 82 E5 F1 EE 54 [22:36:52]CommunicateWithHost err = 0 [22:36:52]CheckOFDResponse [22:36:52]1017 (14) - 77093643461234 [22:36:52]1041 (16) - 0000000000871776 [22:36:52]1040 (4) - 139958 [22:36:52]1012 (4) - 20.08.2024 16:15 [22:36:52]1206 (1) - 0 [22:36:52]OFD Sender: Remove packet 139958 [22:36:52]ProducePacketName [22:36:52]name=ofd_packets/00139958 [22:36:52]NVStorageDeleteData [22:36:52]Write to MH i2c: 01 00 00 0E 0F 1D [22:36:52]Write i2c OK [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: 01 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: 01 07 00 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: 01 07 00 0E 0F 00 00 00 00 00 CD 0C FD [22:36:52]RasterBufferAndPrint [22:36:52]line [22:36:52]line [22:36:52]line [22:36:52]line [22:36:52]line [22:36:52]written 0, free lines is 3283 [22:36:52]MH_Cut [22:36:52]Write to MH i2c: D1 01 00 15 0F 01 F6 [22:36:52]Write i2c OK [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: D1 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: D1 01 00 [22:36:52]MH_I2C_Read... [22:36:52]Read from MH i2c: D1 01 00 15 0F 00 F5 [22:36:52]Write to MH i2c: 01 00 00 16 0F 25 [22:36:52]Write i2c OK [22:36:52]MH_I2C_Read... [22:36:52]OFD Sender: No OFD packet to send [22:36:53]*** Cut start [22:36:53]*** Partial cut [22:36:53]*** CUTSNS_PIN = 1 [22:36:53]*** CUTSNS_PIN = 0 [22:36:53]*** Brake cut motor [22:36:53]Read from MH i2c: 01 [22:36:53]MH_I2C_Read... [22:36:53]*** Stop cut motor [22:36:53]*** Cut end [22:36:53]Read from MH i2c: 01 07 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: 01 07 00 16 0F 00 00 00 00 00 FF 0F 3A [22:36:53]process_action close_receipt done [22:36:53]requested_data is exist [22:36:53]produce_requested_data [22:36:53]requested_item fm.sn is exist - process it [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 11 00 00 [22:36:53]Write to MH i2c: E2 08 00 17 0F 80 11 00 00 00 00 00 00 A0 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 17 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 17 00 17 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F7 [22:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:36:53]wFMCommunicate OK [22:36:53]requested_item fd.num is exist - process it [22:36:53]SAM_PROTO_GetFieldsCounters [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 13 00 00 [22:36:53]Write to MH i2c: E2 08 00 18 0F 80 13 00 00 00 00 00 00 A3 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 62 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 62 00 18 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 22 02 00 0E 04 04 00 C5 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 7B [22:36:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 22 02 00 0E 04 04 00 C5 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:36:53]wFMCommunicate OK [22:36:53]SAM_PROTO_GetFieldsCounters done [22:36:53]requested_item shift.num is exist - process it [22:36:53]requested_item shift.opened is exist - process it [22:36:53]req_shift_opened [22:36:53]FM_GetShiftState [22:36:53]SAM_PROTO_GetShiftState [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 13 01 00 [22:36:53]Write to MH i2c: E2 08 00 19 0F 80 13 01 00 00 00 00 00 A5 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:54]Read from MH i2c: E2 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 0E 00 [22:36:54]MH_I2C_Read... [22:36:54]Read from MH i2c: E2 0E 00 19 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 36 [22:36:54]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:36:54]wFMCommunicate OK [22:36:54]SAM_PROTO_GetShiftState done [22:36:54]FM_GetShiftState done [22:36:54]req_shift_opened done [22:36:54]requested_item shift.open_date is exist - process it [22:36:54]req_shift_open_date [22:36:54]req_shift_open_date done [22:36:54]produce_requested_data done [22:36:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139958,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:36:54]process_action_free close_receipt [22:36:54]json_value_free [22:36:54]json_value_free done [22:36:54]process_json_proto returns [22:36:54]Send response to host [22:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139958,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:36:54]free response buf [22:36:54]execute_script done [22:36:54]execute_script returns [22:36:54]free content buf [22:36:54]Sock 7.Close socket [22:36:54]Sock 7.Thread stoped [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:57]accept exits with 9 [22:39:57]New connection [22:39:57]New thread 3066764644 created [22:39:57]Thread 3066908004 joined [22:39:57]Waiting for new connection... [22:39:57] Sock 9.Parse request [22:39:57]Sock 9.Check first char [22:39:57]Sock 9.First char is OK [22:39:57]request: POST /json_proto HTTP/1.0 [22:39:57]Method: POST [22:39:57]URL: /json_proto [22:39:57]Method is POST - this is cgi request [22:39:57]url: /json_proto [22:39:57]query_string will be loaded in cgi processing [22:39:57]execute_cgi json_proto POST (null) [22:39:57]execute_cgi path=json_proto method=POST [22:39:57]POST find Content-Length [22:39:57]Host: 172.17.45.67:8080 [22:39:57]Content-Length: 682 [22:39:57]Content-Type: application/json [22:39:57] [22:39:57]POST finish read [22:39:57]Found Content-Length = 682 [22:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:57]execute_script... [22:39: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)593814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:57]POST & json_proto [22:39:57]process_json_proto [22:39:57]json parsed OK: [22:39:57]protocol is kg_v1.0 [22:39:57]action value=close_receipt [22:39:57]process_action close_receipt [22:39:57]cmd_close_receipt [22:39:57]MH_GetDate [22:39:57]Write to MH i2c: F0 00 00 1A 0F 18 [22:39:57]Write i2c OK [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: F0 [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: F0 09 00 [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: F0 09 00 1A 0F 00 3E 1B C5 66 5F 7F 2B 66 14 [22:39:57]GetLastDocTimeStamp 1724193410 [22:39:57]current date 1724193598 [22:39:57]FM_GetShiftState [22:39:57]SAM_PROTO_GetShiftState [22:39:57]wFMCommunicate request_size=4 [22:39:57]MH_SAM_APDU [22:39:57]CAPDU: 80 13 01 00 [22:39:57]Write to MH i2c: E2 08 00 1B 0F 80 13 01 00 00 00 00 00 A7 [22:39:57]Write i2c OK [22:39:57]MH_I2C_Read... [22:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:57]Read from MH i2c: E2 [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: E2 0E 00 [22:39:57]MH_I2C_Read... [22:39:57]Read from MH i2c: E2 0E 00 1B 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 38 [22:39:57]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:39:57]wFMCommunicate OK [22:39:57]SAM_PROTO_GetShiftState done [22:39:57]FM_GetShiftState done [22:39:57]opened in 1724113785 [22:39:57]opened+sec_in_day 1724200185 [22:39:57]quantity*price = 100005 [22:39:57]sum+1 = 100006 [22:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 431 20.08.2024 22:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139959 ФПД: 269033853813810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T223958&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139959&fm=269033853813810&tin=02508201610067®Number=0000000000092569&sum=100000 [22:39:58]StoreToDocumentArchive [22:39:58]shift 453 fd 139959 [22:39:58]save to /storage/0453/doc_00139959 [22:39:58]save last doc name /storage/0453/doc_00139959 to /storage/kkm_last_doc_name [22:39:58]save OK [22:39:58]Clear old archive folders... [22:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:39:58]tlvbuf is B6E9DB20 [22:39:58]SAM_PROTO_ClearQueue [22:39:58]wFMCommunicate request_size=4 [22:39:58]MH_SAM_APDU [22:39:58]CAPDU: 80 09 00 00 [22:39:58]Write to MH i2c: E2 08 00 28 0F 80 09 00 00 00 00 00 00 A9 [22:39:58]Write i2c OK [22:39:58]MH_I2C_Read... [22:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:58]Read from MH i2c: E2 [22:39:58]MH_I2C_Read... [22:39:58]Read from MH i2c: E2 03 00 [22:39:58]MH_I2C_Read... [22:39:58]Read from MH i2c: E2 03 00 28 0F 00 90 00 AB [22:39:58]RAPDU: 90 00 [22:39:58]wFMCommunicate OK [22:39:58]SAM_PROTO_ClearQueue done [22:39:58]KKMCreateOFDPacket [22:39:58]OFDProtocolAddRootSTLVToBuf [22:39:58]FM_MakeSignedData [22:39:58]FM_MakeSignedData [22:39:58]SAM_PROTO_SignData [22:39:58]wFMCommunicate request_size=4 [22:39:58]MH_SAM_APDU [22:39:58]CAPDU: 80 0D 01 02 [22:39:58]Write to MH i2c: E2 08 00 29 0F 80 0D 01 02 00 00 00 00 B1 [22:39:58]Write i2c OK [22:39:58]MH_I2C_Read... [22:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:58]Read from MH i2c: E2 [22:39:58]MH_I2C_Read... [22:39:58]Read from MH i2c: E2 03 00 [22:39:58]MH_I2C_Read... [22:39:58]Read from MH i2c: E2 03 00 29 0F 00 90 00 AC [22:39:58]RAPDU: 90 00 [22:39:58]wFMCommunicate OK [22:39:58]wFMCommunicate request_size=255 [22:39:58]MH_SAM_APDU [22:39:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 3E 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 22 02 00 35 04 06 00 F4 [22:39:58]Write to MH i2c: E2 02 01 2A 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 3E 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 22 02 00 35 04 06 00 F4 00 00 92 [22:39:58]Write i2c OK [22:39:58]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 2A 0F 00 90 00 AD [22:39:59]RAPDU: 90 00 [22:39:59]wFMCommunicate OK [22:39:59]wFMCommunicate request_size=10 [22:39:59]MH_SAM_APDU [22:39:59]CAPDU: 80 0D 02 02 05 AF 53 4A 04 32 [22:39:59]Write to MH i2c: E2 0D 00 2B 0F 80 0D 02 02 05 00 AF 53 4A 04 32 00 00 40 [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [22:39:59]RAPDU: 90 00 [22:39:59]wFMCommunicate OK [22:39:59]wFMCommunicate request_size=4 [22:39:59]MH_SAM_APDU [22:39:59]CAPDU: 80 0D 03 02 [22:39:59]Write to MH i2c: E2 08 00 2C 0F 80 0D 03 02 00 00 00 00 B6 [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 0B 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 0B 00 2C 0F 00 4E 7B 4E F4 78 2A 5E 8E 90 00 50 [22:39:59]RAPDU: 4E 7B 4E F4 78 2A 5E 8E 90 00 [22:39:59]wFMCommunicate OK [22:39:59]SAM_PROTO_SignData done [22:39:59]FM_MakeSignedData done [22:39:59]CreateOFDProtocolMessage [22:39:59]wFMCommunicate request_size=4 [22:39:59]MH_SAM_APDU [22:39:59]CAPDU: 80 11 00 00 [22:39:59]Write to MH i2c: E2 08 00 2D 0F 80 11 00 00 00 00 00 00 B6 [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:59]Read from MH i2c: E2 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 17 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: E2 17 00 2D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0D [22:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:39:59]wFMCommunicate OK [22:39:59]CreateOFDProtocolMessage done [22:39:59]OFDSenderStorePacket 139959 [22:39:59]StoreOFDPacket docnum=139959 [22:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 11 A7 07 01 7E 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 3E 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 22 02 00 35 04 06 00 F4 AF 53 4A 04 32 4E 7B 4E F4 78 2A 5E 8E [22:39:59]CheckFolder [22:39:59]dirname=/storage/ofd_packets [22:39:59]CheckFolder done [22:39:59]ProducePacketName [22:39:59]name=ofd_packets/00139959 [22:39:59]NVStorageSaveData ofd_packets/00139959 [22:39:59]File name is /storage/ofd_packets/00139959 [22:39:59]Write 301 bytes [22:39:59]NVStorageSaveData done [22:39:59]OFDSenderStorePacket done [22:39:59]KKMCreateOFDPacket done [22:39:59]NVStorageSaveData kkm_last_timestamp [22:39:59]File name is /storage/kkm_last_timestamp [22:39:59]Write 4 bytes [22:39:59]NVStorageSaveData done [22:39:59]OFD Sender: Processing packet 139959 [packets to send 137, broken 136] [22:39:59]ProducePacketName [22:39:59]name=ofd_packets/00139959 [22:39:59]OFD Sender: To server: pG, [22:39:59]CommunicateWithHost lk.salyk.kg:30040 [22:39:59]ConnectInit lk.salyk.kg [22:39:59]ExternCall_PrintAddStr [22:39:59]wPrintStart [22:39:59]Write to MH i2c: 01 00 00 2E 0F 3D [22:39:59]Write i2c OK [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: 01 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: 01 07 00 [22:39:59]MH_I2C_Read... [22:39:59]Read from MH i2c: 01 07 00 2E 0F 00 00 00 00 00 FF 0F 52 [22:39:59]RasterBufferAndPrint [22:39:59]line Счет N : (1)593814 [22:39:59]line ИНН: 02508201610067 [22:39:59]line Контрольно-Кассовый Чек [22:39:59]line ПРОДАЖА [22:39:59]line ТРК (МРК, ГНК) : 32 [22:39:59]line Товар: 2710124130 [22:39:59]line Аи-92-К-5 [22:39:59]line 14.750 * 67.80 [22:39:59]line = 1000.05 [22:39:59]line НДС 12% НСП 1% [22:39:59]line > о реализуемом товаре [22:39:59]line ОКРУГЛЕНИЕ: -0.05 [22:39:59]line ИТОГО: 1000.00 [22:39:59]line Внесено: 1000.00 [22:39:59]line СДАЧА: 0.00 [22:39:59]line НСП 1% : 8.85 [22:39:59]line НДС 12% : 106.20 [22:39:59]line Наличными: 1000.00 [22:39:59]line Безнал.: 0.00 [22:39:59]line Место: АЗС № 136 "Партнер Нефть" [22:39:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:39:59]line СНО: Общий режим [22:39:59]line Чек 431 20.08.2024 22:39 [22:39:59]line Смена: 453 ФФД: 1.0 [22:39:59]line ЗНМ: 0300000067 [22:39:59]line РНМ: 0000000000092569 [22:39:59]line Версия ККМ: 001 [22:39:59]line ФМ: 0000000000871776 [22:39:59]line ФД: 139959 [22:39:59]line ФПД: 269033853813810 [22:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T223958&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139959&fm=269033853813810&tin=02508201610067®Number=0000000000092569&sum=100000 [22:39:59]Connected sock=11 [22:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 11 A7 07 01 7E 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 3E 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 22 02 00 35 04 06 00 F4 AF 53 4A 04 32 4E 7B 4E F4 78 2A 5E 8E [22:39:59]written 0, free lines is 4095 [22:39:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EC F3 47 00 EC AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 22 02 00 F4 03 04 00 D0 C1 C4 66 B6 04 01 00 00 B7 41 E3 A5 E5 86 37 10 [22:39:59]CommunicateWithHost err = 0 [22:39:59]CheckOFDResponse [22:39:59]1017 (14) - 77093643461234 [22:39:59]1041 (16) - 0000000000871776 [22:39:59]1040 (4) - 139959 [22:39:59]1012 (4) - 20.08.2024 16:18 [22:39:59]1206 (1) - 0 [22:39:59]OFD Sender: Remove packet 139959 [22:39:59]ProducePacketName [22:39:59]name=ofd_packets/00139959 [22:39:59]NVStorageDeleteData [22:40:00]Write to MH i2c: 01 00 00 59 0F 68 [22:40:00]Write i2c OK [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: 01 [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: 01 07 00 [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: 01 07 00 59 0F 00 00 00 00 00 CA 0C 45 [22:40:00]RasterBufferAndPrint [22:40:00]line [22:40:00]line [22:40:00]line [22:40:00]line [22:40:00]line [22:40:00]written 0, free lines is 3280 [22:40:00]MH_Cut [22:40:00]Write to MH i2c: D1 01 00 60 0F 01 41 [22:40:00]Write i2c OK [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: D1 [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: D1 01 00 [22:40:00]MH_I2C_Read... [22:40:00]Read from MH i2c: D1 01 00 60 0F 00 40 [22:40:00]Write to MH i2c: 01 00 00 61 0F 70 [22:40:00]Write i2c OK [22:40:00]MH_I2C_Read... [22:40:00]OFD Sender: No OFD packet to send [22:40:00]*** Cut start [22:40:00]*** Partial cut [22:40:00]*** CUTSNS_PIN = 1 [22:40:01]*** CUTSNS_PIN = 0 [22:40:01]*** Brake cut motor [22:40:01]Read from MH i2c: 01 [22:40:01]MH_I2C_Read... [22:40:01]*** Stop cut motor [22:40:01]*** Cut end [22:40:01]Read from MH i2c: 01 07 00 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: 01 07 00 61 0F 00 00 00 00 00 FF 0F 85 [22:40:01]process_action close_receipt done [22:40:01]requested_data is exist [22:40:01]produce_requested_data [22:40:01]requested_item fm.sn is exist - process it [22:40:01]wFMCommunicate request_size=4 [22:40:01]MH_SAM_APDU [22:40:01]CAPDU: 80 11 00 00 [22:40:01]Write to MH i2c: E2 08 00 62 0F 80 11 00 00 00 00 00 00 EB [22:40:01]Write i2c OK [22:40:01]MH_I2C_Read... [22:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:01]Read from MH i2c: E2 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 17 00 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 17 00 62 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 42 [22:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:40:01]wFMCommunicate OK [22:40:01]requested_item fd.num is exist - process it [22:40:01]SAM_PROTO_GetFieldsCounters [22:40:01]wFMCommunicate request_size=4 [22:40:01]MH_SAM_APDU [22:40:01]CAPDU: 80 13 00 00 [22:40:01]Write to MH i2c: E2 08 00 63 0F 80 13 00 00 00 00 00 00 EE [22:40:01]Write i2c OK [22:40:01]MH_I2C_Read... [22:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:01]Read from MH i2c: E2 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 62 00 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 62 00 63 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 22 02 00 0E 04 04 00 C5 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 CA [22:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 22 02 00 0E 04 04 00 C5 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:40:01]wFMCommunicate OK [22:40:01]SAM_PROTO_GetFieldsCounters done [22:40:01]requested_item shift.num is exist - process it [22:40:01]requested_item shift.opened is exist - process it [22:40:01]req_shift_opened [22:40:01]FM_GetShiftState [22:40:01]SAM_PROTO_GetShiftState [22:40:01]wFMCommunicate request_size=4 [22:40:01]MH_SAM_APDU [22:40:01]CAPDU: 80 13 01 00 [22:40:01]Write to MH i2c: E2 08 00 64 0F 80 13 01 00 00 00 00 00 F0 [22:40:01]Write i2c OK [22:40:01]MH_I2C_Read... [22:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:01]Read from MH i2c: E2 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 0E 00 [22:40:01]MH_I2C_Read... [22:40:01]Read from MH i2c: E2 0E 00 64 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 81 [22:40:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:40:01]wFMCommunicate OK [22:40:01]SAM_PROTO_GetShiftState done [22:40:01]FM_GetShiftState done [22:40:01]req_shift_opened done [22:40:01]requested_item shift.open_date is exist - process it [22:40:01]req_shift_open_date [22:40:01]req_shift_open_date done [22:40:01]produce_requested_data done [22:40:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139959,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:40:01]process_action_free close_receipt [22:40:01]json_value_free [22:40:01]json_value_free done [22:40:01]process_json_proto returns [22:40:01]Send response to host [22:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139959,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:40:01]free response buf [22:40:01]execute_script done [22:40:01]execute_script returns [22:40:01]free content buf [22:40:01]Sock 9.Close socket [22:40:01]Sock 9.Thread stoped [22:40:02]accept exits with 7 [22:40:02]New connection [22:40:02]New thread 3066908004 created [22:40:02]Thread 3066764644 joined [22:40:02]Waiting for new connection... [22:40:02] Sock 7.Parse request [22:40:02]Sock 7.Check first char [22:40:02]Sock 7.First char is OK [22:40:02]request: POST /json_proto HTTP/1.0 [22:40:02]Method: POST [22:40:02]URL: /json_proto [22:40:02]Method is POST - this is cgi request [22:40:02]url: /json_proto [22:40:02]query_string will be loaded in cgi processing [22:40:02]execute_cgi json_proto POST (null) [22:40:02]execute_cgi path=json_proto method=POST [22:40:02]POST find Content-Length [22:40:02]Host: 172.17.45.67:8080 [22:40:02]Content-Length: 677 [22:40:02]Content-Type: application/json [22:40:02] [22:40:02]POST finish read [22:40:02]Found Content-Length = 677 [22:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:02]execute_script... [22:40: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)593815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:02]POST & json_proto [22:40:02]process_json_proto [22:40:02]json parsed OK: [22:40:02]protocol is kg_v1.0 [22:40:02]action value=close_receipt [22:40:02]process_action close_receipt [22:40:02]cmd_close_receipt [22:40:02]MH_GetDate [22:40:02]Write to MH i2c: F0 00 00 65 0F 63 [22:40:02]Write i2c OK [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: F0 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: F0 09 00 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: F0 09 00 65 0F 00 42 1B C5 66 5F 7F 2B 66 63 [22:40:02]GetLastDocTimeStamp 1724193598 [22:40:02]current date 1724193602 [22:40:02]FM_GetShiftState [22:40:02]SAM_PROTO_GetShiftState [22:40:02]wFMCommunicate request_size=4 [22:40:02]MH_SAM_APDU [22:40:02]CAPDU: 80 13 01 00 [22:40:02]Write to MH i2c: E2 08 00 66 0F 80 13 01 00 00 00 00 00 F2 [22:40:02]Write i2c OK [22:40:02]MH_I2C_Read... [22:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:02]Read from MH i2c: E2 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: E2 0E 00 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: E2 0E 00 66 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 83 [22:40:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:40:02]wFMCommunicate OK [22:40:02]SAM_PROTO_GetShiftState done [22:40:02]FM_GetShiftState done [22:40:02]opened in 1724113785 [22:40:02]opened+sec_in_day 1724200185 [22:40:02]quantity*price = 70044 [22:40:02]sum+1 = 70046 [22:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 432 20.08.2024 22:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139960 ФПД: 72583698191851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T224002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139960&fm=72583698191851&tin=02508201610067®Number=0000000000092569&sum=70000 [22:40:03]StoreToDocumentArchive [22:40:03]shift 453 fd 139960 [22:40:03]save to /storage/0453/doc_00139960 [22:40:03]save last doc name /storage/0453/doc_00139960 to /storage/kkm_last_doc_name [22:40:03]save OK [22:40:03]Clear old archive folders... [22:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:03]tlvbuf is 00A23BC0 [22:40:03]SAM_PROTO_ClearQueue [22:40:03]wFMCommunicate request_size=4 [22:40:03]MH_SAM_APDU [22:40:03]CAPDU: 80 09 00 00 [22:40:03]Write to MH i2c: E2 08 00 73 0F 80 09 00 00 00 00 00 00 F4 [22:40:03]Write i2c OK [22:40:03]MH_I2C_Read... [22:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:03]Read from MH i2c: E2 [22:40:03]MH_I2C_Read... [22:40:03]Read from MH i2c: E2 03 00 [22:40:03]MH_I2C_Read... [22:40:03]Read from MH i2c: E2 03 00 73 0F 00 90 00 F6 [22:40:03]RAPDU: 90 00 [22:40:03]wFMCommunicate OK [22:40:03]SAM_PROTO_ClearQueue done [22:40:03]KKMCreateOFDPacket [22:40:03]OFDProtocolAddRootSTLVToBuf [22:40:03]FM_MakeSignedData [22:40:03]FM_MakeSignedData [22:40:03]SAM_PROTO_SignData [22:40:03]wFMCommunicate request_size=4 [22:40:03]MH_SAM_APDU [22:40:03]CAPDU: 80 0D 01 02 [22:40:03]Write to MH i2c: E2 08 00 74 0F 80 0D 01 02 00 00 00 00 FC [22:40:03]Write i2c OK [22:40:03]MH_I2C_Read... [22:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:03]Read from MH i2c: E2 [22:40:03]MH_I2C_Read... [22:40:03]Read from MH i2c: E2 03 00 [22:40:03]MH_I2C_Read... [22:40:03]Read from MH i2c: E2 03 00 74 0F 00 90 00 F7 [22:40:03]RAPDU: 90 00 [22:40:03]wFMCommunicate OK [22:40:03]wFMCommunicate request_size=255 [22:40:03]MH_SAM_APDU [22:40:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 42 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 22 02 00 35 04 06 00 42 [22:40:03]Write to MH i2c: E2 02 01 75 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 42 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 22 02 00 35 04 06 00 42 00 00 99 [22:40:03]Write i2c OK [22:40:03]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 75 0F 00 90 00 F8 [22:40:04]RAPDU: 90 00 [22:40:04]wFMCommunicate OK [22:40:04]wFMCommunicate request_size=10 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 0D 02 02 05 03 B5 8C 15 EB [22:40:04]Write to MH i2c: E2 0D 00 76 0F 80 0D 02 02 05 00 03 B5 8C 15 EB 00 00 4D [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 76 0F 00 90 00 F9 [22:40:04]RAPDU: 90 00 [22:40:04]wFMCommunicate OK [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 0D 03 02 [22:40:04]Write to MH i2c: E2 08 00 77 0F 80 0D 03 02 00 00 00 00 01 [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 0B 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 0B 00 77 0F 00 C2 3F 85 35 67 7A 1B 0E 90 00 C7 [22:40:04]RAPDU: C2 3F 85 35 67 7A 1B 0E 90 00 [22:40:04]wFMCommunicate OK [22:40:04]SAM_PROTO_SignData done [22:40:04]FM_MakeSignedData done [22:40:04]CreateOFDProtocolMessage [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 11 00 00 [22:40:04]Write to MH i2c: E2 08 00 78 0F 80 11 00 00 00 00 00 00 01 [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 17 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 17 00 78 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [22:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:40:04]wFMCommunicate OK [22:40:04]CreateOFDProtocolMessage done [22:40:04]OFDSenderStorePacket 139960 [22:40:04]StoreOFDPacket docnum=139960 [22:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 42 89 07 01 0B 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 42 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 22 02 00 35 04 06 00 42 03 B5 8C 15 EB C2 3F 85 35 67 7A 1B 0E [22:40:04]CheckFolder [22:40:04]dirname=/storage/ofd_packets [22:40:04]CheckFolder done [22:40:04]ProducePacketName [22:40:04]name=ofd_packets/00139960 [22:40:04]NVStorageSaveData ofd_packets/00139960 [22:40:04]File name is /storage/ofd_packets/00139960 [22:40:04]Write 301 bytes [22:40:04]NVStorageSaveData done [22:40:04]OFDSenderStorePacket done [22:40:04]KKMCreateOFDPacket done [22:40:04]NVStorageSaveData kkm_last_timestamp [22:40:04]File name is /storage/kkm_last_timestamp [22:40:04]Write 4 bytes [22:40:04]NVStorageSaveData done [22:40:04]ExternCall_PrintAddStr [22:40:04]wPrintStart [22:40:04]Write to MH i2c: 01 00 00 79 0F 88 [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: 01 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: 01 07 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: 01 07 00 79 0F 00 00 00 00 00 FF 0F 9D [22:40:04]RasterBufferAndPrint [22:40:04]line Счет N : (1)593815 [22:40:04]line ИНН: 02508201610067 [22:40:04]line Контрольно-Кассовый Чек [22:40:04]line ПРОДАЖА [22:40:04]line ТРК (МРК, ГНК) : 51 [22:40:04]line Товар: 2710124500 [22:40:04]line Аи-95-К-5 [22:40:04]line 9.440 * 74.20 [22:40:04]line = 700.45 [22:40:04]line НДС 12% НСП 1% [22:40:04]line > о реализуемом товаре [22:40:04]line ОКРУГЛЕНИЕ: -0.45 [22:40:04]line ИТОГО: 700.00 [22:40:04]line Внесено: 700.00 [22:40:04]line СДАЧА: 0.00 [22:40:04]line НСП 1% : 6.20 [22:40:04]line НДС 12% : 74.38 [22:40:04]line Наличными: 700.00 [22:40:04]line Безнал.: 0.00 [22:40:04]line Место: АЗС № 136 "Партнер Нефть" [22:40:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:40:04]line СНО: Общий режим [22:40:04]line Чек 432 20.08.2024 22:40 [22:40:04]line Смена: 453 ФФД: 1.0 [22:40:04]line ЗНМ: 0300000067 [22:40:04]line РНМ: 0000000000092569 [22:40:04]line Версия ККМ: 001 [22:40:04]line ФМ: 0000000000871776 [22:40:04]line ФД: 139960 [22:40:04]line ФПД: 72583698191851 [22:40:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T224002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139960&fm=72583698191851&tin=02508201610067®Number=0000000000092569&sum=70000 [22:40:04]OFD Sender: Processing packet 139960 [packets to send 137, broken 136] [22:40:04]ProducePacketName [22:40:04]name=ofd_packets/00139960 [22:40:04]OFD Sender: To server: pG, [22:40:04]CommunicateWithHost lk.salyk.kg:30040 [22:40:04]ConnectInit lk.salyk.kg [22:40:04]written 0, free lines is 4095 [22:40:04]Connected sock=10 [22:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 42 89 07 01 0B 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 42 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 22 02 00 35 04 06 00 42 03 B5 8C 15 EB C2 3F 85 35 67 7A 1B 0E [22:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 9F D3 47 00 0C E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 22 02 00 F4 03 04 00 D5 C1 C4 66 B6 04 01 00 00 C8 66 7C C9 CB 96 25 F1 [22:40:04]CommunicateWithHost err = 0 [22:40:04]CheckOFDResponse [22:40:04]1017 (14) - 77093643461234 [22:40:04]1041 (16) - 0000000000871776 [22:40:04]1040 (4) - 139960 [22:40:04]1012 (4) - 20.08.2024 16:18 [22:40:04]1206 (1) - 0 [22:40:04]OFD Sender: Remove packet 139960 [22:40:04]ProducePacketName [22:40:04]name=ofd_packets/00139960 [22:40:04]NVStorageDeleteData [22:40:05]Write to MH i2c: 01 00 00 A4 0F B3 [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 07 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 07 00 A4 0F 00 00 00 00 00 D7 0C 9D [22:40:05]RasterBufferAndPrint [22:40:05]line [22:40:05]line [22:40:05]line [22:40:05]line [22:40:05]line [22:40:05]written 0, free lines is 3303 [22:40:05]MH_Cut [22:40:05]Write to MH i2c: D1 01 00 AB 0F 01 8C [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: D1 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: D1 01 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: D1 01 00 AB 0F 00 8B [22:40:05]Write to MH i2c: 01 00 00 AC 0F BB [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]*** Cut start [22:40:05]*** Partial cut [22:40:05]*** CUTSNS_PIN = 1 [22:40:05]*** CUTSNS_PIN = 0 [22:40:05]OFD Sender: No OFD packet to send [22:40:05]*** Brake cut motor [22:40:06]Read from MH i2c: 01 [22:40:06]MH_I2C_Read... [22:40:06]*** Stop cut motor [22:40:06]*** Cut end [22:40:06]Read from MH i2c: 01 07 00 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [22:40:06]process_action close_receipt done [22:40:06]requested_data is exist [22:40:06]produce_requested_data [22:40:06]requested_item fm.sn is exist - process it [22:40:06]wFMCommunicate request_size=4 [22:40:06]MH_SAM_APDU [22:40:06]CAPDU: 80 11 00 00 [22:40:06]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [22:40:06]Write i2c OK [22:40:06]MH_I2C_Read... [22:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:06]Read from MH i2c: E2 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: E2 17 00 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8D [22:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:40:06]wFMCommunicate OK [22:40:06]requested_item fd.num is exist - process it [22:40:06]SAM_PROTO_GetFieldsCounters [22:40:06]wFMCommunicate request_size=4 [22:40:06]MH_SAM_APDU [22:40:06]CAPDU: 80 13 00 00 [22:40:06]Write to MH i2c: E2 08 00 AE 0F 80 13 00 00 00 00 00 00 39 [22:40:06]Write i2c OK [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: E2 [22:40:06]MH_I2C_Read... [22:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:06]Read from MH i2c: E2 62 00 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: E2 62 00 AE 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [22:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 22 02 00 0E 04 04 00 C5 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:40:06]wFMCommunicate OK [22:40:06]SAM_PROTO_GetFieldsCounters done [22:40:06]requested_item shift.num is exist - process it [22:40:06]requested_item shift.opened is exist - process it [22:40:06]req_shift_opened [22:40:06]FM_GetShiftState [22:40:06]SAM_PROTO_GetShiftState [22:40:06]wFMCommunicate request_size=4 [22:40:06]MH_SAM_APDU [22:40:06]CAPDU: 80 13 01 00 [22:40:06]Write to MH i2c: E2 08 00 AF 0F 80 13 01 00 00 00 00 00 3B [22:40:06]Write i2c OK [22:40:06]MH_I2C_Read... [22:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:06]Read from MH i2c: E2 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: E2 0E 00 [22:40:06]MH_I2C_Read... [22:40:06]Read from MH i2c: E2 0E 00 AF 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CC [22:40:06]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:40:06]wFMCommunicate OK [22:40:06]SAM_PROTO_GetShiftState done [22:40:06]FM_GetShiftState done [22:40:06]req_shift_opened done [22:40:06]requested_item shift.open_date is exist - process it [22:40:06]req_shift_open_date [22:40:06]req_shift_open_date done [22:40:06]produce_requested_data done [22:40:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139960,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:40:06]process_action_free close_receipt [22:40:06]json_value_free [22:40:06]json_value_free done [22:40:06]process_json_proto returns [22:40:06]Send response to host [22:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139960,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:40:06]free response buf [22:40:06]execute_script done [22:40:06]execute_script returns [22:40:06]free content buf [22:40:06]Sock 7.Close socket [22:40:06]Sock 7.Thread stoped [22:40:10]OFD Sender: No OFD packet to send [22:40:15]accept exits with 9 [22:40:15]New connection [22:40:15]New thread 3066764644 created [22:40:15]Thread 3066908004 joined [22:40:15]Waiting for new connection... [22:40:15] Sock 9.Parse request [22:40:15]Sock 9.Check first char [22:40:15]Sock 9.First char is OK [22:40:15]request: POST /json_proto HTTP/1.0 [22:40:15]Method: POST [22:40:15]URL: /json_proto [22:40:15]Method is POST - this is cgi request [22:40:15]url: /json_proto [22:40:15]query_string will be loaded in cgi processing [22:40:15]execute_cgi json_proto POST (null) [22:40:15]execute_cgi path=json_proto method=POST [22:40:15]POST find Content-Length [22:40:15]Host: 172.17.45.67:8080 [22:40:15]Content-Length: 687 [22:40:15]Content-Type: application/json [22:40:15] [22:40:15]POST finish read [22:40:15]Found Content-Length = 687 [22:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:40:15]execute_script... [22:40: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)593816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:40:15]POST & json_proto [22:40:15]process_json_proto [22:40:15]json parsed OK: [22:40:15]protocol is kg_v1.0 [22:40:15]action value=close_receipt [22:40:15]process_action close_receipt [22:40:15]cmd_close_receipt [22:40:15]MH_GetDate [22:40:15]Write to MH i2c: F0 00 00 B0 0F AE [22:40:15]Write i2c OK [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: F0 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: F0 09 00 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: F0 09 00 B0 0F 00 50 1B C5 66 5F 7F 2B 66 BC [22:40:15]GetLastDocTimeStamp 1724193602 [22:40:15]current date 1724193616 [22:40:15]FM_GetShiftState [22:40:15]SAM_PROTO_GetShiftState [22:40:15]wFMCommunicate request_size=4 [22:40:15]MH_SAM_APDU [22:40:15]CAPDU: 80 13 01 00 [22:40:15]Write to MH i2c: E2 08 00 B1 0F 80 13 01 00 00 00 00 00 3D [22:40:15]Write i2c OK [22:40:15]MH_I2C_Read... [22:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:15]Read from MH i2c: E2 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 0E 00 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 0E 00 B1 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 CE [22:40:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:40:15]wFMCommunicate OK [22:40:15]SAM_PROTO_GetShiftState done [22:40:15]FM_GetShiftState done [22:40:15]opened in 1724113785 [22:40:15]opened+sec_in_day 1724200185 [22:40:15]quantity*price = 100050 [22:40:15]sum+1 = 100052 [22:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 433 20.08.2024 22:40 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139961 ФПД: 61472716119259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T224016&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139961&fm=61472716119259&tin=02508201610067®Number=0000000000092569&sum=100000 [22:40:16]StoreToDocumentArchive [22:40:16]shift 453 fd 139961 [22:40:16]save to /storage/0453/doc_00139961 [22:40:16]save last doc name /storage/0453/doc_00139961 to /storage/kkm_last_doc_name [22:40:16]save OK [22:40:16]Clear old archive folders... [22:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:40:16]tlvbuf is 00A85380 [22:40:16]SAM_PROTO_ClearQueue [22:40:16]wFMCommunicate request_size=4 [22:40:16]MH_SAM_APDU [22:40:16]CAPDU: 80 09 00 00 [22:40:16]Write to MH i2c: E2 08 00 BE 0F 80 09 00 00 00 00 00 00 3F [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 03 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 03 00 BE 0F 00 90 00 41 [22:40:16]RAPDU: 90 00 [22:40:16]wFMCommunicate OK [22:40:16]SAM_PROTO_ClearQueue done [22:40:16]KKMCreateOFDPacket [22:40:16]OFDProtocolAddRootSTLVToBuf [22:40:16]FM_MakeSignedData [22:40:16]FM_MakeSignedData [22:40:16]SAM_PROTO_SignData [22:40:16]wFMCommunicate request_size=4 [22:40:16]MH_SAM_APDU [22:40:16]CAPDU: 80 0D 01 02 [22:40:16]Write to MH i2c: E2 08 00 BF 0F 80 0D 01 02 00 00 00 00 47 [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 03 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 03 00 BF 0F 00 90 00 42 [22:40:16]RAPDU: 90 00 [22:40:16]wFMCommunicate OK [22:40:16]wFMCommunicate request_size=255 [22:40:16]MH_SAM_APDU [22:40:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 B1 01 00 00 F4 03 04 00 50 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 22 02 00 35 04 06 00 [22:40:16]Write to MH i2c: E2 02 01 C0 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 B1 01 00 00 F4 03 04 00 50 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 22 02 00 35 04 06 00 00 00 A9 [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:17]Read from MH i2c: E2 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 03 00 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [22:40:17]RAPDU: 90 00 [22:40:17]wFMCommunicate OK [22:40:17]wFMCommunicate request_size=11 [22:40:17]MH_SAM_APDU [22:40:17]CAPDU: 80 0D 02 02 06 37 E8 BB 68 5C DB [22:40:17]Write to MH i2c: E2 0E 00 C1 0F 80 0D 02 02 06 00 37 E8 BB 68 5C DB 00 00 CF [22:40:17]Write i2c OK [22:40:17]MH_I2C_Read... [22:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:17]Read from MH i2c: E2 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 03 00 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [22:40:17]RAPDU: 90 00 [22:40:17]wFMCommunicate OK [22:40:17]wFMCommunicate request_size=4 [22:40:17]MH_SAM_APDU [22:40:17]CAPDU: 80 0D 03 02 [22:40:17]Write to MH i2c: E2 08 00 C2 0F 80 0D 03 02 00 00 00 00 4C [22:40:17]Write i2c OK [22:40:17]MH_I2C_Read... [22:40:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:17]Read from MH i2c: E2 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 0B 00 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 0B 00 C2 0F 00 0B D6 F8 60 CE 57 15 1E 90 00 DE [22:40:17]RAPDU: 0B D6 F8 60 CE 57 15 1E 90 00 [22:40:17]wFMCommunicate OK [22:40:17]SAM_PROTO_SignData done [22:40:17]FM_MakeSignedData done [22:40:17]CreateOFDProtocolMessage [22:40:17]wFMCommunicate request_size=4 [22:40:17]MH_SAM_APDU [22:40:17]CAPDU: 80 11 00 00 [22:40:17]Write to MH i2c: E2 08 00 C3 0F 80 11 00 00 00 00 00 00 4C [22:40:17]Write i2c OK [22:40:17]MH_I2C_Read... [22:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:17]Read from MH i2c: E2 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 17 00 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 17 00 C3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A3 [22:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:40:17]wFMCommunicate OK [22:40:17]CreateOFDProtocolMessage done [22:40:17]OFDSenderStorePacket 139961 [22:40:17]StoreOFDPacket docnum=139961 [22:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 C6 B8 08 01 55 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 B1 01 00 00 F4 03 04 00 50 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 22 02 00 35 04 06 00 37 E8 BB 68 5C DB 0B D6 F8 60 CE 57 15 1E [22:40:17]CheckFolder [22:40:17]dirname=/storage/ofd_packets [22:40:17]CheckFolder done [22:40:17]ProducePacketName [22:40:17]name=ofd_packets/00139961 [22:40:17]NVStorageSaveData ofd_packets/00139961 [22:40:17]File name is /storage/ofd_packets/00139961 [22:40:17]Write 302 bytes [22:40:17]NVStorageSaveData done [22:40:17]OFDSenderStorePacket done [22:40:17]KKMCreateOFDPacket done [22:40:17]NVStorageSaveData kkm_last_timestamp [22:40:17]File name is /storage/kkm_last_timestamp [22:40:17]Write 4 bytes [22:40:17]NVStorageSaveData done [22:40:17]ExternCall_PrintAddStr [22:40:17]wPrintStart [22:40:17]Write to MH i2c: 01 00 00 C4 0F D3 [22:40:17]Write i2c OK [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: 01 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: 01 07 00 [22:40:17]MH_I2C_Read... [22:40:17]OFD Sender: Processing packet 139961 [packets to send 137, broken 136] [22:40:17]ProducePacketName [22:40:17]name=ofd_packets/00139961 [22:40:17]OFD Sender: To server: pG, [22:40:17]CommunicateWithHost lk.salyk.kg:30040 [22:40:17]ConnectInit lk.salyk.kg [22:40:17]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 FF 0F E8 [22:40:17]RasterBufferAndPrint [22:40:17]line Счет N : (1)593816 [22:40:17]line ИНН: 02508201610067 [22:40:17]line Контрольно-Кассовый Чек [22:40:17]line ПРОДАЖА [22:40:17]line ТРК (МРК, ГНК) : 44 [22:40:17]line Товар: 2710194210 [22:40:17]line ДТ(л)-К-5 [22:40:17]line 13.130 * 76.20 [22:40:17]line = 1000.51 [22:40:17]line НДС 12% НСП 1% [22:40:17]line > о реализуемом товаре [22:40:17]line ОКРУГЛЕНИЕ: -0.51 [22:40:17]line ИТОГО: 1000.00 [22:40:17]line Внесено: 1000.00 [22:40:17]line СДАЧА: 0.00 [22:40:17]line НСП 1% : 8.85 [22:40:17]line НДС 12% : 106.25 [22:40:17]line Наличными: 1000.00 [22:40:17]line Безнал.: 0.00 [22:40:17]line Место: АЗС № 136 "Партнер Нефть" [22:40:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:40:17]line СНО: Общий режим [22:40:17]line Чек 433 20.08.2024 22:40 [22:40:17]line Смена: 453 ФФД: 1.0 [22:40:17]line ЗНМ: 0300000067 [22:40:17]line РНМ: 0000000000092569 [22:40:17]line Версия ККМ: 001 [22:40:17]line ФМ: 0000000000871776 [22:40:17]line ФД: 139961 [22:40:17]line ФПД: 61472716119259 [22:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T224016&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139961&fm=61472716119259&tin=02508201610067®Number=0000000000092569&sum=100000 [22:40:17]written 0, free lines is 4095 [22:40:17]Connected sock=10 [22:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 C6 B8 08 01 55 9C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 B1 01 00 00 F4 03 04 00 50 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 22 02 00 35 04 06 00 37 E8 BB 68 5C DB 0B D6 F8 60 CE 57 15 1E [22:40:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5A C2 47 00 89 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 22 02 00 F4 03 04 00 E2 C1 C4 66 B6 04 01 00 00 DD 96 0A 8F D9 F4 4A 77 [22:40:17]CommunicateWithHost err = 0 [22:40:17]CheckOFDResponse [22:40:17]1017 (14) - 77093643461234 [22:40:17]1041 (16) - 0000000000871776 [22:40:17]1040 (4) - 139961 [22:40:17]1012 (4) - 20.08.2024 16:18 [22:40:17]1206 (1) - 0 [22:40:17]OFD Sender: Remove packet 139961 [22:40:17]ProducePacketName [22:40:17]name=ofd_packets/00139961 [22:40:17]NVStorageDeleteData [22:40:17]Write to MH i2c: 01 00 00 EF 0F FE [22:40:17]Write i2c OK [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: 01 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: 01 07 00 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: 01 07 00 EF 0F 00 00 00 00 00 D8 0C E9 [22:40:17]RasterBufferAndPrint [22:40:17]line [22:40:17]line [22:40:17]line [22:40:17]line [22:40:17]line [22:40:17]written 0, free lines is 3302 [22:40:17]MH_Cut [22:40:17]Write to MH i2c: D1 01 00 F6 0F 01 D7 [22:40:17]Write i2c OK [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: D1 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: D1 01 00 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: D1 01 00 F6 0F 00 D6 [22:40:17]Write to MH i2c: 01 00 00 F7 0F 06 [22:40:17]Write i2c OK [22:40:17]MH_I2C_Read... [22:40:18]OFD Sender: No OFD packet to send [22:40:18]*** Cut start [22:40:18]*** Partial cut [22:40:18]*** CUTSNS_PIN = 1 [22:40:18]*** CUTSNS_PIN = 0 [22:40:18]*** Brake cut motor [22:40:19]Read from MH i2c: 01 [22:40:19]MH_I2C_Read... [22:40:19]*** Stop cut motor [22:40:19]*** Cut end [22:40:19]Read from MH i2c: 01 07 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: 01 07 00 F7 0F 00 00 00 00 00 FF 0F 1B [22:40:19]process_action close_receipt done [22:40:19]requested_data is exist [22:40:19]produce_requested_data [22:40:19]requested_item fm.sn is exist - process it [22:40:19]wFMCommunicate request_size=4 [22:40:19]MH_SAM_APDU [22:40:19]CAPDU: 80 11 00 00 [22:40:19]Write to MH i2c: E2 08 00 F8 0F 80 11 00 00 00 00 00 00 81 [22:40:19]Write i2c OK [22:40:19]MH_I2C_Read... [22:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:19]Read from MH i2c: E2 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 17 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 17 00 F8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D8 [22:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:40:19]wFMCommunicate OK [22:40:19]requested_item fd.num is exist - process it [22:40:19]SAM_PROTO_GetFieldsCounters [22:40:19]wFMCommunicate request_size=4 [22:40:19]MH_SAM_APDU [22:40:19]CAPDU: 80 13 00 00 [22:40:19]Write to MH i2c: E2 08 00 F9 0F 80 13 00 00 00 00 00 00 84 [22:40:19]Write i2c OK [22:40:19]MH_I2C_Read... [22:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:19]Read from MH i2c: E2 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 62 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 62 00 F9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 22 02 00 0E 04 04 00 C5 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 68 [22:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 22 02 00 0E 04 04 00 C5 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:40:19]wFMCommunicate OK [22:40:19]SAM_PROTO_GetFieldsCounters done [22:40:19]requested_item shift.num is exist - process it [22:40:19]requested_item shift.opened is exist - process it [22:40:19]req_shift_opened [22:40:19]FM_GetShiftState [22:40:19]SAM_PROTO_GetShiftState [22:40:19]wFMCommunicate request_size=4 [22:40:19]MH_SAM_APDU [22:40:19]CAPDU: 80 13 01 00 [22:40:19]Write to MH i2c: E2 08 00 FA 0F 80 13 01 00 00 00 00 00 86 [22:40:19]Write i2c OK [22:40:19]MH_I2C_Read... [22:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:19]Read from MH i2c: E2 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 0E 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 0E 00 FA 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 17 [22:40:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:40:19]wFMCommunicate OK [22:40:19]SAM_PROTO_GetShiftState done [22:40:19]FM_GetShiftState done [22:40:19]req_shift_opened done [22:40:19]requested_item shift.open_date is exist - process it [22:40:19]req_shift_open_date [22:40:19]req_shift_open_date done [22:40:19]produce_requested_data done [22:40:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139961,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:40:19]process_action_free close_receipt [22:40:19]json_value_free [22:40:19]json_value_free done [22:40:19]process_json_proto returns [22:40:19]Send response to host [22:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139961,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:40:19]free response buf [22:40:19]execute_script done [22:40:19]execute_script returns [22:40:19]free content buf [22:40:19]Sock 9.Close socket [22:40:19]Sock 9.Thread stoped [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:18]accept exits with 7 [22:41:18]New connection [22:41:18]New thread 3066908004 created [22:41:18]Thread 3066764644 joined [22:41:18]Waiting for new connection... [22:41:18] Sock 7.Parse request [22:41:18]Sock 7.Check first char [22:41:18]Sock 7.First char is OK [22:41:18]request: POST /json_proto HTTP/1.0 [22:41:18]Method: POST [22:41:18]URL: /json_proto [22:41:18]Method is POST - this is cgi request [22:41:18]url: /json_proto [22:41:18]query_string will be loaded in cgi processing [22:41:18]execute_cgi json_proto POST (null) [22:41:18]execute_cgi path=json_proto method=POST [22:41:18]POST find Content-Length [22:41:18]Host: 172.17.45.67:8080 [22:41:18]Content-Length: 677 [22:41:18]Content-Type: application/json [22:41:18] [22:41:18]POST finish read [22:41:18]Found Content-Length = 677 [22:41:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 1.350, "sum" : 100.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:18]execute_script... [22:41: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)593817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 1.350, "sum" : 100.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:18]POST & json_proto [22:41:18]process_json_proto [22:41:18]json parsed OK: [22:41:18]protocol is kg_v1.0 [22:41:18]action value=close_receipt [22:41:18]process_action close_receipt [22:41:18]cmd_close_receipt [22:41:18]MH_GetDate [22:41:18]Write to MH i2c: F0 00 00 FB 0F F9 [22:41:18]Write i2c OK [22:41:18]MH_I2C_Read... [22:41:18]Read from MH i2c: F0 [22:41:18]MH_I2C_Read... [22:41:18]Read from MH i2c: F0 09 00 [22:41:18]MH_I2C_Read... [22:41:18]Read from MH i2c: F0 09 00 FB 0F 00 8F 1B C5 66 5F 7F 2B 66 46 [22:41:18]GetLastDocTimeStamp 1724193616 [22:41:18]current date 1724193679 [22:41:18]FM_GetShiftState [22:41:18]SAM_PROTO_GetShiftState [22:41:18]wFMCommunicate request_size=4 [22:41:18]MH_SAM_APDU [22:41:18]CAPDU: 80 13 01 00 [22:41:18]Write to MH i2c: E2 08 00 FC 0F 80 13 01 00 00 00 00 00 88 [22:41:18]Write i2c OK [22:41:18]MH_I2C_Read... [22:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:19]Read from MH i2c: E2 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 0E 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 0E 00 FC 0F 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 19 [22:41:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:41:19]wFMCommunicate OK [22:41:19]SAM_PROTO_GetShiftState done [22:41:19]FM_GetShiftState done [22:41:19]opened in 1724113785 [22:41:19]opened+sec_in_day 1724200185 [22:41:19]quantity*price = 10017 [22:41:19]sum+1 = 10018 [22:41:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.64 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 434 20.08.2024 22:41 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139962 ФПД: 60583601494190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T224119&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139962&fm=60583601494190&tin=02508201610067®Number=0000000000092569&sum=10000 [22:41:20]StoreToDocumentArchive [22:41:20]shift 453 fd 139962 [22:41:20]save to /storage/0453/doc_00139962 [22:41:20]save last doc name /storage/0453/doc_00139962 to /storage/kkm_last_doc_name [22:41:20]save OK [22:41:20]Clear old archive folders... [22:41:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:20]tlvbuf is 00A60570 [22:41:20]SAM_PROTO_ClearQueue [22:41:20]wFMCommunicate request_size=4 [22:41:20]MH_SAM_APDU [22:41:20]CAPDU: 80 09 00 00 [22:41:20]Write to MH i2c: E2 08 00 09 10 80 09 00 00 00 00 00 00 8B [22:41:20]Write i2c OK [22:41:20]MH_I2C_Read... [22:41:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:20]Read from MH i2c: E2 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 03 00 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 03 00 09 10 00 90 00 8D [22:41:20]RAPDU: 90 00 [22:41:20]wFMCommunicate OK [22:41:20]SAM_PROTO_ClearQueue done [22:41:20]KKMCreateOFDPacket [22:41:20]OFDProtocolAddRootSTLVToBuf [22:41:20]FM_MakeSignedData [22:41:20]FM_MakeSignedData [22:41:20]SAM_PROTO_SignData [22:41:20]wFMCommunicate request_size=4 [22:41:20]MH_SAM_APDU [22:41:20]CAPDU: 80 0D 01 02 [22:41:20]Write to MH i2c: E2 08 00 0A 10 80 0D 01 02 00 00 00 00 93 [22:41:20]Write i2c OK [22:41:20]MH_I2C_Read... [22:41:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:20]Read from MH i2c: E2 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 03 00 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 03 00 0A 10 00 90 00 8E [22:41:20]RAPDU: 90 00 [22:41:20]wFMCommunicate OK [22:41:20]wFMCommunicate request_size=255 [22:41:20]MH_SAM_APDU [22:41:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 8F 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 22 02 00 35 04 06 00 37 [22:41:20]Write to MH i2c: E2 02 01 0B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 8F 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 22 02 00 35 04 06 00 37 00 00 AC [22:41:20]Write i2c OK [22:41:20]MH_I2C_Read... [22:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:20]Read from MH i2c: E2 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 03 00 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 03 00 0B 10 00 90 00 8F [22:41:20]RAPDU: 90 00 [22:41:20]wFMCommunicate OK [22:41:20]wFMCommunicate request_size=10 [22:41:20]MH_SAM_APDU [22:41:20]CAPDU: 80 0D 02 02 05 19 B8 0B D8 AE [22:41:20]Write to MH i2c: E2 0D 00 0C 10 80 0D 02 02 05 00 19 B8 0B D8 AE 00 00 02 [22:41:20]Write i2c OK [22:41:20]MH_I2C_Read... [22:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:20]Read from MH i2c: E2 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 03 00 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 03 00 0C 10 00 90 00 90 [22:41:20]RAPDU: 90 00 [22:41:20]wFMCommunicate OK [22:41:20]wFMCommunicate request_size=4 [22:41:20]MH_SAM_APDU [22:41:20]CAPDU: 80 0D 03 02 [22:41:20]Write to MH i2c: E2 08 00 0D 10 80 0D 03 02 00 00 00 00 98 [22:41:20]Write i2c OK [22:41:20]MH_I2C_Read... [22:41:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:20]Read from MH i2c: E2 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 0B 00 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 0B 00 0D 10 00 45 0E 2C 3A AE 0A FB 18 90 00 1D [22:41:20]RAPDU: 45 0E 2C 3A AE 0A FB 18 90 00 [22:41:20]wFMCommunicate OK [22:41:20]SAM_PROTO_SignData done [22:41:20]FM_MakeSignedData done [22:41:20]CreateOFDProtocolMessage [22:41:20]wFMCommunicate request_size=4 [22:41:20]MH_SAM_APDU [22:41:20]CAPDU: 80 11 00 00 [22:41:20]Write to MH i2c: E2 08 00 0E 10 80 11 00 00 00 00 00 00 98 [22:41:20]Write i2c OK [22:41:20]MH_I2C_Read... [22:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:20]Read from MH i2c: E2 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 17 00 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: E2 17 00 0E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EF [22:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:41:20]wFMCommunicate OK [22:41:20]CreateOFDProtocolMessage done [22:41:20]OFDSenderStorePacket 139962 [22:41:20]StoreOFDPacket docnum=139962 [22:41:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 05 46 07 01 6C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 8F 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 22 02 00 35 04 06 00 37 19 B8 0B D8 AE 45 0E 2C 3A AE 0A FB 18 [22:41:20]CheckFolder [22:41:20]dirname=/storage/ofd_packets [22:41:20]CheckFolder done [22:41:20]ProducePacketName [22:41:20]name=ofd_packets/00139962 [22:41:20]NVStorageSaveData ofd_packets/00139962 [22:41:20]File name is /storage/ofd_packets/00139962 [22:41:20]Write 301 bytes [22:41:20]NVStorageSaveData done [22:41:20]OFDSenderStorePacket done [22:41:20]KKMCreateOFDPacket done [22:41:20]NVStorageSaveData kkm_last_timestamp [22:41:20]File name is /storage/kkm_last_timestamp [22:41:20]Write 4 bytes [22:41:20]NVStorageSaveData done [22:41:20]ExternCall_PrintAddStr [22:41:20]wPrintStart [22:41:20]Write to MH i2c: 01 00 00 0F 10 1F [22:41:20]Write i2c OK [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: 01 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: 01 07 00 [22:41:20]MH_I2C_Read... [22:41:20]Read from MH i2c: 01 07 00 0F 10 00 00 00 00 00 FF 0F 34 [22:41:20]RasterBufferAndPrint [22:41:20]line Счет N : (1)593817 [22:41:20]line ИНН: 02508201610067 [22:41:20]line Контрольно-Кассовый Чек [22:41:20]line ПРОДАЖА [22:41:20]line ТРК (МРК, ГНК) : 51 [22:41:20]line Товар: 2710124500 [22:41:20]line Аи-95-К-5 [22:41:20]line 1.350 * 74.20 [22:41:20]line = 100.17 [22:41:20]line НДС 12% НСП 1% [22:41:20]line > о реализуемом товаре [22:41:20]line ОКРУГЛЕНИЕ: -0.17 [22:41:20]line ИТОГО: 100.00 [22:41:20]line Внесено: 100.00 [22:41:20]line СДАЧА: 0.00 [22:41:20]line НСП 1% : 0.89 [22:41:20]line НДС 12% : 10.64 [22:41:20]line Наличными: 100.00 [22:41:20]line Безнал.: 0.00 [22:41:20]line Место: АЗС № 136 "Партнер Нефть" [22:41:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:41:20]line СНО: Общий режим [22:41:20]line Чек 434 20.08.2024 22:41 [22:41:20]line Смена: 453 ФФД: 1.0 [22:41:20]line ЗНМ: 0300000067 [22:41:20]line РНМ: 0000000000092569 [22:41:20]line Версия ККМ: 001 [22:41:20]line ФМ: 0000000000871776 [22:41:20]line ФД: 139962 [22:41:20]line ФПД: 60583601494190 [22:41:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T224119&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139962&fm=60583601494190&tin=02508201610067®Number=0000000000092569&sum=10000 [22:41:21]written 0, free lines is 4095 [22:41:21]OFD Sender: Processing packet 139962 [packets to send 137, broken 136] [22:41:21]ProducePacketName [22:41:21]name=ofd_packets/00139962 [22:41:21]OFD Sender: To server: pG, [22:41:21]CommunicateWithHost lk.salyk.kg:30040 [22:41:21]ConnectInit lk.salyk.kg [22:41:21]Connected sock=10 [22:41:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 05 46 07 01 6C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 05 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 8F 1B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 22 02 00 35 04 06 00 37 19 B8 0B D8 AE 45 0E 2C 3A AE 0A FB 18 [22:41:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 34 1D 47 00 5F 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 22 02 00 F4 03 04 00 22 C2 C4 66 B6 04 01 00 00 B9 45 8E 97 90 14 CB 61 [22:41:21]CommunicateWithHost err = 0 [22:41:21]CheckOFDResponse [22:41:21]1017 (14) - 77093643461234 [22:41:21]1041 (16) - 0000000000871776 [22:41:21]1040 (4) - 139962 [22:41:21]1012 (4) - 20.08.2024 16:19 [22:41:21]1206 (1) - 0 [22:41:21]OFD Sender: Remove packet 139962 [22:41:21]ProducePacketName [22:41:21]name=ofd_packets/00139962 [22:41:21]NVStorageDeleteData [22:41:21]Write to MH i2c: 01 00 00 3A 10 4A [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: 01 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: 01 07 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 C5 0C 22 [22:41:21]RasterBufferAndPrint [22:41:21]line [22:41:21]line [22:41:21]line [22:41:21]line [22:41:21]line [22:41:21]written 0, free lines is 3275 [22:41:21]MH_Cut [22:41:21]Write to MH i2c: D1 01 00 41 10 01 23 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: D1 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: D1 01 00 [22:41:21]MH_I2C_Read... [22:41:21]Read from MH i2c: D1 01 00 41 10 00 22 [22:41:21]Write to MH i2c: 01 00 00 42 10 52 [22:41:21]Write i2c OK [22:41:21]MH_I2C_Read... [22:41:21]OFD Sender: No OFD packet to send [22:41:22]*** Cut start [22:41:22]*** Partial cut [22:41:22]*** CUTSNS_PIN = 1 [22:41:22]*** CUTSNS_PIN = 0 [22:41:22]*** Brake cut motor [22:41:22]Read from MH i2c: 01 [22:41:22]MH_I2C_Read... [22:41:22]*** Stop cut motor [22:41:22]*** Cut end [22:41:22]Read from MH i2c: 01 07 00 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: 01 07 00 42 10 00 00 00 00 00 FF 0F 67 [22:41:22]process_action close_receipt done [22:41:22]requested_data is exist [22:41:22]produce_requested_data [22:41:22]requested_item fm.sn is exist - process it [22:41:22]wFMCommunicate request_size=4 [22:41:22]MH_SAM_APDU [22:41:22]CAPDU: 80 11 00 00 [22:41:22]Write to MH i2c: E2 08 00 43 10 80 11 00 00 00 00 00 00 CD [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:22]Read from MH i2c: E2 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: E2 17 00 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: E2 17 00 43 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 24 [22:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:41:22]wFMCommunicate OK [22:41:22]requested_item fd.num is exist - process it [22:41:22]SAM_PROTO_GetFieldsCounters [22:41:22]wFMCommunicate request_size=4 [22:41:22]MH_SAM_APDU [22:41:22]CAPDU: 80 13 00 00 [22:41:22]Write to MH i2c: E2 08 00 44 10 80 13 00 00 00 00 00 00 D0 [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:22]Read from MH i2c: E2 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: E2 62 00 [22:41:22]MH_I2C_Read... [22:41:22]Read from MH i2c: E2 62 00 44 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 22 02 00 0E 04 04 00 C5 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 B8 [22:41:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 22 02 00 0E 04 04 00 C5 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:41:22]wFMCommunicate OK [22:41:22]SAM_PROTO_GetFieldsCounters done [22:41:22]requested_item shift.num is exist - process it [22:41:22]requested_item shift.opened is exist - process it [22:41:22]req_shift_opened [22:41:22]FM_GetShiftState [22:41:22]SAM_PROTO_GetShiftState [22:41:22]wFMCommunicate request_size=4 [22:41:22]MH_SAM_APDU [22:41:22]CAPDU: 80 13 01 00 [22:41:22]Write to MH i2c: E2 08 00 45 10 80 13 01 00 00 00 00 00 D2 [22:41:22]Write i2c OK [22:41:22]MH_I2C_Read... [22:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:23]Read from MH i2c: E2 [22:41:23]MH_I2C_Read... [22:41:23]Read from MH i2c: E2 0E 00 [22:41:23]MH_I2C_Read... [22:41:23]Read from MH i2c: E2 0E 00 45 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 63 [22:41:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:41:23]wFMCommunicate OK [22:41:23]SAM_PROTO_GetShiftState done [22:41:23]FM_GetShiftState done [22:41:23]req_shift_opened done [22:41:23]requested_item shift.open_date is exist - process it [22:41:23]req_shift_open_date [22:41:23]req_shift_open_date done [22:41:23]produce_requested_data done [22:41:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139962,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:41:23]process_action_free close_receipt [22:41:23]json_value_free [22:41:23]json_value_free done [22:41:23]process_json_proto returns [22:41:23]Send response to host [22:41:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139962,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:41:23]free response buf [22:41:23]execute_script done [22:41:23]execute_script returns [22:41:23]free content buf [22:41:23]Sock 7.Close socket [22:41:23]Sock 7.Thread stoped [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:33]accept exits with 9 [22:46:33]New connection [22:46:33]New thread 3066764644 created [22:46:33]Thread 3066908004 joined [22:46:33]Waiting for new connection... [22:46:33] Sock 9.Parse request [22:46:33]Sock 9.Check first char [22:46:33]Sock 9.First char is OK [22:46:33]request: POST /json_proto HTTP/1.0 [22:46:33]Method: POST [22:46:33]URL: /json_proto [22:46:33]Method is POST - this is cgi request [22:46:33]url: /json_proto [22:46:33]query_string will be loaded in cgi processing [22:46:33]execute_cgi json_proto POST (null) [22:46:33]execute_cgi path=json_proto method=POST [22:46:33]POST find Content-Length [22:46:33]Host: 172.17.45.67:8080 [22:46:33]Content-Length: 677 [22:46:33]Content-Type: application/json [22:46:33] [22:46:33]POST finish read [22:46:33]Found Content-Length = 677 [22:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.360, "sum" : 160.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:33]execute_script... [22:46: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)593818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.360, "sum" : 160.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:33]POST & json_proto [22:46:33]process_json_proto [22:46:33]json parsed OK: [22:46:33]protocol is kg_v1.0 [22:46:33]action value=close_receipt [22:46:33]process_action close_receipt [22:46:33]cmd_close_receipt [22:46:33]MH_GetDate [22:46:33]Write to MH i2c: F0 00 00 46 10 45 [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: F0 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: F0 09 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: F0 09 00 46 10 00 CA 1C C5 66 5F 7F 2B 66 CE [22:46:33]GetLastDocTimeStamp 1724193679 [22:46:33]current date 1724193994 [22:46:33]FM_GetShiftState [22:46:33]SAM_PROTO_GetShiftState [22:46:33]wFMCommunicate request_size=4 [22:46:33]MH_SAM_APDU [22:46:33]CAPDU: 80 13 01 00 [22:46:33]Write to MH i2c: E2 08 00 47 10 80 13 01 00 00 00 00 00 D4 [22:46:33]Write i2c OK [22:46:33]MH_I2C_Read... [22:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:33]Read from MH i2c: E2 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: E2 0E 00 [22:46:33]MH_I2C_Read... [22:46:33]Read from MH i2c: E2 0E 00 47 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 65 [22:46:33]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:46:33]wFMCommunicate OK [22:46:33]SAM_PROTO_GetShiftState done [22:46:33]FM_GetShiftState done [22:46:33]opened in 1724113785 [22:46:33]opened+sec_in_day 1724200185 [22:46:33]quantity*price = 16000 [22:46:33]sum+1 = 16002 [22:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 435 20.08.2024 22:46 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139963 ФПД: 222952727694147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T224634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139963&fm=222952727694147&tin=02508201610067®Number=0000000000092569&sum=16000 [22:46:34]StoreToDocumentArchive [22:46:34]shift 453 fd 139963 [22:46:34]save to /storage/0453/doc_00139963 [22:46:34]save last doc name /storage/0453/doc_00139963 to /storage/kkm_last_doc_name [22:46:34]save OK [22:46:34]Clear old archive folders... [22:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:34]tlvbuf is 00A60460 [22:46:34]SAM_PROTO_ClearQueue [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 09 00 00 [22:46:34]Write to MH i2c: E2 08 00 54 10 80 09 00 00 00 00 00 00 D6 [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 54 10 00 90 00 D8 [22:46:34]RAPDU: 90 00 [22:46:34]wFMCommunicate OK [22:46:34]SAM_PROTO_ClearQueue done [22:46:34]KKMCreateOFDPacket [22:46:34]OFDProtocolAddRootSTLVToBuf [22:46:34]FM_MakeSignedData [22:46:34]FM_MakeSignedData [22:46:34]SAM_PROTO_SignData [22:46:34]wFMCommunicate request_size=4 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 0D 01 02 [22:46:34]Write to MH i2c: E2 08 00 55 10 80 0D 01 02 00 00 00 00 DE [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:34]Read from MH i2c: E2 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 [22:46:34]MH_I2C_Read... [22:46:34]Read from MH i2c: E2 03 00 55 10 00 90 00 D9 [22:46:34]RAPDU: 90 00 [22:46:34]wFMCommunicate OK [22:46:34]wFMCommunicate request_size=255 [22:46:34]MH_SAM_APDU [22:46:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 81 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 CA 1C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 22 02 00 35 04 06 00 CA [22:46:34]Write to MH i2c: E2 02 01 56 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 81 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 CA 1C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 22 02 00 35 04 06 00 CA 00 00 6F [22:46:34]Write i2c OK [22:46:34]MH_I2C_Read... [22:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:35]Read from MH i2c: E2 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: E2 03 00 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: E2 03 00 56 10 00 90 00 DA [22:46:35]RAPDU: 90 00 [22:46:35]wFMCommunicate OK [22:46:35]wFMCommunicate request_size=10 [22:46:35]MH_SAM_APDU [22:46:35]CAPDU: 80 0D 02 02 05 C6 3A 22 CB 43 [22:46:35]Write to MH i2c: E2 0D 00 57 10 80 0D 02 02 05 00 C6 3A 22 CB 43 00 00 1B [22:46:35]Write i2c OK [22:46:35]MH_I2C_Read... [22:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:35]Read from MH i2c: E2 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: E2 03 00 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: E2 03 00 57 10 00 90 00 DB [22:46:35]RAPDU: 90 00 [22:46:35]wFMCommunicate OK [22:46:35]wFMCommunicate request_size=4 [22:46:35]MH_SAM_APDU [22:46:35]CAPDU: 80 0D 03 02 [22:46:35]Write to MH i2c: E2 08 00 58 10 80 0D 03 02 00 00 00 00 E3 [22:46:35]Write i2c OK [22:46:35]MH_I2C_Read... [22:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:35]Read from MH i2c: E2 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: E2 0B 00 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: E2 0B 00 58 10 00 E8 E8 E0 03 9F 28 25 99 90 00 1C [22:46:35]RAPDU: E8 E8 E0 03 9F 28 25 99 90 00 [22:46:35]wFMCommunicate OK [22:46:35]SAM_PROTO_SignData done [22:46:35]FM_MakeSignedData done [22:46:35]CreateOFDProtocolMessage [22:46:35]wFMCommunicate request_size=4 [22:46:35]MH_SAM_APDU [22:46:35]CAPDU: 80 11 00 00 [22:46:35]Write to MH i2c: E2 08 00 59 10 80 11 00 00 00 00 00 00 E3 [22:46:35]Write i2c OK [22:46:35]MH_I2C_Read... [22:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:35]Read from MH i2c: E2 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: E2 17 00 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: E2 17 00 59 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3A [22:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:46:35]wFMCommunicate OK [22:46:35]CreateOFDProtocolMessage done [22:46:35]OFDSenderStorePacket 139963 [22:46:35]StoreOFDPacket docnum=139963 [22:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A3 31 07 01 C5 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 81 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 CA 1C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 22 02 00 35 04 06 00 CA C6 3A 22 CB 43 E8 E8 E0 03 9F 28 25 99 [22:46:35]CheckFolder [22:46:35]dirname=/storage/ofd_packets [22:46:35]CheckFolder done [22:46:35]ProducePacketName [22:46:35]name=ofd_packets/00139963 [22:46:35]NVStorageSaveData ofd_packets/00139963 [22:46:35]File name is /storage/ofd_packets/00139963 [22:46:35]Write 301 bytes [22:46:35]NVStorageSaveData done [22:46:35]OFDSenderStorePacket done [22:46:35]KKMCreateOFDPacket done [22:46:35]NVStorageSaveData kkm_last_timestamp [22:46:35]File name is /storage/kkm_last_timestamp [22:46:35]Write 4 bytes [22:46:35]NVStorageSaveData done [22:46:35]ExternCall_PrintAddStr [22:46:35]wPrintStart [22:46:35]Write to MH i2c: 01 00 00 5A 10 6A [22:46:35]Write i2c OK [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: 01 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: 01 07 00 [22:46:35]MH_I2C_Read... [22:46:35]Read from MH i2c: 01 07 00 5A 10 00 00 00 00 00 FF 0F 7F [22:46:35]RasterBufferAndPrint [22:46:35]line Счет N : (1)593818 [22:46:35]line ИНН: 02508201610067 [22:46:35]line Контрольно-Кассовый Чек [22:46:35]line ПРОДАЖА [22:46:35]line ТРК (МРК, ГНК) : 42 [22:46:35]line Товар: 2710124130 [22:46:35]line Аи-92-К-5 [22:46:35]line 2.360 * 67.80 [22:46:35]line = 160.01 [22:46:35]line НДС 12% НСП 1% [22:46:35]line > о реализуемом товаре [22:46:35]line ОКРУГЛЕНИЕ: -0.01 [22:46:35]line ИТОГО: 160.00 [22:46:35]line Внесено: 160.00 [22:46:35]line СДАЧА: 0.00 [22:46:35]line НСП 1% : 1.42 [22:46:35]line НДС 12% : 16.99 [22:46:35]line Наличными: 160.00 [22:46:35]line Безнал.: 0.00 [22:46:35]line Место: АЗС № 136 "Партнер Нефть" [22:46:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:46:35]line СНО: Общий режим [22:46:35]line Чек 435 20.08.2024 22:46 [22:46:35]line Смена: 453 ФФД: 1.0 [22:46:35]line ЗНМ: 0300000067 [22:46:35]line РНМ: 0000000000092569 [22:46:35]line Версия ККМ: 001 [22:46:35]line ФМ: 0000000000871776 [22:46:35]line ФД: 139963 [22:46:35]line ФПД: 222952727694147 [22:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T224634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139963&fm=222952727694147&tin=02508201610067®Number=0000000000092569&sum=16000 [22:46:35]OFD Sender: Processing packet 139963 [packets to send 137, broken 136] [22:46:35]ProducePacketName [22:46:35]name=ofd_packets/00139963 [22:46:35]OFD Sender: To server: pG, [22:46:35]CommunicateWithHost lk.salyk.kg:30040 [22:46:35]ConnectInit lk.salyk.kg [22:46:35]written 0, free lines is 4095 [22:46:35]Connected sock=10 [22:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A3 31 07 01 C5 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 09 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 81 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 CA 1C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 22 02 00 35 04 06 00 CA C6 3A 22 CB 43 E8 E8 E0 03 9F 28 25 99 [22:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E1 51 47 00 F2 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 22 02 00 F4 03 04 00 5C C3 C4 66 B6 04 01 00 00 92 68 A2 20 6C 39 26 7A [22:46:35]CommunicateWithHost err = 0 [22:46:35]CheckOFDResponse [22:46:35]1017 (14) - 77093643461234 [22:46:35]1041 (16) - 0000000000871776 [22:46:35]1040 (4) - 139963 [22:46:35]1012 (4) - 20.08.2024 16:25 [22:46:35]1206 (1) - 0 [22:46:35]OFD Sender: Remove packet 139963 [22:46:35]ProducePacketName [22:46:35]name=ofd_packets/00139963 [22:46:35]NVStorageDeleteData [22:46:36]Write to MH i2c: 01 00 00 85 10 95 [22:46:36]Write i2c OK [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: 01 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: 01 07 00 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: 01 07 00 85 10 00 00 00 00 00 D3 0C 7B [22:46:36]RasterBufferAndPrint [22:46:36]line [22:46:36]line [22:46:36]line [22:46:36]line [22:46:36]line [22:46:36]written 0, free lines is 3290 [22:46:36]MH_Cut [22:46:36]Write to MH i2c: D1 01 00 8C 10 01 6E [22:46:36]Write i2c OK [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: D1 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: D1 01 00 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: D1 01 00 8C 10 00 6D [22:46:36]Write to MH i2c: 01 00 00 8D 10 9D [22:46:36]Write i2c OK [22:46:36]MH_I2C_Read... [22:46:36]OFD Sender: No OFD packet to send [22:46:36]*** Cut start [22:46:36]*** Partial cut [22:46:36]*** CUTSNS_PIN = 1 [22:46:36]*** CUTSNS_PIN = 0 [22:46:36]*** Brake cut motor [22:46:37]Read from MH i2c: 01 [22:46:37]MH_I2C_Read... [22:46:37]*** Stop cut motor [22:46:37]*** Cut end [22:46:37]Read from MH i2c: 01 07 00 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: 01 07 00 8D 10 00 00 00 00 00 FF 0F B2 [22:46:37]process_action close_receipt done [22:46:37]requested_data is exist [22:46:37]produce_requested_data [22:46:37]requested_item fm.sn is exist - process it [22:46:37]wFMCommunicate request_size=4 [22:46:37]MH_SAM_APDU [22:46:37]CAPDU: 80 11 00 00 [22:46:37]Write to MH i2c: E2 08 00 8E 10 80 11 00 00 00 00 00 00 18 [22:46:37]Write i2c OK [22:46:37]MH_I2C_Read... [22:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:37]Read from MH i2c: E2 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 17 00 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 17 00 8E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6F [22:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:46:37]wFMCommunicate OK [22:46:37]requested_item fd.num is exist - process it [22:46:37]SAM_PROTO_GetFieldsCounters [22:46:37]wFMCommunicate request_size=4 [22:46:37]MH_SAM_APDU [22:46:37]CAPDU: 80 13 00 00 [22:46:37]Write to MH i2c: E2 08 00 8F 10 80 13 00 00 00 00 00 00 1B [22:46:37]Write i2c OK [22:46:37]MH_I2C_Read... [22:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:37]Read from MH i2c: E2 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 62 00 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 62 00 8F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 22 02 00 0E 04 04 00 C5 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 07 [22:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 22 02 00 0E 04 04 00 C5 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:46:37]wFMCommunicate OK [22:46:37]SAM_PROTO_GetFieldsCounters done [22:46:37]requested_item shift.num is exist - process it [22:46:37]requested_item shift.opened is exist - process it [22:46:37]req_shift_opened [22:46:37]FM_GetShiftState [22:46:37]SAM_PROTO_GetShiftState [22:46:37]wFMCommunicate request_size=4 [22:46:37]MH_SAM_APDU [22:46:37]CAPDU: 80 13 01 00 [22:46:37]Write to MH i2c: E2 08 00 90 10 80 13 01 00 00 00 00 00 1D [22:46:37]Write i2c OK [22:46:37]MH_I2C_Read... [22:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:37]Read from MH i2c: E2 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 0E 00 [22:46:37]MH_I2C_Read... [22:46:37]Read from MH i2c: E2 0E 00 90 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 AE [22:46:37]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:46:37]wFMCommunicate OK [22:46:37]SAM_PROTO_GetShiftState done [22:46:37]FM_GetShiftState done [22:46:37]req_shift_opened done [22:46:37]requested_item shift.open_date is exist - process it [22:46:37]req_shift_open_date [22:46:37]req_shift_open_date done [22:46:37]produce_requested_data done [22:46:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139963,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:46:37]process_action_free close_receipt [22:46:37]json_value_free [22:46:37]json_value_free done [22:46:37]process_json_proto returns [22:46:37]Send response to host [22:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139963,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:46:37]free response buf [22:46:37]execute_script done [22:46:37]execute_script returns [22:46:37]free content buf [22:46:37]Sock 9.Close socket [22:46:37]Sock 9.Thread stoped [22:46:41]OFD Sender: No OFD packet to send [22:46:46]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]accept exits with 7 [22:50:01]New connection [22:50:01]New thread 3066908004 created [22:50:01]Thread 3066764644 joined [22:50:01]Waiting for new connection... [22:50:01] Sock 7.Parse request [22:50:01]Sock 7.Check first char [22:50:01]Sock 7.First char is OK [22:50:01]request: POST /json_proto HTTP/1.0 [22:50:01]Method: POST [22:50:01]URL: /json_proto [22:50:01]Method is POST - this is cgi request [22:50:01]url: /json_proto [22:50:01]query_string will be loaded in cgi processing [22:50:01]execute_cgi json_proto POST (null) [22:50:01]execute_cgi path=json_proto method=POST [22:50:01]POST find Content-Length [22:50:01]Host: 172.17.45.67:8080 [22:50:01]Content-Length: 687 [22:50:01]Content-Type: application/json [22:50:01] [22:50:01]POST finish read [22:50:01]Found Content-Length = 687 [22:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:01]execute_script... [22:50: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)593819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:01]POST & json_proto [22:50:01]process_json_proto [22:50:01]json parsed OK: [22:50:01]protocol is kg_v1.0 [22:50:01]action value=close_receipt [22:50:01]process_action close_receipt [22:50:01]cmd_close_receipt [22:50:01]MH_GetDate [22:50:01]Write to MH i2c: F0 00 00 91 10 90 [22:50:01]Write i2c OK [22:50:01]MH_I2C_Read... [22:50:01]Read from MH i2c: F0 [22:50:01]MH_I2C_Read... [22:50:01]Read from MH i2c: F0 09 00 [22:50:01]MH_I2C_Read... [22:50:01]Read from MH i2c: F0 09 00 91 10 00 9A 1D C5 66 5F 7F 2B 66 EA [22:50:01]GetLastDocTimeStamp 1724193994 [22:50:01]current date 1724194202 [22:50:01]FM_GetShiftState [22:50:01]SAM_PROTO_GetShiftState [22:50:01]wFMCommunicate request_size=4 [22:50:01]MH_SAM_APDU [22:50:01]CAPDU: 80 13 01 00 [22:50:01]Write to MH i2c: E2 08 00 92 10 80 13 01 00 00 00 00 00 1F [22:50:01]Write i2c OK [22:50:01]MH_I2C_Read... [22:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:01]Read from MH i2c: E2 [22:50:01]MH_I2C_Read... [22:50:01]Read from MH i2c: E2 0E 00 [22:50:01]MH_I2C_Read... [22:50:01]Read from MH i2c: E2 0E 00 92 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B0 [22:50:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:50:01]wFMCommunicate OK [22:50:01]SAM_PROTO_GetShiftState done [22:50:01]FM_GetShiftState done [22:50:01]opened in 1724113785 [22:50:01]opened+sec_in_day 1724200185 [22:50:01]quantity*price = 300075 [22:50:01]sum+1 = 300077 [22:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 436 20.08.2024 22:50 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139964 ФПД: 115968206481683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T225002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139964&fm=115968206481683&tin=02508201610067®Number=0000000000092569&sum=300000 [22:50:02]StoreToDocumentArchive [22:50:02]shift 453 fd 139964 [22:50:02]save to /storage/0453/doc_00139964 [22:50:02]save last doc name /storage/0453/doc_00139964 to /storage/kkm_last_doc_name [22:50:02]save OK [22:50:02]Clear old archive folders... [22:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:50:02]tlvbuf is 00A340C0 [22:50:02]SAM_PROTO_ClearQueue [22:50:02]wFMCommunicate request_size=4 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 09 00 00 [22:50:02]Write to MH i2c: E2 08 00 9F 10 80 09 00 00 00 00 00 00 21 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 9F 10 00 90 00 23 [22:50:02]RAPDU: 90 00 [22:50:02]wFMCommunicate OK [22:50:02]SAM_PROTO_ClearQueue done [22:50:02]KKMCreateOFDPacket [22:50:02]OFDProtocolAddRootSTLVToBuf [22:50:02]FM_MakeSignedData [22:50:02]FM_MakeSignedData [22:50:02]SAM_PROTO_SignData [22:50:02]wFMCommunicate request_size=4 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 0D 01 02 [22:50:02]Write to MH i2c: E2 08 00 A0 10 80 0D 01 02 00 00 00 00 29 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 A0 10 00 90 00 24 [22:50:02]RAPDU: 90 00 [22:50:02]wFMCommunicate OK [22:50:02]wFMCommunicate request_size=255 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 9A 1D C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 22 02 00 35 04 06 00 [22:50:02]Write to MH i2c: E2 02 01 A1 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 9A 1D C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 22 02 00 35 04 06 00 00 00 14 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 A1 10 00 90 00 25 [22:50:02]RAPDU: 90 00 [22:50:02]wFMCommunicate OK [22:50:02]wFMCommunicate request_size=11 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 0D 02 02 06 69 78 F3 C0 A9 13 [22:50:02]Write to MH i2c: E2 0E 00 A2 10 80 0D 02 02 06 00 69 78 F3 C0 A9 13 00 00 88 [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:02]Read from MH i2c: E2 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 [22:50:02]MH_I2C_Read... [22:50:02]Read from MH i2c: E2 03 00 A2 10 00 90 00 26 [22:50:02]RAPDU: 90 00 [22:50:02]wFMCommunicate OK [22:50:02]wFMCommunicate request_size=4 [22:50:02]MH_SAM_APDU [22:50:02]CAPDU: 80 0D 03 02 [22:50:02]Write to MH i2c: E2 08 00 A3 10 80 0D 03 02 00 00 00 00 2E [22:50:02]Write i2c OK [22:50:02]MH_I2C_Read... [22:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:03]Read from MH i2c: E2 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 0B 00 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 0B 00 A3 10 00 6C 25 F7 80 C2 DF 8E 0C 90 00 72 [22:50:03]RAPDU: 6C 25 F7 80 C2 DF 8E 0C 90 00 [22:50:03]wFMCommunicate OK [22:50:03]SAM_PROTO_SignData done [22:50:03]FM_MakeSignedData done [22:50:03]CreateOFDProtocolMessage [22:50:03]wFMCommunicate request_size=4 [22:50:03]MH_SAM_APDU [22:50:03]CAPDU: 80 11 00 00 [22:50:03]Write to MH i2c: E2 08 00 A4 10 80 11 00 00 00 00 00 00 2E [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:03]Read from MH i2c: E2 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 17 00 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: E2 17 00 A4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [22:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:50:03]wFMCommunicate OK [22:50:03]CreateOFDProtocolMessage done [22:50:03]OFDSenderStorePacket 139964 [22:50:03]StoreOFDPacket docnum=139964 [22:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 50 9A 08 01 54 E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 9A 1D C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 22 02 00 35 04 06 00 69 78 F3 C0 A9 13 6C 25 F7 80 C2 DF 8E 0C [22:50:03]CheckFolder [22:50:03]dirname=/storage/ofd_packets [22:50:03]CheckFolder done [22:50:03]ProducePacketName [22:50:03]name=ofd_packets/00139964 [22:50:03]NVStorageSaveData ofd_packets/00139964 [22:50:03]File name is /storage/ofd_packets/00139964 [22:50:03]Write 302 bytes [22:50:03]NVStorageSaveData done [22:50:03]OFDSenderStorePacket done [22:50:03]KKMCreateOFDPacket done [22:50:03]NVStorageSaveData kkm_last_timestamp [22:50:03]File name is /storage/kkm_last_timestamp [22:50:03]Write 4 bytes [22:50:03]NVStorageSaveData done [22:50:03]ExternCall_PrintAddStr [22:50:03]wPrintStart [22:50:03]Write to MH i2c: 01 00 00 A5 10 B5 [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: 01 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: 01 07 00 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: 01 07 00 A5 10 00 00 00 00 00 FF 0F CA [22:50:03]RasterBufferAndPrint [22:50:03]line Счет N : (1)593819 [22:50:03]line ИНН: 02508201610067 [22:50:03]line Контрольно-Кассовый Чек [22:50:03]line ПРОДАЖА [22:50:03]line ТРК (МРК, ГНК) : 44 [22:50:03]line Товар: 2710194210 [22:50:03]line ДТ(л)-К-5 [22:50:03]line 39.380 * 76.20 [22:50:03]line = 3000.76 [22:50:03]line НДС 12% НСП 1% [22:50:03]line > о реализуемом товаре [22:50:03]line ОКРУГЛЕНИЕ: -0.76 [22:50:03]line ИТОГО: 3000.00 [22:50:03]line Внесено: 3000.00 [22:50:03]line СДАЧА: 0.00 [22:50:03]line НСП 1% : 26.55 [22:50:03]line НДС 12% : 318.66 [22:50:03]line Наличными: 3000.00 [22:50:03]line Безнал.: 0.00 [22:50:03]line Место: АЗС № 136 "Партнер Нефть" [22:50:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:50:03]line СНО: Общий режим [22:50:03]line Чек 436 20.08.2024 22:50 [22:50:03]line Смена: 453 ФФД: 1.0 [22:50:03]line ЗНМ: 0300000067 [22:50:03]line РНМ: 0000000000092569 [22:50:03]line Версия ККМ: 001 [22:50:03]line ФМ: 0000000000871776 [22:50:03]line ФД: 139964 [22:50:03]line ФПД: 115968206481683 [22:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T225002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139964&fm=115968206481683&tin=02508201610067®Number=0000000000092569&sum=300000 [22:50:03]OFD Sender: Processing packet 139964 [packets to send 137, broken 136] [22:50:03]ProducePacketName [22:50:03]name=ofd_packets/00139964 [22:50:03]OFD Sender: To server: pG, [22:50:03]CommunicateWithHost lk.salyk.kg:30040 [22:50:03]ConnectInit lk.salyk.kg [22:50:03]written 0, free lines is 4095 [22:50:03]Connected sock=10 [22:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 50 9A 08 01 54 E4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 9A 1D C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 22 02 00 35 04 06 00 69 78 F3 C0 A9 13 6C 25 F7 80 C2 DF 8E 0C [22:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8D AB 47 00 F1 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 22 02 00 F4 03 04 00 2C C4 C4 66 B6 04 01 00 00 02 98 FC 12 C2 D3 9C 42 [22:50:03]CommunicateWithHost err = 0 [22:50:03]CheckOFDResponse [22:50:03]1017 (14) - 77093643461234 [22:50:03]1041 (16) - 0000000000871776 [22:50:03]1040 (4) - 139964 [22:50:03]1012 (4) - 20.08.2024 16:28 [22:50:03]1206 (1) - 0 [22:50:03]OFD Sender: Remove packet 139964 [22:50:03]ProducePacketName [22:50:03]name=ofd_packets/00139964 [22:50:03]NVStorageDeleteData [22:50:03]Write to MH i2c: 01 00 00 D0 10 E0 [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: 01 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: 01 07 00 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: 01 07 00 D0 10 00 00 00 00 00 E0 0C D3 [22:50:03]RasterBufferAndPrint [22:50:03]line [22:50:03]line [22:50:03]line [22:50:03]line [22:50:03]line [22:50:03]written 0, free lines is 3302 [22:50:03]MH_Cut [22:50:03]Write to MH i2c: D1 01 00 D7 10 01 B9 [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: D1 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: D1 01 00 [22:50:03]MH_I2C_Read... [22:50:03]Read from MH i2c: D1 01 00 D7 10 00 B8 [22:50:03]Write to MH i2c: 01 00 00 D8 10 E8 [22:50:03]Write i2c OK [22:50:03]MH_I2C_Read... [22:50:04]OFD Sender: No OFD packet to send [22:50:04]*** Cut start [22:50:04]*** Partial cut [22:50:04]*** CUTSNS_PIN = 1 [22:50:04]*** CUTSNS_PIN = 0 [22:50:04]*** Brake cut motor [22:50:05]Read from MH i2c: 01 [22:50:05]MH_I2C_Read... [22:50:05]*** Stop cut motor [22:50:05]*** Cut end [22:50:05]Read from MH i2c: 01 07 00 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: 01 07 00 D8 10 00 00 00 00 00 FF 0F FD [22:50:05]process_action close_receipt done [22:50:05]requested_data is exist [22:50:05]produce_requested_data [22:50:05]requested_item fm.sn is exist - process it [22:50:05]wFMCommunicate request_size=4 [22:50:05]MH_SAM_APDU [22:50:05]CAPDU: 80 11 00 00 [22:50:05]Write to MH i2c: E2 08 00 D9 10 80 11 00 00 00 00 00 00 63 [22:50:05]Write i2c OK [22:50:05]MH_I2C_Read... [22:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:05]Read from MH i2c: E2 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: E2 17 00 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: E2 17 00 D9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BA [22:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:50:05]wFMCommunicate OK [22:50:05]requested_item fd.num is exist - process it [22:50:05]SAM_PROTO_GetFieldsCounters [22:50:05]wFMCommunicate request_size=4 [22:50:05]MH_SAM_APDU [22:50:05]CAPDU: 80 13 00 00 [22:50:05]Write to MH i2c: E2 08 00 DA 10 80 13 00 00 00 00 00 00 66 [22:50:05]Write i2c OK [22:50:05]MH_I2C_Read... [22:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:05]Read from MH i2c: E2 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: E2 62 00 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: E2 62 00 DA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 22 02 00 0E 04 04 00 C5 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 56 [22:50:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 22 02 00 0E 04 04 00 C5 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:50:05]wFMCommunicate OK [22:50:05]SAM_PROTO_GetFieldsCounters done [22:50:05]requested_item shift.num is exist - process it [22:50:05]requested_item shift.opened is exist - process it [22:50:05]req_shift_opened [22:50:05]FM_GetShiftState [22:50:05]SAM_PROTO_GetShiftState [22:50:05]wFMCommunicate request_size=4 [22:50:05]MH_SAM_APDU [22:50:05]CAPDU: 80 13 01 00 [22:50:05]Write to MH i2c: E2 08 00 DB 10 80 13 01 00 00 00 00 00 68 [22:50:05]Write i2c OK [22:50:05]MH_I2C_Read... [22:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:05]Read from MH i2c: E2 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: E2 0E 00 [22:50:05]MH_I2C_Read... [22:50:05]Read from MH i2c: E2 0E 00 DB 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F9 [22:50:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:50:05]wFMCommunicate OK [22:50:05]SAM_PROTO_GetShiftState done [22:50:05]FM_GetShiftState done [22:50:05]req_shift_opened done [22:50:05]requested_item shift.open_date is exist - process it [22:50:05]req_shift_open_date [22:50:05]req_shift_open_date done [22:50:05]produce_requested_data done [22:50:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139964,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:50:05]process_action_free close_receipt [22:50:05]json_value_free [22:50:05]json_value_free done [22:50:05]process_json_proto returns [22:50:05]Send response to host [22:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139964,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:50:05]free response buf [22:50:05]execute_script done [22:50:05]execute_script returns [22:50:05]free content buf [22:50:05]Sock 7.Close socket [22:50:05]Sock 7.Thread stoped [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:47]accept exits with 9 [22:57:47]New connection [22:57:47]New thread 3066764644 created [22:57:47]Thread 3066908004 joined [22:57:47]Waiting for new connection... [22:57:47] Sock 9.Parse request [22:57:47]Sock 9.Check first char [22:57:47]Sock 9.First char is OK [22:57:47]request: POST /json_proto HTTP/1.0 [22:57:47]Method: POST [22:57:47]URL: /json_proto [22:57:47]Method is POST - this is cgi request [22:57:47]url: /json_proto [22:57:47]query_string will be loaded in cgi processing [22:57:47]execute_cgi json_proto POST (null) [22:57:47]execute_cgi path=json_proto method=POST [22:57:47]POST find Content-Length [22:57:47]Host: 172.17.45.67:8080 [22:57:47]Content-Length: 682 [22:57:47]Content-Type: application/json [22:57:47] [22:57:47]POST finish read [22:57:47]Found Content-Length = 682 [22:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:47]execute_script... [22:57: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)593820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:47]POST & json_proto [22:57:47]process_json_proto [22:57:47]json parsed OK: [22:57:47]protocol is kg_v1.0 [22:57:47]action value=close_receipt [22:57:47]process_action close_receipt [22:57:47]cmd_close_receipt [22:57:47]MH_GetDate [22:57:47]Write to MH i2c: F0 00 00 DC 10 DB [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: F0 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: F0 09 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: F0 09 00 DC 10 00 6B 1F C5 66 5F 7F 2B 66 08 [22:57:47]GetLastDocTimeStamp 1724194202 [22:57:47]current date 1724194667 [22:57:47]FM_GetShiftState [22:57:47]SAM_PROTO_GetShiftState [22:57:47]wFMCommunicate request_size=4 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 13 01 00 [22:57:47]Write to MH i2c: E2 08 00 DD 10 80 13 01 00 00 00 00 00 6A [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 0E 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 0E 00 DD 10 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 FB [22:57:47]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:57:47]wFMCommunicate OK [22:57:47]SAM_PROTO_GetShiftState done [22:57:47]FM_GetShiftState done [22:57:47]opened in 1724113785 [22:57:47]opened+sec_in_day 1724200185 [22:57:47]quantity*price = 150041 [22:57:47]sum+1 = 150042 [22:57:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 437 20.08.2024 22:57 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139965 ФПД: 163251037160403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T225747&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139965&fm=163251037160403&tin=02508201610067®Number=0000000000092569&sum=150000 [22:57:48]StoreToDocumentArchive [22:57:48]shift 453 fd 139965 [22:57:48]save to /storage/0453/doc_00139965 [22:57:48]save last doc name /storage/0453/doc_00139965 to /storage/kkm_last_doc_name [22:57:48]save OK [22:57:48]Clear old archive folders... [22:57:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:57:48]tlvbuf is B6E9D380 [22:57:48]SAM_PROTO_ClearQueue [22:57:48]wFMCommunicate request_size=4 [22:57:48]MH_SAM_APDU [22:57:48]CAPDU: 80 09 00 00 [22:57:48]Write to MH i2c: E2 08 00 EA 10 80 09 00 00 00 00 00 00 6C [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 [22:57:48]MH_I2C_Read... [22:57:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:48]Read from MH i2c: E2 03 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 03 00 EA 10 00 90 00 6E [22:57:48]RAPDU: 90 00 [22:57:48]wFMCommunicate OK [22:57:48]SAM_PROTO_ClearQueue done [22:57:48]KKMCreateOFDPacket [22:57:48]OFDProtocolAddRootSTLVToBuf [22:57:48]FM_MakeSignedData [22:57:48]FM_MakeSignedData [22:57:48]SAM_PROTO_SignData [22:57:48]wFMCommunicate request_size=4 [22:57:48]MH_SAM_APDU [22:57:48]CAPDU: 80 0D 01 02 [22:57:48]Write to MH i2c: E2 08 00 EB 10 80 0D 01 02 00 00 00 00 74 [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:48]Read from MH i2c: E2 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 03 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 03 00 EB 10 00 90 00 6F [22:57:48]RAPDU: 90 00 [22:57:48]wFMCommunicate OK [22:57:48]wFMCommunicate request_size=255 [22:57:48]MH_SAM_APDU [22:57:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 6B 1F C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 22 02 00 35 04 06 00 94 [22:57:48]Write to MH i2c: E2 02 01 EC 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 6B 1F C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 22 02 00 35 04 06 00 94 00 00 18 [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:48]Read from MH i2c: E2 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 03 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 03 00 EC 10 00 90 00 70 [22:57:48]RAPDU: 90 00 [22:57:48]wFMCommunicate OK [22:57:48]wFMCommunicate request_size=10 [22:57:48]MH_SAM_APDU [22:57:48]CAPDU: 80 0D 02 02 05 79 D8 14 43 D3 [22:57:48]Write to MH i2c: E2 0D 00 ED 10 80 0D 02 02 05 00 79 D8 14 43 D3 00 00 FC [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:48]Read from MH i2c: E2 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 03 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 03 00 ED 10 00 90 00 71 [22:57:48]RAPDU: 90 00 [22:57:48]wFMCommunicate OK [22:57:48]wFMCommunicate request_size=4 [22:57:48]MH_SAM_APDU [22:57:48]CAPDU: 80 0D 03 02 [22:57:48]Write to MH i2c: E2 08 00 EE 10 80 0D 03 02 00 00 00 00 79 [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:48]Read from MH i2c: E2 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 0B 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 0B 00 EE 10 00 2B DF 03 CF EE A7 35 80 90 00 A0 [22:57:48]RAPDU: 2B DF 03 CF EE A7 35 80 90 00 [22:57:48]wFMCommunicate OK [22:57:48]SAM_PROTO_SignData done [22:57:48]FM_MakeSignedData done [22:57:48]CreateOFDProtocolMessage [22:57:48]wFMCommunicate request_size=4 [22:57:48]MH_SAM_APDU [22:57:48]CAPDU: 80 11 00 00 [22:57:48]Write to MH i2c: E2 08 00 EF 10 80 11 00 00 00 00 00 00 79 [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:48]Read from MH i2c: E2 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 17 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: E2 17 00 EF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [22:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:57:48]wFMCommunicate OK [22:57:48]CreateOFDProtocolMessage done [22:57:48]OFDSenderStorePacket 139965 [22:57:48]StoreOFDPacket docnum=139965 [22:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3F B0 07 01 50 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 6B 1F C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 22 02 00 35 04 06 00 94 79 D8 14 43 D3 2B DF 03 CF EE A7 35 80 [22:57:48]CheckFolder [22:57:48]dirname=/storage/ofd_packets [22:57:48]CheckFolder done [22:57:48]ProducePacketName [22:57:48]name=ofd_packets/00139965 [22:57:48]NVStorageSaveData ofd_packets/00139965 [22:57:48]File name is /storage/ofd_packets/00139965 [22:57:48]Write 301 bytes [22:57:48]NVStorageSaveData done [22:57:48]OFDSenderStorePacket done [22:57:48]KKMCreateOFDPacket done [22:57:48]NVStorageSaveData kkm_last_timestamp [22:57:48]File name is /storage/kkm_last_timestamp [22:57:48]Write 4 bytes [22:57:48]NVStorageSaveData done [22:57:48]ExternCall_PrintAddStr [22:57:48]wPrintStart [22:57:48]Write to MH i2c: 01 00 00 F0 10 00 [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: 01 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: 01 07 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: 01 07 00 F0 10 00 00 00 00 00 FF 0F 15 [22:57:48]RasterBufferAndPrint [22:57:48]line Счет N : (1)593820 [22:57:48]line ИНН: 02508201610067 [22:57:48]line Контрольно-Кассовый Чек [22:57:48]line ПРОДАЖА [22:57:48]line ТРК (МРК, ГНК) : 42 [22:57:48]line Товар: 2710124130 [22:57:48]line Аи-92-К-5 [22:57:48]line 22.130 * 67.80 [22:57:48]line = 1500.41 [22:57:48]line НДС 12% НСП 1% [22:57:48]line > о реализуемом товаре [22:57:48]line ОКРУГЛЕНИЕ: -0.41 [22:57:48]line ИТОГО: 1500.00 [22:57:48]line Внесено: 1500.00 [22:57:48]line СДАЧА: 0.00 [22:57:48]line НСП 1% : 13.28 [22:57:48]line НДС 12% : 159.34 [22:57:48]line Наличными: 1500.00 [22:57:48]line Безнал.: 0.00 [22:57:48]line Место: АЗС № 136 "Партнер Нефть" [22:57:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:57:48]line СНО: Общий режим [22:57:48]line Чек 437 20.08.2024 22:57 [22:57:48]line Смена: 453 ФФД: 1.0 [22:57:48]line ЗНМ: 0300000067 [22:57:48]line РНМ: 0000000000092569 [22:57:48]line Версия ККМ: 001 [22:57:48]line ФМ: 0000000000871776 [22:57:48]line ФД: 139965 [22:57:48]line ФПД: 163251037160403 [22:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T225747&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139965&fm=163251037160403&tin=02508201610067®Number=0000000000092569&sum=150000 [22:57:49]OFD Sender: Processing packet 139965 [packets to send 137, broken 136] [22:57:49]ProducePacketName [22:57:49]name=ofd_packets/00139965 [22:57:49]OFD Sender: To server: pG, [22:57:49]CommunicateWithHost lk.salyk.kg:30040 [22:57:49]ConnectInit lk.salyk.kg [22:57:49]written 0, free lines is 4095 [22:57:49]Connected sock=10 [22:57:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3F B0 07 01 50 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 6B 1F C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 22 02 00 35 04 06 00 94 79 D8 14 43 D3 2B DF 03 CF EE A7 35 80 [22:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A6 DA 47 00 4D 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 22 02 00 F4 03 04 00 FE C5 C4 66 B6 04 01 00 00 B2 55 6B A4 A9 6E 15 95 [22:57:49]CommunicateWithHost err = 0 [22:57:49]CheckOFDResponse [22:57:49]1017 (14) - 77093643461234 [22:57:49]1041 (16) - 0000000000871776 [22:57:49]1040 (4) - 139965 [22:57:49]1012 (4) - 20.08.2024 16:36 [22:57:49]1206 (1) - 0 [22:57:49]OFD Sender: Remove packet 139965 [22:57:49]ProducePacketName [22:57:49]name=ofd_packets/00139965 [22:57:49]NVStorageDeleteData [22:57:49]Write to MH i2c: 01 00 00 1B 11 2C [22:57:49]Write i2c OK [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: 01 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: 01 07 00 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: 01 07 00 1B 11 00 00 00 00 00 D5 0C 14 [22:57:49]RasterBufferAndPrint [22:57:49]line [22:57:49]line [22:57:49]line [22:57:49]line [22:57:49]line [22:57:49]written 0, free lines is 3293 [22:57:49]MH_Cut [22:57:49]Write to MH i2c: D1 01 00 22 11 01 05 [22:57:49]Write i2c OK [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: D1 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: D1 01 00 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: D1 01 00 22 11 00 04 [22:57:49]Write to MH i2c: 01 00 00 23 11 34 [22:57:49]Write i2c OK [22:57:49]MH_I2C_Read... [22:57:50]OFD Sender: No OFD packet to send [22:57:50]*** Cut start [22:57:50]*** Partial cut [22:57:50]*** CUTSNS_PIN = 1 [22:57:50]*** CUTSNS_PIN = 0 [22:57:50]*** Brake cut motor [22:57:50]Read from MH i2c: 01 [22:57:50]MH_I2C_Read... [22:57:50]*** Stop cut motor [22:57:50]*** Cut end [22:57:50]Read from MH i2c: 01 07 00 [22:57:50]MH_I2C_Read... [22:57:50]Read from MH i2c: 01 07 00 23 11 00 00 00 00 00 FF 0F 49 [22:57:50]process_action close_receipt done [22:57:50]requested_data is exist [22:57:50]produce_requested_data [22:57:50]requested_item fm.sn is exist - process it [22:57:50]wFMCommunicate request_size=4 [22:57:50]MH_SAM_APDU [22:57:50]CAPDU: 80 11 00 00 [22:57:50]Write to MH i2c: E2 08 00 24 11 80 11 00 00 00 00 00 00 AF [22:57:50]Write i2c OK [22:57:50]MH_I2C_Read... [22:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:51]Read from MH i2c: E2 [22:57:51]MH_I2C_Read... [22:57:51]Read from MH i2c: E2 17 00 [22:57:51]MH_I2C_Read... [22:57:51]Read from MH i2c: E2 17 00 24 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [22:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:57:51]wFMCommunicate OK [22:57:51]requested_item fd.num is exist - process it [22:57:51]SAM_PROTO_GetFieldsCounters [22:57:51]wFMCommunicate request_size=4 [22:57:51]MH_SAM_APDU [22:57:51]CAPDU: 80 13 00 00 [22:57:51]Write to MH i2c: E2 08 00 25 11 80 13 00 00 00 00 00 00 B2 [22:57:51]Write i2c OK [22:57:51]MH_I2C_Read... [22:57:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:51]Read from MH i2c: E2 [22:57:51]MH_I2C_Read... [22:57:51]Read from MH i2c: E2 62 00 [22:57:51]MH_I2C_Read... [22:57:51]Read from MH i2c: E2 62 00 25 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 22 02 00 0E 04 04 00 C5 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 A6 [22:57:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 22 02 00 0E 04 04 00 C5 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:51]wFMCommunicate OK [22:57:51]SAM_PROTO_GetFieldsCounters done [22:57:51]requested_item shift.num is exist - process it [22:57:51]requested_item shift.opened is exist - process it [22:57:51]req_shift_opened [22:57:51]FM_GetShiftState [22:57:51]SAM_PROTO_GetShiftState [22:57:51]wFMCommunicate request_size=4 [22:57:51]MH_SAM_APDU [22:57:51]CAPDU: 80 13 01 00 [22:57:51]Write to MH i2c: E2 08 00 26 11 80 13 01 00 00 00 00 00 B4 [22:57:51]Write i2c OK [22:57:51]MH_I2C_Read... [22:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:51]Read from MH i2c: E2 [22:57:51]MH_I2C_Read... [22:57:51]Read from MH i2c: E2 0E 00 [22:57:51]MH_I2C_Read... [22:57:51]Read from MH i2c: E2 0E 00 26 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 45 [22:57:51]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [22:57:51]wFMCommunicate OK [22:57:51]SAM_PROTO_GetShiftState done [22:57:51]FM_GetShiftState done [22:57:51]req_shift_opened done [22:57:51]requested_item shift.open_date is exist - process it [22:57:51]req_shift_open_date [22:57:51]req_shift_open_date done [22:57:51]produce_requested_data done [22:57:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139965,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [22:57:51]process_action_free close_receipt [22:57:51]json_value_free [22:57:51]json_value_free done [22:57:51]process_json_proto returns [22:57:51]Send response to host [22:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139965,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [22:57:51]free response buf [22:57:51]execute_script done [22:57:51]execute_script returns [22:57:51]free content buf [22:57:51]Sock 9.Close socket [22:57:51]Sock 9.Thread stoped [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:03:58]int [23:03:58]Write to MH i2c: 01 00 00 27 11 38 [23:03:58]*** FLAG_PRN_KEY set [23:03:58]Write i2c OK [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 07 00 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 07 00 27 11 00 08 00 00 00 FF 0F 55 [23:03:58]state=0 [23:03:58]Key pressed [23:03:58]Feed [23:03:58]Write to MH i2c: D8 00 00 28 11 10 [23:03:58]Write i2c OK [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: D8 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: D8 01 00 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: D8 01 00 28 11 00 11 [23:03:58]int [23:03:58]Write to MH i2c: 01 00 00 29 11 3A [23:03:58]Write i2c OK [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 07 00 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 07 00 29 11 00 48 00 00 00 3C 00 C5 [23:03:58]state=2 [23:03:58]Key pressed [23:03:58]int [23:03:58]Write to MH i2c: 01 00 00 2A 11 3B [23:03:58]*** FLAG_PRN_KEY reset [23:03:58]Write i2c OK [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 07 00 [23:03:58]MH_I2C_Read... [23:03:58]Read from MH i2c: 01 07 00 2A 11 00 00 00 00 00 F5 0F 46 [23:03:58]state=2 [23:03:58]Stop feed [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:05]accept exits with 7 [23:04:05]New connection [23:04:05]New thread 3066908004 created [23:04:05]Thread 3066764644 joined [23:04:05]Waiting for new connection... [23:04:05] Sock 7.Parse request [23:04:05]Sock 7.Check first char [23:04:05]Sock 7.First char is OK [23:04:05]request: POST /json_proto HTTP/1.0 [23:04:05]Method: POST [23:04:05]URL: /json_proto [23:04:05]Method is POST - this is cgi request [23:04:05]url: /json_proto [23:04:05]query_string will be loaded in cgi processing [23:04:05]execute_cgi json_proto POST (null) [23:04:05]execute_cgi path=json_proto method=POST [23:04:05]POST find Content-Length [23:04:05]Host: 172.17.45.67:8080 [23:04:05]Content-Length: 682 [23:04:05]Content-Type: application/json [23:04:05] [23:04:05]POST finish read [23:04:05]Found Content-Length = 682 [23:04:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:05]execute_script... [23:04:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:05]POST & json_proto [23:04:05]process_json_proto [23:04:05]json parsed OK: [23:04:05]protocol is kg_v1.0 [23:04:05]action value=close_receipt [23:04:05]process_action close_receipt [23:04:05]cmd_close_receipt [23:04:05]MH_GetDate [23:04:05]Write to MH i2c: F0 00 00 2B 11 2B [23:04:05]Write i2c OK [23:04:05]MH_I2C_Read... [23:04:05]Read from MH i2c: F0 [23:04:05]MH_I2C_Read... [23:04:05]Read from MH i2c: F0 09 00 [23:04:05]MH_I2C_Read... [23:04:05]Read from MH i2c: F0 09 00 2B 11 00 E6 20 C5 66 5F 7F 2B 66 D4 [23:04:05]GetLastDocTimeStamp 1724194667 [23:04:05]current date 1724195046 [23:04:05]FM_GetShiftState [23:04:05]SAM_PROTO_GetShiftState [23:04:05]wFMCommunicate request_size=4 [23:04:05]MH_SAM_APDU [23:04:05]CAPDU: 80 13 01 00 [23:04:05]Write to MH i2c: E2 08 00 2C 11 80 13 01 00 00 00 00 00 BA [23:04:05]Write i2c OK [23:04:05]MH_I2C_Read... [23:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:05]Read from MH i2c: E2 [23:04:05]MH_I2C_Read... [23:04:05]Read from MH i2c: E2 0E 00 [23:04:05]MH_I2C_Read... [23:04:05]Read from MH i2c: E2 0E 00 2C 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 4B [23:04:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:04:05]wFMCommunicate OK [23:04:05]SAM_PROTO_GetShiftState done [23:04:05]FM_GetShiftState done [23:04:05]opened in 1724113785 [23:04:05]opened+sec_in_day 1724200185 [23:04:05]quantity*price = 100005 [23:04:05]sum+1 = 100006 [23:04:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 438 20.08.2024 23:04 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139966 ФПД: 85377095472679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T230406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139966&fm=85377095472679&tin=02508201610067®Number=0000000000092569&sum=100000 [23:04:07]StoreToDocumentArchive [23:04:07]shift 453 fd 139966 [23:04:07]save to /storage/0453/doc_00139966 [23:04:07]save last doc name /storage/0453/doc_00139966 to /storage/kkm_last_doc_name [23:04:07]save OK [23:04:07]Clear old archive folders... [23:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:07]tlvbuf is 00A00BF0 [23:04:07]SAM_PROTO_ClearQueue [23:04:07]wFMCommunicate request_size=4 [23:04:07]MH_SAM_APDU [23:04:07]CAPDU: 80 09 00 00 [23:04:07]Write to MH i2c: E2 08 00 39 11 80 09 00 00 00 00 00 00 BC [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:07]Read from MH i2c: E2 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 03 00 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 03 00 39 11 00 90 00 BE [23:04:07]RAPDU: 90 00 [23:04:07]wFMCommunicate OK [23:04:07]SAM_PROTO_ClearQueue done [23:04:07]KKMCreateOFDPacket [23:04:07]OFDProtocolAddRootSTLVToBuf [23:04:07]FM_MakeSignedData [23:04:07]FM_MakeSignedData [23:04:07]SAM_PROTO_SignData [23:04:07]wFMCommunicate request_size=4 [23:04:07]MH_SAM_APDU [23:04:07]CAPDU: 80 0D 01 02 [23:04:07]Write to MH i2c: E2 08 00 3A 11 80 0D 01 02 00 00 00 00 C4 [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:07]Read from MH i2c: E2 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 03 00 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 03 00 3A 11 00 90 00 BF [23:04:07]RAPDU: 90 00 [23:04:07]wFMCommunicate OK [23:04:07]wFMCommunicate request_size=255 [23:04:07]MH_SAM_APDU [23:04:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 E6 20 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 22 02 00 35 04 06 00 4D [23:04:07]Write to MH i2c: E2 02 01 3B 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 E6 20 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 22 02 00 35 04 06 00 4D 00 00 B9 [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:07]Read from MH i2c: E2 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 03 00 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 03 00 3B 11 00 90 00 C0 [23:04:07]RAPDU: 90 00 [23:04:07]wFMCommunicate OK [23:04:07]wFMCommunicate request_size=10 [23:04:07]MH_SAM_APDU [23:04:07]CAPDU: 80 0D 02 02 05 A6 67 72 96 27 [23:04:07]Write to MH i2c: E2 0D 00 3C 11 80 0D 02 02 05 00 A6 67 72 96 27 00 00 0D [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:07]Read from MH i2c: E2 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 03 00 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 03 00 3C 11 00 90 00 C1 [23:04:07]RAPDU: 90 00 [23:04:07]wFMCommunicate OK [23:04:07]wFMCommunicate request_size=4 [23:04:07]MH_SAM_APDU [23:04:07]CAPDU: 80 0D 03 02 [23:04:07]Write to MH i2c: E2 08 00 3D 11 80 0D 03 02 00 00 00 00 C9 [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:07]Read from MH i2c: E2 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 0B 00 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 0B 00 3D 11 00 31 74 58 7B B3 0E 41 01 90 00 45 [23:04:07]RAPDU: 31 74 58 7B B3 0E 41 01 90 00 [23:04:07]wFMCommunicate OK [23:04:07]SAM_PROTO_SignData done [23:04:07]FM_MakeSignedData done [23:04:07]CreateOFDProtocolMessage [23:04:07]wFMCommunicate request_size=4 [23:04:07]MH_SAM_APDU [23:04:07]CAPDU: 80 11 00 00 [23:04:07]Write to MH i2c: E2 08 00 3E 11 80 11 00 00 00 00 00 00 C9 [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:07]Read from MH i2c: E2 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 17 00 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: E2 17 00 3E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 20 [23:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:04:07]wFMCommunicate OK [23:04:07]CreateOFDProtocolMessage done [23:04:07]OFDSenderStorePacket 139966 [23:04:07]StoreOFDPacket docnum=139966 [23:04:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 11 CE 07 01 C0 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 E6 20 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 22 02 00 35 04 06 00 4D A6 67 72 96 27 31 74 58 7B B3 0E 41 01 [23:04:07]CheckFolder [23:04:07]dirname=/storage/ofd_packets [23:04:07]CheckFolder done [23:04:07]ProducePacketName [23:04:07]name=ofd_packets/00139966 [23:04:07]NVStorageSaveData ofd_packets/00139966 [23:04:07]File name is /storage/ofd_packets/00139966 [23:04:07]Write 301 bytes [23:04:07]NVStorageSaveData done [23:04:07]OFDSenderStorePacket done [23:04:07]KKMCreateOFDPacket done [23:04:07]NVStorageSaveData kkm_last_timestamp [23:04:07]File name is /storage/kkm_last_timestamp [23:04:07]Write 4 bytes [23:04:07]NVStorageSaveData done [23:04:07]ExternCall_PrintAddStr [23:04:07]wPrintStart [23:04:07]Write to MH i2c: 01 00 00 3F 11 50 [23:04:07]Write i2c OK [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: 01 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: 01 07 00 [23:04:07]MH_I2C_Read... [23:04:07]Read from MH i2c: 01 07 00 3F 11 00 00 00 00 00 FF 0F 65 [23:04:07]RasterBufferAndPrint [23:04:07]line Счет N : (1)593822 [23:04:07]line ИНН: 02508201610067 [23:04:07]line Контрольно-Кассовый Чек [23:04:07]line ПРОДАЖА [23:04:07]line ТРК (МРК, ГНК) : 52 [23:04:07]line Товар: 2710124130 [23:04:07]line Аи-92-К-5 [23:04:07]line 14.750 * 67.80 [23:04:07]line = 1000.05 [23:04:07]line НДС 12% НСП 1% [23:04:07]line > о реализуемом товаре [23:04:07]line ОКРУГЛЕНИЕ: -0.05 [23:04:07]line ИТОГО: 1000.00 [23:04:07]line Внесено: 1000.00 [23:04:07]line СДАЧА: 0.00 [23:04:07]line НСП 1% : 8.85 [23:04:07]line НДС 12% : 106.20 [23:04:07]line Наличными: 1000.00 [23:04:07]line Безнал.: 0.00 [23:04:07]line Место: АЗС № 136 "Партнер Нефть" [23:04:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:04:07]line СНО: Общий режим [23:04:07]line Чек 438 20.08.2024 23:04 [23:04:07]line Смена: 453 ФФД: 1.0 [23:04:07]line ЗНМ: 0300000067 [23:04:07]line РНМ: 0000000000092569 [23:04:07]line Версия ККМ: 001 [23:04:07]line ФМ: 0000000000871776 [23:04:07]line ФД: 139966 [23:04:07]line ФПД: 85377095472679 [23:04:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T230406&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139966&fm=85377095472679&tin=02508201610067®Number=0000000000092569&sum=100000 [23:04:07]OFD Sender: Processing packet 139966 [packets to send 137, broken 136] [23:04:07]ProducePacketName [23:04:07]name=ofd_packets/00139966 [23:04:07]OFD Sender: To server: pG, [23:04:07]CommunicateWithHost lk.salyk.kg:30040 [23:04:07]ConnectInit lk.salyk.kg [23:04:07]written 0, free lines is 4095 [23:04:08]Connected sock=11 [23:04:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 11 CE 07 01 C0 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 E6 20 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 22 02 00 35 04 06 00 4D A6 67 72 96 27 31 74 58 7B B3 0E 41 01 [23:04:08]Write to MH i2c: 01 00 00 6A 11 7B [23:04:08]Write i2c OK [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: 01 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: 01 07 00 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: 01 07 00 6A 11 00 00 00 00 00 CE 0C 5C [23:04:08]RasterBufferAndPrint [23:04:08]line [23:04:08]line [23:04:08]line [23:04:08]line [23:04:08]line [23:04:08]written 0, free lines is 3282 [23:04:08]MH_Cut [23:04:08]Write to MH i2c: D1 01 00 71 11 01 54 [23:04:08]Write i2c OK [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: D1 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: D1 01 00 [23:04:08]MH_I2C_Read... [23:04:08]Read from MH i2c: D1 01 00 71 11 00 53 [23:04:08]Write to MH i2c: 01 00 00 72 11 83 [23:04:08]Write i2c OK [23:04:08]MH_I2C_Read... [23:04:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 32 B2 47 00 D6 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 22 02 00 F4 03 04 00 79 C7 C4 66 B6 04 01 00 00 BB 75 3D 6B B8 CC CF D1 [23:04:08]CommunicateWithHost err = 0 [23:04:08]CheckOFDResponse [23:04:08]1017 (14) - 77093643461234 [23:04:08]1041 (16) - 0000000000871776 [23:04:08]1040 (4) - 139966 [23:04:08]1012 (4) - 20.08.2024 16:42 [23:04:08]1206 (1) - 0 [23:04:08]OFD Sender: Remove packet 139966 [23:04:08]ProducePacketName [23:04:08]name=ofd_packets/00139966 [23:04:08]NVStorageDeleteData [23:04:08]OFD Sender: No OFD packet to send [23:04:09]*** Cut start [23:04:09]*** Partial cut [23:04:09]*** CUTSNS_PIN = 1 [23:04:09]*** CUTSNS_PIN = 0 [23:04:09]*** Brake cut motor [23:04:09]Read from MH i2c: 01 [23:04:09]MH_I2C_Read... [23:04:09]*** Stop cut motor [23:04:09]*** Cut end [23:04:09]Read from MH i2c: 01 07 00 [23:04:09]MH_I2C_Read... [23:04:09]Read from MH i2c: 01 07 00 72 11 00 00 00 00 00 FF 0F 98 [23:04:09]process_action close_receipt done [23:04:09]requested_data is exist [23:04:09]produce_requested_data [23:04:09]requested_item fm.sn is exist - process it [23:04:09]wFMCommunicate request_size=4 [23:04:09]MH_SAM_APDU [23:04:09]CAPDU: 80 11 00 00 [23:04:09]Write to MH i2c: E2 08 00 73 11 80 11 00 00 00 00 00 00 FE [23:04:09]Write i2c OK [23:04:09]MH_I2C_Read... [23:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:09]Read from MH i2c: E2 [23:04:09]MH_I2C_Read... [23:04:09]Read from MH i2c: E2 17 00 [23:04:09]MH_I2C_Read... [23:04:09]Read from MH i2c: E2 17 00 73 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [23:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:04:09]wFMCommunicate OK [23:04:09]requested_item fd.num is exist - process it [23:04:09]SAM_PROTO_GetFieldsCounters [23:04:09]wFMCommunicate request_size=4 [23:04:09]MH_SAM_APDU [23:04:09]CAPDU: 80 13 00 00 [23:04:09]Write to MH i2c: E2 08 00 74 11 80 13 00 00 00 00 00 00 01 [23:04:09]Write i2c OK [23:04:09]MH_I2C_Read... [23:04:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:09]Read from MH i2c: E2 [23:04:09]MH_I2C_Read... [23:04:09]Read from MH i2c: E2 62 00 [23:04:09]MH_I2C_Read... [23:04:09]Read from MH i2c: E2 62 00 74 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 22 02 00 0E 04 04 00 C5 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 F9 [23:04:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 22 02 00 0E 04 04 00 C5 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:04:09]wFMCommunicate OK [23:04:09]SAM_PROTO_GetFieldsCounters done [23:04:09]requested_item shift.num is exist - process it [23:04:09]requested_item shift.opened is exist - process it [23:04:09]req_shift_opened [23:04:09]FM_GetShiftState [23:04:09]SAM_PROTO_GetShiftState [23:04:09]wFMCommunicate request_size=4 [23:04:09]MH_SAM_APDU [23:04:09]CAPDU: 80 13 01 00 [23:04:09]Write to MH i2c: E2 08 00 75 11 80 13 01 00 00 00 00 00 03 [23:04:09]Write i2c OK [23:04:09]MH_I2C_Read... [23:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:10]Read from MH i2c: E2 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 0E 00 [23:04:10]MH_I2C_Read... [23:04:10]Read from MH i2c: E2 0E 00 75 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 94 [23:04:10]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:04:10]wFMCommunicate OK [23:04:10]SAM_PROTO_GetShiftState done [23:04:10]FM_GetShiftState done [23:04:10]req_shift_opened done [23:04:10]requested_item shift.open_date is exist - process it [23:04:10]req_shift_open_date [23:04:10]req_shift_open_date done [23:04:10]produce_requested_data done [23:04:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139966,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:04:10]process_action_free close_receipt [23:04:10]json_value_free [23:04:10]json_value_free done [23:04:10]process_json_proto returns [23:04:10]Send response to host [23:04:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139966,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:04:10]free response buf [23:04:10]execute_script done [23:04:10]execute_script returns [23:04:10]free content buf [23:04:10]Sock 7.Close socket [23:04:10]Sock 7.Thread stoped [23:04:13]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:52]accept exits with 9 [23:04:52]New connection [23:04:52]New thread 3066764644 created [23:04:52]Thread 3066908004 joined [23:04:52]Waiting for new connection... [23:04:52] Sock 9.Parse request [23:04:52]Sock 9.Check first char [23:04:52]Sock 9.First char is OK [23:04:52]request: POST /json_proto HTTP/1.0 [23:04:52]Method: POST [23:04:52]URL: /json_proto [23:04:52]Method is POST - this is cgi request [23:04:52]url: /json_proto [23:04:52]query_string will be loaded in cgi processing [23:04:52]execute_cgi json_proto POST (null) [23:04:52]execute_cgi path=json_proto method=POST [23:04:52]POST find Content-Length [23:04:52]Host: 172.17.45.67:8080 [23:04:52]Content-Length: 682 [23:04:52]Content-Type: application/json [23:04:52] [23:04:52]POST finish read [23:04:52]Found Content-Length = 682 [23:04:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:52]execute_script... [23:04: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)593823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:52]POST & json_proto [23:04:52]process_json_proto [23:04:52]json parsed OK: [23:04:52]protocol is kg_v1.0 [23:04:52]action value=close_receipt [23:04:52]process_action close_receipt [23:04:52]cmd_close_receipt [23:04:52]MH_GetDate [23:04:52]Write to MH i2c: F0 00 00 76 11 76 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: F0 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: F0 09 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: F0 09 00 76 11 00 15 21 C5 66 5F 7F 2B 66 4F [23:04:52]GetLastDocTimeStamp 1724195046 [23:04:52]current date 1724195093 [23:04:52]FM_GetShiftState [23:04:52]SAM_PROTO_GetShiftState [23:04:52]wFMCommunicate request_size=4 [23:04:52]MH_SAM_APDU [23:04:52]CAPDU: 80 13 01 00 [23:04:52]Write to MH i2c: E2 08 00 77 11 80 13 01 00 00 00 00 00 05 [23:04:52]Write i2c OK [23:04:52]MH_I2C_Read... [23:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:52]Read from MH i2c: E2 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 0E 00 [23:04:52]MH_I2C_Read... [23:04:52]Read from MH i2c: E2 0E 00 77 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 96 [23:04:52]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:04:52]wFMCommunicate OK [23:04:52]SAM_PROTO_GetShiftState done [23:04:52]FM_GetShiftState done [23:04:52]opened in 1724113785 [23:04:52]opened+sec_in_day 1724200185 [23:04:52]quantity*price = 150032 [23:04:52]sum+1 = 150033 [23:04:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 439 20.08.2024 23:04 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139967 ФПД: 127084501726336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T230453&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139967&fm=127084501726336&tin=02508201610067®Number=0000000000092569&sum=150000 [23:04:53]StoreToDocumentArchive [23:04:53]shift 453 fd 139967 [23:04:53]save to /storage/0453/doc_00139967 [23:04:53]save last doc name /storage/0453/doc_00139967 to /storage/kkm_last_doc_name [23:04:53]save OK [23:04:53]Clear old archive folders... [23:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:53]tlvbuf is 00A00F90 [23:04:53]SAM_PROTO_ClearQueue [23:04:53]wFMCommunicate request_size=4 [23:04:53]MH_SAM_APDU [23:04:53]CAPDU: 80 09 00 00 [23:04:53]Write to MH i2c: E2 08 00 84 11 80 09 00 00 00 00 00 00 07 [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:53]Read from MH i2c: E2 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 03 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 03 00 84 11 00 90 00 09 [23:04:53]RAPDU: 90 00 [23:04:53]wFMCommunicate OK [23:04:53]SAM_PROTO_ClearQueue done [23:04:53]KKMCreateOFDPacket [23:04:53]OFDProtocolAddRootSTLVToBuf [23:04:53]FM_MakeSignedData [23:04:53]FM_MakeSignedData [23:04:53]SAM_PROTO_SignData [23:04:53]wFMCommunicate request_size=4 [23:04:53]MH_SAM_APDU [23:04:53]CAPDU: 80 0D 01 02 [23:04:53]Write to MH i2c: E2 08 00 85 11 80 0D 01 02 00 00 00 00 0F [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:53]Read from MH i2c: E2 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 03 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 03 00 85 11 00 90 00 0A [23:04:53]RAPDU: 90 00 [23:04:53]wFMCommunicate OK [23:04:53]wFMCommunicate request_size=255 [23:04:53]MH_SAM_APDU [23:04:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 01 00 00 F4 03 04 00 15 21 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 22 02 00 35 04 06 00 73 [23:04:53]Write to MH i2c: E2 02 01 86 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 15 21 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 22 02 00 35 04 06 00 73 00 00 40 [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:53]Read from MH i2c: E2 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 03 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 03 00 86 11 00 90 00 0B [23:04:53]RAPDU: 90 00 [23:04:53]wFMCommunicate OK [23:04:53]wFMCommunicate request_size=10 [23:04:53]MH_SAM_APDU [23:04:53]CAPDU: 80 0D 02 02 05 95 2A 94 F4 80 [23:04:53]Write to MH i2c: E2 0D 00 87 11 80 0D 02 02 05 00 95 2A 94 F4 80 00 00 E3 [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:53]Read from MH i2c: E2 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 03 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 03 00 87 11 00 90 00 0C [23:04:53]RAPDU: 90 00 [23:04:53]wFMCommunicate OK [23:04:53]wFMCommunicate request_size=4 [23:04:53]MH_SAM_APDU [23:04:53]CAPDU: 80 0D 03 02 [23:04:53]Write to MH i2c: E2 08 00 88 11 80 0D 03 02 00 00 00 00 14 [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:53]Read from MH i2c: E2 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 0B 00 [23:04:53]MH_I2C_Read... [23:04:53]Read from MH i2c: E2 0B 00 88 11 00 29 CE 60 B9 C4 00 AB 9B 90 00 2F [23:04:53]RAPDU: 29 CE 60 B9 C4 00 AB 9B 90 00 [23:04:53]wFMCommunicate OK [23:04:53]SAM_PROTO_SignData done [23:04:53]FM_MakeSignedData done [23:04:53]CreateOFDProtocolMessage [23:04:53]wFMCommunicate request_size=4 [23:04:53]MH_SAM_APDU [23:04:53]CAPDU: 80 11 00 00 [23:04:53]Write to MH i2c: E2 08 00 89 11 80 11 00 00 00 00 00 00 14 [23:04:53]Write i2c OK [23:04:53]MH_I2C_Read... [23:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:54]Read from MH i2c: E2 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: E2 17 00 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: E2 17 00 89 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6B [23:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:04:54]wFMCommunicate OK [23:04:54]CreateOFDProtocolMessage done [23:04:54]OFDSenderStorePacket 139967 [23:04:54]StoreOFDPacket docnum=139967 [23:04:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C5 86 07 01 8C C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 01 00 00 F4 03 04 00 15 21 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 22 02 00 35 04 06 00 73 95 2A 94 F4 80 29 CE 60 B9 C4 00 AB 9B [23:04:54]CheckFolder [23:04:54]dirname=/storage/ofd_packets [23:04:54]CheckFolder done [23:04:54]ProducePacketName [23:04:54]name=ofd_packets/00139967 [23:04:54]NVStorageSaveData ofd_packets/00139967 [23:04:54]File name is /storage/ofd_packets/00139967 [23:04:54]Write 301 bytes [23:04:54]NVStorageSaveData done [23:04:54]OFDSenderStorePacket done [23:04:54]KKMCreateOFDPacket done [23:04:54]NVStorageSaveData kkm_last_timestamp [23:04:54]File name is /storage/kkm_last_timestamp [23:04:54]Write 4 bytes [23:04:54]NVStorageSaveData done [23:04:54]ExternCall_PrintAddStr [23:04:54]wPrintStart [23:04:54]Write to MH i2c: 01 00 00 8A 11 9B [23:04:54]Write i2c OK [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: 01 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: 01 07 00 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: 01 07 00 8A 11 00 00 00 00 00 FF 0F B0 [23:04:54]RasterBufferAndPrint [23:04:54]line Счет N : (1)593823 [23:04:54]line ИНН: 02508201610067 [23:04:54]line Контрольно-Кассовый Чек [23:04:54]line ПРОДАЖА [23:04:54]line ТРК (МРК, ГНК) : 31 [23:04:54]line Товар: 2710124500 [23:04:54]line Аи-95-К-5 [23:04:54]line 20.220 * 74.20 [23:04:54]line = 1500.32 [23:04:54]line НДС 12% НСП 1% [23:04:54]line > о реализуемом товаре [23:04:54]line ОКРУГЛЕНИЕ: -0.32 [23:04:54]line ИТОГО: 1500.00 [23:04:54]line Внесено: 1500.00 [23:04:54]line СДАЧА: 0.00 [23:04:54]line НСП 1% : 13.28 [23:04:54]line НДС 12% : 159.33 [23:04:54]line Наличными: 1500.00 [23:04:54]line Безнал.: 0.00 [23:04:54]line Место: АЗС № 136 "Партнер Нефть" [23:04:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:04:54]line СНО: Общий режим [23:04:54]line Чек 439 20.08.2024 23:04 [23:04:54]line Смена: 453 ФФД: 1.0 [23:04:54]line ЗНМ: 0300000067 [23:04:54]line РНМ: 0000000000092569 [23:04:54]line Версия ККМ: 001 [23:04:54]line ФМ: 0000000000871776 [23:04:54]line ФД: 139967 [23:04:54]line ФПД: 127084501726336 [23:04:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T230453&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139967&fm=127084501726336&tin=02508201610067®Number=0000000000092569&sum=150000 [23:04:54]OFD Sender: Processing packet 139967 [packets to send 137, broken 136] [23:04:54]ProducePacketName [23:04:54]name=ofd_packets/00139967 [23:04:54]OFD Sender: To server: pG, [23:04:54]CommunicateWithHost lk.salyk.kg:30040 [23:04:54]ConnectInit lk.salyk.kg [23:04:54]written 0, free lines is 4095 [23:04:54]Connected sock=10 [23:04:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C5 86 07 01 8C C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 01 00 00 F4 03 04 00 15 21 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 22 02 00 35 04 06 00 73 95 2A 94 F4 80 29 CE 60 B9 C4 00 AB 9B [23:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B8 1A 47 00 1A C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 22 02 00 F4 03 04 00 A7 C7 C4 66 B6 04 01 00 00 A2 70 E2 D3 0F 99 F5 BC [23:04:54]CommunicateWithHost err = 0 [23:04:54]CheckOFDResponse [23:04:54]1017 (14) - 77093643461234 [23:04:54]1041 (16) - 0000000000871776 [23:04:54]1040 (4) - 139967 [23:04:54]1012 (4) - 20.08.2024 16:43 [23:04:54]1206 (1) - 0 [23:04:54]OFD Sender: Remove packet 139967 [23:04:54]ProducePacketName [23:04:54]name=ofd_packets/00139967 [23:04:54]NVStorageDeleteData [23:04:54]Write to MH i2c: 01 00 00 B5 11 C6 [23:04:54]Write i2c OK [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: 01 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: 01 07 00 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: 01 07 00 B5 11 00 00 00 00 00 D1 0C AA [23:04:54]RasterBufferAndPrint [23:04:54]line [23:04:54]line [23:04:54]line [23:04:54]line [23:04:54]line [23:04:54]written 0, free lines is 3287 [23:04:54]MH_Cut [23:04:54]Write to MH i2c: D1 01 00 BC 11 01 9F [23:04:54]Write i2c OK [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: D1 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: D1 01 00 [23:04:54]MH_I2C_Read... [23:04:54]Read from MH i2c: D1 01 00 BC 11 00 9E [23:04:54]Write to MH i2c: 01 00 00 BD 11 CE [23:04:54]Write i2c OK [23:04:54]MH_I2C_Read... [23:04:55]OFD Sender: No OFD packet to send [23:04:55]*** Cut start [23:04:55]*** Partial cut [23:04:55]*** CUTSNS_PIN = 1 [23:04:55]*** CUTSNS_PIN = 0 [23:04:55]*** Brake cut motor [23:04:56]Read from MH i2c: 01 [23:04:56]MH_I2C_Read... [23:04:56]*** Stop cut motor [23:04:56]*** Cut end [23:04:56]Read from MH i2c: 01 07 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: 01 07 00 BD 11 00 00 00 00 00 FF 0F E3 [23:04:56]process_action close_receipt done [23:04:56]requested_data is exist [23:04:56]produce_requested_data [23:04:56]requested_item fm.sn is exist - process it [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 11 00 00 [23:04:56]Write to MH i2c: E2 08 00 BE 11 80 11 00 00 00 00 00 00 49 [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 17 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 17 00 BE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [23:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:04:56]wFMCommunicate OK [23:04:56]requested_item fd.num is exist - process it [23:04:56]SAM_PROTO_GetFieldsCounters [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 13 00 00 [23:04:56]Write to MH i2c: E2 08 00 BF 11 80 13 00 00 00 00 00 00 4C [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 62 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 62 00 BF 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 22 02 00 0E 04 04 00 C5 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 48 [23:04:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 22 02 00 0E 04 04 00 C5 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:04:56]wFMCommunicate OK [23:04:56]SAM_PROTO_GetFieldsCounters done [23:04:56]requested_item shift.num is exist - process it [23:04:56]requested_item shift.opened is exist - process it [23:04:56]req_shift_opened [23:04:56]FM_GetShiftState [23:04:56]SAM_PROTO_GetShiftState [23:04:56]wFMCommunicate request_size=4 [23:04:56]MH_SAM_APDU [23:04:56]CAPDU: 80 13 01 00 [23:04:56]Write to MH i2c: E2 08 00 C0 11 80 13 01 00 00 00 00 00 4E [23:04:56]Write i2c OK [23:04:56]MH_I2C_Read... [23:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:56]Read from MH i2c: E2 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 0E 00 [23:04:56]MH_I2C_Read... [23:04:56]Read from MH i2c: E2 0E 00 C0 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 DF [23:04:56]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:04:56]wFMCommunicate OK [23:04:56]SAM_PROTO_GetShiftState done [23:04:56]FM_GetShiftState done [23:04:56]req_shift_opened done [23:04:56]requested_item shift.open_date is exist - process it [23:04:56]req_shift_open_date [23:04:56]req_shift_open_date done [23:04:56]produce_requested_data done [23:04:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139967,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:04:56]process_action_free close_receipt [23:04:56]json_value_free [23:04:56]json_value_free done [23:04:56]process_json_proto returns [23:04:56]Send response to host [23:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139967,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:04:56]free response buf [23:04:56]execute_script done [23:04:56]execute_script returns [23:04:56]free content buf [23:04:56]Sock 9.Close socket [23:04:56]Sock 9.Thread stoped [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:13]accept exits with 7 [23:07:13]New connection [23:07:13]New thread 3066908004 created [23:07:13]Thread 3066764644 joined [23:07:13]Waiting for new connection... [23:07:13] Sock 7.Parse request [23:07:13]Sock 7.Check first char [23:07:13]Sock 7.First char is OK [23:07:13]request: POST /json_proto HTTP/1.0 [23:07:13]Method: POST [23:07:13]URL: /json_proto [23:07:13]Method is POST - this is cgi request [23:07:13]url: /json_proto [23:07:13]query_string will be loaded in cgi processing [23:07:13]execute_cgi json_proto POST (null) [23:07:13]execute_cgi path=json_proto method=POST [23:07:13]POST find Content-Length [23:07:13]Host: 172.17.45.67:8080 [23:07:13]Content-Length: 792 [23:07:13]Content-Type: application/json [23:07:13] [23:07:13]POST finish read [23:07:13]Found Content-Length = 792 [23:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:13]execute_script... [23:07: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)593824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:13]POST & json_proto [23:07:13]process_json_proto [23:07:13]json parsed OK: [23:07:13]protocol is kg_v1.0 [23:07:13]action value=close_receipt [23:07:13]process_action close_receipt [23:07:13]cmd_close_receipt [23:07:13]MH_GetDate [23:07:13]Write to MH i2c: F0 00 00 C1 11 C1 [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: F0 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: F0 09 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: F0 09 00 C1 11 00 A2 21 C5 66 5F 7F 2B 66 27 [23:07:13]GetLastDocTimeStamp 1724195093 [23:07:13]current date 1724195234 [23:07:13]FM_GetShiftState [23:07:13]SAM_PROTO_GetShiftState [23:07:13]wFMCommunicate request_size=4 [23:07:13]MH_SAM_APDU [23:07:13]CAPDU: 80 13 01 00 [23:07:13]Write to MH i2c: E2 08 00 C2 11 80 13 01 00 00 00 00 00 50 [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:13]Read from MH i2c: E2 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 0E 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 0E 00 C2 11 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 E1 [23:07:13]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:07:13]wFMCommunicate OK [23:07:13]SAM_PROTO_GetShiftState done [23:07:13]FM_GetShiftState done [23:07:13]opened in 1724113785 [23:07:13]opened+sec_in_day 1724200185 [23:07:13]quantity*price = 0 [23:07:13]sum+1 = 1 [23:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 440 20.08.2024 23:07 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 139968 ФПД: 140941369185185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T230714&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139968&fm=140941369185185&tin=02508201610067®Number=0000000000092569&sum=0 [23:07:14]StoreToDocumentArchive [23:07:14]shift 453 fd 139968 [23:07:14]save to /storage/0453/doc_00139968 [23:07:14]save last doc name /storage/0453/doc_00139968 to /storage/kkm_last_doc_name [23:07:14]save OK [23:07:14]Clear old archive folders... [23:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:07:14]tlvbuf is 00A00B70 [23:07:14]SAM_PROTO_ClearQueue [23:07:14]wFMCommunicate request_size=4 [23:07:14]MH_SAM_APDU [23:07:14]CAPDU: 80 09 00 00 [23:07:14]Write to MH i2c: E2 08 00 CF 11 80 09 00 00 00 00 00 00 52 [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:14]Read from MH i2c: E2 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 03 00 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 03 00 CF 11 00 90 00 54 [23:07:14]RAPDU: 90 00 [23:07:14]wFMCommunicate OK [23:07:14]SAM_PROTO_ClearQueue done [23:07:14]KKMCreateOFDPacket [23:07:14]OFDProtocolAddRootSTLVToBuf [23:07:14]FM_MakeSignedData [23:07:14]FM_MakeSignedData [23:07:14]SAM_PROTO_SignData [23:07:14]wFMCommunicate request_size=4 [23:07:14]MH_SAM_APDU [23:07:14]CAPDU: 80 0D 01 02 [23:07:14]Write to MH i2c: E2 08 00 D0 11 80 0D 01 02 00 00 00 00 5A [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:14]Read from MH i2c: E2 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 03 00 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 03 00 D0 11 00 90 00 55 [23:07:14]RAPDU: 90 00 [23:07:14]wFMCommunicate OK [23:07:14]wFMCommunicate request_size=255 [23:07:14]MH_SAM_APDU [23:07: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 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 B8 01 00 00 F4 03 04 00 A2 21 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 22 02 00 35 04 06 00 80 [23:07:14]Write to MH i2c: E2 02 01 D1 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 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 B8 01 00 00 F4 03 04 00 A2 21 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 22 02 00 35 04 06 00 80 00 00 56 [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:14]Read from MH i2c: E2 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 03 00 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 03 00 D1 11 00 90 00 56 [23:07:14]RAPDU: 90 00 [23:07:14]wFMCommunicate OK [23:07:14]wFMCommunicate request_size=10 [23:07:14]MH_SAM_APDU [23:07:14]CAPDU: 80 0D 02 02 05 2F 78 3E 93 A1 [23:07:14]Write to MH i2c: E2 0D 00 D2 11 80 0D 02 02 05 00 2F 78 3E 93 A1 00 00 80 [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:14]Read from MH i2c: E2 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 03 00 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 03 00 D2 11 00 90 00 57 [23:07:14]RAPDU: 90 00 [23:07:14]wFMCommunicate OK [23:07:14]wFMCommunicate request_size=4 [23:07:14]MH_SAM_APDU [23:07:14]CAPDU: 80 0D 03 02 [23:07:14]Write to MH i2c: E2 08 00 D3 11 80 0D 03 02 00 00 00 00 5F [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:14]Read from MH i2c: E2 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 0B 00 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 0B 00 D3 11 00 94 4F ED 22 F9 E4 AA 3C 90 00 15 [23:07:14]RAPDU: 94 4F ED 22 F9 E4 AA 3C 90 00 [23:07:14]wFMCommunicate OK [23:07:14]SAM_PROTO_SignData done [23:07:14]FM_MakeSignedData done [23:07:14]CreateOFDProtocolMessage [23:07:14]wFMCommunicate request_size=4 [23:07:14]MH_SAM_APDU [23:07:14]CAPDU: 80 11 00 00 [23:07:14]Write to MH i2c: E2 08 00 D4 11 80 11 00 00 00 00 00 00 5F [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:14]Read from MH i2c: E2 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 17 00 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: E2 17 00 D4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B6 [23:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:07:14]wFMCommunicate OK [23:07:14]CreateOFDProtocolMessage done [23:07:14]OFDSenderStorePacket 139968 [23:07:14]StoreOFDPacket docnum=139968 [23:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BD DA 07 01 B9 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 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 B8 01 00 00 F4 03 04 00 A2 21 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 22 02 00 35 04 06 00 80 2F 78 3E 93 A1 94 4F ED 22 F9 E4 AA 3C [23:07:14]CheckFolder [23:07:14]dirname=/storage/ofd_packets [23:07:14]CheckFolder done [23:07:14]ProducePacketName [23:07:14]name=ofd_packets/00139968 [23:07:14]NVStorageSaveData ofd_packets/00139968 [23:07:14]File name is /storage/ofd_packets/00139968 [23:07:14]Write 301 bytes [23:07:14]NVStorageSaveData done [23:07:14]OFDSenderStorePacket done [23:07:14]KKMCreateOFDPacket done [23:07:14]NVStorageSaveData kkm_last_timestamp [23:07:14]File name is /storage/kkm_last_timestamp [23:07:14]Write 4 bytes [23:07:14]NVStorageSaveData done [23:07:14]ExternCall_PrintAddStr [23:07:14]wPrintStart [23:07:14]Write to MH i2c: 01 00 00 D5 11 E6 [23:07:14]Write i2c OK [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: 01 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: 01 07 00 [23:07:14]MH_I2C_Read... [23:07:14]Read from MH i2c: 01 07 00 D5 11 00 00 00 00 00 FF 0F FB [23:07:14]RasterBufferAndPrint [23:07:14]line Счет N : (1)593824 [23:07:14]line ИНН: 02508201610067 [23:07:14]line Контрольно-Кассовый Чек [23:07:14]line ПРОДАЖА [23:07:14]line ТРК (МРК, ГНК) : 41 [23:07:14]line Товар: 2710124500 [23:07:14]line Аи-95-К-5 [23:07:14]line 50.000 * 0.00 [23:07:14]line = 0.00 [23:07:14]line НДС 12% НСП 1% [23:07:14]line > о реализуемом товаре [23:07:14]line ИТОГО: 0.00 [23:07:14]line НСП 1% : 0.00 [23:07:14]line НДС 12% : 0.00 [23:07:14]line Наличными: 0.00 [23:07:14]line Безнал.: 0.00 [23:07:14]line Место: АЗС № 136 "Партнер Нефть" [23:07:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:07:14]line СНО: Общий режим [23:07:14]line Чек 440 20.08.2024 23:07 [23:07:14]line Смена: 453 ФФД: 1.0 [23:07:14]line ЗНМ: 0300000067 [23:07:14]line РНМ: 0000000000092569 [23:07:14]line Версия ККМ: 001 [23:07:14]line Талоны: Топливная Карта [23:07:14]line 99761 [23:07:14]line ФМ: 0000000000871776 [23:07:14]line ФД: 139968 [23:07:14]line ФПД: 140941369185185 [23:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T230714&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139968&fm=140941369185185&tin=02508201610067®Number=0000000000092569&sum=0 [23:07:14]written 0, free lines is 4095 [23:07:14]OFD Sender: Processing packet 139968 [packets to send 137, broken 136] [23:07:14]ProducePacketName [23:07:14]name=ofd_packets/00139968 [23:07:15]OFD Sender: To server: pG, [23:07:15]CommunicateWithHost lk.salyk.kg:30040 [23:07:15]ConnectInit lk.salyk.kg [23:07:15]Write to MH i2c: 01 00 00 FF 11 10 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: 01 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: 01 07 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: 01 07 00 FF 11 00 00 00 00 00 DD 0C 00 [23:07:15]RasterBufferAndPrint [23:07:15]line [23:07:15]line [23:07:15]line [23:07:15]line [23:07:15]line [23:07:15]written 0, free lines is 3300 [23:07:15]MH_Cut [23:07:15]Write to MH i2c: D1 01 00 06 12 01 EA [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: D1 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: D1 01 00 [23:07:15]MH_I2C_Read... [23:07:15]Read from MH i2c: D1 01 00 06 12 00 E9 [23:07:15]Write to MH i2c: 01 00 00 07 12 19 [23:07:15]Write i2c OK [23:07:15]MH_I2C_Read... [23:07:15]Connected sock=10 [23:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BD DA 07 01 B9 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 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 B8 01 00 00 F4 03 04 00 A2 21 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 22 02 00 35 04 06 00 80 2F 78 3E 93 A1 94 4F ED 22 F9 E4 AA 3C [23:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EC 65 47 00 23 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 22 02 00 F4 03 04 00 34 C8 C4 66 B6 04 01 00 00 8A AF 94 A0 A8 D2 61 7B [23:07:15]CommunicateWithHost err = 0 [23:07:15]CheckOFDResponse [23:07:15]1017 (14) - 77093643461234 [23:07:15]1041 (16) - 0000000000871776 [23:07:15]1040 (4) - 139968 [23:07:15]1012 (4) - 20.08.2024 16:45 [23:07:15]1206 (1) - 0 [23:07:15]OFD Sender: Remove packet 139968 [23:07:15]ProducePacketName [23:07:15]name=ofd_packets/00139968 [23:07:15]NVStorageDeleteData [23:07:16]*** Cut start [23:07:16]*** Partial cut [23:07:16]*** CUTSNS_PIN = 1 [23:07:16]*** CUTSNS_PIN = 0 [23:07:16]OFD Sender: No OFD packet to send [23:07:16]*** Brake cut motor [23:07:16]Read from MH i2c: 01 [23:07:16]MH_I2C_Read... [23:07:16]*** Stop cut motor [23:07:16]*** Cut end [23:07:16]Read from MH i2c: 01 07 00 [23:07:16]MH_I2C_Read... [23:07:16]Read from MH i2c: 01 07 00 07 12 00 00 00 00 00 FF 0F 2E [23:07:16]process_action close_receipt done [23:07:16]requested_data is exist [23:07:16]produce_requested_data [23:07:16]requested_item fm.sn is exist - process it [23:07:16]wFMCommunicate request_size=4 [23:07:16]MH_SAM_APDU [23:07:16]CAPDU: 80 11 00 00 [23:07:16]Write to MH i2c: E2 08 00 08 12 80 11 00 00 00 00 00 00 94 [23:07:16]Write i2c OK [23:07:16]MH_I2C_Read... [23:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:16]Read from MH i2c: E2 [23:07:16]MH_I2C_Read... [23:07:16]Read from MH i2c: E2 17 00 [23:07:16]MH_I2C_Read... [23:07:16]Read from MH i2c: E2 17 00 08 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [23:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:07:16]wFMCommunicate OK [23:07:16]requested_item fd.num is exist - process it [23:07:16]SAM_PROTO_GetFieldsCounters [23:07:16]wFMCommunicate request_size=4 [23:07:16]MH_SAM_APDU [23:07:16]CAPDU: 80 13 00 00 [23:07:16]Write to MH i2c: E2 08 00 09 12 80 13 00 00 00 00 00 00 97 [23:07:16]Write i2c OK [23:07:16]MH_I2C_Read... [23:07:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:16]Read from MH i2c: E2 [23:07:16]MH_I2C_Read... [23:07:16]Read from MH i2c: E2 62 00 [23:07:16]MH_I2C_Read... [23:07:16]Read from MH i2c: E2 62 00 09 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 22 02 00 0E 04 04 00 C5 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 97 [23:07:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 22 02 00 0E 04 04 00 C5 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:07:16]wFMCommunicate OK [23:07:16]SAM_PROTO_GetFieldsCounters done [23:07:16]requested_item shift.num is exist - process it [23:07:16]requested_item shift.opened is exist - process it [23:07:16]req_shift_opened [23:07:16]FM_GetShiftState [23:07:16]SAM_PROTO_GetShiftState [23:07:16]wFMCommunicate request_size=4 [23:07:16]MH_SAM_APDU [23:07:16]CAPDU: 80 13 01 00 [23:07:16]Write to MH i2c: E2 08 00 0A 12 80 13 01 00 00 00 00 00 99 [23:07:16]Write i2c OK [23:07:16]MH_I2C_Read... [23:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:16]Read from MH i2c: E2 [23:07:16]MH_I2C_Read... [23:07:16]Read from MH i2c: E2 0E 00 [23:07:16]MH_I2C_Read... [23:07:16]Read from MH i2c: E2 0E 00 0A 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2A [23:07:16]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:07:16]wFMCommunicate OK [23:07:16]SAM_PROTO_GetShiftState done [23:07:16]FM_GetShiftState done [23:07:16]req_shift_opened done [23:07:16]requested_item shift.open_date is exist - process it [23:07:16]req_shift_open_date [23:07:16]req_shift_open_date done [23:07:16]produce_requested_data done [23:07:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139968,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:07:16]process_action_free close_receipt [23:07:16]json_value_free [23:07:16]json_value_free done [23:07:16]process_json_proto returns [23:07:16]Send response to host [23:07:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139968,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:07:16]free response buf [23:07:16]execute_script done [23:07:16]execute_script returns [23:07:16]free content buf [23:07:16]Sock 7.Close socket [23:07:16]Sock 7.Thread stoped [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:20]accept exits with 9 [23:13:20]New connection [23:13:20]New thread 3066764644 created [23:13:20]Thread 3066908004 joined [23:13:20]Waiting for new connection... [23:13:20] Sock 9.Parse request [23:13:20]Sock 9.Check first char [23:13:20]Sock 9.First char is OK [23:13:20]request: POST /json_proto HTTP/1.0 [23:13:20]Method: POST [23:13:20]URL: /json_proto [23:13:20]Method is POST - this is cgi request [23:13:20]url: /json_proto [23:13:20]query_string will be loaded in cgi processing [23:13:20]execute_cgi json_proto POST (null) [23:13:20]execute_cgi path=json_proto method=POST [23:13:20]POST find Content-Length [23:13:20]Host: 172.17.45.67:8080 [23:13:20]Content-Length: 677 [23:13:20]Content-Type: application/json [23:13:20] [23:13:20]POST finish read [23:13:20]Found Content-Length = 677 [23:13:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.670, "sum" : 420.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:20]execute_script... [23:13: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)593825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.670, "sum" : 420.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:20]POST & json_proto [23:13:20]process_json_proto [23:13:20]json parsed OK: [23:13:20]protocol is kg_v1.0 [23:13:20]action value=close_receipt [23:13:20]process_action close_receipt [23:13:20]cmd_close_receipt [23:13:20]MH_GetDate [23:13:20]Write to MH i2c: F0 00 00 0B 12 0C [23:13:20]Write i2c OK [23:13:20]MH_I2C_Read... [23:13:20]Read from MH i2c: F0 [23:13:20]MH_I2C_Read... [23:13:20]Read from MH i2c: F0 09 00 [23:13:20]MH_I2C_Read... [23:13:20]Read from MH i2c: F0 09 00 0B 12 00 11 23 C5 66 5F 7F 2B 66 E3 [23:13:20]GetLastDocTimeStamp 1724195234 [23:13:20]current date 1724195601 [23:13:20]FM_GetShiftState [23:13:20]SAM_PROTO_GetShiftState [23:13:20]wFMCommunicate request_size=4 [23:13:20]MH_SAM_APDU [23:13:20]CAPDU: 80 13 01 00 [23:13:20]Write to MH i2c: E2 08 00 0C 12 80 13 01 00 00 00 00 00 9B [23:13:20]Write i2c OK [23:13:20]MH_I2C_Read... [23:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:20]Read from MH i2c: E2 [23:13:20]MH_I2C_Read... [23:13:20]Read from MH i2c: E2 0E 00 [23:13:20]MH_I2C_Read... [23:13:20]Read from MH i2c: E2 0E 00 0C 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 2C [23:13:20]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:13:20]wFMCommunicate OK [23:13:20]SAM_PROTO_GetShiftState done [23:13:20]FM_GetShiftState done [23:13:20]opened in 1724113785 [23:13:20]opened+sec_in_day 1724200185 [23:13:20]quantity*price = 42071 [23:13:20]sum+1 = 42072 [23:13:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.68 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 441 20.08.2024 23:13 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139969 ФПД: 171913306882149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T231321&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139969&fm=171913306882149&tin=02508201610067®Number=0000000000092569&sum=42000 [23:13:21]StoreToDocumentArchive [23:13:21]shift 453 fd 139969 [23:13:21]save to /storage/0453/doc_00139969 [23:13:21]save last doc name /storage/0453/doc_00139969 to /storage/kkm_last_doc_name [23:13:21]save OK [23:13:21]Clear old archive folders... [23:13:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:21]tlvbuf is B6D9D530 [23:13:21]SAM_PROTO_ClearQueue [23:13:21]wFMCommunicate request_size=4 [23:13:21]MH_SAM_APDU [23:13:21]CAPDU: 80 09 00 00 [23:13:21]Write to MH i2c: E2 08 00 19 12 80 09 00 00 00 00 00 00 9D [23:13:21]Write i2c OK [23:13:21]MH_I2C_Read... [23:13:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:21]Read from MH i2c: E2 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 03 00 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 03 00 19 12 00 90 00 9F [23:13:21]RAPDU: 90 00 [23:13:21]wFMCommunicate OK [23:13:21]SAM_PROTO_ClearQueue done [23:13:21]KKMCreateOFDPacket [23:13:21]OFDProtocolAddRootSTLVToBuf [23:13:21]FM_MakeSignedData [23:13:21]FM_MakeSignedData [23:13:21]SAM_PROTO_SignData [23:13:21]wFMCommunicate request_size=4 [23:13:21]MH_SAM_APDU [23:13:21]CAPDU: 80 0D 01 02 [23:13:21]Write to MH i2c: E2 08 00 1A 12 80 0D 01 02 00 00 00 00 A5 [23:13:21]Write i2c OK [23:13:21]MH_I2C_Read... [23:13:21]OFD Sender: No OFD packet to send [23:13:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:21]Read from MH i2c: E2 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 03 00 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 03 00 1A 12 00 90 00 A0 [23:13:21]RAPDU: 90 00 [23:13:21]wFMCommunicate OK [23:13:21]wFMCommunicate request_size=255 [23:13:21]MH_SAM_APDU [23:13:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 11 23 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 22 02 00 35 04 06 00 9C [23:13:21]Write to MH i2c: E2 02 01 1B 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 11 23 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 22 02 00 35 04 06 00 9C 00 00 CE [23:13:21]Write i2c OK [23:13:21]MH_I2C_Read... [23:13:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:22]Read from MH i2c: E2 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 03 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 03 00 1B 12 00 90 00 A1 [23:13:22]RAPDU: 90 00 [23:13:22]wFMCommunicate OK [23:13:22]wFMCommunicate request_size=10 [23:13:22]MH_SAM_APDU [23:13:22]CAPDU: 80 0D 02 02 05 5A AF 96 C0 65 [23:13:22]Write to MH i2c: E2 0D 00 1C 12 80 0D 02 02 05 00 5A AF 96 C0 65 00 00 76 [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:22]Read from MH i2c: E2 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 03 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 03 00 1C 12 00 90 00 A2 [23:13:22]RAPDU: 90 00 [23:13:22]wFMCommunicate OK [23:13:22]wFMCommunicate request_size=4 [23:13:22]MH_SAM_APDU [23:13:22]CAPDU: 80 0D 03 02 [23:13:22]Write to MH i2c: E2 08 00 1D 12 80 0D 03 02 00 00 00 00 AA [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:22]Read from MH i2c: E2 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 0B 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 0B 00 1D 12 00 38 56 6F 60 FA 6A 7E C1 90 00 AB [23:13:22]RAPDU: 38 56 6F 60 FA 6A 7E C1 90 00 [23:13:22]wFMCommunicate OK [23:13:22]SAM_PROTO_SignData done [23:13:22]FM_MakeSignedData done [23:13:22]CreateOFDProtocolMessage [23:13:22]wFMCommunicate request_size=4 [23:13:22]MH_SAM_APDU [23:13:22]CAPDU: 80 11 00 00 [23:13:22]Write to MH i2c: E2 08 00 1E 12 80 11 00 00 00 00 00 00 AA [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:22]Read from MH i2c: E2 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 17 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: E2 17 00 1E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [23:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:13:22]wFMCommunicate OK [23:13:22]CreateOFDProtocolMessage done [23:13:22]OFDSenderStorePacket 139969 [23:13:22]StoreOFDPacket docnum=139969 [23:13:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A6 1A 07 01 02 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 11 23 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 22 02 00 35 04 06 00 9C 5A AF 96 C0 65 38 56 6F 60 FA 6A 7E C1 [23:13:22]CheckFolder [23:13:22]dirname=/storage/ofd_packets [23:13:22]CheckFolder done [23:13:22]ProducePacketName [23:13:22]name=ofd_packets/00139969 [23:13:22]NVStorageSaveData ofd_packets/00139969 [23:13:22]File name is /storage/ofd_packets/00139969 [23:13:22]Write 301 bytes [23:13:22]NVStorageSaveData done [23:13:22]OFDSenderStorePacket done [23:13:22]KKMCreateOFDPacket done [23:13:22]NVStorageSaveData kkm_last_timestamp [23:13:22]File name is /storage/kkm_last_timestamp [23:13:22]Write 4 bytes [23:13:22]NVStorageSaveData done [23:13:22]ExternCall_PrintAddStr [23:13:22]wPrintStart [23:13:22]Write to MH i2c: 01 00 00 1F 12 31 [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: 01 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: 01 07 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: 01 07 00 1F 12 00 00 00 00 00 FF 0F 46 [23:13:22]RasterBufferAndPrint [23:13:22]line Счет N : (1)593825 [23:13:22]line ИНН: 02508201610067 [23:13:22]line Контрольно-Кассовый Чек [23:13:22]line ПРОДАЖА [23:13:22]line ТРК (МРК, ГНК) : 41 [23:13:22]line Товар: 2710124500 [23:13:22]line Аи-95-К-5 [23:13:22]line 5.670 * 74.20 [23:13:22]line = 420.71 [23:13:22]line НДС 12% НСП 1% [23:13:22]line > о реализуемом товаре [23:13:22]line ОКРУГЛЕНИЕ: -0.71 [23:13:22]line ИТОГО: 420.00 [23:13:22]line Внесено: 420.00 [23:13:22]line СДАЧА: 0.00 [23:13:22]line НСП 1% : 3.72 [23:13:22]line НДС 12% : 44.68 [23:13:22]line Наличными: 420.00 [23:13:22]line Безнал.: 0.00 [23:13:22]line Место: АЗС № 136 "Партнер Нефть" [23:13:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:13:22]line СНО: Общий режим [23:13:22]line Чек 441 20.08.2024 23:13 [23:13:22]line Смена: 453 ФФД: 1.0 [23:13:22]line ЗНМ: 0300000067 [23:13:22]line РНМ: 0000000000092569 [23:13:22]line Версия ККМ: 001 [23:13:22]line ФМ: 0000000000871776 [23:13:22]line ФД: 139969 [23:13:22]line ФПД: 171913306882149 [23:13:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T231321&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139969&fm=171913306882149&tin=02508201610067®Number=0000000000092569&sum=42000 [23:13:22]OFD Sender: Processing packet 139969 [packets to send 137, broken 136] [23:13:22]ProducePacketName [23:13:22]name=ofd_packets/00139969 [23:13:22]OFD Sender: To server: pG, [23:13:22]CommunicateWithHost lk.salyk.kg:30040 [23:13:22]ConnectInit lk.salyk.kg [23:13:22]written 0, free lines is 4095 [23:13:22]Connected sock=10 [23:13:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A6 1A 07 01 02 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 11 23 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 22 02 00 35 04 06 00 9C 5A AF 96 C0 65 38 56 6F 60 FA 6A 7E C1 [23:13:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A7 1E 47 00 B4 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 22 02 00 F4 03 04 00 A3 C9 C4 66 B6 04 01 00 00 4A D7 7B 42 D9 FD 71 33 [23:13:22]CommunicateWithHost err = 0 [23:13:22]CheckOFDResponse [23:13:22]1017 (14) - 77093643461234 [23:13:22]1041 (16) - 0000000000871776 [23:13:22]1040 (4) - 139969 [23:13:22]1012 (4) - 20.08.2024 16:51 [23:13:22]1206 (1) - 0 [23:13:22]OFD Sender: Remove packet 139969 [23:13:22]ProducePacketName [23:13:22]name=ofd_packets/00139969 [23:13:22]NVStorageDeleteData [23:13:22]Write to MH i2c: 01 00 00 4A 12 5C [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: 01 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: 01 07 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: 01 07 00 4A 12 00 00 00 00 00 C6 0C 35 [23:13:22]RasterBufferAndPrint [23:13:22]line [23:13:22]line [23:13:22]line [23:13:22]line [23:13:22]line [23:13:22]written 0, free lines is 3276 [23:13:22]MH_Cut [23:13:22]Write to MH i2c: D1 01 00 51 12 01 35 [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: D1 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: D1 01 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: D1 01 00 51 12 00 34 [23:13:22]Write to MH i2c: 01 00 00 52 12 64 [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:23]OFD Sender: No OFD packet to send [23:13:23]*** Cut start [23:13:23]*** Partial cut [23:13:23]*** CUTSNS_PIN = 1 [23:13:23]*** CUTSNS_PIN = 0 [23:13:23]*** Brake cut motor [23:13:24]Read from MH i2c: 01 [23:13:24]MH_I2C_Read... [23:13:24]*** Stop cut motor [23:13:24]*** Cut end [23:13:24]Read from MH i2c: 01 07 00 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: 01 07 00 52 12 00 00 00 00 00 FF 0F 79 [23:13:24]process_action close_receipt done [23:13:24]requested_data is exist [23:13:24]produce_requested_data [23:13:24]requested_item fm.sn is exist - process it [23:13:24]wFMCommunicate request_size=4 [23:13:24]MH_SAM_APDU [23:13:24]CAPDU: 80 11 00 00 [23:13:24]Write to MH i2c: E2 08 00 53 12 80 11 00 00 00 00 00 00 DF [23:13:24]Write i2c OK [23:13:24]MH_I2C_Read... [23:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:24]Read from MH i2c: E2 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: E2 17 00 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: E2 17 00 53 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [23:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:13:24]wFMCommunicate OK [23:13:24]requested_item fd.num is exist - process it [23:13:24]SAM_PROTO_GetFieldsCounters [23:13:24]wFMCommunicate request_size=4 [23:13:24]MH_SAM_APDU [23:13:24]CAPDU: 80 13 00 00 [23:13:24]Write to MH i2c: E2 08 00 54 12 80 13 00 00 00 00 00 00 E2 [23:13:24]Write i2c OK [23:13:24]MH_I2C_Read... [23:13:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:24]Read from MH i2c: E2 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: E2 62 00 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: E2 62 00 54 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 22 02 00 0E 04 04 00 C5 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 E6 [23:13:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 22 02 00 0E 04 04 00 C5 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:13:24]wFMCommunicate OK [23:13:24]SAM_PROTO_GetFieldsCounters done [23:13:24]requested_item shift.num is exist - process it [23:13:24]requested_item shift.opened is exist - process it [23:13:24]req_shift_opened [23:13:24]FM_GetShiftState [23:13:24]SAM_PROTO_GetShiftState [23:13:24]wFMCommunicate request_size=4 [23:13:24]MH_SAM_APDU [23:13:24]CAPDU: 80 13 01 00 [23:13:24]Write to MH i2c: E2 08 00 55 12 80 13 01 00 00 00 00 00 E4 [23:13:24]Write i2c OK [23:13:24]MH_I2C_Read... [23:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:24]Read from MH i2c: E2 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: E2 0E 00 [23:13:24]MH_I2C_Read... [23:13:24]Read from MH i2c: E2 0E 00 55 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 75 [23:13:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:13:24]wFMCommunicate OK [23:13:24]SAM_PROTO_GetShiftState done [23:13:24]FM_GetShiftState done [23:13:24]req_shift_opened done [23:13:24]requested_item shift.open_date is exist - process it [23:13:24]req_shift_open_date [23:13:24]req_shift_open_date done [23:13:24]produce_requested_data done [23:13:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139969,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:13:24]process_action_free close_receipt [23:13:24]json_value_free [23:13:24]json_value_free done [23:13:24]process_json_proto returns [23:13:24]Send response to host [23:13:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139969,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:13:24]free response buf [23:13:24]execute_script done [23:13:24]execute_script returns [23:13:24]free content buf [23:13:24]Sock 9.Close socket [23:13:24]Sock 9.Thread stoped [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]accept exits with 7 [23:14:23]New connection [23:14:23]New thread 3066908004 created [23:14:23]Thread 3066764644 joined [23:14:23]Waiting for new connection... [23:14:23] Sock 7.Parse request [23:14:23]Sock 7.Check first char [23:14:23]Sock 7.First char is OK [23:14:23]request: POST /json_proto HTTP/1.0 [23:14:23]Method: POST [23:14:23]URL: /json_proto [23:14:23]Method is POST - this is cgi request [23:14:23]url: /json_proto [23:14:23]query_string will be loaded in cgi processing [23:14:23]execute_cgi json_proto POST (null) [23:14:23]execute_cgi path=json_proto method=POST [23:14:23]POST find Content-Length [23:14:23]Host: 172.17.45.67:8080 [23:14:23]Content-Length: 677 [23:14:23]Content-Type: application/json [23:14:23] [23:14:23]POST finish read [23:14:23]Found Content-Length = 677 [23:14:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:23]execute_script... [23:14: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)593826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:23]POST & json_proto [23:14:23]process_json_proto [23:14:23]json parsed OK: [23:14:23]protocol is kg_v1.0 [23:14:23]action value=close_receipt [23:14:23]process_action close_receipt [23:14:23]cmd_close_receipt [23:14:23]MH_GetDate [23:14:23]Write to MH i2c: F0 00 00 56 12 57 [23:14:23]Write i2c OK [23:14:23]MH_I2C_Read... [23:14:23]Read from MH i2c: F0 [23:14:23]MH_I2C_Read... [23:14:23]Read from MH i2c: F0 09 00 [23:14:23]MH_I2C_Read... [23:14:23]Read from MH i2c: F0 09 00 56 12 00 50 23 C5 66 5F 7F 2B 66 6D [23:14:23]GetLastDocTimeStamp 1724195601 [23:14:23]current date 1724195664 [23:14:23]FM_GetShiftState [23:14:23]SAM_PROTO_GetShiftState [23:14:23]wFMCommunicate request_size=4 [23:14:23]MH_SAM_APDU [23:14:23]CAPDU: 80 13 01 00 [23:14:23]Write to MH i2c: E2 08 00 57 12 80 13 01 00 00 00 00 00 E6 [23:14:23]Write i2c OK [23:14:23]MH_I2C_Read... [23:14:23]OFD Sender: No OFD packet to send [23:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:23]Read from MH i2c: E2 [23:14:23]MH_I2C_Read... [23:14:23]Read from MH i2c: E2 0E 00 [23:14:23]MH_I2C_Read... [23:14:23]Read from MH i2c: E2 0E 00 57 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 77 [23:14:23]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:14:23]wFMCommunicate OK [23:14:23]SAM_PROTO_GetShiftState done [23:14:23]FM_GetShiftState done [23:14:23]opened in 1724113785 [23:14:23]opened+sec_in_day 1724200185 [23:14:23]quantity*price = 30035 [23:14:23]sum+1 = 30036 [23:14:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 442 20.08.2024 23:14 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139970 ФПД: 76317927694359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T231424&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139970&fm=76317927694359&tin=02508201610067®Number=0000000000092569&sum=30000 [23:14:24]StoreToDocumentArchive [23:14:24]shift 453 fd 139970 [23:14:24]save to /storage/0453/doc_00139970 [23:14:24]save last doc name /storage/0453/doc_00139970 to /storage/kkm_last_doc_name [23:14:24]save OK [23:14:24]Clear old archive folders... [23:14:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:24]tlvbuf is 00A008B0 [23:14:24]SAM_PROTO_ClearQueue [23:14:24]wFMCommunicate request_size=4 [23:14:24]MH_SAM_APDU [23:14:24]CAPDU: 80 09 00 00 [23:14:24]Write to MH i2c: E2 08 00 64 12 80 09 00 00 00 00 00 00 E8 [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:24]Read from MH i2c: E2 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 03 00 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 03 00 64 12 00 90 00 EA [23:14:24]RAPDU: 90 00 [23:14:24]wFMCommunicate OK [23:14:24]SAM_PROTO_ClearQueue done [23:14:24]KKMCreateOFDPacket [23:14:24]OFDProtocolAddRootSTLVToBuf [23:14:24]FM_MakeSignedData [23:14:24]FM_MakeSignedData [23:14:24]SAM_PROTO_SignData [23:14:24]wFMCommunicate request_size=4 [23:14:24]MH_SAM_APDU [23:14:24]CAPDU: 80 0D 01 02 [23:14:24]Write to MH i2c: E2 08 00 65 12 80 0D 01 02 00 00 00 00 F0 [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:24]Read from MH i2c: E2 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 03 00 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 03 00 65 12 00 90 00 EB [23:14:24]RAPDU: 90 00 [23:14:24]wFMCommunicate OK [23:14:24]wFMCommunicate request_size=255 [23:14:24]MH_SAM_APDU [23:14:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 50 23 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 22 02 00 35 04 06 00 45 [23:14:24]Write to MH i2c: E2 02 01 66 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 50 23 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 22 02 00 35 04 06 00 45 00 00 E2 [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:25]Read from MH i2c: E2 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 03 00 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 03 00 66 12 00 90 00 EC [23:14:25]RAPDU: 90 00 [23:14:25]wFMCommunicate OK [23:14:25]wFMCommunicate request_size=10 [23:14:25]MH_SAM_APDU [23:14:25]CAPDU: 80 0D 02 02 05 69 26 F8 60 17 [23:14:25]Write to MH i2c: E2 0D 00 67 12 80 0D 02 02 05 00 69 26 F8 60 17 00 00 FB [23:14:25]Write i2c OK [23:14:25]MH_I2C_Read... [23:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:25]Read from MH i2c: E2 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 03 00 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 03 00 67 12 00 90 00 ED [23:14:25]RAPDU: 90 00 [23:14:25]wFMCommunicate OK [23:14:25]wFMCommunicate request_size=4 [23:14:25]MH_SAM_APDU [23:14:25]CAPDU: 80 0D 03 02 [23:14:25]Write to MH i2c: E2 08 00 68 12 80 0D 03 02 00 00 00 00 F5 [23:14:25]Write i2c OK [23:14:25]MH_I2C_Read... [23:14:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:25]Read from MH i2c: E2 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 0B 00 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 0B 00 68 12 00 22 54 74 22 66 45 85 57 90 00 89 [23:14:25]RAPDU: 22 54 74 22 66 45 85 57 90 00 [23:14:25]wFMCommunicate OK [23:14:25]SAM_PROTO_SignData done [23:14:25]FM_MakeSignedData done [23:14:25]CreateOFDProtocolMessage [23:14:25]wFMCommunicate request_size=4 [23:14:25]MH_SAM_APDU [23:14:25]CAPDU: 80 11 00 00 [23:14:25]Write to MH i2c: E2 08 00 69 12 80 11 00 00 00 00 00 00 F5 [23:14:25]Write i2c OK [23:14:25]MH_I2C_Read... [23:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:25]Read from MH i2c: E2 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 17 00 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: E2 17 00 69 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [23:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:14:25]wFMCommunicate OK [23:14:25]CreateOFDProtocolMessage done [23:14:25]OFDSenderStorePacket 139970 [23:14:25]StoreOFDPacket docnum=139970 [23:14:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0E AA 07 01 1A 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 50 23 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 22 02 00 35 04 06 00 45 69 26 F8 60 17 22 54 74 22 66 45 85 57 [23:14:25]CheckFolder [23:14:25]dirname=/storage/ofd_packets [23:14:25]CheckFolder done [23:14:25]ProducePacketName [23:14:25]name=ofd_packets/00139970 [23:14:25]NVStorageSaveData ofd_packets/00139970 [23:14:25]File name is /storage/ofd_packets/00139970 [23:14:25]Write 301 bytes [23:14:25]NVStorageSaveData done [23:14:25]OFDSenderStorePacket done [23:14:25]KKMCreateOFDPacket done [23:14:25]NVStorageSaveData kkm_last_timestamp [23:14:25]File name is /storage/kkm_last_timestamp [23:14:25]Write 4 bytes [23:14:25]NVStorageSaveData done [23:14:25]ExternCall_PrintAddStr [23:14:25]wPrintStart [23:14:25]Write to MH i2c: 01 00 00 6A 12 7C [23:14:25]Write i2c OK [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: 01 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: 01 07 00 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: 01 07 00 6A 12 00 00 00 00 00 FF 0F 91 [23:14:25]RasterBufferAndPrint [23:14:25]line Счет N : (1)593826 [23:14:25]line ИНН: 02508201610067 [23:14:25]line Контрольно-Кассовый Чек [23:14:25]line ПРОДАЖА [23:14:25]line ТРК (МРК, ГНК) : 32 [23:14:25]line Товар: 2710124130 [23:14:25]line Аи-92-К-5 [23:14:25]line 4.430 * 67.80 [23:14:25]line = 300.35 [23:14:25]line НДС 12% НСП 1% [23:14:25]line > о реализуемом товаре [23:14:25]line ОКРУГЛЕНИЕ: -0.35 [23:14:25]line ИТОГО: 300.00 [23:14:25]line Внесено: 300.00 [23:14:25]line СДАЧА: 0.00 [23:14:25]line НСП 1% : 2.66 [23:14:25]line НДС 12% : 31.90 [23:14:25]line Наличными: 300.00 [23:14:25]line Безнал.: 0.00 [23:14:25]line Место: АЗС № 136 "Партнер Нефть" [23:14:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:14:25]line СНО: Общий режим [23:14:25]line Чек 442 20.08.2024 23:14 [23:14:25]line Смена: 453 ФФД: 1.0 [23:14:25]line ЗНМ: 0300000067 [23:14:25]line РНМ: 0000000000092569 [23:14:25]line Версия ККМ: 001 [23:14:25]line ФМ: 0000000000871776 [23:14:25]line ФД: 139970 [23:14:25]line ФПД: 76317927694359 [23:14:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T231424&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139970&fm=76317927694359&tin=02508201610067®Number=0000000000092569&sum=30000 [23:14:25]OFD Sender: Processing packet 139970 [packets to send 137, broken 136] [23:14:25]ProducePacketName [23:14:25]name=ofd_packets/00139970 [23:14:25]OFD Sender: To server: pG, [23:14:25]CommunicateWithHost lk.salyk.kg:30040 [23:14:25]ConnectInit lk.salyk.kg [23:14:25]written 0, free lines is 4095 [23:14:25]Connected sock=11 [23:14:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0E AA 07 01 1A 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 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 50 23 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 22 02 00 35 04 06 00 45 69 26 F8 60 17 22 54 74 22 66 45 85 57 [23:14:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C0 91 47 00 AB 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 22 02 00 F4 03 04 00 E2 C9 C4 66 B6 04 01 00 00 B6 7B 68 E6 AE D6 D7 B1 [23:14:25]CommunicateWithHost err = 0 [23:14:25]CheckOFDResponse [23:14:25]1017 (14) - 77093643461234 [23:14:25]1041 (16) - 0000000000871776 [23:14:25]1040 (4) - 139970 [23:14:25]1012 (4) - 20.08.2024 16:52 [23:14:25]1206 (1) - 0 [23:14:25]OFD Sender: Remove packet 139970 [23:14:25]ProducePacketName [23:14:25]name=ofd_packets/00139970 [23:14:25]NVStorageDeleteData [23:14:25]Write to MH i2c: 01 00 00 95 12 A7 [23:14:25]Write i2c OK [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: 01 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: 01 07 00 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: 01 07 00 95 12 00 00 00 00 00 CE 0C 88 [23:14:25]RasterBufferAndPrint [23:14:25]line [23:14:25]line [23:14:25]line [23:14:25]line [23:14:25]line [23:14:25]written 0, free lines is 3282 [23:14:25]MH_Cut [23:14:25]Write to MH i2c: D1 01 00 9C 12 01 80 [23:14:25]Write i2c OK [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: D1 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: D1 01 00 [23:14:25]MH_I2C_Read... [23:14:25]Read from MH i2c: D1 01 00 9C 12 00 7F [23:14:25]Write to MH i2c: 01 00 00 9D 12 AF [23:14:25]Write i2c OK [23:14:25]MH_I2C_Read... [23:14:26]OFD Sender: No OFD packet to send [23:14:26]*** Cut start [23:14:26]*** Partial cut [23:14:26]*** CUTSNS_PIN = 1 [23:14:26]*** CUTSNS_PIN = 0 [23:14:26]*** Brake cut motor [23:14:27]Read from MH i2c: 01 [23:14:27]MH_I2C_Read... [23:14:27]*** Stop cut motor [23:14:27]*** Cut end [23:14:27]Read from MH i2c: 01 07 00 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: 01 07 00 9D 12 00 00 00 00 00 FF 0F C4 [23:14:27]process_action close_receipt done [23:14:27]requested_data is exist [23:14:27]produce_requested_data [23:14:27]requested_item fm.sn is exist - process it [23:14:27]wFMCommunicate request_size=4 [23:14:27]MH_SAM_APDU [23:14:27]CAPDU: 80 11 00 00 [23:14:27]Write to MH i2c: E2 08 00 9E 12 80 11 00 00 00 00 00 00 2A [23:14:27]Write i2c OK [23:14:27]MH_I2C_Read... [23:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:27]Read from MH i2c: E2 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 17 00 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 17 00 9E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [23:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:14:27]wFMCommunicate OK [23:14:27]requested_item fd.num is exist - process it [23:14:27]SAM_PROTO_GetFieldsCounters [23:14:27]wFMCommunicate request_size=4 [23:14:27]MH_SAM_APDU [23:14:27]CAPDU: 80 13 00 00 [23:14:27]Write to MH i2c: E2 08 00 9F 12 80 13 00 00 00 00 00 00 2D [23:14:27]Write i2c OK [23:14:27]MH_I2C_Read... [23:14:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:27]Read from MH i2c: E2 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 62 00 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 62 00 9F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 22 02 00 0E 04 04 00 C5 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 35 [23:14:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 22 02 00 0E 04 04 00 C5 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:14:27]wFMCommunicate OK [23:14:27]SAM_PROTO_GetFieldsCounters done [23:14:27]requested_item shift.num is exist - process it [23:14:27]requested_item shift.opened is exist - process it [23:14:27]req_shift_opened [23:14:27]FM_GetShiftState [23:14:27]SAM_PROTO_GetShiftState [23:14:27]wFMCommunicate request_size=4 [23:14:27]MH_SAM_APDU [23:14:27]CAPDU: 80 13 01 00 [23:14:27]Write to MH i2c: E2 08 00 A0 12 80 13 01 00 00 00 00 00 2F [23:14:27]Write i2c OK [23:14:27]MH_I2C_Read... [23:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:27]Read from MH i2c: E2 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 0E 00 [23:14:27]MH_I2C_Read... [23:14:27]Read from MH i2c: E2 0E 00 A0 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C0 [23:14:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:14:27]wFMCommunicate OK [23:14:27]SAM_PROTO_GetShiftState done [23:14:27]FM_GetShiftState done [23:14:27]req_shift_opened done [23:14:27]requested_item shift.open_date is exist - process it [23:14:27]req_shift_open_date [23:14:27]req_shift_open_date done [23:14:27]produce_requested_data done [23:14:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139970,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:14:27]process_action_free close_receipt [23:14:27]json_value_free [23:14:27]json_value_free done [23:14:27]process_json_proto returns [23:14:27]Send response to host [23:14:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139970,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:14:27]free response buf [23:14:27]execute_script done [23:14:27]execute_script returns [23:14:27]free content buf [23:14:27]Sock 7.Close socket [23:14:27]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:22]accept exits with 9 [23:20:22]New connection [23:20:22]New thread 3066764644 created [23:20:22]Thread 3066908004 joined [23:20:22]Waiting for new connection... [23:20:22] Sock 9.Parse request [23:20:22]Sock 9.Check first char [23:20:22]Sock 9.First char is OK [23:20:22]request: POST /json_proto HTTP/1.0 [23:20:22]Method: POST [23:20:22]URL: /json_proto [23:20:22]Method is POST - this is cgi request [23:20:22]url: /json_proto [23:20:22]query_string will be loaded in cgi processing [23:20:22]execute_cgi json_proto POST (null) [23:20:22]execute_cgi path=json_proto method=POST [23:20:22]POST find Content-Length [23:20:22]Host: 172.17.45.67:8080 [23:20:22]Content-Length: 682 [23:20:22]Content-Type: application/json [23:20:22] [23:20:22]POST finish read [23:20:22]Found Content-Length = 682 [23:20:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:22]execute_script... [23:20: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)593827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 23.600, "sum" : 1600.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:22]POST & json_proto [23:20:22]process_json_proto [23:20:22]json parsed OK: [23:20:22]protocol is kg_v1.0 [23:20:22]action value=close_receipt [23:20:22]process_action close_receipt [23:20:22]cmd_close_receipt [23:20:22]MH_GetDate [23:20:22]Write to MH i2c: F0 00 00 A1 12 A2 [23:20:22]Write i2c OK [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: F0 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: F0 09 00 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: F0 09 00 A1 12 00 B6 24 C5 66 5F 7F 2B 66 1F [23:20:22]GetLastDocTimeStamp 1724195664 [23:20:22]current date 1724196022 [23:20:22]FM_GetShiftState [23:20:22]SAM_PROTO_GetShiftState [23:20:22]wFMCommunicate request_size=4 [23:20:22]MH_SAM_APDU [23:20:22]CAPDU: 80 13 01 00 [23:20:22]Write to MH i2c: E2 08 00 A2 12 80 13 01 00 00 00 00 00 31 [23:20:22]Write i2c OK [23:20:22]MH_I2C_Read... [23:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:22]Read from MH i2c: E2 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: E2 0E 00 [23:20:22]MH_I2C_Read... [23:20:22]Read from MH i2c: E2 0E 00 A2 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 C2 [23:20:22]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:20:22]wFMCommunicate OK [23:20:22]SAM_PROTO_GetShiftState done [23:20:22]FM_GetShiftState done [23:20:22]opened in 1724113785 [23:20:22]opened+sec_in_day 1724200185 [23:20:22]quantity*price = 160008 [23:20:22]sum+1 = 160009 [23:20:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 443 20.08.2024 23:20 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139971 ФПД: 222342225937725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T232023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139971&fm=222342225937725&tin=02508201610067®Number=0000000000092569&sum=160000 [23:20:23]StoreToDocumentArchive [23:20:23]shift 453 fd 139971 [23:20:23]save to /storage/0453/doc_00139971 [23:20:23]save last doc name /storage/0453/doc_00139971 to /storage/kkm_last_doc_name [23:20:23]save OK [23:20:23]Clear old archive folders... [23:20:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:23]tlvbuf is 00A7CD90 [23:20:23]SAM_PROTO_ClearQueue [23:20:23]wFMCommunicate request_size=4 [23:20:23]MH_SAM_APDU [23:20:23]CAPDU: 80 09 00 00 [23:20:23]Write to MH i2c: E2 08 00 AF 12 80 09 00 00 00 00 00 00 33 [23:20:23]Write i2c OK [23:20:23]MH_I2C_Read... [23:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:23]Read from MH i2c: E2 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 03 00 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 03 00 AF 12 00 90 00 35 [23:20:23]RAPDU: 90 00 [23:20:23]wFMCommunicate OK [23:20:23]SAM_PROTO_ClearQueue done [23:20:23]KKMCreateOFDPacket [23:20:23]OFDProtocolAddRootSTLVToBuf [23:20:23]FM_MakeSignedData [23:20:23]FM_MakeSignedData [23:20:23]SAM_PROTO_SignData [23:20:23]wFMCommunicate request_size=4 [23:20:23]MH_SAM_APDU [23:20:23]CAPDU: 80 0D 01 02 [23:20:23]Write to MH i2c: E2 08 00 B0 12 80 0D 01 02 00 00 00 00 3B [23:20:23]Write i2c OK [23:20:23]MH_I2C_Read... [23:20:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:23]Read from MH i2c: E2 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 03 00 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 03 00 B0 12 00 90 00 36 [23:20:23]RAPDU: 90 00 [23:20:23]wFMCommunicate OK [23:20:23]wFMCommunicate request_size=255 [23:20:23]MH_SAM_APDU [23: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 B7 24 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 22 02 00 35 04 06 00 CA [23:20:23]Write to MH i2c: E2 02 01 B1 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 B7 24 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 22 02 00 35 04 06 00 CA 00 00 3A [23:20:23]Write i2c OK [23:20:23]MH_I2C_Read... [23:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:23]Read from MH i2c: E2 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 03 00 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 03 00 B1 12 00 90 00 37 [23:20:23]RAPDU: 90 00 [23:20:23]wFMCommunicate OK [23:20:23]wFMCommunicate request_size=10 [23:20:23]MH_SAM_APDU [23:20:23]CAPDU: 80 0D 02 02 05 38 15 65 45 3D [23:20:23]Write to MH i2c: E2 0D 00 B2 12 80 0D 02 02 05 00 38 15 65 45 3D 00 00 7C [23:20:23]Write i2c OK [23:20:23]MH_I2C_Read... [23:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:23]Read from MH i2c: E2 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 03 00 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [23:20:23]RAPDU: 90 00 [23:20:23]wFMCommunicate OK [23:20:23]wFMCommunicate request_size=4 [23:20:23]MH_SAM_APDU [23:20:23]CAPDU: 80 0D 03 02 [23:20:23]Write to MH i2c: E2 08 00 B3 12 80 0D 03 02 00 00 00 00 40 [23:20:23]Write i2c OK [23:20:23]MH_I2C_Read... [23:20:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:23]Read from MH i2c: E2 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 0B 00 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 0B 00 B3 12 00 25 86 06 B8 A1 27 C8 B6 90 00 F0 [23:20:23]RAPDU: 25 86 06 B8 A1 27 C8 B6 90 00 [23:20:23]wFMCommunicate OK [23:20:23]SAM_PROTO_SignData done [23:20:23]FM_MakeSignedData done [23:20:23]CreateOFDProtocolMessage [23:20:23]wFMCommunicate request_size=4 [23:20:23]MH_SAM_APDU [23:20:23]CAPDU: 80 11 00 00 [23:20:23]Write to MH i2c: E2 08 00 B4 12 80 11 00 00 00 00 00 00 40 [23:20:23]Write i2c OK [23:20:23]MH_I2C_Read... [23:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:23]Read from MH i2c: E2 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 17 00 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: E2 17 00 B4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [23:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:20:23]wFMCommunicate OK [23:20:23]CreateOFDProtocolMessage done [23:20:23]OFDSenderStorePacket 139971 [23:20:23]StoreOFDPacket docnum=139971 [23:20:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1D 07 07 01 FA 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 B7 24 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 22 02 00 35 04 06 00 CA 38 15 65 45 3D 25 86 06 B8 A1 27 C8 B6 [23:20:23]CheckFolder [23:20:23]dirname=/storage/ofd_packets [23:20:23]CheckFolder done [23:20:23]ProducePacketName [23:20:23]name=ofd_packets/00139971 [23:20:23]NVStorageSaveData ofd_packets/00139971 [23:20:23]File name is /storage/ofd_packets/00139971 [23:20:23]Write 301 bytes [23:20:23]NVStorageSaveData done [23:20:23]OFDSenderStorePacket done [23:20:23]KKMCreateOFDPacket done [23:20:23]NVStorageSaveData kkm_last_timestamp [23:20:23]File name is /storage/kkm_last_timestamp [23:20:23]Write 4 bytes [23:20:23]NVStorageSaveData done [23:20:23]ExternCall_PrintAddStr [23:20:23]wPrintStart [23:20:23]Write to MH i2c: 01 00 00 B5 12 C7 [23:20:23]Write i2c OK [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: 01 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: 01 07 00 [23:20:23]MH_I2C_Read... [23:20:23]Read from MH i2c: 01 07 00 B5 12 00 00 00 00 00 FF 0F DC [23:20:23]RasterBufferAndPrint [23:20:23]line Счет N : (1)593827 [23:20:23]line ИНН: 02508201610067 [23:20:23]line Контрольно-Кассовый Чек [23:20:23]line ПРОДАЖА [23:20:23]line ТРК (МРК, ГНК) : 42 [23:20:23]line Товар: 2710124130 [23:20:23]line Аи-92-К-5 [23:20:23]line 23.600 * 67.80 [23:20:23]line = 1600.08 [23:20:23]line НДС 12% НСП 1% [23:20:23]line > о реализуемом товаре [23:20:23]line ОКРУГЛЕНИЕ: -0.08 [23:20:23]line ИТОГО: 1600.00 [23:20:23]line Внесено: 1600.00 [23:20:23]line СДАЧА: 0.00 [23:20:23]line НСП 1% : 14.16 [23:20:23]line НДС 12% : 169.92 [23:20:23]line Наличными: 1600.00 [23:20:23]line Безнал.: 0.00 [23:20:23]line Место: АЗС № 136 "Партнер Нефть" [23:20:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:20:23]line СНО: Общий режим [23:20:23]line Чек 443 20.08.2024 23:20 [23:20:23]line Смена: 453 ФФД: 1.0 [23:20:23]line ЗНМ: 0300000067 [23:20:23]line РНМ: 0000000000092569 [23:20:23]line Версия ККМ: 001 [23:20:23]line ФМ: 0000000000871776 [23:20:23]line ФД: 139971 [23:20:23]line ФПД: 222342225937725 [23:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T232023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139971&fm=222342225937725&tin=02508201610067®Number=0000000000092569&sum=160000 [23:20:24]written 0, free lines is 4095 [23:20:24]OFD Sender: Processing packet 139971 [packets to send 137, broken 136] [23:20:24]ProducePacketName [23:20:24]name=ofd_packets/00139971 [23:20:24]OFD Sender: To server: pG, [23:20:24]CommunicateWithHost lk.salyk.kg:30040 [23:20:24]ConnectInit lk.salyk.kg [23:20:24]Connected sock=10 [23:20:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1D 07 07 01 FA 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 5C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 B7 24 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 22 02 00 35 04 06 00 CA 38 15 65 45 3D 25 86 06 B8 A1 27 C8 B6 [23:20:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FE C3 47 00 B0 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 22 02 00 F4 03 04 00 49 CB C4 66 B6 04 01 00 00 88 99 A7 19 E2 87 56 A2 [23:20:24]CommunicateWithHost err = 0 [23:20:24]CheckOFDResponse [23:20:24]1017 (14) - 77093643461234 [23:20:24]1041 (16) - 0000000000871776 [23:20:24]1040 (4) - 139971 [23:20:24]1012 (4) - 20.08.2024 16:58 [23:20:24]1206 (1) - 0 [23:20:24]OFD Sender: Remove packet 139971 [23:20:24]ProducePacketName [23:20:24]name=ofd_packets/00139971 [23:20:24]NVStorageDeleteData [23:20:24]Write to MH i2c: 01 00 00 E0 12 F2 [23:20:24]Write i2c OK [23:20:24]MH_I2C_Read... [23:20:24]Read from MH i2c: 01 [23:20:24]MH_I2C_Read... [23:20:24]Read from MH i2c: 01 07 00 [23:20:24]MH_I2C_Read... [23:20:24]Read from MH i2c: 01 07 00 E0 12 00 00 00 00 00 DF 0C E4 [23:20:24]RasterBufferAndPrint [23:20:24]line [23:20:24]line [23:20:24]line [23:20:24]line [23:20:24]line [23:20:24]written 0, free lines is 3301 [23:20:24]MH_Cut [23:20:24]Write to MH i2c: D1 01 00 E7 12 01 CB [23:20:24]Write i2c OK [23:20:24]MH_I2C_Read... [23:20:24]Read from MH i2c: D1 [23:20:24]MH_I2C_Read... [23:20:24]Read from MH i2c: D1 01 00 [23:20:24]MH_I2C_Read... [23:20:24]Read from MH i2c: D1 01 00 E7 12 00 CA [23:20:24]Write to MH i2c: 01 00 00 E8 12 FA [23:20:24]Write i2c OK [23:20:24]MH_I2C_Read... [23:20:25]OFD Sender: No OFD packet to send [23:20:25]*** Cut start [23:20:25]*** Partial cut [23:20:25]*** CUTSNS_PIN = 1 [23:20:25]*** CUTSNS_PIN = 0 [23:20:25]*** Brake cut motor [23:20:25]Read from MH i2c: 01 [23:20:25]MH_I2C_Read... [23:20:25]*** Stop cut motor [23:20:25]*** Cut end [23:20:25]Read from MH i2c: 01 07 00 [23:20:25]MH_I2C_Read... [23:20:25]Read from MH i2c: 01 07 00 E8 12 00 00 00 00 00 FF 0F 0F [23:20:25]process_action close_receipt done [23:20:25]requested_data is exist [23:20:25]produce_requested_data [23:20:25]requested_item fm.sn is exist - process it [23:20:25]wFMCommunicate request_size=4 [23:20:25]MH_SAM_APDU [23:20:25]CAPDU: 80 11 00 00 [23:20:25]Write to MH i2c: E2 08 00 E9 12 80 11 00 00 00 00 00 00 75 [23:20:25]Write i2c OK [23:20:25]MH_I2C_Read... [23:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:25]Read from MH i2c: E2 [23:20:25]MH_I2C_Read... [23:20:25]Read from MH i2c: E2 17 00 [23:20:25]MH_I2C_Read... [23:20:25]Read from MH i2c: E2 17 00 E9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [23:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:20:25]wFMCommunicate OK [23:20:25]requested_item fd.num is exist - process it [23:20:25]SAM_PROTO_GetFieldsCounters [23:20:25]wFMCommunicate request_size=4 [23:20:25]MH_SAM_APDU [23:20:25]CAPDU: 80 13 00 00 [23:20:25]Write to MH i2c: E2 08 00 EA 12 80 13 00 00 00 00 00 00 78 [23:20:25]Write i2c OK [23:20:25]MH_I2C_Read... [23:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:26]Read from MH i2c: E2 [23:20:26]MH_I2C_Read... [23:20:26]Read from MH i2c: E2 62 00 [23:20:26]MH_I2C_Read... [23:20:26]Read from MH i2c: E2 62 00 EA 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 22 02 00 0E 04 04 00 C5 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 84 [23:20:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 22 02 00 0E 04 04 00 C5 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:20:26]wFMCommunicate OK [23:20:26]SAM_PROTO_GetFieldsCounters done [23:20:26]requested_item shift.num is exist - process it [23:20:26]requested_item shift.opened is exist - process it [23:20:26]req_shift_opened [23:20:26]FM_GetShiftState [23:20:26]SAM_PROTO_GetShiftState [23:20:26]wFMCommunicate request_size=4 [23:20:26]MH_SAM_APDU [23:20:26]CAPDU: 80 13 01 00 [23:20:26]Write to MH i2c: E2 08 00 EB 12 80 13 01 00 00 00 00 00 7A [23:20:26]Write i2c OK [23:20:26]MH_I2C_Read... [23:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:26]Read from MH i2c: E2 [23:20:26]MH_I2C_Read... [23:20:26]Read from MH i2c: E2 0E 00 [23:20:26]MH_I2C_Read... [23:20:26]Read from MH i2c: E2 0E 00 EB 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0B [23:20:26]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:20:26]wFMCommunicate OK [23:20:26]SAM_PROTO_GetShiftState done [23:20:26]FM_GetShiftState done [23:20:26]req_shift_opened done [23:20:26]requested_item shift.open_date is exist - process it [23:20:26]req_shift_open_date [23:20:26]req_shift_open_date done [23:20:26]produce_requested_data done [23:20:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139971,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:20:26]process_action_free close_receipt [23:20:26]json_value_free [23:20:26]json_value_free done [23:20:26]process_json_proto returns [23:20:26]Send response to host [23:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139971,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:20:26]free response buf [23:20:26]execute_script done [23:20:26]execute_script returns [23:20:26]free content buf [23:20:26]Sock 9.Close socket [23:20:26]Sock 9.Thread stoped [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:24]accept exits with 7 [23:23:24]New connection [23:23:24]New thread 3066908004 created [23:23:24]Thread 3066764644 joined [23:23:24]Waiting for new connection... [23:23:24] Sock 7.Parse request [23:23:24]Sock 7.Check first char [23:23:24]Sock 7.First char is OK [23:23:24]request: POST /json_proto HTTP/1.0 [23:23:24]Method: POST [23:23:24]URL: /json_proto [23:23:24]Method is POST - this is cgi request [23:23:24]url: /json_proto [23:23:24]query_string will be loaded in cgi processing [23:23:24]execute_cgi json_proto POST (null) [23:23:24]execute_cgi path=json_proto method=POST [23:23:24]POST find Content-Length [23:23:24]Host: 172.17.45.67:8080 [23:23:24]Content-Length: 677 [23:23:24]Content-Type: application/json [23:23:24] [23:23:24]POST finish read [23:23:24]Found Content-Length = 677 [23:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:24]execute_script... [23:23: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)593828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:24]POST & json_proto [23:23:24]process_json_proto [23:23:24]json parsed OK: [23:23:24]protocol is kg_v1.0 [23:23:24]action value=close_receipt [23:23:24]process_action close_receipt [23:23:24]cmd_close_receipt [23:23:24]MH_GetDate [23:23:24]Write to MH i2c: F0 00 00 EC 12 ED [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: F0 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: F0 09 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: F0 09 00 EC 12 00 6D 25 C5 66 5F 7F 2B 66 22 [23:23:24]GetLastDocTimeStamp 1724196023 [23:23:24]current date 1724196205 [23:23:24]FM_GetShiftState [23:23:24]SAM_PROTO_GetShiftState [23:23:24]wFMCommunicate request_size=4 [23:23:24]MH_SAM_APDU [23:23:24]CAPDU: 80 13 01 00 [23:23:24]Write to MH i2c: E2 08 00 ED 12 80 13 01 00 00 00 00 00 7C [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:24]Read from MH i2c: E2 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 0E 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 0E 00 ED 12 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0D [23:23:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:23:24]wFMCommunicate OK [23:23:24]SAM_PROTO_GetShiftState done [23:23:24]FM_GetShiftState done [23:23:24]opened in 1724113785 [23:23:24]opened+sec_in_day 1724200185 [23:23:24]quantity*price = 30035 [23:23:24]sum+1 = 30036 [23:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 444 20.08.2024 23:23 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139972 ФПД: 273745144181325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T232325&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139972&fm=273745144181325&tin=02508201610067®Number=0000000000092569&sum=30000 [23:23:25]StoreToDocumentArchive [23:23:25]shift 453 fd 139972 [23:23:25]save to /storage/0453/doc_00139972 [23:23:25]save last doc name /storage/0453/doc_00139972 to /storage/kkm_last_doc_name [23:23:25]save OK [23:23:25]Clear old archive folders... [23:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:23:25]tlvbuf is 00A9DF50 [23:23:25]SAM_PROTO_ClearQueue [23:23:25]wFMCommunicate request_size=4 [23:23:25]MH_SAM_APDU [23:23:25]CAPDU: 80 09 00 00 [23:23:25]Write to MH i2c: E2 08 00 FA 12 80 09 00 00 00 00 00 00 7E [23:23:25]Write i2c OK [23:23:25]MH_I2C_Read... [23:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:25]Read from MH i2c: E2 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: E2 03 00 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: E2 03 00 FA 12 00 90 00 80 [23:23:25]RAPDU: 90 00 [23:23:25]wFMCommunicate OK [23:23:25]SAM_PROTO_ClearQueue done [23:23:25]KKMCreateOFDPacket [23:23:25]OFDProtocolAddRootSTLVToBuf [23:23:25]FM_MakeSignedData [23:23:25]FM_MakeSignedData [23:23:25]SAM_PROTO_SignData [23:23:25]wFMCommunicate request_size=4 [23:23:25]MH_SAM_APDU [23:23:25]CAPDU: 80 0D 01 02 [23:23:25]Write to MH i2c: E2 08 00 FB 12 80 0D 01 02 00 00 00 00 86 [23:23:25]Write i2c OK [23:23:25]MH_I2C_Read... [23:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:25]Read from MH i2c: E2 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: E2 03 00 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: E2 03 00 FB 12 00 90 00 81 [23:23:25]RAPDU: 90 00 [23:23:25]wFMCommunicate OK [23:23:25]wFMCommunicate request_size=255 [23:23:25]MH_SAM_APDU [23:23:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 6D 25 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 22 02 00 35 04 06 00 F8 [23:23:25]Write to MH i2c: E2 02 01 FC 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 6D 25 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 22 02 00 35 04 06 00 F8 00 00 4E [23:23:25]Write i2c OK [23:23:25]MH_I2C_Read... [23:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:25]Read from MH i2c: E2 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: E2 03 00 [23:23:25]MH_I2C_Read... [23:23:25]Read from MH i2c: E2 03 00 FC 12 00 90 00 82 [23:23:25]RAPDU: 90 00 [23:23:25]wFMCommunicate OK [23:23:25]wFMCommunicate request_size=10 [23:23:25]MH_SAM_APDU [23:23:25]CAPDU: 80 0D 02 02 05 F8 42 13 F2 4D [23:23:25]Write to MH i2c: E2 0D 00 FD 12 80 0D 02 02 05 00 F8 42 13 F2 4D 00 00 1F [23:23:25]Write i2c OK [23:23:25]MH_I2C_Read... [23:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:26]Read from MH i2c: E2 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 03 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 03 00 FD 12 00 90 00 83 [23:23:26]RAPDU: 90 00 [23:23:26]wFMCommunicate OK [23:23:26]wFMCommunicate request_size=4 [23:23:26]MH_SAM_APDU [23:23:26]CAPDU: 80 0D 03 02 [23:23:26]Write to MH i2c: E2 08 00 FE 12 80 0D 03 02 00 00 00 00 8B [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:26]Read from MH i2c: E2 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 0B 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 0B 00 FE 12 00 8F 0E DE 2E EF 00 99 2F 90 00 EC [23:23:26]RAPDU: 8F 0E DE 2E EF 00 99 2F 90 00 [23:23:26]wFMCommunicate OK [23:23:26]SAM_PROTO_SignData done [23:23:26]FM_MakeSignedData done [23:23:26]CreateOFDProtocolMessage [23:23:26]wFMCommunicate request_size=4 [23:23:26]MH_SAM_APDU [23:23:26]CAPDU: 80 11 00 00 [23:23:26]Write to MH i2c: E2 08 00 FF 12 80 11 00 00 00 00 00 00 8B [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:26]Read from MH i2c: E2 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 17 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 17 00 FF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [23:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:23:26]wFMCommunicate OK [23:23:26]CreateOFDProtocolMessage done [23:23:26]OFDSenderStorePacket 139972 [23:23:26]StoreOFDPacket docnum=139972 [23:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CC 68 07 01 25 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 6D 25 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 22 02 00 35 04 06 00 F8 F8 42 13 F2 4D 8F 0E DE 2E EF 00 99 2F [23:23:26]CheckFolder [23:23:26]dirname=/storage/ofd_packets [23:23:26]CheckFolder done [23:23:26]ProducePacketName [23:23:26]name=ofd_packets/00139972 [23:23:26]NVStorageSaveData ofd_packets/00139972 [23:23:26]File name is /storage/ofd_packets/00139972 [23:23:26]Write 301 bytes [23:23:26]NVStorageSaveData done [23:23:26]OFDSenderStorePacket done [23:23:26]KKMCreateOFDPacket done [23:23:26]NVStorageSaveData kkm_last_timestamp [23:23:26]File name is /storage/kkm_last_timestamp [23:23:26]Write 4 bytes [23:23:26]NVStorageSaveData done [23:23:26]ExternCall_PrintAddStr [23:23:26]wPrintStart [23:23:26]Write to MH i2c: 01 00 00 00 13 13 [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: 01 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: 01 07 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: 01 07 00 00 13 00 00 00 00 00 FF 0F 28 [23:23:26]RasterBufferAndPrint [23:23:26]line Счет N : (1)593828 [23:23:26]line ИНН: 02508201610067 [23:23:26]line Контрольно-Кассовый Чек [23:23:26]line ПРОДАЖА [23:23:26]line ТРК (МРК, ГНК) : 52 [23:23:26]line Товар: 2710124130 [23:23:26]line Аи-92-К-5 [23:23:26]line 4.430 * 67.80 [23:23:26]line = 300.35 [23:23:26]line НДС 12% НСП 1% [23:23:26]line > о реализуемом товаре [23:23:26]line ОКРУГЛЕНИЕ: -0.35 [23:23:26]line ИТОГО: 300.00 [23:23:26]line Внесено: 300.00 [23:23:26]line СДАЧА: 0.00 [23:23:26]line НСП 1% : 2.66 [23:23:26]line НДС 12% : 31.90 [23:23:26]line Наличными: 300.00 [23:23:26]line Безнал.: 0.00 [23:23:26]line Место: АЗС № 136 "Партнер Нефть" [23:23:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:23:26]line СНО: Общий режим [23:23:26]line Чек 444 20.08.2024 23:23 [23:23:26]line Смена: 453 ФФД: 1.0 [23:23:26]line ЗНМ: 0300000067 [23:23:26]line РНМ: 0000000000092569 [23:23:26]line Версия ККМ: 001 [23:23:26]line ФМ: 0000000000871776 [23:23:26]line ФД: 139972 [23:23:26]line ФПД: 273745144181325 [23:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T232325&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139972&fm=273745144181325&tin=02508201610067®Number=0000000000092569&sum=30000 [23:23:26]written 0, free lines is 4095 [23:23:26]OFD Sender: Processing packet 139972 [packets to send 137, broken 136] [23:23:26]ProducePacketName [23:23:26]name=ofd_packets/00139972 [23:23:26]OFD Sender: To server: pG, [23:23:26]CommunicateWithHost lk.salyk.kg:30040 [23:23:26]ConnectInit lk.salyk.kg [23:23:26]Connected sock=10 [23:23:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CC 68 07 01 25 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 6D 25 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 22 02 00 35 04 06 00 F8 F8 42 13 F2 4D 8F 0E DE 2E EF 00 99 2F [23:23:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 08 B4 47 00 DC 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 22 02 00 F4 03 04 00 FF CB C4 66 B6 04 01 00 00 11 E6 7D FE DB 41 E9 4A [23:23:26]CommunicateWithHost err = 0 [23:23:26]CheckOFDResponse [23:23:26]1017 (14) - 77093643461234 [23:23:26]1041 (16) - 0000000000871776 [23:23:26]1040 (4) - 139972 [23:23:26]1012 (4) - 20.08.2024 17:01 [23:23:26]1206 (1) - 0 [23:23:26]OFD Sender: Remove packet 139972 [23:23:26]ProducePacketName [23:23:26]name=ofd_packets/00139972 [23:23:26]NVStorageDeleteData [23:23:26]Write to MH i2c: 01 00 00 2B 13 3E [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: 01 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: 01 07 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: 01 07 00 2B 13 00 00 00 00 00 D6 0C 27 [23:23:26]RasterBufferAndPrint [23:23:26]line [23:23:26]line [23:23:26]line [23:23:26]line [23:23:26]line [23:23:26]written 0, free lines is 3290 [23:23:26]MH_Cut [23:23:26]Write to MH i2c: D1 01 00 32 13 01 17 [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: D1 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: D1 01 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: D1 01 00 32 13 00 16 [23:23:26]Write to MH i2c: 01 00 00 33 13 46 [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:27]OFD Sender: No OFD packet to send [23:23:27]*** Cut start [23:23:27]*** Partial cut [23:23:27]*** CUTSNS_PIN = 1 [23:23:27]*** CUTSNS_PIN = 0 [23:23:27]*** Brake cut motor [23:23:28]Read from MH i2c: 01 [23:23:28]MH_I2C_Read... [23:23:28]*** Stop cut motor [23:23:28]*** Cut end [23:23:28]Read from MH i2c: 01 07 00 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: 01 07 00 33 13 00 00 00 00 00 FF 0F 5B [23:23:28]process_action close_receipt done [23:23:28]requested_data is exist [23:23:28]produce_requested_data [23:23:28]requested_item fm.sn is exist - process it [23:23:28]wFMCommunicate request_size=4 [23:23:28]MH_SAM_APDU [23:23:28]CAPDU: 80 11 00 00 [23:23:28]Write to MH i2c: E2 08 00 34 13 80 11 00 00 00 00 00 00 C1 [23:23:28]Write i2c OK [23:23:28]MH_I2C_Read... [23:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:28]Read from MH i2c: E2 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: E2 17 00 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: E2 17 00 34 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [23:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:23:28]wFMCommunicate OK [23:23:28]requested_item fd.num is exist - process it [23:23:28]SAM_PROTO_GetFieldsCounters [23:23:28]wFMCommunicate request_size=4 [23:23:28]MH_SAM_APDU [23:23:28]CAPDU: 80 13 00 00 [23:23:28]Write to MH i2c: E2 08 00 35 13 80 13 00 00 00 00 00 00 C4 [23:23:28]Write i2c OK [23:23:28]MH_I2C_Read... [23:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:28]Read from MH i2c: E2 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: E2 62 00 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: E2 62 00 35 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 22 02 00 0E 04 04 00 C5 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 D4 [23:23:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 22 02 00 0E 04 04 00 C5 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:23:28]wFMCommunicate OK [23:23:28]SAM_PROTO_GetFieldsCounters done [23:23:28]requested_item shift.num is exist - process it [23:23:28]requested_item shift.opened is exist - process it [23:23:28]req_shift_opened [23:23:28]FM_GetShiftState [23:23:28]SAM_PROTO_GetShiftState [23:23:28]wFMCommunicate request_size=4 [23:23:28]MH_SAM_APDU [23:23:28]CAPDU: 80 13 01 00 [23:23:28]Write to MH i2c: E2 08 00 36 13 80 13 01 00 00 00 00 00 C6 [23:23:28]Write i2c OK [23:23:28]MH_I2C_Read... [23:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:28]Read from MH i2c: E2 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: E2 0E 00 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: E2 0E 00 36 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 57 [23:23:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:23:28]wFMCommunicate OK [23:23:28]SAM_PROTO_GetShiftState done [23:23:28]FM_GetShiftState done [23:23:28]req_shift_opened done [23:23:28]requested_item shift.open_date is exist - process it [23:23:28]req_shift_open_date [23:23:28]req_shift_open_date done [23:23:28]produce_requested_data done [23:23:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139972,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:23:28]process_action_free close_receipt [23:23:28]json_value_free [23:23:28]json_value_free done [23:23:28]process_json_proto returns [23:23:28]Send response to host [23:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139972,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:23:28]free response buf [23:23:28]execute_script done [23:23:28]execute_script returns [23:23:28]free content buf [23:23:28]Sock 7.Close socket [23:23:28]Sock 7.Thread stoped [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:39]accept exits with 9 [23:24:39]New connection [23:24:39]New thread 3066764644 created [23:24:39]Thread 3066908004 joined [23:24:39]Waiting for new connection... [23:24:39] Sock 9.Parse request [23:24:39]Sock 9.Check first char [23:24:39]Sock 9.First char is OK [23:24:39]request: POST /json_proto HTTP/1.0 [23:24:39]Method: POST [23:24:39]URL: /json_proto [23:24:39]Method is POST - this is cgi request [23:24:39]url: /json_proto [23:24:39]query_string will be loaded in cgi processing [23:24:39]execute_cgi json_proto POST (null) [23:24:39]execute_cgi path=json_proto method=POST [23:24:39]POST find Content-Length [23:24:39]Host: 172.17.45.67:8080 [23:24:39]Content-Length: 682 [23:24:39]Content-Type: application/json [23:24:39] [23:24:39]POST finish read [23:24:39]Found Content-Length = 682 [23:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:39]execute_script... [23:24: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)593829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:39]POST & json_proto [23:24:39]process_json_proto [23:24:39]json parsed OK: [23:24:39]protocol is kg_v1.0 [23:24:39]action value=close_receipt [23:24:39]process_action close_receipt [23:24:39]cmd_close_receipt [23:24:39]MH_GetDate [23:24:39]Write to MH i2c: F0 00 00 37 13 39 [23:24:39]Write i2c OK [23:24:39]MH_I2C_Read... [23:24:39]Read from MH i2c: F0 [23:24:39]MH_I2C_Read... [23:24:39]Read from MH i2c: F0 09 00 [23:24:39]MH_I2C_Read... [23:24:39]Read from MH i2c: F0 09 00 37 13 00 B8 25 C5 66 5F 7F 2B 66 B9 [23:24:39]GetLastDocTimeStamp 1724196205 [23:24:39]current date 1724196280 [23:24:39]FM_GetShiftState [23:24:39]SAM_PROTO_GetShiftState [23:24:39]wFMCommunicate request_size=4 [23:24:39]MH_SAM_APDU [23:24:39]CAPDU: 80 13 01 00 [23:24:39]Write to MH i2c: E2 08 00 38 13 80 13 01 00 00 00 00 00 C8 [23:24:39]Write i2c OK [23:24:39]MH_I2C_Read... [23:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:39]Read from MH i2c: E2 [23:24:39]MH_I2C_Read... [23:24:39]Read from MH i2c: E2 0E 00 [23:24:39]MH_I2C_Read... [23:24:39]Read from MH i2c: E2 0E 00 38 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 59 [23:24:39]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:24:39]wFMCommunicate OK [23:24:39]SAM_PROTO_GetShiftState done [23:24:39]FM_GetShiftState done [23:24:39]opened in 1724113785 [23:24:39]opened+sec_in_day 1724200185 [23:24:39]quantity*price = 30022 [23:24:39]sum+1 = 30024 [23:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 445 20.08.2024 23:24 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139973 ФПД: 196604732009143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T232440&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139973&fm=196604732009143&tin=02508201610067®Number=0000000000092569&sum=30000 [23:24:40]StoreToDocumentArchive [23:24:40]shift 453 fd 139973 [23:24:40]save to /storage/0453/doc_00139973 [23:24:40]save last doc name /storage/0453/doc_00139973 to /storage/kkm_last_doc_name [23:24:40]save OK [23:24:40]Clear old archive folders... [23:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:24:40]tlvbuf is 00A346C0 [23:24:40]SAM_PROTO_ClearQueue [23:24:40]wFMCommunicate request_size=4 [23:24:40]MH_SAM_APDU [23:24:40]CAPDU: 80 09 00 00 [23:24:40]Write to MH i2c: E2 08 00 45 13 80 09 00 00 00 00 00 00 CA [23:24:40]Write i2c OK [23:24:40]MH_I2C_Read... [23:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:40]Read from MH i2c: E2 [23:24:40]MH_I2C_Read... [23:24:40]Read from MH i2c: E2 03 00 [23:24:40]MH_I2C_Read... [23:24:40]Read from MH i2c: E2 03 00 45 13 00 90 00 CC [23:24:40]RAPDU: 90 00 [23:24:40]wFMCommunicate OK [23:24:40]SAM_PROTO_ClearQueue done [23:24:40]KKMCreateOFDPacket [23:24:40]OFDProtocolAddRootSTLVToBuf [23:24:40]FM_MakeSignedData [23:24:40]FM_MakeSignedData [23:24:40]SAM_PROTO_SignData [23:24:40]wFMCommunicate request_size=4 [23:24:40]MH_SAM_APDU [23:24:40]CAPDU: 80 0D 01 02 [23:24:40]Write to MH i2c: E2 08 00 46 13 80 0D 01 02 00 00 00 00 D2 [23:24:40]Write i2c OK [23:24:40]MH_I2C_Read... [23:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:41]Read from MH i2c: E2 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 03 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 03 00 46 13 00 90 00 CD [23:24:41]RAPDU: 90 00 [23:24:41]wFMCommunicate OK [23:24:41]wFMCommunicate request_size=255 [23:24:41]MH_SAM_APDU [23:24:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 BD 01 00 00 F4 03 04 00 B8 25 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 22 02 00 35 04 06 00 [23:24:41]Write to MH i2c: E2 02 01 47 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 BD 01 00 00 F4 03 04 00 B8 25 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 22 02 00 35 04 06 00 00 00 7B [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:41]Read from MH i2c: E2 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 03 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 03 00 47 13 00 90 00 CE [23:24:41]RAPDU: 90 00 [23:24:41]wFMCommunicate OK [23:24:41]wFMCommunicate request_size=11 [23:24:41]MH_SAM_APDU [23:24:41]CAPDU: 80 0D 02 02 06 B2 CF 9B 36 6A B7 [23:24:41]Write to MH i2c: E2 0E 00 48 13 80 0D 02 02 06 00 B2 CF 9B 36 6A B7 00 00 54 [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:41]Read from MH i2c: E2 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 03 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 03 00 48 13 00 90 00 CF [23:24:41]RAPDU: 90 00 [23:24:41]wFMCommunicate OK [23:24:41]wFMCommunicate request_size=4 [23:24:41]MH_SAM_APDU [23:24:41]CAPDU: 80 0D 03 02 [23:24:41]Write to MH i2c: E2 08 00 49 13 80 0D 03 02 00 00 00 00 D7 [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:41]Read from MH i2c: E2 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 0B 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 0B 00 49 13 00 9B F7 9D 09 EA 45 1B C0 90 00 1A [23:24:41]RAPDU: 9B F7 9D 09 EA 45 1B C0 90 00 [23:24:41]wFMCommunicate OK [23:24:41]SAM_PROTO_SignData done [23:24:41]FM_MakeSignedData done [23:24:41]CreateOFDProtocolMessage [23:24:41]wFMCommunicate request_size=4 [23:24:41]MH_SAM_APDU [23:24:41]CAPDU: 80 11 00 00 [23:24:41]Write to MH i2c: E2 08 00 4A 13 80 11 00 00 00 00 00 00 D7 [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:41]Read from MH i2c: E2 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 17 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: E2 17 00 4A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [23:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:24:41]wFMCommunicate OK [23:24:41]CreateOFDProtocolMessage done [23:24:41]OFDSenderStorePacket 139973 [23:24:41]StoreOFDPacket docnum=139973 [23:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 56 EB 08 01 77 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 BD 01 00 00 F4 03 04 00 B8 25 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 22 02 00 35 04 06 00 B2 CF 9B 36 6A B7 9B F7 9D 09 EA 45 1B C0 [23:24:41]CheckFolder [23:24:41]dirname=/storage/ofd_packets [23:24:41]CheckFolder done [23:24:41]ProducePacketName [23:24:41]name=ofd_packets/00139973 [23:24:41]NVStorageSaveData ofd_packets/00139973 [23:24:41]File name is /storage/ofd_packets/00139973 [23:24:41]Write 302 bytes [23:24:41]NVStorageSaveData done [23:24:41]OFDSenderStorePacket done [23:24:41]KKMCreateOFDPacket done [23:24:41]NVStorageSaveData kkm_last_timestamp [23:24:41]File name is /storage/kkm_last_timestamp [23:24:41]Write 4 bytes [23:24:41]NVStorageSaveData done [23:24:41]ExternCall_PrintAddStr [23:24:41]wPrintStart [23:24:41]Write to MH i2c: 01 00 00 4B 13 5E [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: 01 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: 01 07 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: 01 07 00 4B 13 00 00 00 00 00 FF 0F 73 [23:24:41]RasterBufferAndPrint [23:24:41]line Счет N : (1)593829 [23:24:41]line ИНН: 02508201610067 [23:24:41]line Контрольно-Кассовый Чек [23:24:41]line ПРОДАЖА [23:24:41]line ТРК (МРК, ГНК) : 54 [23:24:41]line Товар: 2710194210 [23:24:41]line ДТ(л)-К-5 [23:24:41]line 3.940 * 76.20 [23:24:41]line = 300.23 [23:24:41]line НДС 12% НСП 1% [23:24:41]line > о реализуемом товаре [23:24:41]line ОКРУГЛЕНИЕ: -0.23 [23:24:41]line ИТОГО: 300.00 [23:24:41]line Внесено: 300.00 [23:24:41]line СДАЧА: 0.00 [23:24:41]line НСП 1% : 2.66 [23:24:41]line НДС 12% : 31.88 [23:24:41]line Наличными: 300.00 [23:24:41]line Безнал.: 0.00 [23:24:41]line Место: АЗС № 136 "Партнер Нефть" [23:24:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:24:41]line СНО: Общий режим [23:24:41]line Чек 445 20.08.2024 23:24 [23:24:41]line Смена: 453 ФФД: 1.0 [23:24:41]line ЗНМ: 0300000067 [23:24:41]line РНМ: 0000000000092569 [23:24:41]line Версия ККМ: 001 [23:24:41]line ФМ: 0000000000871776 [23:24:41]line ФД: 139973 [23:24:41]line ФПД: 196604732009143 [23:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T232440&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139973&fm=196604732009143&tin=02508201610067®Number=0000000000092569&sum=30000 [23:24:41]written 0, free lines is 4095 [23:24:41]OFD Sender: Processing packet 139973 [packets to send 137, broken 136] [23:24:41]ProducePacketName [23:24:41]name=ofd_packets/00139973 [23:24:41]OFD Sender: To server: pG, [23:24:41]CommunicateWithHost lk.salyk.kg:30040 [23:24:41]ConnectInit lk.salyk.kg [23:24:41]Connected sock=10 [23:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 56 EB 08 01 77 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 BD 01 00 00 F4 03 04 00 B8 25 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 22 02 00 35 04 06 00 B2 CF 9B 36 6A B7 9B F7 9D 09 EA 45 1B C0 [23:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4A CF 47 00 36 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 22 02 00 F4 03 04 00 4A CC C4 66 B6 04 01 00 00 04 D2 7E C3 28 54 CC 4E [23:24:41]CommunicateWithHost err = 0 [23:24:41]CheckOFDResponse [23:24:41]1017 (14) - 77093643461234 [23:24:41]1041 (16) - 0000000000871776 [23:24:41]1040 (4) - 139973 [23:24:41]1012 (4) - 20.08.2024 17:03 [23:24:41]1206 (1) - 0 [23:24:41]OFD Sender: Remove packet 139973 [23:24:41]ProducePacketName [23:24:41]name=ofd_packets/00139973 [23:24:41]NVStorageDeleteData [23:24:41]Write to MH i2c: 01 00 00 76 13 89 [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: 01 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: 01 07 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: 01 07 00 76 13 00 00 00 00 00 CE 0C 6A [23:24:41]RasterBufferAndPrint [23:24:41]line [23:24:41]line [23:24:41]line [23:24:41]line [23:24:41]line [23:24:41]written 0, free lines is 3286 [23:24:41]MH_Cut [23:24:41]Write to MH i2c: D1 01 00 7D 13 01 62 [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: D1 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: D1 01 00 [23:24:41]MH_I2C_Read... [23:24:41]Read from MH i2c: D1 01 00 7D 13 00 61 [23:24:41]Write to MH i2c: 01 00 00 7E 13 91 [23:24:41]Write i2c OK [23:24:41]MH_I2C_Read... [23:24:42]OFD Sender: No OFD packet to send [23:24:42]*** Cut start [23:24:42]*** Partial cut [23:24:42]*** CUTSNS_PIN = 1 [23:24:42]*** CUTSNS_PIN = 0 [23:24:42]*** Brake cut motor [23:24:43]Read from MH i2c: 01 [23:24:43]MH_I2C_Read... [23:24:43]*** Stop cut motor [23:24:43]*** Cut end [23:24:43]Read from MH i2c: 01 07 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: 01 07 00 7E 13 00 00 00 00 00 FF 0F A6 [23:24:43]process_action close_receipt done [23:24:43]requested_data is exist [23:24:43]produce_requested_data [23:24:43]requested_item fm.sn is exist - process it [23:24:43]wFMCommunicate request_size=4 [23:24:43]MH_SAM_APDU [23:24:43]CAPDU: 80 11 00 00 [23:24:43]Write to MH i2c: E2 08 00 7F 13 80 11 00 00 00 00 00 00 0C [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 17 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 17 00 7F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [23:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:24:43]wFMCommunicate OK [23:24:43]requested_item fd.num is exist - process it [23:24:43]SAM_PROTO_GetFieldsCounters [23:24:43]wFMCommunicate request_size=4 [23:24:43]MH_SAM_APDU [23:24:43]CAPDU: 80 13 00 00 [23:24:43]Write to MH i2c: E2 08 00 80 13 80 13 00 00 00 00 00 00 0F [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 62 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 62 00 80 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 22 02 00 0E 04 04 00 C5 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 [23:24:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 22 02 00 0E 04 04 00 C5 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:24:43]wFMCommunicate OK [23:24:43]SAM_PROTO_GetFieldsCounters done [23:24:43]requested_item shift.num is exist - process it [23:24:43]requested_item shift.opened is exist - process it [23:24:43]req_shift_opened [23:24:43]FM_GetShiftState [23:24:43]SAM_PROTO_GetShiftState [23:24:43]wFMCommunicate request_size=4 [23:24:43]MH_SAM_APDU [23:24:43]CAPDU: 80 13 01 00 [23:24:43]Write to MH i2c: E2 08 00 81 13 80 13 01 00 00 00 00 00 11 [23:24:43]Write i2c OK [23:24:43]MH_I2C_Read... [23:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:43]Read from MH i2c: E2 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 0E 00 [23:24:43]MH_I2C_Read... [23:24:43]Read from MH i2c: E2 0E 00 81 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A2 [23:24:43]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:24:43]wFMCommunicate OK [23:24:43]SAM_PROTO_GetShiftState done [23:24:43]FM_GetShiftState done [23:24:43]req_shift_opened done [23:24:43]requested_item shift.open_date is exist - process it [23:24:43]req_shift_open_date [23:24:43]req_shift_open_date done [23:24:43]produce_requested_data done [23:24:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139973,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:24:43]process_action_free close_receipt [23:24:43]json_value_free [23:24:43]json_value_free done [23:24:43]process_json_proto returns [23:24:43]Send response to host [23:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139973,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:24:43]free response buf [23:24:43]execute_script done [23:24:43]execute_script returns [23:24:43]free content buf [23:24:43]Sock 9.Close socket [23:24:43]Sock 9.Thread stoped [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:23]int [23:31:23]Write to MH i2c: 01 00 00 82 13 95 [23:31:23]*** FLAG_PRN_KEY set [23:31:23]Write i2c OK [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: 01 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: 01 07 00 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: 01 07 00 82 13 00 08 00 00 00 FF 0F B2 [23:31:23]state=0 [23:31:23]Key pressed [23:31:23]Feed [23:31:23]Write to MH i2c: D8 00 00 83 13 6D [23:31:23]Write i2c OK [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: D8 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: D8 01 00 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: D8 01 00 83 13 00 6E [23:31:23]int [23:31:23]Write to MH i2c: 01 00 00 84 13 97 [23:31:23]Write i2c OK [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: 01 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: 01 07 00 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: 01 07 00 84 13 00 48 00 00 00 3C 00 22 [23:31:23]state=2 [23:31:23]Key pressed [23:31:23]int [23:31:23]Write to MH i2c: 01 00 00 85 13 98 [23:31:23]*** FLAG_PRN_KEY reset [23:31:23]Write i2c OK [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: 01 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: 01 07 00 [23:31:23]MH_I2C_Read... [23:31:23]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 F5 0F A3 [23:31:23]state=2 [23:31:23]Stop feed [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:15]accept exits with 7 [23:32:15]New connection [23:32:15]New thread 3066908004 created [23:32:15]Thread 3066764644 joined [23:32:15]Waiting for new connection... [23:32:15] Sock 7.Parse request [23:32:15]Sock 7.Check first char [23:32:15]Sock 7.First char is OK [23:32:15]request: POST /json_proto HTTP/1.0 [23:32:15]Method: POST [23:32:15]URL: /json_proto [23:32:15]Method is POST - this is cgi request [23:32:15]url: /json_proto [23:32:15]query_string will be loaded in cgi processing [23:32:15]execute_cgi json_proto POST (null) [23:32:15]execute_cgi path=json_proto method=POST [23:32:15]POST find Content-Length [23:32:15]Host: 172.17.45.67:8080 [23:32:15]Content-Length: 677 [23:32:15]Content-Type: application/json [23:32:15] [23:32:15]POST finish read [23:32:15]Found Content-Length = 677 [23:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:15]execute_script... [23:32: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)593830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:15]POST & json_proto [23:32:15]process_json_proto [23:32:15]json parsed OK: [23:32:15]protocol is kg_v1.0 [23:32:15]action value=close_receipt [23:32:15]process_action close_receipt [23:32:15]cmd_close_receipt [23:32:15]MH_GetDate [23:32:15]Write to MH i2c: F0 00 00 86 13 88 [23:32:15]Write i2c OK [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: F0 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: F0 09 00 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: F0 09 00 86 13 00 80 27 C5 66 5F 7F 2B 66 D2 [23:32:15]GetLastDocTimeStamp 1724196280 [23:32:15]current date 1724196736 [23:32:15]FM_GetShiftState [23:32:15]SAM_PROTO_GetShiftState [23:32:15]wFMCommunicate request_size=4 [23:32:15]MH_SAM_APDU [23:32:15]CAPDU: 80 13 01 00 [23:32:15]Write to MH i2c: E2 08 00 87 13 80 13 01 00 00 00 00 00 17 [23:32:15]Write i2c OK [23:32:15]MH_I2C_Read... [23:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:15]Read from MH i2c: E2 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: E2 0E 00 [23:32:15]MH_I2C_Read... [23:32:15]Read from MH i2c: E2 0E 00 87 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A8 [23:32:15]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:32:15]wFMCommunicate OK [23:32:15]SAM_PROTO_GetShiftState done [23:32:15]FM_GetShiftState done [23:32:15]opened in 1724113785 [23:32:15]opened+sec_in_day 1724200185 [23:32:15]quantity*price = 20001 [23:32:15]sum+1 = 20002 [23:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 446 20.08.2024 23:32 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139974 ФПД: 53438446254740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T233216&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139974&fm=53438446254740&tin=02508201610067®Number=0000000000092569&sum=20000 [23:32:16]StoreToDocumentArchive [23:32:16]shift 453 fd 139974 [23:32:16]save to /storage/0453/doc_00139974 [23:32:16]save last doc name /storage/0453/doc_00139974 to /storage/kkm_last_doc_name [23:32:16]save OK [23:32:16]Clear old archive folders... [23:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:32:16]tlvbuf is 00A10880 [23:32:16]SAM_PROTO_ClearQueue [23:32:16]wFMCommunicate request_size=4 [23:32:16]MH_SAM_APDU [23:32:16]CAPDU: 80 09 00 00 [23:32:16]Write to MH i2c: E2 08 00 94 13 80 09 00 00 00 00 00 00 19 [23:32:16]Write i2c OK [23:32:16]MH_I2C_Read... [23:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:16]Read from MH i2c: E2 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 03 00 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 03 00 94 13 00 90 00 1B [23:32:16]RAPDU: 90 00 [23:32:16]wFMCommunicate OK [23:32:16]SAM_PROTO_ClearQueue done [23:32:16]KKMCreateOFDPacket [23:32:16]OFDProtocolAddRootSTLVToBuf [23:32:16]FM_MakeSignedData [23:32:16]FM_MakeSignedData [23:32:16]SAM_PROTO_SignData [23:32:16]wFMCommunicate request_size=4 [23:32:16]MH_SAM_APDU [23:32:16]CAPDU: 80 0D 01 02 [23:32:16]Write to MH i2c: E2 08 00 95 13 80 0D 01 02 00 00 00 00 21 [23:32:16]Write i2c OK [23:32:16]MH_I2C_Read... [23:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:16]Read from MH i2c: E2 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 03 00 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 03 00 95 13 00 90 00 1C [23:32:16]RAPDU: 90 00 [23:32:16]wFMCommunicate OK [23:32:16]wFMCommunicate request_size=255 [23:32:16]MH_SAM_APDU [23:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 80 27 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 22 02 00 35 04 06 00 30 [23:32:16]Write to MH i2c: E2 02 01 96 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 80 27 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 22 02 00 35 04 06 00 30 00 00 1D [23:32:16]Write i2c OK [23:32:16]MH_I2C_Read... [23:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:16]Read from MH i2c: E2 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 03 00 [23:32:16]MH_I2C_Read... [23:32:16]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [23:32:16]RAPDU: 90 00 [23:32:16]wFMCommunicate OK [23:32:16]wFMCommunicate request_size=10 [23:32:16]MH_SAM_APDU [23:32:16]CAPDU: 80 0D 02 02 05 9A 1B 9B 3A 94 [23:32:16]Write to MH i2c: E2 0D 00 97 13 80 0D 02 02 05 00 9A 1B 9B 3A 94 00 00 4C [23:32:16]Write i2c OK [23:32:16]MH_I2C_Read... [23:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:17]Read from MH i2c: E2 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 03 00 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 03 00 97 13 00 90 00 1E [23:32:17]RAPDU: 90 00 [23:32:17]wFMCommunicate OK [23:32:17]wFMCommunicate request_size=4 [23:32:17]MH_SAM_APDU [23:32:17]CAPDU: 80 0D 03 02 [23:32:17]Write to MH i2c: E2 08 00 98 13 80 0D 03 02 00 00 00 00 26 [23:32:17]Write i2c OK [23:32:17]MH_I2C_Read... [23:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:17]Read from MH i2c: E2 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 0B 00 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 0B 00 98 13 00 87 C5 B7 F5 D5 EA 8B C3 90 00 2C [23:32:17]RAPDU: 87 C5 B7 F5 D5 EA 8B C3 90 00 [23:32:17]wFMCommunicate OK [23:32:17]SAM_PROTO_SignData done [23:32:17]FM_MakeSignedData done [23:32:17]CreateOFDProtocolMessage [23:32:17]wFMCommunicate request_size=4 [23:32:17]MH_SAM_APDU [23:32:17]CAPDU: 80 11 00 00 [23:32:17]Write to MH i2c: E2 08 00 99 13 80 11 00 00 00 00 00 00 26 [23:32:17]Write i2c OK [23:32:17]MH_I2C_Read... [23:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:17]Read from MH i2c: E2 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 17 00 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: E2 17 00 99 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [23:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:32:17]wFMCommunicate OK [23:32:17]CreateOFDProtocolMessage done [23:32:17]OFDSenderStorePacket 139974 [23:32:17]StoreOFDPacket docnum=139974 [23:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5C 52 07 01 82 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 80 27 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 22 02 00 35 04 06 00 30 9A 1B 9B 3A 94 87 C5 B7 F5 D5 EA 8B C3 [23:32:17]CheckFolder [23:32:17]dirname=/storage/ofd_packets [23:32:17]CheckFolder done [23:32:17]ProducePacketName [23:32:17]name=ofd_packets/00139974 [23:32:17]NVStorageSaveData ofd_packets/00139974 [23:32:17]File name is /storage/ofd_packets/00139974 [23:32:17]Write 301 bytes [23:32:17]NVStorageSaveData done [23:32:17]OFDSenderStorePacket done [23:32:17]KKMCreateOFDPacket done [23:32:17]NVStorageSaveData kkm_last_timestamp [23:32:17]File name is /storage/kkm_last_timestamp [23:32:17]Write 4 bytes [23:32:17]NVStorageSaveData done [23:32:17]ExternCall_PrintAddStr [23:32:17]wPrintStart [23:32:17]Write to MH i2c: 01 00 00 9A 13 AD [23:32:17]Write i2c OK [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: 01 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: 01 07 00 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: 01 07 00 9A 13 00 00 00 00 00 FF 0F C2 [23:32:17]RasterBufferAndPrint [23:32:17]line Счет N : (1)593830 [23:32:17]line ИНН: 02508201610067 [23:32:17]line Контрольно-Кассовый Чек [23:32:17]line ПРОДАЖА [23:32:17]line ТРК (МРК, ГНК) : 52 [23:32:17]line Товар: 2710124130 [23:32:17]line Аи-92-К-5 [23:32:17]line 2.950 * 67.80 [23:32:17]line = 200.01 [23:32:17]line НДС 12% НСП 1% [23:32:17]line > о реализуемом товаре [23:32:17]line ОКРУГЛЕНИЕ: -0.01 [23:32:17]line ИТОГО: 200.00 [23:32:17]line Внесено: 200.00 [23:32:17]line СДАЧА: 0.00 [23:32:17]line НСП 1% : 1.77 [23:32:17]line НДС 12% : 21.24 [23:32:17]line Наличными: 200.00 [23:32:17]line Безнал.: 0.00 [23:32:17]line Место: АЗС № 136 "Партнер Нефть" [23:32:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:32:17]line СНО: Общий режим [23:32:17]line Чек 446 20.08.2024 23:32 [23:32:17]line Смена: 453 ФФД: 1.0 [23:32:17]line ЗНМ: 0300000067 [23:32:17]line РНМ: 0000000000092569 [23:32:17]line Версия ККМ: 001 [23:32:17]line ФМ: 0000000000871776 [23:32:17]line ФД: 139974 [23:32:17]line ФПД: 53438446254740 [23:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T233216&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139974&fm=53438446254740&tin=02508201610067®Number=0000000000092569&sum=20000 [23:32:17]written 0, free lines is 4095 [23:32:17]OFD Sender: Processing packet 139974 [packets to send 137, broken 136] [23:32:17]ProducePacketName [23:32:17]name=ofd_packets/00139974 [23:32:17]OFD Sender: To server: pG, [23:32:17]CommunicateWithHost lk.salyk.kg:30040 [23:32:17]ConnectInit lk.salyk.kg [23:32:17]Connected sock=10 [23:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5C 52 07 01 82 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 80 27 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 22 02 00 35 04 06 00 30 9A 1B 9B 3A 94 87 C5 B7 F5 D5 EA 8B C3 [23:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F3 46 47 00 5D 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 22 02 00 F4 03 04 00 12 CE C4 66 B6 04 01 00 00 C7 62 36 5A 97 60 11 9D [23:32:17]CommunicateWithHost err = 0 [23:32:17]CheckOFDResponse [23:32:17]1017 (14) - 77093643461234 [23:32:17]1041 (16) - 0000000000871776 [23:32:17]1040 (4) - 139974 [23:32:17]1012 (4) - 20.08.2024 17:10 [23:32:17]1206 (1) - 0 [23:32:17]OFD Sender: Remove packet 139974 [23:32:17]ProducePacketName [23:32:17]name=ofd_packets/00139974 [23:32:17]NVStorageDeleteData [23:32:17]Write to MH i2c: 01 00 00 C5 13 D8 [23:32:17]Write i2c OK [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: 01 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: 01 07 00 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: 01 07 00 C5 13 00 00 00 00 00 DC 0C C7 [23:32:17]RasterBufferAndPrint [23:32:17]line [23:32:17]line [23:32:17]line [23:32:17]line [23:32:17]line [23:32:17]written 0, free lines is 3298 [23:32:17]MH_Cut [23:32:17]Write to MH i2c: D1 01 00 CC 13 01 B1 [23:32:17]Write i2c OK [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: D1 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: D1 01 00 [23:32:17]MH_I2C_Read... [23:32:17]Read from MH i2c: D1 01 00 CC 13 00 B0 [23:32:17]Write to MH i2c: 01 00 00 CD 13 E0 [23:32:17]Write i2c OK [23:32:17]MH_I2C_Read... [23:32:18]OFD Sender: No OFD packet to send [23:32:18]*** Cut start [23:32:18]*** Partial cut [23:32:18]*** CUTSNS_PIN = 1 [23:32:18]*** CUTSNS_PIN = 0 [23:32:18]*** Brake cut motor [23:32:19]Read from MH i2c: 01 [23:32:19]MH_I2C_Read... [23:32:19]*** Stop cut motor [23:32:19]*** Cut end [23:32:19]Read from MH i2c: 01 07 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: 01 07 00 CD 13 00 00 00 00 00 FF 0F F5 [23:32:19]process_action close_receipt done [23:32:19]requested_data is exist [23:32:19]produce_requested_data [23:32:19]requested_item fm.sn is exist - process it [23:32:19]wFMCommunicate request_size=4 [23:32:19]MH_SAM_APDU [23:32:19]CAPDU: 80 11 00 00 [23:32:19]Write to MH i2c: E2 08 00 CE 13 80 11 00 00 00 00 00 00 5B [23:32:19]Write i2c OK [23:32:19]MH_I2C_Read... [23:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:19]Read from MH i2c: E2 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 17 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 17 00 CE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [23:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:32:19]wFMCommunicate OK [23:32:19]requested_item fd.num is exist - process it [23:32:19]SAM_PROTO_GetFieldsCounters [23:32:19]wFMCommunicate request_size=4 [23:32:19]MH_SAM_APDU [23:32:19]CAPDU: 80 13 00 00 [23:32:19]Write to MH i2c: E2 08 00 CF 13 80 13 00 00 00 00 00 00 5E [23:32:19]Write i2c OK [23:32:19]MH_I2C_Read... [23:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:19]Read from MH i2c: E2 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 62 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 62 00 CF 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 22 02 00 0E 04 04 00 C5 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 76 [23:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 22 02 00 0E 04 04 00 C5 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:32:19]wFMCommunicate OK [23:32:19]SAM_PROTO_GetFieldsCounters done [23:32:19]requested_item shift.num is exist - process it [23:32:19]requested_item shift.opened is exist - process it [23:32:19]req_shift_opened [23:32:19]FM_GetShiftState [23:32:19]SAM_PROTO_GetShiftState [23:32:19]wFMCommunicate request_size=4 [23:32:19]MH_SAM_APDU [23:32:19]CAPDU: 80 13 01 00 [23:32:19]Write to MH i2c: E2 08 00 D0 13 80 13 01 00 00 00 00 00 60 [23:32:19]Write i2c OK [23:32:19]MH_I2C_Read... [23:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:19]Read from MH i2c: E2 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 0E 00 [23:32:19]MH_I2C_Read... [23:32:19]Read from MH i2c: E2 0E 00 D0 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F1 [23:32:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:32:19]wFMCommunicate OK [23:32:19]SAM_PROTO_GetShiftState done [23:32:19]FM_GetShiftState done [23:32:19]req_shift_opened done [23:32:19]requested_item shift.open_date is exist - process it [23:32:19]req_shift_open_date [23:32:19]req_shift_open_date done [23:32:19]produce_requested_data done [23:32:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139974,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:32:19]process_action_free close_receipt [23:32:19]json_value_free [23:32:19]json_value_free done [23:32:19]process_json_proto returns [23:32:19]Send response to host [23:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139974,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:32:19]free response buf [23:32:19]execute_script done [23:32:19]execute_script returns [23:32:19]free content buf [23:32:19]Sock 7.Close socket [23:32:19]Sock 7.Thread stoped [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37: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:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:27]accept exits with 9 [23:39:27]New connection [23:39:27]New thread 3066764644 created [23:39:27]Thread 3066908004 joined [23:39:27]Waiting for new connection... [23:39:27] Sock 9.Parse request [23:39:27]Sock 9.Check first char [23:39:27]Sock 9.First char is OK [23:39:27]request: POST /json_proto HTTP/1.0 [23:39:27]Method: POST [23:39:27]URL: /json_proto [23:39:27]Method is POST - this is cgi request [23:39:27]url: /json_proto [23:39:27]query_string will be loaded in cgi processing [23:39:27]execute_cgi json_proto POST (null) [23:39:27]execute_cgi path=json_proto method=POST [23:39:27]POST find Content-Length [23:39:27]Host: 172.17.45.67:8080 [23:39:27]Content-Length: 818 [23:39:27]Content-Type: application/json [23:39:27] [23:39:27]POST finish read [23:39:27]Found Content-Length = 818 [23:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:27]execute_script... [23:39: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)593831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:27]POST & json_proto [23:39:27]process_json_proto [23:39:27]json parsed OK: [23:39:27]protocol is kg_v1.0 [23:39:27]action value=close_receipt [23:39:27]process_action close_receipt [23:39:27]cmd_close_receipt [23:39:27]MH_GetDate [23:39:27]Write to MH i2c: F0 00 00 D1 13 D3 [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: F0 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: F0 09 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: F0 09 00 D1 13 00 30 29 C5 66 5F 7F 2B 66 CF [23:39:27]GetLastDocTimeStamp 1724196736 [23:39:27]current date 1724197168 [23:39:27]FM_GetShiftState [23:39:27]SAM_PROTO_GetShiftState [23:39:27]wFMCommunicate request_size=4 [23:39:27]MH_SAM_APDU [23:39:27]CAPDU: 80 13 01 00 [23:39:27]Write to MH i2c: E2 08 00 D2 13 80 13 01 00 00 00 00 00 62 [23:39:27]Write i2c OK [23:39:27]MH_I2C_Read... [23:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:27]Read from MH i2c: E2 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 0E 00 [23:39:27]MH_I2C_Read... [23:39:27]Read from MH i2c: E2 0E 00 D2 13 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 F3 [23:39:27]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:39:27]wFMCommunicate OK [23:39:27]SAM_PROTO_GetShiftState done [23:39:27]FM_GetShiftState done [23:39:27]opened in 1724113785 [23:39:27]opened+sec_in_day 1724200185 [23:39:27]quantity*price = 40002 [23:39:27]sum+1 = 40003 [23:39:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 447 20.08.2024 23:39 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139975 ФПД: 98557433831305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T233928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139975&fm=98557433831305&tin=02508201610067®Number=0000000000092569&sum=40000 [23:39:28]StoreToDocumentArchive [23:39:28]shift 453 fd 139975 [23:39:28]save to /storage/0453/doc_00139975 [23:39:28]save last doc name /storage/0453/doc_00139975 to /storage/kkm_last_doc_name [23:39:28]save OK [23:39:28]Clear old archive folders... [23:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:39:28]tlvbuf is 00A00E30 [23:39:28]SAM_PROTO_ClearQueue [23:39:28]wFMCommunicate request_size=4 [23:39:28]MH_SAM_APDU [23:39:28]CAPDU: 80 09 00 00 [23:39:28]Write to MH i2c: E2 08 00 DF 13 80 09 00 00 00 00 00 00 64 [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:28]Read from MH i2c: E2 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 03 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 03 00 DF 13 00 90 00 66 [23:39:28]RAPDU: 90 00 [23:39:28]wFMCommunicate OK [23:39:28]SAM_PROTO_ClearQueue done [23:39:28]KKMCreateOFDPacket [23:39:28]OFDProtocolAddRootSTLVToBuf [23:39:28]FM_MakeSignedData [23:39:28]FM_MakeSignedData [23:39:28]SAM_PROTO_SignData [23:39:28]wFMCommunicate request_size=4 [23:39:28]MH_SAM_APDU [23:39:28]CAPDU: 80 0D 01 02 [23:39:28]Write to MH i2c: E2 08 00 E0 13 80 0D 01 02 00 00 00 00 6C [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:28]Read from MH i2c: E2 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 03 00 [23:39:28]MH_I2C_Read... [23:39:28]Read from MH i2c: E2 03 00 E0 13 00 90 00 67 [23:39:28]RAPDU: 90 00 [23:39:28]wFMCommunicate OK [23:39:28]wFMCommunicate request_size=255 [23:39:28]MH_SAM_APDU [23: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 30 29 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 22 02 00 35 04 06 00 59 [23:39:28]Write to MH i2c: E2 02 01 E1 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 30 29 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 22 02 00 35 04 06 00 59 00 00 28 [23:39:28]Write i2c OK [23:39:28]MH_I2C_Read... [23:39:28]OFD Sender: No OFD packet to send [23:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:29]Read from MH i2c: E2 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 03 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 03 00 E1 13 00 90 00 68 [23:39:29]RAPDU: 90 00 [23:39:29]wFMCommunicate OK [23:39:29]wFMCommunicate request_size=10 [23:39:29]MH_SAM_APDU [23:39:29]CAPDU: 80 0D 02 02 05 A3 30 D5 5F 89 [23:39:29]Write to MH i2c: E2 0D 00 E2 13 80 0D 02 02 05 00 A3 30 D5 5F 89 00 00 09 [23:39:29]Write i2c OK [23:39:29]MH_I2C_Read... [23:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:29]Read from MH i2c: E2 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 03 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 03 00 E2 13 00 90 00 69 [23:39:29]RAPDU: 90 00 [23:39:29]wFMCommunicate OK [23:39:29]wFMCommunicate request_size=4 [23:39:29]MH_SAM_APDU [23:39:29]CAPDU: 80 0D 03 02 [23:39:29]Write to MH i2c: E2 08 00 E3 13 80 0D 03 02 00 00 00 00 71 [23:39:29]Write i2c OK [23:39:29]MH_I2C_Read... [23:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:29]Read from MH i2c: E2 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 0B 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 0B 00 E3 13 00 40 66 A7 ED 09 0F 9E 97 90 00 F9 [23:39:29]RAPDU: 40 66 A7 ED 09 0F 9E 97 90 00 [23:39:29]wFMCommunicate OK [23:39:29]SAM_PROTO_SignData done [23:39:29]FM_MakeSignedData done [23:39:29]CreateOFDProtocolMessage [23:39:29]wFMCommunicate request_size=4 [23:39:29]MH_SAM_APDU [23:39:29]CAPDU: 80 11 00 00 [23:39:29]Write to MH i2c: E2 08 00 E4 13 80 11 00 00 00 00 00 00 71 [23:39:29]Write i2c OK [23:39:29]MH_I2C_Read... [23:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:29]Read from MH i2c: E2 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 17 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: E2 17 00 E4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [23:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:39:29]wFMCommunicate OK [23:39:29]CreateOFDProtocolMessage done [23:39:29]OFDSenderStorePacket 139975 [23:39:29]StoreOFDPacket docnum=139975 [23:39:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 ED 4C 07 01 62 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 30 29 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 22 02 00 35 04 06 00 59 A3 30 D5 5F 89 40 66 A7 ED 09 0F 9E 97 [23:39:29]CheckFolder [23:39:29]dirname=/storage/ofd_packets [23:39:29]CheckFolder done [23:39:29]ProducePacketName [23:39:29]name=ofd_packets/00139975 [23:39:29]NVStorageSaveData ofd_packets/00139975 [23:39:29]File name is /storage/ofd_packets/00139975 [23:39:29]Write 301 bytes [23:39:29]NVStorageSaveData done [23:39:29]OFDSenderStorePacket done [23:39:29]KKMCreateOFDPacket done [23:39:29]NVStorageSaveData kkm_last_timestamp [23:39:29]File name is /storage/kkm_last_timestamp [23:39:29]Write 4 bytes [23:39:29]NVStorageSaveData done [23:39:29]ExternCall_PrintAddStr [23:39:29]wPrintStart [23:39:29]Write to MH i2c: 01 00 00 E5 13 F8 [23:39:29]Write i2c OK [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: 01 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: 01 07 00 [23:39:29]MH_I2C_Read... [23:39:29]Read from MH i2c: 01 07 00 E5 13 00 00 00 00 00 FF 0F 0D [23:39:29]RasterBufferAndPrint [23:39:29]line Счет N : (1)593831 [23:39:29]line ИНН: 02508201610067 [23:39:29]line Контрольно-Кассовый Чек [23:39:29]line ПРОДАЖА [23:39:29]line ТРК (МРК, ГНК) : 52 [23:39:29]line Товар: 2710124130 [23:39:29]line Аи-92-К-5 [23:39:29]line 5.900 * 67.80 [23:39:29]line = 400.02 [23:39:29]line НДС 12% НСП 1% [23:39:29]line > о реализуемом товаре [23:39:29]line ОКРУГЛЕНИЕ: -0.02 [23:39:29]line ИТОГО: 400.00 [23:39:29]line НСП 1% : 3.54 [23:39:29]line НДС 12% : 42.48 [23:39:29]line Наличными: 0.00 [23:39:29]line Безнал.: 400.00 [23:39:29]line Место: АЗС № 136 "Партнер Нефть" [23:39:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:39:29]line СНО: Общий режим [23:39:29]line Чек 447 20.08.2024 23:39 [23:39:29]line Смена: 453 ФФД: 1.0 [23:39:29]line ЗНМ: 0300000067 [23:39:29]line РНМ: 0000000000092569 [23:39:29]line Версия ККМ: 001 [23:39:29]line Платежная система: O! деньги [23:39:29]line ФМ: 0000000000871776 [23:39:29]line ФД: 139975 [23:39:29]line ФПД: 98557433831305 [23:39:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T233928&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139975&fm=98557433831305&tin=02508201610067®Number=0000000000092569&sum=40000 [23:39:29]OFD Sender: Processing packet 139975 [packets to send 137, broken 136] [23:39:29]ProducePacketName [23:39:29]name=ofd_packets/00139975 [23:39:29]OFD Sender: To server: pG, [23:39:29]CommunicateWithHost lk.salyk.kg:30040 [23:39:29]ConnectInit lk.salyk.kg [23:39:29]written 0, free lines is 4095 [23:39:29]Connected sock=10 [23:39:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 ED 4C 07 01 62 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 30 29 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 22 02 00 35 04 06 00 59 A3 30 D5 5F 89 40 66 A7 ED 09 0F 9E 97 [23:39:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E6 11 47 00 6A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 22 02 00 F4 03 04 00 C2 CF C4 66 B6 04 01 00 00 64 16 20 37 69 CD A4 EA [23:39:30]CommunicateWithHost err = 0 [23:39:30]CheckOFDResponse [23:39:30]1017 (14) - 77093643461234 [23:39:30]1041 (16) - 0000000000871776 [23:39:30]1040 (4) - 139975 [23:39:30]1012 (4) - 20.08.2024 17:17 [23:39:30]1206 (1) - 0 [23:39:30]OFD Sender: Remove packet 139975 [23:39:30]ProducePacketName [23:39:30]name=ofd_packets/00139975 [23:39:30]NVStorageDeleteData [23:39:30]Write to MH i2c: 01 00 00 10 14 24 [23:39:30]Write i2c OK [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: 01 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: 01 07 00 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: 01 07 00 10 14 00 00 00 00 00 D7 0C 0E [23:39:30]RasterBufferAndPrint [23:39:30]line [23:39:30]line [23:39:30]line [23:39:30]line [23:39:30]line [23:39:30]written 0, free lines is 3294 [23:39:30]MH_Cut [23:39:30]Write to MH i2c: D1 01 00 17 14 01 FD [23:39:30]Write i2c OK [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: D1 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: D1 01 00 [23:39:30]MH_I2C_Read... [23:39:30]Read from MH i2c: D1 01 00 17 14 00 FC [23:39:30]Write to MH i2c: 01 00 00 18 14 2C [23:39:30]Write i2c OK [23:39:30]MH_I2C_Read... [23:39:30]OFD Sender: No OFD packet to send [23:39:30]*** Cut start [23:39:30]*** Partial cut [23:39:30]*** CUTSNS_PIN = 1 [23:39:30]*** CUTSNS_PIN = 0 [23:39:31]*** Brake cut motor [23:39:31]Read from MH i2c: 01 [23:39:31]MH_I2C_Read... [23:39:31]*** Stop cut motor [23:39:31]*** Cut end [23:39:31]Read from MH i2c: 01 07 00 [23:39:31]MH_I2C_Read... [23:39:31]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 FF 0F 41 [23:39:31]process_action close_receipt done [23:39:31]requested_data is exist [23:39:31]produce_requested_data [23:39:31]requested_item fm.sn is exist - process it [23:39:31]wFMCommunicate request_size=4 [23:39:31]MH_SAM_APDU [23:39:31]CAPDU: 80 11 00 00 [23:39:31]Write to MH i2c: E2 08 00 19 14 80 11 00 00 00 00 00 00 A7 [23:39:31]Write i2c OK [23:39:31]MH_I2C_Read... [23:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:31]Read from MH i2c: E2 [23:39:31]MH_I2C_Read... [23:39:31]Read from MH i2c: E2 17 00 [23:39:31]MH_I2C_Read... [23:39:31]Read from MH i2c: E2 17 00 19 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [23:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:39:31]wFMCommunicate OK [23:39:31]requested_item fd.num is exist - process it [23:39:31]SAM_PROTO_GetFieldsCounters [23:39:31]wFMCommunicate request_size=4 [23:39:31]MH_SAM_APDU [23:39:31]CAPDU: 80 13 00 00 [23:39:31]Write to MH i2c: E2 08 00 1A 14 80 13 00 00 00 00 00 00 AA [23:39:31]Write i2c OK [23:39:31]MH_I2C_Read... [23:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:31]Read from MH i2c: E2 [23:39:31]MH_I2C_Read... [23:39:31]Read from MH i2c: E2 62 00 [23:39:31]MH_I2C_Read... [23:39:31]Read from MH i2c: E2 62 00 1A 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 22 02 00 0E 04 04 00 C5 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 C6 [23:39:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 22 02 00 0E 04 04 00 C5 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:39:31]wFMCommunicate OK [23:39:31]SAM_PROTO_GetFieldsCounters done [23:39:31]requested_item shift.num is exist - process it [23:39:31]requested_item shift.opened is exist - process it [23:39:31]req_shift_opened [23:39:31]FM_GetShiftState [23:39:31]SAM_PROTO_GetShiftState [23:39:31]wFMCommunicate request_size=4 [23:39:31]MH_SAM_APDU [23:39:31]CAPDU: 80 13 01 00 [23:39:31]Write to MH i2c: E2 08 00 1B 14 80 13 01 00 00 00 00 00 AC [23:39:31]Write i2c OK [23:39:31]MH_I2C_Read... [23:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:31]Read from MH i2c: E2 [23:39:31]MH_I2C_Read... [23:39:31]Read from MH i2c: E2 0E 00 [23:39:31]MH_I2C_Read... [23:39:31]Read from MH i2c: E2 0E 00 1B 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3D [23:39:31]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:39:31]wFMCommunicate OK [23:39:31]SAM_PROTO_GetShiftState done [23:39:31]FM_GetShiftState done [23:39:31]req_shift_opened done [23:39:31]requested_item shift.open_date is exist - process it [23:39:31]req_shift_open_date [23:39:31]req_shift_open_date done [23:39:31]produce_requested_data done [23:39:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139975,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:39:31]process_action_free close_receipt [23:39:31]json_value_free [23:39:31]json_value_free done [23:39:31]process_json_proto returns [23:39:31]Send response to host [23:39:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139975,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:39:31]free response buf [23:39:31]execute_script done [23:39:31]execute_script returns [23:39:31]free content buf [23:39:31]Sock 9.Close socket [23:39:31]Sock 9.Thread stoped [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]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:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]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:30]accept exits with 7 [23:46:30]New connection [23:46:30]New thread 3066908004 created [23:46:30]Thread 3066764644 joined [23:46:30]Waiting for new connection... [23:46:30] Sock 7.Parse request [23:46:30]Sock 7.Check first char [23:46:30]Sock 7.First char is OK [23:46:30]request: POST /json_proto HTTP/1.0 [23:46:30]Method: POST [23:46:30]URL: /json_proto [23:46:30]Method is POST - this is cgi request [23:46:30]url: /json_proto [23:46:30]query_string will be loaded in cgi processing [23:46:30]execute_cgi json_proto POST (null) [23:46:30]execute_cgi path=json_proto method=POST [23:46:30]POST find Content-Length [23:46:30]Host: 172.17.45.67:8080 [23:46:30]Content-Length: 678 [23:46:30]Content-Type: application/json [23:46:30] [23:46:30]POST finish read [23:46:30]Found Content-Length = 678 [23:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:30]execute_script... [23:46: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)593832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:30]POST & json_proto [23:46:30]process_json_proto [23:46:30]json parsed OK: [23:46:30]protocol is kg_v1.0 [23:46:30]action value=close_receipt [23:46:30]process_action close_receipt [23:46:30]cmd_close_receipt [23:46:30]MH_GetDate [23:46:30]Write to MH i2c: F0 00 00 1C 14 1F [23:46:30]Write i2c OK [23:46:30]MH_I2C_Read... [23:46:30]Read from MH i2c: F0 [23:46:30]MH_I2C_Read... [23:46:30]Read from MH i2c: F0 09 00 [23:46:30]MH_I2C_Read... [23:46:30]Read from MH i2c: F0 09 00 1C 14 00 D6 2A C5 66 5F 7F 2B 66 C2 [23:46:30]GetLastDocTimeStamp 1724197168 [23:46:30]current date 1724197590 [23:46:30]FM_GetShiftState [23:46:30]SAM_PROTO_GetShiftState [23:46:30]wFMCommunicate request_size=4 [23:46:30]MH_SAM_APDU [23:46:30]CAPDU: 80 13 01 00 [23:46:30]Write to MH i2c: E2 08 00 1D 14 80 13 01 00 00 00 00 00 AE [23:46:30]Write i2c OK [23:46:30]MH_I2C_Read... [23:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:30]Read from MH i2c: E2 [23:46:30]MH_I2C_Read... [23:46:30]Read from MH i2c: E2 0E 00 [23:46:30]MH_I2C_Read... [23:46:30]Read from MH i2c: E2 0E 00 1D 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 3F [23:46:30]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:46:30]wFMCommunicate OK [23:46:30]SAM_PROTO_GetShiftState done [23:46:30]FM_GetShiftState done [23:46:30]opened in 1724113785 [23:46:30]opened+sec_in_day 1724200185 [23:46:30]quantity*price = 80004 [23:46:30]sum+1 = 80005 [23:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 448 20.08.2024 23:46 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139976 ФПД: 149843255717240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T234631&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139976&fm=149843255717240&tin=02508201610067®Number=0000000000092569&sum=80000 [23:46:31]StoreToDocumentArchive [23:46:31]shift 453 fd 139976 [23:46:31]save to /storage/0453/doc_00139976 [23:46:31]save last doc name /storage/0453/doc_00139976 to /storage/kkm_last_doc_name [23:46:31]save OK [23:46:31]Clear old archive folders... [23:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:31]tlvbuf is B6E9D380 [23:46:31]SAM_PROTO_ClearQueue [23:46:31]wFMCommunicate request_size=4 [23:46:31]MH_SAM_APDU [23:46:31]CAPDU: 80 09 00 00 [23:46:31]Write to MH i2c: E2 08 00 2A 14 80 09 00 00 00 00 00 00 B0 [23:46:31]Write i2c OK [23:46:31]MH_I2C_Read... [23:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:31]Read from MH i2c: E2 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 03 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 03 00 2A 14 00 90 00 B2 [23:46:31]RAPDU: 90 00 [23:46:31]wFMCommunicate OK [23:46:31]SAM_PROTO_ClearQueue done [23:46:31]KKMCreateOFDPacket [23:46:31]OFDProtocolAddRootSTLVToBuf [23:46:31]FM_MakeSignedData [23:46:31]FM_MakeSignedData [23:46:31]SAM_PROTO_SignData [23:46:31]wFMCommunicate request_size=4 [23:46:31]MH_SAM_APDU [23:46:31]CAPDU: 80 0D 01 02 [23:46:31]Write to MH i2c: E2 08 00 2B 14 80 0D 01 02 00 00 00 00 B8 [23:46:31]Write i2c OK [23:46:31]MH_I2C_Read... [23:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:31]Read from MH i2c: E2 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 03 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 03 00 2B 14 00 90 00 B3 [23:46:31]RAPDU: 90 00 [23:46:31]wFMCommunicate OK [23:46:31]wFMCommunicate request_size=255 [23:46:31]MH_SAM_APDU [23:46:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 D7 2A C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 22 02 00 35 04 06 00 88 [23:46:31]Write to MH i2c: E2 02 01 2C 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 D7 2A C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 22 02 00 35 04 06 00 88 00 00 15 [23:46:31]Write i2c OK [23:46:31]MH_I2C_Read... [23:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:31]Read from MH i2c: E2 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 03 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [23:46:31]RAPDU: 90 00 [23:46:31]wFMCommunicate OK [23:46:31]wFMCommunicate request_size=10 [23:46:31]MH_SAM_APDU [23:46:31]CAPDU: 80 0D 02 02 05 48 1A 07 6D 78 [23:46:31]Write to MH i2c: E2 0D 00 2D 14 80 0D 02 02 05 00 48 1A 07 6D 78 00 00 13 [23:46:31]Write i2c OK [23:46:31]MH_I2C_Read... [23:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:31]Read from MH i2c: E2 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 03 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 03 00 2D 14 00 90 00 B5 [23:46:31]RAPDU: 90 00 [23:46:31]wFMCommunicate OK [23:46:31]wFMCommunicate request_size=4 [23:46:31]MH_SAM_APDU [23:46:31]CAPDU: 80 0D 03 02 [23:46:31]Write to MH i2c: E2 08 00 2E 14 80 0D 03 02 00 00 00 00 BD [23:46:31]Write i2c OK [23:46:31]MH_I2C_Read... [23:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:31]Read from MH i2c: E2 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 0B 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 0B 00 2E 14 00 87 7E F7 74 1F 13 AB 77 90 00 82 [23:46:31]RAPDU: 87 7E F7 74 1F 13 AB 77 90 00 [23:46:31]wFMCommunicate OK [23:46:31]SAM_PROTO_SignData done [23:46:31]FM_MakeSignedData done [23:46:31]CreateOFDProtocolMessage [23:46:31]wFMCommunicate request_size=4 [23:46:31]MH_SAM_APDU [23:46:31]CAPDU: 80 11 00 00 [23:46:31]Write to MH i2c: E2 08 00 2F 14 80 11 00 00 00 00 00 00 BD [23:46:31]Write i2c OK [23:46:31]MH_I2C_Read... [23:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:31]Read from MH i2c: E2 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 17 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: E2 17 00 2F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [23:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:46:31]wFMCommunicate OK [23:46:31]CreateOFDProtocolMessage done [23:46:31]OFDSenderStorePacket 139976 [23:46:31]StoreOFDPacket docnum=139976 [23:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F CC 07 01 A0 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 D7 2A C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 22 02 00 35 04 06 00 88 48 1A 07 6D 78 87 7E F7 74 1F 13 AB 77 [23:46:31]CheckFolder [23:46:31]dirname=/storage/ofd_packets [23:46:31]CheckFolder done [23:46:31]ProducePacketName [23:46:31]name=ofd_packets/00139976 [23:46:31]NVStorageSaveData ofd_packets/00139976 [23:46:31]File name is /storage/ofd_packets/00139976 [23:46:31]Write 301 bytes [23:46:31]NVStorageSaveData done [23:46:31]OFDSenderStorePacket done [23:46:31]KKMCreateOFDPacket done [23:46:31]NVStorageSaveData kkm_last_timestamp [23:46:31]File name is /storage/kkm_last_timestamp [23:46:31]Write 4 bytes [23:46:31]NVStorageSaveData done [23:46:31]ExternCall_PrintAddStr [23:46:31]wPrintStart [23:46:31]Write to MH i2c: 01 00 00 30 14 44 [23:46:31]Write i2c OK [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: 01 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: 01 07 00 [23:46:31]MH_I2C_Read... [23:46:31]Read from MH i2c: 01 07 00 30 14 00 00 00 00 00 FF 0F 59 [23:46:31]RasterBufferAndPrint [23:46:31]line Счет N : (1)593832 [23:46:31]line ИНН: 02508201610067 [23:46:31]line Контрольно-Кассовый Чек [23:46:31]line ПРОДАЖА [23:46:31]line ТРК (МРК, ГНК) : 42 [23:46:31]line Товар: 2710124130 [23:46:31]line Аи-92-К-5 [23:46:31]line 11.800 * 67.80 [23:46:31]line = 800.04 [23:46:31]line НДС 12% НСП 1% [23:46:31]line > о реализуемом товаре [23:46:31]line ОКРУГЛЕНИЕ: -0.04 [23:46:31]line ИТОГО: 800.00 [23:46:31]line Внесено: 800.00 [23:46:31]line СДАЧА: 0.00 [23:46:31]line НСП 1% : 7.08 [23:46:31]line НДС 12% : 84.96 [23:46:31]line Наличными: 800.00 [23:46:31]line Безнал.: 0.00 [23:46:31]line Место: АЗС № 136 "Партнер Нефть" [23:46:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:46:31]line СНО: Общий режим [23:46:31]line Чек 448 20.08.2024 23:46 [23:46:31]line Смена: 453 ФФД: 1.0 [23:46:31]line ЗНМ: 0300000067 [23:46:31]line РНМ: 0000000000092569 [23:46:31]line Версия ККМ: 001 [23:46:31]line ФМ: 0000000000871776 [23:46:31]line ФД: 139976 [23:46:31]line ФПД: 149843255717240 [23:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T234631&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139976&fm=149843255717240&tin=02508201610067®Number=0000000000092569&sum=80000 [23:46:32]written 0, free lines is 4095 [23:46:32]OFD Sender: Processing packet 139976 [packets to send 137, broken 136] [23:46:32]ProducePacketName [23:46:32]name=ofd_packets/00139976 [23:46:32]OFD Sender: To server: pG, [23:46:32]CommunicateWithHost lk.salyk.kg:30040 [23:46:32]ConnectInit lk.salyk.kg [23:46:32]Connected sock=9 [23:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F CC 07 01 A0 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 D7 2A C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 22 02 00 35 04 06 00 88 48 1A 07 6D 78 87 7E F7 74 1F 13 AB 77 [23:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3C D9 47 00 DB 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 22 02 00 F4 03 04 00 69 D1 C4 66 B6 04 01 00 00 6E F8 55 90 BA 96 87 D0 [23:46:32]CommunicateWithHost err = 0 [23:46:32]CheckOFDResponse [23:46:32]1017 (14) - 77093643461234 [23:46:32]1041 (16) - 0000000000871776 [23:46:32]1040 (4) - 139976 [23:46:32]1012 (4) - 20.08.2024 17:24 [23:46:32]1206 (1) - 0 [23:46:32]OFD Sender: Remove packet 139976 [23:46:32]ProducePacketName [23:46:32]name=ofd_packets/00139976 [23:46:32]NVStorageDeleteData [23:46:32]Write to MH i2c: 01 00 00 5B 14 6F [23:46:32]Write i2c OK [23:46:32]MH_I2C_Read... [23:46:32]Read from MH i2c: 01 [23:46:32]MH_I2C_Read... [23:46:32]Read from MH i2c: 01 07 00 [23:46:32]MH_I2C_Read... [23:46:32]Read from MH i2c: 01 07 00 5B 14 00 00 00 00 00 CF 0C 51 [23:46:32]RasterBufferAndPrint [23:46:32]line [23:46:32]line [23:46:32]line [23:46:32]line [23:46:32]line [23:46:32]written 0, free lines is 3285 [23:46:32]MH_Cut [23:46:32]Write to MH i2c: D1 01 00 62 14 01 48 [23:46:32]Write i2c OK [23:46:32]MH_I2C_Read... [23:46:32]Read from MH i2c: D1 [23:46:32]MH_I2C_Read... [23:46:32]Read from MH i2c: D1 01 00 [23:46:32]MH_I2C_Read... [23:46:32]Read from MH i2c: D1 01 00 62 14 00 47 [23:46:32]Write to MH i2c: 01 00 00 63 14 77 [23:46:32]Write i2c OK [23:46:32]MH_I2C_Read... [23:46:32]OFD Sender: No OFD packet to send [23:46:33]*** Cut start [23:46:33]*** Partial cut [23:46:33]*** CUTSNS_PIN = 1 [23:46:33]*** CUTSNS_PIN = 0 [23:46:33]*** Brake cut motor [23:46:33]Read from MH i2c: 01 [23:46:33]MH_I2C_Read... [23:46:33]*** Stop cut motor [23:46:33]*** Cut end [23:46:33]Read from MH i2c: 01 07 00 [23:46:33]MH_I2C_Read... [23:46:33]Read from MH i2c: 01 07 00 63 14 00 00 00 00 00 FF 0F 8C [23:46:33]process_action close_receipt done [23:46:33]requested_data is exist [23:46:33]produce_requested_data [23:46:33]requested_item fm.sn is exist - process it [23:46:33]wFMCommunicate request_size=4 [23:46:33]MH_SAM_APDU [23:46:33]CAPDU: 80 11 00 00 [23:46:33]Write to MH i2c: E2 08 00 64 14 80 11 00 00 00 00 00 00 F2 [23:46:33]Write i2c OK [23:46:33]MH_I2C_Read... [23:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:33]Read from MH i2c: E2 [23:46:33]MH_I2C_Read... [23:46:33]Read from MH i2c: E2 17 00 [23:46:33]MH_I2C_Read... [23:46:33]Read from MH i2c: E2 17 00 64 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [23:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:46:33]wFMCommunicate OK [23:46:33]requested_item fd.num is exist - process it [23:46:33]SAM_PROTO_GetFieldsCounters [23:46:33]wFMCommunicate request_size=4 [23:46:33]MH_SAM_APDU [23:46:33]CAPDU: 80 13 00 00 [23:46:33]Write to MH i2c: E2 08 00 65 14 80 13 00 00 00 00 00 00 F5 [23:46:33]Write i2c OK [23:46:33]MH_I2C_Read... [23:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:34]Read from MH i2c: E2 [23:46:34]MH_I2C_Read... [23:46:34]Read from MH i2c: E2 62 00 [23:46:34]MH_I2C_Read... [23:46:34]Read from MH i2c: E2 62 00 65 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 22 02 00 0E 04 04 00 C5 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 15 [23:46:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 22 02 00 0E 04 04 00 C5 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 [23:46:34]wFMCommunicate OK [23:46:34]SAM_PROTO_GetFieldsCounters done [23:46:34]requested_item shift.num is exist - process it [23:46:34]requested_item shift.opened is exist - process it [23:46:34]req_shift_opened [23:46:34]FM_GetShiftState [23:46:34]SAM_PROTO_GetShiftState [23:46:34]wFMCommunicate request_size=4 [23:46:34]MH_SAM_APDU [23:46:34]CAPDU: 80 13 01 00 [23:46:34]Write to MH i2c: E2 08 00 66 14 80 13 01 00 00 00 00 00 F7 [23:46:34]Write i2c OK [23:46:34]MH_I2C_Read... [23:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:34]Read from MH i2c: E2 [23:46:34]MH_I2C_Read... [23:46:34]Read from MH i2c: E2 0E 00 [23:46:34]MH_I2C_Read... [23:46:34]Read from MH i2c: E2 0E 00 66 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 88 [23:46:34]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:46:34]wFMCommunicate OK [23:46:34]SAM_PROTO_GetShiftState done [23:46:34]FM_GetShiftState done [23:46:34]req_shift_opened done [23:46:34]requested_item shift.open_date is exist - process it [23:46:34]req_shift_open_date [23:46:34]req_shift_open_date done [23:46:34]produce_requested_data done [23:46:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139976,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:46:34]process_action_free close_receipt [23:46:34]json_value_free [23:46:34]json_value_free done [23:46:34]process_json_proto returns [23:46:34]Send response to host [23:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139976,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:46:34]free response buf [23:46:34]execute_script done [23:46:34]execute_script returns [23:46:34]free content buf [23:46:34]Sock 7.Close socket [23:46:34]Sock 7.Thread stoped [23:46:37]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:02]int [23:50:02]Write to MH i2c: 01 00 00 67 14 7B [23:50:02]*** FLAG_PRN_KEY set [23:50:02]Write i2c OK [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 07 00 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 07 00 67 14 00 08 00 00 00 FF 0F 98 [23:50:02]state=0 [23:50:02]Key pressed [23:50:02]Feed [23:50:02]Write to MH i2c: D8 00 00 68 14 53 [23:50:02]Write i2c OK [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: D8 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: D8 01 00 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: D8 01 00 68 14 00 54 [23:50:02]int [23:50:02]Write to MH i2c: 01 00 00 69 14 7D [23:50:02]Write i2c OK [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 07 00 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 07 00 69 14 00 48 00 00 00 3C 00 08 [23:50:02]state=2 [23:50:02]Key pressed [23:50:02]int [23:50:02]Write to MH i2c: 01 00 00 6A 14 7E [23:50:02]*** FLAG_PRN_KEY reset [23:50:02]Write i2c OK [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 07 00 [23:50:02]MH_I2C_Read... [23:50:02]Read from MH i2c: 01 07 00 6A 14 00 00 00 00 00 F8 0F 8C [23:50:02]state=2 [23:50:02]Stop feed [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:24]accept exits with 10 [23:51:24]New connection [23:51:24]New thread 3066764644 created [23:51:24]Thread 3066908004 joined [23:51:24]Waiting for new connection... [23:51:24] Sock 10.Parse request [23:51:24]Sock 10.Check first char [23:51:24]Sock 10.First char is OK [23:51:24]request: POST /json_proto HTTP/1.0 [23:51:24]Method: POST [23:51:24]URL: /json_proto [23:51:24]Method is POST - this is cgi request [23:51:24]url: /json_proto [23:51:24]query_string will be loaded in cgi processing [23:51:24]execute_cgi json_proto POST (null) [23:51:24]execute_cgi path=json_proto method=POST [23:51:24]POST find Content-Length [23:51:24]Host: 172.17.45.67:8080 [23:51:24]Content-Length: 677 [23:51:24]Content-Type: application/json [23:51:24] [23:51:24]POST finish read [23:51:24]Found Content-Length = 677 [23:51:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:24]execute_script... [23:51: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)593833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:24]POST & json_proto [23:51:24]process_json_proto [23:51:24]json parsed OK: [23:51:24]protocol is kg_v1.0 [23:51:24]action value=close_receipt [23:51:24]process_action close_receipt [23:51:24]cmd_close_receipt [23:51:24]MH_GetDate [23:51:24]Write to MH i2c: F0 00 00 6B 14 6E [23:51:24]Write i2c OK [23:51:24]MH_I2C_Read... [23:51:24]Read from MH i2c: F0 [23:51:24]MH_I2C_Read... [23:51:24]Read from MH i2c: F0 09 00 [23:51:24]MH_I2C_Read... [23:51:24]Read from MH i2c: F0 09 00 6B 14 00 FD 2B C5 66 5F 7F 2B 66 39 [23:51:24]GetLastDocTimeStamp 1724197591 [23:51:24]current date 1724197885 [23:51:24]FM_GetShiftState [23:51:24]SAM_PROTO_GetShiftState [23:51:24]wFMCommunicate request_size=4 [23:51:24]MH_SAM_APDU [23:51:24]CAPDU: 80 13 01 00 [23:51:24]Write to MH i2c: E2 08 00 6C 14 80 13 01 00 00 00 00 00 FD [23:51:24]Write i2c OK [23:51:24]MH_I2C_Read... [23:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:24]Read from MH i2c: E2 [23:51:24]MH_I2C_Read... [23:51:24]Read from MH i2c: E2 0E 00 [23:51:24]MH_I2C_Read... [23:51:24]Read from MH i2c: E2 0E 00 6C 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8E [23:51:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:51:24]wFMCommunicate OK [23:51:24]SAM_PROTO_GetShiftState done [23:51:24]FM_GetShiftState done [23:51:24]opened in 1724113785 [23:51:24]opened+sec_in_day 1724200185 [23:51:24]quantity*price = 50036 [23:51:24]sum+1 = 50037 [23:51:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 449 20.08.2024 23:51 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139977 ФПД: 113538146086093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T235125&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139977&fm=113538146086093&tin=02508201610067®Number=0000000000092569&sum=50000 [23:51:25]StoreToDocumentArchive [23:51:25]shift 453 fd 139977 [23:51:25]save to /storage/0453/doc_00139977 [23:51:25]save last doc name /storage/0453/doc_00139977 to /storage/kkm_last_doc_name [23:51:25]save OK [23:51:25]Clear old archive folders... [23:51:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:51:25]tlvbuf is 00A00B80 [23:51:25]SAM_PROTO_ClearQueue [23:51:25]wFMCommunicate request_size=4 [23:51:25]MH_SAM_APDU [23:51:25]CAPDU: 80 09 00 00 [23:51:25]Write to MH i2c: E2 08 00 79 14 80 09 00 00 00 00 00 00 FF [23:51:25]Write i2c OK [23:51:25]MH_I2C_Read... [23:51:25]Read from MH i2c: E2 [23:51:25]MH_I2C_Read... [23:51:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:25]Read from MH i2c: E2 03 00 [23:51:25]MH_I2C_Read... [23:51:25]Read from MH i2c: E2 03 00 79 14 00 90 00 01 [23:51:25]RAPDU: 90 00 [23:51:25]wFMCommunicate OK [23:51:25]SAM_PROTO_ClearQueue done [23:51:25]KKMCreateOFDPacket [23:51:25]OFDProtocolAddRootSTLVToBuf [23:51:25]FM_MakeSignedData [23:51:25]FM_MakeSignedData [23:51:25]SAM_PROTO_SignData [23:51:25]wFMCommunicate request_size=4 [23:51:25]MH_SAM_APDU [23:51:25]CAPDU: 80 0D 01 02 [23:51:25]Write to MH i2c: E2 08 00 7A 14 80 0D 01 02 00 00 00 00 07 [23:51:25]Write i2c OK [23:51:25]MH_I2C_Read... [23:51:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:25]Read from MH i2c: E2 [23:51:25]MH_I2C_Read... [23:51:25]Read from MH i2c: E2 03 00 [23:51:25]MH_I2C_Read... [23:51:25]Read from MH i2c: E2 03 00 7A 14 00 90 00 02 [23:51:25]RAPDU: 90 00 [23:51:25]wFMCommunicate OK [23:51:25]wFMCommunicate request_size=255 [23:51:25]MH_SAM_APDU [23:51:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 FD 2B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 22 02 00 35 04 06 00 67 [23:51:25]Write to MH i2c: E2 02 01 7B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 FD 2B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 22 02 00 35 04 06 00 67 00 00 BF [23:51:25]Write i2c OK [23:51:25]MH_I2C_Read... [23:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:25]Read from MH i2c: E2 [23:51:25]MH_I2C_Read... [23:51:25]Read from MH i2c: E2 03 00 [23:51:25]MH_I2C_Read... [23:51:25]Read from MH i2c: E2 03 00 7B 14 00 90 00 03 [23:51:25]RAPDU: 90 00 [23:51:25]wFMCommunicate OK [23:51:25]wFMCommunicate request_size=10 [23:51:25]MH_SAM_APDU [23:51:25]CAPDU: 80 0D 02 02 05 43 28 DD AC CD [23:51:25]Write to MH i2c: E2 0D 00 7C 14 80 0D 02 02 05 00 43 28 DD AC CD 00 00 D5 [23:51:25]Write i2c OK [23:51:25]MH_I2C_Read... [23:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:26]Read from MH i2c: E2 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: E2 03 00 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [23:51:26]RAPDU: 90 00 [23:51:26]wFMCommunicate OK [23:51:26]wFMCommunicate request_size=4 [23:51:26]MH_SAM_APDU [23:51:26]CAPDU: 80 0D 03 02 [23:51:26]Write to MH i2c: E2 08 00 7D 14 80 0D 03 02 00 00 00 00 0C [23:51:26]Write i2c OK [23:51:26]MH_I2C_Read... [23:51:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:26]Read from MH i2c: E2 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: E2 0B 00 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: E2 0B 00 7D 14 00 B7 48 E5 60 C1 EB 92 CC 90 00 5B [23:51:26]RAPDU: B7 48 E5 60 C1 EB 92 CC 90 00 [23:51:26]wFMCommunicate OK [23:51:26]SAM_PROTO_SignData done [23:51:26]FM_MakeSignedData done [23:51:26]CreateOFDProtocolMessage [23:51:26]wFMCommunicate request_size=4 [23:51:26]MH_SAM_APDU [23:51:26]CAPDU: 80 11 00 00 [23:51:26]Write to MH i2c: E2 08 00 7E 14 80 11 00 00 00 00 00 00 0C [23:51:26]Write i2c OK [23:51:26]MH_I2C_Read... [23:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:26]Read from MH i2c: E2 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: E2 17 00 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: E2 17 00 7E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [23:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:51:26]wFMCommunicate OK [23:51:26]CreateOFDProtocolMessage done [23:51:26]OFDSenderStorePacket 139977 [23:51:26]StoreOFDPacket docnum=139977 [23:51:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 55 07 01 A4 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 FD 2B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 22 02 00 35 04 06 00 67 43 28 DD AC CD B7 48 E5 60 C1 EB 92 CC [23:51:26]CheckFolder [23:51:26]dirname=/storage/ofd_packets [23:51:26]CheckFolder done [23:51:26]ProducePacketName [23:51:26]name=ofd_packets/00139977 [23:51:26]NVStorageSaveData ofd_packets/00139977 [23:51:26]File name is /storage/ofd_packets/00139977 [23:51:26]Write 301 bytes [23:51:26]NVStorageSaveData done [23:51:26]OFDSenderStorePacket done [23:51:26]KKMCreateOFDPacket done [23:51:26]NVStorageSaveData kkm_last_timestamp [23:51:26]File name is /storage/kkm_last_timestamp [23:51:26]Write 4 bytes [23:51:26]NVStorageSaveData done [23:51:26]ExternCall_PrintAddStr [23:51:26]wPrintStart [23:51:26]Write to MH i2c: 01 00 00 7F 14 93 [23:51:26]Write i2c OK [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: 01 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: 01 07 00 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: 01 07 00 7F 14 00 00 00 00 00 FF 0F A8 [23:51:26]RasterBufferAndPrint [23:51:26]line Счет N : (1)593833 [23:51:26]line ИНН: 02508201610067 [23:51:26]line Контрольно-Кассовый Чек [23:51:26]line ПРОДАЖА [23:51:26]line ТРК (МРК, ГНК) : 52 [23:51:26]line Товар: 2710124130 [23:51:26]line Аи-92-К-5 [23:51:26]line 7.380 * 67.80 [23:51:26]line = 500.36 [23:51:26]line НДС 12% НСП 1% [23:51:26]line > о реализуемом товаре [23:51:26]line ОКРУГЛЕНИЕ: -0.36 [23:51:26]line ИТОГО: 500.00 [23:51:26]line Внесено: 500.00 [23:51:26]line СДАЧА: 0.00 [23:51:26]line НСП 1% : 4.43 [23:51:26]line НДС 12% : 53.14 [23:51:26]line Наличными: 500.00 [23:51:26]line Безнал.: 0.00 [23:51:26]line Место: АЗС № 136 "Партнер Нефть" [23:51:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:51:26]line СНО: Общий режим [23:51:26]line Чек 449 20.08.2024 23:51 [23:51:26]line Смена: 453 ФФД: 1.0 [23:51:26]line ЗНМ: 0300000067 [23:51:26]line РНМ: 0000000000092569 [23:51:26]line Версия ККМ: 001 [23:51:26]line ФМ: 0000000000871776 [23:51:26]line ФД: 139977 [23:51:26]line ФПД: 113538146086093 [23:51:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T235125&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139977&fm=113538146086093&tin=02508201610067®Number=0000000000092569&sum=50000 [23:51:26]OFD Sender: Processing packet 139977 [packets to send 137, broken 136] [23:51:26]ProducePacketName [23:51:26]name=ofd_packets/00139977 [23:51:26]OFD Sender: To server: pG, [23:51:26]CommunicateWithHost lk.salyk.kg:30040 [23:51:26]ConnectInit lk.salyk.kg [23:51:26]written 0, free lines is 4095 [23:51:26]Connected sock=9 [23:51:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 55 07 01 A4 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 FD 2B C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 22 02 00 35 04 06 00 67 43 28 DD AC CD B7 48 E5 60 C1 EB 92 CC [23:51:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 26 F0 47 00 99 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 22 02 00 F4 03 04 00 8F D2 C4 66 B6 04 01 00 00 5D D3 2E 5D BE A4 9E 34 [23:51:26]CommunicateWithHost err = 0 [23:51:26]CheckOFDResponse [23:51:26]1017 (14) - 77093643461234 [23:51:26]1041 (16) - 0000000000871776 [23:51:26]1040 (4) - 139977 [23:51:26]1012 (4) - 20.08.2024 17:29 [23:51:26]1206 (1) - 0 [23:51:26]OFD Sender: Remove packet 139977 [23:51:26]ProducePacketName [23:51:26]name=ofd_packets/00139977 [23:51:26]NVStorageDeleteData [23:51:26]Write to MH i2c: 01 00 00 AA 14 BE [23:51:26]Write i2c OK [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: 01 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: 01 07 00 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: 01 07 00 AA 14 00 00 00 00 00 D4 0C A5 [23:51:26]RasterBufferAndPrint [23:51:26]line [23:51:26]line [23:51:26]line [23:51:26]line [23:51:26]line [23:51:26]written 0, free lines is 3292 [23:51:26]MH_Cut [23:51:26]Write to MH i2c: D1 01 00 B1 14 01 97 [23:51:26]Write i2c OK [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: D1 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: D1 01 00 [23:51:26]MH_I2C_Read... [23:51:26]Read from MH i2c: D1 01 00 B1 14 00 96 [23:51:26]Write to MH i2c: 01 00 00 B2 14 C6 [23:51:26]Write i2c OK [23:51:26]MH_I2C_Read... [23:51:27]OFD Sender: No OFD packet to send [23:51:27]*** Cut start [23:51:27]*** Partial cut [23:51:27]*** CUTSNS_PIN = 1 [23:51:27]*** CUTSNS_PIN = 0 [23:51:27]*** Brake cut motor [23:51:28]Read from MH i2c: 01 [23:51:28]MH_I2C_Read... [23:51:28]*** Stop cut motor [23:51:28]*** Cut end [23:51:28]Read from MH i2c: 01 07 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: 01 07 00 B2 14 00 00 00 00 00 FF 0F DB [23:51:28]process_action close_receipt done [23:51:28]requested_data is exist [23:51:28]produce_requested_data [23:51:28]requested_item fm.sn is exist - process it [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 11 00 00 [23:51:28]Write to MH i2c: E2 08 00 B3 14 80 11 00 00 00 00 00 00 41 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 17 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 17 00 B3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [23:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:51:28]wFMCommunicate OK [23:51:28]requested_item fd.num is exist - process it [23:51:28]SAM_PROTO_GetFieldsCounters [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 13 00 00 [23:51:28]Write to MH i2c: E2 08 00 B4 14 80 13 00 00 00 00 00 00 44 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 62 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 62 00 B4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [23:51:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:28]wFMCommunicate OK [23:51:28]SAM_PROTO_GetFieldsCounters done [23:51:28]requested_item shift.num is exist - process it [23:51:28]requested_item shift.opened is exist - process it [23:51:28]req_shift_opened [23:51:28]FM_GetShiftState [23:51:28]SAM_PROTO_GetShiftState [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 13 01 00 [23:51:28]Write to MH i2c: E2 08 00 B5 14 80 13 01 00 00 00 00 00 46 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 0E 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 0E 00 B5 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D7 [23:51:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:51:28]wFMCommunicate OK [23:51:28]SAM_PROTO_GetShiftState done [23:51:28]FM_GetShiftState done [23:51:28]req_shift_opened done [23:51:28]requested_item shift.open_date is exist - process it [23:51:28]req_shift_open_date [23:51:28]req_shift_open_date done [23:51:28]produce_requested_data done [23:51:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139977,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:51:28]process_action_free close_receipt [23:51:28]json_value_free [23:51:28]json_value_free done [23:51:28]process_json_proto returns [23:51:28]Send response to host [23:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139977,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:51:28]free response buf [23:51:28]execute_script done [23:51:28]execute_script returns [23:51:28]free content buf [23:51:28]Sock 10.Close socket [23:51:28]Sock 10.Thread stoped [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:05]accept exits with 7 [23:52:05]New connection [23:52:05]New thread 3066908004 created [23:52:05]Thread 3066764644 joined [23:52:05]Waiting for new connection... [23:52:05] Sock 7.Parse request [23:52:05]Sock 7.Check first char [23:52:05]Sock 7.First char is OK [23:52:05]request: POST /json_proto HTTP/1.0 [23:52:05]Method: POST [23:52:05]URL: /json_proto [23:52:05]Method is POST - this is cgi request [23:52:05]url: /json_proto [23:52:05]query_string will be loaded in cgi processing [23:52:05]execute_cgi json_proto POST (null) [23:52:05]execute_cgi path=json_proto method=POST [23:52:05]POST find Content-Length [23:52:05]Host: 172.17.45.67:8080 [23:52:05]Content-Length: 677 [23:52:05]Content-Type: application/json [23:52:05] [23:52:05]POST finish read [23:52:05]Found Content-Length = 677 [23:52:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:05]execute_script... [23:52: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)593835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:05]POST & json_proto [23:52:05]process_json_proto [23:52:05]json parsed OK: [23:52:05]protocol is kg_v1.0 [23:52:05]action value=close_receipt [23:52:05]process_action close_receipt [23:52:05]cmd_close_receipt [23:52:05]MH_GetDate [23:52:05]Write to MH i2c: F0 00 00 B6 14 B9 [23:52:05]Write i2c OK [23:52:05]MH_I2C_Read... [23:52:05]Read from MH i2c: F0 [23:52:05]MH_I2C_Read... [23:52:05]Read from MH i2c: F0 09 00 [23:52:05]MH_I2C_Read... [23:52:05]Read from MH i2c: F0 09 00 B6 14 00 26 2C C5 66 5F 7F 2B 66 AE [23:52:05]GetLastDocTimeStamp 1724197885 [23:52:05]current date 1724197926 [23:52:05]FM_GetShiftState [23:52:05]SAM_PROTO_GetShiftState [23:52:05]wFMCommunicate request_size=4 [23:52:05]MH_SAM_APDU [23:52:05]CAPDU: 80 13 01 00 [23:52:05]Write to MH i2c: E2 08 00 B7 14 80 13 01 00 00 00 00 00 48 [23:52:05]Write i2c OK [23:52:05]MH_I2C_Read... [23:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:05]Read from MH i2c: E2 [23:52:05]MH_I2C_Read... [23:52:05]Read from MH i2c: E2 0E 00 [23:52:05]MH_I2C_Read... [23:52:05]Read from MH i2c: E2 0E 00 B7 14 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 D9 [23:52:05]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:52:05]wFMCommunicate OK [23:52:05]SAM_PROTO_GetShiftState done [23:52:05]FM_GetShiftState done [23:52:05]opened in 1724113785 [23:52:05]opened+sec_in_day 1724200185 [23:52:05]quantity*price = 20001 [23:52:05]sum+1 = 20002 [23:52:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 450 20.08.2024 23:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139978 ФПД: 27049475855144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T235206&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139978&fm=27049475855144&tin=02508201610067®Number=0000000000092569&sum=20000 [23:52:06]StoreToDocumentArchive [23:52:06]shift 453 fd 139978 [23:52:06]save to /storage/0453/doc_00139978 [23:52:06]save last doc name /storage/0453/doc_00139978 to /storage/kkm_last_doc_name [23:52:06]save OK [23:52:06]Clear old archive folders... [23:52:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:52:06]tlvbuf is 00A0FE90 [23:52:06]SAM_PROTO_ClearQueue [23:52:06]wFMCommunicate request_size=4 [23:52:06]MH_SAM_APDU [23:52:06]CAPDU: 80 09 00 00 [23:52:06]Write to MH i2c: E2 08 00 C4 14 80 09 00 00 00 00 00 00 4A [23:52:06]Write i2c OK [23:52:06]MH_I2C_Read... [23:52:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:06]Read from MH i2c: E2 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 03 00 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [23:52:06]RAPDU: 90 00 [23:52:06]wFMCommunicate OK [23:52:06]SAM_PROTO_ClearQueue done [23:52:06]KKMCreateOFDPacket [23:52:06]OFDProtocolAddRootSTLVToBuf [23:52:06]FM_MakeSignedData [23:52:06]FM_MakeSignedData [23:52:06]SAM_PROTO_SignData [23:52:06]wFMCommunicate request_size=4 [23:52:06]MH_SAM_APDU [23:52:06]CAPDU: 80 0D 01 02 [23:52:06]Write to MH i2c: E2 08 00 C5 14 80 0D 01 02 00 00 00 00 52 [23:52:06]Write i2c OK [23:52:06]MH_I2C_Read... [23:52:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:06]Read from MH i2c: E2 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 03 00 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [23:52:06]RAPDU: 90 00 [23:52:06]wFMCommunicate OK [23:52:06]wFMCommunicate request_size=255 [23:52:06]MH_SAM_APDU [23:52:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 26 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 22 02 00 35 04 06 00 18 [23:52:06]Write to MH i2c: E2 02 01 C6 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 26 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 22 02 00 35 04 06 00 18 00 00 E9 [23:52:06]Write i2c OK [23:52:06]MH_I2C_Read... [23:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:06]Read from MH i2c: E2 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 03 00 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [23:52:06]RAPDU: 90 00 [23:52:06]wFMCommunicate OK [23:52:06]wFMCommunicate request_size=10 [23:52:06]MH_SAM_APDU [23:52:06]CAPDU: 80 0D 02 02 05 99 F2 66 53 28 [23:52:06]Write to MH i2c: E2 0D 00 C7 14 80 0D 02 02 05 00 99 F2 66 53 28 00 00 CB [23:52:06]Write i2c OK [23:52:06]MH_I2C_Read... [23:52:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:06]Read from MH i2c: E2 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 03 00 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [23:52:06]RAPDU: 90 00 [23:52:06]wFMCommunicate OK [23:52:06]wFMCommunicate request_size=4 [23:52:06]MH_SAM_APDU [23:52:06]CAPDU: 80 0D 03 02 [23:52:06]Write to MH i2c: E2 08 00 C8 14 80 0D 03 02 00 00 00 00 57 [23:52:06]Write i2c OK [23:52:06]MH_I2C_Read... [23:52:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:06]Read from MH i2c: E2 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 0B 00 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 0B 00 C8 14 00 19 71 94 81 47 FA 47 A5 90 00 24 [23:52:06]RAPDU: 19 71 94 81 47 FA 47 A5 90 00 [23:52:06]wFMCommunicate OK [23:52:06]SAM_PROTO_SignData done [23:52:06]FM_MakeSignedData done [23:52:06]CreateOFDProtocolMessage [23:52:06]wFMCommunicate request_size=4 [23:52:06]MH_SAM_APDU [23:52:06]CAPDU: 80 11 00 00 [23:52:06]Write to MH i2c: E2 08 00 C9 14 80 11 00 00 00 00 00 00 57 [23:52:06]Write i2c OK [23:52:06]MH_I2C_Read... [23:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:06]Read from MH i2c: E2 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 17 00 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: E2 17 00 C9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [23:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:52:06]wFMCommunicate OK [23:52:06]CreateOFDProtocolMessage done [23:52:06]OFDSenderStorePacket 139978 [23:52:06]StoreOFDPacket docnum=139978 [23:52:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FC 67 07 01 2E 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 26 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 22 02 00 35 04 06 00 18 99 F2 66 53 28 19 71 94 81 47 FA 47 A5 [23:52:06]CheckFolder [23:52:06]dirname=/storage/ofd_packets [23:52:06]CheckFolder done [23:52:06]ProducePacketName [23:52:06]name=ofd_packets/00139978 [23:52:06]NVStorageSaveData ofd_packets/00139978 [23:52:06]File name is /storage/ofd_packets/00139978 [23:52:06]Write 301 bytes [23:52:06]NVStorageSaveData done [23:52:06]OFDSenderStorePacket done [23:52:06]KKMCreateOFDPacket done [23:52:06]NVStorageSaveData kkm_last_timestamp [23:52:06]File name is /storage/kkm_last_timestamp [23:52:06]Write 4 bytes [23:52:06]NVStorageSaveData done [23:52:06]ExternCall_PrintAddStr [23:52:06]wPrintStart [23:52:06]Write to MH i2c: 01 00 00 CA 14 DE [23:52:06]OFD Sender: Processing packet 139978 [packets to send 137, broken 136] [23:52:06]ProducePacketName [23:52:06]name=ofd_packets/00139978 [23:52:06]OFD Sender: To server: pG, [23:52:06]CommunicateWithHost lk.salyk.kg:30040 [23:52:06]ConnectInit lk.salyk.kg [23:52:06]Write i2c OK [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: 01 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: 01 07 00 [23:52:06]MH_I2C_Read... [23:52:06]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [23:52:06]RasterBufferAndPrint [23:52:06]line Счет N : (1)593835 [23:52:06]line ИНН: 02508201610067 [23:52:06]line Контрольно-Кассовый Чек [23:52:06]line ПРОДАЖА [23:52:06]line ТРК (МРК, ГНК) : 62 [23:52:06]line Товар: 2710124130 [23:52:06]line Аи-92-К-5 [23:52:06]line 2.950 * 67.80 [23:52:06]line = 200.01 [23:52:06]line НДС 12% НСП 1% [23:52:06]line > о реализуемом товаре [23:52:06]line ОКРУГЛЕНИЕ: -0.01 [23:52:06]line ИТОГО: 200.00 [23:52:06]line Внесено: 200.00 [23:52:06]line СДАЧА: 0.00 [23:52:06]line НСП 1% : 1.77 [23:52:06]line НДС 12% : 21.24 [23:52:06]line Наличными: 200.00 [23:52:06]line Безнал.: 0.00 [23:52:06]line Место: АЗС № 136 "Партнер Нефть" [23:52:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:52:06]line СНО: Общий режим [23:52:06]line Чек 450 20.08.2024 23:52 [23:52:06]line Смена: 453 ФФД: 1.0 [23:52:06]line ЗНМ: 0300000067 [23:52:06]line РНМ: 0000000000092569 [23:52:06]line Версия ККМ: 001 [23:52:06]line ФМ: 0000000000871776 [23:52:06]line ФД: 139978 [23:52:06]line ФПД: 27049475855144 [23:52:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T235206&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139978&fm=27049475855144&tin=02508201610067®Number=0000000000092569&sum=20000 [23:52:06]written 0, free lines is 4095 [23:52:07]Connected sock=10 [23:52:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FC 67 07 01 2E 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 01 00 00 F4 03 04 00 26 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 22 02 00 35 04 06 00 18 99 F2 66 53 28 19 71 94 81 47 FA 47 A5 [23:52:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 66 6B 47 00 6F B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 22 02 00 F4 03 04 00 B8 D2 C4 66 B6 04 01 00 00 ED 61 C5 91 94 3C D2 A5 [23:52:07]CommunicateWithHost err = 0 [23:52:07]CheckOFDResponse [23:52:07]1017 (14) - 77093643461234 [23:52:07]1041 (16) - 0000000000871776 [23:52:07]1040 (4) - 139978 [23:52:07]1012 (4) - 20.08.2024 17:30 [23:52:07]1206 (1) - 0 [23:52:07]OFD Sender: Remove packet 139978 [23:52:07]ProducePacketName [23:52:07]name=ofd_packets/00139978 [23:52:07]NVStorageDeleteData [23:52:07]Write to MH i2c: 01 00 00 F5 14 09 [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: 01 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: 01 07 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: 01 07 00 F5 14 00 00 00 00 00 CF 0C EB [23:52:07]RasterBufferAndPrint [23:52:07]line [23:52:07]line [23:52:07]line [23:52:07]line [23:52:07]line [23:52:07]written 0, free lines is 3287 [23:52:07]MH_Cut [23:52:07]Write to MH i2c: D1 01 00 FC 14 01 E2 [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: D1 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: D1 01 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: D1 01 00 FC 14 00 E1 [23:52:07]Write to MH i2c: 01 00 00 FD 14 11 [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]OFD Sender: No OFD packet to send [23:52:08]*** Cut start [23:52:08]*** Partial cut [23:52:08]*** CUTSNS_PIN = 1 [23:52:08]*** CUTSNS_PIN = 0 [23:52:08]*** Brake cut motor [23:52:08]Read from MH i2c: 01 [23:52:08]MH_I2C_Read... [23:52:08]*** Stop cut motor [23:52:08]*** Cut end [23:52:08]Read from MH i2c: 01 07 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 FF 0F 26 [23:52:08]process_action close_receipt done [23:52:08]requested_data is exist [23:52:08]produce_requested_data [23:52:08]requested_item fm.sn is exist - process it [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 11 00 00 [23:52:08]Write to MH i2c: E2 08 00 FE 14 80 11 00 00 00 00 00 00 8C [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 17 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 17 00 FE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [23:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:52:08]wFMCommunicate OK [23:52:08]requested_item fd.num is exist - process it [23:52:08]SAM_PROTO_GetFieldsCounters [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 13 00 00 [23:52:08]Write to MH i2c: E2 08 00 FF 14 80 13 00 00 00 00 00 00 8F [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 62 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 62 00 FF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [23:52:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:08]wFMCommunicate OK [23:52:08]SAM_PROTO_GetFieldsCounters done [23:52:08]requested_item shift.num is exist - process it [23:52:08]requested_item shift.opened is exist - process it [23:52:08]req_shift_opened [23:52:08]FM_GetShiftState [23:52:08]SAM_PROTO_GetShiftState [23:52:08]wFMCommunicate request_size=4 [23:52:08]MH_SAM_APDU [23:52:08]CAPDU: 80 13 01 00 [23:52:08]Write to MH i2c: E2 08 00 00 15 80 13 01 00 00 00 00 00 92 [23:52:08]Write i2c OK [23:52:08]MH_I2C_Read... [23:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:08]Read from MH i2c: E2 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 0E 00 [23:52:08]MH_I2C_Read... [23:52:08]Read from MH i2c: E2 0E 00 00 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 23 [23:52:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:52:08]wFMCommunicate OK [23:52:08]SAM_PROTO_GetShiftState done [23:52:08]FM_GetShiftState done [23:52:08]req_shift_opened done [23:52:08]requested_item shift.open_date is exist - process it [23:52:08]req_shift_open_date [23:52:08]req_shift_open_date done [23:52:08]produce_requested_data done [23:52:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139978,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:52:08]process_action_free close_receipt [23:52:08]json_value_free [23:52:08]json_value_free done [23:52:08]process_json_proto returns [23:52:08]Send response to host [23:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139978,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:52:08]free response buf [23:52:08]execute_script done [23:52:08]execute_script returns [23:52:08]free content buf [23:52:08]Sock 7.Close socket [23:52:08]Sock 7.Thread stoped [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:24]accept exits with 9 [23:52:24]New connection [23:52:24]New thread 3066764644 created [23:52:24]Thread 3066908004 joined [23:52:24]Waiting for new connection... [23:52:24] Sock 9.Parse request [23:52:24]Sock 9.Check first char [23:52:24]Sock 9.First char is OK [23:52:24]request: POST /json_proto HTTP/1.0 [23:52:24]Method: POST [23:52:24]URL: /json_proto [23:52:24]Method is POST - this is cgi request [23:52:24]url: /json_proto [23:52:24]query_string will be loaded in cgi processing [23:52:24]execute_cgi json_proto POST (null) [23:52:24]execute_cgi path=json_proto method=POST [23:52:24]POST find Content-Length [23:52:24]Host: 172.17.45.67:8080 [23:52:24]Content-Length: 682 [23:52:24]Content-Type: application/json [23:52:24] [23:52:24]POST finish read [23:52:24]Found Content-Length = 682 [23:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:24]execute_script... [23:52: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)593834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:24]POST & json_proto [23:52:24]process_json_proto [23:52:24]json parsed OK: [23:52:24]protocol is kg_v1.0 [23:52:24]action value=close_receipt [23:52:24]process_action close_receipt [23:52:24]cmd_close_receipt [23:52:24]MH_GetDate [23:52:24]Write to MH i2c: F0 00 00 01 15 05 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: F0 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: F0 09 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: F0 09 00 01 15 00 39 2C C5 66 5F 7F 2B 66 0D [23:52:24]GetLastDocTimeStamp 1724197926 [23:52:24]current date 1724197945 [23:52:24]FM_GetShiftState [23:52:24]SAM_PROTO_GetShiftState [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 13 01 00 [23:52:24]Write to MH i2c: E2 08 00 02 15 80 13 01 00 00 00 00 00 94 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 0E 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 0E 00 02 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 25 [23:52:24]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:52:24]wFMCommunicate OK [23:52:24]SAM_PROTO_GetShiftState done [23:52:24]FM_GetShiftState done [23:52:24]opened in 1724113785 [23:52:24]opened+sec_in_day 1724200185 [23:52:24]quantity*price = 120055 [23:52:24]sum+1 = 120057 [23:52:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 451 20.08.2024 23:52 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139979 ФПД: 14399007144725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T235225&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139979&fm=14399007144725&tin=02508201610067®Number=0000000000092569&sum=120000 [23:52:25]StoreToDocumentArchive [23:52:25]shift 453 fd 139979 [23:52:25]save to /storage/0453/doc_00139979 [23:52:25]save last doc name /storage/0453/doc_00139979 to /storage/kkm_last_doc_name [23:52:25]save OK [23:52:25]Clear old archive folders... [23:52:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:52:25]tlvbuf is 00A51A40 [23:52:25]SAM_PROTO_ClearQueue [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 09 00 00 [23:52:25]Write to MH i2c: E2 08 00 0F 15 80 09 00 00 00 00 00 00 96 [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:25]Read from MH i2c: E2 03 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [23:52:25]RAPDU: 90 00 [23:52:25]wFMCommunicate OK [23:52:25]SAM_PROTO_ClearQueue done [23:52:25]KKMCreateOFDPacket [23:52:25]OFDProtocolAddRootSTLVToBuf [23:52:25]FM_MakeSignedData [23:52:25]FM_MakeSignedData [23:52:25]SAM_PROTO_SignData [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 0D 01 02 [23:52:25]Write to MH i2c: E2 08 00 10 15 80 0D 01 02 00 00 00 00 9E [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [23:52:25]RAPDU: 90 00 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=255 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 C3 01 00 00 F4 03 04 00 39 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 22 02 00 35 04 06 00 0D [23:52:25]Write to MH i2c: E2 02 01 11 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 C3 01 00 00 F4 03 04 00 39 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 22 02 00 35 04 06 00 0D 00 00 76 [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [23:52:25]RAPDU: 90 00 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=10 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 0D 02 02 05 18 87 B4 BB 15 [23:52:25]Write to MH i2c: E2 0D 00 12 15 80 0D 02 02 05 00 18 87 B4 BB 15 00 00 CE [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 03 00 12 15 00 90 00 9B [23:52:25]RAPDU: 90 00 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 0D 03 02 [23:52:25]Write to MH i2c: E2 08 00 13 15 80 0D 03 02 00 00 00 00 A3 [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 0B 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 0B 00 13 15 00 17 97 B5 EA C0 C6 F3 F1 90 00 5B [23:52:25]RAPDU: 17 97 B5 EA C0 C6 F3 F1 90 00 [23:52:25]wFMCommunicate OK [23:52:25]SAM_PROTO_SignData done [23:52:25]FM_MakeSignedData done [23:52:25]CreateOFDProtocolMessage [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 11 00 00 [23:52:25]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 17 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [23:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:52:25]wFMCommunicate OK [23:52:25]CreateOFDProtocolMessage done [23:52:25]OFDSenderStorePacket 139979 [23:52:25]StoreOFDPacket docnum=139979 [23:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2C 3C 07 01 9B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 C3 01 00 00 F4 03 04 00 39 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 22 02 00 35 04 06 00 0D 18 87 B4 BB 15 17 97 B5 EA C0 C6 F3 F1 [23:52:25]CheckFolder [23:52:25]dirname=/storage/ofd_packets [23:52:25]CheckFolder done [23:52:25]ProducePacketName [23:52:25]name=ofd_packets/00139979 [23:52:25]NVStorageSaveData ofd_packets/00139979 [23:52:25]File name is /storage/ofd_packets/00139979 [23:52:25]Write 301 bytes [23:52:25]NVStorageSaveData done [23:52:25]OFDSenderStorePacket done [23:52:25]KKMCreateOFDPacket done [23:52:25]NVStorageSaveData kkm_last_timestamp [23:52:25]File name is /storage/kkm_last_timestamp [23:52:25]Write 4 bytes [23:52:25]NVStorageSaveData done [23:52:25]ExternCall_PrintAddStr [23:52:25]wPrintStart [23:52:25]Write to MH i2c: 01 00 00 15 15 2A [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: 01 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: 01 07 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [23:52:25]RasterBufferAndPrint [23:52:25]line Счет N : (1)593834 [23:52:25]line ИНН: 02508201610067 [23:52:25]line Контрольно-Кассовый Чек [23:52:25]line ПРОДАЖА [23:52:25]line ТРК (МРК, ГНК) : 31 [23:52:25]line Товар: 2710124500 [23:52:25]line Аи-95-К-5 [23:52:25]line 16.180 * 74.20 [23:52:25]line = 1200.56 [23:52:25]line НДС 12% НСП 1% [23:52:25]line > о реализуемом товаре [23:52:25]line ОКРУГЛЕНИЕ: -0.56 [23:52:25]line ИТОГО: 1200.00 [23:52:25]line Внесено: 1200.00 [23:52:25]line СДАЧА: 0.00 [23:52:25]line НСП 1% : 10.62 [23:52:25]line НДС 12% : 127.49 [23:52:25]line Наличными: 1200.00 [23:52:25]line Безнал.: 0.00 [23:52:25]line Место: АЗС № 136 "Партнер Нефть" [23:52:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:52:25]line СНО: Общий режим [23:52:25]line Чек 451 20.08.2024 23:52 [23:52:25]line Смена: 453 ФФД: 1.0 [23:52:25]line ЗНМ: 0300000067 [23:52:25]line РНМ: 0000000000092569 [23:52:25]line Версия ККМ: 001 [23:52:25]line ФМ: 0000000000871776 [23:52:25]line ФД: 139979 [23:52:25]line ФПД: 14399007144725 [23:52:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T235225&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139979&fm=14399007144725&tin=02508201610067®Number=0000000000092569&sum=120000 [23:52:26]OFD Sender: Processing packet 139979 [packets to send 137, broken 136] [23:52:26]ProducePacketName [23:52:26]name=ofd_packets/00139979 [23:52:26]OFD Sender: To server: pG, [23:52:26]CommunicateWithHost lk.salyk.kg:30040 [23:52:26]ConnectInit lk.salyk.kg [23:52:26]written 0, free lines is 4095 [23:52:26]Connected sock=7 [23:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2C 3C 07 01 9B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 C3 01 00 00 F4 03 04 00 39 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 22 02 00 35 04 06 00 0D 18 87 B4 BB 15 17 97 B5 EA C0 C6 F3 F1 [23:52:26]Write to MH i2c: 01 00 00 40 15 55 [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: 01 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: 01 07 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: 01 07 00 40 15 00 00 00 00 00 DC 0C 44 [23:52:26]RasterBufferAndPrint [23:52:26]line [23:52:26]line [23:52:26]line [23:52:26]line [23:52:26]line [23:52:26]written 0, free lines is 3298 [23:52:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A8 33 47 00 A2 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 22 02 00 F4 03 04 00 CB D2 C4 66 B6 04 01 00 00 FA 91 6F 43 7E 0B 6E F3 [23:52:26]CommunicateWithHost err = 0 [23:52:26]CheckOFDResponse [23:52:26]1017 (14) - 77093643461234 [23:52:26]1041 (16) - 0000000000871776 [23:52:26]1040 (4) - 139979 [23:52:26]1012 (4) - 20.08.2024 17:30 [23:52:26]1206 (1) - 0 [23:52:26]OFD Sender: Remove packet 139979 [23:52:26]ProducePacketName [23:52:26]name=ofd_packets/00139979 [23:52:26]NVStorageDeleteData [23:52:26]MH_Cut [23:52:26]Write to MH i2c: D1 01 00 47 15 01 2E [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: D1 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: D1 01 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: D1 01 00 47 15 00 2D [23:52:26]Write to MH i2c: 01 00 00 48 15 5D [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:27]OFD Sender: No OFD packet to send [23:52:27]*** Cut start [23:52:27]*** Partial cut [23:52:27]*** CUTSNS_PIN = 1 [23:52:27]*** CUTSNS_PIN = 0 [23:52:27]*** Brake cut motor [23:52:27]Read from MH i2c: 01 [23:52:27]MH_I2C_Read... [23:52:27]*** Stop cut motor [23:52:27]*** Cut end [23:52:27]Read from MH i2c: 01 07 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: 01 07 00 48 15 00 00 00 00 00 FF 0F 72 [23:52:27]process_action close_receipt done [23:52:27]requested_data is exist [23:52:27]produce_requested_data [23:52:27]requested_item fm.sn is exist - process it [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 11 00 00 [23:52:27]Write to MH i2c: E2 08 00 49 15 80 11 00 00 00 00 00 00 D8 [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 17 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 17 00 49 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [23:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:52:27]wFMCommunicate OK [23:52:27]requested_item fd.num is exist - process it [23:52:27]SAM_PROTO_GetFieldsCounters [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 13 00 00 [23:52:27]Write to MH i2c: E2 08 00 4A 15 80 13 00 00 00 00 00 00 DB [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:28]Read from MH i2c: E2 62 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 62 00 4A 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 07 [23:52:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:28]wFMCommunicate OK [23:52:28]SAM_PROTO_GetFieldsCounters done [23:52:28]requested_item shift.num is exist - process it [23:52:28]requested_item shift.opened is exist - process it [23:52:28]req_shift_opened [23:52:28]FM_GetShiftState [23:52:28]SAM_PROTO_GetShiftState [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 13 01 00 [23:52:28]Write to MH i2c: E2 08 00 4B 15 80 13 01 00 00 00 00 00 DD [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 0E 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 0E 00 4B 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 6E [23:52:28]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:52:28]wFMCommunicate OK [23:52:28]SAM_PROTO_GetShiftState done [23:52:28]FM_GetShiftState done [23:52:28]req_shift_opened done [23:52:28]requested_item shift.open_date is exist - process it [23:52:28]req_shift_open_date [23:52:28]req_shift_open_date done [23:52:28]produce_requested_data done [23:52:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139979,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:52:28]process_action_free close_receipt [23:52:28]json_value_free [23:52:28]json_value_free done [23:52:28]process_json_proto returns [23:52:28]Send response to host [23:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139979,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:52:28]free response buf [23:52:28]execute_script done [23:52:28]execute_script returns [23:52:28]free content buf [23:52:28]Sock 9.Close socket [23:52:28]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:54:57]accept exits with 10 [23:54:57]New connection [23:54:57]New thread 3066908004 created [23:54:57]Thread 3066764644 joined [23:54:57]Waiting for new connection... [23:54:57] Sock 10.Parse request [23:54:57]Sock 10.Check first char [23:54:57]Sock 10.First char is OK [23:54:57]request: POST /json_proto HTTP/1.0 [23:54:57]Method: POST [23:54:57]URL: /json_proto [23:54:57]Method is POST - this is cgi request [23:54:57]url: /json_proto [23:54:57]query_string will be loaded in cgi processing [23:54:57]execute_cgi json_proto POST (null) [23:54:57]execute_cgi path=json_proto method=POST [23:54:57]POST find Content-Length [23:54:57]Host: 172.17.45.67:8080 [23:54:57]Content-Length: 677 [23:54:57]Content-Type: application/json [23:54:57] [23:54:57]POST finish read [23:54:57]Found Content-Length = 677 [23:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:57]execute_script... [23:54: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)593836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:57]POST & json_proto [23:54:57]process_json_proto [23:54:57]json parsed OK: [23:54:57]protocol is kg_v1.0 [23:54:57]action value=close_receipt [23:54:57]process_action close_receipt [23:54:57]cmd_close_receipt [23:54:57]MH_GetDate [23:54:57]Write to MH i2c: F0 00 00 4C 15 50 [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: F0 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: F0 09 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: F0 09 00 4C 15 00 D2 2C C5 66 5F 7F 2B 66 F1 [23:54:57]GetLastDocTimeStamp 1724197945 [23:54:57]current date 1724198098 [23:54:57]FM_GetShiftState [23:54:57]SAM_PROTO_GetShiftState [23:54:57]wFMCommunicate request_size=4 [23:54:57]MH_SAM_APDU [23:54:57]CAPDU: 80 13 01 00 [23:54:57]Write to MH i2c: E2 08 00 4D 15 80 13 01 00 00 00 00 00 DF [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 0E 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 0E 00 4D 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 70 [23:54:58]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:54:58]wFMCommunicate OK [23:54:58]SAM_PROTO_GetShiftState done [23:54:58]FM_GetShiftState done [23:54:58]opened in 1724113785 [23:54:58]opened+sec_in_day 1724200185 [23:54:58]quantity*price = 50036 [23:54:58]sum+1 = 50037 [23:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 452 20.08.2024 23:54 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139980 ФПД: 243923165608849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T235458&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139980&fm=243923165608849&tin=02508201610067®Number=0000000000092569&sum=50000 [23:54:59]StoreToDocumentArchive [23:54:59]shift 453 fd 139980 [23:54:59]save to /storage/0453/doc_00139980 [23:54:59]save last doc name /storage/0453/doc_00139980 to /storage/kkm_last_doc_name [23:54:59]save OK [23:54:59]Clear old archive folders... [23:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:59]tlvbuf is 00A518E0 [23:54:59]SAM_PROTO_ClearQueue [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 09 00 00 [23:54:59]Write to MH i2c: E2 08 00 5A 15 80 09 00 00 00 00 00 00 E1 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 03 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [23:54:59]RAPDU: 90 00 [23:54:59]wFMCommunicate OK [23:54:59]SAM_PROTO_ClearQueue done [23:54:59]KKMCreateOFDPacket [23:54:59]OFDProtocolAddRootSTLVToBuf [23:54:59]FM_MakeSignedData [23:54:59]FM_MakeSignedData [23:54:59]SAM_PROTO_SignData [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 0D 01 02 [23:54:59]Write to MH i2c: E2 08 00 5B 15 80 0D 01 02 00 00 00 00 E9 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 03 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [23:54:59]RAPDU: 90 00 [23:54:59]wFMCommunicate OK [23:54:59]wFMCommunicate request_size=255 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 D2 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 22 02 00 35 04 06 00 DD [23:54:59]Write to MH i2c: E2 02 01 5C 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 D2 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 22 02 00 35 04 06 00 DD 00 00 F3 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 03 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 03 00 5C 15 00 90 00 E5 [23:54:59]RAPDU: 90 00 [23:54:59]wFMCommunicate OK [23:54:59]wFMCommunicate request_size=10 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 0D 02 02 05 D8 C9 A3 7B 91 [23:54:59]Write to MH i2c: E2 0D 00 5D 15 80 0D 02 02 05 00 D8 C9 A3 7B 91 00 00 46 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 03 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 03 00 5D 15 00 90 00 E6 [23:54:59]RAPDU: 90 00 [23:54:59]wFMCommunicate OK [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 0D 03 02 [23:54:59]Write to MH i2c: E2 08 00 5E 15 80 0D 03 02 00 00 00 00 EE [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 0B 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 0B 00 5E 15 00 C6 DE F8 48 88 A7 E5 BE 90 00 A5 [23:54:59]RAPDU: C6 DE F8 48 88 A7 E5 BE 90 00 [23:54:59]wFMCommunicate OK [23:54:59]SAM_PROTO_SignData done [23:54:59]FM_MakeSignedData done [23:54:59]CreateOFDProtocolMessage [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 11 00 00 [23:54:59]Write to MH i2c: E2 08 00 5F 15 80 11 00 00 00 00 00 00 EE [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 17 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 17 00 5F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [23:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:54:59]wFMCommunicate OK [23:54:59]CreateOFDProtocolMessage done [23:54:59]OFDSenderStorePacket 139980 [23:54:59]StoreOFDPacket docnum=139980 [23:54:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B 79 07 01 F0 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 D2 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 22 02 00 35 04 06 00 DD D8 C9 A3 7B 91 C6 DE F8 48 88 A7 E5 BE [23:54:59]CheckFolder [23:54:59]dirname=/storage/ofd_packets [23:54:59]CheckFolder done [23:54:59]ProducePacketName [23:54:59]name=ofd_packets/00139980 [23:54:59]NVStorageSaveData ofd_packets/00139980 [23:54:59]File name is /storage/ofd_packets/00139980 [23:54:59]Write 301 bytes [23:54:59]NVStorageSaveData done [23:54:59]OFDSenderStorePacket done [23:54:59]KKMCreateOFDPacket done [23:54:59]NVStorageSaveData kkm_last_timestamp [23:54:59]File name is /storage/kkm_last_timestamp [23:54:59]Write 4 bytes [23:54:59]NVStorageSaveData done [23:54:59]ExternCall_PrintAddStr [23:54:59]wPrintStart [23:54:59]Write to MH i2c: 01 00 00 60 15 75 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: 01 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: 01 07 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: 01 07 00 60 15 00 00 00 00 00 FF 0F 8A [23:54:59]RasterBufferAndPrint [23:54:59]line Счет N : (1)593836 [23:54:59]line ИНН: 02508201610067 [23:54:59]line Контрольно-Кассовый Чек [23:54:59]line ПРОДАЖА [23:54:59]line ТРК (МРК, ГНК) : 42 [23:54:59]line Товар: 2710124130 [23:54:59]line Аи-92-К-5 [23:54:59]line 7.380 * 67.80 [23:54:59]line = 500.36 [23:54:59]line НДС 12% НСП 1% [23:54:59]line > о реализуемом товаре [23:54:59]line ОКРУГЛЕНИЕ: -0.36 [23:54:59]line ИТОГО: 500.00 [23:54:59]line Внесено: 500.00 [23:54:59]line СДАЧА: 0.00 [23:54:59]line НСП 1% : 4.43 [23:54:59]line НДС 12% : 53.14 [23:54:59]line Наличными: 500.00 [23:54:59]line Безнал.: 0.00 [23:54:59]line Место: АЗС № 136 "Партнер Нефть" [23:54:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:54:59]line СНО: Общий режим [23:54:59]line Чек 452 20.08.2024 23:54 [23:54:59]line Смена: 453 ФФД: 1.0 [23:54:59]line ЗНМ: 0300000067 [23:54:59]line РНМ: 0000000000092569 [23:54:59]line Версия ККМ: 001 [23:54:59]line ФМ: 0000000000871776 [23:54:59]line ФД: 139980 [23:54:59]line ФПД: 243923165608849 [23:54:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T235458&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139980&fm=243923165608849&tin=02508201610067®Number=0000000000092569&sum=50000 [23:55:00]written 0, free lines is 4095 [23:55:00]OFD Sender: Processing packet 139980 [packets to send 137, broken 136] [23:55:00]ProducePacketName [23:55:00]name=ofd_packets/00139980 [23:55:00]OFD Sender: To server: pG, [23:55:00]CommunicateWithHost lk.salyk.kg:30040 [23:55:00]ConnectInit lk.salyk.kg [23:55:00]Connected sock=9 [23:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B 79 07 01 F0 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 01 00 00 F4 03 04 00 D2 2C C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 22 02 00 35 04 06 00 DD D8 C9 A3 7B 91 C6 DE F8 48 88 A7 E5 BE [23:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 83 DB 47 00 78 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 22 02 00 F4 03 04 00 65 D3 C4 66 B6 04 01 00 00 30 E6 20 FF 13 98 6B D2 [23:55:00]CommunicateWithHost err = 0 [23:55:00]CheckOFDResponse [23:55:00]1017 (14) - 77093643461234 [23:55:00]1041 (16) - 0000000000871776 [23:55:00]1040 (4) - 139980 [23:55:00]1012 (4) - 20.08.2024 17:33 [23:55:00]1206 (1) - 0 [23:55:00]OFD Sender: Remove packet 139980 [23:55:00]ProducePacketName [23:55:00]name=ofd_packets/00139980 [23:55:00]NVStorageDeleteData [23:55:00]Write to MH i2c: 01 00 00 8B 15 A0 [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: 01 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: 01 07 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: 01 07 00 8B 15 00 00 00 00 00 CE 0C 81 [23:55:00]RasterBufferAndPrint [23:55:00]line [23:55:00]line [23:55:00]line [23:55:00]line [23:55:00]line [23:55:00]written 0, free lines is 3286 [23:55:00]MH_Cut [23:55:00]Write to MH i2c: D1 01 00 92 15 01 79 [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: D1 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: D1 01 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: D1 01 00 92 15 00 78 [23:55:00]Write to MH i2c: 01 00 00 93 15 A8 [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]OFD Sender: No OFD packet to send [23:55:01]*** Cut start [23:55:01]*** Partial cut [23:55:01]*** CUTSNS_PIN = 1 [23:55:01]*** CUTSNS_PIN = 0 [23:55:01]*** Brake cut motor [23:55:01]Read from MH i2c: 01 [23:55:01]MH_I2C_Read... [23:55:01]*** Stop cut motor [23:55:01]*** Cut end [23:55:01]Read from MH i2c: 01 07 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: 01 07 00 93 15 00 00 00 00 00 FF 0F BD [23:55:01]process_action close_receipt done [23:55:01]requested_data is exist [23:55:01]produce_requested_data [23:55:01]requested_item fm.sn is exist - process it [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 11 00 00 [23:55:01]Write to MH i2c: E2 08 00 94 15 80 11 00 00 00 00 00 00 23 [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 17 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 17 00 94 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [23:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:55:01]wFMCommunicate OK [23:55:01]requested_item fd.num is exist - process it [23:55:01]SAM_PROTO_GetFieldsCounters [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 13 00 00 [23:55:01]Write to MH i2c: E2 08 00 95 15 80 13 00 00 00 00 00 00 26 [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 62 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 62 00 95 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [23:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:01]wFMCommunicate OK [23:55:01]SAM_PROTO_GetFieldsCounters done [23:55:01]requested_item shift.num is exist - process it [23:55:01]requested_item shift.opened is exist - process it [23:55:01]req_shift_opened [23:55:01]FM_GetShiftState [23:55:01]SAM_PROTO_GetShiftState [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 13 01 00 [23:55:01]Write to MH i2c: E2 08 00 96 15 80 13 01 00 00 00 00 00 28 [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 0E 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 0E 00 96 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 B9 [23:55:02]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [23:55:02]wFMCommunicate OK [23:55:02]SAM_PROTO_GetShiftState done [23:55:02]FM_GetShiftState done [23:55:02]req_shift_opened done [23:55:02]requested_item shift.open_date is exist - process it [23:55:02]req_shift_open_date [23:55:02]req_shift_open_date done [23:55:02]produce_requested_data done [23:55:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139980,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [23:55:02]process_action_free close_receipt [23:55:02]json_value_free [23:55:02]json_value_free done [23:55:02]process_json_proto returns [23:55:02]Send response to host [23:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139980,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [23:55:02]free response buf [23:55:02]execute_script done [23:55:02]execute_script returns [23:55:02]free content buf [23:55:02]Sock 10.Close socket [23:55:02]Sock 10.Thread stoped [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]int [00:04:11]Write to MH i2c: 01 00 00 97 15 AC [00:04:11]*** FLAG_PRN_KEY set [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: 01 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: 01 07 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: 01 07 00 97 15 00 08 00 00 00 FF 0F C9 [00:04:11]state=0 [00:04:11]Key pressed [00:04:11]Feed [00:04:11]Write to MH i2c: D8 00 00 98 15 84 [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: D8 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: D8 01 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: D8 01 00 98 15 00 85 [00:04:11]int [00:04:11]Write to MH i2c: 01 00 00 99 15 AE [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: 01 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: 01 07 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: 01 07 00 99 15 00 48 00 00 00 3C 00 39 [00:04:11]state=2 [00:04:11]Key pressed [00:04:11]int [00:04:11]Write to MH i2c: 01 00 00 9A 15 AF [00:04:11]*** FLAG_PRN_KEY reset [00:04:11]Write i2c OK [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: 01 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: 01 07 00 [00:04:11]MH_I2C_Read... [00:04:11]Read from MH i2c: 01 07 00 9A 15 00 00 00 00 00 F5 0F BA [00:04:11]state=2 [00:04:11]Stop feed [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]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]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:14]accept exits with 7 [00:16:14]New connection [00:16:14]New thread 3066764644 created [00:16:14]Thread 3066908004 joined [00:16:14]Waiting for new connection... [00:16:14] Sock 7.Parse request [00:16:14]Sock 7.Check first char [00:16:14]Sock 7.First char is OK [00:16:14]request: POST /json_proto HTTP/1.0 [00:16:14]Method: POST [00:16:14]URL: /json_proto [00:16:14]Method is POST - this is cgi request [00:16:14]url: /json_proto [00:16:14]query_string will be loaded in cgi processing [00:16:14]execute_cgi json_proto POST (null) [00:16:14]execute_cgi path=json_proto method=POST [00:16:14]POST find Content-Length [00:16:14]Host: 172.17.45.67:8080 [00:16:14]Content-Length: 819 [00:16:14]Content-Type: application/json [00:16:14] [00:16:14]POST finish read [00:16:14]Found Content-Length = 819 [00:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:14]execute_script... [00:16: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)593837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:14]POST & json_proto [00:16:14]process_json_proto [00:16:14]json parsed OK: [00:16:14]protocol is kg_v1.0 [00:16:14]action value=close_receipt [00:16:14]process_action close_receipt [00:16:14]cmd_close_receipt [00:16:14]MH_GetDate [00:16:14]Write to MH i2c: F0 00 00 9B 15 9F [00:16:14]Write i2c OK [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: F0 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: F0 09 00 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: F0 09 00 9B 15 00 CF 31 C5 66 5F 7F 2B 66 42 [00:16:14]GetLastDocTimeStamp 1724198098 [00:16:14]current date 1724199375 [00:16:14]FM_GetShiftState [00:16:14]SAM_PROTO_GetShiftState [00:16:14]wFMCommunicate request_size=4 [00:16:14]MH_SAM_APDU [00:16:14]CAPDU: 80 13 01 00 [00:16:14]Write to MH i2c: E2 08 00 9C 15 80 13 01 00 00 00 00 00 2E [00:16:14]Write i2c OK [00:16:14]MH_I2C_Read... [00:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:14]Read from MH i2c: E2 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 0E 00 [00:16:14]MH_I2C_Read... [00:16:14]Read from MH i2c: E2 0E 00 9C 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 BF [00:16:14]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:16:14]wFMCommunicate OK [00:16:14]SAM_PROTO_GetShiftState done [00:16:14]FM_GetShiftState done [00:16:14]opened in 1724113785 [00:16:14]opened+sec_in_day 1724200185 [00:16:14]quantity*price = 80061 [00:16:14]sum+1 = 80063 [00:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 453 21.08.2024 00:16 Смена: 453 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 139981 ФПД: 52294292800914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T001615&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139981&fm=52294292800914&tin=02508201610067®Number=0000000000092569&sum=80000 [00:16:16]StoreToDocumentArchive [00:16:16]shift 453 fd 139981 [00:16:16]save to /storage/0453/doc_00139981 [00:16:16]save last doc name /storage/0453/doc_00139981 to /storage/kkm_last_doc_name [00:16:16]save OK [00:16:16]Clear old archive folders... [00:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:16:16]tlvbuf is B6E9D380 [00:16:16]SAM_PROTO_ClearQueue [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 09 00 00 [00:16:16]Write to MH i2c: E2 08 00 A9 15 80 09 00 00 00 00 00 00 30 [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 A9 15 00 90 00 32 [00:16:16]RAPDU: 90 00 [00:16:16]wFMCommunicate OK [00:16:16]SAM_PROTO_ClearQueue done [00:16:16]KKMCreateOFDPacket [00:16:16]OFDProtocolAddRootSTLVToBuf [00:16:16]FM_MakeSignedData [00:16:16]FM_MakeSignedData [00:16:16]SAM_PROTO_SignData [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 0D 01 02 [00:16:16]Write to MH i2c: E2 08 00 AA 15 80 0D 01 02 00 00 00 00 38 [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 AA 15 00 90 00 33 [00:16:16]RAPDU: 90 00 [00:16:16]wFMCommunicate OK [00:16:16]wFMCommunicate request_size=255 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 CF 31 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 22 02 00 35 04 06 00 2F [00:16:16]Write to MH i2c: E2 02 01 AB 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 CF 31 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 22 02 00 35 04 06 00 2F 00 00 15 [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 AB 15 00 90 00 34 [00:16:16]RAPDU: 90 00 [00:16:16]wFMCommunicate OK [00:16:16]wFMCommunicate request_size=10 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 0D 02 02 05 8F B6 BF 05 92 [00:16:16]Write to MH i2c: E2 0D 00 AC 15 80 0D 02 02 05 00 8F B6 BF 05 92 00 00 E0 [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 03 00 AC 15 00 90 00 35 [00:16:16]RAPDU: 90 00 [00:16:16]wFMCommunicate OK [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 0D 03 02 [00:16:16]Write to MH i2c: E2 08 00 AD 15 80 0D 03 02 00 00 00 00 3D [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 0B 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 0B 00 AD 15 00 84 8D A8 AC 43 DC B2 F9 90 00 6D [00:16:16]RAPDU: 84 8D A8 AC 43 DC B2 F9 90 00 [00:16:16]wFMCommunicate OK [00:16:16]SAM_PROTO_SignData done [00:16:16]FM_MakeSignedData done [00:16:16]CreateOFDProtocolMessage [00:16:16]wFMCommunicate request_size=4 [00:16:16]MH_SAM_APDU [00:16:16]CAPDU: 80 11 00 00 [00:16:16]Write to MH i2c: E2 08 00 AE 15 80 11 00 00 00 00 00 00 3D [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:16]Read from MH i2c: E2 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 17 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: E2 17 00 AE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [00:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:16:16]wFMCommunicate OK [00:16:16]CreateOFDProtocolMessage done [00:16:16]OFDSenderStorePacket 139981 [00:16:16]StoreOFDPacket docnum=139981 [00:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C3 1C 07 01 14 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 CF 31 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 22 02 00 35 04 06 00 2F 8F B6 BF 05 92 84 8D A8 AC 43 DC B2 F9 [00:16:16]CheckFolder [00:16:16]dirname=/storage/ofd_packets [00:16:16]CheckFolder done [00:16:16]ProducePacketName [00:16:16]name=ofd_packets/00139981 [00:16:16]NVStorageSaveData ofd_packets/00139981 [00:16:16]File name is /storage/ofd_packets/00139981 [00:16:16]Write 301 bytes [00:16:16]NVStorageSaveData done [00:16:16]OFDSenderStorePacket done [00:16:16]KKMCreateOFDPacket done [00:16:16]NVStorageSaveData kkm_last_timestamp [00:16:16]File name is /storage/kkm_last_timestamp [00:16:16]Write 4 bytes [00:16:16]NVStorageSaveData done [00:16:16]ExternCall_PrintAddStr [00:16:16]wPrintStart [00:16:16]Write to MH i2c: 01 00 00 AF 15 C4 [00:16:16]Write i2c OK [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: 01 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: 01 07 00 [00:16:16]MH_I2C_Read... [00:16:16]Read from MH i2c: 01 07 00 AF 15 00 00 00 00 00 FF 0F D9 [00:16:16]RasterBufferAndPrint [00:16:16]line Счет N : (1)593837 [00:16:16]line ИНН: 02508201610067 [00:16:16]line Контрольно-Кассовый Чек [00:16:16]line ПРОДАЖА [00:16:16]line ТРК (МРК, ГНК) : 51 [00:16:16]line Товар: 2710124500 [00:16:16]line Аи-95-К-5 [00:16:16]line 10.790 * 74.20 [00:16:16]line = 800.62 [00:16:16]line НДС 12% НСП 1% [00:16:16]line > о реализуемом товаре [00:16:16]line ОКРУГЛЕНИЕ: -0.62 [00:16:16]line ИТОГО: 800.00 [00:16:16]line НСП 1% : 7.08 [00:16:16]line НДС 12% : 85.02 [00:16:16]line Наличными: 0.00 [00:16:16]line Безнал.: 800.00 [00:16:16]line Место: АЗС № 136 "Партнер Нефть" [00:16:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:16:16]line СНО: Общий режим [00:16:16]line Чек 453 21.08.2024 00:16 [00:16:16]line Смена: 453 ФФД: 1.0 [00:16:16]line ЗНМ: 0300000067 [00:16:16]line РНМ: 0000000000092569 [00:16:16]line Версия ККМ: 001 [00:16:16]line Платежная система: O! деньги [00:16:16]line ФМ: 0000000000871776 [00:16:16]line ФД: 139981 [00:16:16]line ФПД: 52294292800914 [00:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T001615&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139981&fm=52294292800914&tin=02508201610067®Number=0000000000092569&sum=80000 [00:16:16]OFD Sender: Processing packet 139981 [packets to send 137, broken 136] [00:16:16]ProducePacketName [00:16:16]name=ofd_packets/00139981 [00:16:16]OFD Sender: To server: pG, [00:16:16]CommunicateWithHost lk.salyk.kg:30040 [00:16:16]ConnectInit lk.salyk.kg [00:16:16]written 0, free lines is 4095 [00:16:16]Connected sock=10 [00:16:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C3 1C 07 01 14 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 CF 31 C5 66 0E 04 04 00 C5 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 22 02 00 35 04 06 00 2F 8F B6 BF 05 92 84 8D A8 AC 43 DC B2 F9 [00:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5B F0 47 00 67 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 22 02 00 F4 03 04 00 62 D8 C4 66 B6 04 01 00 00 BF 4E C0 A2 5E 50 E1 F3 [00:16:17]CommunicateWithHost err = 0 [00:16:17]CheckOFDResponse [00:16:17]1017 (14) - 77093643461234 [00:16:17]1041 (16) - 0000000000871776 [00:16:17]1040 (4) - 139981 [00:16:17]1012 (4) - 20.08.2024 17:54 [00:16:17]1206 (1) - 0 [00:16:17]OFD Sender: Remove packet 139981 [00:16:17]ProducePacketName [00:16:17]name=ofd_packets/00139981 [00:16:17]NVStorageDeleteData [00:16:17]Write to MH i2c: 01 00 00 DA 15 EF [00:16:17]Write i2c OK [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: 01 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: 01 07 00 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 CD 0C CF [00:16:17]RasterBufferAndPrint [00:16:17]line [00:16:17]line [00:16:17]line [00:16:17]line [00:16:17]line [00:16:17]written 0, free lines is 3283 [00:16:17]MH_Cut [00:16:17]Write to MH i2c: D1 01 00 E1 15 01 C8 [00:16:17]Write i2c OK [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: D1 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: D1 01 00 [00:16:17]MH_I2C_Read... [00:16:17]Read from MH i2c: D1 01 00 E1 15 00 C7 [00:16:17]Write to MH i2c: 01 00 00 E2 15 F7 [00:16:17]Write i2c OK [00:16:17]MH_I2C_Read... [00:16:17]OFD Sender: No OFD packet to send [00:16:18]*** Cut start [00:16:18]*** Partial cut [00:16:18]*** CUTSNS_PIN = 1 [00:16:18]*** CUTSNS_PIN = 0 [00:16:18]*** Brake cut motor [00:16:18]Read from MH i2c: 01 [00:16:18]MH_I2C_Read... [00:16:18]*** Stop cut motor [00:16:18]*** Cut end [00:16:18]Read from MH i2c: 01 07 00 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 FF 0F 0C [00:16:18]process_action close_receipt done [00:16:18]requested_data is exist [00:16:18]produce_requested_data [00:16:18]requested_item fm.sn is exist - process it [00:16:18]wFMCommunicate request_size=4 [00:16:18]MH_SAM_APDU [00:16:18]CAPDU: 80 11 00 00 [00:16:18]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [00:16:18]Write i2c OK [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 [00:16:18]MH_I2C_Read... [00:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:18]Read from MH i2c: E2 17 00 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 17 00 E3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C9 [00:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:16:18]wFMCommunicate OK [00:16:18]requested_item fd.num is exist - process it [00:16:18]SAM_PROTO_GetFieldsCounters [00:16:18]wFMCommunicate request_size=4 [00:16:18]MH_SAM_APDU [00:16:18]CAPDU: 80 13 00 00 [00:16:18]Write to MH i2c: E2 08 00 E4 15 80 13 00 00 00 00 00 00 75 [00:16:18]Write i2c OK [00:16:18]MH_I2C_Read... [00:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:18]Read from MH i2c: E2 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 62 00 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 62 00 E4 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [00:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:18]wFMCommunicate OK [00:16:18]SAM_PROTO_GetFieldsCounters done [00:16:18]requested_item shift.num is exist - process it [00:16:18]requested_item shift.opened is exist - process it [00:16:18]req_shift_opened [00:16:18]FM_GetShiftState [00:16:18]SAM_PROTO_GetShiftState [00:16:18]wFMCommunicate request_size=4 [00:16:18]MH_SAM_APDU [00:16:18]CAPDU: 80 13 01 00 [00:16:18]Write to MH i2c: E2 08 00 E5 15 80 13 01 00 00 00 00 00 77 [00:16:18]Write i2c OK [00:16:18]MH_I2C_Read... [00:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:18]Read from MH i2c: E2 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 0E 00 [00:16:18]MH_I2C_Read... [00:16:18]Read from MH i2c: E2 0E 00 E5 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 08 [00:16:18]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:16:18]wFMCommunicate OK [00:16:18]SAM_PROTO_GetShiftState done [00:16:18]FM_GetShiftState done [00:16:18]req_shift_opened done [00:16:18]requested_item shift.open_date is exist - process it [00:16:18]req_shift_open_date [00:16:18]req_shift_open_date done [00:16:18]produce_requested_data done [00:16:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139981,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [00:16:18]process_action_free close_receipt [00:16:18]json_value_free [00:16:18]json_value_free done [00:16:18]process_json_proto returns [00:16:18]Send response to host [00:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139981,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [00:16:18]free response buf [00:16:18]execute_script done [00:16:18]execute_script returns [00:16:18]free content buf [00:16:18]Sock 7.Close socket [00:16:18]Sock 7.Thread stoped [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:55]int [00:17:55]Write to MH i2c: 01 00 00 E6 15 FB [00:17:55]*** FLAG_PRN_KEY set [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: 01 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: 01 07 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: 01 07 00 E6 15 00 08 00 00 00 FF 0F 18 [00:17:55]state=0 [00:17:55]Key pressed [00:17:55]Feed [00:17:55]Write to MH i2c: D8 00 00 E7 15 D3 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: D8 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: D8 01 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: D8 01 00 E7 15 00 D4 [00:17:55]int [00:17:55]Write to MH i2c: 01 00 00 E8 15 FD [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: 01 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: 01 07 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: 01 07 00 E8 15 00 48 00 00 00 3C 00 88 [00:17:55]state=2 [00:17:55]Key pressed [00:17:56]int [00:17:56]Write to MH i2c: 01 00 00 E9 15 FE [00:17:56]*** FLAG_PRN_KEY reset [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: 01 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: 01 07 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: 01 07 00 E9 15 00 00 00 00 00 F6 0F 0A [00:17:56]state=2 [00:17:56]Stop feed [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:00]accept exits with 9 [00:19:00]New connection [00:19:00]New thread 3066908004 created [00:19:00]Thread 3066764644 joined [00:19:00]Waiting for new connection... [00:19:00] Sock 9.Parse request [00:19:00]Sock 9.Check first char [00:19:00]Sock 9.First char is OK [00:19:00]request: POST /json_proto HTTP/1.0 [00:19:00]Method: POST [00:19:00]URL: /json_proto [00:19:00]Method is POST - this is cgi request [00:19:00]url: /json_proto [00:19:00]query_string will be loaded in cgi processing [00:19:00]execute_cgi json_proto POST (null) [00:19:00]execute_cgi path=json_proto method=POST [00:19:00]POST find Content-Length [00:19:00]Host: 172.17.45.67:8080 [00:19:00]Content-Length: 215 [00:19:00]Content-Type: application/json [00:19:00] [00:19:00]POST finish read [00:19:00]Found Content-Length = 215 [00:19:00]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:19:00]execute_script... [00:19:00]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:19:00]POST & json_proto [00:19:00]process_json_proto [00:19:00]json parsed OK: [00:19:00]protocol is kg_v1.0 [00:19:00]action value=get_value [00:19:00]process_action get_value [00:19:00]cmd_get_value [00:19:00]process_action get_value done [00:19:00]requested_data is exist [00:19:00]produce_requested_data [00:19:00]requested_item kkm.sn is exist - process it [00:19:00]requested_item kkm.ver is exist - process it [00:19:00]requested_item fm.sn is exist - process it [00:19:00]wFMCommunicate request_size=4 [00:19:00]MH_SAM_APDU [00:19:00]CAPDU: 80 11 00 00 [00:19:00]Write to MH i2c: E2 08 00 EA 15 80 11 00 00 00 00 00 00 79 [00:19:00]Write i2c OK [00:19:00]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 17 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 17 00 EA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [00:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:19:01]wFMCommunicate OK [00:19:01]requested_item fd.num is exist - process it [00:19:01]SAM_PROTO_GetFieldsCounters [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 13 00 00 [00:19:01]Write to MH i2c: E2 08 00 EB 15 80 13 00 00 00 00 00 00 7C [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 62 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 62 00 EB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [00:19:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:01]wFMCommunicate OK [00:19:01]SAM_PROTO_GetFieldsCounters done [00:19:01]requested_item shift.num is exist - process it [00:19:01]requested_item shift.opened is exist - process it [00:19:01]req_shift_opened [00:19:01]FM_GetShiftState [00:19:01]SAM_PROTO_GetShiftState [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 13 01 00 [00:19:01]Write to MH i2c: E2 08 00 EC 15 80 13 01 00 00 00 00 00 7E [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 0E 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 0E 00 EC 15 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 0F [00:19:01]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:19:01]wFMCommunicate OK [00:19:01]SAM_PROTO_GetShiftState done [00:19:01]FM_GetShiftState done [00:19:01]req_shift_opened done [00:19:01]requested_item shift.open_date is exist - process it [00:19:01]req_shift_open_date [00:19:01]req_shift_open_date done [00:19:01]produce_requested_data done [00:19:01]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139981,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [00:19:01]process_action_free get_value [00:19:01]json_value_free [00:19:01]json_value_free done [00:19:01]process_json_proto returns [00:19:01]Send response to host [00:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139981,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [00:19:01]free response buf [00:19:01]execute_script done [00:19:01]execute_script returns [00:19:01]free content buf [00:19:01]Sock 9.Close socket [00:19:01]Sock 9.Thread stoped [00:19:01]accept exits with 7 [00:19:01]New connection [00:19:01]New thread 3066764644 created [00:19:01]Thread 3066908004 joined [00:19:01]Waiting for new connection... [00:19:01] Sock 7.Parse request [00:19:01]Sock 7.Check first char [00:19:01]Sock 7.First char is OK [00:19:01]request: POST /json_proto HTTP/1.0 [00:19:01]Method: POST [00:19:01]URL: /json_proto [00:19:01]Method is POST - this is cgi request [00:19:01]url: /json_proto [00:19:01]query_string will be loaded in cgi processing [00:19:01]execute_cgi json_proto POST (null) [00:19:01]execute_cgi path=json_proto method=POST [00:19:01]POST find Content-Length [00:19:01]Host: 172.17.45.67:8080 [00:19:01]Content-Length: 331 [00:19:01]Content-Type: application/json [00:19:01] [00:19:01]POST finish read [00:19:01]Found Content-Length = 331 [00:19: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:19:01]execute_script... [00:19: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:19:01]POST & json_proto [00:19:01]process_json_proto [00:19:01]json parsed OK: [00:19:01]protocol is kg_v1.0 [00:19:01]action value=get_value [00:19:01]process_action get_value [00:19:01]cmd_get_value [00:19:01]process_action get_value done [00:19:01]requested_data is exist [00:19:01]produce_requested_data [00:19:01]requested_item fm.sale.total is exist - process it [00:19:01]SAM_PROTO_GetFMData [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 13 03 00 [00:19:01]Write to MH i2c: E2 08 00 ED 15 80 13 03 00 00 00 00 00 81 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:01]Read from MH i2c: E2 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 [00:19:01]MH_I2C_Read... [00:19:01]Read from MH i2c: E2 FD 00 ED 15 00 C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 C6 [00:19:01]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:19:01]wFMCommunicate OK [00:19:01]wFMCommunicate request_size=4 [00:19:01]MH_SAM_APDU [00:19:01]CAPDU: 80 17 00 00 [00:19:01]Write to MH i2c: E2 08 00 EE 15 80 17 00 00 00 00 00 00 83 [00:19:01]Write i2c OK [00:19:01]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 EE 15 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 88 [00:19:02]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:19:02]wFMCommunicate OK [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 17 00 00 [00:19:02]Write to MH i2c: E2 08 00 EF 15 80 17 00 00 00 00 00 00 84 [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 EF 15 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 99 [00:19:02]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:19:02]wFMCommunicate OK [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 17 00 00 [00:19:02]Write to MH i2c: E2 08 00 F0 15 80 17 00 00 00 00 00 00 85 [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:02]Read from MH i2c: E2 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: E2 FD 00 F0 15 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 FD [00:19:02]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:19:02]wFMCommunicate OK [00:19:02]wFMCommunicate request_size=4 [00:19:02]MH_SAM_APDU [00:19:02]CAPDU: 80 17 00 00 [00:19:02]Write to MH i2c: E2 08 00 F1 15 80 17 00 00 00 00 00 00 86 [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 E1 00 [00:19:03]MH_I2C_Read... [00:19:03]OFD Sender: No OFD packet to send [00:19:03]Read from MH i2c: E2 E1 00 F1 15 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 74 [00:19:03]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:03]wFMCommunicate OK [00:19:03]SAM_PROTO_GetFMData done [00:19:03]requested_item fm.sale_refund.total is exist - process it [00:19:03]requested_item fm.buy.total is exist - process it [00:19:03]requested_item shift.sale.total is exist - process it [00:19:03]SAM_PROTO_GetShiftData [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 13 02 00 [00:19:03]Write to MH i2c: E2 08 00 F2 15 80 13 02 00 00 00 00 00 85 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 F2 15 00 B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 96 [00:19:03]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 17 00 00 [00:19:03]Write to MH i2c: E2 08 00 F3 15 80 17 00 00 00 00 00 00 88 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:03]Read from MH i2c: E2 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 [00:19:03]MH_I2C_Read... [00:19:03]Read from MH i2c: E2 FD 00 F3 15 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 A1 [00:19:03]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:19:03]wFMCommunicate OK [00:19:03]wFMCommunicate request_size=4 [00:19:03]MH_SAM_APDU [00:19:03]CAPDU: 80 17 00 00 [00:19:03]Write to MH i2c: E2 08 00 F4 15 80 17 00 00 00 00 00 00 89 [00:19:03]Write i2c OK [00:19:03]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 FD 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 FD 00 F4 15 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 42 [00:19: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:19:04]wFMCommunicate OK [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 17 00 00 [00:19:04]Write to MH i2c: E2 08 00 F5 15 80 17 00 00 00 00 00 00 8A [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 FD 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 FD 00 F5 15 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 02 [00:19: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:19:04]wFMCommunicate OK [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 17 00 00 [00:19:04]Write to MH i2c: E2 08 00 F6 15 80 17 00 00 00 00 00 00 8B [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:04]Read from MH i2c: E2 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 CE 00 [00:19:04]MH_I2C_Read... [00:19:04]Read from MH i2c: E2 CE 00 F6 15 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 70 [00:19:04]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:19:04]wFMCommunicate OK [00:19:04]SAM_PROTO_GetShiftData done [00:19:04]requested_item shift.sale.total_cash is exist - process it [00:19:04]requested_item shift.sale_refund.total is exist - process it [00:19:04]requested_item shift.sale_refund.total_cash is exist - process it [00:19:04]requested_item shift.buy.total is exist - process it [00:19:04]requested_item shift.buy.total_cash is exist - process it [00:19:04]produce_requested_data done [00:19:04]produce_requested_data return {"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.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:19:04]process_action_free get_value [00:19:04]json_value_free [00:19:04]json_value_free done [00:19:04]process_json_proto returns [00:19:04]Send response to host [00:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.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:19:04]free response buf [00:19:04]execute_script done [00:19:04]execute_script returns [00:19:04]free content buf [00:19:04]Sock 7.Close socket [00:19:04]Sock 7.Thread stoped [00:19:04]accept exits with 9 [00:19:04]New connection [00:19:04]New thread 3066908004 created [00:19:04]Thread 3066764644 joined [00:19:04]Waiting for new connection... [00:19:04] Sock 9.Parse request [00:19:04]Sock 9.Check first char [00:19:04]Sock 9.First char is OK [00:19:04]request: POST /json_proto HTTP/1.0 [00:19:04]Method: POST [00:19:04]URL: /json_proto [00:19:04]Method is POST - this is cgi request [00:19:04]url: /json_proto [00:19:04]query_string will be loaded in cgi processing [00:19:04]execute_cgi json_proto POST (null) [00:19:04]execute_cgi path=json_proto method=POST [00:19:04]POST find Content-Length [00:19:04]Host: 172.17.45.67:8080 [00:19:04]Content-Length: 331 [00:19:04]Content-Type: application/json [00:19:04] [00:19:04]POST finish read [00:19:04]Found Content-Length = 331 [00:19:04]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:19:04]execute_script... [00:19:04]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:19:04]POST & json_proto [00:19:04]process_json_proto [00:19:04]json parsed OK: [00:19:04]protocol is kg_v1.0 [00:19:04]action value=get_value [00:19:04]process_action get_value [00:19:04]cmd_get_value [00:19:04]process_action get_value done [00:19:04]requested_data is exist [00:19:04]produce_requested_data [00:19:04]requested_item fm.sale.total is exist - process it [00:19:04]SAM_PROTO_GetFMData [00:19:04]wFMCommunicate request_size=4 [00:19:04]MH_SAM_APDU [00:19:04]CAPDU: 80 13 03 00 [00:19:04]Write to MH i2c: E2 08 00 F7 15 80 13 03 00 00 00 00 00 8B [00:19:04]Write i2c OK [00:19:04]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 F7 15 00 C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 D0 [00:19:05]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:19:05]wFMCommunicate OK [00:19:05]wFMCommunicate request_size=4 [00:19:05]MH_SAM_APDU [00:19:05]CAPDU: 80 17 00 00 [00:19:05]Write to MH i2c: E2 08 00 F8 15 80 17 00 00 00 00 00 00 8D [00:19:05]Write i2c OK [00:19:05]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 F8 15 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 92 [00:19:05]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:19:05]wFMCommunicate OK [00:19:05]wFMCommunicate request_size=4 [00:19:05]MH_SAM_APDU [00:19:05]CAPDU: 80 17 00 00 [00:19:05]Write to MH i2c: E2 08 00 F9 15 80 17 00 00 00 00 00 00 8E [00:19:05]Write i2c OK [00:19:05]MH_I2C_Read... [00:19:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:05]Read from MH i2c: E2 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 [00:19:05]MH_I2C_Read... [00:19:05]Read from MH i2c: E2 FD 00 F9 15 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 A3 [00:19:05]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:19:06]wFMCommunicate OK [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 17 00 00 [00:19:06]Write to MH i2c: E2 08 00 FA 15 80 17 00 00 00 00 00 00 8F [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 FD 00 FA 15 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 07 [00:19:06]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:19:06]wFMCommunicate OK [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 17 00 00 [00:19:06]Write to MH i2c: E2 08 00 FB 15 80 17 00 00 00 00 00 00 90 [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:19:06]Read from MH i2c: E2 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 E1 00 [00:19:06]MH_I2C_Read... [00:19:06]Read from MH i2c: E2 E1 00 FB 15 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [00:19:06]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:06]wFMCommunicate OK [00:19:06]SAM_PROTO_GetFMData done [00:19:06]requested_item fm.sale_refund.total is exist - process it [00:19:06]requested_item fm.buy.total is exist - process it [00:19:06]requested_item shift.sale.total is exist - process it [00:19:06]SAM_PROTO_GetShiftData [00:19:06]wFMCommunicate request_size=4 [00:19:06]MH_SAM_APDU [00:19:06]CAPDU: 80 13 02 00 [00:19:06]Write to MH i2c: E2 08 00 FC 15 80 13 02 00 00 00 00 00 8F [00:19:06]Write i2c OK [00:19:06]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 FC 15 00 B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A0 [00:19:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:07]wFMCommunicate OK [00:19:07]wFMCommunicate request_size=4 [00:19:07]MH_SAM_APDU [00:19:07]CAPDU: 80 17 00 00 [00:19:07]Write to MH i2c: E2 08 00 FD 15 80 17 00 00 00 00 00 00 92 [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 FD 15 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 AB [00:19:07]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:19:07]wFMCommunicate OK [00:19:07]wFMCommunicate request_size=4 [00:19:07]MH_SAM_APDU [00:19:07]CAPDU: 80 17 00 00 [00:19:07]Write to MH i2c: E2 08 00 FE 15 80 17 00 00 00 00 00 00 93 [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:07]Read from MH i2c: E2 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: E2 FD 00 FE 15 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 4C [00:19:07]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:19:08]wFMCommunicate OK [00:19:08]wFMCommunicate request_size=4 [00:19:08]MH_SAM_APDU [00:19:08]CAPDU: 80 17 00 00 [00:19:08]Write to MH i2c: E2 08 00 FF 15 80 17 00 00 00 00 00 00 94 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]OFD Sender: No OFD packet to send [00:19:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:08]Read from MH i2c: E2 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 FD 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 FD 00 FF 15 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 0C [00:19:08]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:19:08]wFMCommunicate OK [00:19:08]wFMCommunicate request_size=4 [00:19:08]MH_SAM_APDU [00:19:08]CAPDU: 80 17 00 00 [00:19:08]Write to MH i2c: E2 08 00 00 16 80 17 00 00 00 00 00 00 96 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:08]Read from MH i2c: E2 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 CE 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 CE 00 00 16 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 7B [00:19:08]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:19:08]wFMCommunicate OK [00:19:08]SAM_PROTO_GetShiftData done [00:19:08]requested_item shift.sale.total_cash is exist - process it [00:19:08]requested_item shift.sale_refund.total is exist - process it [00:19:08]requested_item shift.sale_refund.total_cash is exist - process it [00:19:08]requested_item shift.buy.total is exist - process it [00:19:08]requested_item shift.buy.total_cash is exist - process it [00:19:08]produce_requested_data done [00:19:08]produce_requested_data return {"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.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:19:08]process_action_free get_value [00:19:08]json_value_free [00:19:08]json_value_free done [00:19:08]process_json_proto returns [00:19:08]Send response to host [00:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.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:19:08]free response buf [00:19:08]execute_script done [00:19:08]execute_script returns [00:19:08]free content buf [00:19:08]Sock 9.Close socket [00:19:08]Sock 9.Thread stoped [00:19:08]accept exits with 7 [00:19:08]New connection [00:19:08]New thread 3066764644 created [00:19:08]Thread 3066908004 joined [00:19:08]Waiting for new connection... [00:19:08] Sock 7.Parse request [00:19:08]Sock 7.Check first char [00:19:08]Sock 7.First char is OK [00:19:08]request: POST /json_proto HTTP/1.0 [00:19:08]Method: POST [00:19:08]URL: /json_proto [00:19:08]Method is POST - this is cgi request [00:19:08]url: /json_proto [00:19:08]query_string will be loaded in cgi processing [00:19:08]execute_cgi json_proto POST (null) [00:19:08]execute_cgi path=json_proto method=POST [00:19:08]POST find Content-Length [00:19:08]Host: 172.17.45.67:8080 [00:19:08]Content-Length: 251 [00:19:08]Content-Type: application/json [00:19:08] [00:19:08]POST finish read [00:19:08]Found Content-Length = 251 [00:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 3 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:08]execute_script... [00:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 3 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:08]POST & json_proto [00:19:08]process_json_proto [00:19:08]json parsed OK: [00:19:08]protocol is kg_v1.0 [00:19:08]action value=x_report [00:19:08]process_action x_report [00:19:08]cmd_x_report [00:19:08]MH_GetDate [00:19:08]Write to MH i2c: F0 00 00 01 16 06 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: F0 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: F0 09 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: F0 09 00 01 16 00 7D 32 C5 66 5F 7F 2B 66 58 [00:19:08]GetLastDocTimeStamp 1724199375 [00:19:08]current date 1724199549 [00:19:08]FM_GetShiftState [00:19:08]SAM_PROTO_GetShiftState [00:19:08]wFMCommunicate request_size=4 [00:19:08]MH_SAM_APDU [00:19:08]CAPDU: 80 13 01 00 [00:19:08]Write to MH i2c: E2 08 00 02 16 80 13 01 00 00 00 00 00 95 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:08]Read from MH i2c: E2 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 0E 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 0E 00 02 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 26 [00:19:08]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:19:08]wFMCommunicate OK [00:19:08]SAM_PROTO_GetShiftState done [00:19:08]FM_GetShiftState done [00:19:08]KKMCreateXReportDocument [00:19:08]Load OK [00:19:08]Malloc new data [00:19:08]MH_GetDate [00:19:08]Write to MH i2c: F0 00 00 03 16 08 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: F0 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: F0 09 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: F0 09 00 03 16 00 7D 32 C5 66 5F 7F 2B 66 5A [00:19:08]Malloc new data [00:19:08]Malloc new data [00:19:08]wFMCommunicate request_size=4 [00:19:08]MH_SAM_APDU [00:19:08]CAPDU: 80 11 00 00 [00:19:08]Write to MH i2c: E2 08 00 04 16 80 11 00 00 00 00 00 00 94 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:08]Read from MH i2c: E2 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 17 00 [00:19:08]MH_I2C_Read... [00:19:08]Read from MH i2c: E2 17 00 04 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [00:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:19:08]wFMCommunicate OK [00:19:08]SAM_PROTO_GetFieldsCounters [00:19:08]wFMCommunicate request_size=4 [00:19:08]MH_SAM_APDU [00:19:08]CAPDU: 80 13 00 00 [00:19:08]Write to MH i2c: E2 08 00 05 16 80 13 00 00 00 00 00 00 97 [00:19:08]Write i2c OK [00:19:08]MH_I2C_Read... [00:19:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:09]Read from MH i2c: E2 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 62 00 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 62 00 05 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [00:19:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:09]wFMCommunicate OK [00:19:09]SAM_PROTO_GetFieldsCounters done [00:19:09]Malloc new data [00:19:09]Malloc new data [00:19:09]Malloc new data [00:19:09]KKMCreateXReportDocument OK [00:19:09]KKMSetXReportData OK [00:19:09]KKMPrepareXReportFMData [00:19:09]SAM_PROTO_GetShiftData [00:19:09]wFMCommunicate request_size=4 [00:19:09]MH_SAM_APDU [00:19:09]CAPDU: 80 13 02 00 [00:19:09]Write to MH i2c: E2 08 00 06 16 80 13 02 00 00 00 00 00 9A [00:19:09]Write i2c OK [00:19:09]MH_I2C_Read... [00:19:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:09]Read from MH i2c: E2 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 FD 00 [00:19:09]MH_I2C_Read... [00:19:09]Read from MH i2c: E2 FD 00 06 16 00 B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AB [00:19:09]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:09]wFMCommunicate OK [00:19:09]wFMCommunicate request_size=4 [00:19:09]MH_SAM_APDU [00:19:09]CAPDU: 80 17 00 00 [00:19:09]Write to MH i2c: E2 08 00 07 16 80 17 00 00 00 00 00 00 9D [00:19:09]Write i2c OK [00:19:09]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 07 16 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 B6 [00:19: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:19:10]wFMCommunicate OK [00:19:10]wFMCommunicate request_size=4 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 17 00 00 [00:19:10]Write to MH i2c: E2 08 00 08 16 80 17 00 00 00 00 00 00 9E [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 08 16 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 57 [00:19: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:19:10]wFMCommunicate OK [00:19:10]wFMCommunicate request_size=4 [00:19:10]MH_SAM_APDU [00:19:10]CAPDU: 80 17 00 00 [00:19:10]Write to MH i2c: E2 08 00 09 16 80 17 00 00 00 00 00 00 9F [00:19:10]Write i2c OK [00:19:10]MH_I2C_Read... [00:19:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:10]Read from MH i2c: E2 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 [00:19:10]MH_I2C_Read... [00:19:10]Read from MH i2c: E2 FD 00 09 16 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 17 [00:19: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:19:11]wFMCommunicate OK [00:19:11]wFMCommunicate request_size=4 [00:19:11]MH_SAM_APDU [00:19:11]CAPDU: 80 17 00 00 [00:19:11]Write to MH i2c: E2 08 00 0A 16 80 17 00 00 00 00 00 00 A0 [00:19:11]Write i2c OK [00:19:11]MH_I2C_Read... [00:19:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:11]Read from MH i2c: E2 [00:19:11]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 CE 00 [00:19:11]MH_I2C_Read... [00:19:11]Read from MH i2c: E2 CE 00 0A 16 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 85 [00:19:11]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:19:11]wFMCommunicate OK [00:19:11]SAM_PROTO_GetShiftData done [00:19:11]1194 (1197) - счетчики итогов смены [00:19:11] 1134 (4) - 453 - количество чеков со всеми признаками расчетов [00:19:11] 1129 (158) - счетчики операций «приход» [00:19:11] 1135 (4) - 453 - количество чеков по признаку расчетов [00:19:11] 1201 (4) - 322960.00 - общая итоговая сумма в чеках [00:19:11] 1136 (4) - 305068.00 - итоговая сумма в чеках наличными [00:19:11] 1138 (3) - 17892.00 - итоговая сумма в чеках безналичными [00:19:11] 1024 (123) - суммы налогов [00:19:11] 1006 (9) - суммы НДС [00:19:11] 1010 (1) - 0% - код ставки НДС [00:19:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:11] 1006 (12) - суммы НДС [00:19:11] 1010 (1) - 12% - код ставки НДС [00:19:11] 1011 (3) - 34308.99 - сумма НДС по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 0% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (12) - суммы НСП [00:19:11] 1014 (1) - 1% - код ставки НСП [00:19:11] 1015 (3) - 2859.16 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 2% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 3% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 5% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 0,50% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 1,50% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1130 (141) - счетчики операций «возврат прихода» [00:19:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:11] 1024 (117) - суммы налогов [00:19:11] 1006 (9) - суммы НДС [00:19:11] 1010 (1) - 0% - код ставки НДС [00:19:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:11] 1006 (9) - суммы НДС [00:19:11] 1010 (1) - 12% - код ставки НДС [00:19:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 0% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 1% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 2% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 3% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 5% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 0,50% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 1,50% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1131 (141) - счетчики операций «расход» [00:19:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:11] 1024 (117) - суммы налогов [00:19:11] 1006 (9) - суммы НДС [00:19:11] 1010 (1) - 0% - код ставки НДС [00:19:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:11] 1006 (9) - суммы НДС [00:19:11] 1010 (1) - 12% - код ставки НДС [00:19:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 0% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 1% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 2% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 3% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 5% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 0,50% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 1,50% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1132 (141) - счетчики операций «возврат расхода» [00:19:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:11] 1024 (117) - суммы налогов [00:19:11] 1006 (9) - суммы НДС [00:19:11] 1010 (1) - 0% - код ставки НДС [00:19:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:11] 1006 (9) - суммы НДС [00:19:11] 1010 (1) - 12% - код ставки НДС [00:19:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 0% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 1% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 2% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 3% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 5% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 0,50% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1007 (9) - суммы НСП [00:19:11] 1014 (1) - 1,50% - код ставки НСП [00:19:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:11] 1133 (588) - - счетчики коррекции - не используются [00:19:11]SetTLVBufToDocument [00:19:11]Processing tag 1194 (04AA) [00:19:11]Load OK [00:19:11]SetTLVBufToDocument [00:19:11]Processing tag 1134 (046E) [00:19:11]Malloc new data [00:19:11]Processing tag 1129 (0469) [00:19:11]Load OK [00:19:11]SetTLVBufToDocument [00:19:11]Processing tag 1135 (046F) [00:19:11]Malloc new data [00:19:11]Processing tag 1201 (04B1) [00:19:11]Malloc new data [00:19:11]Processing tag 1136 (0470) [00:19:11]Malloc new data [00:19:11]Processing tag 1138 (0472) [00:19:11]Malloc new data [00:19:11]Processing tag 1024 (0400) [00:19:11]Load OK [00:19:11]SetTLVBufToDocument [00:19:11]Processing tag 1006 (03EE) [00:19:11]Load OK [00:19:11]SetTLVBufToDocument [00:19:12]Processing tag 1010 (03F2) [00:19:12]Malloc new data [00:19:12]Processing tag 1011 (03F3) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1006 (03EE) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1010 (03F2) [00:19:12]Malloc new data [00:19:12]Processing tag 1011 (03F3) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]SetTLVBufToDocument err=0 [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1130 (046A) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1135 (046F) [00:19:12]Malloc new data [00:19:12]Processing tag 1201 (04B1) [00:19:12]Malloc new data [00:19:12]Processing tag 1136 (0470) [00:19:12]Malloc new data [00:19:12]Processing tag 1138 (0472) [00:19:12]Malloc new data [00:19:12]Processing tag 1024 (0400) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1006 (03EE) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1010 (03F2) [00:19:12]Malloc new data [00:19:12]Processing tag 1011 (03F3) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1006 (03EE) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1010 (03F2) [00:19:12]Malloc new data [00:19:12]Processing tag 1011 (03F3) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]SetTLVBufToDocument err=0 [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1131 (046B) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1135 (046F) [00:19:12]Malloc new data [00:19:12]Processing tag 1201 (04B1) [00:19:12]Malloc new data [00:19:12]Processing tag 1136 (0470) [00:19:12]Malloc new data [00:19:12]Processing tag 1138 (0472) [00:19:12]Malloc new data [00:19:12]Processing tag 1024 (0400) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1006 (03EE) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1010 (03F2) [00:19:12]Malloc new data [00:19:12]Processing tag 1011 (03F3) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1006 (03EE) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1010 (03F2) [00:19:12]Malloc new data [00:19:12]Processing tag 1011 (03F3) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]SetTLVBufToDocument err=0 [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1132 (046C) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1135 (046F) [00:19:12]Malloc new data [00:19:12]Processing tag 1201 (04B1) [00:19:12]Malloc new data [00:19:12]Processing tag 1136 (0470) [00:19:12]Malloc new data [00:19:12]Processing tag 1138 (0472) [00:19:12]Malloc new data [00:19:12]Processing tag 1024 (0400) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1006 (03EE) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1010 (03F2) [00:19:12]Malloc new data [00:19:12]Processing tag 1011 (03F3) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1006 (03EE) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1010 (03F2) [00:19:12]Malloc new data [00:19:12]Processing tag 1011 (03F3) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1007 (03EF) [00:19:12]Load OK [00:19:12]SetTLVBufToDocument [00:19:12]Processing tag 1014 (03F6) [00:19:12]Malloc new data [00:19:12]Processing tag 1015 (03F7) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]SetTLVBufToDocument err=0 [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Processing tag 1133 (046D) [00:19:12]Malloc new data [00:19:12]SetTLVBufToDocument err=0 [00:19:12]SetTLVBufToDocument err=0 [00:19:12]Malloc new data [00:19:12]SAM_PROTO_GetFMData [00:19:12]wFMCommunicate request_size=4 [00:19:12]MH_SAM_APDU [00:19:12]CAPDU: 80 13 03 00 [00:19:12]Write to MH i2c: E2 08 00 0B 16 80 13 03 00 00 00 00 00 A0 [00:19:12]Write i2c OK [00:19:12]MH_I2C_Read... [00:19:13]OFD Sender: No OFD packet to send [00:19:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:13]Read from MH i2c: E2 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 0B 16 00 C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 E5 [00:19:13]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:19:13]wFMCommunicate OK [00:19:13]wFMCommunicate request_size=4 [00:19:13]MH_SAM_APDU [00:19:13]CAPDU: 80 17 00 00 [00:19:13]Write to MH i2c: E2 08 00 0C 16 80 17 00 00 00 00 00 00 A2 [00:19:13]Write i2c OK [00:19:13]MH_I2C_Read... [00:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:13]Read from MH i2c: E2 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 [00:19:13]MH_I2C_Read... [00:19:13]Read from MH i2c: E2 FD 00 0C 16 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 A7 [00:19:13]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:19:13]wFMCommunicate OK [00:19:13]wFMCommunicate request_size=4 [00:19:13]MH_SAM_APDU [00:19:13]CAPDU: 80 17 00 00 [00:19:13]Write to MH i2c: E2 08 00 0D 16 80 17 00 00 00 00 00 00 A3 [00:19:13]Write i2c OK [00:19:13]MH_I2C_Read... [00:19:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:14]Read from MH i2c: E2 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 FD 00 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 FD 00 0D 16 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 B8 [00:19:14]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:19:14]wFMCommunicate OK [00:19:14]wFMCommunicate request_size=4 [00:19:14]MH_SAM_APDU [00:19:14]CAPDU: 80 17 00 00 [00:19:14]Write to MH i2c: E2 08 00 0E 16 80 17 00 00 00 00 00 00 A4 [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:14]Read from MH i2c: E2 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 FD 00 [00:19:14]MH_I2C_Read... [00:19:14]Read from MH i2c: E2 FD 00 0E 16 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 1C [00:19:14]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:19:14]wFMCommunicate OK [00:19:14]wFMCommunicate request_size=4 [00:19:14]MH_SAM_APDU [00:19:14]CAPDU: 80 17 00 00 [00:19:14]Write to MH i2c: E2 08 00 0F 16 80 17 00 00 00 00 00 00 A5 [00:19:14]Write i2c OK [00:19:14]MH_I2C_Read... [00:19:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 E1 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 E1 00 0F 16 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 93 [00:19:15]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:15]wFMCommunicate OK [00:19:15]SAM_PROTO_GetFMData done [00:19:15]FM_GetFMData:85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 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 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:15]oper:6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:16]total:1F 3D 34 3C 02 [00:19:16]Malloc new data [00:19:16]oper:6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 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 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:16]total:94 3F FD 01 [00:19:16]Malloc new data [00:19:16]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:19:16]total: [00:19:16]Malloc new data [00:19:16]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:19:16]total: [00:19:16]Malloc new data [00:19:16]KKMPrepareXReportFMData err=0 [00:19:16]Х отчет ИНН: 02508201610067 Кассир: Оператор 3 21.08.2024 00:19 Смена: 266 РНМ: 0000000000092569 ЗНМ: 0300000067 СНО: Общий режим Всего чеков: 453 ИТОГИ ПРИХОД Чеков: 453 Общий итог: 322960.00 Итого наличными: 305068.00 Итого безнал.: 17892.00 НДС 0% : 0.00 НДС 12% : 34308.99 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2859.16 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 305068.00 НС Приход: 95999910.71 НС Возвр.Прихода: 333741.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871776 [00:19:16]StoreToDocumentArchive [00:19:16]MH_GetDate [00:19:16]Write to MH i2c: F0 00 00 10 16 15 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: F0 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: F0 09 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: F0 09 00 10 16 00 85 32 C5 66 5F 7F 2B 66 6F [00:19:16]shift 266 fd 1724199557 [00:19:16]Create dir for shift 0266 [00:19:16]save to /storage/0266/doc_1724199557 [00:19:16]save last doc name /storage/0266/doc_1724199557 to /storage/kkm_last_doc_name [00:19:16]save OK [00:19:16]Clear old archive folders... [00:19:16]NVStorageSaveData kkm_last_timestamp [00:19:16]File name is /storage/kkm_last_timestamp [00:19:16]Write 4 bytes [00:19:16]NVStorageSaveData done [00:19:16]ExternCall_PrintAddStr [00:19:16]wPrintStart [00:19:16]Write to MH i2c: 01 00 00 11 16 27 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: 01 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: 01 07 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: 01 07 00 11 16 00 00 00 00 00 FF 0F 3C [00:19:16]RasterBufferAndPrint [00:19:16]line Х отчет [00:19:16]line ИНН: 02508201610067 [00:19:16]line Кассир: Оператор 3 [00:19:16]line 21.08.2024 00:19 [00:19:16]line Смена: 266 [00:19:16]line РНМ: 0000000000092569 [00:19:16]line ЗНМ: 0300000067 [00:19:16]line СНО: Общий режим [00:19:16]line Всего чеков: 453 [00:19:16]line ИТОГИ ПРИХОД [00:19:16]line Чеков: 453 [00:19:16]line Общий итог: 322960.00 [00:19:16]line Итого наличными: 305068.00 [00:19:16]line Итого безнал.: 17892.00 [00:19:16]line НДС 0% : 0.00 [00:19:16]line НДС 12% : 34308.99 [00:19:16]line НСП 0% : 0.00 [00:19:16]line НСП 1,50% : 0.00 [00:19:16]line НСП 0,50% : 0.00 [00:19:16]line НСП 5% : 0.00 [00:19:16]line НСП 3% : 0.00 [00:19:16]line НСП 2% : 0.00 [00:19:16]line НСП 1% : 2859.16 [00:19:16]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:19:16]line Чеков: 0 [00:19:16]line Общий итог: 0.00 [00:19:16]line Итого наличными: 0.00 [00:19:16]line Итого безнал.: 0.00 [00:19:16]line НДС 0% : 0.00 [00:19:16]line НДС 12% : 0.00 [00:19:16]line НСП 0% : 0.00 [00:19:16]line НСП 1,50% : 0.00 [00:19:16]line НСП 0,50% : 0.00 [00:19:16]line НСП 5% : 0.00 [00:19:16]line НСП 3% : 0.00 [00:19:16]line НСП 2% : 0.00 [00:19:16]line НСП 1% : 0.00 [00:19:16]line ИТОГИ РАСХОД [00:19:16]line Чеков: 0 [00:19:16]line Общий итог: 0.00 [00:19:16]line Итого наличными: 0.00 [00:19:16]line Итого безнал.: 0.00 [00:19:16]line НДС 0% : 0.00 [00:19:16]line НДС 12% : 0.00 [00:19:16]line НСП 0% : 0.00 [00:19:16]line НСП 1,50% : 0.00 [00:19:16]line НСП 0,50% : 0.00 [00:19:16]line НСП 5% : 0.00 [00:19:16]line НСП 3% : 0.00 [00:19:16]line НСП 2% : 0.00 [00:19:16]line НСП 1% : 0.00 [00:19:16]line ИТОГИ ВОЗВРАТ РАСХОДА [00:19:16]line Чеков: 0 [00:19:16]line Общий итог: 0.00 [00:19:16]line Итого наличными: 0.00 [00:19:16]line Итого безнал.: 0.00 [00:19:16]line НДС 0% : 0.00 [00:19:16]line НДС 12% : 0.00 [00:19:16]line НСП 0% : 0.00 [00:19:16]line НСП 1,50% : 0.00 [00:19:16]line НСП 0,50% : 0.00 [00:19:16]line НСП 5% : 0.00 [00:19:16]line НСП 3% : 0.00 [00:19:16]line НСП 2% : 0.00 [00:19:16]line НСП 1% : 0.00 [00:19:16]line Сумма внесений: 0.00 [00:19:16]line Сумма выплат: 0.00 [00:19:16]line Нал. в кассе: 305068.00 [00:19:16]line НС Приход: 95999910.71 [00:19:16]line НС Возвр.Прихода: 333741.00 [00:19:16]line НС Расход: 0.00 [00:19:16]line НС Возвр.Расхода: 0.00 [00:19:16]line ФМ: 0000000000871776 [00:19:16]written 0, free lines is 4095 [00:19:17]Write to MH i2c: 01 00 00 5C 16 72 [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 5C 16 00 00 00 00 00 C7 0A 4A [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 2795 [00:19:17]MH_Cut [00:19:17]Write to MH i2c: D1 01 00 63 16 01 4B [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 63 16 00 4A [00:19:17]Write to MH i2c: 01 00 00 64 16 7A [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:18]OFD Sender: No OFD packet to send [00:19:18]*** Cut start [00:19:18]*** Partial cut [00:19:18]*** CUTSNS_PIN = 1 [00:19:18]*** CUTSNS_PIN = 0 [00:19:18]*** Brake cut motor [00:19:18]Read from MH i2c: 01 [00:19:18]MH_I2C_Read... [00:19:18]*** Stop cut motor [00:19:18]*** Cut end [00:19:18]Read from MH i2c: 01 07 00 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: 01 07 00 64 16 00 00 00 00 00 FF 0F 8F [00:19:18]process_action x_report done [00:19:18]requested_data is exist [00:19:18]produce_requested_data [00:19:18]requested_item fd.num is exist - process it [00:19:18]SAM_PROTO_GetFieldsCounters [00:19:18]wFMCommunicate request_size=4 [00:19:18]MH_SAM_APDU [00:19:18]CAPDU: 80 13 00 00 [00:19:18]Write to MH i2c: E2 08 00 65 16 80 13 00 00 00 00 00 00 F7 [00:19:18]Write i2c OK [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 [00:19:18]MH_I2C_Read... [00:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:18]Read from MH i2c: E2 62 00 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 62 00 65 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [00:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:19]wFMCommunicate OK [00:19:19]SAM_PROTO_GetFieldsCounters done [00:19:19]requested_item shift.num is exist - process it [00:19:19]requested_item shift.opened is exist - process it [00:19:19]req_shift_opened [00:19:19]FM_GetShiftState [00:19:19]SAM_PROTO_GetShiftState [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 13 01 00 [00:19:19]Write to MH i2c: E2 08 00 66 16 80 13 01 00 00 00 00 00 F9 [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 0E 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 0E 00 66 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 8A [00:19:19]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:19:19]wFMCommunicate OK [00:19:19]SAM_PROTO_GetShiftState done [00:19:19]FM_GetShiftState done [00:19:19]req_shift_opened done [00:19:19]requested_item shift.open_date is exist - process it [00:19:19]req_shift_open_date [00:19:19]req_shift_open_date done [00:19:19]produce_requested_data done [00:19:19]produce_requested_data return {"fd.num":139981,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [00:19:19]process_action_free x_report [00:19:19]json_value_free [00:19:19]json_value_free done [00:19:19]process_json_proto returns [00:19:19]Send response to host [00:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139981,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [00:19:19]free response buf [00:19:19]execute_script done [00:19:19]execute_script returns [00:19:19]free content buf [00:19:19]Sock 7.Close socket [00:19:19]Sock 7.Thread stoped [00:19:19]int [00:19:19]Write to MH i2c: 01 00 00 67 16 7D [00:19:19]*** FLAG_PRN_KEY set [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: 01 [00:19:19]MH_I2C_Read... [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 67 16 00 08 00 00 00 FF 0F 9A [00:19:19]state=0 [00:19:19]Key pressed [00:19:19]Feed [00:19:19]Write to MH i2c: D8 00 00 68 16 55 [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: D8 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: D8 01 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: D8 01 00 68 16 00 56 [00:19:19]int line is 0 - check status [00:19:19]Write to MH i2c: 01 00 00 69 16 7F [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: 01 [00:19:19]MH_I2C_Read... [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 69 16 00 48 00 00 00 3C 00 0A [00:19:19]state=2 [00:19:19]Key pressed [00:19:19]int [00:19:19]Write to MH i2c: 01 00 00 6A 16 80 [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: 01 [00:19:19]MH_I2C_Read... [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 6A 16 00 48 00 00 00 3C 00 0B [00:19:19]state=2 [00:19:19]Key pressed [00:19:19]int [00:19:19]Write to MH i2c: 01 00 00 6B 16 81 [00:19:19]*** FLAG_PRN_KEY reset [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: 01 [00:19:19]MH_I2C_Read... [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 6B 16 00 00 00 00 00 FF 0F 96 [00:19:19]state=2 [00:19:19]Stop feed [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:19:59]accept exits with 9 [00:19:59]New connection [00:19:59]New thread 3066908004 created [00:19:59]Thread 3066764644 joined [00:19:59]Waiting for new connection... [00:19:59] Sock 9.Parse request [00:19:59]Sock 9.Check first char [00:19:59]Sock 9.First char is OK [00:19:59]request: POST /json_proto HTTP/1.0 [00:19:59]Method: POST [00:19:59]URL: /json_proto [00:19:59]Method is POST - this is cgi request [00:19:59]url: /json_proto [00:19:59]query_string will be loaded in cgi processing [00:19:59]execute_cgi json_proto POST (null) [00:19:59]execute_cgi path=json_proto method=POST [00:19:59]POST find Content-Length [00:19:59]Host: 172.17.45.67:8080 [00:19:59]Content-Length: 215 [00:19:59]Content-Type: application/json [00:19:59] [00:19:59]POST finish read [00:19:59]Found Content-Length = 215 [00:19:59]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:19:59]execute_script... [00:19:59]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:19:59]POST & json_proto [00:19:59]process_json_proto [00:19:59]json parsed OK: [00:19:59]protocol is kg_v1.0 [00:19:59]action value=get_value [00:19:59]process_action get_value [00:19:59]cmd_get_value [00:19:59]process_action get_value done [00:19:59]requested_data is exist [00:19:59]produce_requested_data [00:19:59]requested_item kkm.sn is exist - process it [00:19:59]requested_item kkm.ver is exist - process it [00:19:59]requested_item fm.sn is exist - process it [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 11 00 00 [00:19:59]Write to MH i2c: E2 08 00 6C 16 80 11 00 00 00 00 00 00 FC [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 17 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 17 00 6C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [00:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:19:59]wFMCommunicate OK [00:19:59]requested_item fd.num is exist - process it [00:19:59]SAM_PROTO_GetFieldsCounters [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 13 00 00 [00:19:59]Write to MH i2c: E2 08 00 6D 16 80 13 00 00 00 00 00 00 FF [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 62 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 62 00 6D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [00:19:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:59]wFMCommunicate OK [00:19:59]SAM_PROTO_GetFieldsCounters done [00:19:59]requested_item shift.num is exist - process it [00:19:59]requested_item shift.opened is exist - process it [00:19:59]req_shift_opened [00:19:59]FM_GetShiftState [00:19:59]SAM_PROTO_GetShiftState [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 13 01 00 [00:19:59]Write to MH i2c: E2 08 00 6E 16 80 13 01 00 00 00 00 00 01 [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 0E 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 0E 00 6E 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 92 [00:19:59]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:19:59]wFMCommunicate OK [00:19:59]SAM_PROTO_GetShiftState done [00:19:59]FM_GetShiftState done [00:19:59]req_shift_opened done [00:19:59]requested_item shift.open_date is exist - process it [00:19:59]req_shift_open_date [00:19:59]req_shift_open_date done [00:19:59]produce_requested_data done [00:19:59]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139981,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785} [00:19:59]process_action_free get_value [00:19:59]json_value_free [00:19:59]json_value_free done [00:19:59]process_json_proto returns [00:19:59]Send response to host [00:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139981,"shift.num":453,"shift.opened":1,"shift.open_date":1724113785}}} [00:19:59]free response buf [00:19:59]execute_script done [00:19:59]execute_script returns [00:19:59]free content buf [00:19:59]Sock 9.Close socket [00:19:59]Sock 9.Thread stoped [00:19:59]accept exits with 7 [00:19:59]New connection [00:19:59]New thread 3066764644 created [00:19:59]Thread 3066908004 joined [00:19:59]Waiting for new connection... [00:19:59] Sock 7.Parse request [00:19:59]Sock 7.Check first char [00:19:59]Sock 7.First char is OK [00:19:59]request: POST /json_proto HTTP/1.0 [00:19:59]Method: POST [00:19:59]URL: /json_proto [00:19:59]Method is POST - this is cgi request [00:19:59]url: /json_proto [00:19:59]query_string will be loaded in cgi processing [00:19:59]execute_cgi json_proto POST (null) [00:19:59]execute_cgi path=json_proto method=POST [00:19:59]POST find Content-Length [00:19:59]Host: 172.17.45.67:8080 [00:19:59]Content-Length: 331 [00:19:59]Content-Type: application/json [00:19:59] [00:19:59]POST finish read [00:19:59]Found Content-Length = 331 [00:19:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:59]execute_script... [00:19:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:59]POST & json_proto [00:19:59]process_json_proto [00:19:59]json parsed OK: [00:19:59]protocol is kg_v1.0 [00:19:59]action value=get_value [00:20:00]process_action get_value [00:20:00]cmd_get_value [00:20:00]process_action get_value done [00:20:00]requested_data is exist [00:20:00]produce_requested_data [00:20:00]requested_item fm.sale.total is exist - process it [00:20:00]SAM_PROTO_GetFMData [00:20:00]wFMCommunicate request_size=4 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 13 03 00 [00:20:00]Write to MH i2c: E2 08 00 6F 16 80 13 03 00 00 00 00 00 04 [00:20:00]Write i2c OK [00:20:00]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 6F 16 00 C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 49 [00:20:00]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:20:00]wFMCommunicate OK [00:20:00]wFMCommunicate request_size=4 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 17 00 00 [00:20:00]Write to MH i2c: E2 08 00 70 16 80 17 00 00 00 00 00 00 06 [00:20:00]Write i2c OK [00:20:00]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 70 16 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 0B [00:20:00]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:20:00]wFMCommunicate OK [00:20:00]wFMCommunicate request_size=4 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 17 00 00 [00:20:00]Write to MH i2c: E2 08 00 71 16 80 17 00 00 00 00 00 00 07 [00:20:00]Write i2c OK [00:20:00]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 71 16 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 1C [00:20:01]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:20:01]wFMCommunicate OK [00:20:01]wFMCommunicate request_size=4 [00:20:01]MH_SAM_APDU [00:20:01]CAPDU: 80 17 00 00 [00:20:01]Write to MH i2c: E2 08 00 72 16 80 17 00 00 00 00 00 00 08 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:01]Read from MH i2c: E2 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 FD 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 FD 00 72 16 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 80 [00:20:01]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:20:01]wFMCommunicate OK [00:20:01]wFMCommunicate request_size=4 [00:20:01]MH_SAM_APDU [00:20:01]CAPDU: 80 17 00 00 [00:20:01]Write to MH i2c: E2 08 00 73 16 80 17 00 00 00 00 00 00 09 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:20:01]Read from MH i2c: E2 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 E1 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 E1 00 73 16 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F7 [00:20:01]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:01]wFMCommunicate OK [00:20:01]SAM_PROTO_GetFMData done [00:20:01]requested_item fm.sale_refund.total is exist - process it [00:20:01]requested_item fm.buy.total is exist - process it [00:20:01]requested_item shift.sale.total is exist - process it [00:20:01]SAM_PROTO_GetShiftData [00:20:01]wFMCommunicate request_size=4 [00:20:01]MH_SAM_APDU [00:20:01]CAPDU: 80 13 02 00 [00:20:01]Write to MH i2c: E2 08 00 74 16 80 13 02 00 00 00 00 00 08 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:01]Read from MH i2c: E2 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 FD 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 FD 00 74 16 00 B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 19 [00:20:01]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:01]wFMCommunicate OK [00:20:01]wFMCommunicate request_size=4 [00:20:01]MH_SAM_APDU [00:20:01]CAPDU: 80 17 00 00 [00:20:01]Write to MH i2c: E2 08 00 75 16 80 17 00 00 00 00 00 00 0B [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 75 16 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 24 [00:20:02]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 17 00 00 [00:20:02]Write to MH i2c: E2 08 00 76 16 80 17 00 00 00 00 00 00 0C [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 76 16 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 C5 [00:20:02]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 17 00 00 [00:20:02]Write to MH i2c: E2 08 00 77 16 80 17 00 00 00 00 00 00 0D [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 77 16 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 85 [00:20:02]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 17 00 00 [00:20:02]Write to MH i2c: E2 08 00 78 16 80 17 00 00 00 00 00 00 0E [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:20:03]Read from MH i2c: E2 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 CE 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 CE 00 78 16 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 F3 [00:20:03]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:03]wFMCommunicate OK [00:20:03]SAM_PROTO_GetShiftData done [00:20:03]requested_item shift.sale.total_cash is exist - process it [00:20:03]requested_item shift.sale_refund.total is exist - process it [00:20:03]requested_item shift.sale_refund.total_cash is exist - process it [00:20:03]requested_item shift.buy.total is exist - process it [00:20:03]requested_item shift.buy.total_cash is exist - process it [00:20:03]produce_requested_data done [00:20:03]produce_requested_data return {"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.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:20:03]process_action_free get_value [00:20:03]json_value_free [00:20:03]json_value_free done [00:20:03]process_json_proto returns [00:20:03]Send response to host [00:20:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.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:20:03]free response buf [00:20:03]execute_script done [00:20:03]execute_script returns [00:20:03]free content buf [00:20:03]Sock 7.Close socket [00:20:03]Sock 7.Thread stoped [00:20:03]OFD Sender: No OFD packet to send [00:20:03]accept exits with 9 [00:20:03]New connection [00:20:03]New thread 3066908004 created [00:20:03]Thread 3066764644 joined [00:20:03]Waiting for new connection... [00:20:03] Sock 9.Parse request [00:20:03]Sock 9.Check first char [00:20:03]Sock 9.First char is OK [00:20:03]request: POST /json_proto HTTP/1.0 [00:20:03]Method: POST [00:20:03]URL: /json_proto [00:20:03]Method is POST - this is cgi request [00:20:03]url: /json_proto [00:20:03]query_string will be loaded in cgi processing [00:20:03]execute_cgi json_proto POST (null) [00:20:03]execute_cgi path=json_proto method=POST [00:20:03]POST find Content-Length [00:20:03]Host: 172.17.45.67:8080 [00:20:03]Content-Length: 331 [00:20:03]Content-Type: application/json [00:20:03] [00:20:03]POST finish read [00:20:03]Found Content-Length = 331 [00:20:03]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:20:03]execute_script... [00:20:03]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:20:03]POST & json_proto [00:20:03]process_json_proto [00:20:03]json parsed OK: [00:20:03]protocol is kg_v1.0 [00:20:03]action value=get_value [00:20:03]process_action get_value [00:20:03]cmd_get_value [00:20:03]process_action get_value done [00:20:03]requested_data is exist [00:20:03]produce_requested_data [00:20:03]requested_item fm.sale.total is exist - process it [00:20:03]SAM_PROTO_GetFMData [00:20:03]wFMCommunicate request_size=4 [00:20:03]MH_SAM_APDU [00:20:03]CAPDU: 80 13 03 00 [00:20:03]Write to MH i2c: E2 08 00 79 16 80 13 03 00 00 00 00 00 0E [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:03]Read from MH i2c: E2 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 79 16 00 C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 53 [00:20:03]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:20:03]wFMCommunicate OK [00:20:03]wFMCommunicate request_size=4 [00:20:03]MH_SAM_APDU [00:20:03]CAPDU: 80 17 00 00 [00:20:03]Write to MH i2c: E2 08 00 7A 16 80 17 00 00 00 00 00 00 10 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 7A 16 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 15 [00:20:04]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:20:04]wFMCommunicate OK [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 17 00 00 [00:20:04]Write to MH i2c: E2 08 00 7B 16 80 17 00 00 00 00 00 00 11 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 7B 16 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 26 [00:20:04]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:20:04]wFMCommunicate OK [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 17 00 00 [00:20:04]Write to MH i2c: E2 08 00 7C 16 80 17 00 00 00 00 00 00 12 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 7C 16 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 8A [00:20:04]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:20:05]wFMCommunicate OK [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 17 00 00 [00:20:05]Write to MH i2c: E2 08 00 7D 16 80 17 00 00 00 00 00 00 13 [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 E1 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 E1 00 7D 16 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 01 [00:20:05]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:05]wFMCommunicate OK [00:20:05]SAM_PROTO_GetFMData done [00:20:05]requested_item fm.sale_refund.total is exist - process it [00:20:05]requested_item fm.buy.total is exist - process it [00:20:05]requested_item shift.sale.total is exist - process it [00:20:05]SAM_PROTO_GetShiftData [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 13 02 00 [00:20:05]Write to MH i2c: E2 08 00 7E 16 80 13 02 00 00 00 00 00 12 [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 7E 16 00 B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 23 [00:20:06]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:06]wFMCommunicate OK [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 17 00 00 [00:20:06]Write to MH i2c: E2 08 00 7F 16 80 17 00 00 00 00 00 00 15 [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 FD 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 FD 00 7F 16 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 2E [00:20:06]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:20:06]wFMCommunicate OK [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 17 00 00 [00:20:06]Write to MH i2c: E2 08 00 80 16 80 17 00 00 00 00 00 00 16 [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 FD 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 FD 00 80 16 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 CF [00:20:06]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:20:06]wFMCommunicate OK [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 17 00 00 [00:20:06]Write to MH i2c: E2 08 00 81 16 80 17 00 00 00 00 00 00 17 [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:07]Read from MH i2c: E2 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: E2 FD 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: E2 FD 00 81 16 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 8F [00:20:07]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:20:07]wFMCommunicate OK [00:20:07]wFMCommunicate request_size=4 [00:20:07]MH_SAM_APDU [00:20:07]CAPDU: 80 17 00 00 [00:20:07]Write to MH i2c: E2 08 00 82 16 80 17 00 00 00 00 00 00 18 [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:20:07]Read from MH i2c: E2 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: E2 CE 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: E2 CE 00 82 16 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 FD [00:20:07]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:20:07]wFMCommunicate OK [00:20:07]SAM_PROTO_GetShiftData done [00:20:07]requested_item shift.sale.total_cash is exist - process it [00:20:07]requested_item shift.sale_refund.total is exist - process it [00:20:07]requested_item shift.sale_refund.total_cash is exist - process it [00:20:07]requested_item shift.buy.total is exist - process it [00:20:07]requested_item shift.buy.total_cash is exist - process it [00:20:07]produce_requested_data done [00:20:07]produce_requested_data return {"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.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:20:07]process_action_free get_value [00:20:07]json_value_free [00:20:07]json_value_free done [00:20:07]process_json_proto returns [00:20:07]Send response to host [00:20:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.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:20:07]free response buf [00:20:07]execute_script done [00:20:07]execute_script returns [00:20:07]free content buf [00:20:07]Sock 9.Close socket [00:20:07]Sock 9.Thread stoped [00:20:07]accept exits with 7 [00:20:07]New connection [00:20:07]New thread 3066764644 created [00:20:07]Thread 3066908004 joined [00:20:07]Waiting for new connection... [00:20:07] Sock 7.Parse request [00:20:07]Sock 7.Check first char [00:20:07]Sock 7.First char is OK [00:20:07]request: POST /json_proto HTTP/1.0 [00:20:07]Method: POST [00:20:07]URL: /json_proto [00:20:07]Method is POST - this is cgi request [00:20:07]url: /json_proto [00:20:07]query_string will be loaded in cgi processing [00:20:07]execute_cgi json_proto POST (null) [00:20:07]execute_cgi path=json_proto method=POST [00:20:07]POST find Content-Length [00:20:07]Host: 172.17.45.67:8080 [00:20:07]Content-Length: 254 [00:20:07]Content-Type: application/json [00:20:07] [00:20:07]POST finish read [00:20:07]Found Content-Length = 254 [00:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 3 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:07]execute_script... [00:20:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 3 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:07]POST & json_proto [00:20:07]process_json_proto [00:20:07]json parsed OK: [00:20:07]protocol is kg_v1.0 [00:20:07]action value=close_shift [00:20:07]process_action close_shift [00:20:07]cmd_close_shift [00:20:07]MH_GetDate [00:20:07]Write to MH i2c: F0 00 00 83 16 88 [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: F0 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: F0 09 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: F0 09 00 83 16 00 B8 32 C5 66 5F 7F 2B 66 15 [00:20:07]GetLastDocTimeStamp 1724199549 [00:20:07]current date 1724199608 [00:20:07]FM_GetShiftState [00:20:07]SAM_PROTO_GetShiftState [00:20:07]wFMCommunicate request_size=4 [00:20:07]MH_SAM_APDU [00:20:07]CAPDU: 80 13 01 00 [00:20:07]Write to MH i2c: E2 08 00 84 16 80 13 01 00 00 00 00 00 17 [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:07]Read from MH i2c: E2 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: E2 0E 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: E2 0E 00 84 16 00 09 00 01 79 E3 C3 66 00 00 00 00 90 00 A8 [00:20:07]RAPDU: 09 00 01 79 E3 C3 66 00 00 00 00 90 00 [00:20:07]wFMCommunicate OK [00:20:07]SAM_PROTO_GetShiftState done [00:20:07]FM_GetShiftState done [00:20:07]KKMCreateCloseShiftDocument [00:20:07]Load OK [00:20:07]Malloc new data [00:20:07]MH_GetDate [00:20:07]Write to MH i2c: F0 00 00 85 16 8A [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: F0 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: F0 09 00 [00:20:07]MH_I2C_Read... [00:20:07]Read from MH i2c: F0 09 00 85 16 00 B8 32 C5 66 5F 7F 2B 66 17 [00:20:07]Malloc new data [00:20:07]Malloc new data [00:20:07]Malloc new data [00:20:07]Malloc new data [00:20:07]KKMCreateCloseShiftDocument OK [00:20:07]KKMSetCloseShiftData OK [00:20:07]ProcessDocumentItem done err = 0, tmpTLVsize=69 [00:20:07]tlvbuf is 00B3DB50 [00:20:07]KKMLoadAndSignCloseShiftData [00:20:07]SAM_PROTO_ProcessDocument [00:20:07]wFMCommunicate request_size=9 [00:20:07]MH_SAM_APDU [00:20:07]CAPDU: 80 15 01 00 04 05 00 45 00 [00:20:07]Write to MH i2c: E2 0C 00 86 16 80 15 01 00 04 00 05 00 45 00 00 00 6D [00:20:07]Write i2c OK [00:20:07]MH_I2C_Read... [00:20:08]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 86 16 00 90 00 10 [00:20:08]RAPDU: 90 00 [00:20:08]wFMCommunicate OK [00:20:08]wFMCommunicate request_size=23 [00:20:08]MH_SAM_APDU [00:20:08]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:20:08]Write to MH i2c: E2 1A 00 87 16 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 12 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 87 16 00 90 00 11 [00:20:08]RAPDU: 90 00 [00:20:08]wFMCommunicate OK [00:20:08]wFMCommunicate request_size=28 [00:20:08]MH_SAM_APDU [00:20:08]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 [00:20:08]Write to MH i2c: E2 1F 00 88 16 80 15 02 00 17 00 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 00 00 57 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 88 16 00 90 00 12 [00:20:08]RAPDU: 90 00 [00:20:08]wFMCommunicate OK [00:20:08]wFMCommunicate request_size=13 [00:20:08]MH_SAM_APDU [00:20:08]CAPDU: 80 15 02 00 08 F4 03 04 00 B8 32 C5 66 [00:20:08]Write to MH i2c: E2 10 00 89 16 80 15 02 00 08 00 F4 03 04 00 B8 32 C5 66 00 00 3F [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 89 16 00 90 00 13 [00:20:08]RAPDU: 90 00 [00:20:08]wFMCommunicate OK [00:20:08]wFMCommunicate request_size=25 [00:20:08]MH_SAM_APDU [00:20:08]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 [00:20:08]Write to MH i2c: E2 1C 00 8A 16 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 00 00 88 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]OFD Sender: No OFD packet to send [00:20:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 03 00 8A 16 00 90 00 14 [00:20:08]RAPDU: 90 00 [00:20:08]wFMCommunicate OK [00:20:08]wFMCommunicate request_size=4 [00:20:08]MH_SAM_APDU [00:20:08]CAPDU: 80 15 03 00 [00:20:08]Write to MH i2c: E2 08 00 8B 16 80 15 03 00 00 00 00 00 22 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 FD 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 FD 00 8B 16 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 22 02 00 0E 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 10 [00:20:09]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 22 02 00 0E 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20:09]wFMCommunicate OK [00:20:09]SAM_PROTO_ProcessDocument answer len = 1268 [00:20:09]SAM_PROTO_ProcessDocument remain to read = 1020 [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 17 00 00 [00:20:09]Write to MH i2c: E2 08 00 8C 16 80 17 00 00 00 00 00 00 22 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 FD 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 FD 00 8C 16 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 76 [00:20:09]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:20:09]wFMCommunicate OK [00:20:09]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:09]SAM_PROTO_ProcessDocument remain to read = 770 [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 17 00 00 [00:20:09]Write to MH i2c: E2 08 00 8D 16 80 17 00 00 00 00 00 00 23 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 FD 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 FD 00 8D 16 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 85 [00:20:10]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:20:10]wFMCommunicate OK [00:20:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:10]SAM_PROTO_ProcessDocument remain to read = 520 [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 17 00 00 [00:20:10]Write to MH i2c: E2 08 00 8E 16 80 17 00 00 00 00 00 00 24 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 FD 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 FD 00 8E 16 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 AC [00:20:10]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:20:10]wFMCommunicate OK [00:20:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:10]SAM_PROTO_ProcessDocument remain to read = 270 [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 17 00 00 [00:20:10]Write to MH i2c: E2 08 00 8F 16 80 17 00 00 00 00 00 00 25 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 FD 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 FD 00 8F 16 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 EF [00:20:11]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:20:11]wFMCommunicate OK [00:20:11]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:11]SAM_PROTO_ProcessDocument remain to read = 20 [00:20:11]wFMCommunicate request_size=4 [00:20:11]MH_SAM_APDU [00:20:11]CAPDU: 80 17 00 00 [00:20:11]Write to MH i2c: E2 08 00 90 16 80 17 00 00 00 00 00 00 26 [00:20:11]Write i2c OK [00:20:11]MH_I2C_Read... [00:20:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:20:11]Read from MH i2c: E2 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 17 00 [00:20:11]MH_I2C_Read... [00:20:11]Read from MH i2c: E2 17 00 90 16 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 08 34 4E 20 B5 A9 90 00 6F [00:20:11]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 08 34 4E 20 B5 A9 90 00 [00:20:11]wFMCommunicate OK [00:20:11]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:20:11]SAM_PROTO_ProcessDocument done [00:20:11]1209 (1) - 1.0 - номер версии ФФД [00:20:11]1041 (16) - 0000000000871776 - номер ФМ [00:20:11]1040 (4) - 139982 - номер ФД [00:20:11]1038 (4) - 453 - номер смены [00:20:11]1118 (4) - 453 - количество кассовых чеков за смену [00:20:11]1111 (4) - 455 - общее количество ФД за смену [00:20:11]1194 (1197) - счетчики итогов смены [00:20:11] 1134 (4) - 453 - количество чеков со всеми признаками расчетов [00:20:11] 1129 (158) - счетчики операций «приход» [00:20:11] 1135 (4) - 453 - количество чеков по признаку расчетов [00:20:11] 1201 (4) - 322960.00 - общая итоговая сумма в чеках [00:20:11] 1136 (4) - 305068.00 - итоговая сумма в чеках наличными [00:20:11] 1138 (3) - 17892.00 - итоговая сумма в чеках безналичными [00:20:11] 1024 (123) - суммы налогов [00:20:11] 1006 (9) - суммы НДС [00:20:11] 1010 (1) - 0% - код ставки НДС [00:20:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:11] 1006 (12) - суммы НДС [00:20:11] 1010 (1) - 12% - код ставки НДС [00:20:11] 1011 (3) - 34308.99 - сумма НДС по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 0% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (12) - суммы НСП [00:20:11] 1014 (1) - 1% - код ставки НСП [00:20:11] 1015 (3) - 2859.16 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 2% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 3% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 5% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 0,50% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 1,50% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1130 (141) - счетчики операций «возврат прихода» [00:20:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:11] 1024 (117) - суммы налогов [00:20:11] 1006 (9) - суммы НДС [00:20:11] 1010 (1) - 0% - код ставки НДС [00:20:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:11] 1006 (9) - суммы НДС [00:20:11] 1010 (1) - 12% - код ставки НДС [00:20:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 0% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 1% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 2% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 3% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 5% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 0,50% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 1,50% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1131 (141) - счетчики операций «расход» [00:20:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:11] 1024 (117) - суммы налогов [00:20:11] 1006 (9) - суммы НДС [00:20:11] 1010 (1) - 0% - код ставки НДС [00:20:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:11] 1006 (9) - суммы НДС [00:20:11] 1010 (1) - 12% - код ставки НДС [00:20:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 0% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 1% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 2% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 3% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 5% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 0,50% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 1,50% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1132 (141) - счетчики операций «возврат расхода» [00:20:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:11] 1024 (117) - суммы налогов [00:20:11] 1006 (9) - суммы НДС [00:20:11] 1010 (1) - 0% - код ставки НДС [00:20:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:11] 1006 (9) - суммы НДС [00:20:11] 1010 (1) - 12% - код ставки НДС [00:20:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 0% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 1% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 2% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 3% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 5% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 0,50% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1007 (9) - суммы НСП [00:20:11] 1014 (1) - 1,50% - код ставки НСП [00:20:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:11] 1133 (588) - - счетчики коррекции - не используются [00:20:11]1077 (6) - 9020742088105 - ФПД [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1209 (04B9) [00:20:11]Malloc new data [00:20:11]Processing tag 1041 (0411) [00:20:11]Processing tag 1040 (0410) [00:20:11]Malloc new data [00:20:11]Processing tag 1038 (040E) [00:20:11]Malloc new data [00:20:11]Processing tag 1118 (045E) [00:20:11]Malloc new data [00:20:11]Processing tag 1111 (0457) [00:20:11]Malloc new data [00:20:11]Processing tag 1194 (04AA) [00:20:11]Load OK [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1134 (046E) [00:20:11]Malloc new data [00:20:11]Processing tag 1129 (0469) [00:20:11]Load OK [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1135 (046F) [00:20:11]Malloc new data [00:20:11]Processing tag 1201 (04B1) [00:20:11]Malloc new data [00:20:11]Processing tag 1136 (0470) [00:20:11]Malloc new data [00:20:11]Processing tag 1138 (0472) [00:20:11]Malloc new data [00:20:11]Processing tag 1024 (0400) [00:20:11]Load OK [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1006 (03EE) [00:20:11]Load OK [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1010 (03F2) [00:20:11]Malloc new data [00:20:11]Processing tag 1011 (03F3) [00:20:11]Malloc new data [00:20:11]SetTLVBufToDocument err=0 [00:20:11]Processing tag 1006 (03EE) [00:20:11]Load OK [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1010 (03F2) [00:20:11]Malloc new data [00:20:11]Processing tag 1011 (03F3) [00:20:11]Malloc new data [00:20:11]SetTLVBufToDocument err=0 [00:20:11]Processing tag 1007 (03EF) [00:20:11]Load OK [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1014 (03F6) [00:20:11]Malloc new data [00:20:11]Processing tag 1015 (03F7) [00:20:11]Malloc new data [00:20:11]SetTLVBufToDocument err=0 [00:20:11]Processing tag 1007 (03EF) [00:20:11]Load OK [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1014 (03F6) [00:20:11]Malloc new data [00:20:11]Processing tag 1015 (03F7) [00:20:11]Malloc new data [00:20:11]SetTLVBufToDocument err=0 [00:20:11]Processing tag 1007 (03EF) [00:20:11]Load OK [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1014 (03F6) [00:20:11]Malloc new data [00:20:11]Processing tag 1015 (03F7) [00:20:11]Malloc new data [00:20:11]SetTLVBufToDocument err=0 [00:20:11]Processing tag 1007 (03EF) [00:20:11]Load OK [00:20:11]SetTLVBufToDocument [00:20:11]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]SetTLVBufToDocument err=0 [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1130 (046A) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1135 (046F) [00:20:12]Malloc new data [00:20:12]Processing tag 1201 (04B1) [00:20:12]Malloc new data [00:20:12]Processing tag 1136 (0470) [00:20:12]Malloc new data [00:20:12]Processing tag 1138 (0472) [00:20:12]Malloc new data [00:20:12]Processing tag 1024 (0400) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1006 (03EE) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1010 (03F2) [00:20:12]Malloc new data [00:20:12]Processing tag 1011 (03F3) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1006 (03EE) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1010 (03F2) [00:20:12]Malloc new data [00:20:12]Processing tag 1011 (03F3) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]SetTLVBufToDocument err=0 [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1131 (046B) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1135 (046F) [00:20:12]Malloc new data [00:20:12]Processing tag 1201 (04B1) [00:20:12]Malloc new data [00:20:12]Processing tag 1136 (0470) [00:20:12]Malloc new data [00:20:12]Processing tag 1138 (0472) [00:20:12]Malloc new data [00:20:12]Processing tag 1024 (0400) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1006 (03EE) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1010 (03F2) [00:20:12]Malloc new data [00:20:12]Processing tag 1011 (03F3) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1006 (03EE) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1010 (03F2) [00:20:12]Malloc new data [00:20:12]Processing tag 1011 (03F3) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]SetTLVBufToDocument err=0 [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1132 (046C) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1135 (046F) [00:20:12]Malloc new data [00:20:12]Processing tag 1201 (04B1) [00:20:12]Malloc new data [00:20:12]Processing tag 1136 (0470) [00:20:12]Malloc new data [00:20:12]Processing tag 1138 (0472) [00:20:12]Malloc new data [00:20:12]Processing tag 1024 (0400) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1006 (03EE) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1010 (03F2) [00:20:12]Malloc new data [00:20:12]Processing tag 1011 (03F3) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1006 (03EE) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1010 (03F2) [00:20:12]Malloc new data [00:20:12]Processing tag 1011 (03F3) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1007 (03EF) [00:20:12]Load OK [00:20:12]SetTLVBufToDocument [00:20:12]Processing tag 1014 (03F6) [00:20:12]Malloc new data [00:20:12]Processing tag 1015 (03F7) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]SetTLVBufToDocument err=0 [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1133 (046D) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Processing tag 1077 (0435) [00:20:12]Malloc new data [00:20:12]SetTLVBufToDocument err=0 [00:20:12]Malloc new data [00:20:12]SAM_PROTO_GetFMData [00:20:12]wFMCommunicate request_size=4 [00:20:12]MH_SAM_APDU [00:20:12]CAPDU: 80 13 03 00 [00:20:12]Write to MH i2c: E2 08 00 91 16 80 13 03 00 00 00 00 00 26 [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:12]Read from MH i2c: E2 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 FD 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: E2 FD 00 91 16 00 C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 6B [00:20:13]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:20:13]wFMCommunicate OK [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 17 00 00 [00:20:13]Write to MH i2c: E2 08 00 92 16 80 17 00 00 00 00 00 00 28 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]OFD Sender: No OFD packet to send [00:20:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 FD 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 FD 00 92 16 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 2D [00:20:13]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:20:13]wFMCommunicate OK [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 17 00 00 [00:20:13]Write to MH i2c: E2 08 00 93 16 80 17 00 00 00 00 00 00 29 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 FD 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 FD 00 93 16 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 3E [00:20:14]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=4 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 17 00 00 [00:20:14]Write to MH i2c: E2 08 00 94 16 80 17 00 00 00 00 00 00 2A [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 FD 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 FD 00 94 16 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 A2 [00:20:14]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=4 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 17 00 00 [00:20:14]Write to MH i2c: E2 08 00 95 16 80 17 00 00 00 00 00 00 2B [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 E1 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 E1 00 95 16 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 19 [00:20:15]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:15]wFMCommunicate OK [00:20:15]SAM_PROTO_GetFMData done [00:20:15]Malloc new data [00:20:15]Malloc new data [00:20:15]Malloc new data [00:20:15]Malloc new data [00:20:15]KKMLoadAndSignCloseShiftData err=0 [00:20:15]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Оператор 3 21.08.2024 00:20 Смена: 453 РНМ: 0000000000092569 ЗНМ: 0300000067 СНО: Общий режим Чеков за смену: 453 ФД за смену: 455 Всего чеков: 453 ИТОГИ ПРИХОД Чеков: 453 Общий итог: 322960.00 Итого наличными: 305068.00 Итого безнал.: 17892.00 НДС 0% : 0.00 НДС 12% : 34308.99 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2859.16 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 305068.00 НС Приход: 95999910.71 НС Возвр.Прихода: 333741.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 139982 ФМ: 0000000000871776 ФПД: 9020742088105 [00:20:15]StoreToDocumentArchive [00:20:15]shift 453 fd 139982 [00:20:15]save to /storage/0453/doc_00139982 [00:20:15]save last doc name /storage/0453/doc_00139982 to /storage/kkm_last_doc_name [00:20:15]save OK [00:20:15]Clear old archive folders... [00:20:15]Remove dir /storage/0266 [00:20:15]opendir ok [00:20:15]file . [00:20:15]file .. [00:20:15]file doc_1724199557 [00:20:15]remove file /storage/0266/doc_1724199557 [00:20:15]remove dir /storage/0266 [00:20:15]NVStorageSaveData kkm_registers [00:20:15]File name is /storage/kkm_registers [00:20:15]Write 24 bytes [00:20:15]NVStorageSaveData done [00:20:15]NVStorageSaveData kkm_registers [00:20:15]File name is /storage/kkm_registers [00:20:15]Write 24 bytes [00:20:15]NVStorageSaveData done [00:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=1380 [00:20:15]tlvbuf is 00AD5CE0 [00:20:15]SAM_PROTO_ClearQueue [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 09 00 00 [00:20:15]Write to MH i2c: E2 08 00 96 16 80 09 00 00 00 00 00 00 1E [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 96 16 00 90 00 20 [00:20:15]RAPDU: 90 00 [00:20:15]wFMCommunicate OK [00:20:15]SAM_PROTO_ClearQueue done [00:20:15]KKMCreateOFDPacket [00:20:15]OFDProtocolAddRootSTLVToBuf [00:20:15]FM_MakeSignedData [00:20:15]FM_MakeSignedData [00:20:15]SAM_PROTO_SignData [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 0D 01 02 [00:20:15]Write to MH i2c: E2 08 00 97 16 80 0D 01 02 00 00 00 00 26 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 97 16 00 90 00 21 [00:20:15]RAPDU: 90 00 [00:20:15]wFMCommunicate OK [00:20:15]wFMCommunicate request_size=255 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 0D 02 02 FA 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 F4 03 04 00 B8 32 C5 66 0E 04 04 00 C5 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 D8 04 6E 04 04 00 C5 01 00 00 69 04 A5 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 [00:20:15]Write to MH i2c: E2 02 01 98 16 80 0D 02 02 FA 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 F4 03 04 00 B8 32 C5 66 0E 04 04 00 C5 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 D8 04 6E 04 04 00 C5 01 00 00 69 04 A5 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 00 00 F7 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:16]Read from MH i2c: E2 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 03 00 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 03 00 98 16 00 90 00 22 [00:20:16]RAPDU: 90 00 [00:20:16]wFMCommunicate OK [00:20:16]wFMCommunicate request_size=255 [00:20:16]MH_SAM_APDU [00:20:16]CAPDU: 80 0D 02 02 FA 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 DC 5C 04 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 [00:20:16]Write to MH i2c: E2 02 01 99 16 80 0D 02 02 FA 00 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 DC 5C 04 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 00 00 C6 [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:16]Read from MH i2c: E2 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 03 00 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [00:20:16]RAPDU: 90 00 [00:20:16]wFMCommunicate OK [00:20:16]wFMCommunicate request_size=255 [00:20:16]MH_SAM_APDU [00:20:16]CAPDU: 80 0D 02 02 FA 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 [00:20:16]Write to MH i2c: E2 02 01 9A 16 80 0D 02 02 FA 00 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 00 00 F9 [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 03 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [00:20:17]RAPDU: 90 00 [00:20:17]wFMCommunicate OK [00:20:17]wFMCommunicate request_size=255 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 0D 02 02 FA 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 [00:20:17]Write to MH i2c: E2 02 01 9B 16 80 0D 02 02 FA 00 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 00 00 FA [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 03 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [00:20:17]RAPDU: 90 00 [00:20:17]wFMCommunicate OK [00:20:17]wFMCommunicate request_size=255 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:20:18]Write to MH i2c: E2 02 01 9C 16 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 B5 [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]OFD Sender: No OFD packet to send [00:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 03 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 03 00 9C 16 00 90 00 26 [00:20:18]RAPDU: 90 00 [00:20:18]wFMCommunicate OK [00:20:18]wFMCommunicate request_size=139 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 0D 02 02 86 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 08 34 4E 20 B5 A9 [00:20:18]Write to MH i2c: E2 8E 00 9D 16 80 0D 02 02 86 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 08 34 4E 20 B5 A9 00 00 68 [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 03 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 03 00 9D 16 00 90 00 27 [00:20:18]RAPDU: 90 00 [00:20:18]wFMCommunicate OK [00:20:18]wFMCommunicate request_size=4 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 0D 03 02 [00:20:18]Write to MH i2c: E2 08 00 9E 16 80 0D 03 02 00 00 00 00 2F [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 0B 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 0B 00 9E 16 00 A3 24 B8 FF 7C 68 5D BB 90 00 AA [00:20:19]RAPDU: A3 24 B8 FF 7C 68 5D BB 90 00 [00:20:19]wFMCommunicate OK [00:20:19]SAM_PROTO_SignData done [00:20:19]FM_MakeSignedData done [00:20:19]CreateOFDProtocolMessage [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 11 00 00 [00:20:19]Write to MH i2c: E2 08 00 9F 16 80 11 00 00 00 00 00 00 2F [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 17 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 17 00 9F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [00:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:20:19]wFMCommunicate OK [00:20:19]CreateOFDProtocolMessage done [00:20:19]OFDSenderStorePacket 139982 [00:20:19]StoreOFDPacket docnum=139982 [00:20:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 78 05 00 00 D6 25 70 05 3B CD 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 F4 03 04 00 B8 32 C5 66 0E 04 04 00 C5 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 D8 04 6E 04 04 00 C5 01 00 00 69 04 A5 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 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 CE 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 08 34 4E 20 B5 A9 A3 24 B8 FF 7C 68 5D BB [00:20:19]CheckFolder [00:20:19]dirname=/storage/ofd_packets [00:20:19]CheckFolder done [00:20:19]ProducePacketName [00:20:19]name=ofd_packets/00139982 [00:20:19]NVStorageSaveData ofd_packets/00139982 [00:20:19]File name is /storage/ofd_packets/00139982 [00:20:19]Write 1430 bytes [00:20:19]NVStorageSaveData done [00:20:19]OFDSenderStorePacket done [00:20:19]KKMCreateOFDPacket done [00:20:19]NVStorageSaveData kkm_last_timestamp [00:20:19]File name is /storage/kkm_last_timestamp [00:20:19]Write 4 bytes [00:20:19]NVStorageSaveData done [00:20:19]ExternCall_PrintAddStr [00:20:19]wPrintStart [00:20:19]Write to MH i2c: 01 00 00 A0 16 B6 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: 01 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: 01 07 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: 01 07 00 A0 16 00 00 00 00 00 FF 0F CB [00:20:19]RasterBufferAndPrint [00:20:19]line Отчет о закрытии смены [00:20:19]line ФФД: 1.0 [00:20:19]line ИНН: 02508201610067 [00:20:19]line Кассир: Оператор 3 [00:20:19]line 21.08.2024 00:20 [00:20:19]line Смена: 453 [00:20:19]line РНМ: 0000000000092569 [00:20:19]line ЗНМ: 0300000067 [00:20:19]line СНО: Общий режим [00:20:19]line Чеков за смену: 453 [00:20:19]line ФД за смену: 455 [00:20:19]line Всего чеков: 453 [00:20:19]line ИТОГИ ПРИХОД [00:20:19]line Чеков: 453 [00:20:19]line Общий итог: 322960.00 [00:20:19]line Итого наличными: 305068.00 [00:20:19]line Итого безнал.: 17892.00 [00:20:19]line НДС 0% : 0.00 [00:20:19]line НДС 12% : 34308.99 [00:20:19]line НСП 0% : 0.00 [00:20:19]line НСП 1,50% : 0.00 [00:20:19]line НСП 0,50% : 0.00 [00:20:19]line НСП 5% : 0.00 [00:20:19]line НСП 3% : 0.00 [00:20:19]line НСП 2% : 0.00 [00:20:19]line НСП 1% : 2859.16 [00:20:19]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:20:19]line Чеков: 0 [00:20:19]line Общий итог: 0.00 [00:20:19]line Итого наличными: 0.00 [00:20:19]line Итого безнал.: 0.00 [00:20:19]line НДС 0% : 0.00 [00:20:19]line НДС 12% : 0.00 [00:20:19]line НСП 0% : 0.00 [00:20:19]line НСП 1,50% : 0.00 [00:20:19]line НСП 0,50% : 0.00 [00:20:19]line НСП 5% : 0.00 [00:20:19]line НСП 3% : 0.00 [00:20:19]line НСП 2% : 0.00 [00:20:19]line НСП 1% : 0.00 [00:20:19]line ИТОГИ РАСХОД [00:20:19]line Чеков: 0 [00:20:19]line Общий итог: 0.00 [00:20:19]line Итого наличными: 0.00 [00:20:19]line Итого безнал.: 0.00 [00:20:19]line НДС 0% : 0.00 [00:20:19]line НДС 12% : 0.00 [00:20:19]line НСП 0% : 0.00 [00:20:19]line НСП 1,50% : 0.00 [00:20:19]line НСП 0,50% : 0.00 [00:20:19]line НСП 5% : 0.00 [00:20:19]line НСП 3% : 0.00 [00:20:19]line НСП 2% : 0.00 [00:20:19]line НСП 1% : 0.00 [00:20:19]line ИТОГИ ВОЗВРАТ РАСХОДА [00:20:19]line Чеков: 0 [00:20:19]line Общий итог: 0.00 [00:20:19]line Итого наличными: 0.00 [00:20:19]line Итого безнал.: 0.00 [00:20:19]line НДС 0% : 0.00 [00:20:19]line НДС 12% : 0.00 [00:20:19]line НСП 0% : 0.00 [00:20:19]line НСП 1,50% : 0.00 [00:20:19]line НСП 0,50% : 0.00 [00:20:19]line НСП 5% : 0.00 [00:20:19]line НСП 3% : 0.00 [00:20:19]line НСП 2% : 0.00 [00:20:19]line НСП 1% : 0.00 [00:20:19]line Сумма внесений: 0.00 [00:20:19]line Сумма выплат: 0.00 [00:20:19]line Нал. в кассе: 305068.00 [00:20:19]line НС Приход: 95999910.71 [00:20:19]line НС Возвр.Прихода: 333741.00 [00:20:19]line НС Расход: 0.00 [00:20:19]line НС Возвр.Расхода: 0.00 [00:20:19]line ФД: 139982 [00:20:19]line ФМ: 0000000000871776 [00:20:19]line ФПД: 9020742088105 [00:20:19]OFD Sender: Processing packet 139982 [packets to send 137, broken 136] [00:20:19]ProducePacketName [00:20:19]name=ofd_packets/00139982 [00:20:19]OFD Sender: To server: pG, [00:20:19]CommunicateWithHost lk.salyk.kg:30040 [00:20:19]ConnectInit lk.salyk.kg [00:20:19]written 0, free lines is 4095 [00:20:19]Connected sock=10 [00:20:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 78 05 00 00 D6 25 70 05 3B CD 5A 05 01 00 05 00 64 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 33 20 F4 03 04 00 B8 32 C5 66 0E 04 04 00 C5 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 AA 04 D8 04 6E 04 04 00 C5 01 00 00 69 04 A5 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 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 Write to MH i2c: 00 01 EE 00 03 00 09 F0 00 16 F2 06 03 [00:20:20]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 Write i2c OK [00:20:20]01 MH_I2C_Read... [00:20:20]F3 Read from MH i2c: 03 01 00 [00:20:20]00 MH_I2C_Read... [00:20:20]EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 01 03 07 01 00 00 [00:20:20]01 MH_I2C_Read... [00:20:20]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 Read from MH i2c: EF 01 03 07 09 00 00 F0 F6 16 03 00 01 00 00 00 03 00 F7 00 03 14 00 0B 00 2C EF [00:20:20]03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 RasterBufferAndPrint [00:20:20]03 line [00:20:20]01 line [00:20:20]00 line [00:20:20]06 line [00:20:20]F7 line [00:20:20]03 00 written 0, free lines is 2996 [00:20:20]00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 MH_Cut [00:20:20]00 Write to MH i2c: 00 D1 70 01 04 00 00 F7 00 16 72 01 04 DF 00 [00:20:20]00 00 Write i2c OK [00:20:20]04 MH_I2C_Read... [00:20:20]75 00 EE 03 09 00 F2 03 01 00 00 F3 03 Read from MH i2c: 00 D1 00 [00:20:20]EE MH_I2C_Read... [00:20:20]03 Read from MH i2c: 09 D1 00 01 F2 00 03 [00:20:20]01 MH_I2C_Read... [00:20:20]00 01 F3 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 01 03 00 01 F7 16 00 00 00 DE F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 [00:20:20]00 Write to MH i2c: 00 01 EF 00 03 00 09 F8 00 16 F6 0E 03 [00:20:20]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [00:20:20]01 MH_I2C_Read... [00:20:20]00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 08 34 4E 20 B5 A9 A3 24 B8 FF 7C 68 5D BB [00:20:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 94 96 47 00 19 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 22 02 00 F4 03 04 00 56 D9 C4 66 B6 04 01 00 00 BA E9 *** Cut start [00:20:21]A7 DE B9 8C F3 30 [00:20:21]CommunicateWithHost err = 0 [00:20:21]CheckOFDResponse [00:20:21]*** Partial cut [00:20:21]1017 (14) - 77093643461234 [00:20:21]*** CUTSNS_PIN = 1 [00:20:21]1041 (16) - 0000000000871776 [00:20:21]*** CUTSNS_PIN = 0 [00:20:21]1040 (4) - 139982 [00:20:21]1012 (4) - 20.08.2024 17:58 [00:20:21]1206 (1) - 0 [00:20:21]OFD Sender: Remove packet 139982 [00:20:21]ProducePacketName [00:20:21]name=ofd_packets/00139982 [00:20:21]NVStorageDeleteData [00:20:21]*** Brake cut motor [00:20:22]Read from MH i2c: 01 [00:20:22]MH_I2C_Read... [00:20:22]*** Stop cut motor [00:20:22]*** Cut end [00:20:22]Read from MH i2c: 01 07 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: 01 07 00 F8 16 00 00 00 00 00 FF 0F 23 [00:20:22]process_action close_shift done [00:20:22]requested_data is exist [00:20:22]produce_requested_data [00:20:22]requested_item fd.num is exist - process it [00:20:22]SAM_PROTO_GetFieldsCounters [00:20:22]wFMCommunicate request_size=4 [00:20:22]MH_SAM_APDU [00:20:22]CAPDU: 80 13 00 00 [00:20:22]Write to MH i2c: E2 08 00 F9 16 80 13 00 00 00 00 00 00 8B [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]OFD Sender: No OFD packet to send [00:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 62 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 62 00 F9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [00:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:22]wFMCommunicate OK [00:20:22]SAM_PROTO_GetFieldsCounters done [00:20:22]requested_item shift.num is exist - process it [00:20:22]requested_item shift.opened is exist - process it [00:20:22]req_shift_opened [00:20:22]FM_GetShiftState [00:20:22]SAM_PROTO_GetShiftState [00:20:22]wFMCommunicate request_size=4 [00:20:22]MH_SAM_APDU [00:20:22]CAPDU: 80 13 01 00 [00:20:22]Write to MH i2c: E2 08 00 FA 16 80 13 01 00 00 00 00 00 8D [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 0E 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 0E 00 FA 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 98 [00:20:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:22]wFMCommunicate OK [00:20:22]SAM_PROTO_GetShiftState done [00:20:22]FM_GetShiftState done [00:20:22]req_shift_opened done [00:20:22]requested_item shift.open_date is exist - process it [00:20:22]req_shift_open_date [00:20:22]FM_GetShiftState [00:20:22]SAM_PROTO_GetShiftState [00:20:22]wFMCommunicate request_size=4 [00:20:22]MH_SAM_APDU [00:20:22]CAPDU: 80 13 01 00 [00:20:22]Write to MH i2c: E2 08 00 FB 16 80 13 01 00 00 00 00 00 8E [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 0E 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 0E 00 FB 16 00 09 00 00 00 00 00 00 00 00 00 00 90 00 99 [00:20:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:20:22]wFMCommunicate OK [00:20:22]SAM_PROTO_GetShiftState done [00:20:22]FM_GetShiftState done [00:20:22]req_shift_open_date done [00:20:22]produce_requested_data done [00:20:22]produce_requested_data return {"fd.num":139982,"shift.num":453,"shift.opened":0,"shift.open_date":0} [00:20:22]process_action_free close_shift [00:20:22]json_value_free [00:20:22]json_value_free done [00:20:22]process_json_proto returns [00:20:22]Send response to host [00:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139982,"shift.num":453,"shift.opened":0,"shift.open_date":0}}} [00:20:22]free response buf [00:20:22]execute_script done [00:20:22]execute_script returns [00:20:22]free content buf [00:20:22]Sock 7.Close socket [00:20:22]Sock 7.Thread stoped [00:20:27]OFD Sender: No OFD packet to send [00:20:28]int [00:20:28]Write to MH i2c: 01 00 00 FC 16 12 [00:20:28]*** FLAG_PRN_KEY set [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 07 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 07 00 FC 16 00 08 00 00 00 FF 0F 2F [00:20:28]state=0 [00:20:28]Key pressed [00:20:28]Feed [00:20:28]Write to MH i2c: D8 00 00 FD 16 EA [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: D8 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: D8 01 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: D8 01 00 FD 16 00 EB [00:20:28]int line is 0 - check status [00:20:28]Write to MH i2c: 01 00 00 FE 16 14 [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 07 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 07 00 FE 16 00 48 00 00 00 3C 00 9F [00:20:28]state=2 [00:20:28]Key pressed [00:20:28]int [00:20:28]Write to MH i2c: 01 00 00 FF 16 15 [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 07 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 07 00 FF 16 00 48 00 00 00 3C 00 A0 [00:20:28]state=2 [00:20:28]Key pressed [00:20:28]int [00:20:28]Write to MH i2c: 01 00 00 00 17 17 [00:20:28]*** FLAG_PRN_KEY reset [00:20:28]Write i2c OK [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 07 00 [00:20:28]MH_I2C_Read... [00:20:28]Read from MH i2c: 01 07 00 00 17 00 00 00 00 00 FE 0F 2B [00:20:28]state=2 [00:20:28]Stop feed [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:22]accept exits with 9 [00:34:22]New connection [00:34:22]New thread 3066908004 created [00:34:22]Thread 3066764644 joined [00:34:22]Waiting for new connection... [00:34:22] Sock 9.Parse request [00:34:22]Sock 9.Check first char [00:34:22]Sock 9.First char is OK [00:34:22]request: POST /json_proto HTTP/1.0 [00:34:22]Method: POST [00:34:22]URL: /json_proto [00:34:22]Method is POST - this is cgi request [00:34:22]url: /json_proto [00:34:22]query_string will be loaded in cgi processing [00:34:22]execute_cgi json_proto POST (null) [00:34:22]execute_cgi path=json_proto method=POST [00:34:22]POST find Content-Length [00:34:22]Host: 172.17.45.67:8080 [00:34:22]Content-Length: 215 [00:34:22]Content-Type: application/json [00:34:22] [00:34:22]POST finish read [00:34:22]Found Content-Length = 215 [00:34:22]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:34:22]execute_script... [00:34:22]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:34:22]POST & json_proto [00:34:22]process_json_proto [00:34:22]json parsed OK: [00:34:22]protocol is kg_v1.0 [00:34:22]action value=get_value [00:34:22]process_action get_value [00:34:22]cmd_get_value [00:34:22]process_action get_value done [00:34:22]requested_data is exist [00:34:22]produce_requested_data [00:34:22]requested_item kkm.sn is exist - process it [00:34:22]requested_item kkm.ver is exist - process it [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 01 17 80 11 00 00 00 00 00 00 92 [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 01 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E9 [00:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 02 17 80 13 00 00 00 00 00 00 95 [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 02 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [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 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 22 02 00 0E 04 04 00 C5 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C7 01 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 03 17 80 13 01 00 00 00 00 00 97 [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 03 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A2 [00:34:22]RAPDU: 09 00 00 00 00 00 00 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]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 04 17 80 13 01 00 00 00 00 00 98 [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 04 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A3 [00:34:22]RAPDU: 09 00 00 00 00 00 00 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_open_date done [00:34:22]produce_requested_data done [00:34:22]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139982,"shift.num":453,"shift.opened":0,"shift.open_date":0} [00:34:22]process_action_free get_value [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":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":139982,"shift.num":453,"shift.opened":0,"shift.open_date":0}}} [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:22]accept exits with 7 [00:34:22]New connection [00:34:22]New thread 3066764644 created [00:34:22]Thread 3066908004 joined [00:34:22]Waiting for new connection... [00:34:22] Sock 7.Parse request [00:34:22]Sock 7.Check first char [00:34:22]Sock 7.First char is OK [00:34:22]request: POST /json_proto HTTP/1.0 [00:34:22]Method: POST [00:34:22]URL: /json_proto [00:34:22]Method is POST - this is cgi request [00:34:22]url: /json_proto [00:34:22]query_string will be loaded in cgi processing [00:34:22]execute_cgi json_proto POST (null) [00:34:22]execute_cgi path=json_proto method=POST [00:34:22]POST find Content-Length [00:34:22]Host: 172.17.45.67:8080 [00:34:22]Content-Length: 331 [00:34:22]Content-Type: application/json [00:34:22] [00:34:22]POST finish read [00:34:22]Found Content-Length = 331 [00:34:22]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:34:22]execute_script... [00:34:22]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:34:22]POST & json_proto [00:34:22]process_json_proto [00:34:22]json parsed OK: [00:34:22]protocol is kg_v1.0 [00:34:22]action value=get_value [00:34:22]process_action get_value [00:34:22]cmd_get_value [00:34:22]process_action get_value done [00:34:22]requested_data is exist [00:34:22]produce_requested_data [00:34:22]requested_item fm.sale.total is exist - process it [00:34:22]SAM_PROTO_GetFMData [00:34:22]wFMCommunicate request_size=4 [00:34:22]MH_SAM_APDU [00:34:22]CAPDU: 80 13 03 00 [00:34:22]Write to MH i2c: E2 08 00 05 17 80 13 03 00 00 00 00 00 9B [00:34:22]Write i2c OK [00:34:22]MH_I2C_Read... [00:34:23]OFD Sender: No OFD packet to send [00:34:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:34:23]Read from MH i2c: E2 [00:34:23]MH_I2C_Read... [00:34:23]Read from MH i2c: E2 FD 00 [00:34:23]MH_I2C_Read... [00:34:23]Read from MH i2c: E2 FD 00 05 17 00 C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 E0 [00:34:23]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:34:23]wFMCommunicate OK [00:34:23]wFMCommunicate request_size=4 [00:34:23]MH_SAM_APDU [00:34:23]CAPDU: 80 17 00 00 [00:34:23]Write to MH i2c: E2 08 00 06 17 80 17 00 00 00 00 00 00 9D [00:34:23]Write i2c OK [00:34:23]MH_I2C_Read... [00:34:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:23]Read from MH i2c: E2 [00:34:23]MH_I2C_Read... [00:34:23]Read from MH i2c: E2 FD 00 [00:34:23]MH_I2C_Read... [00:34:23]Read from MH i2c: E2 FD 00 06 17 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 A2 [00:34:23]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:34:23]wFMCommunicate OK [00:34:23]wFMCommunicate request_size=4 [00:34:23]MH_SAM_APDU [00:34:23]CAPDU: 80 17 00 00 [00:34:23]Write to MH i2c: E2 08 00 07 17 80 17 00 00 00 00 00 00 9E [00:34:23]Write i2c OK [00:34:23]MH_I2C_Read... [00:34:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:23]Read from MH i2c: E2 [00:34:23]MH_I2C_Read... [00:34:23]Read from MH i2c: E2 FD 00 [00:34:23]MH_I2C_Read... [00:34:23]Read from MH i2c: E2 FD 00 07 17 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 B3 [00:34:23]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:34:23]wFMCommunicate OK [00:34:23]wFMCommunicate request_size=4 [00:34:23]MH_SAM_APDU [00:34:23]CAPDU: 80 17 00 00 [00:34:23]Write to MH i2c: E2 08 00 08 17 80 17 00 00 00 00 00 00 9F [00:34:23]Write i2c OK [00:34:23]MH_I2C_Read... [00:34:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:24]Read from MH i2c: E2 [00:34:24]MH_I2C_Read... [00:34:24]Read from MH i2c: E2 FD 00 [00:34:24]MH_I2C_Read... [00:34:24]Read from MH i2c: E2 FD 00 08 17 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 17 [00:34:24]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:34:24]wFMCommunicate OK [00:34:24]wFMCommunicate request_size=4 [00:34:24]MH_SAM_APDU [00:34:24]CAPDU: 80 17 00 00 [00:34:24]Write to MH i2c: E2 08 00 09 17 80 17 00 00 00 00 00 00 A0 [00:34:24]Write i2c OK [00:34:24]MH_I2C_Read... [00:34:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:34:24]Read from MH i2c: E2 [00:34:24]MH_I2C_Read... [00:34:24]Read from MH i2c: E2 E1 00 [00:34:24]MH_I2C_Read... [00:34:24]Read from MH i2c: E2 E1 00 09 17 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8E [00:34:24]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:24]wFMCommunicate OK [00:34:24]SAM_PROTO_GetFMData done [00:34:24]requested_item fm.sale_refund.total is exist - process it [00:34:24]requested_item fm.buy.total is exist - process it [00:34:24]requested_item shift.sale.total is exist - process it [00:34:24]SAM_PROTO_GetShiftData [00:34:24]wFMCommunicate request_size=4 [00:34:24]MH_SAM_APDU [00:34:24]CAPDU: 80 13 02 00 [00:34:24]Write to MH i2c: E2 08 00 0A 17 80 13 02 00 00 00 00 00 9F [00:34:24]Write i2c OK [00:34:24]MH_I2C_Read... [00:34:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:24]Read from MH i2c: E2 [00:34:24]MH_I2C_Read... [00:34:24]Read from MH i2c: E2 FD 00 [00:34:24]MH_I2C_Read... [00:34:24]Read from MH i2c: E2 FD 00 0A 17 00 B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B0 [00:34:24]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C5 01 00 00 69 04 9E 00 6F 04 04 00 C5 01 00 00 B1 04 04 00 40 CC EC 01 70 04 04 00 30 7F D1 01 72 04 03 00 10 4D 1B 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 F3 59 34 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 DC 5C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34:24]wFMCommunicate OK [00:34:24]wFMCommunicate request_size=4 [00:34:24]MH_SAM_APDU [00:34:24]CAPDU: 80 17 00 00 [00:34:24]Write to MH i2c: E2 08 00 0B 17 80 17 00 00 00 00 00 00 A2 [00:34:24]Write i2c OK [00:34:24]MH_I2C_Read... [00:34:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:25]Read from MH i2c: E2 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 FD 00 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 FD 00 0B 17 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 BB [00:34:25]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:34:25]wFMCommunicate OK [00:34:25]wFMCommunicate request_size=4 [00:34:25]MH_SAM_APDU [00:34:25]CAPDU: 80 17 00 00 [00:34:25]Write to MH i2c: E2 08 00 0C 17 80 17 00 00 00 00 00 00 A3 [00:34:25]Write i2c OK [00:34:25]MH_I2C_Read... [00:34:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:25]Read from MH i2c: E2 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 FD 00 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 FD 00 0C 17 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 5C [00:34:25]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:34:25]wFMCommunicate OK [00:34:25]wFMCommunicate request_size=4 [00:34:25]MH_SAM_APDU [00:34:25]CAPDU: 80 17 00 00 [00:34:25]Write to MH i2c: E2 08 00 0D 17 80 17 00 00 00 00 00 00 A4 [00:34:25]Write i2c OK [00:34:25]MH_I2C_Read... [00:34:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:25]Read from MH i2c: E2 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 FD 00 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 FD 00 0D 17 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 1C [00:34:25]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:34:25]wFMCommunicate OK [00:34:25]wFMCommunicate request_size=4 [00:34:25]MH_SAM_APDU [00:34:25]CAPDU: 80 17 00 00 [00:34:25]Write to MH i2c: E2 08 00 0E 17 80 17 00 00 00 00 00 00 A5 [00:34:25]Write i2c OK [00:34:25]MH_I2C_Read... [00:34:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:34:25]Read from MH i2c: E2 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 CE 00 [00:34:25]MH_I2C_Read... [00:34:25]Read from MH i2c: E2 CE 00 0E 17 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 8A [00:34:25]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:34:25]wFMCommunicate OK [00:34:25]SAM_PROTO_GetShiftData done [00:34:25]requested_item shift.sale.total_cash is exist - process it [00:34:25]requested_item shift.sale_refund.total is exist - process it [00:34:25]requested_item shift.sale_refund.total_cash is exist - process it [00:34:25]requested_item shift.buy.total is exist - process it [00:34:25]requested_item shift.buy.total_cash is exist - process it [00:34:25]produce_requested_data done [00:34:25]produce_requested_data return {"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:34:25]process_action_free get_value [00:34:25]json_value_free [00:34:25]json_value_free done [00:34:25]process_json_proto returns [00:34:25]Send response to host [00:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":322960.00,"shift.sale.total_cash":305068.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:34:25]free response buf [00:34:25]execute_script done [00:34:25]execute_script returns [00:34:25]free content buf [00:34:25]Sock 7.Close socket [00:34:25]Sock 7.Thread stoped [00:34:26]accept exits with 9 [00:34:26]New connection [00:34:26]New thread 3066908004 created [00:34:26]Thread 3066764644 joined [00:34:26]Waiting for new connection... [00:34:26] Sock 9.Parse request [00:34:26]Sock 9.Check first char [00:34:26]Sock 9.First char is OK [00:34:26]request: POST /json_proto HTTP/1.0 [00:34:26]Method: POST [00:34:26]URL: /json_proto [00:34:26]Method is POST - this is cgi request [00:34:26]url: /json_proto [00:34:26]query_string will be loaded in cgi processing [00:34:26]execute_cgi json_proto POST (null) [00:34:26]execute_cgi path=json_proto method=POST [00:34:26]POST find Content-Length [00:34:26]Host: 172.17.45.67:8080 [00:34:26]Content-Length: 263 [00:34:26]Content-Type: application/json [00:34:26] [00:34:26]POST finish read [00:34:26]Found Content-Length = 263 [00:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0442.\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440" } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:26]execute_script... [00:34:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0442.\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440" } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:26]POST & json_proto [00:34:26]process_json_proto [00:34:26]json parsed OK: [00:34:26]protocol is kg_v1.0 [00:34:26]action value=open_shift [00:34:26]process_action open_shift [00:34:26]cmd_open_shift [00:34:26]MH_GetDate [00:34:26]Write to MH i2c: F0 00 00 0F 17 15 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: F0 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: F0 09 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: F0 09 00 0F 17 00 13 36 C5 66 5F 7F 2B 66 01 [00:34:26]GetLastDocTimeStamp 1724199608 [00:34:26]current date 1724200467 [00:34:26]FM_GetShiftState [00:34:26]SAM_PROTO_GetShiftState [00:34:26]wFMCommunicate request_size=4 [00:34:26]MH_SAM_APDU [00:34:26]CAPDU: 80 13 01 00 [00:34:26]Write to MH i2c: E2 08 00 10 17 80 13 01 00 00 00 00 00 A4 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 0E 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 0E 00 10 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AF [00:34:26]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:34:26]wFMCommunicate OK [00:34:26]SAM_PROTO_GetShiftState done [00:34:26]FM_GetShiftState done [00:34:26]KKMCreateOpenShiftDocument [00:34:26]Load OK [00:34:26]Malloc new data [00:34:26]MH_GetDate [00:34:26]Write to MH i2c: F0 00 00 11 17 17 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: F0 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: F0 09 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: F0 09 00 11 17 00 13 36 C5 66 5F 7F 2B 66 03 [00:34:26]Malloc new data [00:34:26]KKMCreateOpenShiftDocument OK [00:34:26]KKMSetOpenShiftData OK [00:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=190 [00:34:26]tlvbuf is 00AE3C20 [00:34:26]KKMLoadAndSignOpenShiftData [00:34:26]SAM_PROTO_ProcessDocument [00:34:26]wFMCommunicate request_size=9 [00:34:26]MH_SAM_APDU [00:34:26]CAPDU: 80 15 01 00 04 02 00 BE 00 [00:34:26]Write to MH i2c: E2 0C 00 12 17 80 15 01 00 04 00 02 00 BE 00 00 00 70 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 12 17 00 90 00 9D [00:34:26]RAPDU: 90 00 [00:34:26]wFMCommunicate OK [00:34:26]wFMCommunicate request_size=23 [00:34:26]MH_SAM_APDU [00:34:26]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:34:26]Write to MH i2c: E2 1A 00 13 17 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 9F [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 13 17 00 90 00 9E [00:34:26]RAPDU: 90 00 [00:34:26]wFMCommunicate OK [00:34:26]wFMCommunicate request_size=30 [00:34:26]MH_SAM_APDU [00:34:26]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 [00:34:26]Write to MH i2c: E2 21 00 14 17 80 15 02 00 19 00 FD 03 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 00 00 69 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [00:34:26]RAPDU: 90 00 [00:34:26]wFMCommunicate OK [00:34:26]wFMCommunicate request_size=78 [00:34:26]MH_SAM_APDU [00:34:26]CAPDU: 80 15 02 00 49 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 [00:34:26]Write to MH i2c: E2 51 00 15 17 80 15 02 00 49 00 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 00 00 0E [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [00:34:26]RAPDU: 90 00 [00:34:26]wFMCommunicate OK [00:34:26]wFMCommunicate request_size=51 [00:34:26]MH_SAM_APDU [00:34:26]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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:34:26]Write to MH i2c: E2 36 00 16 17 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 59 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 16 17 00 90 00 A1 [00:34:26]RAPDU: 90 00 [00:34:26]wFMCommunicate OK [00:34:26]wFMCommunicate request_size=13 [00:34:26]MH_SAM_APDU [00:34:26]CAPDU: 80 15 02 00 08 F4 03 04 00 13 36 C5 66 [00:34:26]Write to MH i2c: E2 10 00 17 17 80 15 02 00 08 00 F4 03 04 00 13 36 C5 66 00 00 2D [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [00:34:26]RAPDU: 90 00 [00:34:26]wFMCommunicate OK [00:34:26]wFMCommunicate request_size=25 [00:34:26]MH_SAM_APDU [00:34:26]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 [00:34:26]Write to MH i2c: E2 1C 00 18 17 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 00 00 17 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 03 00 18 17 00 90 00 A3 [00:34:26]RAPDU: 90 00 [00:34:26]wFMCommunicate OK [00:34:26]wFMCommunicate request_size=4 [00:34:26]MH_SAM_APDU [00:34:26]CAPDU: 80 15 03 00 [00:34:26]Write to MH i2c: E2 08 00 19 17 80 15 03 00 00 00 00 00 B1 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 38 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 38 00 19 17 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 22 02 00 0E 04 04 00 C6 01 00 00 35 04 06 00 F8 66 7D 10 E3 0F 90 00 18 [00:34:26]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 22 02 00 0E 04 04 00 C6 01 00 00 35 04 06 00 F8 66 7D 10 E3 0F 90 00 [00:34:26]wFMCommunicate OK [00:34:26]SAM_PROTO_ProcessDocument answer len = 51 [00:34:26]SAM_PROTO_ProcessDocument done [00:34:26]SetTLVBufToDocument [00:34:26]Processing tag 1209 (04B9) [00:34:26]Malloc new data [00:34:26]Processing tag 1041 (0411) [00:34:26]Processing tag 1040 (0410) [00:34:26]Malloc new data [00:34:26]Processing tag 1038 (040E) [00:34:26]Malloc new data [00:34:26]Processing tag 1077 (0435) [00:34:26]Malloc new data [00:34:26]SetTLVBufToDocument err=0 [00:34:26]KKMLoadAndSignOpenShiftData store KKM data [00:34:26]KKMLoadAndSignOpenShiftData err=0 [00:34:26]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ст.Оператор Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 Место: АЗС № 136 "Партнер Нефть" 21.08.2024 00:34 Смена: 454 РНМ: 0000000000092569 ЗНМ: 0300000067 ФД: 139983 ФМ: 0000000000871776 ФПД: 273119068611343 [00:34:26]StoreToDocumentArchive [00:34:26]shift 454 fd 139983 [00:34:26]Create dir for shift 0454 [00:34:26]save to /storage/0454/doc_00139983 [00:34:26]save last doc name /storage/0454/doc_00139983 to /storage/kkm_last_doc_name [00:34:26]save OK [00:34:26]Clear old archive folders... [00:34:26]Remove dir /storage/0453 [00:34:26]opendir ok [00:34:27]file . [00:34:27]file .. [00:34:27]file doc_00139528 [00:34:27]remove file /storage/0453/doc_00139528 [00:34:27]file doc_00139529 [00:34:27]remove file /storage/0453/doc_00139529 [00:34:27]file doc_00139530 [00:34:27]remove file /storage/0453/doc_00139530 [00:34:27]file doc_00139531 [00:34:27]remove file /storage/0453/doc_00139531 [00:34:27]file doc_00139532 [00:34:27]remove file /storage/0453/doc_00139532 [00:34:27]file doc_00139533 [00:34:27]remove file /storage/0453/doc_00139533 [00:34:27]file doc_00139534 [00:34:27]remove file /storage/0453/doc_00139534 [00:34:27]file doc_00139535 [00:34:27]remove file /storage/0453/doc_00139535 [00:34:27]file doc_00139536 [00:34:27]remove file /storage/0453/doc_00139536 [00:34:27]file doc_00139537 [00:34:27]remove file /storage/0453/doc_00139537 [00:34:27]file doc_00139538 [00:34:27]remove file /storage/0453/doc_00139538 [00:34:27]file doc_00139539 [00:34:27]remove file /storage/0453/doc_00139539 [00:34:27]file doc_00139540 [00:34:27]remove file /storage/0453/doc_00139540 [00:34:27]file doc_00139541 [00:34:27]remove file /storage/0453/doc_00139541 [00:34:27]file doc_00139542 [00:34:27]remove file /storage/0453/doc_00139542 [00:34:27]file doc_00139543 [00:34:27]remove file /storage/0453/doc_00139543 [00:34:27]file doc_00139544 [00:34:27]remove file /storage/0453/doc_00139544 [00:34:27]file doc_00139545 [00:34:27]remove file /storage/0453/doc_00139545 [00:34:27]file doc_00139546 [00:34:27]remove file /storage/0453/doc_00139546 [00:34:27]file doc_00139547 [00:34:27]remove file /storage/0453/doc_00139547 [00:34:27]file doc_00139548 [00:34:27]remove file /storage/0453/doc_00139548 [00:34:27]file doc_00139549 [00:34:27]remove file /storage/0453/doc_00139549 [00:34:27]file doc_00139550 [00:34:27]remove file /storage/0453/doc_00139550 [00:34:27]file doc_00139551 [00:34:27]remove file /storage/0453/doc_00139551 [00:34:27]file doc_00139552 [00:34:27]remove file /storage/0453/doc_00139552 [00:34:27]file doc_00139553 [00:34:27]remove file /storage/0453/doc_00139553 [00:34:27]file doc_00139554 [00:34:27]remove file /storage/0453/doc_00139554 [00:34:27]file doc_00139555 [00:34:27]remove file /storage/0453/doc_00139555 [00:34:27]file doc_00139556 [00:34:27]remove file /storage/0453/doc_00139556 [00:34:27]file doc_00139557 [00:34:27]remove file /storage/0453/doc_00139557 [00:34:27]file doc_00139558 [00:34:27]remove file /storage/0453/doc_00139558 [00:34:27]file doc_00139559 [00:34:27]remove file /storage/0453/doc_00139559 [00:34:27]file doc_00139560 [00:34:27]remove file /storage/0453/doc_00139560 [00:34:27]file doc_00139561 [00:34:27]remove file /storage/0453/doc_00139561 [00:34:27]file doc_00139562 [00:34:27]remove file /storage/0453/doc_00139562 [00:34:27]file doc_00139563 [00:34:27]remove file /storage/0453/doc_00139563 [00:34:27]file doc_00139564 [00:34:27]remove file /storage/0453/doc_00139564 [00:34:27]file doc_00139565 [00:34:27]remove file /storage/0453/doc_00139565 [00:34:27]file doc_00139566 [00:34:27]remove file /storage/0453/doc_00139566 [00:34:27]file doc_00139567 [00:34:27]remove file /storage/0453/doc_00139567 [00:34:27]file doc_00139568 [00:34:27]remove file /storage/0453/doc_00139568 [00:34:27]file doc_00139569 [00:34:27]remove file /storage/0453/doc_00139569 [00:34:27]file doc_00139570 [00:34:27]remove file /storage/0453/doc_00139570 [00:34:27]file doc_00139571 [00:34:27]remove file /storage/0453/doc_00139571 [00:34:27]file doc_00139572 [00:34:27]remove file /storage/0453/doc_00139572 [00:34:27]file doc_00139573 [00:34:27]remove file /storage/0453/doc_00139573 [00:34:27]file doc_00139574 [00:34:27]remove file /storage/0453/doc_00139574 [00:34:27]file doc_00139575 [00:34:27]remove file /storage/0453/doc_00139575 [00:34:27]file doc_00139576 [00:34:27]remove file /storage/0453/doc_00139576 [00:34:27]file doc_00139577 [00:34:27]remove file /storage/0453/doc_00139577 [00:34:27]file doc_00139578 [00:34:27]remove file /storage/0453/doc_00139578 [00:34:27]file doc_00139579 [00:34:27]remove file /storage/0453/doc_00139579 [00:34:27]file doc_00139580 [00:34:27]remove file /storage/0453/doc_00139580 [00:34:27]file doc_00139581 [00:34:27]remove file /storage/0453/doc_00139581 [00:34:27]file doc_00139582 [00:34:27]remove file /storage/0453/doc_00139582 [00:34:27]file doc_00139583 [00:34:27]remove file /storage/0453/doc_00139583 [00:34:27]file doc_00139584 [00:34:27]remove file /storage/0453/doc_00139584 [00:34:27]file doc_00139585 [00:34:27]remove file /storage/0453/doc_00139585 [00:34:27]file doc_00139586 [00:34:27]remove file /storage/0453/doc_00139586 [00:34:27]file doc_00139587 [00:34:27]remove file /storage/0453/doc_00139587 [00:34:27]file doc_00139588 [00:34:27]remove file /storage/0453/doc_00139588 [00:34:27]file doc_00139589 [00:34:27]remove file /storage/0453/doc_00139589 [00:34:27]file doc_00139590 [00:34:27]remove file /storage/0453/doc_00139590 [00:34:27]file doc_00139591 [00:34:27]remove file /storage/0453/doc_00139591 [00:34:27]file doc_00139592 [00:34:27]remove file /storage/0453/doc_00139592 [00:34:27]file doc_00139593 [00:34:27]remove file /storage/0453/doc_00139593 [00:34:27]file doc_00139594 [00:34:27]remove file /storage/0453/doc_00139594 [00:34:27]file doc_00139595 [00:34:27]remove file /storage/0453/doc_00139595 [00:34:27]file doc_00139596 [00:34:27]remove file /storage/0453/doc_00139596 [00:34:27]file doc_00139597 [00:34:27]remove file /storage/0453/doc_00139597 [00:34:27]file doc_00139598 [00:34:27]remove file /storage/0453/doc_00139598 [00:34:27]file doc_00139599 [00:34:27]remove file /storage/0453/doc_00139599 [00:34:27]file doc_00139600 [00:34:27]remove file /storage/0453/doc_00139600 [00:34:27]file doc_00139601 [00:34:27]remove file /storage/0453/doc_00139601 [00:34:27]file doc_00139602 [00:34:27]remove file /storage/0453/doc_00139602 [00:34:27]file doc_00139603 [00:34:27]remove file /storage/0453/doc_00139603 [00:34:27]file doc_00139604 [00:34:27]remove file /storage/0453/doc_00139604 [00:34:27]file doc_00139605 [00:34:27]remove file /storage/0453/doc_00139605 [00:34:27]file doc_00139606 [00:34:27]remove file /storage/0453/doc_00139606 [00:34:27]file doc_00139607 [00:34:27]remove file /storage/0453/doc_00139607 [00:34:27]file doc_00139608 [00:34:27]remove file /storage/0453/doc_00139608 [00:34:27]file doc_00139609 [00:34:27]remove file /storage/0453/doc_00139609 [00:34:27]file doc_00139610 [00:34:27]remove file /storage/0453/doc_00139610 [00:34:27]file doc_00139611 [00:34:27]remove file /storage/0453/doc_00139611 [00:34:27]file doc_00139612 [00:34:27]remove file /storage/0453/doc_00139612 [00:34:27]file doc_00139613 [00:34:27]remove file /storage/0453/doc_00139613 [00:34:27]file doc_00139614 [00:34:27]remove file /storage/0453/doc_00139614 [00:34:27]file doc_00139615 [00:34:27]remove file /storage/0453/doc_00139615 [00:34:27]file doc_00139616 [00:34:27]remove file /storage/0453/doc_00139616 [00:34:27]file doc_00139617 [00:34:27]remove file /storage/0453/doc_00139617 [00:34:27]file doc_00139618 [00:34:27]remove file /storage/0453/doc_00139618 [00:34:27]file doc_00139619 [00:34:27]remove file /storage/0453/doc_00139619 [00:34:27]file doc_00139620 [00:34:27]remove file /storage/0453/doc_00139620 [00:34:27]file doc_00139621 [00:34:27]remove file /storage/0453/doc_00139621 [00:34:27]file doc_00139622 [00:34:27]remove file /storage/0453/doc_00139622 [00:34:27]file doc_00139623 [00:34:27]remove file /storage/0453/doc_00139623 [00:34:27]file doc_00139624 [00:34:27]remove file /storage/0453/doc_00139624 [00:34:27]file doc_00139625 [00:34:27]remove file /storage/0453/doc_00139625 [00:34:27]file doc_00139626 [00:34:27]remove file /storage/0453/doc_00139626 [00:34:27]file doc_00139627 [00:34:27]remove file /storage/0453/doc_00139627 [00:34:27]file doc_00139628 [00:34:27]remove file /storage/0453/doc_00139628 [00:34:27]file doc_00139629 [00:34:27]remove file /storage/0453/doc_00139629 [00:34:27]file doc_00139630 [00:34:27]remove file /storage/0453/doc_00139630 [00:34:27]file doc_00139631 [00:34:27]remove file /storage/0453/doc_00139631 [00:34:27]file doc_00139632 [00:34:27]remove file /storage/0453/doc_00139632 [00:34:27]file doc_00139633 [00:34:27]remove file /storage/0453/doc_00139633 [00:34:27]file doc_00139634 [00:34:27]remove file /storage/0453/doc_00139634 [00:34:27]file doc_00139635 [00:34:27]remove file /storage/0453/doc_00139635 [00:34:27]file doc_00139636 [00:34:27]remove file /storage/0453/doc_00139636 [00:34:27]file doc_00139637 [00:34:27]remove file /storage/0453/doc_00139637 [00:34:27]file doc_00139638 [00:34:27]remove file /storage/0453/doc_00139638 [00:34:27]file doc_00139639 [00:34:27]remove file /storage/0453/doc_00139639 [00:34:27]file doc_00139640 [00:34:27]remove file /storage/0453/doc_00139640 [00:34:27]file doc_00139641 [00:34:27]remove file /storage/0453/doc_00139641 [00:34:27]file doc_00139642 [00:34:27]remove file /storage/0453/doc_00139642 [00:34:27]file doc_00139643 [00:34:27]remove file /storage/0453/doc_00139643 [00:34:27]file doc_00139644 [00:34:27]remove file /storage/0453/doc_00139644 [00:34:27]file doc_00139645 [00:34:27]remove file /storage/0453/doc_00139645 [00:34:27]file doc_00139646 [00:34:27]remove file /storage/0453/doc_00139646 [00:34:27]file doc_00139647 [00:34:27]remove file /storage/0453/doc_00139647 [00:34:27]file doc_00139648 [00:34:27]remove file /storage/0453/doc_00139648 [00:34:27]file doc_00139649 [00:34:27]remove file /storage/0453/doc_00139649 [00:34:27]file doc_00139650 [00:34:27]remove file /storage/0453/doc_00139650 [00:34:27]file doc_00139651 [00:34:27]remove file /storage/0453/doc_00139651 [00:34:27]file doc_00139652 [00:34:27]remove file /storage/0453/doc_00139652 [00:34:27]file doc_00139653 [00:34:27]remove file /storage/0453/doc_00139653 [00:34:27]file doc_00139654 [00:34:27]remove file /storage/0453/doc_00139654 [00:34:27]file doc_00139655 [00:34:27]remove file /storage/0453/doc_00139655 [00:34:27]file doc_00139656 [00:34:27]remove file /storage/0453/doc_00139656 [00:34:27]file doc_00139657 [00:34:27]remove file /storage/0453/doc_00139657 [00:34:27]file doc_00139658 [00:34:27]remove file /storage/0453/doc_00139658 [00:34:27]file doc_00139659 [00:34:27]remove file /storage/0453/doc_00139659 [00:34:27]file doc_00139660 [00:34:27]remove file /storage/0453/doc_00139660 [00:34:27]file doc_00139661 [00:34:27]remove file /storage/0453/doc_00139661 [00:34:27]file doc_00139662 [00:34:27]remove file /storage/0453/doc_00139662 [00:34:27]file doc_00139663 [00:34:27]remove file /storage/0453/doc_00139663 [00:34:27]file doc_00139664 [00:34:27]remove file /storage/0453/doc_00139664 [00:34:27]file doc_00139665 [00:34:27]remove file /storage/0453/doc_00139665 [00:34:27]file doc_00139666 [00:34:27]remove file /storage/0453/doc_00139666 [00:34:27]file doc_00139667 [00:34:27]remove file /storage/0453/doc_00139667 [00:34:27]file doc_00139668 [00:34:27]remove file /storage/0453/doc_00139668 [00:34:27]file doc_00139669 [00:34:27]remove file /storage/0453/doc_00139669 [00:34:27]file doc_00139670 [00:34:27]remove file /storage/0453/doc_00139670 [00:34:27]file doc_00139671 [00:34:27]remove file /storage/0453/doc_00139671 [00:34:27]file doc_00139672 [00:34:27]remove file /storage/0453/doc_00139672 [00:34:28]file doc_00139673 [00:34:28]remove file /storage/0453/doc_00139673 [00:34:28]file doc_00139674 [00:34:28]remove file /storage/0453/doc_00139674 [00:34:28]file doc_00139675 [00:34:28]remove file /storage/0453/doc_00139675 [00:34:28]file doc_00139676 [00:34:28]remove file /storage/0453/doc_00139676 [00:34:28]file doc_00139677 [00:34:28]remove file /storage/0453/doc_00139677 [00:34:28]file doc_00139678 [00:34:28]remove file /storage/0453/doc_00139678 [00:34:28]file doc_00139679 [00:34:28]remove file /storage/0453/doc_00139679 [00:34:28]file doc_00139680 [00:34:28]remove file /storage/0453/doc_00139680 [00:34:28]file doc_00139681 [00:34:28]remove file /storage/0453/doc_00139681 [00:34:28]file doc_00139682 [00:34:28]remove file /storage/0453/doc_00139682 [00:34:28]file doc_00139683 [00:34:28]remove file /storage/0453/doc_00139683 [00:34:28]file doc_00139684 [00:34:28]remove file /storage/0453/doc_00139684 [00:34:28]file doc_00139685 [00:34:28]remove file /storage/0453/doc_00139685 [00:34:28]file doc_00139686 [00:34:28]remove file /storage/0453/doc_00139686 [00:34:28]file doc_00139687 [00:34:28]remove file /storage/0453/doc_00139687 [00:34:28]file doc_00139688 [00:34:28]remove file /storage/0453/doc_00139688 [00:34:28]file doc_00139689 [00:34:28]remove file /storage/0453/doc_00139689 [00:34:28]file doc_00139690 [00:34:28]remove file /storage/0453/doc_00139690 [00:34:28]file doc_00139691 [00:34:28]remove file /storage/0453/doc_00139691 [00:34:28]file doc_00139692 [00:34:28]remove file /storage/0453/doc_00139692 [00:34:28]file doc_00139693 [00:34:28]remove file /storage/0453/doc_00139693 [00:34:28]file doc_00139694 [00:34:28]remove file /storage/0453/doc_00139694 [00:34:28]file doc_00139695 [00:34:28]remove file /storage/0453/doc_00139695 [00:34:28]file doc_00139696 [00:34:28]remove file /storage/0453/doc_00139696 [00:34:28]file doc_00139697 [00:34:28]remove file /storage/0453/doc_00139697 [00:34:28]file doc_00139698 [00:34:28]remove file /storage/0453/doc_00139698 [00:34:28]file doc_00139699 [00:34:28]remove file /storage/0453/doc_00139699 [00:34:28]file doc_00139700 [00:34:28]remove file /storage/0453/doc_00139700 [00:34:28]file doc_00139701 [00:34:28]remove file /storage/0453/doc_00139701 [00:34:28]file doc_00139702 [00:34:28]remove file /storage/0453/doc_00139702 [00:34:28]file doc_00139703 [00:34:28]remove file /storage/0453/doc_00139703 [00:34:28]file doc_00139704 [00:34:28]remove file /storage/0453/doc_00139704 [00:34:28]file doc_00139705 [00:34:28]remove file /storage/0453/doc_00139705 [00:34:28]file doc_00139706 [00:34:28]remove file /storage/0453/doc_00139706 [00:34:28]file doc_00139707 [00:34:28]remove file /storage/0453/doc_00139707 [00:34:28]file doc_00139708 [00:34:28]remove file /storage/0453/doc_00139708 [00:34:28]file doc_00139709 [00:34:28]remove file /storage/0453/doc_00139709 [00:34:28]file doc_00139710 [00:34:28]remove file /storage/0453/doc_00139710 [00:34:28]file doc_00139711 [00:34:28]remove file /storage/0453/doc_00139711 [00:34:28]file doc_00139712 [00:34:28]remove file /storage/0453/doc_00139712 [00:34:28]file doc_00139713 [00:34:28]remove file /storage/0453/doc_00139713 [00:34:28]file doc_00139714 [00:34:28]remove file /storage/0453/doc_00139714 [00:34:28]file doc_00139715 [00:34:28]remove file /storage/0453/doc_00139715 [00:34:28]file doc_00139716 [00:34:28]remove file /storage/0453/doc_00139716 [00:34:28]file doc_00139717 [00:34:28]remove file /storage/0453/doc_00139717 [00:34:28]file doc_00139718 [00:34:28]remove file /storage/0453/doc_00139718 [00:34:28]file doc_00139719 [00:34:28]remove file /storage/0453/doc_00139719 [00:34:28]file doc_00139720 [00:34:28]remove file /storage/0453/doc_00139720 [00:34:28]file doc_00139721 [00:34:28]remove file /storage/0453/doc_00139721 [00:34:28]file doc_00139722 [00:34:28]remove file /storage/0453/doc_00139722 [00:34:28]file doc_00139723 [00:34:28]remove file /storage/0453/doc_00139723 [00:34:28]file doc_00139724 [00:34:28]remove file /storage/0453/doc_00139724 [00:34:28]file doc_00139725 [00:34:28]remove file /storage/0453/doc_00139725 [00:34:28]file doc_00139726 [00:34:28]remove file /storage/0453/doc_00139726 [00:34:28]file doc_00139727 [00:34:28]remove file /storage/0453/doc_00139727 [00:34:28]file doc_00139728 [00:34:28]remove file /storage/0453/doc_00139728 [00:34:28]file doc_00139729 [00:34:28]remove file /storage/0453/doc_00139729 [00:34:28]file doc_00139730 [00:34:28]remove file /storage/0453/doc_00139730 [00:34:28]file doc_00139731 [00:34:28]remove file /storage/0453/doc_00139731 [00:34:28]file doc_00139732 [00:34:28]remove file /storage/0453/doc_00139732 [00:34:28]file doc_00139733 [00:34:28]remove file /storage/0453/doc_00139733 [00:34:28]file doc_00139734 [00:34:28]remove file /storage/0453/doc_00139734 [00:34:28]file doc_00139735 [00:34:28]remove file /storage/0453/doc_00139735 [00:34:28]file doc_00139736 [00:34:28]remove file /storage/0453/doc_00139736 [00:34:28]file doc_00139737 [00:34:28]remove file /storage/0453/doc_00139737 [00:34:28]file doc_00139738 [00:34:28]remove file /storage/0453/doc_00139738 [00:34:28]file doc_00139739 [00:34:28]remove file /storage/0453/doc_00139739 [00:34:28]file doc_00139740 [00:34:28]remove file /storage/0453/doc_00139740 [00:34:28]file doc_00139741 [00:34:28]remove file /storage/0453/doc_00139741 [00:34:28]file doc_00139742 [00:34:28]remove file /storage/0453/doc_00139742 [00:34:28]file doc_00139743 [00:34:28]remove file /storage/0453/doc_00139743 [00:34:28]file doc_00139744 [00:34:28]remove file /storage/0453/doc_00139744 [00:34:28]file doc_00139745 [00:34:28]remove file /storage/0453/doc_00139745 [00:34:28]file doc_00139746 [00:34:28]remove file /storage/0453/doc_00139746 [00:34:28]file doc_00139747 [00:34:28]remove file /storage/0453/doc_00139747 [00:34:28]file doc_00139748 [00:34:28]remove file /storage/0453/doc_00139748 [00:34:28]file doc_00139749 [00:34:28]remove file /storage/0453/doc_00139749 [00:34:28]file doc_00139750 [00:34:28]remove file /storage/0453/doc_00139750 [00:34:28]file doc_00139751 [00:34:28]remove file /storage/0453/doc_00139751 [00:34:28]file doc_00139752 [00:34:28]remove file /storage/0453/doc_00139752 [00:34:28]file doc_00139753 [00:34:28]remove file /storage/0453/doc_00139753 [00:34:28]file doc_00139754 [00:34:28]remove file /storage/0453/doc_00139754 [00:34:28]file doc_00139755 [00:34:28]remove file /storage/0453/doc_00139755 [00:34:28]file doc_00139756 [00:34:28]remove file /storage/0453/doc_00139756 [00:34:28]file doc_00139757 [00:34:28]remove file /storage/0453/doc_00139757 [00:34:28]file doc_00139758 [00:34:28]remove file /storage/0453/doc_00139758 [00:34:28]file doc_00139759 [00:34:28]remove file /storage/0453/doc_00139759 [00:34:28]file doc_00139760 [00:34:28]remove file /storage/0453/doc_00139760 [00:34:28]file doc_00139761 [00:34:28]remove file /storage/0453/doc_00139761 [00:34:28]file doc_00139762 [00:34:28]remove file /storage/0453/doc_00139762 [00:34:28]file doc_00139763 [00:34:28]remove file /storage/0453/doc_00139763 [00:34:28]file doc_00139764 [00:34:28]remove file /storage/0453/doc_00139764 [00:34:28]file doc_00139765 [00:34:28]remove file /storage/0453/doc_00139765 [00:34:28]file doc_00139766 [00:34:28]remove file /storage/0453/doc_00139766 [00:34:28]file doc_00139767 [00:34:28]remove file /storage/0453/doc_00139767 [00:34:28]file doc_00139768 [00:34:28]remove file /storage/0453/doc_00139768 [00:34:28]file doc_00139769 [00:34:28]remove file /storage/0453/doc_00139769 [00:34:28]OFD Sender: No OFD packet to send [00:34:28]file doc_00139770 [00:34:28]remove file /storage/0453/doc_00139770 [00:34:28]file doc_00139771 [00:34:28]remove file /storage/0453/doc_00139771 [00:34:28]file doc_00139772 [00:34:28]remove file /storage/0453/doc_00139772 [00:34:28]file doc_00139773 [00:34:28]remove file /storage/0453/doc_00139773 [00:34:28]file doc_00139774 [00:34:28]remove file /storage/0453/doc_00139774 [00:34:28]file doc_00139775 [00:34:28]remove file /storage/0453/doc_00139775 [00:34:28]file doc_00139776 [00:34:28]remove file /storage/0453/doc_00139776 [00:34:28]file doc_00139777 [00:34:28]remove file /storage/0453/doc_00139777 [00:34:28]file doc_00139778 [00:34:28]remove file /storage/0453/doc_00139778 [00:34:28]file doc_00139779 [00:34:28]remove file /storage/0453/doc_00139779 [00:34:28]file doc_00139780 [00:34:28]remove file /storage/0453/doc_00139780 [00:34:28]file doc_00139781 [00:34:28]remove file /storage/0453/doc_00139781 [00:34:28]file doc_00139782 [00:34:28]remove file /storage/0453/doc_00139782 [00:34:28]file doc_00139783 [00:34:28]remove file /storage/0453/doc_00139783 [00:34:28]file doc_00139784 [00:34:28]remove file /storage/0453/doc_00139784 [00:34:28]file doc_00139785 [00:34:28]remove file /storage/0453/doc_00139785 [00:34:28]file doc_00139786 [00:34:28]remove file /storage/0453/doc_00139786 [00:34:28]file doc_00139787 [00:34:28]remove file /storage/0453/doc_00139787 [00:34:28]file doc_00139788 [00:34:28]remove file /storage/0453/doc_00139788 [00:34:28]file doc_00139789 [00:34:28]remove file /storage/0453/doc_00139789 [00:34:28]file doc_00139790 [00:34:28]remove file /storage/0453/doc_00139790 [00:34:28]file doc_00139791 [00:34:28]remove file /storage/0453/doc_00139791 [00:34:28]file doc_00139792 [00:34:28]remove file /storage/0453/doc_00139792 [00:34:28]file doc_00139793 [00:34:28]remove file /storage/0453/doc_00139793 [00:34:28]file doc_00139794 [00:34:28]remove file /storage/0453/doc_00139794 [00:34:28]file doc_00139795 [00:34:28]remove file /storage/0453/doc_00139795 [00:34:28]file doc_00139796 [00:34:28]remove file /storage/0453/doc_00139796 [00:34:28]file doc_00139797 [00:34:28]remove file /storage/0453/doc_00139797 [00:34:28]file doc_00139798 [00:34:28]remove file /storage/0453/doc_00139798 [00:34:28]file doc_00139799 [00:34:28]remove file /storage/0453/doc_00139799 [00:34:28]file doc_00139800 [00:34:28]remove file /storage/0453/doc_00139800 [00:34:28]file doc_00139801 [00:34:28]remove file /storage/0453/doc_00139801 [00:34:28]file doc_00139802 [00:34:28]remove file /storage/0453/doc_00139802 [00:34:28]file doc_00139803 [00:34:28]remove file /storage/0453/doc_00139803 [00:34:28]file doc_00139804 [00:34:28]remove file /storage/0453/doc_00139804 [00:34:28]file doc_00139805 [00:34:28]remove file /storage/0453/doc_00139805 [00:34:28]file doc_00139806 [00:34:28]remove file /storage/0453/doc_00139806 [00:34:28]file doc_00139807 [00:34:28]remove file /storage/0453/doc_00139807 [00:34:28]file doc_00139808 [00:34:28]remove file /storage/0453/doc_00139808 [00:34:28]file doc_00139809 [00:34:28]remove file /storage/0453/doc_00139809 [00:34:28]file doc_00139810 [00:34:28]remove file /storage/0453/doc_00139810 [00:34:28]file doc_00139811 [00:34:28]remove file /storage/0453/doc_00139811 [00:34:28]file doc_00139812 [00:34:28]remove file /storage/0453/doc_00139812 [00:34:28]file doc_00139813 [00:34:28]remove file /storage/0453/doc_00139813 [00:34:28]file doc_00139814 [00:34:28]remove file /storage/0453/doc_00139814 [00:34:28]file doc_00139815 [00:34:28]remove file /storage/0453/doc_00139815 [00:34:28]file doc_00139816 [00:34:28]remove file /storage/0453/doc_00139816 [00:34:28]file doc_00139817 [00:34:28]remove file /storage/0453/doc_00139817 [00:34:28]file doc_00139818 [00:34:28]remove file /storage/0453/doc_00139818 [00:34:28]file doc_00139819 [00:34:28]remove file /storage/0453/doc_00139819 [00:34:28]file doc_00139820 [00:34:28]remove file /storage/0453/doc_00139820 [00:34:28]file doc_00139821 [00:34:28]remove file /storage/0453/doc_00139821 [00:34:28]file doc_00139822 [00:34:28]remove file /storage/0453/doc_00139822 [00:34:28]file doc_00139823 [00:34:28]remove file /storage/0453/doc_00139823 [00:34:28]file doc_00139824 [00:34:28]remove file /storage/0453/doc_00139824 [00:34:28]file doc_00139825 [00:34:28]remove file /storage/0453/doc_00139825 [00:34:28]file doc_00139826 [00:34:28]remove file /storage/0453/doc_00139826 [00:34:28]file doc_00139827 [00:34:28]remove file /storage/0453/doc_00139827 [00:34:28]file doc_00139828 [00:34:28]remove file /storage/0453/doc_00139828 [00:34:28]file doc_00139829 [00:34:28]remove file /storage/0453/doc_00139829 [00:34:28]file doc_00139830 [00:34:28]remove file /storage/0453/doc_00139830 [00:34:28]file doc_00139831 [00:34:28]remove file /storage/0453/doc_00139831 [00:34:28]file doc_00139832 [00:34:28]remove file /storage/0453/doc_00139832 [00:34:28]file doc_00139833 [00:34:28]remove file /storage/0453/doc_00139833 [00:34:28]file doc_00139834 [00:34:28]remove file /storage/0453/doc_00139834 [00:34:28]file doc_00139835 [00:34:28]remove file /storage/0453/doc_00139835 [00:34:28]file doc_00139836 [00:34:28]remove file /storage/0453/doc_00139836 [00:34:28]file doc_00139837 [00:34:28]remove file /storage/0453/doc_00139837 [00:34:28]file doc_00139838 [00:34:28]remove file /storage/0453/doc_00139838 [00:34:28]file doc_00139839 [00:34:28]remove file /storage/0453/doc_00139839 [00:34:28]file doc_00139840 [00:34:28]remove file /storage/0453/doc_00139840 [00:34:28]file doc_00139841 [00:34:28]remove file /storage/0453/doc_00139841 [00:34:28]file doc_00139842 [00:34:28]remove file /storage/0453/doc_00139842 [00:34:28]file doc_00139843 [00:34:28]remove file /storage/0453/doc_00139843 [00:34:28]file doc_00139844 [00:34:28]remove file /storage/0453/doc_00139844 [00:34:28]file doc_00139845 [00:34:28]remove file /storage/0453/doc_00139845 [00:34:28]file doc_00139846 [00:34:28]remove file /storage/0453/doc_00139846 [00:34:28]file doc_00139847 [00:34:28]remove file /storage/0453/doc_00139847 [00:34:28]file doc_00139848 [00:34:28]remove file /storage/0453/doc_00139848 [00:34:28]file doc_00139849 [00:34:28]remove file /storage/0453/doc_00139849 [00:34:28]file doc_00139850 [00:34:28]remove file /storage/0453/doc_00139850 [00:34:28]file doc_00139851 [00:34:28]remove file /storage/0453/doc_00139851 [00:34:28]file doc_00139852 [00:34:28]remove file /storage/0453/doc_00139852 [00:34:28]file doc_00139853 [00:34:28]remove file /storage/0453/doc_00139853 [00:34:28]file doc_00139854 [00:34:28]remove file /storage/0453/doc_00139854 [00:34:28]file doc_00139855 [00:34:28]remove file /storage/0453/doc_00139855 [00:34:28]file doc_00139856 [00:34:28]remove file /storage/0453/doc_00139856 [00:34:28]file doc_00139857 [00:34:28]remove file /storage/0453/doc_00139857 [00:34:28]file doc_00139858 [00:34:28]remove file /storage/0453/doc_00139858 [00:34:28]file doc_00139859 [00:34:28]remove file /storage/0453/doc_00139859 [00:34:28]file doc_00139860 [00:34:28]remove file /storage/0453/doc_00139860 [00:34:28]file doc_00139861 [00:34:28]remove file /storage/0453/doc_00139861 [00:34:28]file doc_00139862 [00:34:28]remove file /storage/0453/doc_00139862 [00:34:28]file doc_00139863 [00:34:28]remove file /storage/0453/doc_00139863 [00:34:28]file doc_00139864 [00:34:28]remove file /storage/0453/doc_00139864 [00:34:28]file doc_00139865 [00:34:28]remove file /storage/0453/doc_00139865 [00:34:28]file doc_00139866 [00:34:28]remove file /storage/0453/doc_00139866 [00:34:28]file doc_00139867 [00:34:28]remove file /storage/0453/doc_00139867 [00:34:28]file doc_00139868 [00:34:28]remove file /storage/0453/doc_00139868 [00:34:28]file doc_00139869 [00:34:28]remove file /storage/0453/doc_00139869 [00:34:28]file doc_00139870 [00:34:28]remove file /storage/0453/doc_00139870 [00:34:28]file doc_00139871 [00:34:28]remove file /storage/0453/doc_00139871 [00:34:28]file doc_00139872 [00:34:28]remove file /storage/0453/doc_00139872 [00:34:28]file doc_00139873 [00:34:28]remove file /storage/0453/doc_00139873 [00:34:28]file doc_00139874 [00:34:28]remove file /storage/0453/doc_00139874 [00:34:28]file doc_00139875 [00:34:28]remove file /storage/0453/doc_00139875 [00:34:28]file doc_00139876 [00:34:28]remove file /storage/0453/doc_00139876 [00:34:28]file doc_00139877 [00:34:28]remove file /storage/0453/doc_00139877 [00:34:28]file doc_00139878 [00:34:28]remove file /storage/0453/doc_00139878 [00:34:28]file doc_00139879 [00:34:28]remove file /storage/0453/doc_00139879 [00:34:28]file doc_00139880 [00:34:28]remove file /storage/0453/doc_00139880 [00:34:28]file doc_00139881 [00:34:28]remove file /storage/0453/doc_00139881 [00:34:28]file doc_00139882 [00:34:28]remove file /storage/0453/doc_00139882 [00:34:28]file doc_00139883 [00:34:28]remove file /storage/0453/doc_00139883 [00:34:28]file doc_00139884 [00:34:28]remove file /storage/0453/doc_00139884 [00:34:28]file doc_00139885 [00:34:28]remove file /storage/0453/doc_00139885 [00:34:28]file doc_00139886 [00:34:28]remove file /storage/0453/doc_00139886 [00:34:28]file doc_00139887 [00:34:28]remove file /storage/0453/doc_00139887 [00:34:28]file doc_00139888 [00:34:28]remove file /storage/0453/doc_00139888 [00:34:28]file doc_00139889 [00:34:28]remove file /storage/0453/doc_00139889 [00:34:28]file doc_00139890 [00:34:28]remove file /storage/0453/doc_00139890 [00:34:28]file doc_00139891 [00:34:28]remove file /storage/0453/doc_00139891 [00:34:28]file doc_00139892 [00:34:28]remove file /storage/0453/doc_00139892 [00:34:28]file doc_00139893 [00:34:28]remove file /storage/0453/doc_00139893 [00:34:28]file doc_00139894 [00:34:28]remove file /storage/0453/doc_00139894 [00:34:28]file doc_00139895 [00:34:28]remove file /storage/0453/doc_00139895 [00:34:28]file doc_00139896 [00:34:28]remove file /storage/0453/doc_00139896 [00:34:28]file doc_00139897 [00:34:28]remove file /storage/0453/doc_00139897 [00:34:28]file doc_00139898 [00:34:28]remove file /storage/0453/doc_00139898 [00:34:28]file doc_00139899 [00:34:28]remove file /storage/0453/doc_00139899 [00:34:28]file doc_00139900 [00:34:28]remove file /storage/0453/doc_00139900 [00:34:28]file doc_00139901 [00:34:28]remove file /storage/0453/doc_00139901 [00:34:28]file doc_00139902 [00:34:28]remove file /storage/0453/doc_00139902 [00:34:28]file doc_00139903 [00:34:28]remove file /storage/0453/doc_00139903 [00:34:28]file doc_00139904 [00:34:29]remove file /storage/0453/doc_00139904 [00:34:29]file doc_00139905 [00:34:29]remove file /storage/0453/doc_00139905 [00:34:29]file doc_00139906 [00:34:29]remove file /storage/0453/doc_00139906 [00:34:29]file doc_00139907 [00:34:29]remove file /storage/0453/doc_00139907 [00:34:29]file doc_00139908 [00:34:29]remove file /storage/0453/doc_00139908 [00:34:29]file doc_00139909 [00:34:29]remove file /storage/0453/doc_00139909 [00:34:29]file doc_00139910 [00:34:29]remove file /storage/0453/doc_00139910 [00:34:29]file doc_00139911 [00:34:29]remove file /storage/0453/doc_00139911 [00:34:29]file doc_00139912 [00:34:29]remove file /storage/0453/doc_00139912 [00:34:29]file doc_00139913 [00:34:29]remove file /storage/0453/doc_00139913 [00:34:29]file doc_00139914 [00:34:29]remove file /storage/0453/doc_00139914 [00:34:29]file doc_00139915 [00:34:29]remove file /storage/0453/doc_00139915 [00:34:29]file doc_00139916 [00:34:29]remove file /storage/0453/doc_00139916 [00:34:29]file doc_00139917 [00:34:29]remove file /storage/0453/doc_00139917 [00:34:29]file doc_00139918 [00:34:29]remove file /storage/0453/doc_00139918 [00:34:29]file doc_00139919 [00:34:29]remove file /storage/0453/doc_00139919 [00:34:29]file doc_00139920 [00:34:29]remove file /storage/0453/doc_00139920 [00:34:29]file doc_00139921 [00:34:29]remove file /storage/0453/doc_00139921 [00:34:29]file doc_00139922 [00:34:29]remove file /storage/0453/doc_00139922 [00:34:29]file doc_00139923 [00:34:29]remove file /storage/0453/doc_00139923 [00:34:29]file doc_00139924 [00:34:29]remove file /storage/0453/doc_00139924 [00:34:29]file doc_00139925 [00:34:29]remove file /storage/0453/doc_00139925 [00:34:29]file doc_00139926 [00:34:29]remove file /storage/0453/doc_00139926 [00:34:29]file doc_00139927 [00:34:29]remove file /storage/0453/doc_00139927 [00:34:29]file doc_00139928 [00:34:29]remove file /storage/0453/doc_00139928 [00:34:29]file doc_00139929 [00:34:29]remove file /storage/0453/doc_00139929 [00:34:29]file doc_00139930 [00:34:29]remove file /storage/0453/doc_00139930 [00:34:29]file doc_00139931 [00:34:29]remove file /storage/0453/doc_00139931 [00:34:29]file doc_00139932 [00:34:29]remove file /storage/0453/doc_00139932 [00:34:29]file doc_00139933 [00:34:29]remove file /storage/0453/doc_00139933 [00:34:29]file doc_00139934 [00:34:29]remove file /storage/0453/doc_00139934 [00:34:29]file doc_00139935 [00:34:29]remove file /storage/0453/doc_00139935 [00:34:29]file doc_00139936 [00:34:29]remove file /storage/0453/doc_00139936 [00:34:29]file doc_00139937 [00:34:29]remove file /storage/0453/doc_00139937 [00:34:29]file doc_00139938 [00:34:29]remove file /storage/0453/doc_00139938 [00:34:29]file doc_00139939 [00:34:29]remove file /storage/0453/doc_00139939 [00:34:29]file doc_00139940 [00:34:29]remove file /storage/0453/doc_00139940 [00:34:29]file doc_00139941 [00:34:29]remove file /storage/0453/doc_00139941 [00:34:29]file doc_00139942 [00:34:29]remove file /storage/0453/doc_00139942 [00:34:29]file doc_00139943 [00:34:29]remove file /storage/0453/doc_00139943 [00:34:29]file doc_00139944 [00:34:29]remove file /storage/0453/doc_00139944 [00:34:29]file doc_00139945 [00:34:29]remove file /storage/0453/doc_00139945 [00:34:29]file doc_00139946 [00:34:29]remove file /storage/0453/doc_00139946 [00:34:29]file doc_00139947 [00:34:29]remove file /storage/0453/doc_00139947 [00:34:29]file doc_00139948 [00:34:29]remove file /storage/0453/doc_00139948 [00:34:29]file doc_00139949 [00:34:29]remove file /storage/0453/doc_00139949 [00:34:29]file doc_00139950 [00:34:29]remove file /storage/0453/doc_00139950 [00:34:29]file doc_00139951 [00:34:29]remove file /storage/0453/doc_00139951 [00:34:29]file doc_00139952 [00:34:29]remove file /storage/0453/doc_00139952 [00:34:29]file doc_00139953 [00:34:29]remove file /storage/0453/doc_00139953 [00:34:29]file doc_00139954 [00:34:29]remove file /storage/0453/doc_00139954 [00:34:29]file doc_00139955 [00:34:29]remove file /storage/0453/doc_00139955 [00:34:29]file doc_00139956 [00:34:29]remove file /storage/0453/doc_00139956 [00:34:29]file doc_00139957 [00:34:29]remove file /storage/0453/doc_00139957 [00:34:29]file doc_00139958 [00:34:29]remove file /storage/0453/doc_00139958 [00:34:29]file doc_00139959 [00:34:29]remove file /storage/0453/doc_00139959 [00:34:29]file doc_00139960 [00:34:29]remove file /storage/0453/doc_00139960 [00:34:29]file doc_00139961 [00:34:29]remove file /storage/0453/doc_00139961 [00:34:29]file doc_00139962 [00:34:29]remove file /storage/0453/doc_00139962 [00:34:29]file doc_00139963 [00:34:29]remove file /storage/0453/doc_00139963 [00:34:29]file doc_00139964 [00:34:29]remove file /storage/0453/doc_00139964 [00:34:29]file doc_00139965 [00:34:29]remove file /storage/0453/doc_00139965 [00:34:29]file doc_00139966 [00:34:29]remove file /storage/0453/doc_00139966 [00:34:29]file doc_00139967 [00:34:29]remove file /storage/0453/doc_00139967 [00:34:29]file doc_00139968 [00:34:29]remove file /storage/0453/doc_00139968 [00:34:29]file doc_00139969 [00:34:29]remove file /storage/0453/doc_00139969 [00:34:29]file doc_00139970 [00:34:29]remove file /storage/0453/doc_00139970 [00:34:29]file doc_00139971 [00:34:29]remove file /storage/0453/doc_00139971 [00:34:29]file doc_00139972 [00:34:29]remove file /storage/0453/doc_00139972 [00:34:29]file doc_00139973 [00:34:29]remove file /storage/0453/doc_00139973 [00:34:29]file doc_00139974 [00:34:29]remove file /storage/0453/doc_00139974 [00:34:29]file doc_00139975 [00:34:29]remove file /storage/0453/doc_00139975 [00:34:29]file doc_00139976 [00:34:29]remove file /storage/0453/doc_00139976 [00:34:29]file doc_00139977 [00:34:29]remove file /storage/0453/doc_00139977 [00:34:29]file doc_00139978 [00:34:29]remove file /storage/0453/doc_00139978 [00:34:29]file doc_00139979 [00:34:29]remove file /storage/0453/doc_00139979 [00:34:29]file doc_00139980 [00:34:29]remove file /storage/0453/doc_00139980 [00:34:29]file doc_00139981 [00:34:29]remove file /storage/0453/doc_00139981 [00:34:29]file doc_00139982 [00:34:29]remove file /storage/0453/doc_00139982 [00:34:29]remove dir /storage/0453 [00:34:29]ProcessDocumentItem done err = 0, tmpTLVsize=241 [00:34:29]tlvbuf is 00B3F530 [00:34:29]SAM_PROTO_ClearQueue [00:34:29]wFMCommunicate request_size=4 [00:34:29]MH_SAM_APDU [00:34:29]CAPDU: 80 09 00 00 [00:34:29]Write to MH i2c: E2 08 00 1A 17 80 09 00 00 00 00 00 00 A3 [00:34:29]Write i2c OK [00:34:29]MH_I2C_Read... [00:34:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:29]Read from MH i2c: E2 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: E2 03 00 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: E2 03 00 1A 17 00 90 00 A5 [00:34:29]RAPDU: 90 00 [00:34:29]wFMCommunicate OK [00:34:29]SAM_PROTO_ClearQueue done [00:34:29]KKMCreateOFDPacket [00:34:29]OFDProtocolAddRootSTLVToBuf [00:34:29]FM_MakeSignedData [00:34:29]FM_MakeSignedData [00:34:29]SAM_PROTO_SignData [00:34:29]wFMCommunicate request_size=4 [00:34:29]MH_SAM_APDU [00:34:29]CAPDU: 80 0D 01 02 [00:34:29]Write to MH i2c: E2 08 00 1B 17 80 0D 01 02 00 00 00 00 AB [00:34:29]Write i2c OK [00:34:29]MH_I2C_Read... [00:34:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:29]Read from MH i2c: E2 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: E2 03 00 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: E2 03 00 1B 17 00 90 00 A6 [00:34:29]RAPDU: 90 00 [00:34:29]wFMCommunicate OK [00:34:29]wFMCommunicate request_size=250 [00:34:29]MH_SAM_APDU [00:34:29]CAPDU: 80 0D 02 02 F5 02 00 F1 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 13 36 C5 66 0E 04 04 00 C6 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 F8 66 7D 10 E3 0F [00:34:29]Write to MH i2c: E2 FD 00 1C 17 80 0D 02 02 F5 00 02 00 F1 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 13 36 C5 66 0E 04 04 00 C6 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 F8 66 7D 10 E3 0F 00 00 C2 [00:34:29]Write i2c OK [00:34:29]MH_I2C_Read... [00:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:29]Read from MH i2c: E2 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: E2 03 00 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: E2 03 00 1C 17 00 90 00 A7 [00:34:29]RAPDU: 90 00 [00:34:29]wFMCommunicate OK [00:34:29]wFMCommunicate request_size=4 [00:34:29]MH_SAM_APDU [00:34:29]CAPDU: 80 0D 03 02 [00:34:29]Write to MH i2c: E2 08 00 1D 17 80 0D 03 02 00 00 00 00 AF [00:34:29]Write i2c OK [00:34:29]MH_I2C_Read... [00:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:29]Read from MH i2c: E2 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: E2 0B 00 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: E2 0B 00 1D 17 00 6E 47 46 C4 AD 60 A0 0F 90 00 2B [00:34:29]RAPDU: 6E 47 46 C4 AD 60 A0 0F 90 00 [00:34:29]wFMCommunicate OK [00:34:29]SAM_PROTO_SignData done [00:34:29]FM_MakeSignedData done [00:34:29]CreateOFDProtocolMessage [00:34:29]wFMCommunicate request_size=4 [00:34:29]MH_SAM_APDU [00:34:29]CAPDU: 80 11 00 00 [00:34:29]Write to MH i2c: E2 08 00 1E 17 80 11 00 00 00 00 00 00 AF [00:34:29]Write i2c OK [00:34:29]MH_I2C_Read... [00:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:30]Read from MH i2c: E2 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: E2 17 00 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: E2 17 00 1E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [00:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:34:30]wFMCommunicate OK [00:34:30]CreateOFDProtocolMessage done [00:34:30]OFDSenderStorePacket 139983 [00:34:30]StoreOFDPacket docnum=139983 [00:34:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 05 01 00 00 7F 88 FD 00 F8 1B 5A 02 01 00 02 00 F1 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 13 36 C5 66 0E 04 04 00 C6 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 F8 66 7D 10 E3 0F 6E 47 46 C4 AD 60 A0 0F [00:34:30]CheckFolder [00:34:30]dirname=/storage/ofd_packets [00:34:30]CheckFolder done [00:34:30]ProducePacketName [00:34:30]name=ofd_packets/00139983 [00:34:30]NVStorageSaveData ofd_packets/00139983 [00:34:30]File name is /storage/ofd_packets/00139983 [00:34:30]Write 291 bytes [00:34:30]NVStorageSaveData done [00:34:30]OFDSenderStorePacket done [00:34:30]KKMCreateOFDPacket done [00:34:30]NVStorageSaveData kkm_last_timestamp [00:34:30]File name is /storage/kkm_last_timestamp [00:34:30]Write 4 bytes [00:34:30]NVStorageSaveData done [00:34:30]ExternCall_PrintAddStr [00:34:30]wPrintStart [00:34:30]Write to MH i2c: 01 00 00 1F 17 36 [00:34:30]Write i2c OK [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: 01 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: 01 07 00 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: 01 07 00 1F 17 00 00 00 00 00 FF 0F 4B [00:34:30]RasterBufferAndPrint [00:34:30]line Отчет об открытии смены [00:34:30]line ФФД: 1.0 [00:34:30]line ИНН: 02508201610067 [00:34:30]line Кассир: Ст.Оператор [00:34:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:34:30]line Место: АЗС № 136 "Партнер Нефть" [00:34:30]line 21.08.2024 00:34 [00:34:30]line Смена: 454 [00:34:30]line РНМ: 0000000000092569 [00:34:30]line ЗНМ: 0300000067 [00:34:30]line ФД: 139983 [00:34:30]line ФМ: 0000000000871776 [00:34:30]line ФПД: 273119068611343 [00:34:30]written 0, free lines is 4095 [00:34:30]OFD Sender: Processing packet 139983 [packets to send 137, broken 136] [00:34:30]ProducePacketName [00:34:30]name=ofd_packets/00139983 [00:34:30]OFD Sender: To server: pG, [00:34:30]CommunicateWithHost lk.salyk.kg:30040 [00:34:30]ConnectInit lk.salyk.kg [00:34:30]Connected sock=10 [00:34:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 05 01 00 00 7F 88 FD 00 F8 1B 5A 02 01 00 02 00 F1 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 13 36 C5 66 0E 04 04 00 C6 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 F8 66 7D 10 E3 0F 6E 47 46 C4 AD 60 A0 0F [00:34:30]Write to MH i2c: 01 00 00 31 17 48 [00:34:30]Write i2c OK [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: 01 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: 01 07 00 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: 01 07 00 31 17 00 00 00 00 00 F2 0E 4F [00:34:30]RasterBufferAndPrint [00:34:30]line [00:34:30]line [00:34:30]line [00:34:30]line [00:34:30]line [00:34:30]written 0, free lines is 3841 [00:34:30]MH_Cut [00:34:30]Write to MH i2c: D1 01 00 38 17 01 21 [00:34:30]Write i2c OK [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: D1 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: D1 01 00 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: D1 01 00 38 17 00 20 [00:34:30]Write to MH i2c: 01 00 00 39 17 50 [00:34:30]Write i2c OK [00:34:30]MH_I2C_Read... [00:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FE 42 47 00 C3 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 22 02 00 F4 03 04 00 A7 DC C4 66 B6 04 01 00 00 9E 4F CE 08 70 56 AD EC [00:34:30]CommunicateWithHost err = 0 [00:34:30]CheckOFDResponse [00:34:30]1017 (14) - 77093643461234 [00:34:30]1041 (16) - 0000000000871776 [00:34:30]1040 (4) - 139983 [00:34:30]1012 (4) - 20.08.2024 18:12 [00:34:30]1206 (1) - 0 [00:34:30]OFD Sender: Remove packet 139983 [00:34:30]ProducePacketName [00:34:30]name=ofd_packets/00139983 [00:34:30]NVStorageDeleteData [00:34:30]*** Cut start [00:34:30]*** Partial cut [00:34:30]*** CUTSNS_PIN = 1 [00:34:30]*** CUTSNS_PIN = 0 [00:34:30]*** Brake cut motor [00:34:31]OFD Sender: No OFD packet to send [00:34:31]Read from MH i2c: 01 [00:34:31]MH_I2C_Read... [00:34:31]*** Stop cut motor [00:34:31]*** Cut end [00:34:31]Read from MH i2c: 01 07 00 [00:34:31]MH_I2C_Read... [00:34:31]Read from MH i2c: 01 07 00 39 17 00 00 00 00 00 FF 0F 65 [00:34:31]process_action open_shift done [00:34:31]requested_data is exist [00:34:31]produce_requested_data [00:34:31]requested_item fd.num is exist - process it [00:34:31]SAM_PROTO_GetFieldsCounters [00:34:31]wFMCommunicate request_size=4 [00:34:31]MH_SAM_APDU [00:34:31]CAPDU: 80 13 00 00 [00:34:31]Write to MH i2c: E2 08 00 3A 17 80 13 00 00 00 00 00 00 CD [00:34:31]Write i2c OK [00:34:31]MH_I2C_Read... [00:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:31]Read from MH i2c: E2 [00:34:31]MH_I2C_Read... [00:34:31]Read from MH i2c: E2 62 00 [00:34:31]MH_I2C_Read... [00:34:31]Read from MH i2c: E2 62 00 3A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 22 02 00 0E 04 04 00 C6 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 B2 [00:34:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 22 02 00 0E 04 04 00 C6 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:34:31]wFMCommunicate OK [00:34:31]SAM_PROTO_GetFieldsCounters done [00:34:31]requested_item shift.num is exist - process it [00:34:31]requested_item shift.opened is exist - process it [00:34:31]req_shift_opened [00:34:31]FM_GetShiftState [00:34:31]SAM_PROTO_GetShiftState [00:34:31]wFMCommunicate request_size=4 [00:34:31]MH_SAM_APDU [00:34:31]CAPDU: 80 13 01 00 [00:34:31]Write to MH i2c: E2 08 00 3B 17 80 13 01 00 00 00 00 00 CF [00:34:31]Write i2c OK [00:34:31]MH_I2C_Read... [00:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:31]Read from MH i2c: E2 [00:34:31]MH_I2C_Read... [00:34:31]Read from MH i2c: E2 0E 00 [00:34:31]MH_I2C_Read... [00:34:31]Read from MH i2c: E2 0E 00 3B 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4F [00:34:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:34:31]wFMCommunicate OK [00:34:31]SAM_PROTO_GetShiftState done [00:34:31]FM_GetShiftState done [00:34:31]req_shift_opened done [00:34:31]requested_item shift.open_date is exist - process it [00:34:31]req_shift_open_date [00:34:31]req_shift_open_date done [00:34:31]produce_requested_data done [00:34:31]produce_requested_data return {"fd.num":139983,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:34:31]process_action_free open_shift [00:34:31]json_value_free [00:34:31]json_value_free done [00:34:31]process_json_proto returns [00:34:31]Send response to host [00:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139983,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:34:31]free response buf [00:34:31]execute_script done [00:34:31]execute_script returns [00:34:31]free content buf [00:34:31]Sock 9.Close socket [00:34:31]Sock 9.Thread stoped [00:34:31]accept exits with 7 [00:34:31]New connection [00:34:31]New thread 3066764644 created [00:34:31]Thread 3066908004 joined [00:34:31]Waiting for new connection... [00:34:31] Sock 7.Parse request [00:34:31]Sock 7.Check first char [00:34:31]Sock 7.First char is OK [00:34:31]request: POST /json_proto HTTP/1.0 [00:34:31]Method: POST [00:34:31]URL: /json_proto [00:34:31]Method is POST - this is cgi request [00:34:31]url: /json_proto [00:34:31]query_string will be loaded in cgi processing [00:34:31]execute_cgi json_proto POST (null) [00:34:31]execute_cgi path=json_proto method=POST [00:34:31]POST find Content-Length [00:34:31]Host: 172.17.45.67:8080 [00:34:31]Content-Length: 331 [00:34:31]Content-Type: application/json [00:34:31] [00:34:31]POST finish read [00:34:31]Found Content-Length = 331 [00:34:31]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:34:31]execute_script... [00:34:31]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:34:31]POST & json_proto [00:34:31]process_json_proto [00:34:31]json parsed OK: [00:34:31]protocol is kg_v1.0 [00:34:31]action value=get_value [00:34:31]process_action get_value [00:34:31]cmd_get_value [00:34:31]process_action get_value done [00:34:31]requested_data is exist [00:34:31]produce_requested_data [00:34:31]requested_item fm.sale.total is exist - process it [00:34:31]SAM_PROTO_GetFMData [00:34:31]wFMCommunicate request_size=4 [00:34:31]MH_SAM_APDU [00:34:31]CAPDU: 80 13 03 00 [00:34:31]Write to MH i2c: E2 08 00 3C 17 80 13 03 00 00 00 00 00 D2 [00:34:31]Write i2c OK [00:34:31]MH_I2C_Read... [00:34:32]int [00:34:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:34:32]*** FLAG_PRN_KEY set [00:34:32]Read from MH i2c: E2 [00:34:32]MH_I2C_Read... [00:34:32]Read from MH i2c: E2 FD 00 [00:34:32]MH_I2C_Read... [00:34:32]Read from MH i2c: E2 FD 00 3C 17 00 C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 70 04 05 00 38 65 FB F1 01 72 04 04 00 E7 D7 38 4A 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 04 1E CB 3C 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 EA CD 10 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 17 [00:34:32]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 42 1F 02 00 69 04 A3 00 6F 04 04 00 C1 1E 02 00 B1 04 05 00 1F 3D 34 3C 02 Write to MH i2c: 01 70 00 04 00 05 3D 00 17 38 54 65 [00:34:32]FB F1 01 72 04 04 00 E7 D7 38 4A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 Write i2c OK [00:34:32]00 MH_I2C_Read... [00:34:32]00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 04 1E CB 3C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 Read from MH i2c: EF 01 03 [00:34:32]0D MH_I2C_Read... [00:34:32]00 Read from MH i2c: F6 01 03 07 01 00 00 [00:34:32]01 MH_I2C_Read... [00:34:32]F7 Read from MH i2c: 03 01 04 07 00 00 EA 3D CD 17 10 00 05 08 EF 00 00 03 00 09 FF 00 0F F6 71 03 [00:34:32]01 state=0 [00:34:32]00 Key pressed [00:34:32]02 Feed [00:34:32]F7 Write to MH i2c: 03 D8 00 00 00 00 EF 3E 03 17 09 2C 00 [00:34:32]F6 03 01 Write i2c OK [00:34:32]00 MH_I2C_Read... [00:34:32]03 Read from MH i2c: F7 D8 03 [00:34:32]00 MH_I2C_Read... [00:34:32]00 Read from MH i2c: EF D8 03 01 09 00 00 [00:34:32]F6 MH_I2C_Read... [00:34:32]03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 81 Read from MH i2c: 00 D8 00 01 00 00 B1 3E 04 17 04 00 00 2D 94 [00:34:32]3F int line is 0 - check status [00:34:32]FD Write to MH i2c: 01 01 70 00 04 00 04 3F 00 17 94 56 3F [00:34:32]FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 Write i2c OK [00:34:32]36 MH_I2C_Read... [00:34:32]EF Read from MH i2c: 03 01 09 [00:34:32]00 MH_I2C_Read... [00:34:32]90 Read from MH i2c: 00 01 [00:34:32]07 wFMCommunicate OK [00:34:32]00 wFMCommunicate request_size=4 [00:34:32] [00:34:32]MH_SAM_APDU [00:34:32]MH_I2C_Read... [00:34:32]CAPDU: 80 17 00 00 [00:34:32]Read from MH i2c: 01 07 00 3F 17 00 48 00 00 00 3C 00 E1 [00:34:32]state=2 [00:34:32]Write to MH i2c: Key pressed [00:34:32]E2 08 00 40 17 80 17 00 00 00 00 00 00 D7 [00:34:32]*** FLAG_PRN_KEY reset [00:34:32]int [00:34:32]Write i2c OK [00:34:32]MH_I2C_Read... [00:34:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:32]Read from MH i2c: E2 [00:34:32]MH_I2C_Read... [00:34:32]Read from MH i2c: E2 FD 00 [00:34:32]MH_I2C_Read... [00:34:32]Read from MH i2c: E2 FD 00 40 17 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** FLAG_PRN_KEY set [00:34:32]03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 DC [00:34:32]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Write to MH i2c: 00 01 F6 00 03 00 01 41 00 17 01 58 F7 [00:34:32]03 00 00 EF Write i2c OK [00:34:32]03 MH_I2C_Read... [00:34:32]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 01 03 [00:34:32]01 MH_I2C_Read... [00:34:32]00 Read from MH i2c: 04 01 F7 07 03 00 00 [00:34:32]00 MH_I2C_Read... [00:34:32]EF 03 Read from MH i2c: 09 01 00 07 F6 00 03 41 01 17 00 00 05 08 F7 00 03 00 00 00 00 FF EF 0F 03 75 09 [00:34:32]00 state=2 [00:34:32]F6 Key pressed [00:34:32]03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:34:32]wFMCommunicate OK [00:34:32]wFMCommunicate request_size=4 [00:34:32]MH_SAM_APDU [00:34:32]CAPDU: 80 17 00 00 [00:34:32]Write to MH i2c: E2 08 00 42 17 80 17 00 00 00 00 00 00 D9 [00:34:32]Write i2c OK [00:34:32]MH_I2C_Read... [00:34:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:33]Read from MH i2c: E2 [00:34:33]MH_I2C_Read... [00:34:33]Read from MH i2c: E2 FD 00 [00:34:33]MH_I2C_Read... [00:34:33]Read from MH i2c: E2 FD 00 42 17 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 int [00:34:33]*** FLAG_PRN_KEY reset [00:34:33]03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 EE [00:34:33]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 Write to MH i2c: 00 01 EE 00 03 00 09 43 00 17 F2 5A 03 [00:34:33]01 00 01 Write i2c OK [00:34:33]F3 MH_I2C_Read... [00:34:33]03 Read from MH i2c: 00 01 00 [00:34:33]EF MH_I2C_Read... [00:34:33]03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 01 01 07 00 00 02 [00:34:33]F7 MH_I2C_Read... [00:34:33]03 00 Read from MH i2c: 00 01 EF 07 03 00 09 43 00 17 F6 00 03 00 01 00 00 00 00 03 FF F7 0F 03 6F 00 [00:34:33]00 state=2 [00:34:33]EF Stop feed [00:34:33]03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:34:33]wFMCommunicate OK [00:34:33]wFMCommunicate request_size=4 [00:34:33]MH_SAM_APDU [00:34:33]CAPDU: 80 17 00 00 [00:34:33]Write to MH i2c: E2 08 00 44 17 80 17 00 00 00 00 00 00 DB [00:34:33]Write i2c OK [00:34:33]MH_I2C_Read... [00:34:33]int [00:34:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:33]*** FLAG_PRN_KEY set [00:34:33]Read from MH i2c: E2 [00:34:33]MH_I2C_Read... [00:34:33]Read from MH i2c: E2 FD 00 [00:34:33]MH_I2C_Read... [00:34:33]Read from MH i2c: E2 FD 00 44 17 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 53 [00:34:33]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 Write to MH i2c: 00 01 00 00 EF 00 03 45 09 17 00 5C F6 [00:34:33]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 Write i2c OK [00:34:33]00 MH_I2C_Read... [00:34:33]00 Read from MH i2c: 00 01 00 [00:34:33]B1 MH_I2C_Read... [00:34:33]04 Read from MH i2c: 00 01 00 07 70 00 04 [00:34:33]00 MH_I2C_Read... [00:34:33]00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 Read from MH i2c: 01 01 00 07 00 00 F3 45 03 17 00 00 00 08 EE 00 03 09 00 F2 03 01 00 01 F3 03 00 00 00 EF 00 03 FF 09 0F 00 79 F6 [00:34:34]03 state=0 [00:34:34]01 Key pressed [00:34:34]00 Feed [00:34:34]*** FLAG_PRN_KEY reset [00:34:34]Write to MH i2c: 00 D8 F7 00 03 00 46 00 17 00 34 EF [00:34:34]90 00 Write i2c OK [00:34:34] [00:34:34]MH_I2C_Read... [00:34:34]wFMCommunicate OK [00:34:34]Read from MH i2c: wFMCommunicate request_size=4 [00:34:34]D8 MH_SAM_APDU [00:34:34] [00:34:34]CAPDU: MH_I2C_Read... [00:34:34]80 17 00 00 [00:34:34]Read from MH i2c: D8 01 00 [00:34:34]MH_I2C_Read... [00:34:34]Read from MH i2c: D8 01 00 46 17 00 35 [00:34:34]Write to MH i2c: int line is 0 - check status [00:34:34]E2 08 00 47 17 80 17 00 00 00 00 00 00 DE [00:34:34]Write i2c OK [00:34:34]MH_I2C_Read... [00:34:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:34:34]Read from MH i2c: E2 [00:34:34]MH_I2C_Read... [00:34:34]Read from MH i2c: E2 E1 00 [00:34:34]MH_I2C_Read... [00:34:34]Read from MH i2c: E2 E1 00 47 17 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CC [00:34:34]Write to MH i2c: RAPDU: 01 03 00 09 00 00 48 F6 17 03 5F 01 [00:34:34]00 01 F7 03 00 00 EF 03 Write i2c OK [00:34:34]09 MH_I2C_Read... [00:34:34]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 01 00 [00:34:34]03 MH_I2C_Read... [00:34:34]F7 Read from MH i2c: 03 01 00 07 00 00 EF [00:34:34]03 MH_I2C_Read... [00:34:34]09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 06 01 F7 07 03 00 00 48 00 17 D1 00 04 00 8D 00 00 00 6F 00 04 FF 04 0F 00 74 [00:34:34]00 state=2 [00:34:34]00 Stop feed [00:34:34]00 00 int [00:34:34]B1 Write to MH i2c: 04 01 00 00 00 00 49 17 60 [00:34:34]70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 Write i2c OK [00:34:34]MH_I2C_Read... [00:34:34]03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 Read from MH i2c: 03 01 00 [00:34:34]00 MH_I2C_Read... [00:34:34]EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 01 00 07 03 00 F7 [00:34:34]03 MH_I2C_Read... [00:34:34]00 Read from MH i2c: 00 01 EF 07 03 00 09 49 00 17 F6 00 03 00 01 00 00 00 04 00 F7 FF 03 0F 00 75 [00:34:34]00 state=0 [00:34:34]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:34]wFMCommunicate OK [00:34:34]SAM_PROTO_GetFMData done [00:34:34]requested_item fm.sale_refund.total is exist - process it [00:34:34]requested_item fm.buy.total is exist - process it [00:34:34]requested_item shift.sale.total is exist - process it [00:34:34]SAM_PROTO_GetShiftData [00:34:34]wFMCommunicate request_size=4 [00:34:34]MH_SAM_APDU [00:34:34]CAPDU: 80 13 02 00 [00:34:34]Write to MH i2c: E2 08 00 4A 17 80 13 02 00 00 00 00 00 DF [00:34:34]Write i2c OK [00:34:34]MH_I2C_Read... [00:34:35]int [00:34:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:35]*** FLAG_PRN_KEY set [00:34:35]Read from MH i2c: E2 [00:34:35]MH_I2C_Read... [00:34:35]Read from MH i2c: E2 FD 00 [00:34:35]MH_I2C_Read... [00:34:35]Read from MH i2c: E2 FD 00 4A 17 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 52 [00:34:35]Write to MH i2c: RAPDU: 01 A0 00 04 00 AA 4B 04 17 9C 62 04 [00:34:35]6E 04 Write i2c OK [00:34:35]04 MH_I2C_Read... [00:34:35]00 Read from MH i2c: 00 01 00 [00:34:35]00 MH_I2C_Read... [00:34:35]00 69 04 8D 00 Read from MH i2c: 6F 01 04 07 04 00 00 [00:34:35]00 MH_I2C_Read... [00:34:35]00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 Read from MH i2c: 75 01 00 07 EE 00 03 4B 09 17 00 00 F2 03 01 00 00 F3 03 00 08 00 00 EE 03 00 09 00 00 FF F2 0F 03 7F 01 [00:34:35]00 state=0 [00:34:35]01 Key pressed [00:34:35]F3 Feed [00:34:35]03 Write to MH i2c: 00 D8 00 00 EF 00 03 4C 09 17 00 3A *** FLAG_PRN_KEY reset [00:34:35] [00:34:35]F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 Write i2c OK [00:34:35]09 MH_I2C_Read... [00:34:35]00 Read from MH i2c: F6 D8 03 [00:34:35]01 MH_I2C_Read... [00:34:35]00 Read from MH i2c: 06 D8 F7 01 03 00 00 [00:34:35]00 MH_I2C_Read... [00:34:35]6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 Read from MH i2c: 00 D8 04 01 75 00 00 4C EE 17 03 00 09 3B 00 [00:34:35]F2 int line is 0 - check status [00:34:35]03 Write to MH i2c: 01 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 00 01 00 00 4D 00 17 F7 64 03 [00:34:35]00 00 Write i2c OK [00:34:35]EF MH_I2C_Read... [00:34:35]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:34:35]wFMCommunicate OK [00:34:35]wFMCommunicate request_size=4 [00:34:35]MH_SAM_APDU [00:34:35]CAPDU: 80 17 00 00 [00:34:35]Read from MH i2c: 01 [00:34:35]MH_I2C_Read... [00:34:35]Read from MH i2c: 01 07 00 [00:34:35]MH_I2C_Read... [00:34:35]Read from MH i2c: 01 07 00 4D 17 00 00 00 00 00 F5 0F 6F [00:34:35]state=2 [00:34:35]Stop feed [00:34:35]Write to MH i2c: E2 08 00 4E 17 80 17 00 00 00 00 00 00 E5 [00:34:35]int [00:34:35]Write i2c OK [00:34:35]MH_I2C_Read... [00:34:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:35]*** FLAG_PRN_KEY set [00:34:35]Read from MH i2c: E2 [00:34:35]MH_I2C_Read... [00:34:35]Read from MH i2c: E2 FD 00 [00:34:35]MH_I2C_Read... [00:34:35]Read from MH i2c: E2 FD 00 4E 17 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 *** FLAG_PRN_KEY reset [00:34:36]ED [00:34:36]RAPDU: Write to MH i2c: 01 00 00 4F 17 66 [00:34:36]Write i2c OK [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: 01 [00:34:36]MH_I2C_Read... [00:34:36]00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 03 01 F7 07 03 00 00 [00:34:36]00 MH_I2C_Read... [00:34:36]EF Read from MH i2c: 03 01 09 07 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 4F 09 17 00 00 F6 00 03 00 01 00 00 00 05 FF 0F F7 7B 03 [00:34:36]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 state=0 [00:34:36]70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE int [00:34:36]03 Write to MH i2c: 09 01 00 00 F2 00 03 50 01 17 00 67 01 [00:34:36]F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [00:34:36]00 04 F7 03 00 00 EF 03 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:34:36]wFMCommunicate OK [00:34:36]wFMCommunicate request_size=4 [00:34:36]MH_SAM_APDU [00:34:36]CAPDU: 80 17 00 00 [00:34:36]Write i2c OK [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: 01 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: 01 07 00 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [00:34:36]state=0 [00:34:36]Write to MH i2c: E2 08 00 51 17 80 17 00 00 00 00 00 00 E8 [00:34:36]Write i2c OK [00:34:36]MH_I2C_Read... [00:34:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:36]Read from MH i2c: E2 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 FD 00 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 FD 00 51 17 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 BA [00:34:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:34:36]wFMCommunicate OK [00:34:36]wFMCommunicate request_size=4 [00:34:36]MH_SAM_APDU [00:34:36]CAPDU: 80 17 00 00 [00:34:36]Write to MH i2c: E2 08 00 52 17 80 17 00 00 00 00 00 00 E9 [00:34:36]Write i2c OK [00:34:36]MH_I2C_Read... [00:34:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:36]Read from MH i2c: E2 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 FD 00 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 FD 00 52 17 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 5B [00:34:37]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:34:37]wFMCommunicate OK [00:34:37]wFMCommunicate request_size=4 [00:34:37]MH_SAM_APDU [00:34:37]CAPDU: 80 17 00 00 [00:34:37]Write to MH i2c: E2 08 00 53 17 80 17 00 00 00 00 00 00 EA [00:34:37]Write i2c OK [00:34:37]MH_I2C_Read... [00:34:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:34:37]Read from MH i2c: E2 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 BD 00 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 BD 00 53 17 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 D0 [00:34:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:37]wFMCommunicate OK [00:34:37]SAM_PROTO_GetShiftData done [00:34:37]requested_item shift.sale.total_cash is exist - process it [00:34:37]requested_item shift.sale_refund.total is exist - process it [00:34:37]requested_item shift.sale_refund.total_cash is exist - process it [00:34:37]requested_item shift.buy.total is exist - process it [00:34:37]requested_item shift.buy.total_cash is exist - process it [00:34:37]produce_requested_data done [00:34:37]produce_requested_data return {"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:34:37]process_action_free get_value [00:34:37]json_value_free [00:34:37]json_value_free done [00:34:37]process_json_proto returns [00:34:37]Send response to host [00:34:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":95999910.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:34:37]free response buf [00:34:37]execute_script done [00:34:37]execute_script returns [00:34:37]free content buf [00:34:37]Sock 7.Close socket [00:34:37]Sock 7.Thread stoped [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:02]accept exits with 9 [00:38:02]New connection [00:38:02]New thread 3066908004 created [00:38:02]Thread 3066764644 joined [00:38:02]Waiting for new connection... [00:38:02] Sock 9.Parse request [00:38:02]Sock 9.Check first char [00:38:02]Sock 9.First char is OK [00:38:02]request: POST /json_proto HTTP/1.0 [00:38:02]Method: POST [00:38:02]URL: /json_proto [00:38:02]Method is POST - this is cgi request [00:38:02]url: /json_proto [00:38:02]query_string will be loaded in cgi processing [00:38:02]execute_cgi json_proto POST (null) [00:38:02]execute_cgi path=json_proto method=POST [00:38:02]POST find Content-Length [00:38:02]Host: 172.17.45.67:8080 [00:38:02]Content-Length: 677 [00:38:02]Content-Type: application/json [00:38:02] [00:38:02]POST finish read [00:38:02]Found Content-Length = 677 [00:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:02]execute_script... [00:38: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)593838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:02]POST & json_proto [00:38:02]process_json_proto [00:38:02]json parsed OK: [00:38:02]protocol is kg_v1.0 [00:38:02]action value=close_receipt [00:38:02]process_action close_receipt [00:38:02]cmd_close_receipt [00:38:02]MH_GetDate [00:38:02]Write to MH i2c: F0 00 00 54 17 5A [00:38:02]Write i2c OK [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: F0 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: F0 09 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: F0 09 00 54 17 00 EB 36 C5 66 5F 7F 2B 66 1E [00:38:02]GetLastDocTimeStamp 1724200467 [00:38:02]current date 1724200683 [00:38:02]FM_GetShiftState [00:38:02]SAM_PROTO_GetShiftState [00:38:02]wFMCommunicate request_size=4 [00:38:02]MH_SAM_APDU [00:38:02]CAPDU: 80 13 01 00 [00:38:02]Write to MH i2c: E2 08 00 55 17 80 13 01 00 00 00 00 00 E9 [00:38:02]Write i2c OK [00:38:02]MH_I2C_Read... [00:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:02]Read from MH i2c: E2 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 0E 00 [00:38:02]MH_I2C_Read... [00:38:02]Read from MH i2c: E2 0E 00 55 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 69 [00:38:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:38:02]wFMCommunicate OK [00:38:02]SAM_PROTO_GetShiftState done [00:38:02]FM_GetShiftState done [00:38:02]opened in 1724200467 [00:38:02]opened+sec_in_day 1724286867 [00:38:02]quantity*price = 50036 [00:38:02]sum+1 = 50037 [00:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 1 21.08.2024 00:38 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139984 ФПД: 252986921377919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T003803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139984&fm=252986921377919&tin=02508201610067®Number=0000000000092569&sum=50000 [00:38:03]StoreToDocumentArchive [00:38:03]shift 454 fd 139984 [00:38:03]save to /storage/0454/doc_00139984 [00:38:03]save last doc name /storage/0454/doc_00139984 to /storage/kkm_last_doc_name [00:38:03]save OK [00:38:03]Clear old archive folders... [00:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:03]tlvbuf is 00A33C30 [00:38:03]SAM_PROTO_ClearQueue [00:38:03]wFMCommunicate request_size=4 [00:38:03]MH_SAM_APDU [00:38:03]CAPDU: 80 09 00 00 [00:38:03]Write to MH i2c: E2 08 00 62 17 80 09 00 00 00 00 00 00 EB [00:38:03]Write i2c OK [00:38:03]MH_I2C_Read... [00:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:03]Read from MH i2c: E2 [00:38:03]MH_I2C_Read... [00:38:03]Read from MH i2c: E2 03 00 [00:38:03]MH_I2C_Read... [00:38:03]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [00:38:03]RAPDU: 90 00 [00:38:03]wFMCommunicate OK [00:38:03]SAM_PROTO_ClearQueue done [00:38:03]KKMCreateOFDPacket [00:38:03]OFDProtocolAddRootSTLVToBuf [00:38:03]FM_MakeSignedData [00:38:03]FM_MakeSignedData [00:38:03]SAM_PROTO_SignData [00:38:03]wFMCommunicate request_size=4 [00:38:03]MH_SAM_APDU [00:38:03]CAPDU: 80 0D 01 02 [00:38:03]Write to MH i2c: E2 08 00 63 17 80 0D 01 02 00 00 00 00 F3 [00:38:03]Write i2c OK [00:38:03]MH_I2C_Read... [00:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:03]Read from MH i2c: E2 [00:38:03]MH_I2C_Read... [00:38:03]Read from MH i2c: E2 03 00 [00:38:03]MH_I2C_Read... [00:38:03]Read from MH i2c: E2 03 00 63 17 00 90 00 EE [00:38:03]RAPDU: 90 00 [00:38:03]wFMCommunicate OK [00:38:03]wFMCommunicate request_size=255 [00:38:03]MH_SAM_APDU [00:38:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 EB 36 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 22 02 00 35 04 06 00 E6 [00:38:03]Write to MH i2c: E2 02 01 64 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EB 36 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 22 02 00 35 04 06 00 E6 00 00 6A [00:38:03]Write i2c OK [00:38:03]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 64 17 00 90 00 EF [00:38:04]RAPDU: 90 00 [00:38:04]wFMCommunicate OK [00:38:04]wFMCommunicate request_size=10 [00:38:04]MH_SAM_APDU [00:38:04]CAPDU: 80 0D 02 02 05 17 1B 94 E0 7F [00:38:04]Write to MH i2c: E2 0D 00 65 17 80 0D 02 02 05 00 17 1B 94 E0 7F 00 00 25 [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 03 00 65 17 00 90 00 F0 [00:38:04]RAPDU: 90 00 [00:38:04]wFMCommunicate OK [00:38:04]wFMCommunicate request_size=4 [00:38:04]MH_SAM_APDU [00:38:04]CAPDU: 80 0D 03 02 [00:38:04]Write to MH i2c: E2 08 00 66 17 80 0D 03 02 00 00 00 00 F8 [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 0B 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 0B 00 66 17 00 0B 7A 9B 2D 63 D3 8F A7 90 00 B2 [00:38:04]RAPDU: 0B 7A 9B 2D 63 D3 8F A7 90 00 [00:38:04]wFMCommunicate OK [00:38:04]SAM_PROTO_SignData done [00:38:04]FM_MakeSignedData done [00:38:04]CreateOFDProtocolMessage [00:38:04]wFMCommunicate request_size=4 [00:38:04]MH_SAM_APDU [00:38:04]CAPDU: 80 11 00 00 [00:38:04]Write to MH i2c: E2 08 00 67 17 80 11 00 00 00 00 00 00 F8 [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:04]Read from MH i2c: E2 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 17 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: E2 17 00 67 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [00:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:38:04]wFMCommunicate OK [00:38:04]CreateOFDProtocolMessage done [00:38:04]OFDSenderStorePacket 139984 [00:38:04]StoreOFDPacket docnum=139984 [00:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BA 4B 07 01 F4 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EB 36 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 22 02 00 35 04 06 00 E6 17 1B 94 E0 7F 0B 7A 9B 2D 63 D3 8F A7 [00:38:04]CheckFolder [00:38:04]dirname=/storage/ofd_packets [00:38:04]CheckFolder done [00:38:04]ProducePacketName [00:38:04]name=ofd_packets/00139984 [00:38:04]NVStorageSaveData ofd_packets/00139984 [00:38:04]File name is /storage/ofd_packets/00139984 [00:38:04]Write 301 bytes [00:38:04]NVStorageSaveData done [00:38:04]OFDSenderStorePacket done [00:38:04]KKMCreateOFDPacket done [00:38:04]NVStorageSaveData kkm_last_timestamp [00:38:04]File name is /storage/kkm_last_timestamp [00:38:04]Write 4 bytes [00:38:04]NVStorageSaveData done [00:38:04]ExternCall_PrintAddStr [00:38:04]wPrintStart [00:38:04]Write to MH i2c: 01 00 00 68 17 7F [00:38:04]Write i2c OK [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: 01 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: 01 07 00 [00:38:04]MH_I2C_Read... [00:38:04]Read from MH i2c: 01 07 00 68 17 00 00 00 00 00 FF 0F 94 [00:38:04]RasterBufferAndPrint [00:38:04]line Счет N : (1)593838 [00:38:04]line ИНН: 02508201610067 [00:38:04]line Контрольно-Кассовый Чек [00:38:04]line ПРОДАЖА [00:38:04]line ТРК (МРК, ГНК) : 52 [00:38:04]line Товар: 2710124130 [00:38:04]line Аи-92-К-5 [00:38:04]line 7.380 * 67.80 [00:38:04]line = 500.36 [00:38:04]line НДС 12% НСП 1% [00:38:04]line > о реализуемом товаре [00:38:04]line ОКРУГЛЕНИЕ: -0.36 [00:38:04]line ИТОГО: 500.00 [00:38:04]line Внесено: 500.00 [00:38:04]line СДАЧА: 0.00 [00:38:04]line НСП 1% : 4.43 [00:38:04]line НДС 12% : 53.14 [00:38:04]line Наличными: 500.00 [00:38:04]line Безнал.: 0.00 [00:38:04]line Место: АЗС № 136 "Партнер Нефть" [00:38:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:38:04]line СНО: Общий режим [00:38:04]line Чек 1 21.08.2024 00:38 [00:38:04]line Смена: 454 ФФД: 1.0 [00:38:04]line ЗНМ: 0300000067 [00:38:04]line РНМ: 0000000000092569 [00:38:04]line Версия ККМ: 001 [00:38:04]line ФМ: 0000000000871776 [00:38:04]line ФД: 139984 [00:38:04]line ФПД: 252986921377919 [00:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T003803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139984&fm=252986921377919&tin=02508201610067®Number=0000000000092569&sum=50000 [00:38:04]OFD Sender: Processing packet 139984 [packets to send 137, broken 136] [00:38:04]ProducePacketName [00:38:04]name=ofd_packets/00139984 [00:38:04]OFD Sender: To server: pG, [00:38:04]CommunicateWithHost lk.salyk.kg:30040 [00:38:04]ConnectInit lk.salyk.kg [00:38:04]written 0, free lines is 4095 [00:38:04]Connected sock=10 [00:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BA 4B 07 01 F4 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EB 36 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 22 02 00 35 04 06 00 E6 17 1B 94 E0 7F 0B 7A 9B 2D 63 D3 8F A7 [00:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8E C4 47 00 07 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 22 02 00 F4 03 04 00 7D DD C4 66 B6 04 01 00 00 B8 38 8E 32 F5 15 4E CB [00:38:05]CommunicateWithHost err = 0 [00:38:05]CheckOFDResponse [00:38:05]1017 (14) - 77093643461234 [00:38:05]1041 (16) - 0000000000871776 [00:38:05]1040 (4) - 139984 [00:38:05]1012 (4) - 20.08.2024 18:16 [00:38:05]1206 (1) - 0 [00:38:05]OFD Sender: Remove packet 139984 [00:38:05]ProducePacketName [00:38:05]name=ofd_packets/00139984 [00:38:05]NVStorageDeleteData [00:38:05]Write to MH i2c: 01 00 00 93 17 AA [00:38:05]Write i2c OK [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: 01 [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: 01 07 00 [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: 01 07 00 93 17 00 00 00 00 00 D4 0C 91 [00:38:05]RasterBufferAndPrint [00:38:05]line [00:38:05]line [00:38:05]line [00:38:05]line [00:38:05]line [00:38:05]written 0, free lines is 3290 [00:38:05]MH_Cut [00:38:05]Write to MH i2c: D1 01 00 9A 17 01 83 [00:38:05]Write i2c OK [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: D1 [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: D1 01 00 [00:38:05]MH_I2C_Read... [00:38:05]Read from MH i2c: D1 01 00 9A 17 00 82 [00:38:05]Write to MH i2c: 01 00 00 9B 17 B2 [00:38:05]Write i2c OK [00:38:05]MH_I2C_Read... [00:38:05]OFD Sender: No OFD packet to send [00:38:05]*** Cut start [00:38:05]*** Partial cut [00:38:05]*** CUTSNS_PIN = 1 [00:38:05]*** CUTSNS_PIN = 0 [00:38:05]*** Brake cut motor [00:38:06]Read from MH i2c: 01 [00:38:06]MH_I2C_Read... [00:38:06]*** Stop cut motor [00:38:06]*** Cut end [00:38:06]Read from MH i2c: 01 07 00 [00:38:06]MH_I2C_Read... [00:38:06]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 FF 0F C7 [00:38:06]process_action close_receipt done [00:38:06]requested_data is exist [00:38:06]produce_requested_data [00:38:06]requested_item fm.sn is exist - process it [00:38:06]wFMCommunicate request_size=4 [00:38:06]MH_SAM_APDU [00:38:06]CAPDU: 80 11 00 00 [00:38:06]Write to MH i2c: E2 08 00 9C 17 80 11 00 00 00 00 00 00 2D [00:38:06]Write i2c OK [00:38:06]MH_I2C_Read... [00:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:06]Read from MH i2c: E2 [00:38:06]MH_I2C_Read... [00:38:06]Read from MH i2c: E2 17 00 [00:38:06]MH_I2C_Read... [00:38:06]Read from MH i2c: E2 17 00 9C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [00:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:38:06]wFMCommunicate OK [00:38:06]requested_item fd.num is exist - process it [00:38:06]SAM_PROTO_GetFieldsCounters [00:38:06]wFMCommunicate request_size=4 [00:38:06]MH_SAM_APDU [00:38:06]CAPDU: 80 13 00 00 [00:38:06]Write to MH i2c: E2 08 00 9D 17 80 13 00 00 00 00 00 00 30 [00:38:06]Write i2c OK [00:38:06]MH_I2C_Read... [00:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:06]Read from MH i2c: E2 [00:38:06]MH_I2C_Read... [00:38:06]Read from MH i2c: E2 62 00 [00:38:06]MH_I2C_Read... [00:38:06]Read from MH i2c: E2 62 00 9D 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 22 02 00 0E 04 04 00 C6 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 19 [00:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 22 02 00 0E 04 04 00 C6 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:38:06]wFMCommunicate OK [00:38:06]SAM_PROTO_GetFieldsCounters done [00:38:06]requested_item shift.num is exist - process it [00:38:06]requested_item shift.opened is exist - process it [00:38:06]req_shift_opened [00:38:06]FM_GetShiftState [00:38:06]SAM_PROTO_GetShiftState [00:38:06]wFMCommunicate request_size=4 [00:38:06]MH_SAM_APDU [00:38:06]CAPDU: 80 13 01 00 [00:38:06]Write to MH i2c: E2 08 00 9E 17 80 13 01 00 00 00 00 00 32 [00:38:06]Write i2c OK [00:38:06]MH_I2C_Read... [00:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:06]Read from MH i2c: E2 [00:38:06]MH_I2C_Read... [00:38:06]Read from MH i2c: E2 0E 00 [00:38:06]MH_I2C_Read... [00:38:06]Read from MH i2c: E2 0E 00 9E 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B2 [00:38:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:38:06]wFMCommunicate OK [00:38:06]SAM_PROTO_GetShiftState done [00:38:06]FM_GetShiftState done [00:38:06]req_shift_opened done [00:38:06]requested_item shift.open_date is exist - process it [00:38:06]req_shift_open_date [00:38:06]req_shift_open_date done [00:38:06]produce_requested_data done [00:38:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139984,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:38:06]process_action_free close_receipt [00:38:06]json_value_free [00:38:06]json_value_free done [00:38:06]process_json_proto returns [00:38:06]Send response to host [00:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139984,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:38:06]free response buf [00:38:06]execute_script done [00:38:06]execute_script returns [00:38:06]free content buf [00:38:06]Sock 9.Close socket [00:38:06]Sock 9.Thread stoped [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:01]accept exits with 7 [00:40:01]New connection [00:40:01]New thread 3066764644 created [00:40:01]Thread 3066908004 joined [00:40:01]Waiting for new connection... [00:40:01] Sock 7.Parse request [00:40:01]Sock 7.Check first char [00:40:01]Sock 7.First char is OK [00:40:01]request: POST /json_proto HTTP/1.0 [00:40:01]Method: POST [00:40:01]URL: /json_proto [00:40:01]Method is POST - this is cgi request [00:40:01]url: /json_proto [00:40:01]query_string will be loaded in cgi processing [00:40:01]execute_cgi json_proto POST (null) [00:40:01]execute_cgi path=json_proto method=POST [00:40:01]POST find Content-Length [00:40:01]Host: 172.17.45.67:8080 [00:40:01]Content-Length: 677 [00:40:01]Content-Type: application/json [00:40:01] [00:40:01]POST finish read [00:40:01]Found Content-Length = 677 [00:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:01]execute_script... [00:40: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)593839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:01]POST & json_proto [00:40:01]process_json_proto [00:40:01]json parsed OK: [00:40:01]protocol is kg_v1.0 [00:40:01]action value=close_receipt [00:40:01]process_action close_receipt [00:40:01]cmd_close_receipt [00:40:01]MH_GetDate [00:40:01]Write to MH i2c: F0 00 00 9F 17 A5 [00:40:01]Write i2c OK [00:40:01]MH_I2C_Read... [00:40:01]Read from MH i2c: F0 [00:40:01]MH_I2C_Read... [00:40:01]Read from MH i2c: F0 09 00 [00:40:01]MH_I2C_Read... [00:40:01]Read from MH i2c: F0 09 00 9F 17 00 62 37 C5 66 5F 7F 2B 66 E1 [00:40:01]GetLastDocTimeStamp 1724200683 [00:40:01]current date 1724200802 [00:40:01]FM_GetShiftState [00:40:01]SAM_PROTO_GetShiftState [00:40:01]wFMCommunicate request_size=4 [00:40:01]MH_SAM_APDU [00:40:01]CAPDU: 80 13 01 00 [00:40:01]Write to MH i2c: E2 08 00 A0 17 80 13 01 00 00 00 00 00 34 [00:40:01]Write i2c OK [00:40:01]MH_I2C_Read... [00:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:01]Read from MH i2c: E2 [00:40:01]MH_I2C_Read... [00:40:01]Read from MH i2c: E2 0E 00 [00:40:01]MH_I2C_Read... [00:40:01]Read from MH i2c: E2 0E 00 A0 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B4 [00:40:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:40:01]wFMCommunicate OK [00:40:01]SAM_PROTO_GetShiftState done [00:40:01]FM_GetShiftState done [00:40:01]opened in 1724200467 [00:40:01]opened+sec_in_day 1724286867 [00:40:01]quantity*price = 60003 [00:40:01]sum+1 = 60004 [00:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 2 21.08.2024 00:40 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139985 ФПД: 223796082445898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T004002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139985&fm=223796082445898&tin=02508201610067®Number=0000000000092569&sum=60000 [00:40:02]StoreToDocumentArchive [00:40:02]shift 454 fd 139985 [00:40:02]save to /storage/0454/doc_00139985 [00:40:02]save last doc name /storage/0454/doc_00139985 to /storage/kkm_last_doc_name [00:40:02]save OK [00:40:02]Clear old archive folders... [00:40:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:40:02]tlvbuf is B6EB6640 [00:40:02]SAM_PROTO_ClearQueue [00:40:02]wFMCommunicate request_size=4 [00:40:02]MH_SAM_APDU [00:40:02]CAPDU: 80 09 00 00 [00:40:02]Write to MH i2c: E2 08 00 AD 17 80 09 00 00 00 00 00 00 36 [00:40:02]Write i2c OK [00:40:02]MH_I2C_Read... [00:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:03]Read from MH i2c: E2 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 03 00 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [00:40:03]RAPDU: 90 00 [00:40:03]wFMCommunicate OK [00:40:03]SAM_PROTO_ClearQueue done [00:40:03]KKMCreateOFDPacket [00:40:03]OFDProtocolAddRootSTLVToBuf [00:40:03]FM_MakeSignedData [00:40:03]FM_MakeSignedData [00:40:03]SAM_PROTO_SignData [00:40:03]wFMCommunicate request_size=4 [00:40:03]MH_SAM_APDU [00:40:03]CAPDU: 80 0D 01 02 [00:40:03]Write to MH i2c: E2 08 00 AE 17 80 0D 01 02 00 00 00 00 3E [00:40:03]Write i2c OK [00:40:03]MH_I2C_Read... [00:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:03]Read from MH i2c: E2 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 03 00 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 03 00 AE 17 00 90 00 39 [00:40:03]RAPDU: 90 00 [00:40:03]wFMCommunicate OK [00:40:03]wFMCommunicate request_size=255 [00:40:03]MH_SAM_APDU [00:40:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 62 37 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 22 02 00 35 04 06 00 CB [00:40:03]Write to MH i2c: E2 02 01 AF 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 62 37 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 22 02 00 35 04 06 00 CB 00 00 DB [00:40:03]Write i2c OK [00:40:03]MH_I2C_Read... [00:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:03]Read from MH i2c: E2 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 03 00 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 03 00 AF 17 00 90 00 3A [00:40:03]RAPDU: 90 00 [00:40:03]wFMCommunicate OK [00:40:03]wFMCommunicate request_size=10 [00:40:03]MH_SAM_APDU [00:40:03]CAPDU: 80 0D 02 02 05 8A 95 FF 0E 4A [00:40:03]Write to MH i2c: E2 0D 00 B0 17 80 0D 02 02 05 00 8A 95 FF 0E 4A 00 00 C1 [00:40:03]Write i2c OK [00:40:03]MH_I2C_Read... [00:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:03]Read from MH i2c: E2 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 03 00 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 03 00 B0 17 00 90 00 3B [00:40:03]RAPDU: 90 00 [00:40:03]wFMCommunicate OK [00:40:03]wFMCommunicate request_size=4 [00:40:03]MH_SAM_APDU [00:40:03]CAPDU: 80 0D 03 02 [00:40:03]Write to MH i2c: E2 08 00 B1 17 80 0D 03 02 00 00 00 00 43 [00:40:03]Write i2c OK [00:40:03]MH_I2C_Read... [00:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:03]Read from MH i2c: E2 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 0B 00 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 0B 00 B1 17 00 B1 7C AC F5 AE 74 F3 DC 90 00 03 [00:40:03]RAPDU: B1 7C AC F5 AE 74 F3 DC 90 00 [00:40:03]wFMCommunicate OK [00:40:03]SAM_PROTO_SignData done [00:40:03]FM_MakeSignedData done [00:40:03]CreateOFDProtocolMessage [00:40:03]wFMCommunicate request_size=4 [00:40:03]MH_SAM_APDU [00:40:03]CAPDU: 80 11 00 00 [00:40:03]Write to MH i2c: E2 08 00 B2 17 80 11 00 00 00 00 00 00 43 [00:40:03]Write i2c OK [00:40:03]MH_I2C_Read... [00:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:03]Read from MH i2c: E2 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 17 00 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: E2 17 00 B2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [00:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:40:03]wFMCommunicate OK [00:40:03]CreateOFDProtocolMessage done [00:40:03]OFDSenderStorePacket 139985 [00:40:03]StoreOFDPacket docnum=139985 [00:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8D 58 07 01 B7 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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 62 37 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 22 02 00 35 04 06 00 CB 8A 95 FF 0E 4A B1 7C AC F5 AE 74 F3 DC [00:40:03]CheckFolder [00:40:03]dirname=/storage/ofd_packets [00:40:03]CheckFolder done [00:40:03]ProducePacketName [00:40:03]name=ofd_packets/00139985 [00:40:03]NVStorageSaveData ofd_packets/00139985 [00:40:03]File name is /storage/ofd_packets/00139985 [00:40:03]Write 301 bytes [00:40:03]NVStorageSaveData done [00:40:03]OFDSenderStorePacket done [00:40:03]KKMCreateOFDPacket done [00:40:03]NVStorageSaveData kkm_last_timestamp [00:40:03]File name is /storage/kkm_last_timestamp [00:40:03]Write 4 bytes [00:40:03]NVStorageSaveData done [00:40:03]ExternCall_PrintAddStr [00:40:03]wPrintStart [00:40:03]Write to MH i2c: 01 00 00 B3 17 CA [00:40:03]Write i2c OK [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: 01 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: 01 07 00 [00:40:03]MH_I2C_Read... [00:40:03]Read from MH i2c: 01 07 00 B3 17 00 00 00 00 00 FF 0F DF [00:40:03]RasterBufferAndPrint [00:40:03]line Счет N : (1)593839 [00:40:03]line ИНН: 02508201610067 [00:40:03]line Контрольно-Кассовый Чек [00:40:03]line ПРОДАЖА [00:40:03]line ТРК (МРК, ГНК) : 62 [00:40:03]line Товар: 2710124130 [00:40:03]line Аи-92-К-5 [00:40:03]line 8.850 * 67.80 [00:40:03]line = 600.03 [00:40:03]line НДС 12% НСП 1% [00:40:03]line > о реализуемом товаре [00:40:03]line ОКРУГЛЕНИЕ: -0.03 [00:40:03]line ИТОГО: 600.00 [00:40:03]line Внесено: 600.00 [00:40:03]line СДАЧА: 0.00 [00:40:03]line НСП 1% : 5.31 [00:40:03]line НДС 12% : 63.72 [00:40:03]line Наличными: 600.00 [00:40:03]line Безнал.: 0.00 [00:40:03]line Место: АЗС № 136 "Партнер Нефть" [00:40:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:40:03]line СНО: Общий режим [00:40:03]line Чек 2 21.08.2024 00:40 [00:40:03]line Смена: 454 ФФД: 1.0 [00:40:03]line ЗНМ: 0300000067 [00:40:03]line РНМ: 0000000000092569 [00:40:03]line Версия ККМ: 001 [00:40:03]line ФМ: 0000000000871776 [00:40:03]line ФД: 139985 [00:40:03]line ФПД: 223796082445898 [00:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T004002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139985&fm=223796082445898&tin=02508201610067®Number=0000000000092569&sum=60000 [00:40:03]written 0, free lines is 4095 [00:40:03]OFD Sender: Processing packet 139985 [packets to send 137, broken 136] [00:40:03]ProducePacketName [00:40:03]name=ofd_packets/00139985 [00:40:03]OFD Sender: To server: pG, [00:40:03]CommunicateWithHost lk.salyk.kg:30040 [00:40:03]ConnectInit lk.salyk.kg [00:40:04]Connected sock=11 [00:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8D 58 07 01 B7 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 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 62 37 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 22 02 00 35 04 06 00 CB 8A 95 FF 0E 4A B1 7C AC F5 AE 74 F3 DC [00:40:04]Write to MH i2c: 01 00 00 DE 17 F5 [00:40:04]Write i2c OK [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: 01 [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: 01 07 00 [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: 01 07 00 DE 17 00 00 00 00 00 C9 0C D1 [00:40:04]RasterBufferAndPrint [00:40:04]line [00:40:04]line [00:40:04]line [00:40:04]line [00:40:04]line [00:40:04]written 0, free lines is 3279 [00:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 01 B8 47 00 FC 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 22 02 00 F4 03 04 00 F5 DD C4 66 B6 04 01 00 00 7A 7B FA B7 11 4F 65 38 [00:40:04]CommunicateWithHost err = 0 [00:40:04]CheckOFDResponse [00:40:04]1017 (14) - 77093643461234 [00:40:04]1041 (16) - 0000000000871776 [00:40:04]1040 (4) - 139985 [00:40:04]1012 (4) - 20.08.2024 18:18 [00:40:04]1206 (1) - 0 [00:40:04]OFD Sender: Remove packet 139985 [00:40:04]ProducePacketName [00:40:04]name=ofd_packets/00139985 [00:40:04]NVStorageDeleteData [00:40:04]MH_Cut [00:40:04]Write to MH i2c: D1 01 00 E5 17 01 CE [00:40:04]Write i2c OK [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: D1 [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: D1 01 00 [00:40:04]MH_I2C_Read... [00:40:04]Read from MH i2c: D1 01 00 E5 17 00 CD [00:40:04]Write to MH i2c: 01 00 00 E6 17 FD [00:40:04]Write i2c OK [00:40:04]MH_I2C_Read... [00:40:04]OFD Sender: No OFD packet to send [00:40:05]*** Cut start [00:40:05]*** Partial cut [00:40:05]*** CUTSNS_PIN = 1 [00:40:05]*** CUTSNS_PIN = 0 [00:40:05]*** Brake cut motor [00:40:05]Read from MH i2c: 01 [00:40:05]MH_I2C_Read... [00:40:05]*** Stop cut motor [00:40:05]*** Cut end [00:40:05]Read from MH i2c: 01 07 00 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: 01 07 00 E6 17 00 00 00 00 00 FF 0F 12 [00:40:05]process_action close_receipt done [00:40:05]requested_data is exist [00:40:05]produce_requested_data [00:40:05]requested_item fm.sn is exist - process it [00:40:05]wFMCommunicate request_size=4 [00:40:05]MH_SAM_APDU [00:40:05]CAPDU: 80 11 00 00 [00:40:05]Write to MH i2c: E2 08 00 E7 17 80 11 00 00 00 00 00 00 78 [00:40:05]Write i2c OK [00:40:05]MH_I2C_Read... [00:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:05]Read from MH i2c: E2 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 17 00 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 17 00 E7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [00:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:40:05]wFMCommunicate OK [00:40:05]requested_item fd.num is exist - process it [00:40:05]SAM_PROTO_GetFieldsCounters [00:40:05]wFMCommunicate request_size=4 [00:40:05]MH_SAM_APDU [00:40:05]CAPDU: 80 13 00 00 [00:40:05]Write to MH i2c: E2 08 00 E8 17 80 13 00 00 00 00 00 00 7B [00:40:05]Write i2c OK [00:40:05]MH_I2C_Read... [00:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:05]Read from MH i2c: E2 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 62 00 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 62 00 E8 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 22 02 00 0E 04 04 00 C6 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 68 [00:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 22 02 00 0E 04 04 00 C6 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:40:05]wFMCommunicate OK [00:40:05]SAM_PROTO_GetFieldsCounters done [00:40:05]requested_item shift.num is exist - process it [00:40:05]requested_item shift.opened is exist - process it [00:40:05]req_shift_opened [00:40:05]FM_GetShiftState [00:40:05]SAM_PROTO_GetShiftState [00:40:05]wFMCommunicate request_size=4 [00:40:05]MH_SAM_APDU [00:40:05]CAPDU: 80 13 01 00 [00:40:05]Write to MH i2c: E2 08 00 E9 17 80 13 01 00 00 00 00 00 7D [00:40:05]Write i2c OK [00:40:05]MH_I2C_Read... [00:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:05]Read from MH i2c: E2 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 0E 00 [00:40:05]MH_I2C_Read... [00:40:05]Read from MH i2c: E2 0E 00 E9 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FD [00:40:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:40:05]wFMCommunicate OK [00:40:05]SAM_PROTO_GetShiftState done [00:40:05]FM_GetShiftState done [00:40:05]req_shift_opened done [00:40:05]requested_item shift.open_date is exist - process it [00:40:05]req_shift_open_date [00:40:05]req_shift_open_date done [00:40:05]produce_requested_data done [00:40:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139985,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:40:05]process_action_free close_receipt [00:40:05]json_value_free [00:40:05]json_value_free done [00:40:05]process_json_proto returns [00:40:05]Send response to host [00:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139985,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:40:05]free response buf [00:40:05]execute_script done [00:40:05]execute_script returns [00:40:05]free content buf [00:40:05]Sock 7.Close socket [00:40:05]Sock 7.Thread stoped [00:40:09]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:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42: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:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:43]accept exits with 9 [00:52:43]New connection [00:52:43]New thread 3066908004 created [00:52:43]Thread 3066764644 joined [00:52:43]Waiting for new connection... [00:52:43] Sock 9.Parse request [00:52:43]Sock 9.Check first char [00:52:43]Sock 9.First char is OK [00:52:43]request: POST /json_proto HTTP/1.0 [00:52:43]Method: POST [00:52:43]URL: /json_proto [00:52:43]Method is POST - this is cgi request [00:52:43]url: /json_proto [00:52:43]query_string will be loaded in cgi processing [00:52:43]execute_cgi json_proto POST (null) [00:52:43]execute_cgi path=json_proto method=POST [00:52:43]POST find Content-Length [00:52:43]Host: 172.17.45.67:8080 [00:52:43]Content-Length: 678 [00:52:43]Content-Type: application/json [00:52:43] [00:52:43]POST finish read [00:52:43]Found Content-Length = 678 [00:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:43]execute_script... [00:52: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)593840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:43]POST & json_proto [00:52:43]process_json_proto [00:52:43]json parsed OK: [00:52:43]protocol is kg_v1.0 [00:52:43]action value=close_receipt [00:52:43]process_action close_receipt [00:52:43]cmd_close_receipt [00:52:43]MH_GetDate [00:52:43]Write to MH i2c: F0 00 00 EA 17 F0 [00:52:43]Write i2c OK [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: F0 [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: F0 09 00 [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: F0 09 00 EA 17 00 5C 3A C5 66 5F 7F 2B 66 29 [00:52:43]GetLastDocTimeStamp 1724200802 [00:52:43]current date 1724201564 [00:52:43]FM_GetShiftState [00:52:43]SAM_PROTO_GetShiftState [00:52:43]wFMCommunicate request_size=4 [00:52:43]MH_SAM_APDU [00:52:43]CAPDU: 80 13 01 00 [00:52:43]Write to MH i2c: E2 08 00 EB 17 80 13 01 00 00 00 00 00 7F [00:52:43]Write i2c OK [00:52:43]MH_I2C_Read... [00:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:43]Read from MH i2c: E2 [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: E2 0E 00 [00:52:43]MH_I2C_Read... [00:52:43]Read from MH i2c: E2 0E 00 EB 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FF [00:52:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:52:43]wFMCommunicate OK [00:52:43]SAM_PROTO_GetShiftState done [00:52:43]FM_GetShiftState done [00:52:43]opened in 1724200467 [00:52:43]opened+sec_in_day 1724286867 [00:52:43]quantity*price = 70037 [00:52:43]sum+1 = 70038 [00:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 3 21.08.2024 00:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139986 ФПД: 167379221515367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T005244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139986&fm=167379221515367&tin=02508201610067®Number=0000000000092569&sum=70000 [00:52:44]StoreToDocumentArchive [00:52:44]shift 454 fd 139986 [00:52:44]save to /storage/0454/doc_00139986 [00:52:44]save last doc name /storage/0454/doc_00139986 to /storage/kkm_last_doc_name [00:52:44]save OK [00:52:44]Clear old archive folders... [00:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:52:44]tlvbuf is 00A3D4D0 [00:52:44]SAM_PROTO_ClearQueue [00:52:44]wFMCommunicate request_size=4 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 09 00 00 [00:52:44]Write to MH i2c: E2 08 00 F8 17 80 09 00 00 00 00 00 00 81 [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:44]Read from MH i2c: E2 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 F8 17 00 90 00 83 [00:52:44]RAPDU: 90 00 [00:52:44]wFMCommunicate OK [00:52:44]SAM_PROTO_ClearQueue done [00:52:44]KKMCreateOFDPacket [00:52:44]OFDProtocolAddRootSTLVToBuf [00:52:44]FM_MakeSignedData [00:52:44]FM_MakeSignedData [00:52:44]SAM_PROTO_SignData [00:52:44]wFMCommunicate request_size=4 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 0D 01 02 [00:52:44]Write to MH i2c: E2 08 00 F9 17 80 0D 01 02 00 00 00 00 89 [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:44]Read from MH i2c: E2 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 F9 17 00 90 00 84 [00:52:44]RAPDU: 90 00 [00:52:44]wFMCommunicate OK [00:52:44]wFMCommunicate request_size=255 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 5C 3A C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 22 02 00 35 04 06 00 98 [00:52:44]Write to MH i2c: E2 02 01 FA 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 5C 3A C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 22 02 00 35 04 06 00 98 00 00 12 [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:44]Read from MH i2c: E2 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 [00:52:44]MH_I2C_Read... [00:52:44]Read from MH i2c: E2 03 00 FA 17 00 90 00 85 [00:52:44]RAPDU: 90 00 [00:52:44]wFMCommunicate OK [00:52:44]wFMCommunicate request_size=10 [00:52:44]MH_SAM_APDU [00:52:44]CAPDU: 80 0D 02 02 05 3B 03 0A 8C 67 [00:52:44]Write to MH i2c: E2 0D 00 FB 17 80 0D 02 02 05 00 3B 03 0A 8C 67 00 00 D1 [00:52:44]Write i2c OK [00:52:44]MH_I2C_Read... [00:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:45]Read from MH i2c: E2 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: E2 03 00 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: E2 03 00 FB 17 00 90 00 86 [00:52:45]RAPDU: 90 00 [00:52:45]wFMCommunicate OK [00:52:45]wFMCommunicate request_size=4 [00:52:45]MH_SAM_APDU [00:52:45]CAPDU: 80 0D 03 02 [00:52:45]Write to MH i2c: E2 08 00 FC 17 80 0D 03 02 00 00 00 00 8E [00:52:45]Write i2c OK [00:52:45]MH_I2C_Read... [00:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:45]Read from MH i2c: E2 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: E2 0B 00 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: E2 0B 00 FC 17 00 78 B4 41 D0 BB AC A4 F7 90 00 CE [00:52:45]RAPDU: 78 B4 41 D0 BB AC A4 F7 90 00 [00:52:45]wFMCommunicate OK [00:52:45]SAM_PROTO_SignData done [00:52:45]FM_MakeSignedData done [00:52:45]CreateOFDProtocolMessage [00:52:45]wFMCommunicate request_size=4 [00:52:45]MH_SAM_APDU [00:52:45]CAPDU: 80 11 00 00 [00:52:45]Write to MH i2c: E2 08 00 FD 17 80 11 00 00 00 00 00 00 8E [00:52:45]Write i2c OK [00:52:45]MH_I2C_Read... [00:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:45]Read from MH i2c: E2 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: E2 17 00 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: E2 17 00 FD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E5 [00:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:52:45]wFMCommunicate OK [00:52:45]CreateOFDProtocolMessage done [00:52:45]OFDSenderStorePacket 139986 [00:52:45]StoreOFDPacket docnum=139986 [00:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9E EE 07 01 E1 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 5C 3A C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 22 02 00 35 04 06 00 98 3B 03 0A 8C 67 78 B4 41 D0 BB AC A4 F7 [00:52:45]CheckFolder [00:52:45]dirname=/storage/ofd_packets [00:52:45]CheckFolder done [00:52:45]ProducePacketName [00:52:45]name=ofd_packets/00139986 [00:52:45]NVStorageSaveData ofd_packets/00139986 [00:52:45]File name is /storage/ofd_packets/00139986 [00:52:45]Write 301 bytes [00:52:45]NVStorageSaveData done [00:52:45]OFDSenderStorePacket done [00:52:45]KKMCreateOFDPacket done [00:52:45]NVStorageSaveData kkm_last_timestamp [00:52:45]File name is /storage/kkm_last_timestamp [00:52:45]Write 4 bytes [00:52:45]NVStorageSaveData done [00:52:45]ExternCall_PrintAddStr [00:52:45]wPrintStart [00:52:45]Write to MH i2c: 01 00 00 FE 17 15 [00:52:45]Write i2c OK [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: 01 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: 01 07 00 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: 01 07 00 FE 17 00 00 00 00 00 FF 0F 2A [00:52:45]RasterBufferAndPrint [00:52:45]line Счет N : (1)593840 [00:52:45]line ИНН: 02508201610067 [00:52:45]line Контрольно-Кассовый Чек [00:52:45]line ПРОДАЖА [00:52:45]line ТРК (МРК, ГНК) : 52 [00:52:45]line Товар: 2710124130 [00:52:45]line Аи-92-К-5 [00:52:45]line 10.330 * 67.80 [00:52:45]line = 700.37 [00:52:45]line НДС 12% НСП 1% [00:52:45]line > о реализуемом товаре [00:52:45]line ОКРУГЛЕНИЕ: -0.37 [00:52:45]line ИТОГО: 700.00 [00:52:45]line Внесено: 700.00 [00:52:45]line СДАЧА: 0.00 [00:52:45]line НСП 1% : 6.20 [00:52:45]line НДС 12% : 74.38 [00:52:45]line Наличными: 700.00 [00:52:45]line Безнал.: 0.00 [00:52:45]line Место: АЗС № 136 "Партнер Нефть" [00:52:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:52:45]line СНО: Общий режим [00:52:45]line Чек 3 21.08.2024 00:52 [00:52:45]line Смена: 454 ФФД: 1.0 [00:52:45]line ЗНМ: 0300000067 [00:52:45]line РНМ: 0000000000092569 [00:52:45]line Версия ККМ: 001 [00:52:45]line ФМ: 0000000000871776 [00:52:45]line ФД: 139986 [00:52:45]line ФПД: 167379221515367 [00:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T005244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139986&fm=167379221515367&tin=02508201610067®Number=0000000000092569&sum=70000 [00:52:45]written 0, free lines is 4095 [00:52:45]OFD Sender: Processing packet 139986 [packets to send 137, broken 136] [00:52:45]ProducePacketName [00:52:45]name=ofd_packets/00139986 [00:52:45]OFD Sender: To server: pG, [00:52:45]CommunicateWithHost lk.salyk.kg:30040 [00:52:45]ConnectInit lk.salyk.kg [00:52:45]Connected sock=11 [00:52:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9E EE 07 01 E1 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 5C 3A C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 22 02 00 35 04 06 00 98 3B 03 0A 8C 67 78 B4 41 D0 BB AC A4 F7 [00:52:45]Write to MH i2c: 01 00 00 29 18 41 [00:52:45]Write i2c OK [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: 01 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: 01 07 00 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: 01 07 00 29 18 00 00 00 00 00 BE 0C 12 [00:52:45]RasterBufferAndPrint [00:52:45]line [00:52:45]line [00:52:45]line [00:52:45]line [00:52:45]line [00:52:45]written 0, free lines is 3268 [00:52:45]MH_Cut [00:52:45]Write to MH i2c: D1 01 00 30 18 01 1A [00:52:45]Write i2c OK [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: D1 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: D1 01 00 [00:52:45]MH_I2C_Read... [00:52:45]Read from MH i2c: D1 01 00 30 18 00 19 [00:52:45]Write to MH i2c: 01 00 00 31 18 49 [00:52:45]Write i2c OK [00:52:45]MH_I2C_Read... [00:52:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B4 F1 47 00 B6 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 22 02 00 F4 03 04 00 EE E0 C4 66 B6 04 01 00 00 C8 7C 86 D8 00 73 D0 F2 [00:52:45]CommunicateWithHost err = 0 [00:52:45]CheckOFDResponse [00:52:45]1017 (14) - 77093643461234 [00:52:45]1041 (16) - 0000000000871776 [00:52:45]1040 (4) - 139986 [00:52:45]1012 (4) - 20.08.2024 18:31 [00:52:45]1206 (1) - 0 [00:52:45]OFD Sender: Remove packet 139986 [00:52:45]ProducePacketName [00:52:45]name=ofd_packets/00139986 [00:52:45]NVStorageDeleteData [00:52:46]OFD Sender: No OFD packet to send [00:52:46]*** Cut start [00:52:46]*** Partial cut [00:52:46]*** CUTSNS_PIN = 1 [00:52:46]*** CUTSNS_PIN = 0 [00:52:46]*** Brake cut motor [00:52:47]Read from MH i2c: 01 [00:52:47]MH_I2C_Read... [00:52:47]*** Stop cut motor [00:52:47]*** Cut end [00:52:47]Read from MH i2c: 01 07 00 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: 01 07 00 31 18 00 00 00 00 00 FF 0F 5E [00:52:47]process_action close_receipt done [00:52:47]requested_data is exist [00:52:47]produce_requested_data [00:52:47]requested_item fm.sn is exist - process it [00:52:47]wFMCommunicate request_size=4 [00:52:47]MH_SAM_APDU [00:52:47]CAPDU: 80 11 00 00 [00:52:47]Write to MH i2c: E2 08 00 32 18 80 11 00 00 00 00 00 00 C4 [00:52:47]Write i2c OK [00:52:47]MH_I2C_Read... [00:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:47]Read from MH i2c: E2 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 17 00 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 17 00 32 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1B [00:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:52:47]wFMCommunicate OK [00:52:47]requested_item fd.num is exist - process it [00:52:47]SAM_PROTO_GetFieldsCounters [00:52:47]wFMCommunicate request_size=4 [00:52:47]MH_SAM_APDU [00:52:47]CAPDU: 80 13 00 00 [00:52:47]Write to MH i2c: E2 08 00 33 18 80 13 00 00 00 00 00 00 C7 [00:52:47]Write i2c OK [00:52:47]MH_I2C_Read... [00:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:47]Read from MH i2c: E2 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 62 00 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 62 00 33 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 22 02 00 0E 04 04 00 C6 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 B8 [00:52:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 22 02 00 0E 04 04 00 C6 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:52:47]wFMCommunicate OK [00:52:47]SAM_PROTO_GetFieldsCounters done [00:52:47]requested_item shift.num is exist - process it [00:52:47]requested_item shift.opened is exist - process it [00:52:47]req_shift_opened [00:52:47]FM_GetShiftState [00:52:47]SAM_PROTO_GetShiftState [00:52:47]wFMCommunicate request_size=4 [00:52:47]MH_SAM_APDU [00:52:47]CAPDU: 80 13 01 00 [00:52:47]Write to MH i2c: E2 08 00 34 18 80 13 01 00 00 00 00 00 C9 [00:52:47]Write i2c OK [00:52:47]MH_I2C_Read... [00:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:47]Read from MH i2c: E2 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 0E 00 [00:52:47]MH_I2C_Read... [00:52:47]Read from MH i2c: E2 0E 00 34 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 49 [00:52:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:52:47]wFMCommunicate OK [00:52:47]SAM_PROTO_GetShiftState done [00:52:47]FM_GetShiftState done [00:52:47]req_shift_opened done [00:52:47]requested_item shift.open_date is exist - process it [00:52:47]req_shift_open_date [00:52:47]req_shift_open_date done [00:52:47]produce_requested_data done [00:52:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139986,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:52:47]process_action_free close_receipt [00:52:47]json_value_free [00:52:47]json_value_free done [00:52:47]process_json_proto returns [00:52:47]Send response to host [00:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139986,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:52:47]free response buf [00:52:47]execute_script done [00:52:47]execute_script returns [00:52:47]free content buf [00:52:47]Sock 9.Close socket [00:52:47]Sock 9.Thread stoped [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]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:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:13]accept exits with 7 [01:25:13]New connection [01:25:13]New thread 3066764644 created [01:25:13]Thread 3066908004 joined [01:25:13]Waiting for new connection... [01:25:13] Sock 7.Parse request [01:25:13]Sock 7.Check first char [01:25:13]Sock 7.First char is OK [01:25:13]request: POST /json_proto HTTP/1.0 [01:25:13]Method: POST [01:25:13]URL: /json_proto [01:25:13]Method is POST - this is cgi request [01:25:13]url: /json_proto [01:25:13]query_string will be loaded in cgi processing [01:25:13]execute_cgi json_proto POST (null) [01:25:13]execute_cgi path=json_proto method=POST [01:25:13]POST find Content-Length [01:25:13]Host: 172.17.45.67:8080 [01:25:13]Content-Length: 677 [01:25:13]Content-Type: application/json [01:25:13] [01:25:13]POST finish read [01:25:13]Found Content-Length = 677 [01:25:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:13]execute_script... [01:25: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)593841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:13]POST & json_proto [01:25:13]process_json_proto [01:25:13]json parsed OK: [01:25:13]protocol is kg_v1.0 [01:25:13]action value=close_receipt [01:25:13]process_action close_receipt [01:25:13]cmd_close_receipt [01:25:13]MH_GetDate [01:25:13]Write to MH i2c: F0 00 00 35 18 3C [01:25:13]Write i2c OK [01:25:13]MH_I2C_Read... [01:25:13]Read from MH i2c: F0 [01:25:13]MH_I2C_Read... [01:25:13]Read from MH i2c: F0 09 00 [01:25:13]MH_I2C_Read... [01:25:13]Read from MH i2c: F0 09 00 35 18 00 FB 41 C5 66 5F 7F 2B 66 1B [01:25:13]GetLastDocTimeStamp 1724201564 [01:25:13]current date 1724203515 [01:25:13]FM_GetShiftState [01:25:13]SAM_PROTO_GetShiftState [01:25:13]wFMCommunicate request_size=4 [01:25:13]MH_SAM_APDU [01:25:13]CAPDU: 80 13 01 00 [01:25:13]Write to MH i2c: E2 08 00 36 18 80 13 01 00 00 00 00 00 CB [01:25:13]Write i2c OK [01:25:13]MH_I2C_Read... [01:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:13]Read from MH i2c: E2 [01:25:13]MH_I2C_Read... [01:25:13]Read from MH i2c: E2 0E 00 [01:25:13]MH_I2C_Read... [01:25:13]Read from MH i2c: E2 0E 00 36 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4B [01:25:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [01:25:13]wFMCommunicate OK [01:25:13]SAM_PROTO_GetShiftState done [01:25:13]FM_GetShiftState done [01:25:13]opened in 1724200467 [01:25:13]opened+sec_in_day 1724286867 [01:25:13]quantity*price = 50036 [01:25:13]sum+1 = 50037 [01:25:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 4 21.08.2024 01:25 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139987 ФПД: 175545198367232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T012515&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139987&fm=175545198367232&tin=02508201610067®Number=0000000000092569&sum=50000 [01:25:15]StoreToDocumentArchive [01:25:15]shift 454 fd 139987 [01:25:15]save to /storage/0454/doc_00139987 [01:25:15]save last doc name /storage/0454/doc_00139987 to /storage/kkm_last_doc_name [01:25:15]save OK [01:25:15]Clear old archive folders... [01:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:25:15]tlvbuf is 00A52280 [01:25:15]SAM_PROTO_ClearQueue [01:25:15]wFMCommunicate request_size=4 [01:25:15]MH_SAM_APDU [01:25:15]CAPDU: 80 09 00 00 [01:25:15]Write to MH i2c: E2 08 00 43 18 80 09 00 00 00 00 00 00 CD [01:25:15]Write i2c OK [01:25:15]MH_I2C_Read... [01:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:25:15]Read from MH i2c: E2 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 03 00 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [01:25:15]RAPDU: 90 00 [01:25:15]wFMCommunicate OK [01:25:15]SAM_PROTO_ClearQueue done [01:25:15]KKMCreateOFDPacket [01:25:15]OFDProtocolAddRootSTLVToBuf [01:25:15]FM_MakeSignedData [01:25:15]FM_MakeSignedData [01:25:15]SAM_PROTO_SignData [01:25:15]wFMCommunicate request_size=4 [01:25:15]MH_SAM_APDU [01:25:15]CAPDU: 80 0D 01 02 [01:25:15]Write to MH i2c: E2 08 00 44 18 80 0D 01 02 00 00 00 00 D5 [01:25:15]Write i2c OK [01:25:15]MH_I2C_Read... [01:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:25:15]Read from MH i2c: E2 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 03 00 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 03 00 44 18 00 90 00 D0 [01:25:15]RAPDU: 90 00 [01:25:15]wFMCommunicate OK [01:25:15]wFMCommunicate request_size=255 [01:25:15]MH_SAM_APDU [01:25:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 FB 41 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 22 02 00 35 04 06 00 9F [01:25:15]Write to MH i2c: E2 02 01 45 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 FB 41 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 22 02 00 35 04 06 00 9F 00 00 26 [01:25:15]Write i2c OK [01:25:15]MH_I2C_Read... [01:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:15]Read from MH i2c: E2 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 03 00 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 03 00 45 18 00 90 00 D1 [01:25:15]RAPDU: 90 00 [01:25:15]wFMCommunicate OK [01:25:15]wFMCommunicate request_size=10 [01:25:15]MH_SAM_APDU [01:25:15]CAPDU: 80 0D 02 02 05 A8 4D 30 D2 00 [01:25:15]Write to MH i2c: E2 0D 00 46 18 80 0D 02 02 05 00 A8 4D 30 D2 00 00 00 D9 [01:25:15]Write i2c OK [01:25:15]MH_I2C_Read... [01:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:15]Read from MH i2c: E2 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 03 00 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 03 00 46 18 00 90 00 D2 [01:25:15]RAPDU: 90 00 [01:25:15]wFMCommunicate OK [01:25:15]wFMCommunicate request_size=4 [01:25:15]MH_SAM_APDU [01:25:15]CAPDU: 80 0D 03 02 [01:25:15]Write to MH i2c: E2 08 00 47 18 80 0D 03 02 00 00 00 00 DA [01:25:15]Write i2c OK [01:25:15]MH_I2C_Read... [01:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:15]Read from MH i2c: E2 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 0B 00 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 0B 00 47 18 00 7E F2 70 EC D4 DE 84 D2 90 00 AF [01:25:15]RAPDU: 7E F2 70 EC D4 DE 84 D2 90 00 [01:25:15]wFMCommunicate OK [01:25:15]SAM_PROTO_SignData done [01:25:15]FM_MakeSignedData done [01:25:15]CreateOFDProtocolMessage [01:25:15]wFMCommunicate request_size=4 [01:25:15]MH_SAM_APDU [01:25:15]CAPDU: 80 11 00 00 [01:25:15]Write to MH i2c: E2 08 00 48 18 80 11 00 00 00 00 00 00 DA [01:25:15]Write i2c OK [01:25:15]MH_I2C_Read... [01:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:15]Read from MH i2c: E2 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 17 00 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: E2 17 00 48 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 31 [01:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:25:15]wFMCommunicate OK [01:25:15]CreateOFDProtocolMessage done [01:25:15]OFDSenderStorePacket 139987 [01:25:15]StoreOFDPacket docnum=139987 [01:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A3 AE 07 01 87 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 FB 41 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 22 02 00 35 04 06 00 9F A8 4D 30 D2 00 7E F2 70 EC D4 DE 84 D2 [01:25:15]CheckFolder [01:25:15]dirname=/storage/ofd_packets [01:25:15]CheckFolder done [01:25:15]ProducePacketName [01:25:15]name=ofd_packets/00139987 [01:25:15]NVStorageSaveData ofd_packets/00139987 [01:25:15]File name is /storage/ofd_packets/00139987 [01:25:15]Write 301 bytes [01:25:15]NVStorageSaveData done [01:25:15]OFDSenderStorePacket done [01:25:15]KKMCreateOFDPacket done [01:25:15]NVStorageSaveData kkm_last_timestamp [01:25:15]File name is /storage/kkm_last_timestamp [01:25:15]Write 4 bytes [01:25:15]NVStorageSaveData done [01:25:15]ExternCall_PrintAddStr [01:25:15]wPrintStart [01:25:15]Write to MH i2c: 01 00 00 49 18 61 [01:25:15]Write i2c OK [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: 01 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: 01 07 00 [01:25:15]MH_I2C_Read... [01:25:15]Read from MH i2c: 01 07 00 49 18 00 00 00 00 00 FF 0F 76 [01:25:15]RasterBufferAndPrint [01:25:15]line Счет N : (1)593841 [01:25:15]line ИНН: 02508201610067 [01:25:15]line Контрольно-Кассовый Чек [01:25:15]line ПРОДАЖА [01:25:15]line ТРК (МРК, ГНК) : 52 [01:25:15]line Товар: 2710124130 [01:25:15]line Аи-92-К-5 [01:25:15]line 7.380 * 67.80 [01:25:15]line = 500.36 [01:25:15]line НДС 12% НСП 1% [01:25:15]line > о реализуемом товаре [01:25:15]line ОКРУГЛЕНИЕ: -0.36 [01:25:15]line ИТОГО: 500.00 [01:25:15]line Внесено: 500.00 [01:25:15]line СДАЧА: 0.00 [01:25:15]line НСП 1% : 4.43 [01:25:15]line НДС 12% : 53.14 [01:25:15]line Наличными: 500.00 [01:25:15]line Безнал.: 0.00 [01:25:15]line Место: АЗС № 136 "Партнер Нефть" [01:25:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [01:25:15]line СНО: Общий режим [01:25:15]line Чек 4 21.08.2024 01:25 [01:25:15]line Смена: 454 ФФД: 1.0 [01:25:15]line ЗНМ: 0300000067 [01:25:15]line РНМ: 0000000000092569 [01:25:15]line Версия ККМ: 001 [01:25:15]line ФМ: 0000000000871776 [01:25:15]line ФД: 139987 [01:25:15]line ФПД: 175545198367232 [01:25:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T012515&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139987&fm=175545198367232&tin=02508201610067®Number=0000000000092569&sum=50000 [01:25:15]OFD Sender: Processing packet 139987 [packets to send 137, broken 136] [01:25:15]ProducePacketName [01:25:15]name=ofd_packets/00139987 [01:25:15]OFD Sender: To server: pG, [01:25:15]CommunicateWithHost lk.salyk.kg:30040 [01:25:15]ConnectInit lk.salyk.kg [01:25:15]written 0, free lines is 4095 [01:25:16]Connected sock=10 [01:25:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A3 AE 07 01 87 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 FB 41 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 22 02 00 35 04 06 00 9F A8 4D 30 D2 00 7E F2 70 EC D4 DE 84 D2 [01:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A6 57 47 00 25 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 22 02 00 F4 03 04 00 8D E8 C4 66 B6 04 01 00 00 33 24 CB A0 A8 2C DD 09 [01:25:16]CommunicateWithHost err = 0 [01:25:16]CheckOFDResponse [01:25:16]1017 (14) - 77093643461234 [01:25:16]1041 (16) - 0000000000871776 [01:25:16]1040 (4) - 139987 [01:25:16]1012 (4) - 20.08.2024 19:03 [01:25:16]1206 (1) - 0 [01:25:16]OFD Sender: Remove packet 139987 [01:25:16]ProducePacketName [01:25:16]name=ofd_packets/00139987 [01:25:16]NVStorageDeleteData [01:25:16]Write to MH i2c: 01 00 00 74 18 8C [01:25:16]Write i2c OK [01:25:16]MH_I2C_Read... [01:25:16]Read from MH i2c: 01 [01:25:16]MH_I2C_Read... [01:25:16]Read from MH i2c: 01 07 00 [01:25:16]MH_I2C_Read... [01:25:16]Read from MH i2c: 01 07 00 74 18 00 00 00 00 00 C6 0C 65 [01:25:16]RasterBufferAndPrint [01:25:16]line [01:25:16]line [01:25:16]line [01:25:16]line [01:25:16]line [01:25:16]written 0, free lines is 3276 [01:25:16]MH_Cut [01:25:16]Write to MH i2c: D1 01 00 7B 18 01 65 [01:25:16]Write i2c OK [01:25:16]MH_I2C_Read... [01:25:16]Read from MH i2c: D1 [01:25:16]MH_I2C_Read... [01:25:16]Read from MH i2c: D1 01 00 [01:25:16]MH_I2C_Read... [01:25:16]Read from MH i2c: D1 01 00 7B 18 00 64 [01:25:16]Write to MH i2c: 01 00 00 7C 18 94 [01:25:16]Write i2c OK [01:25:16]MH_I2C_Read... [01:25:16]OFD Sender: No OFD packet to send [01:25:17]*** Cut start [01:25:17]*** Partial cut [01:25:17]*** CUTSNS_PIN = 1 [01:25:17]*** CUTSNS_PIN = 0 [01:25:17]*** Brake cut motor [01:25:17]Read from MH i2c: 01 [01:25:17]MH_I2C_Read... [01:25:17]*** Stop cut motor [01:25:17]*** Cut end [01:25:17]Read from MH i2c: 01 07 00 [01:25:17]MH_I2C_Read... [01:25:17]Read from MH i2c: 01 07 00 7C 18 00 00 00 00 00 FF 0F A9 [01:25:17]process_action close_receipt done [01:25:17]requested_data is exist [01:25:17]produce_requested_data [01:25:17]requested_item fm.sn is exist - process it [01:25:17]wFMCommunicate request_size=4 [01:25:17]MH_SAM_APDU [01:25:17]CAPDU: 80 11 00 00 [01:25:17]Write to MH i2c: E2 08 00 7D 18 80 11 00 00 00 00 00 00 0F [01:25:17]Write i2c OK [01:25:17]MH_I2C_Read... [01:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:17]Read from MH i2c: E2 [01:25:17]MH_I2C_Read... [01:25:17]Read from MH i2c: E2 17 00 [01:25:17]MH_I2C_Read... [01:25:17]Read from MH i2c: E2 17 00 7D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 66 [01:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:25:17]wFMCommunicate OK [01:25:17]requested_item fd.num is exist - process it [01:25:17]SAM_PROTO_GetFieldsCounters [01:25:17]wFMCommunicate request_size=4 [01:25:17]MH_SAM_APDU [01:25:17]CAPDU: 80 13 00 00 [01:25:17]Write to MH i2c: E2 08 00 7E 18 80 13 00 00 00 00 00 00 12 [01:25:17]Write i2c OK [01:25:17]MH_I2C_Read... [01:25:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:25:17]Read from MH i2c: E2 [01:25:17]MH_I2C_Read... [01:25:17]Read from MH i2c: E2 62 00 [01:25:17]MH_I2C_Read... [01:25:17]Read from MH i2c: E2 62 00 7E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 22 02 00 0E 04 04 00 C6 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 07 [01:25:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 22 02 00 0E 04 04 00 C6 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 [01:25:17]wFMCommunicate OK [01:25:17]SAM_PROTO_GetFieldsCounters done [01:25:17]requested_item shift.num is exist - process it [01:25:17]requested_item shift.opened is exist - process it [01:25:17]req_shift_opened [01:25:17]FM_GetShiftState [01:25:17]SAM_PROTO_GetShiftState [01:25:17]wFMCommunicate request_size=4 [01:25:17]MH_SAM_APDU [01:25:17]CAPDU: 80 13 01 00 [01:25:17]Write to MH i2c: E2 08 00 7F 18 80 13 01 00 00 00 00 00 14 [01:25:17]Write i2c OK [01:25:17]MH_I2C_Read... [01:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:17]Read from MH i2c: E2 [01:25:17]MH_I2C_Read... [01:25:17]Read from MH i2c: E2 0E 00 [01:25:17]MH_I2C_Read... [01:25:17]Read from MH i2c: E2 0E 00 7F 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 94 [01:25:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [01:25:17]wFMCommunicate OK [01:25:17]SAM_PROTO_GetShiftState done [01:25:17]FM_GetShiftState done [01:25:17]req_shift_opened done [01:25:17]requested_item shift.open_date is exist - process it [01:25:17]req_shift_open_date [01:25:17]req_shift_open_date done [01:25:17]produce_requested_data done [01:25:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139987,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [01:25:17]process_action_free close_receipt [01:25:17]json_value_free [01:25:17]json_value_free done [01:25:17]process_json_proto returns [01:25:17]Send response to host [01:25:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139987,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [01:25:17]free response buf [01:25:17]execute_script done [01:25:17]execute_script returns [01:25:17]free content buf [01:25:17]Sock 7.Close socket [01:25:17]Sock 7.Thread stoped [01:25:21]OFD Sender: No OFD packet to send [01:25:25]int [01:25:25]Write to MH i2c: 01 00 00 80 18 98 [01:25:25]*** FLAG_PRN_KEY set [01:25:25]Write i2c OK [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: 01 [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: 01 07 00 [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: 01 07 00 80 18 00 08 00 00 00 FF 0F B5 [01:25:25]state=0 [01:25:25]Key pressed [01:25:25]Feed [01:25:25]Write to MH i2c: D8 00 00 81 18 70 [01:25:25]Write i2c OK [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: D8 [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: D8 01 00 [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: D8 01 00 81 18 00 71 [01:25:25]int [01:25:25]Write to MH i2c: 01 00 00 82 18 9A [01:25:25]Write i2c OK [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: 01 [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: 01 07 00 [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: 01 07 00 82 18 00 48 00 00 00 3C 00 25 [01:25:25]state=2 [01:25:25]Key pressed [01:25:25]int [01:25:25]Write to MH i2c: 01 00 00 83 18 9B [01:25:25]*** FLAG_PRN_KEY reset [01:25:25]Write i2c OK [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: 01 [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: 01 07 00 [01:25:25]MH_I2C_Read... [01:25:25]Read from MH i2c: 01 07 00 83 18 00 00 00 00 00 F9 0F AA [01:25:25]state=2 [01:25:25]Stop feed [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:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]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:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:20]accept exits with 9 [01:42:20]New connection [01:42:20]New thread 3066908004 created [01:42:20]Thread 3066764644 joined [01:42:20]Waiting for new connection... [01:42:20] Sock 9.Parse request [01:42:20]Sock 9.Check first char [01:42:20]Sock 9.First char is OK [01:42:20]request: POST /json_proto HTTP/1.0 [01:42:20]Method: POST [01:42:20]URL: /json_proto [01:42:20]Method is POST - this is cgi request [01:42:20]url: /json_proto [01:42:20]query_string will be loaded in cgi processing [01:42:20]execute_cgi json_proto POST (null) [01:42:20]execute_cgi path=json_proto method=POST [01:42:20]POST find Content-Length [01:42:20]Host: 172.17.45.67:8080 [01:42:20]Content-Length: 677 [01:42:20]Content-Type: application/json [01:42:20] [01:42:20]POST finish read [01:42:20]Found Content-Length = 677 [01:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:20]execute_script... [01:42: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)593842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:20]POST & json_proto [01:42:20]process_json_proto [01:42:20]json parsed OK: [01:42:20]protocol is kg_v1.0 [01:42:20]action value=close_receipt [01:42:20]process_action close_receipt [01:42:20]cmd_close_receipt [01:42:20]MH_GetDate [01:42:20]Write to MH i2c: F0 00 00 84 18 8B [01:42:20]Write i2c OK [01:42:20]MH_I2C_Read... [01:42:20]Read from MH i2c: F0 [01:42:20]MH_I2C_Read... [01:42:20]Read from MH i2c: F0 09 00 [01:42:20]MH_I2C_Read... [01:42:20]Read from MH i2c: F0 09 00 84 18 00 FD 45 C5 66 5F 7F 2B 66 70 [01:42:20]GetLastDocTimeStamp 1724203515 [01:42:20]current date 1724204541 [01:42:20]FM_GetShiftState [01:42:20]SAM_PROTO_GetShiftState [01:42:20]wFMCommunicate request_size=4 [01:42:20]MH_SAM_APDU [01:42:20]CAPDU: 80 13 01 00 [01:42:20]Write to MH i2c: E2 08 00 85 18 80 13 01 00 00 00 00 00 1A [01:42:20]Write i2c OK [01:42:20]MH_I2C_Read... [01:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:20]Read from MH i2c: E2 [01:42:20]MH_I2C_Read... [01:42:20]Read from MH i2c: E2 0E 00 [01:42:20]MH_I2C_Read... [01:42:20]Read from MH i2c: E2 0E 00 85 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9A [01:42:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [01:42:20]wFMCommunicate OK [01:42:20]SAM_PROTO_GetShiftState done [01:42:20]FM_GetShiftState done [01:42:20]opened in 1724200467 [01:42:20]opened+sec_in_day 1724286867 [01:42:20]quantity*price = 50036 [01:42:20]sum+1 = 50037 [01:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 5 21.08.2024 01:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139988 ФПД: 279501802943450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T014221&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139988&fm=279501802943450&tin=02508201610067®Number=0000000000092569&sum=50000 [01:42:21]StoreToDocumentArchive [01:42:21]shift 454 fd 139988 [01:42:21]save to /storage/0454/doc_00139988 [01:42:21]save last doc name /storage/0454/doc_00139988 to /storage/kkm_last_doc_name [01:42:21]save OK [01:42:21]Clear old archive folders... [01:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:42:21]tlvbuf is 00A54AC0 [01:42:21]SAM_PROTO_ClearQueue [01:42:21]wFMCommunicate request_size=4 [01:42:21]MH_SAM_APDU [01:42:21]CAPDU: 80 09 00 00 [01:42:21]Write to MH i2c: E2 08 00 92 18 80 09 00 00 00 00 00 00 1C [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 92 18 00 90 00 1E [01:42:21]RAPDU: 90 00 [01:42:21]wFMCommunicate OK [01:42:21]SAM_PROTO_ClearQueue done [01:42:21]KKMCreateOFDPacket [01:42:21]OFDProtocolAddRootSTLVToBuf [01:42:21]FM_MakeSignedData [01:42:21]FM_MakeSignedData [01:42:21]SAM_PROTO_SignData [01:42:21]wFMCommunicate request_size=4 [01:42:21]MH_SAM_APDU [01:42:21]CAPDU: 80 0D 01 02 [01:42:21]Write to MH i2c: E2 08 00 93 18 80 0D 01 02 00 00 00 00 24 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 93 18 00 90 00 1F [01:42:21]RAPDU: 90 00 [01:42:21]wFMCommunicate OK [01:42:21]wFMCommunicate request_size=255 [01:42:21]MH_SAM_APDU [01:42:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 FD 45 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 22 02 00 35 04 06 00 FE [01:42:21]Write to MH i2c: E2 02 01 94 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 FD 45 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 22 02 00 35 04 06 00 FE 00 00 DC [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 94 18 00 90 00 20 [01:42:21]RAPDU: 90 00 [01:42:21]wFMCommunicate OK [01:42:21]wFMCommunicate request_size=10 [01:42:21]MH_SAM_APDU [01:42:21]CAPDU: 80 0D 02 02 05 34 95 AD B3 DA [01:42:21]Write to MH i2c: E2 0D 00 95 18 80 0D 02 02 05 00 34 95 AD B3 DA 00 00 34 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 03 00 95 18 00 90 00 21 [01:42:21]RAPDU: 90 00 [01:42:21]wFMCommunicate OK [01:42:21]wFMCommunicate request_size=4 [01:42:21]MH_SAM_APDU [01:42:21]CAPDU: 80 0D 03 02 [01:42:21]Write to MH i2c: E2 08 00 96 18 80 0D 03 02 00 00 00 00 29 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 0B 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 0B 00 96 18 00 73 06 15 6E F2 43 AD 9D 90 00 A5 [01:42:21]RAPDU: 73 06 15 6E F2 43 AD 9D 90 00 [01:42:21]wFMCommunicate OK [01:42:21]SAM_PROTO_SignData done [01:42:21]FM_MakeSignedData done [01:42:21]CreateOFDProtocolMessage [01:42:21]wFMCommunicate request_size=4 [01:42:21]MH_SAM_APDU [01:42:21]CAPDU: 80 11 00 00 [01:42:21]Write to MH i2c: E2 08 00 97 18 80 11 00 00 00 00 00 00 29 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:21]Read from MH i2c: E2 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 17 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: E2 17 00 97 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [01:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:42:21]wFMCommunicate OK [01:42:21]CreateOFDProtocolMessage done [01:42:21]OFDSenderStorePacket 139988 [01:42:21]StoreOFDPacket docnum=139988 [01:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 88 07 01 94 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 FD 45 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 22 02 00 35 04 06 00 FE 34 95 AD B3 DA 73 06 15 6E F2 43 AD 9D [01:42:21]CheckFolder [01:42:21]dirname=/storage/ofd_packets [01:42:21]CheckFolder done [01:42:21]ProducePacketName [01:42:21]name=ofd_packets/00139988 [01:42:21]NVStorageSaveData ofd_packets/00139988 [01:42:21]File name is /storage/ofd_packets/00139988 [01:42:21]Write 301 bytes [01:42:21]NVStorageSaveData done [01:42:21]OFDSenderStorePacket done [01:42:21]KKMCreateOFDPacket done [01:42:21]NVStorageSaveData kkm_last_timestamp [01:42:21]File name is /storage/kkm_last_timestamp [01:42:21]Write 4 bytes [01:42:21]NVStorageSaveData done [01:42:21]ExternCall_PrintAddStr [01:42:21]wPrintStart [01:42:21]Write to MH i2c: 01 00 00 98 18 B0 [01:42:21]Write i2c OK [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: 01 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: 01 07 00 [01:42:21]MH_I2C_Read... [01:42:21]Read from MH i2c: 01 07 00 98 18 00 00 00 00 00 FF 0F C5 [01:42:21]RasterBufferAndPrint [01:42:21]line Счет N : (1)593842 [01:42:21]line ИНН: 02508201610067 [01:42:21]line Контрольно-Кассовый Чек [01:42:21]line ПРОДАЖА [01:42:21]line ТРК (МРК, ГНК) : 52 [01:42:21]line Товар: 2710124130 [01:42:21]line Аи-92-К-5 [01:42:21]line 7.380 * 67.80 [01:42:21]line = 500.36 [01:42:21]line НДС 12% НСП 1% [01:42:21]line > о реализуемом товаре [01:42:21]line ОКРУГЛЕНИЕ: -0.36 [01:42:21]line ИТОГО: 500.00 [01:42:21]line Внесено: 500.00 [01:42:21]line СДАЧА: 0.00 [01:42:21]line НСП 1% : 4.43 [01:42:21]line НДС 12% : 53.14 [01:42:21]line Наличными: 500.00 [01:42:21]line Безнал.: 0.00 [01:42:21]line Место: АЗС № 136 "Партнер Нефть" [01:42:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [01:42:21]line СНО: Общий режим [01:42:21]line Чек 5 21.08.2024 01:42 [01:42:21]line Смена: 454 ФФД: 1.0 [01:42:21]line ЗНМ: 0300000067 [01:42:21]line РНМ: 0000000000092569 [01:42:21]line Версия ККМ: 001 [01:42:21]line ФМ: 0000000000871776 [01:42:21]line ФД: 139988 [01:42:22]line ФПД: 279501802943450 [01:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T014221&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139988&fm=279501802943450&tin=02508201610067®Number=0000000000092569&sum=50000 [01:42:22]OFD Sender: Processing packet 139988 [packets to send 137, broken 136] [01:42:22]ProducePacketName [01:42:22]name=ofd_packets/00139988 [01:42:22]OFD Sender: To server: pG, [01:42:22]CommunicateWithHost lk.salyk.kg:30040 [01:42:22]ConnectInit lk.salyk.kg [01:42:22]written 0, free lines is 4095 [01:42:22]Connected sock=10 [01:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 88 07 01 94 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 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 FD 45 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 22 02 00 35 04 06 00 FE 34 95 AD B3 DA 73 06 15 6E F2 43 AD 9D [01:42:22]Write to MH i2c: 01 00 00 C3 18 DB [01:42:22]Write i2c OK [01:42:22]MH_I2C_Read... [01:42:22]Read from MH i2c: 01 [01:42:22]MH_I2C_Read... [01:42:22]Read from MH i2c: 01 07 00 [01:42:22]MH_I2C_Read... [01:42:22]Read from MH i2c: 01 07 00 C3 18 00 00 00 00 00 CD 0C BB [01:42:22]RasterBufferAndPrint [01:42:22]line [01:42:22]line [01:42:22]line [01:42:22]line [01:42:22]line [01:42:22]written 0, free lines is 3284 [01:42:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8B 1C 47 00 6D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 22 02 00 F4 03 04 00 8F EC C4 66 B6 04 01 00 00 81 AD 8A C5 D6 CD 91 22 [01:42:22]CommunicateWithHost err = 0 [01:42:22]CheckOFDResponse [01:42:22]1017 (14) - 77093643461234 [01:42:22]1041 (16) - 0000000000871776 [01:42:22]1040 (4) - 139988 [01:42:22]1012 (4) - 20.08.2024 19:20 [01:42:22]1206 (1) - 0 [01:42:22]OFD Sender: Remove packet 139988 [01:42:22]ProducePacketName [01:42:22]name=ofd_packets/00139988 [01:42:22]NVStorageDeleteData [01:42:22]MH_Cut [01:42:22]Write to MH i2c: D1 01 00 CA 18 01 B4 [01:42:22]Write i2c OK [01:42:22]MH_I2C_Read... [01:42:22]Read from MH i2c: D1 [01:42:22]MH_I2C_Read... [01:42:22]Read from MH i2c: D1 01 00 [01:42:22]MH_I2C_Read... [01:42:22]Read from MH i2c: D1 01 00 CA 18 00 B3 [01:42:22]Write to MH i2c: 01 00 00 CB 18 E3 [01:42:22]Write i2c OK [01:42:22]MH_I2C_Read... [01:42:23]OFD Sender: No OFD packet to send [01:42:23]*** Cut start [01:42:23]*** Partial cut [01:42:23]*** CUTSNS_PIN = 1 [01:42:23]*** CUTSNS_PIN = 0 [01:42:23]*** Brake cut motor [01:42:24]Read from MH i2c: 01 [01:42:24]MH_I2C_Read... [01:42:24]*** Stop cut motor [01:42:24]*** Cut end [01:42:24]Read from MH i2c: 01 07 00 [01:42:24]MH_I2C_Read... [01:42:24]Read from MH i2c: 01 07 00 CB 18 00 00 00 00 00 FF 0F F8 [01:42:24]process_action close_receipt done [01:42:24]requested_data is exist [01:42:24]produce_requested_data [01:42:24]requested_item fm.sn is exist - process it [01:42:24]wFMCommunicate request_size=4 [01:42:24]MH_SAM_APDU [01:42:24]CAPDU: 80 11 00 00 [01:42:24]Write to MH i2c: E2 08 00 CC 18 80 11 00 00 00 00 00 00 5E [01:42:24]Write i2c OK [01:42:24]MH_I2C_Read... [01:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:24]Read from MH i2c: E2 [01:42:24]MH_I2C_Read... [01:42:24]Read from MH i2c: E2 17 00 [01:42:24]MH_I2C_Read... [01:42:24]Read from MH i2c: E2 17 00 CC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [01:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:42:24]wFMCommunicate OK [01:42:24]requested_item fd.num is exist - process it [01:42:24]SAM_PROTO_GetFieldsCounters [01:42:24]wFMCommunicate request_size=4 [01:42:24]MH_SAM_APDU [01:42:24]CAPDU: 80 13 00 00 [01:42:24]Write to MH i2c: E2 08 00 CD 18 80 13 00 00 00 00 00 00 61 [01:42:24]Write i2c OK [01:42:24]MH_I2C_Read... [01:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:24]Read from MH i2c: E2 [01:42:24]MH_I2C_Read... [01:42:24]Read from MH i2c: E2 62 00 [01:42:24]MH_I2C_Read... [01:42:24]Read from MH i2c: E2 62 00 CD 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 22 02 00 0E 04 04 00 C6 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 5A [01:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 22 02 00 0E 04 04 00 C6 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 [01:42:24]wFMCommunicate OK [01:42:24]SAM_PROTO_GetFieldsCounters done [01:42:24]requested_item shift.num is exist - process it [01:42:24]requested_item shift.opened is exist - process it [01:42:24]req_shift_opened [01:42:24]FM_GetShiftState [01:42:24]SAM_PROTO_GetShiftState [01:42:24]wFMCommunicate request_size=4 [01:42:24]MH_SAM_APDU [01:42:24]CAPDU: 80 13 01 00 [01:42:24]Write to MH i2c: E2 08 00 CE 18 80 13 01 00 00 00 00 00 63 [01:42:24]Write i2c OK [01:42:24]MH_I2C_Read... [01:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:24]Read from MH i2c: E2 [01:42:24]MH_I2C_Read... [01:42:24]Read from MH i2c: E2 0E 00 [01:42:24]MH_I2C_Read... [01:42:24]Read from MH i2c: E2 0E 00 CE 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E3 [01:42:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [01:42:24]wFMCommunicate OK [01:42:24]SAM_PROTO_GetShiftState done [01:42:24]FM_GetShiftState done [01:42:24]req_shift_opened done [01:42:24]requested_item shift.open_date is exist - process it [01:42:24]req_shift_open_date [01:42:24]req_shift_open_date done [01:42:24]produce_requested_data done [01:42:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139988,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [01:42:24]process_action_free close_receipt [01:42:24]json_value_free [01:42:24]json_value_free done [01:42:24]process_json_proto returns [01:42:24]Send response to host [01:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139988,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [01:42:24]free response buf [01:42:24]execute_script done [01:42:24]execute_script returns [01:42:24]free content buf [01:42:24]Sock 9.Close socket [01:42:24]Sock 9.Thread stoped [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:30]accept exits with 7 [02:12:30]New connection [02:12:30]New thread 3066764644 created [02:12:30]Thread 3066908004 joined [02:12:30]Waiting for new connection... [02:12:30] Sock 7.Parse request [02:12:30]Sock 7.Check first char [02:12:30]Sock 7.First char is OK [02:12:30]request: POST /json_proto HTTP/1.0 [02:12:30]Method: POST [02:12:30]URL: /json_proto [02:12:30]Method is POST - this is cgi request [02:12:30]url: /json_proto [02:12:30]query_string will be loaded in cgi processing [02:12:30]execute_cgi json_proto POST (null) [02:12:30]execute_cgi path=json_proto method=POST [02:12:30]POST find Content-Length [02:12:30]Host: 172.17.45.67:8080 [02:12:30]Content-Length: 677 [02:12:30]Content-Type: application/json [02:12:30] [02:12:30]POST finish read [02:12:30]Found Content-Length = 677 [02:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:30]execute_script... [02:12: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)593843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:30]POST & json_proto [02:12:30]process_json_proto [02:12:30]json parsed OK: [02:12:30]protocol is kg_v1.0 [02:12:30]action value=close_receipt [02:12:30]process_action close_receipt [02:12:30]cmd_close_receipt [02:12:30]MH_GetDate [02:12:30]Write to MH i2c: F0 00 00 CF 18 D6 [02:12:30]Write i2c OK [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: F0 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: F0 09 00 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: F0 09 00 CF 18 00 10 4D C5 66 5F 7F 2B 66 D6 [02:12:30]GetLastDocTimeStamp 1724204541 [02:12:30]current date 1724206352 [02:12:30]FM_GetShiftState [02:12:30]SAM_PROTO_GetShiftState [02:12:30]wFMCommunicate request_size=4 [02:12:30]MH_SAM_APDU [02:12:30]CAPDU: 80 13 01 00 [02:12:30]Write to MH i2c: E2 08 00 D0 18 80 13 01 00 00 00 00 00 65 [02:12:30]Write i2c OK [02:12:30]MH_I2C_Read... [02:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:30]Read from MH i2c: E2 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: E2 0E 00 [02:12:30]MH_I2C_Read... [02:12:30]Read from MH i2c: E2 0E 00 D0 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E5 [02:12:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [02:12:30]wFMCommunicate OK [02:12:30]SAM_PROTO_GetShiftState done [02:12:30]FM_GetShiftState done [02:12:30]opened in 1724200467 [02:12:30]opened+sec_in_day 1724286867 [02:12:30]quantity*price = 45019 [02:12:30]sum+1 = 45020 [02:12:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 6 21.08.2024 02:12 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139989 ФПД: 38454384594321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T021232&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139989&fm=38454384594321&tin=02508201610067®Number=0000000000092569&sum=45000 [02:12:31]StoreToDocumentArchive [02:12:31]shift 454 fd 139989 [02:12:31]save to /storage/0454/doc_00139989 [02:12:31]save last doc name /storage/0454/doc_00139989 to /storage/kkm_last_doc_name [02:12:31]save OK [02:12:31]Clear old archive folders... [02:12:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:12:31]tlvbuf is 00A346C0 [02:12:31]SAM_PROTO_ClearQueue [02:12:31]wFMCommunicate request_size=4 [02:12:31]MH_SAM_APDU [02:12:31]CAPDU: 80 09 00 00 [02:12:31]Write to MH i2c: E2 08 00 DD 18 80 09 00 00 00 00 00 00 67 [02:12:31]Write i2c OK [02:12:31]MH_I2C_Read... [02:12:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:12:31]Read from MH i2c: E2 [02:12:31]MH_I2C_Read... [02:12:31]Read from MH i2c: E2 03 00 [02:12:31]MH_I2C_Read... [02:12:31]Read from MH i2c: E2 03 00 DD 18 00 90 00 69 [02:12:31]RAPDU: 90 00 [02:12:31]wFMCommunicate OK [02:12:31]SAM_PROTO_ClearQueue done [02:12:31]KKMCreateOFDPacket [02:12:31]OFDProtocolAddRootSTLVToBuf [02:12:31]FM_MakeSignedData [02:12:31]FM_MakeSignedData [02:12:31]SAM_PROTO_SignData [02:12:31]wFMCommunicate request_size=4 [02:12:31]MH_SAM_APDU [02:12:31]CAPDU: 80 0D 01 02 [02:12:31]Write to MH i2c: E2 08 00 DE 18 80 0D 01 02 00 00 00 00 6F [02:12:31]Write i2c OK [02:12:31]MH_I2C_Read... [02:12:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:12:32]Read from MH i2c: E2 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 03 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 03 00 DE 18 00 90 00 6A [02:12:32]RAPDU: 90 00 [02:12:32]wFMCommunicate OK [02:12:32]wFMCommunicate request_size=255 [02:12:32]MH_SAM_APDU [02:12:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 10 4D C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 22 02 00 35 04 06 00 22 [02:12:32]Write to MH i2c: E2 02 01 DF 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 10 4D C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 22 02 00 35 04 06 00 22 00 00 58 [02:12:32]Write i2c OK [02:12:32]MH_I2C_Read... [02:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:32]Read from MH i2c: E2 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 03 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 03 00 DF 18 00 90 00 6B [02:12:32]RAPDU: 90 00 [02:12:32]wFMCommunicate OK [02:12:32]wFMCommunicate request_size=10 [02:12:32]MH_SAM_APDU [02:12:32]CAPDU: 80 0D 02 02 05 F9 5B EF 0D 91 [02:12:32]Write to MH i2c: E2 0D 00 E0 18 80 0D 02 02 05 00 F9 5B EF 0D 91 00 00 5D [02:12:32]Write i2c OK [02:12:32]MH_I2C_Read... [02:12:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:32]Read from MH i2c: E2 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 03 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 03 00 E0 18 00 90 00 6C [02:12:32]RAPDU: 90 00 [02:12:32]wFMCommunicate OK [02:12:32]wFMCommunicate request_size=4 [02:12:32]MH_SAM_APDU [02:12:32]CAPDU: 80 0D 03 02 [02:12:32]Write to MH i2c: E2 08 00 E1 18 80 0D 03 02 00 00 00 00 74 [02:12:32]Write i2c OK [02:12:32]MH_I2C_Read... [02:12:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:12:32]Read from MH i2c: E2 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 0B 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 0B 00 E1 18 00 1E 9B 9E 06 A5 D4 1C 2A 90 00 91 [02:12:32]RAPDU: 1E 9B 9E 06 A5 D4 1C 2A 90 00 [02:12:32]wFMCommunicate OK [02:12:32]SAM_PROTO_SignData done [02:12:32]FM_MakeSignedData done [02:12:32]CreateOFDProtocolMessage [02:12:32]wFMCommunicate request_size=4 [02:12:32]MH_SAM_APDU [02:12:32]CAPDU: 80 11 00 00 [02:12:32]Write to MH i2c: E2 08 00 E2 18 80 11 00 00 00 00 00 00 74 [02:12:32]Write i2c OK [02:12:32]MH_I2C_Read... [02:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:32]Read from MH i2c: E2 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 17 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: E2 17 00 E2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [02:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [02:12:32]wFMCommunicate OK [02:12:32]CreateOFDProtocolMessage done [02:12:32]OFDSenderStorePacket 139989 [02:12:32]StoreOFDPacket docnum=139989 [02:12:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FF 89 07 01 06 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 10 4D C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 22 02 00 35 04 06 00 22 F9 5B EF 0D 91 1E 9B 9E 06 A5 D4 1C 2A [02:12:32]CheckFolder [02:12:32]dirname=/storage/ofd_packets [02:12:32]CheckFolder done [02:12:32]ProducePacketName [02:12:32]name=ofd_packets/00139989 [02:12:32]NVStorageSaveData ofd_packets/00139989 [02:12:32]File name is /storage/ofd_packets/00139989 [02:12:32]Write 301 bytes [02:12:32]NVStorageSaveData done [02:12:32]OFDSenderStorePacket done [02:12:32]KKMCreateOFDPacket done [02:12:32]NVStorageSaveData kkm_last_timestamp [02:12:32]File name is /storage/kkm_last_timestamp [02:12:32]Write 4 bytes [02:12:32]NVStorageSaveData done [02:12:32]ExternCall_PrintAddStr [02:12:32]wPrintStart [02:12:32]Write to MH i2c: 01 00 00 E3 18 FB [02:12:32]Write i2c OK [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: 01 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: 01 07 00 [02:12:32]MH_I2C_Read... [02:12:32]Read from MH i2c: 01 07 00 E3 18 00 00 00 00 00 FF 0F 10 [02:12:32]RasterBufferAndPrint [02:12:32]line Счет N : (1)593843 [02:12:32]line ИНН: 02508201610067 [02:12:32]line Контрольно-Кассовый Чек [02:12:32]line ПРОДАЖА [02:12:32]line ТРК (МРК, ГНК) : 52 [02:12:32]line Товар: 2710124130 [02:12:32]line Аи-92-К-5 [02:12:32]line 6.640 * 67.80 [02:12:32]line = 450.19 [02:12:32]line НДС 12% НСП 1% [02:12:32]line > о реализуемом товаре [02:12:32]line ОКРУГЛЕНИЕ: -0.19 [02:12:32]line ИТОГО: 450.00 [02:12:32]line Внесено: 450.00 [02:12:32]line СДАЧА: 0.00 [02:12:32]line НСП 1% : 3.98 [02:12:32]line НДС 12% : 47.81 [02:12:32]line Наличными: 450.00 [02:12:32]line Безнал.: 0.00 [02:12:32]line Место: АЗС № 136 "Партнер Нефть" [02:12:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [02:12:32]line СНО: Общий режим [02:12:32]line Чек 6 21.08.2024 02:12 [02:12:32]line Смена: 454 ФФД: 1.0 [02:12:32]line ЗНМ: 0300000067 [02:12:32]line РНМ: 0000000000092569 [02:12:32]line Версия ККМ: 001 [02:12:32]line ФМ: 0000000000871776 [02:12:32]line ФД: 139989 [02:12:32]line ФПД: 38454384594321 [02:12:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T021232&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139989&fm=38454384594321&tin=02508201610067®Number=0000000000092569&sum=45000 [02:12:32]OFD Sender: Processing packet 139989 [packets to send 137, broken 136] [02:12:32]ProducePacketName [02:12:32]name=ofd_packets/00139989 [02:12:32]OFD Sender: To server: pG, [02:12:32]CommunicateWithHost lk.salyk.kg:30040 [02:12:32]ConnectInit lk.salyk.kg [02:12:32]written 0, free lines is 4095 [02:12:32]Connected sock=11 [02:12:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FF 89 07 01 06 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 10 4D C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 22 02 00 35 04 06 00 22 F9 5B EF 0D 91 1E 9B 9E 06 A5 D4 1C 2A [02:12:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C6 5E 47 00 FA 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 22 02 00 F4 03 04 00 A2 F3 C4 66 B6 04 01 00 00 B2 02 B4 DD 1F 8D 63 89 [02:12:33]CommunicateWithHost err = 0 [02:12:33]CheckOFDResponse [02:12:33]1017 (14) - 77093643461234 [02:12:33]1041 (16) - 0000000000871776 [02:12:33]1040 (4) - 139989 [02:12:33]1012 (4) - 20.08.2024 19:50 [02:12:33]1206 (1) - 0 [02:12:33]OFD Sender: Remove packet 139989 [02:12:33]ProducePacketName [02:12:33]name=ofd_packets/00139989 [02:12:33]NVStorageDeleteData [02:12:33]Write to MH i2c: 01 00 00 0E 19 27 [02:12:33]Write i2c OK [02:12:33]MH_I2C_Read... [02:12:33]Read from MH i2c: 01 [02:12:33]MH_I2C_Read... [02:12:33]Read from MH i2c: 01 07 00 [02:12:33]MH_I2C_Read... [02:12:33]Read from MH i2c: 01 07 00 0E 19 00 00 00 00 00 C2 0C FC [02:12:33]RasterBufferAndPrint [02:12:33]line [02:12:33]line [02:12:33]line [02:12:33]line [02:12:33]line [02:12:33]written 0, free lines is 3271 [02:12:33]MH_Cut [02:12:33]Write to MH i2c: D1 01 00 15 19 01 00 [02:12:33]Write i2c OK [02:12:33]MH_I2C_Read... [02:12:33]Read from MH i2c: D1 [02:12:33]MH_I2C_Read... [02:12:33]Read from MH i2c: D1 01 00 [02:12:33]MH_I2C_Read... [02:12:33]Read from MH i2c: D1 01 00 15 19 00 FF [02:12:33]Write to MH i2c: 01 00 00 16 19 2F [02:12:33]Write i2c OK [02:12:33]MH_I2C_Read... [02:12:33]OFD Sender: No OFD packet to send [02:12:33]*** Cut start [02:12:33]*** Partial cut [02:12:33]*** CUTSNS_PIN = 1 [02:12:34]*** CUTSNS_PIN = 0 [02:12:34]*** Brake cut motor [02:12:34]Read from MH i2c: 01 [02:12:34]MH_I2C_Read... [02:12:34]*** Stop cut motor [02:12:34]*** Cut end [02:12:34]Read from MH i2c: 01 07 00 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: 01 07 00 16 19 00 00 00 00 00 FF 0F 44 [02:12:34]process_action close_receipt done [02:12:34]requested_data is exist [02:12:34]produce_requested_data [02:12:34]requested_item fm.sn is exist - process it [02:12:34]wFMCommunicate request_size=4 [02:12:34]MH_SAM_APDU [02:12:34]CAPDU: 80 11 00 00 [02:12:34]Write to MH i2c: E2 08 00 17 19 80 11 00 00 00 00 00 00 AA [02:12:34]Write i2c OK [02:12:34]MH_I2C_Read... [02:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:34]Read from MH i2c: E2 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: E2 17 00 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: E2 17 00 17 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [02:12:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [02:12:34]wFMCommunicate OK [02:12:34]requested_item fd.num is exist - process it [02:12:34]SAM_PROTO_GetFieldsCounters [02:12:34]wFMCommunicate request_size=4 [02:12:34]MH_SAM_APDU [02:12:34]CAPDU: 80 13 00 00 [02:12:34]Write to MH i2c: E2 08 00 18 19 80 13 00 00 00 00 00 00 AD [02:12:34]Write i2c OK [02:12:34]MH_I2C_Read... [02:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:12:34]Read from MH i2c: E2 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: E2 62 00 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: E2 62 00 18 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 22 02 00 0E 04 04 00 C6 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 AA [02:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 22 02 00 0E 04 04 00 C6 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 [02:12:34]wFMCommunicate OK [02:12:34]SAM_PROTO_GetFieldsCounters done [02:12:34]requested_item shift.num is exist - process it [02:12:34]requested_item shift.opened is exist - process it [02:12:34]req_shift_opened [02:12:34]FM_GetShiftState [02:12:34]SAM_PROTO_GetShiftState [02:12:34]wFMCommunicate request_size=4 [02:12:34]MH_SAM_APDU [02:12:34]CAPDU: 80 13 01 00 [02:12:34]Write to MH i2c: E2 08 00 19 19 80 13 01 00 00 00 00 00 AF [02:12:34]Write i2c OK [02:12:34]MH_I2C_Read... [02:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:34]Read from MH i2c: E2 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: E2 0E 00 [02:12:34]MH_I2C_Read... [02:12:34]Read from MH i2c: E2 0E 00 19 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2F [02:12:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [02:12:34]wFMCommunicate OK [02:12:34]SAM_PROTO_GetShiftState done [02:12:34]FM_GetShiftState done [02:12:34]req_shift_opened done [02:12:34]requested_item shift.open_date is exist - process it [02:12:34]req_shift_open_date [02:12:34]req_shift_open_date done [02:12:34]produce_requested_data done [02:12:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139989,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [02:12:34]process_action_free close_receipt [02:12:34]json_value_free [02:12:34]json_value_free done [02:12:34]process_json_proto returns [02:12:34]Send response to host [02:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139989,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [02:12:34]free response buf [02:12:34]execute_script done [02:12:34]execute_script returns [02:12:34]free content buf [02:12:34]Sock 7.Close socket [02:12:34]Sock 7.Thread stoped [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]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:27]accept exits with 9 [02:17:27]New connection [02:17:27]New thread 3066908004 created [02:17:27]Thread 3066764644 joined [02:17:27]Waiting for new connection... [02:17:27] Sock 9.Parse request [02:17:27]Sock 9.Check first char [02:17:27]Sock 9.First char is OK [02:17:27]request: POST /json_proto HTTP/1.0 [02:17:27]Method: POST [02:17:27]URL: /json_proto [02:17:27]Method is POST - this is cgi request [02:17:27]url: /json_proto [02:17:27]query_string will be loaded in cgi processing [02:17:27]execute_cgi json_proto POST (null) [02:17:27]execute_cgi path=json_proto method=POST [02:17:27]POST find Content-Length [02:17:27]Host: 172.17.45.67:8080 [02:17:27]Content-Length: 682 [02:17:27]Content-Type: application/json [02:17:27] [02:17:27]POST finish read [02:17:27]Found Content-Length = 682 [02:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:17:27]execute_script... [02:17:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:17:27]POST & json_proto [02:17:27]process_json_proto [02:17:27]json parsed OK: [02:17:27]protocol is kg_v1.0 [02:17:27]action value=close_receipt [02:17:27]process_action close_receipt [02:17:27]cmd_close_receipt [02:17:27]MH_GetDate [02:17:27]Write to MH i2c: F0 00 00 1A 19 22 [02:17:27]Write i2c OK [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: F0 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: F0 09 00 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: F0 09 00 1A 19 00 38 4E C5 66 5F 7F 2B 66 4B [02:17:27]GetLastDocTimeStamp 1724206352 [02:17:27]current date 1724206648 [02:17:27]FM_GetShiftState [02:17:27]SAM_PROTO_GetShiftState [02:17:27]wFMCommunicate request_size=4 [02:17:27]MH_SAM_APDU [02:17:27]CAPDU: 80 13 01 00 [02:17:27]Write to MH i2c: E2 08 00 1B 19 80 13 01 00 00 00 00 00 B1 [02:17:27]Write i2c OK [02:17:27]MH_I2C_Read... [02:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:27]Read from MH i2c: E2 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 0E 00 [02:17:27]MH_I2C_Read... [02:17:27]Read from MH i2c: E2 0E 00 1B 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 31 [02:17:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [02:17:27]wFMCommunicate OK [02:17:27]SAM_PROTO_GetShiftState done [02:17:27]FM_GetShiftState done [02:17:27]opened in 1724200467 [02:17:27]opened+sec_in_day 1724286867 [02:17:27]quantity*price = 250054 [02:17:27]sum+1 = 250055 [02:17:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 4000.00 СДАЧА: 1500.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 7 21.08.2024 02:17 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139990 ФПД: 163871891506131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T021728&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139990&fm=163871891506131&tin=02508201610067®Number=0000000000092569&sum=250000 [02:17:28]StoreToDocumentArchive [02:17:28]shift 454 fd 139990 [02:17:28]save to /storage/0454/doc_00139990 [02:17:28]save last doc name /storage/0454/doc_00139990 to /storage/kkm_last_doc_name [02:17:28]save OK [02:17:28]Clear old archive folders... [02:17:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:17:28]tlvbuf is 00A07FD0 [02:17:28]SAM_PROTO_ClearQueue [02:17:28]wFMCommunicate request_size=4 [02:17:28]MH_SAM_APDU [02:17:28]CAPDU: 80 09 00 00 [02:17:28]Write to MH i2c: E2 08 00 28 19 80 09 00 00 00 00 00 00 B3 [02:17:28]Write i2c OK [02:17:28]MH_I2C_Read... [02:17:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:17:28]Read from MH i2c: E2 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: E2 03 00 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: E2 03 00 28 19 00 90 00 B5 [02:17:28]RAPDU: 90 00 [02:17:28]wFMCommunicate OK [02:17:28]SAM_PROTO_ClearQueue done [02:17:28]KKMCreateOFDPacket [02:17:28]OFDProtocolAddRootSTLVToBuf [02:17:28]FM_MakeSignedData [02:17:28]FM_MakeSignedData [02:17:28]SAM_PROTO_SignData [02:17:28]wFMCommunicate request_size=4 [02:17:28]MH_SAM_APDU [02:17:28]CAPDU: 80 0D 01 02 [02:17:28]Write to MH i2c: E2 08 00 29 19 80 0D 01 02 00 00 00 00 BB [02:17:28]Write i2c OK [02:17:28]MH_I2C_Read... [02:17:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:17:28]Read from MH i2c: E2 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: E2 03 00 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: E2 03 00 29 19 00 90 00 B6 [02:17:28]RAPDU: 90 00 [02:17:28]wFMCommunicate OK [02:17:28]wFMCommunicate request_size=255 [02:17:28]MH_SAM_APDU [02:17:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 38 4E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 22 02 00 35 04 06 00 95 [02:17:28]Write to MH i2c: E2 02 01 2A 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 38 4E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 22 02 00 35 04 06 00 95 00 00 4D [02:17:28]Write i2c OK [02:17:28]MH_I2C_Read... [02:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:28]Read from MH i2c: E2 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: E2 03 00 [02:17:28]MH_I2C_Read... [02:17:28]Read from MH i2c: E2 03 00 2A 19 00 90 00 B7 [02:17:28]RAPDU: 90 00 [02:17:28]wFMCommunicate OK [02:17:28]wFMCommunicate request_size=10 [02:17:28]MH_SAM_APDU [02:17:28]CAPDU: 80 0D 02 02 05 0A 65 E1 C3 D3 [02:17:28]Write to MH i2c: E2 0D 00 2B 19 80 0D 02 02 05 00 0A 65 E1 C3 D3 00 00 AE [02:17:28]Write i2c OK [02:17:28]MH_I2C_Read... [02:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:29]Read from MH i2c: E2 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 03 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 03 00 2B 19 00 90 00 B8 [02:17:29]RAPDU: 90 00 [02:17:29]wFMCommunicate OK [02:17:29]wFMCommunicate request_size=4 [02:17:29]MH_SAM_APDU [02:17:29]CAPDU: 80 0D 03 02 [02:17:29]Write to MH i2c: E2 08 00 2C 19 80 0D 03 02 00 00 00 00 C0 [02:17:29]Write i2c OK [02:17:29]MH_I2C_Read... [02:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:17:29]OFD Sender: No OFD packet to send [02:17:29]Read from MH i2c: E2 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 0B 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 0B 00 2C 19 00 39 2B 27 C5 89 A2 F0 52 90 00 7E [02:17:29]RAPDU: 39 2B 27 C5 89 A2 F0 52 90 00 [02:17:29]wFMCommunicate OK [02:17:29]SAM_PROTO_SignData done [02:17:29]FM_MakeSignedData done [02:17:29]CreateOFDProtocolMessage [02:17:29]wFMCommunicate request_size=4 [02:17:29]MH_SAM_APDU [02:17:29]CAPDU: 80 11 00 00 [02:17:29]Write to MH i2c: E2 08 00 2D 19 80 11 00 00 00 00 00 00 C0 [02:17:29]Write i2c OK [02:17:29]MH_I2C_Read... [02:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:29]Read from MH i2c: E2 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 17 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: E2 17 00 2D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [02:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [02:17:29]wFMCommunicate OK [02:17:29]CreateOFDProtocolMessage done [02:17:29]OFDSenderStorePacket 139990 [02:17:29]StoreOFDPacket docnum=139990 [02:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 79 6C 07 01 CD 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 38 4E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 22 02 00 35 04 06 00 95 0A 65 E1 C3 D3 39 2B 27 C5 89 A2 F0 52 [02:17:29]CheckFolder [02:17:29]dirname=/storage/ofd_packets [02:17:29]CheckFolder done [02:17:29]ProducePacketName [02:17:29]name=ofd_packets/00139990 [02:17:29]NVStorageSaveData ofd_packets/00139990 [02:17:29]File name is /storage/ofd_packets/00139990 [02:17:29]Write 301 bytes [02:17:29]NVStorageSaveData done [02:17:29]OFDSenderStorePacket done [02:17:29]KKMCreateOFDPacket done [02:17:29]NVStorageSaveData kkm_last_timestamp [02:17:29]File name is /storage/kkm_last_timestamp [02:17:29]Write 4 bytes [02:17:29]NVStorageSaveData done [02:17:29]ExternCall_PrintAddStr [02:17:29]wPrintStart [02:17:29]Write to MH i2c: 01 00 00 2E 19 47 [02:17:29]Write i2c OK [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: 01 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: 01 07 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: 01 07 00 2E 19 00 00 00 00 00 FF 0F 5C [02:17:29]RasterBufferAndPrint [02:17:29]line Счет N : (1)593844 [02:17:29]line ИНН: 02508201610067 [02:17:29]line Контрольно-Кассовый Чек [02:17:29]line ПРОДАЖА [02:17:29]line ТРК (МРК, ГНК) : 31 [02:17:29]line Товар: 2710124500 [02:17:29]line Аи-95-К-5 [02:17:29]line 33.700 * 74.20 [02:17:29]line = 2500.54 [02:17:29]line НДС 12% НСП 1% [02:17:29]line > о реализуемом товаре [02:17:29]line ОКРУГЛЕНИЕ: -0.54 [02:17:29]line ИТОГО: 2500.00 [02:17:29]line Внесено: 4000.00 [02:17:29]line СДАЧА: 1500.00 [02:17:29]line НСП 1% : 22.13 [02:17:29]line НДС 12% : 265.54 [02:17:29]line Наличными: 2500.00 [02:17:29]line Безнал.: 0.00 [02:17:29]line Место: АЗС № 136 "Партнер Нефть" [02:17:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [02:17:29]line СНО: Общий режим [02:17:29]line Чек 7 21.08.2024 02:17 [02:17:29]line Смена: 454 ФФД: 1.0 [02:17:29]line ЗНМ: 0300000067 [02:17:29]line РНМ: 0000000000092569 [02:17:29]line Версия ККМ: 001 [02:17:29]line ФМ: 0000000000871776 [02:17:29]line ФД: 139990 [02:17:29]line ФПД: 163871891506131 [02:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T021728&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139990&fm=163871891506131&tin=02508201610067®Number=0000000000092569&sum=250000 [02:17:29]OFD Sender: Processing packet 139990 [packets to send 137, broken 136] [02:17:29]ProducePacketName [02:17:29]name=ofd_packets/00139990 [02:17:29]OFD Sender: To server: pG, [02:17:29]CommunicateWithHost lk.salyk.kg:30040 [02:17:29]ConnectInit lk.salyk.kg [02:17:29]written 0, free lines is 4095 [02:17:29]Connected sock=10 [02:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 79 6C 07 01 CD 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 38 4E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 22 02 00 35 04 06 00 95 0A 65 E1 C3 D3 39 2B 27 C5 89 A2 F0 52 [02:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E1 52 47 00 63 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 22 02 00 F4 03 04 00 CA F4 C4 66 B6 04 01 00 00 A5 91 DB 41 09 CB CE 28 [02:17:29]CommunicateWithHost err = 0 [02:17:29]CheckOFDResponse [02:17:29]1017 (14) - 77093643461234 [02:17:29]1041 (16) - 0000000000871776 [02:17:29]1040 (4) - 139990 [02:17:29]1012 (4) - 20.08.2024 19:55 [02:17:29]1206 (1) - 0 [02:17:29]OFD Sender: Remove packet 139990 [02:17:29]ProducePacketName [02:17:29]name=ofd_packets/00139990 [02:17:29]NVStorageDeleteData [02:17:29]Write to MH i2c: 01 00 00 59 19 72 [02:17:29]Write i2c OK [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: 01 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: 01 07 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 D7 0C 5C [02:17:29]RasterBufferAndPrint [02:17:29]line [02:17:29]line [02:17:29]line [02:17:29]line [02:17:29]line [02:17:29]written 0, free lines is 3293 [02:17:29]MH_Cut [02:17:29]Write to MH i2c: D1 01 00 60 19 01 4B [02:17:29]Write i2c OK [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: D1 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: D1 01 00 [02:17:29]MH_I2C_Read... [02:17:29]Read from MH i2c: D1 01 00 60 19 00 4A [02:17:29]Write to MH i2c: 01 00 00 61 19 7A [02:17:29]Write i2c OK [02:17:29]MH_I2C_Read... [02:17:30]OFD Sender: No OFD packet to send [02:17:30]*** Cut start [02:17:30]*** Partial cut [02:17:30]*** CUTSNS_PIN = 1 [02:17:30]*** CUTSNS_PIN = 0 [02:17:30]*** Brake cut motor [02:17:31]Read from MH i2c: 01 [02:17:31]MH_I2C_Read... [02:17:31]*** Stop cut motor [02:17:31]*** Cut end [02:17:31]Read from MH i2c: 01 07 00 [02:17:31]MH_I2C_Read... [02:17:31]Read from MH i2c: 01 07 00 61 19 00 00 00 00 00 FF 0F 8F [02:17:31]process_action close_receipt done [02:17:31]requested_data is exist [02:17:31]produce_requested_data [02:17:31]requested_item fm.sn is exist - process it [02:17:31]wFMCommunicate request_size=4 [02:17:31]MH_SAM_APDU [02:17:31]CAPDU: 80 11 00 00 [02:17:31]Write to MH i2c: E2 08 00 62 19 80 11 00 00 00 00 00 00 F5 [02:17:31]Write i2c OK [02:17:31]MH_I2C_Read... [02:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:31]Read from MH i2c: E2 [02:17:31]MH_I2C_Read... [02:17:31]Read from MH i2c: E2 17 00 [02:17:31]MH_I2C_Read... [02:17:31]Read from MH i2c: E2 17 00 62 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [02:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [02:17:31]wFMCommunicate OK [02:17:31]requested_item fd.num is exist - process it [02:17:31]SAM_PROTO_GetFieldsCounters [02:17:31]wFMCommunicate request_size=4 [02:17:31]MH_SAM_APDU [02:17:31]CAPDU: 80 13 00 00 [02:17:31]Write to MH i2c: E2 08 00 63 19 80 13 00 00 00 00 00 00 F8 [02:17:31]Write i2c OK [02:17:31]MH_I2C_Read... [02:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:17:31]Read from MH i2c: E2 [02:17:31]MH_I2C_Read... [02:17:31]Read from MH i2c: E2 62 00 [02:17:31]MH_I2C_Read... [02:17:31]Read from MH i2c: E2 62 00 63 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 22 02 00 0E 04 04 00 C6 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 F9 [02:17:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 22 02 00 0E 04 04 00 C6 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 [02:17:31]wFMCommunicate OK [02:17:31]SAM_PROTO_GetFieldsCounters done [02:17:31]requested_item shift.num is exist - process it [02:17:31]requested_item shift.opened is exist - process it [02:17:31]req_shift_opened [02:17:31]FM_GetShiftState [02:17:31]SAM_PROTO_GetShiftState [02:17:31]wFMCommunicate request_size=4 [02:17:31]MH_SAM_APDU [02:17:31]CAPDU: 80 13 01 00 [02:17:31]Write to MH i2c: E2 08 00 64 19 80 13 01 00 00 00 00 00 FA [02:17:31]Write i2c OK [02:17:31]MH_I2C_Read... [02:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:31]Read from MH i2c: E2 [02:17:31]MH_I2C_Read... [02:17:31]Read from MH i2c: E2 0E 00 [02:17:31]MH_I2C_Read... [02:17:31]Read from MH i2c: E2 0E 00 64 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7A [02:17:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [02:17:31]wFMCommunicate OK [02:17:31]SAM_PROTO_GetShiftState done [02:17:31]FM_GetShiftState done [02:17:31]req_shift_opened done [02:17:31]requested_item shift.open_date is exist - process it [02:17:31]req_shift_open_date [02:17:31]req_shift_open_date done [02:17:31]produce_requested_data done [02:17:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139990,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [02:17:31]process_action_free close_receipt [02:17:31]json_value_free [02:17:31]json_value_free done [02:17:31]process_json_proto returns [02:17:31]Send response to host [02:17:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139990,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [02:17:31]free response buf [02:17:31]execute_script done [02:17:31]execute_script returns [02:17:31]free content buf [02:17:31]Sock 9.Close socket [02:17:31]Sock 9.Thread stoped [02:17:32]int [02:17:32]Write to MH i2c: 01 00 00 65 19 7E [02:17:32]*** FLAG_PRN_KEY set [02:17:32]Write i2c OK [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: 01 [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: 01 07 00 [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: 01 07 00 65 19 00 08 00 00 00 FF 0F 9B [02:17:32]state=0 [02:17:32]Key pressed [02:17:32]Feed [02:17:32]Write to MH i2c: D8 00 00 66 19 56 [02:17:32]Write i2c OK [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: D8 [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: D8 01 00 [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: D8 01 00 66 19 00 57 [02:17:32]int [02:17:32]Write to MH i2c: 01 00 00 67 19 80 [02:17:32]Write i2c OK [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: 01 [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: 01 07 00 [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: 01 07 00 67 19 00 48 00 00 00 3C 00 0B [02:17:32]state=2 [02:17:32]Key pressed [02:17:32]int [02:17:32]Write to MH i2c: 01 00 00 68 19 81 [02:17:32]*** FLAG_PRN_KEY reset [02:17:32]Write i2c OK [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: 01 [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: 01 07 00 [02:17:32]MH_I2C_Read... [02:17:32]Read from MH i2c: 01 07 00 68 19 00 00 00 00 00 FF 0F 96 [02:17:32]state=2 [02:17:32]Stop feed [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]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:30]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:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]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:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:36]accept exits with 7 [02:56:36]New connection [02:56:36]New thread 3066764644 created [02:56:36]Thread 3066908004 joined [02:56:36]Waiting for new connection... [02:56:36] Sock 7.Parse request [02:56:36]Sock 7.Check first char [02:56:36]Sock 7.First char is OK [02:56:36]request: POST /json_proto HTTP/1.0 [02:56:36]Method: POST [02:56:36]URL: /json_proto [02:56:36]Method is POST - this is cgi request [02:56:36]url: /json_proto [02:56:36]query_string will be loaded in cgi processing [02:56:36]execute_cgi json_proto POST (null) [02:56:36]execute_cgi path=json_proto method=POST [02:56:36]POST find Content-Length [02:56:36]Host: 172.17.45.67:8080 [02:56:36]Content-Length: 677 [02:56:36]Content-Type: application/json [02:56:36] [02:56:36]POST finish read [02:56:36]Found Content-Length = 677 [02:56:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:56:36]execute_script... [02:56: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)593845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:56:36]POST & json_proto [02:56:36]process_json_proto [02:56:36]json parsed OK: [02:56:36]protocol is kg_v1.0 [02:56:36]action value=close_receipt [02:56:36]process_action close_receipt [02:56:36]cmd_close_receipt [02:56:36]MH_GetDate [02:56:36]Write to MH i2c: F0 00 00 69 19 71 [02:56:36]Write i2c OK [02:56:36]MH_I2C_Read... [02:56:36]Read from MH i2c: F0 [02:56:36]MH_I2C_Read... [02:56:36]Read from MH i2c: F0 09 00 [02:56:36]MH_I2C_Read... [02:56:36]Read from MH i2c: F0 09 00 69 19 00 65 57 C5 66 5F 7F 2B 66 D0 [02:56:36]GetLastDocTimeStamp 1724206648 [02:56:36]current date 1724208997 [02:56:36]FM_GetShiftState [02:56:36]SAM_PROTO_GetShiftState [02:56:36]wFMCommunicate request_size=4 [02:56:36]MH_SAM_APDU [02:56:36]CAPDU: 80 13 01 00 [02:56:36]Write to MH i2c: E2 08 00 6A 19 80 13 01 00 00 00 00 00 00 [02:56:36]Write i2c OK [02:56:36]MH_I2C_Read... [02:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:56:36]Read from MH i2c: E2 [02:56:36]MH_I2C_Read... [02:56:36]Read from MH i2c: E2 0E 00 [02:56:36]MH_I2C_Read... [02:56:36]Read from MH i2c: E2 0E 00 6A 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 80 [02:56:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [02:56:36]wFMCommunicate OK [02:56:36]SAM_PROTO_GetShiftState done [02:56:36]FM_GetShiftState done [02:56:36]opened in 1724200467 [02:56:36]opened+sec_in_day 1724286867 [02:56:36]quantity*price = 35052 [02:56:36]sum+1 = 35054 [02:56:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 8 21.08.2024 02:56 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139991 ФПД: 102543951232513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T025637&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139991&fm=102543951232513&tin=02508201610067®Number=0000000000092569&sum=35000 [02:56:37]StoreToDocumentArchive [02:56:37]shift 454 fd 139991 [02:56:37]save to /storage/0454/doc_00139991 [02:56:37]save last doc name /storage/0454/doc_00139991 to /storage/kkm_last_doc_name [02:56:37]save OK [02:56:37]Clear old archive folders... [02:56:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:56:37]tlvbuf is B6E9DC60 [02:56:37]SAM_PROTO_ClearQueue [02:56:37]wFMCommunicate request_size=4 [02:56:37]MH_SAM_APDU [02:56:37]CAPDU: 80 09 00 00 [02:56:37]Write to MH i2c: E2 08 00 77 19 80 09 00 00 00 00 00 00 02 [02:56:37]Write i2c OK [02:56:37]MH_I2C_Read... [02:56:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:56:37]Read from MH i2c: E2 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 03 00 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 03 00 77 19 00 90 00 04 [02:56:37]RAPDU: 90 00 [02:56:37]wFMCommunicate OK [02:56:37]SAM_PROTO_ClearQueue done [02:56:37]KKMCreateOFDPacket [02:56:37]OFDProtocolAddRootSTLVToBuf [02:56:37]FM_MakeSignedData [02:56:37]FM_MakeSignedData [02:56:37]SAM_PROTO_SignData [02:56:37]wFMCommunicate request_size=4 [02:56:37]MH_SAM_APDU [02:56:37]CAPDU: 80 0D 01 02 [02:56:37]Write to MH i2c: E2 08 00 78 19 80 0D 01 02 00 00 00 00 0A [02:56:37]Write i2c OK [02:56:37]MH_I2C_Read... [02:56:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:56:37]Read from MH i2c: E2 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 03 00 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 03 00 78 19 00 90 00 05 [02:56:37]RAPDU: 90 00 [02:56:37]wFMCommunicate OK [02:56:37]wFMCommunicate request_size=255 [02:56:37]MH_SAM_APDU [02:56:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 65 57 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 22 02 00 35 04 06 00 5D [02:56:37]Write to MH i2c: E2 02 01 79 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 65 57 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 22 02 00 35 04 06 00 5D 00 00 CC [02:56:37]Write i2c OK [02:56:37]MH_I2C_Read... [02:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:56:37]Read from MH i2c: E2 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 03 00 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 03 00 79 19 00 90 00 06 [02:56:37]RAPDU: 90 00 [02:56:37]wFMCommunicate OK [02:56:37]wFMCommunicate request_size=10 [02:56:37]MH_SAM_APDU [02:56:37]CAPDU: 80 0D 02 02 05 43 5F C9 7E 01 [02:56:37]Write to MH i2c: E2 0D 00 7A 19 80 0D 02 02 05 00 43 5F C9 7E 01 00 00 01 [02:56:37]Write i2c OK [02:56:37]MH_I2C_Read... [02:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:56:37]Read from MH i2c: E2 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 03 00 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 03 00 7A 19 00 90 00 07 [02:56:37]RAPDU: 90 00 [02:56:37]wFMCommunicate OK [02:56:37]wFMCommunicate request_size=4 [02:56:37]MH_SAM_APDU [02:56:37]CAPDU: 80 0D 03 02 [02:56:37]Write to MH i2c: E2 08 00 7B 19 80 0D 03 02 00 00 00 00 0F [02:56:37]Write i2c OK [02:56:37]MH_I2C_Read... [02:56:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:56:37]Read from MH i2c: E2 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 0B 00 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 0B 00 7B 19 00 DF 09 0D 0A C2 F4 A5 58 90 00 C2 [02:56:37]RAPDU: DF 09 0D 0A C2 F4 A5 58 90 00 [02:56:37]wFMCommunicate OK [02:56:37]SAM_PROTO_SignData done [02:56:37]FM_MakeSignedData done [02:56:37]CreateOFDProtocolMessage [02:56:37]wFMCommunicate request_size=4 [02:56:37]MH_SAM_APDU [02:56:37]CAPDU: 80 11 00 00 [02:56:37]Write to MH i2c: E2 08 00 7C 19 80 11 00 00 00 00 00 00 0F [02:56:37]Write i2c OK [02:56:37]MH_I2C_Read... [02:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:56:37]Read from MH i2c: E2 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 17 00 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: E2 17 00 7C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 66 [02:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [02:56:37]wFMCommunicate OK [02:56:37]CreateOFDProtocolMessage done [02:56:37]OFDSenderStorePacket 139991 [02:56:37]StoreOFDPacket docnum=139991 [02:56:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 37 06 07 01 88 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 65 57 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 22 02 00 35 04 06 00 5D 43 5F C9 7E 01 DF 09 0D 0A C2 F4 A5 58 [02:56:37]CheckFolder [02:56:37]dirname=/storage/ofd_packets [02:56:37]CheckFolder done [02:56:37]ProducePacketName [02:56:37]name=ofd_packets/00139991 [02:56:37]NVStorageSaveData ofd_packets/00139991 [02:56:37]File name is /storage/ofd_packets/00139991 [02:56:37]Write 301 bytes [02:56:37]NVStorageSaveData done [02:56:37]OFDSenderStorePacket done [02:56:37]KKMCreateOFDPacket done [02:56:37]NVStorageSaveData kkm_last_timestamp [02:56:37]File name is /storage/kkm_last_timestamp [02:56:37]Write 4 bytes [02:56:37]NVStorageSaveData done [02:56:37]ExternCall_PrintAddStr [02:56:37]wPrintStart [02:56:37]Write to MH i2c: 01 00 00 7D 19 96 [02:56:37]Write i2c OK [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: 01 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: 01 07 00 [02:56:37]MH_I2C_Read... [02:56:37]Read from MH i2c: 01 07 00 7D 19 00 00 00 00 00 FF 0F AB [02:56:37]RasterBufferAndPrint [02:56:37]line Счет N : (1)593845 [02:56:37]line ИНН: 02508201610067 [02:56:37]line Контрольно-Кассовый Чек [02:56:37]line ПРОДАЖА [02:56:37]line ТРК (МРК, ГНК) : 42 [02:56:37]line Товар: 2710124130 [02:56:37]line Аи-92-К-5 [02:56:37]line 5.170 * 67.80 [02:56:37]line = 350.53 [02:56:37]line НДС 12% НСП 1% [02:56:37]line > о реализуемом товаре [02:56:37]line ОКРУГЛЕНИЕ: -0.53 [02:56:37]line ИТОГО: 350.00 [02:56:37]line Внесено: 350.00 [02:56:37]line СДАЧА: 0.00 [02:56:37]line НСП 1% : 3.10 [02:56:37]line НДС 12% : 37.22 [02:56:37]line Наличными: 350.00 [02:56:37]line Безнал.: 0.00 [02:56:37]line Место: АЗС № 136 "Партнер Нефть" [02:56:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [02:56:37]line СНО: Общий режим [02:56:37]line Чек 8 21.08.2024 02:56 [02:56:37]line Смена: 454 ФФД: 1.0 [02:56:37]line ЗНМ: 0300000067 [02:56:37]line РНМ: 0000000000092569 [02:56:37]line Версия ККМ: 001 [02:56:37]line ФМ: 0000000000871776 [02:56:37]line ФД: 139991 [02:56:37]line ФПД: 102543951232513 [02:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T025637&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139991&fm=102543951232513&tin=02508201610067®Number=0000000000092569&sum=35000 [02:56:38]written 0, free lines is 4095 [02:56:38]OFD Sender: Processing packet 139991 [packets to send 137, broken 136] [02:56:38]ProducePacketName [02:56:38]name=ofd_packets/00139991 [02:56:38]OFD Sender: To server: pG, [02:56:38]CommunicateWithHost lk.salyk.kg:30040 [02:56:38]ConnectInit lk.salyk.kg [02:56:38]Connected sock=10 [02:56:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 37 06 07 01 88 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 65 57 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 22 02 00 35 04 06 00 5D 43 5F C9 7E 01 DF 09 0D 0A C2 F4 A5 58 [02:56:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 52 E7 47 00 E0 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 22 02 00 F4 03 04 00 F7 FD C4 66 B6 04 01 00 00 49 A3 30 63 0F 41 60 D6 [02:56:38]CommunicateWithHost err = 0 [02:56:38]CheckOFDResponse [02:56:38]1017 (14) - 77093643461234 [02:56:38]1041 (16) - 0000000000871776 [02:56:38]1040 (4) - 139991 [02:56:38]1012 (4) - 20.08.2024 20:35 [02:56:38]1206 (1) - 0 [02:56:38]OFD Sender: Remove packet 139991 [02:56:38]ProducePacketName [02:56:38]name=ofd_packets/00139991 [02:56:38]NVStorageDeleteData [02:56:38]Write to MH i2c: 01 00 00 A8 19 C1 [02:56:38]Write i2c OK [02:56:38]MH_I2C_Read... [02:56:38]Read from MH i2c: 01 [02:56:38]MH_I2C_Read... [02:56:38]Read from MH i2c: 01 07 00 [02:56:38]MH_I2C_Read... [02:56:38]Read from MH i2c: 01 07 00 A8 19 00 00 00 00 00 CE 0C A2 [02:56:38]RasterBufferAndPrint [02:56:38]line [02:56:38]line [02:56:38]line [02:56:38]line [02:56:38]line [02:56:38]written 0, free lines is 3284 [02:56:38]MH_Cut [02:56:38]Write to MH i2c: D1 01 00 AF 19 01 9A [02:56:38]Write i2c OK [02:56:38]MH_I2C_Read... [02:56:38]Read from MH i2c: D1 [02:56:38]MH_I2C_Read... [02:56:38]Read from MH i2c: D1 01 00 [02:56:38]MH_I2C_Read... [02:56:38]Read from MH i2c: D1 01 00 AF 19 00 99 [02:56:38]Write to MH i2c: 01 00 00 B0 19 C9 [02:56:38]Write i2c OK [02:56:38]MH_I2C_Read... [02:56:39]OFD Sender: No OFD packet to send [02:56:39]*** Cut start [02:56:39]*** Partial cut [02:56:39]*** CUTSNS_PIN = 1 [02:56:39]*** CUTSNS_PIN = 0 [02:56:39]*** Brake cut motor [02:56:39]Read from MH i2c: 01 [02:56:39]MH_I2C_Read... [02:56:39]*** Stop cut motor [02:56:39]*** Cut end [02:56:39]Read from MH i2c: 01 07 00 [02:56:39]MH_I2C_Read... [02:56:39]Read from MH i2c: 01 07 00 B0 19 00 00 00 00 00 FF 0F DE [02:56:39]process_action close_receipt done [02:56:39]requested_data is exist [02:56:39]produce_requested_data [02:56:39]requested_item fm.sn is exist - process it [02:56:39]wFMCommunicate request_size=4 [02:56:39]MH_SAM_APDU [02:56:39]CAPDU: 80 11 00 00 [02:56:39]Write to MH i2c: E2 08 00 B1 19 80 11 00 00 00 00 00 00 44 [02:56:39]Write i2c OK [02:56:39]MH_I2C_Read... [02:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:56:39]Read from MH i2c: E2 [02:56:39]MH_I2C_Read... [02:56:39]Read from MH i2c: E2 17 00 [02:56:39]MH_I2C_Read... [02:56:39]Read from MH i2c: E2 17 00 B1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [02:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [02:56:39]wFMCommunicate OK [02:56:39]requested_item fd.num is exist - process it [02:56:39]SAM_PROTO_GetFieldsCounters [02:56:39]wFMCommunicate request_size=4 [02:56:39]MH_SAM_APDU [02:56:39]CAPDU: 80 13 00 00 [02:56:39]Write to MH i2c: E2 08 00 B2 19 80 13 00 00 00 00 00 00 47 [02:56:39]Write i2c OK [02:56:39]MH_I2C_Read... [02:56:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:56:40]Read from MH i2c: E2 [02:56:40]MH_I2C_Read... [02:56:40]Read from MH i2c: E2 62 00 [02:56:40]MH_I2C_Read... [02:56:40]Read from MH i2c: E2 62 00 B2 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 22 02 00 0E 04 04 00 C6 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 4C [02:56:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 22 02 00 0E 04 04 00 C6 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 [02:56:40]wFMCommunicate OK [02:56:40]SAM_PROTO_GetFieldsCounters done [02:56:40]requested_item shift.num is exist - process it [02:56:40]requested_item shift.opened is exist - process it [02:56:40]req_shift_opened [02:56:40]FM_GetShiftState [02:56:40]SAM_PROTO_GetShiftState [02:56:40]wFMCommunicate request_size=4 [02:56:40]MH_SAM_APDU [02:56:40]CAPDU: 80 13 01 00 [02:56:40]Write to MH i2c: E2 08 00 B3 19 80 13 01 00 00 00 00 00 49 [02:56:40]Write i2c OK [02:56:40]MH_I2C_Read... [02:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:56:40]Read from MH i2c: E2 [02:56:40]MH_I2C_Read... [02:56:40]Read from MH i2c: E2 0E 00 [02:56:40]MH_I2C_Read... [02:56:40]Read from MH i2c: E2 0E 00 B3 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C9 [02:56:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [02:56:40]wFMCommunicate OK [02:56:40]SAM_PROTO_GetShiftState done [02:56:40]FM_GetShiftState done [02:56:40]req_shift_opened done [02:56:40]requested_item shift.open_date is exist - process it [02:56:40]req_shift_open_date [02:56:40]req_shift_open_date done [02:56:40]produce_requested_data done [02:56:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139991,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [02:56:40]process_action_free close_receipt [02:56:40]json_value_free [02:56:40]json_value_free done [02:56:40]process_json_proto returns [02:56:40]Send response to host [02:56:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139991,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [02:56:40]free response buf [02:56:40]execute_script done [02:56:40]execute_script returns [02:56:40]free content buf [02:56:40]Sock 7.Close socket [02:56:40]Sock 7.Thread stoped [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]accept exits with 9 [03:04:44]New connection [03:04:44]New thread 3066908004 created [03:04:44]Thread 3066764644 joined [03:04:44]Waiting for new connection... [03:04:44] Sock 9.Parse request [03:04:44]Sock 9.Check first char [03:04:44]Sock 9.First char is OK [03:04:44]request: POST /json_proto HTTP/1.0 [03:04:44]Method: POST [03:04:44]URL: /json_proto [03:04:44]Method is POST - this is cgi request [03:04:44]url: /json_proto [03:04:44]query_string will be loaded in cgi processing [03:04:44]execute_cgi json_proto POST (null) [03:04:44]execute_cgi path=json_proto method=POST [03:04:44]POST find Content-Length [03:04:44]Host: 172.17.45.67:8080 [03:04:44]Content-Length: 677 [03:04:44]Content-Type: application/json [03:04:44] [03:04:44]POST finish read [03:04:44]Found Content-Length = 677 [03:04:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:44]execute_script... [03:04: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)593846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:44]POST & json_proto [03:04:44]process_json_proto [03:04:44]json parsed OK: [03:04:44]protocol is kg_v1.0 [03:04:44]action value=close_receipt [03:04:44]process_action close_receipt [03:04:44]cmd_close_receipt [03:04:44]MH_GetDate [03:04:44]Write to MH i2c: F0 00 00 B4 19 BC [03:04:44]Write i2c OK [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: F0 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: F0 09 00 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: F0 09 00 B4 19 00 4D 59 C5 66 5F 7F 2B 66 05 [03:04:44]GetLastDocTimeStamp 1724208997 [03:04:44]current date 1724209485 [03:04:44]FM_GetShiftState [03:04:44]SAM_PROTO_GetShiftState [03:04:44]wFMCommunicate request_size=4 [03:04:44]MH_SAM_APDU [03:04:44]CAPDU: 80 13 01 00 [03:04:44]Write to MH i2c: E2 08 00 B5 19 80 13 01 00 00 00 00 00 4B [03:04:44]Write i2c OK [03:04:44]MH_I2C_Read... [03:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:44]Read from MH i2c: E2 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: E2 0E 00 [03:04:44]MH_I2C_Read... [03:04:44]Read from MH i2c: E2 0E 00 B5 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CB [03:04:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [03:04:44]wFMCommunicate OK [03:04:44]SAM_PROTO_GetShiftState done [03:04:44]FM_GetShiftState done [03:04:44]opened in 1724200467 [03:04:44]opened+sec_in_day 1724286867 [03:04:44]quantity*price = 20001 [03:04:44]sum+1 = 20002 [03:04:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 9 21.08.2024 03:04 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139992 ФПД: 154087806045610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T030445&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139992&fm=154087806045610&tin=02508201610067®Number=0000000000092569&sum=20000 [03:04:45]StoreToDocumentArchive [03:04:45]shift 454 fd 139992 [03:04:45]save to /storage/0454/doc_00139992 [03:04:45]save last doc name /storage/0454/doc_00139992 to /storage/kkm_last_doc_name [03:04:45]save OK [03:04:45]Clear old archive folders... [03:04:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:04:45]tlvbuf is B6EB6950 [03:04:45]SAM_PROTO_ClearQueue [03:04:45]wFMCommunicate request_size=4 [03:04:45]MH_SAM_APDU [03:04:45]CAPDU: 80 09 00 00 [03:04:45]Write to MH i2c: E2 08 00 C2 19 80 09 00 00 00 00 00 00 4D [03:04:45]Write i2c OK [03:04:45]MH_I2C_Read... [03:04:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:04:45]Read from MH i2c: E2 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 03 00 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 03 00 C2 19 00 90 00 4F [03:04:45]RAPDU: 90 00 [03:04:45]wFMCommunicate OK [03:04:45]SAM_PROTO_ClearQueue done [03:04:45]KKMCreateOFDPacket [03:04:45]OFDProtocolAddRootSTLVToBuf [03:04:45]FM_MakeSignedData [03:04:45]FM_MakeSignedData [03:04:45]SAM_PROTO_SignData [03:04:45]wFMCommunicate request_size=4 [03:04:45]MH_SAM_APDU [03:04:45]CAPDU: 80 0D 01 02 [03:04:45]Write to MH i2c: E2 08 00 C3 19 80 0D 01 02 00 00 00 00 55 [03:04:45]Write i2c OK [03:04:45]MH_I2C_Read... [03:04:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:04:45]Read from MH i2c: E2 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 03 00 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 03 00 C3 19 00 90 00 50 [03:04:45]RAPDU: 90 00 [03:04:45]wFMCommunicate OK [03:04:45]wFMCommunicate request_size=255 [03:04:45]MH_SAM_APDU [03:04:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4D 59 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 22 02 00 35 04 06 00 8C [03:04:45]Write to MH i2c: E2 02 01 C4 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4D 59 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 22 02 00 35 04 06 00 8C 00 00 09 [03:04:45]Write i2c OK [03:04:45]MH_I2C_Read... [03:04:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:45]Read from MH i2c: E2 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 03 00 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 03 00 C4 19 00 90 00 51 [03:04:45]RAPDU: 90 00 [03:04:45]wFMCommunicate OK [03:04:45]wFMCommunicate request_size=10 [03:04:45]MH_SAM_APDU [03:04:45]CAPDU: 80 0D 02 02 05 24 5C F1 8D AA [03:04:45]Write to MH i2c: E2 0D 00 C5 19 80 0D 02 02 05 00 24 5C F1 8D AA 00 00 0A [03:04:45]Write i2c OK [03:04:45]MH_I2C_Read... [03:04:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:45]Read from MH i2c: E2 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 03 00 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 03 00 C5 19 00 90 00 52 [03:04:45]RAPDU: 90 00 [03:04:45]wFMCommunicate OK [03:04:45]wFMCommunicate request_size=4 [03:04:45]MH_SAM_APDU [03:04:45]CAPDU: 80 0D 03 02 [03:04:45]Write to MH i2c: E2 08 00 C6 19 80 0D 03 02 00 00 00 00 5A [03:04:45]Write i2c OK [03:04:45]MH_I2C_Read... [03:04:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:04:45]Read from MH i2c: E2 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 0B 00 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 0B 00 C6 19 00 E2 58 32 AE C1 D0 AB C8 90 00 79 [03:04:45]RAPDU: E2 58 32 AE C1 D0 AB C8 90 00 [03:04:45]wFMCommunicate OK [03:04:45]SAM_PROTO_SignData done [03:04:45]FM_MakeSignedData done [03:04:45]CreateOFDProtocolMessage [03:04:45]wFMCommunicate request_size=4 [03:04:45]MH_SAM_APDU [03:04:45]CAPDU: 80 11 00 00 [03:04:45]Write to MH i2c: E2 08 00 C7 19 80 11 00 00 00 00 00 00 5A [03:04:45]Write i2c OK [03:04:45]MH_I2C_Read... [03:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:45]Read from MH i2c: E2 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 17 00 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: E2 17 00 C7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B1 [03:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [03:04:45]wFMCommunicate OK [03:04:45]CreateOFDProtocolMessage done [03:04:45]OFDSenderStorePacket 139992 [03:04:45]StoreOFDPacket docnum=139992 [03:04:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B3 2E 07 01 64 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4D 59 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 22 02 00 35 04 06 00 8C 24 5C F1 8D AA E2 58 32 AE C1 D0 AB C8 [03:04:45]CheckFolder [03:04:45]dirname=/storage/ofd_packets [03:04:45]CheckFolder done [03:04:45]ProducePacketName [03:04:45]name=ofd_packets/00139992 [03:04:45]NVStorageSaveData ofd_packets/00139992 [03:04:45]File name is /storage/ofd_packets/00139992 [03:04:45]Write 301 bytes [03:04:45]NVStorageSaveData done [03:04:45]OFDSenderStorePacket done [03:04:45]KKMCreateOFDPacket done [03:04:45]NVStorageSaveData kkm_last_timestamp [03:04:45]File name is /storage/kkm_last_timestamp [03:04:45]Write 4 bytes [03:04:45]NVStorageSaveData done [03:04:45]ExternCall_PrintAddStr [03:04:45]wPrintStart [03:04:45]Write to MH i2c: 01 00 00 C8 19 E1 [03:04:45]Write i2c OK [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: 01 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: 01 07 00 [03:04:45]MH_I2C_Read... [03:04:45]Read from MH i2c: 01 07 00 C8 19 00 00 00 00 00 FF 0F F6 [03:04:45]RasterBufferAndPrint [03:04:45]line Счет N : (1)593846 [03:04:45]line ИНН: 02508201610067 [03:04:45]line Контрольно-Кассовый Чек [03:04:45]line ПРОДАЖА [03:04:45]line ТРК (МРК, ГНК) : 42 [03:04:45]line Товар: 2710124130 [03:04:45]line Аи-92-К-5 [03:04:45]line 2.950 * 67.80 [03:04:45]line = 200.01 [03:04:45]line НДС 12% НСП 1% [03:04:45]line > о реализуемом товаре [03:04:45]line ОКРУГЛЕНИЕ: -0.01 [03:04:45]line ИТОГО: 200.00 [03:04:45]line Внесено: 200.00 [03:04:45]line СДАЧА: 0.00 [03:04:45]line НСП 1% : 1.77 [03:04:45]line НДС 12% : 21.24 [03:04:45]line Наличными: 200.00 [03:04:45]line Безнал.: 0.00 [03:04:45]line Место: АЗС № 136 "Партнер Нефть" [03:04:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [03:04:45]line СНО: Общий режим [03:04:45]line Чек 9 21.08.2024 03:04 [03:04:45]line Смена: 454 ФФД: 1.0 [03:04:45]line ЗНМ: 0300000067 [03:04:45]line РНМ: 0000000000092569 [03:04:45]line Версия ККМ: 001 [03:04:45]line ФМ: 0000000000871776 [03:04:45]line ФД: 139992 [03:04:45]line ФПД: 154087806045610 [03:04:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T030445&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139992&fm=154087806045610&tin=02508201610067®Number=0000000000092569&sum=20000 [03:04:46]written 0, free lines is 4095 [03:04:46]OFD Sender: Processing packet 139992 [packets to send 137, broken 136] [03:04:46]ProducePacketName [03:04:46]name=ofd_packets/00139992 [03:04:46]OFD Sender: To server: pG, [03:04:46]CommunicateWithHost lk.salyk.kg:30040 [03:04:46]ConnectInit lk.salyk.kg [03:04:46]Connected sock=10 [03:04:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B3 2E 07 01 64 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 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4D 59 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 22 02 00 35 04 06 00 8C 24 5C F1 8D AA E2 58 32 AE C1 D0 AB C8 [03:04:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EB 25 47 00 BB BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 22 02 00 F4 03 04 00 DF FF C4 66 B6 04 01 00 00 7E 5B BE 1B F0 48 8A 06 [03:04:46]CommunicateWithHost err = 0 [03:04:46]CheckOFDResponse [03:04:46]1017 (14) - 77093643461234 [03:04:46]1041 (16) - 0000000000871776 [03:04:46]1040 (4) - 139992 [03:04:46]1012 (4) - 20.08.2024 20:43 [03:04:46]1206 (1) - 0 [03:04:46]OFD Sender: Remove packet 139992 [03:04:46]ProducePacketName [03:04:46]name=ofd_packets/00139992 [03:04:46]NVStorageDeleteData [03:04:46]Write to MH i2c: 01 00 00 F3 19 0C [03:04:46]Write i2c OK [03:04:46]MH_I2C_Read... [03:04:46]Read from MH i2c: 01 [03:04:46]MH_I2C_Read... [03:04:46]Read from MH i2c: 01 07 00 [03:04:46]MH_I2C_Read... [03:04:46]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 C7 0C E6 [03:04:46]RasterBufferAndPrint [03:04:46]line [03:04:46]line [03:04:46]line [03:04:46]line [03:04:46]line [03:04:46]written 0, free lines is 3277 [03:04:46]MH_Cut [03:04:46]Write to MH i2c: D1 01 00 FA 19 01 E5 [03:04:46]Write i2c OK [03:04:46]MH_I2C_Read... [03:04:46]Read from MH i2c: D1 [03:04:46]MH_I2C_Read... [03:04:46]Read from MH i2c: D1 01 00 [03:04:46]MH_I2C_Read... [03:04:46]Read from MH i2c: D1 01 00 FA 19 00 E4 [03:04:46]Write to MH i2c: 01 00 00 FB 19 14 [03:04:46]Write i2c OK [03:04:46]MH_I2C_Read... [03:04:47]OFD Sender: No OFD packet to send [03:04:47]*** Cut start [03:04:47]*** Partial cut [03:04:47]*** CUTSNS_PIN = 1 [03:04:47]*** CUTSNS_PIN = 0 [03:04:47]*** Brake cut motor [03:04:48]Read from MH i2c: 01 [03:04:48]MH_I2C_Read... [03:04:48]*** Stop cut motor [03:04:48]*** Cut end [03:04:48]Read from MH i2c: 01 07 00 [03:04:48]MH_I2C_Read... [03:04:48]Read from MH i2c: 01 07 00 FB 19 00 00 00 00 00 FF 0F 29 [03:04:48]process_action close_receipt done [03:04:48]requested_data is exist [03:04:48]produce_requested_data [03:04:48]requested_item fm.sn is exist - process it [03:04:48]wFMCommunicate request_size=4 [03:04:48]MH_SAM_APDU [03:04:48]CAPDU: 80 11 00 00 [03:04:48]Write to MH i2c: E2 08 00 FC 19 80 11 00 00 00 00 00 00 8F [03:04:48]Write i2c OK [03:04:48]MH_I2C_Read... [03:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:48]Read from MH i2c: E2 [03:04:48]MH_I2C_Read... [03:04:48]Read from MH i2c: E2 17 00 [03:04:48]MH_I2C_Read... [03:04:48]Read from MH i2c: E2 17 00 FC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E6 [03:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [03:04:48]wFMCommunicate OK [03:04:48]requested_item fd.num is exist - process it [03:04:48]SAM_PROTO_GetFieldsCounters [03:04:48]wFMCommunicate request_size=4 [03:04:48]MH_SAM_APDU [03:04:48]CAPDU: 80 13 00 00 [03:04:48]Write to MH i2c: E2 08 00 FD 19 80 13 00 00 00 00 00 00 92 [03:04:48]Write i2c OK [03:04:48]MH_I2C_Read... [03:04:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:04:48]Read from MH i2c: E2 [03:04:48]MH_I2C_Read... [03:04:48]Read from MH i2c: E2 62 00 [03:04:48]MH_I2C_Read... [03:04:48]Read from MH i2c: E2 62 00 FD 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 22 02 00 0E 04 04 00 C6 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 9B [03:04:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 22 02 00 0E 04 04 00 C6 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 [03:04:48]wFMCommunicate OK [03:04:48]SAM_PROTO_GetFieldsCounters done [03:04:48]requested_item shift.num is exist - process it [03:04:48]requested_item shift.opened is exist - process it [03:04:48]req_shift_opened [03:04:48]FM_GetShiftState [03:04:48]SAM_PROTO_GetShiftState [03:04:48]wFMCommunicate request_size=4 [03:04:48]MH_SAM_APDU [03:04:48]CAPDU: 80 13 01 00 [03:04:48]Write to MH i2c: E2 08 00 FE 19 80 13 01 00 00 00 00 00 94 [03:04:48]Write i2c OK [03:04:48]MH_I2C_Read... [03:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:48]Read from MH i2c: E2 [03:04:48]MH_I2C_Read... [03:04:48]Read from MH i2c: E2 0E 00 [03:04:48]MH_I2C_Read... [03:04:48]Read from MH i2c: E2 0E 00 FE 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 14 [03:04:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [03:04:48]wFMCommunicate OK [03:04:48]SAM_PROTO_GetShiftState done [03:04:48]FM_GetShiftState done [03:04:48]req_shift_opened done [03:04:48]requested_item shift.open_date is exist - process it [03:04:48]req_shift_open_date [03:04:48]req_shift_open_date done [03:04:48]produce_requested_data done [03:04:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139992,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [03:04:48]process_action_free close_receipt [03:04:48]json_value_free [03:04:48]json_value_free done [03:04:48]process_json_proto returns [03:04:48]Send response to host [03:04:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139992,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [03:04:48]free response buf [03:04:48]execute_script done [03:04:48]execute_script returns [03:04:48]free content buf [03:04:48]Sock 9.Close socket [03:04:48]Sock 9.Thread stoped [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send